:root {
    --avocel-bleu: #1f3a5f;
    --avocel-bleu-fonce: #162a45;
    --avocel-accent: #c9a227;
}

body { background: #f4f6f9; }
.min-w-0 { min-width: 0; }

.logo { font-weight: 700; color: #fff; letter-spacing: .02em; }
.public-wrap .logo { color: var(--avocel-bleu); }
.public-wrap { background: linear-gradient(160deg, #eef2f7 0%, #dfe7f1 100%); }
.public-card { max-width: 460px; }

/* Barre latérale */
/* !important : Bootstrap force un fond transparent sur .offcanvas-lg à partir de 992 px */
.sidebar { background-color: var(--avocel-bleu) !important; color: #fff; }
.sidebar-pied a { color: rgba(255,255,255,.6); text-decoration: none; white-space: nowrap; }
.sidebar-pied a:hover { color: #fff; }
@media (min-width: 992px) {
    .sidebar { width: 240px; flex: 0 0 240px; position: sticky; top: 0; height: 100vh; }
}
.sidebar .offcanvas-header { background: var(--avocel-bleu-fonce); }
.sidebar .nav-link {
    display: flex; align-items: center; gap: .65rem;
    color: rgba(255,255,255,.78); border-radius: .4rem; padding: .55rem .75rem; margin-bottom: 2px;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,.15); color: #fff; box-shadow: inset 3px 0 0 var(--avocel-accent); }
.sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 1rem .75rem .35rem; }

.topbar { position: sticky; top: 0; z-index: 1010; }

/* Cartes statistiques */
.stat-card { border: 0; border-left: 4px solid var(--avocel-bleu); }
.stat-card .valeur { font-size: 1.75rem; font-weight: 700; line-height: 1; }

.card { border-color: #e3e8ef; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table-hover tbody tr[data-href] { cursor: pointer; }

/* Fiches : libellés / valeurs en flexbox */
.fiche-ligne { display: flex; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed #e3e8ef; }
.fiche-ligne:last-child { border-bottom: 0; }
.fiche-ligne .lib { flex: 0 0 40%; color: #6c757d; }
.fiche-ligne .val { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.note { border-left: 3px solid var(--avocel-accent); background: #fffdf5; }
.btn-primary { --bs-btn-bg: var(--avocel-bleu); --bs-btn-border-color: var(--avocel-bleu);
               --bs-btn-hover-bg: var(--avocel-bleu-fonce); --bs-btn-hover-border-color: var(--avocel-bleu-fonce); }
