/* sidebar.css - Code copié depuis show.css */

/* Variables nécessaires pour la sidebar */
:root {
    --sidebar-bg: #1e293b;
    --sidebar-width: 260px;
    --text-color: #ffffff;
    --btn-primary-bg: #00a800;
    --btn-primary-hover: #068d06;
    --btn-primary-shadow: #006d00;
    --btn-secondary-bg: #475569;
    --btn-secondary-hover: #404b5d;
    --btn-secondary-shadow: #2f3946;
}

.sidebar, .sidebar * {
    box-sizing: border-box;
}

body.dark-mode {
    --sidebar-bg: #000000;       /* Noir pur en mode sombre */
    --text-color: #e0e0e0;       /* Texte légèrement grisé */

    /* Si vous voulez que les boutons changent aussi en mode sombre */
    --btn-primary-bg: #008d00;
    --btn-primary-shadow: #005600;
    --btn-primary-hover: #057905;

    --btn-secondary-bg: #3a4656;
    --btn-secondary-shadow: #252c37;
    --btn-secondary-hover: #2c3440;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; height: 100vh;
    z-index: 1000;
    border-right: 1px solid #334155;
    transition: background-color 0.3s ease;
    font-family: 'Segoe UI', sans-serif;/* Déjà là normalement */
    line-height: 1.5; /* Forcez une hauteur de ligne fixe */
    font-size: 0.9rem; /* Déjà là, vérifiez que c'est bien appliqué */
    box-sizing: border-box;
}

.auth-buttons a {
    text-decoration: none;
    display: block; /* Important pour que le lien prenne toute la largeur */
}

.logo {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}
.logo img { width: 38px; height: auto; }

.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.nav-menu a {
    padding: 14px 24px;
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 16px;
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.1); color: white; padding-left: 28px; }
.nav-menu i { width: 20px; text-align: center; }

.auth-section {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar-btn {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    display:flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: white;
    box-sizing: border-box;
    text-decoration: none;
}
.sidebar-btn:active { transform: scale(0.98); }

.user-profile { text-align: center; }
.user-profile p { font-size: 0.85rem; color: #94a3b8; margin: 0 0 5px 0; }


