
/* --- GLOBAL NAVBAR --- */
.global-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="light"] .global-navbar {
    background: rgba(250, 250, 252, 0.85);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.theme-toggle-btn {
    background: var(--surface-1);
    border: 1px solid var(--border);
    color: var(--text-1);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--surface-2);
    border-color: var(--accent);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* On cache les liens sur mobile pour garder la navbar propre, on pourrait ajouter un menu hamburger plus tard */
}

/* --- 2026 nav refinement --- */
.global-navbar {
    max-width: min(1240px, calc(100% - 24px));
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: 64px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
    padding: 0 22px;
}

.nav-links {
    gap: 1.2rem;
}

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.06);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(15,23,42,0.05);
}
