/* ============================================================================
   Navigation & Mobile Menu
   ============================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 2rem;
    background-color: rgba(250, 204, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a {
    position: relative;
    transition: border-color 0.2s ease;
    padding: 0.5rem 0.75rem;
    border: 2px solid transparent;
}

.nav-links a:hover {
    border-color: var(--foreground);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 51;
}

.mobile-menu-btn span {
    width: 1.25rem;
    height: 2px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.75rem);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.25rem, -0.5rem);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    z-index: 49;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.875rem;
    animation: slide-up 0.3s var(--ease-out-expo);
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu.active {
    display: flex;
}

/* ── Navbar inversée (sections noires) ────────────────────────────────────── */

.navbar--inverted {
    background-color: rgba(26, 26, 26, 0.9);
    border-bottom-color: rgba(250, 204, 21, 0.12);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar--inverted .logo,
.navbar--inverted .nav-links a {
    color: #facc15;
    transition: color 0.3s ease;
}

.navbar--inverted .nav-links a {
    border-color: transparent;
}

.navbar--inverted .nav-links a:hover {
    border-color: #facc15;
}

.navbar--inverted .mobile-menu-btn span {
    background-color: #facc15;
}
