:root { --ink: #1a1f1c; --muted: #5a635d; --line: #d9ddd6; --line-soft: #e6e9e3; --bg: #f4f5f2; --card: #fff;
  --accent: #0e5e57; --accent-dark: #09423d; --danger: #8e1f17; --danger-tint: #f7dedc; --ok: #1d5a33; --ok-tint: #e2f0e6;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
h1 { margin: 0; font-size: 24px; font-weight: 600; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px; }
.topbar__inner { max-width: 1100px; margin: 0 auto; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 600; }
.brand span { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 14px; }
.topbar__user { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; }
.page__head .muted { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpis li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpis li.is-alert { border-color: #e7b3ae; background: #fdf4f3; }
.kpi__value { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi__label { color: var(--muted); font-size: 13px; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.bars li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars__bar { width: 100%; max-width: 22px; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars__label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #eef0ec; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge--alert { background: var(--danger-tint); color: var(--danger); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.empty { margin: 0; color: var(--muted); }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth__card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); }
input { height: 44px; padding: 0 12px; border: 1px solid #c9cec6; border-radius: 6px; font: inherit; }
input:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 6px;
  border: 1px solid #c9cec6; background: #fff; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.button--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-dark); }
.button--ghost { background: transparent; }
.error { margin: 0; color: var(--danger); font-size: 14px; }
.messages { list-style: none; margin: 0; padding: 0; }
.message { padding: 10px 14px; border-radius: 8px; background: var(--ok-tint); color: var(--ok); }
.message--error { background: var(--danger-tint); color: var(--danger); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Hauteur des barres par paliers de 5 % (la CSP interdit les styles en ligne). */
.bars__bar[data-pct="0"] { height: 1%; }
.bars__bar[data-pct="5"] { height: 5%; }
.bars__bar[data-pct="10"] { height: 10%; }
.bars__bar[data-pct="15"] { height: 15%; }
.bars__bar[data-pct="20"] { height: 20%; }
.bars__bar[data-pct="25"] { height: 25%; }
.bars__bar[data-pct="30"] { height: 30%; }
.bars__bar[data-pct="35"] { height: 35%; }
.bars__bar[data-pct="40"] { height: 40%; }
.bars__bar[data-pct="45"] { height: 45%; }
.bars__bar[data-pct="50"] { height: 50%; }
.bars__bar[data-pct="55"] { height: 55%; }
.bars__bar[data-pct="60"] { height: 60%; }
.bars__bar[data-pct="65"] { height: 65%; }
.bars__bar[data-pct="70"] { height: 70%; }
.bars__bar[data-pct="75"] { height: 75%; }
.bars__bar[data-pct="80"] { height: 80%; }
.bars__bar[data-pct="85"] { height: 85%; }
.bars__bar[data-pct="90"] { height: 90%; }
.bars__bar[data-pct="95"] { height: 95%; }
.bars__bar[data-pct="100"] { height: 100%; }
