/* ══════════════════════════════════════════════════════════════
   NAV — CHM SALEUX
   Position : fixed, transparente sur le hero, sombre au scroll
   ══════════════════════════════════════════════════════════════ */

:root {
    --nav-height:    82px;
    --banner-height: 38px;
    --brand-orange:  #F57706;
    --nav-blur:      blur(20px);
    --nav-border:    rgba(255, 255, 255, 0.07);
    --nav-text:      rgba(255, 255, 255, 0.85);
    --nav-hover:     #ffffff;
    --nav-drop-bg:   #0e0e0e;
}

/* ══════════════════════════════════════════════════════════════
   BANNIÈRE D'ANNONCE — au-dessus de la navbar
   ══════════════════════════════════════════════════════════════ */
.site-announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--banner-height);
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    overflow: hidden;
}
.site-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
/* Version mobile (marquee) — masquée sur desktop */
.site-banner-mobile { display: none; }

.site-banner-logo {
    height: 23px;
    width: auto;
    flex-shrink: 0;
    display: block;
}
.site-banner-text {
    font-size: .81rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #0a0a0a;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Décale la navbar vers le bas quand la bannière est active */
body.has-banner .nav-fixed { top: var(--banner-height); }

/* Décale le dropdown du mega-menu */
body.has-banner .nav-dropdown { top: calc(var(--banner-height) + var(--nav-height) - 1px); }

/* Décale le contenu des pages avec padding-top classique */
body.has-banner .page-top-offset {
    padding-top: calc(var(--nav-height) + var(--banner-height));
}

/* ─── BARRE PRINCIPALE ─── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.nav-fixed .nav-inner {
    padding: 0 70px;
}

/* ─── INNER ─── */
.nav-inner {
    height: 100%;
    padding: 0 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

/* ─── LOGO ─── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    justify-self: start;
}

.nav-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-brand-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
}

.nav-brand-text em {
    font-style: normal;
    color: var(--brand-orange);
}

/* ─── LIENS DESKTOP ─── */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    align-self: stretch;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 5px;
    padding: 0 11px;
    font-size: 0.81rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--nav-text);
    text-decoration: none;
    border-radius: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--brand-orange);
    border-radius: 1px 1px 0 0;
    opacity: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nav-hover);
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
}

.nav-has-dropdown {
    position: relative;
}

.nav-chevron {
    font-size: 0.62rem;
    transition: transform 0.25s ease;
}

.nav-has-dropdown.is-open .nav-chevron {
    transform: rotate(-180deg);
}

/* ─── MEGA MENU ─── */
.nav-dropdown {
    position: fixed;
    top: calc(var(--nav-height) - 1px);
    left: 20%;
    right: 20%;
    border-radius: 0;
    z-index: 998;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: none;
}

.nav-has-dropdown.is-open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: none;
}

/* Wrap intérieur */
.nav-dropdown-wrap {
    padding: 0 146px;
}

/* Colonnes de liens */
.nav-dropdown-links {
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 36px 0;
}

.nav-dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border-right: none;
}

.nav-dropdown-col:first-child { padding-left: 0; }
.nav-dropdown-col:last-child { border-right: none; padding-right: 0; }

.nav-dropdown-label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin: 0 0 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.nav-dropdown-label i { font-size: 0.7rem; }

.nav-dropdown-link {
    display: block;
    position: relative;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    padding: 7px 0 7px 0;
    transition: color 0.2s, padding-left 0.15s;
    text-align: left;
}

.ndl-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--brand-orange);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.nav-dropdown-link:hover {
    color: #ffffff;
    padding-left: 16px;
}

.nav-dropdown-link:hover .ndl-arrow {
    opacity: 1;
}

/* ─── ABOUT DROPDOWN — panneau simple ancré à gauche sous son lien ─── */
#aboutDropdown {
    position: absolute;
    top: 100%;
    left: -60px;
    right: auto;
    width: 360px;
    border-radius: 0;
    transform: none;
}

body.has-banner #aboutDropdown {
    top: 100%;
}

.nav-has-dropdown.is-open #aboutDropdown {
    transform: none;
}

#aboutDropdown .nav-dropdown-wrap {
    padding: 0 24px 0 68px;
}

#aboutDropdown .nav-dropdown-links {
    justify-content: flex-start;
    padding: 24px 0;
}

#aboutDropdown .nav-dropdown-col {
    width: 100%;
    padding: 0;
    border-right: none;
}

#aboutDropdown .nav-dropdown-label {
    font-size: 0.85rem;
    color: var(--brand-orange);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    text-align: left;
}

