/* --- STYLES GÉNÉRAUX DE L'INTERFACE --- */
.app-layout-inner { display: flex; height: 100%; width: 100%; }
.app-sidebar {
    width: 240px; flex-shrink: 0; background: linear-gradient(to top, #4b76d8, #4b47c2); color: white;
    display: flex; flex-direction: column; transition: transform 0.3s ease; z-index: 1031;
}
.app-sidebar-header { text-align: center; padding: 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.app-sidebar-nav { flex-grow: 1; padding: 0.5rem; overflow-y: auto; }
.nav-heading { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; padding: 1rem 1rem 0.5rem; }
.nav-link {
    display: flex; align-items: center; padding: 0.75rem 1rem; border-radius: 8px; color: rgba(255,255,255,0.8);
    font-weight: 500; font-size: 0.9rem; transition: all 0.2s ease; margin: 0.1rem 0;
}
.nav-link:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
.nav-link.active { background-color: rgba(255,255,255,0.2); color: white; font-weight: 600; }
.nav-link i { font-size: 1rem; width: 20px; text-align: center; margin-right: 1rem; }
.app-sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.app-content-main { flex-grow: 1; padding: 1.5rem; overflow-y: auto; background-color: #f4f7f6; }
.mobile-header { display: none; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1029; }

/* --- STYLE SCROLLBAR UNIFORMISÉ (CORRIGÉ) --- */
.app-sidebar-nav::-webkit-scrollbar, .app-content-main::-webkit-scrollbar { width: 8px; }
.app-sidebar-nav::-webkit-scrollbar-track, .app-content-main::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; }
.app-sidebar-nav::-webkit-scrollbar-thumb, .app-content-main::-webkit-scrollbar-thumb { background: rgba(136, 136, 136, 0.6); border-radius: 10px; }
.app-sidebar-nav::-webkit-scrollbar-thumb:hover, .app-content-main::-webkit-scrollbar-thumb:hover { background: rgba(100, 100, 100, 0.8); }
.app-sidebar-nav, .app-content-main { scrollbar-width: thin; scrollbar-color: rgba(136, 136, 136, 0.6) rgba(0,0,0,0.1); }


/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .app-layout-inner { flex-direction: column; }
    .app-sidebar { position: fixed; top: 0; left: 0; height: 100%; z-index: 1030; transform: translateX(-100%); }
    .app-sidebar.visible { transform: translateX(0); }
    .sidebar-overlay.visible { display: block; }
    .app-content-main { width: 100%; padding: 1rem; }
    .mobile-header {
        display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem;
        background-color: #fff; border-bottom: 1px solid #e0e0e0;
        border-radius: 0 0 1.25rem 1.25rem;
        margin-bottom: 1rem;
    }
}