/* ==========================
   MENU PUBLIC — v2
   Thème sombre + hamburger mobile
========================== */

/* ── Base ────────────────────────────────────────────────── */
.nav-public {
    background: rgba(14, 26, 36, 0.97);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-container {
    max-width: 1140px;
    margin: auto;
    padding: 0 20px;
    height: 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* ── Logo ────────────────────────────────────────────────── */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: #0077aa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo-text {
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.nav-logo-text em {
    font-style: normal;
    color: #4fc3f7;
}

/* ── Liens desktop ───────────────────────────────────────── */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #c8d6e0;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 7px 12px;
    border-radius: 6px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #4fc3f7;
    background: rgba(79,195,247,.08);
}

/* Bouton login */
.nav-login a {
    border: 1.5px solid #4fc3f7;
    border-radius: 6px;
    color: #4fc3f7 !important;
    padding: 7px 16px !important;
}

.nav-login a:hover {
    background: #4fc3f7 !important;
    color: #0e1a24 !important;
}

/* Langues */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-lang a {
    font-size: .9rem !important;
    padding: 6px 6px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    opacity: .7;
}

.nav-lang a:hover {
    opacity: 1;
    background: rgba(255,255,255,.08) !important;
}

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background .15s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: rgba(255,255,255,.08);
}

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

/* Animation → croix */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile ─────────────────────────────────────────── */
.nav-mobile {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
    border-top: 1px solid transparent;
    background: rgba(10, 20, 30, 0.98);
}

.nav-mobile.open {
    max-height: 500px;
    opacity: 1;
    border-top-color: rgba(255,255,255,.08);
}

.nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 10px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 1140px;
    margin: 0 auto;
}

.nav-mobile-list li a {
    display: block;
    padding: 13px 14px;
    color: #c8d6e0;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background .15s, color .15s;
    letter-spacing: .02em;
}

.nav-mobile-list li a:hover,
.nav-mobile-list li a:active {
    background: rgba(79,195,247,.08);
    color: #4fc3f7;
}

.nav-mobile-login {
    display: block;
    text-align: center;
    border: 1.5px solid #4fc3f7 !important;
    color: #4fc3f7 !important;
    border-radius: 8px;
    font-weight: 700 !important;
    margin-top: 4px;
}

.nav-mobile-login:hover {
    background: #4fc3f7 !important;
    color: #0e1a24 !important;
}

.nav-mobile-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 6px 0 !important;
}

.nav-mobile-lang {
    display: flex !important;
    gap: 8px;
    padding: 8px 14px !important;
}

.nav-mobile-lang a {
    flex: 1;
    text-align: center;
    padding: 8px !important;
    font-size: .85rem !important;
    border-radius: 6px;
    background: rgba(255,255,255,.05);
    color: #c8d6e0 !important;
}

.nav-mobile-lang a:hover {
    background: rgba(79,195,247,.12) !important;
    color: #4fc3f7 !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links      { display: none !important; }
    .nav-hamburger  { display: flex !important; }
}

@media (min-width: 769px) {
    .nav-mobile { display: none !important; }
}

/* ── JS inline ───────────────────────────────────────────── */
