/* =========================================
   HEADER
   ========================================= */
#header.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #0d0e15;
    z-index: 1000;
}

#header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

#header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#header .logo-icon {
    height: 28px; 
    width: auto;
}

#header .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#header .main-nav .nav-list {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header .nav-item {
    text-decoration: none;
    color: #a0a0b5;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative; 
    padding-bottom: 5px; 
}

#header .nav-item:hover, 
#header .nav-item.active {
    color: #ffffff;
}

#header .nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #38bdf8; 
    transition: width 0.3s ease; 
}

#header .nav-item:hover::after,
#header .nav-item.active::after {
    width: 100%; 
}

#header .action-buttons {
    display: flex;
    align-items: center;
    gap: 12px; /* Réduit pour rapprocher les deux boutons réseaux sociaux */
}

#header .btn-login {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

#header .btn-login:hover {
    opacity: 0.7;
}

/* Modification pour s'adapter aux boutons réseaux sociaux */
#header .btn-signup.glass-effect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 16px; /* Padding réduit pour faire de jolis boutons compacts */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2), 
                inset 0 0 10px rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

#header .btn-signup.glass-effect:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5), 
                inset 0 0 15px rgba(138, 43, 226, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px); /* Petit effet de soulèvement au survol */
}

/* =========================================
   SÉPARATEUR NÉON
   ========================================= */
#header .neon-separator {
    width: 100%;
    height: 1px;
    background-color: rgba(138, 43, 226, 0.4); 
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
}

#header .neon-light {
    position: absolute;
    top: 0;
    left: -100px;
    width: 100px; 
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(138, 43, 226, 1), 
                0 0 5px rgba(255, 255, 255, 0.8);
    animation: neon-slide 15s linear infinite; 
}

@keyframes neon-slide {
    0% { left: -100px; }
    100% { left: 100%; }
}

/* =========================================
   ANIMATION AU SCROLL DU MAIN HEADER
   ========================================= */
#header {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   MENU CAPSULE
   ========================================= */
#scrolled-header {
    position: fixed;
    bottom: 30px; 
    top: auto; 
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
    z-index: 1001;
    padding: 1px; 
    border-radius: 12px; 
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#scrolled-header.is-active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#scrolled-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2000px;
    height: 2000px;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgba(138, 43, 226, 0.2), 
        rgba(138, 43, 226, 1), 
        rgba(255, 255, 255, 0.8)
    );
    animation: rotate-border 8s linear infinite;
    z-index: -1;
}

@keyframes rotate-border {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.scrolled-nav-inner {
    background-color: #0d0e15; 
    border-radius: 10px; 
    padding: 10px 40px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); 
}

#scrolled-header .nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#scrolled-header .nav-item {
    color: #a0a0b5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

#scrolled-header .nav-item:hover,
#scrolled-header .nav-item.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* =========================================
   RESPONSIVE & BURGER MENU
   ========================================= */
.burger-menu, .mobile-buttons {
    display: none;
}

@media (max-width: 992px) {
    #header .header-container {
        padding: 0 15px; 
    }

    #scrolled-header {
        display: none !important;
    }

    .burger-menu {
    /* Tes propriétés actuelles */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;

    /* RÉINITIALISATION DU BOUTON */
    background: none;    /* Enlève le fond blanc/gris */
    border: none;        /* Enlève la bordure par défaut */
    padding: 0;          /* Enlève le padding interne */
    outline: none;       /* Enlève le contour au clic */
    appearance: none;    /* Force l'annulation du style système */
}

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

    .burger-menu.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger-menu.open span:nth-child(2) { opacity: 0; }
    .burger-menu.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    #header .main-nav {
        position: fixed;
        top: 0;
        left: -100%; 
        right: auto;
        width: 80%;
        height: 100vh;
        background-color: #0d0e15;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease; 
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
        transform: none; 
    }

    #header .main-nav.open {
        left: 0; 
    }

    #header .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    #header .nav-item {
        font-size: 1.5rem;
    }

    /* Correction des boutons sur mobile */
    .mobile-buttons {
        display: flex;
        flex-direction: row; /* On les met côte à côte au lieu de les empiler */
        justify-content: center;
        gap: 15px;
        margin-top: 40px;
        width: 100%;
    }

    /* On donne une forme plus "carrée" aux boutons qui n'ont que des icônes sur mobile */
    .mobile-buttons .btn-signup.glass-effect {
        padding: 12px 18px;
        font-size: 1.3rem;
    }

    #header .action-buttons {
        display: none; 
    }

    #header .logo-icon {
        height: 24px;
    }
}