/* ═══════════════════════════════════════════════════
   NAVBAR.CSS — Header fixe + menu mobile
   Importé sur toutes les pages avec navbar
   ═══════════════════════════════════════════════════ */

/* ── Header fixe ── */
.en-tete {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
}
.conteneur-en-tete {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.conteneur-en-tete:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Logo */
.en-tete-gauche {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo-en-tete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-en-tete i,
.logo-en-tete span {
    background: linear-gradient(90deg, #8A63D2 0%, #FF7DEE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo-en-tete span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Navigation desktop (masquée par défaut, affichée >= 768px) */
.navigation-en-tete {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
.liens-nav {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}
.liens-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}
.liens-nav.actif {
    background: rgba(138, 99, 210, 0.2);
}

/* Partie droite du header */
.en-tete-droite {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sélecteur de langue */
.changeur-langue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bouton-langue {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bouton-langue img,
.bouton-langue svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Boutons connexion/inscription (masqués par défaut, affichés >= 768px) */
.boutons-auth {
    display: none;
    align-items: center;
    gap: 0.75rem;
}
.bouton-auth {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.bouton-auth.secondaire {
    background: transparent;
    color: white;
}
.bouton-auth.principal {
    background: linear-gradient(90deg, var(--accentue) 0%, #8A63D2 100%);
    transition: all 0.3s ease;
    color: white;
    border: none;
}
.bouton-auth.principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 99, 210, 0.3);
}

/* Bouton hamburger mobile (masqué par défaut, affiché < 768px) */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Menu mobile plein écran ── */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primaire) 0%, #2A1B3D 100%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, clip-path 0.5s ease;
    clip-path: circle(0% at 90% 5%);
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    clip-path: circle(150% at 90% 5%);
}

/* Bouton fermer */
.mobile-menu-header {
    position: absolute;
    top: 30px;
    right: 30px;
}
.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-close:hover {
    color: var(--accentue);
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Contenu du menu mobile */
.mobile-menu-content {
    width: 100%;
    max-width: 500px;
    padding: 0 30px;
    text-align: center;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}
.mobile-nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 15px 0;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accentue) 0%, #FF7DEE 100%);
    transition: var(--transition);
}
.mobile-nav-link:hover {
    color: var(--accentue-clair);
}
.mobile-nav-link:hover::after {
    width: 40%;
}

/* Animation décalée des liens */
.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

/* Boutons auth dans le menu mobile */
.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

/* Réseaux sociaux dans le menu mobile */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.mobile-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: var(--transition);
}
.mobile-social-link:hover {
    background: var(--accentue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(138, 99, 210, 0.4);
}

/* Boutons génériques (menu mobile) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary {
    background: linear-gradient(90deg, var(--accentue) 0%, #8A63D2 100%);
    color: white;
    border: none;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE NAVBAR
   ═══════════════════════════════════════════════════ */

/* Tablet+ : navigation et boutons auth visibles */
@media (min-width: 768px) {
    .navigation-en-tete { display: flex; }
    .boutons-auth { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* Mobile : hamburger visible, nav masquée */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navigation-en-tete,
    .boutons-auth {
        display: none;
    }
}

/* Petit mobile */
@media (max-width: 599px) {
    .conteneur-en-tete {
        padding: 10px;
    }
    .en-tete-droite {
        gap: 0.5rem;
    }
    .bouton-auth {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Très petit mobile : masquer le texte du logo */
@media (max-width: 479px) {
    .logo-en-tete span {
        display: none;
    }
    .bouton-langue {
        width: 1.75rem;
        height: 1.75rem;
    }
}
