/* =============================================================
   HEADER — Le Géant Cheerleading (Style Pro & Athlétique)
   ============================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 3px solid #E60012; /* Ligne rouge tranchante du header */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 80px;
}

.header-inner {
    width: 100%;
    max-width: 1200px; /* Alignement strict avec le reste du site */
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.header-logo { flex-shrink: 0; }
.header-logo a { display: block; }
.header-logo img {
    height: 70px;
    width: auto;
    transition: opacity 0.25s ease-in-out;
}
.header-logo a:hover img { opacity: 0.8; }

/* Navigation */
.header-nav {
    display: flex;
    align-items: stretch; /* Permet aux liens de toucher le bas du header */
    flex: 1;
    justify-content: center;
}

.nav-list { display: flex; align-items: stretch; gap: 5px; }
.nav-item { display: flex; align-items: stretch; position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    color: #1A1A1A;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative; /* Essentiel pour placer la ligne active */
    transition: color 0.25s ease-in-out;
}

/* --- LA LIGNE SOUS LE LIEN --- */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; /* Se positionne exactement SUR la bordure du header */
    left: 0;
    width: 100%;
    height: 4px; /* Un peu plus épaisse pour marquer l'état actif */
    background: transparent;
    transition: background-color 0.25s ease-in-out;
    z-index: 2; /* Passe au-dessus de la ligne du header */
}

.nav-link:hover,
.nav-link:focus {
    color: #E60012;
}

.nav-link:hover::after,
.nav-link:focus::after {
    background: #E60012; /* Apparaît au survol */
}

.nav-item.active .nav-link {
    color: #E60012;
    font-weight: 800;
    font-style: italic;
}

.nav-item.active .nav-link::after {
    background: #E60012; /* Reste affichée pour la page active */
}

.nav-chevron {
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.25s ease-in-out;
}
.nav-item:hover .nav-chevron {
    transform: rotate(180deg);
    color: #E60012;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #FFFFFF;
    border-top: 3px solid #E60012;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-link {
    display: block;
    padding: 14px 20px;
    color: #1A1A1A;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid #EFEFEF;
    transition: all 0.2s ease-in-out;
}

.dropdown-link:hover,
.dropdown-link:focus {
    background: #F4F4F4;
    color: #E60012;
    padding-left: 26px;
    border-left: 4px solid #E60012;
}

.dropdown-item:last-child .dropdown-link { border-bottom: none; }

/* Social icons */
.header-social { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: #F4F4F4;
    color: #1A1A1A;
    font-size: 1rem;
    transition: all 0.25s ease-in-out;
}

.social-link:hover { transform: translateY(-3px); color: #FFFFFF; }
.social-link.fb:hover { background: #1877F2; }
.social-link.ig:hover { background: #C13584; }
.social-link.yt:hover { background: #FF0000; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    width: 44px;
    height: 44px;
    background: transparent;
}
.burger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #1A1A1A;
    border-radius: 1px;
    transition: all 0.25s ease-in-out;
}
.burger.open .burger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive Header */
@media (max-width: 1024px) {
    .nav-link { padding: 0 12px; font-size: 1rem; }
}

@media (max-width: 960px) {
    .header-social { display: none; }
    .header-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0; right: 0; bottom: 0;
        background: #FFFFFF;
        overflow-y: auto;
        padding: 20px 0 40px;
        z-index: 999;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .header-nav.open { display: block; }
    .nav-list { flex-direction: column; width: 100%; }
    .nav-item { width: 100%; display: block; }
    .nav-link {
        height: auto;
        padding: 16px 24px;
        width: 100%;
        border-bottom: 1px solid #EFEFEF;
        justify-content: space-between;
    }
    
    /* Sur mobile, on enlève le ::after et on utilise le bord gauche pour l'état actif */
    .nav-link::after { display: none; }
    .nav-item.active .nav-link { border-left: 6px solid #E60012; padding-left: 18px; border-bottom-color: #EFEFEF;}
    
    .dropdown {
        display: block; position: static; box-shadow: none; border-top: none;
        background: #F9F9F9; border-left: 4px solid #E60012; margin-left: 24px; width: calc(100% - 24px);
    }
    .dropdown-link { padding: 12px 20px; font-size: 1rem; }
    .burger { display: flex; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 768px) {
    .site-header { height: 70px; }
    .header-logo img { height: 40px; }
    .header-nav { top: 70px; }
}