/* ============================================================
   LAROCHE - styles communs (complète Bootstrap 5)
   ============================================================ */

:root {
    --laroche-blue: #1565c0;
    --laroche-blue-dark: #0d47a1;
    --laroche-bg: #f4f7fb;
}

html, body {
    height: 100%;
    background-color: var(--laroche-bg);
}

/* ---------- Ecran de connexion ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--laroche-blue) 0%, var(--laroche-blue-dark) 100%);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
}

.login-card .card-header {
    border-radius: 1rem 1rem 0 0 !important;
    background: var(--laroche-blue);
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--laroche-blue);
}

/* ---------- Layout dashboard ---------- */
.sidebar {
    min-height: 100vh;
    background: var(--laroche-blue-dark);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, .8);
    border-radius: .5rem;
    margin-bottom: .25rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.sidebar-brand {
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e3e6ec;
}

.stat-card {
    border: none;
    border-radius: .75rem;
    color: #fff;
}

.main-content {
    padding: 1.25rem;
}

/* offcanvas sidebar on small screens is handled by Bootstrap classes in markup */

@media (max-width: 991.98px) {
    .main-content {
        padding: 1rem .75rem;
    }
}

.table-responsive-card table {
    margin-bottom: 0;
}

.action-btns .btn {
    margin-right: .25rem;
}

.badge-role {
    font-size: .75rem;
}
