/* Compense la nav fixe pour les sauts d'ancre */
html { scroll-padding-top: 80px; }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 64px; height: 64px;
    background: #0C1A35;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-group { position: relative; }
.nav-group-label {
    display: flex; align-items: center; gap: 5px;
    font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.45);
    padding: 6px 12px; border-radius: 8px; cursor: default;
    letter-spacing: .04em; text-transform: uppercase;
    transition: color .2s, background .2s; user-select: none;
}
.nav-group-label i { font-size: .6rem; transition: transform .2s; }
.nav-group:hover .nav-group-label { color: #fff; background: rgba(255,255,255,.07); }
.nav-group:hover .nav-group-label i { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%;
    padding-top: 10px; min-width: 240px;
    opacity: 0; pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity .18s, transform .18s;
    z-index: 200;
}
.nav-dropdown-inner {
    background: #1a2d50; border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.nav-group:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background .15s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,.07); }
.nav-dropdown-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.nav-dropdown-text strong { display: block; font-size: .8rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.nav-dropdown-text span { font-size: .72rem; color: rgba(255,255,255,.45); line-height: 1.4; }
.nav-dropdown-text span.soon { color: rgba(201,168,76,.6); font-style: italic; }
.nav-sep { width: 1px; height: 20px; background: rgba(255,255,255,.1); margin: 0 4px; }
.nav-account-btn { font-size: .75rem; font-weight: 700; text-decoration: none; padding: 7px 14px; border-radius: 8px; transition: all .2s; letter-spacing: .02em; }
.nav-account-btn--ghost { color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.15); }
.nav-account-btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.nav-account-btn--cta { background: #C9A84C; color: #0C1A35; margin-left: 4px; }
.nav-account-btn--cta:hover { background: #E8C56A; }
.nav-account-btn--logged { display: flex; align-items: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.nav-account-btn--logged:hover { background: rgba(255,255,255,.07); }
.nav-account-avatar { width: 24px; height: 24px; background: #C9A84C; color: #0C1A35; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.nav-admin { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.nav-admin:hover { color: #fff; }
.nav-back { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.5); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color .2s; }
.nav-back:hover { color: #fff; }

/* ── HAMBURGER / MOBILE NAV ── */
.nav-hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; flex-shrink: 0;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: rgba(255,255,255,.7); border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.nav--open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-panel {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: #0C1A35; z-index: 99; overflow-y: auto;
    padding: 20px 16px 40px; border-top: 1px solid rgba(255,255,255,.08);
}
.nav--open .nav-mobile-panel { display: block; }
.nav-mobile-section { margin-bottom: 24px; }
.nav-mobile-section-title {
    font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.3); padding: 0 8px; margin-bottom: 4px;
}
.nav-mobile-link {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px;
    text-decoration: none; border-radius: 8px; transition: background .15s;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.nav-mobile-link strong { display: block; font-size: .85rem; font-weight: 600; color: #fff; }
.nav-mobile-link span { font-size: .72rem; color: rgba(255,255,255,.45); line-height: 1.4; }
.nav-mobile-link span.soon { color: rgba(201,168,76,.6); font-style: italic; }

@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-logo img { height: 32px; }
    .nav-menu { display: none; }
    .nav-hamburger { display: flex; }
}
