/* 
 * FICHIER CSS UNIFIÉ POUR LA BARRE DE NAVIGATION
 * Ce fichier contient tous les styles pour la barre de navigation
 * en version desktop et mobile
 */

/* ===== STYLES DE BASE DE LA BARRE DE NAVIGATION ===== */
.header-new {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.nav-new.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem !important; /* Force le même padding sur toutes les pages */
    height: 80px;
    transition: all 0.3s ease;
    max-width: 1400px; /* Limiter la largeur maximale */
    margin: 0 auto; /* Centrer la barre de navigation */
    width: 100%; /* Assurer que la largeur est complète */
}

.header-new.scrolled .nav-new.container {
    height: 70px;
}

/* ===== STYLES DU LOGO ===== */
.logo-new {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    position: relative;
    z-index: 1002; /* Augmenté pour s'assurer qu'il est au-dessus des autres éléments */
}

.logo-image {
    height: 60px;
    width: auto;
    display: block !important; /* Force l'affichage du logo */
    transition: transform 0.3s ease;
    margin: 5px 0;
    visibility: visible !important; /* Garantit que le logo est visible */
    opacity: 1 !important; /* Garantit que le logo est opaque */
    object-fit: contain; /* Assure que l'image s'adapte correctement */
    max-width: 200px; /* Limite la largeur maximale */
}

.logo-new:hover .logo-image {
    transform: scale(1.05);
}

/* ===== STYLES DES LIENS DE NAVIGATION ===== */
.nav-links-new {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link-new {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link-new:hover::after,
.nav-link-new.active::after {
    width: 100%;
}

.nav-link-new.active {
    color: var(--primary);
    font-weight: 600;
}

/* ===== STYLES DES ACTIONS DE NAVIGATION ===== */
.nav-actions {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1500; /* Augmenté pour s'assurer que les actions sont au-dessus des autres éléments */
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-dark);
}

/* ===== STYLES DU MENU HAMBURGER ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer !important;
    padding: 5px; /* Agrandir la zone cliquable */
    z-index: 9999; /* Valeur maximale pour s'assurer qu'il est au-dessus de tout */
    position: relative;
    pointer-events: auto !important; /* Force les événements de souris */
    -webkit-tap-highlight-color: transparent; /* Supprimer le surlignage sur mobile */
    touch-action: manipulation; /* Améliorer la réactivité tactile */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== STYLES DU MENU MOBILE ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #121212;
    overflow: hidden;
    transition: height 0.5s ease;
    z-index: 1000;
    display: flex;
    align-items: flex-start; /* Aligne le contenu en haut */
    justify-content: center;
}

.mobile-menu.active {
    height: 100vh;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.5rem; /* Réduit l'espace entre les liens */
    padding-top: 2rem; /* Réduit considérablement l'espace en haut */
}

.mobile-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link.active {
    color: var(--primary);
}

.mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-link:nth-child(4) {
    transition-delay: 0.4s;
}

body.menu-open {
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .nav-new.container {
        padding: 0.5rem 1.5rem;
    }
    
    .nav-links-new {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-new.container {
        height: 70px;
    }
    
    .header-new.scrolled .nav-new.container {
        height: 65px;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .nav-links-new {
        gap: 1.5rem;
    }
    
    .nav-link-new {
        font-size: 0.95rem;
    }
    
    .nav-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .nav-new.container {
        height: 65px;
        padding: 0.5rem 1.5rem;
    }
    
    .header-new.scrolled .nav-new.container {
        height: 60px;
    }
    
    .logo-image {
        height: 45px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo-new {
        z-index: 1002;
        display: flex !important;
    }
    
    .nav-links-new {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        top: 0;
        padding-top: 65px;
    }
    
    .mobile-menu-links {
        padding-top: 1rem; /* Encore moins d'espace en haut sur tablette */
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .nav-new.container {
        height: 60px;
        padding: 0.5rem 1rem;
    }
    
    .header-new.scrolled .nav-new.container {
        height: 55px;
    }
    
    .logo-image {
        height: 40px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo-new {
        z-index: 1002;
        display: flex !important;
    }
    
    .mobile-menu {
        padding-top: 60px;
    }
    
    .mobile-menu-links {
        padding-top: 0.5rem; /* Encore moins d'espace pour les mobiles */
        gap: 1.2rem; /* Espace réduit entre les liens sur mobile */
    }
    
    .mobile-link {
        font-size: 1.3rem; /* Taille de police légèrement réduite */
    }
    
    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
