/* --- EN-TÊTE SIDEBAR (LOGO RELIO) --- */
.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 20px 10px;
}

.brand-logo {
    width: 45px;       /* CONTRAINT LA TAILLE DU LOGO */
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(209, 0, 0, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-text h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.brand-text span {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 400;
}
/* --- 2. BARRE LATÉRALE GAUCHE (Menu) --- */
.sidebar-left { position: sticky; top: 20px; height: fit-content; }
.sidebar-left .logo { margin-bottom: 30px; padding-left: 10px; }
.sidebar-left .logo h2 { color: #333; font-weight: 700; }
.sidebar-left .logo span { font-size: 0.8em; color: var(--gray-text); }

.menu-items { list-style: none; background: var(--card-background); padding: 20px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.menu-items li { margin-bottom: 10px; }
.menu-items li a {
    display: flex; align-items: center; text-decoration: none; color: #555; font-weight: 600; font-size: 1rem;
    padding: 12px 20px; border-radius: 15px; border: 2px solid transparent; background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease;
    backface-visibility: hidden; transform: translateZ(0); 
}
.menu-items li a:hover { background-color: white; color: var(--primary-color); border-color: var(--primary-color); transform: translateX(5px); box-shadow: 0 4px 15px rgba(209, 0, 0, 0.1); }
.menu-items li a.active { background-color: white; color: var(--primary-color); border: 2px solid var(--primary-color); box-shadow: 0 5px 15px rgba(209, 0, 0, 0.2); transform: scale(1.02); }
.menu-items li a i { font-size: 1.4rem; min-width: 35px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s; color: #888; }
.menu-items li a.active i { color: var(--primary-color) !important; }
.menu-items li a:hover i { transform: scale(1.1) rotate(-5deg); color: var(--primary-color); }

#sidebar-avatar-icon.custom-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 18px; margin-left: 4px; vertical-align: middle; border: 2px solid transparent; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s; display: inline-block; }
.menu-items li a:hover #sidebar-avatar-icon.custom-avatar { transform: scale(1.3); border-color: var(--primary-color); }
.menu-items li a.active #sidebar-avatar-icon.custom-avatar { border-color: var(--primary-color); }
.logout a { color: var(--primary-color); margin-top: 20px; border-top: 1px solid #eee; }

/* Bouton Bug Sidebar */
.bug-btn {
    width: 100%; background-color: #ffebeb; color: var(--primary-color); border: 1px solid #ffcccc; padding: 12px; border-radius: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-family: inherit; transition: 0.2s; box-shadow: var(--box-shadow); margin-top: 80px;
}
.bug-btn:hover { background-color: #ffd1d1; transform: translateY(-2px); }
.bug-btn i { font-size: 1.2rem; }