.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #0A1628;
    color: white;
    z-index: 100;
    display: flex;
    flex-direction: column;
    /* IMPORTANT: Ne plus mettre overflow-y: auto ici */
}

.sidebar-logo {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0; /* Empêche le logo de se comprimer */
}

.sidebar-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.sidebar-logo-text span {
    background: linear-gradient(135deg, #2563EB 0%, #06D6A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zone scrollable pour les menus */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1; /* Prend l'espace restant */
    overflow-y: auto; /* SCROLL ICI uniquement */
    overflow-x: hidden;
}

/* Style de la scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav li {
    position: relative;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-link.active {
    background: rgba(6, 214, 160, 0.15);
    color: #06D6A0;
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #06D6A0;
    z-index: -1;
}

.nav-link span {
    display: inline-block;
    width: 1.2rem;
    text-align: center;
}

/* Footer toujours visible en bas */
.sidebar-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0; /* Empêche le footer de se comprimer */
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #FCA5A5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #FEE2E2;
    transform: translateY(-2px);
}

.logout-btn span {
    display: inline-block;
    width: 1.2rem;
    text-align: center;
}
