/* En-tête / Logo - LAN RAPAS */
/* Points 1-2-3-4-5-6 : logo, hiérarchie, contraste, cadre, animation, responsive */

@import url(variables.css);

/* Grille uniquement dans header – main sans fond grille */
main { background-image: none !important; }

/* Option 5 : rayon lumineux sur le corps – lueur violette en haut */
body {
    background-image: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(187, 134, 252, 0.08) 0%, transparent 50%);
}

/* Grille géométrique uniquement dans le header principal du site (pas dans les headers de cartes, etc.) */
header.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(187, 134, 252, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 134, 252, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* 4. Cadre et espacement – contain: paint pour garder la grille ::after strictement dans le header */
header,
header.site-header {
    min-height: 200px;
    padding: 48px 24px 72px;
    contain: paint;
}

.header-content {
    min-height: 140px;
    padding: 0 16px;
}

/* 2. Hiérarchie visuelle - séparation LAN / logo RAPAS (sans cadre) */
.header-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    padding: 24px 32px 32px;
}

/* 1. Mise en valeur du logo */
.logo {
    height: 140px;
    filter: drop-shadow(0 0 24px rgba(187, 134, 252, 0.5)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

/* 1. Effet hover - zoom + glow */
.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 32px rgba(187, 134, 252, 0.6)) drop-shadow(0 0 48px rgba(3, 218, 198, 0.3)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* 2. Hiérarchie - "LAN" plus marqué */
.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 50%, var(--primary-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(187, 134, 252, 0.2);
}

/* 5. Animation dégradé "LAN" au survol du bloc logo */
.header-logo-wrap:hover .main-title {
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* 3. Contraste - sous-titre plus lisible et mis en avant */
.header-content > p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    margin: 0.5rem 0 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(187, 134, 252, 0.15);
    max-width: 600px;
}

/* 6. Responsive - logo adapté sur mobile */
@media (max-width: 768px) {
    header,
    header.site-header {
        min-height: auto;
        padding: 32px 16px 48px;
    }

    .header-logo-wrap {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px 24px;
    }

    .main-title {
        font-size: 2rem;
        text-align: center;
    }

    .logo {
        height: 100px;
    }

    .header-badge {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 80px;
    }

    .main-title {
        font-size: 1.7rem;
    }
}