#aboutDropdown .nav-dropdown-link {
    justify-content: flex-start;
    text-align: left;
}

/* Visuel droite */
.nav-dropdown-visual {
    position: relative;
    overflow: hidden;
}

.ndv-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/club/club1.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.nav-has-dropdown:hover .ndv-bg {
    transform: scale(1);
}

.ndv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%);
}

.ndv-content {
    position: relative;
    z-index: 2;
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ndv-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin: 0 0 8px;
}

.ndv-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ndv-title em {
    font-style: normal;
    color: var(--brand-orange);
}

.ndv-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin: 0 0 20px;
}

.ndv-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    width: fit-content;
    transition: background 0.2s;
}

.ndv-cta:hover { background: #d96800; }

/* ─── ACTIONS DROITE ─── */
.nav-end {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nav-text);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-phone i {
    font-size: 0.7rem;
    color: var(--brand-orange);
}

.nav-phone:hover {
    color: #ffffff;
}

.nav-phone span {
    white-space: nowrap;
}

/* CTA */
/* ── Bouton S'INSCRIRE (primaire) : fond orange plein ── */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    border: 1.5px solid var(--brand-orange);
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: #d96800;
    border-color: #d96800;
    box-shadow: 0 6px 18px rgba(245, 119, 6, 0.35);
}

/* ── Bouton CONNEXION (secondaire) : outline orange ── */
.nav-cta--outline {
    background: #fff;
    border: 1.5px solid #fff;
    color: #0a0a0a;
}

.nav-cta--outline:hover {
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.85);
    box-shadow: none;
    transform: translateY(-1px);
    color: #0a0a0a;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   MENU MOBILE — OVERLAY PLEIN ÉCRAN
   ══════════════════════════════════════════════════════════════ */

.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #080808;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.nav-mobile-overlay.is-open {
    transform: translateX(0);
}

.nav-mobile-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 80px 28px 24px;
    overflow-y: auto;
}

/* Liens principaux mobile */
.nav-mobile-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-mobile-link {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s;
}

.nav-mobile-link:hover { color: var(--brand-orange); }

/* Accordion mobile */
.nav-mobile-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
}

.nav-mobile-icon {
    font-size: 0.9rem;
    color: var(--brand-orange);
    transition: transform 0.3s;
}

.nav-mobile-accordion.is-open .nav-mobile-icon {
    transform: rotate(45deg);
}

.nav-mobile-sub {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 0 0 14px;
}

.nav-mobile-sub.is-open {
    max-height: 600px;
}

.nav-mobile-sub a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-mobile-sub a:hover { color: #fff; }

.nav-mobile-sublabel {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin: 14px 0 4px;
}

/* Footer mobile */
.nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-mobile-footer-link i { color: var(--brand-orange); width: 14px; }
.nav-mobile-footer-link:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .nav-phone { display: none; }
}

/* Bouton mobile S'inscrire — caché sur desktop */
.nav-cta-mobile {
    display: none;
}

@media (max-width: 900px) {
    .nav-inner { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-cta { display: none; }

    .nav-cta-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #F57706;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 9px 18px;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.2s;
        border-radius: 0;
        margin-right: 10px;
    }
    .nav-cta-mobile:hover { background: #d96800; }

    /* Force la nav dans l'état sombre plein-écran dès le départ */
    .nav-fixed {
        background: #0a0a0a !important;
        border-color: rgba(255,255,255,0.06) !important;
        box-shadow: 0 2px 16px rgba(0,0,0,0.35) !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.has-banner .nav-fixed {
        top: var(--banner-height) !important;
    }

    .nav-fixed .nav-inner {
        padding: 0 20px !important;
    }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 16px; gap: 16px; }
    .nav-brand-text { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════════════
   BANNIÈRE — marquee mobile (≤ 900px)
   Logo fixe à gauche, texte défile de droite à gauche en boucle
   ══════════════════════════════════════════════════════════════ */
@keyframes banner-marquee {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100vw); }
}

@media (max-width: 900px) {
    /* Sur mobile : on cache le inner desktop et on affiche le marquee */
    .site-announcement-banner {
        justify-content: flex-start;
        padding: 0;
    }
    .site-banner-inner:not(.site-banner-mobile) {
        display: none;
    }
    .site-banner-mobile {
        display: flex;
        animation: banner-marquee 22s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-banner-mobile {
        animation: none;
    }
}

/* Nav flottante : le body n'a pas de padding-top.
   Les pages sans hero utilisent .page-top-offset pour décaler leur contenu. */
body {
    padding-top: 0;
}

.page-top-offset {
    padding-top: var(--nav-height);
}
