

/* --- LE BOUTON FLÈCHE (DÉCLENCHEUR) --- */


.sidebar-trigger {
    position: fixed;
    top: 50%;
    left: 0; /* Position fermée */
    transform: translateY(-50%);
    background-color: var(--tech-brown);
    color: white;
    width: 35px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease-in-out; /* Animation fluide */
    border: 2px solid white;
    border-left: none;
}

/* QUAND ACTIF : La flèche se déplace et suit le bord du menu (280px) */
.sidebar-trigger.active {
    left: 280px;
}

/* Rotation de la flèche quand le menu est ouvert */
.sidebar-trigger.active .arrow-icon {
    transform: rotate(180deg);
}

.sidebar-trigger:hover {
    background-color: var(--neon-purple);
}

.arrow-icon {
    font-size: 22px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* --- LA BARRE LATÉRALE (SIDEBAR) --- */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: -280px; /* Cachée à gauche par défaut */
    width: 280px;
    height: 100vh;
    background-color: var(--tech-brown);
    z-index: 1999;
    transition: left 0.3s ease-in-out; /* Même timing que la flèche */
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

/* État ouvert du menu */
.sidebar-nav.active {
    left: 0;
}

/* --- CONTENU DU MENU --- */
.sidebar-wrapper {
    width: 100%;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 22px 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--neon-purple);
}

/* Alignement des icônes par rapport au texte */
.icon-box {
    width: 45px; /* Largeur fixe pour aligner les textes */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
}

.icon-box img {
    width: 32px; /* Taille optimisée pour le texte */
    height: auto;
    filter: brightness(0) invert(1); /* Icônes en blanc */
    transition: transform 0.2s ease;
}

.nav-links li a:hover .icon-box img {
    transform: scale(1.15); /* Petit pop au survol */
}

/* Textes techniques (Déco) */
.sidebar-header, .sidebar-footer {
    padding: 25px 30px;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    font-family: monospace;
    text-transform: uppercase;
}