/* css/components/navbar.css */

/* --- HEADER GLOBAL --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* Effet Premium "Glassmorphism" au scroll */
.header.is-scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

/* --- LOGO --- */
.brand-logo {
    display: flex;
    align-items: center;
    z-index: 1001; /* Reste au-dessus du menu mobile */
}

.nav-logo {
    height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    /* Le logo reste jaune, on ne l'inverse plus ! */
}

/* --- MENU DES LIENS (Mobile par défaut) --- */
.nav-links {
   position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-primary);
    /* text-color: var(--text-primary); */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: var(--sp-4); opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all var(--transition-base); z-index: 1000;
}

/* Classe ajoutée par le JS pour ouvrir le menu mobile */
.nav-links.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links a { font-family: var(--font-display); font-size: 2rem; color: var(--text-primary); transition: color var(--transition-fast); }

.nav-links a:hover {
    color: var(--accent-primary);
}

/* --- ACTIONS & BOUTONS --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    z-index: 1001;
}

.icon-btn {
    width: 44px; 
    height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--bg-elevated);
    border: 1px solid var(--border-color); color: var(--text-primary);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.icon-btn:hover { transform: scale(1.05); background: var(--bg-card); }

/* Gestion SVG Theme (Permutation automatique sans JS) */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

/* --- SELECTEUR DE LANGUE (Dropdown) --- */
.lang-switcher { position: relative; }
.current-lang {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.95rem; /* Plus lisible */
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px; background: transparent; color: var(--text-primary);
    transition: background var(--transition-fast);
}
.current-lang:hover { background: var(--bg-elevated); }
.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 8px 0;  
}
.lang-switcher.is-open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}
.lang-option {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 16px;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--bg-card);
    color: var(--clr-saffron);
}
.lang-dropdown li {
    padding: 0.75rem 1.5rem; cursor: pointer; font-size: 0.95rem;
    font-weight: 500; color: var(--text-secondary); transition: all var(--transition-fast);
}
.lang-dropdown li:hover { background: var(--bg-elevated); color: var(--accent-primary); }
/* --- RESPONSIVE MOBILE vs DESKTOP --- */
.mobile-menu-btn { display: flex; }
.cta-desktop { display: none; }

/* DESKTOP (Ecrans > 1024px) */
@media (min-width: 1024px) {
    .mobile-menu-btn { display: none !important; }
    
    /* Bouton Get App rééquilibré ! */
    .cta-desktop { 
        display: inline-flex !important; 
        height: 44px; /* Même hauteur que les icônes rondes */
        padding: 0 24px; /* Moins large */
        font-size: 0.95rem; /* Plus discret */
        font-weight: 600;
    }

    .nav-links {
        position: static; width: auto; height: auto; background-color: transparent;
        display: flex; flex-direction: row;
        gap: var(--sp-4);
        opacity: 1; visibility: visible; transform: translateY(0);
    }

    .nav-links a {
        font-family: var(--font-body);
        font-size: 1rem; /* ÉTAIT 0.875rem - Maintenant parfaitement lisible */
        font-weight: 500;
        color: white;
        letter-spacing: 0.02em; /* Touche d'élégance éditoriale */
    }
    .nav-links a:hover { color: var(--text-primary); }
    .nav-actions { gap: var(--sp-3); }
}