/* --- CONFIGURATION NAVBAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    /* Un peu plus d'espace au départ */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-container {
    /* Élargissement ici */
    max-width: 1800px;
    width: 95%;
    /* Utilise 95% de la largeur de l'écran si l'écran est petit */
    margin: 0 auto;
    padding: 0 40px;
    /* Espace sur les bords intérieurs */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO --- */
.logo {
    font-size: 1.7rem;
    /* Légèrement plus grand pour équilibrer l'espace */
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
    /* Ton bleu #00d4ff */
    text-shadow: 0 0 15px var(--primary-glow);
}

/* --- LIENS --- */
.nav-links {
    display: flex;
    gap: 50px;
    /* On augmente l'espace entre chaque lien */
    list-style: none;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #a0a7b1;
    font-weight: 600;
    font-size: 1rem;
    /* Texte un poil plus grand */
    transition: 0.3s;
    position: relative;
    padding: 10px 0;
}

.nav-item:hover,
.dropdown:hover .dropbtn {
    color: #fff;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-item:hover::after {
    width: 100%;
}

/* --- DROPDOWN (Le gros morceau) --- */
.dropdown {
    position: relative;
}

.dropbtn i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    width: 350px;
    /* Dropdown plus généreux */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #151921;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.2s;
}

.drop-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.discord-box {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
}

.drop-text strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.drop-text span {
    font-size: 0.75rem;
    color: #6a727d;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* --- BOUTON CLIENT --- */
.btn-client {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 12px 28px;
    /* Bouton plus large */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-client:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* ========================================================================== RESPONSIVE NAVBAR (COMPLÉMENT) ========================================================================== */
/* --- BOUTON BURGER (Caché sur PC) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    margin-left: 20px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ADAPTATION TABLETTE (max 1100px) --- */
@media (max-width: 1100px) {
    .nav-links {
        gap: 25px;
        /* On réduit l'espace entre les liens */
    }

    .nav-container {
        padding: 0 25px;
    }
}

/* --- MODE MOBILE (max 992px) --- */
@media (max-width: 992px) {
    header {
        padding: 15px 0;
        /* Plus compact sur mobile */
    }

    header,
    .nav-container {
        overflow: visible !important;
    }

    .menu-toggle {
        display: flex;
        /* Force l'affichage du bouton sur mobile */
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    /* Transformation de la liste en menu latéral */
    /* .nav-links { position: fixed; top: 0; right: -100%; /* Caché hors écran width: 300px; height: 100vh; background: #0b0e14; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 100px 40px; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); border-left: 1px solid rgba(0, 212, 255, 0.1); z-index: 1050; gap: 30px; display: flex; } */
    .nav-links {
        display: flex !important;
        /* Force le mode flex même si un display:none traîne */
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        /* Position de départ (caché) */
        width: 300px !important;
        height: 100vh !important;
        background: #0b0e14 !important;
        /* Couleur solide pour être sûr de le voir */
        flex-direction: column !important;
        padding: 100px 30px !important;
        transition: transform 0.4s ease-in-out, right 0.4s ease-in-out !important;
        z-index: 99999 !important;
        /* Au-dessus de tout */
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    }

    /* État ouvert (activé via JS) */
    .nav-links.active {
        right: 0 !important;
        /* C'EST CETTE LIGNE QUI MANQUAIT */
        background: #0b0e14 !important;
        /* On remet la couleur sombre au lieu du rouge */
    }

    .nav-item {
        font-size: 1.2rem;
        width: 100%;
    }

    /* On cache le bouton client de la barre principale pour le mettre dans le menu mobile si besoin */
    .nav-actions .btn-client {
        display: none;
        /* Cache le bouton sur la barre */
    }

    /* --- DROPDOWNS EN MOBILE --- */
    .dropdown-content {
        position: static;
        /* On le remet dans le flux */
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 10px 0 0 15px;
        display: none;
        /* On le cache par défaut */
        border: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        padding-left: 15px;
    }

    .dropbtn i {
        float: right;
    }

    /* Animation du bouton Burger */
    .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);
    }
}

/* --- PETITS MOBILES (max 480px) --- */
@media (max-width: 480px) {
    .nav-links {
        width: 85%;
        /* Presque toute la largeur */
    }

    .logo {
        font-size: 1.4rem;
    }
}