:root { --brand: #7a2e5c; --brand-clair: #f7f0f4; }
body { background: #f6f6f8; font-size: .93rem; }
.bg-brand { background: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: #5f2347; color: #fff; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: var(--brand-clair); font-weight: 600; }
.ar { font-family: "Traditional Arabic", "Arabic Typesetting", Tahoma, Arial, sans-serif; font-size: 1.02em; }
.champ .code { font-family: Consolas, monospace; color: var(--brand); border: 1px solid #e3d3dd; }
.champ:hover { background: #fcfafb; }
.multi { columns: 2; column-gap: 1.5rem; }
@media (max-width: 768px) { .multi { columns: 1; } }
.kpi { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.table-sm td, .table-sm th { vertical-align: middle; }
.nav-tabs .nav-link.active { color: var(--brand); font-weight: 600; }
.badge-statut-Ouvert { background: #2e7d32; }
.badge-statut-Clos { background: #6c757d; }
.login-box { max-width: 420px; margin: 6vh auto; }
.barre { height: .9rem; background: var(--brand); border-radius: 2px; }
.nominatif { background: #fdf0e0; border-left: 4px solid #b85c00; }

/* Lisibilité */
body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; color: #212529; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.95); white-space: nowrap; font-weight: 500; }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.navbar-text { color: rgba(255,255,255,.95) !important; }
.table td.small, .table th.small { font-size: inherit; }
.form-text { color: #555; }
.libelles { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.ar { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Traditional Arabic", Arial, sans-serif; font-size: 1.05em; color: #212529; }
.ar-libelle { font-weight: 600; }
.navbar-text, .navbar .btn { white-space: nowrap; }
.libelles .ar-libelle { margin-left: auto; text-align: right; }
@media (max-width: 767.98px) {
  .champ > .col-md-1 { flex: 0 0 auto; width: auto; }
  .champ > .col-md-4 { flex: 1 1 0; width: auto; min-width: 0; }
}
.libelles { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: .75rem; align-items: start; }
.libelles .ar-libelle { margin-left: 0; }
@media (min-width: 992px) and (max-width: 1399.98px) { .navbar-text { display: none; } }
.champ .ar-libelle { display: block; }
