:root {
  --bg: #f5f6f8; --card: #fff; --text: #1d2330; --muted: #6b7280; --line: #e3e6eb;
  --accent: #0b5cad; --vert: #1f9d55; --orange: #e08a00; --rouge: #d64545; --gris: #9aa1ab;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: #14213d; color: #fff; }
header.top a { color: #dfe7f5; }
header.top .brand { font-weight: 700; color: #fff; font-size: 17px; }
header.top nav { display: flex; gap: 18px; flex: 1; }
header.top .logout { display: flex; gap: 10px; align-items: center; margin: 0; }
header.top .muted { color: #aab4c8; }
main { padding: 20px 24px 48px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 24px; margin: 4px 0 12px; display: flex; align-items: center; gap: 10px; }
h2 { font-size: 17px; margin: 18px 0 8px; }
.card h2 { margin-top: 0; }
.heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.counts { display: flex; gap: 16px; }
.count { display: inline-flex; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; }
.empty { padding: 24px; background: var(--card); border: 1px dashed var(--line); border-radius: 8px; }
.flash { padding: 10px 14px; background: #e8f1fb; border: 1px solid #bcd6f2; border-radius: 6px; }
.flash.warn { background: #fff5e0; border-color: #f2d49b; }
.error { color: var(--rouge); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: #fafbfc; }
th a { color: inherit; }
table.park { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.park tbody tr:hover { background: #f8fafc; }
td.bad { color: var(--rouge); font-weight: 600; }
td.warn, span.warn { color: var(--orange); font-weight: 600; }
tr.muted td { color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; background: var(--gris); flex: none; }
.dot.big { width: 16px; height: 16px; }
.dot.vert { background: var(--vert); } .dot.orange { background: var(--orange); } .dot.rouge { background: var(--rouge); }
.dot.attente, .dot.inactif { background: var(--gris); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 14px 0; }
.card table { background: transparent; }
.card.status-vert { border-left: 5px solid var(--vert); }
.card.status-orange { border-left: 5px solid var(--orange); }
.card.status-rouge { border-left: 5px solid var(--rouge); }
.card.status-attente, .card.status-inactif { border-left: 5px solid var(--gris); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 14px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.filters { display: flex; gap: 8px; margin: 8px 0 14px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; }
.filters input[type=search] { min-width: 280px; }
button, .button { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; display: inline-block; }
.button:hover { text-decoration: none; }
.button.secondary { background: #fff; color: var(--accent); }
button.danger { background: #fff; color: var(--rouge); border-color: var(--rouge); }
button.link { background: none; border: none; color: #dfe7f5; padding: 0; }
.actions { display: flex; gap: 10px; align-items: center; }
.form { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; }
.login { max-width: 360px; margin: 60px auto; background: var(--card); padding: 24px; border: 1px solid var(--line); border-radius: 10px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; }
code.key { font-size: 14px; padding: 6px 8px; background: #f1f3f6; border-radius: 4px; word-break: break-all; }
span.bad { color: var(--rouge); font-weight: 600; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px; font-size: 12px; background: #e8eef8; color: #3a5a8c; vertical-align: 1px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.big-number { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.big-number .unit { font-size: 15px; font-weight: 400; color: var(--muted); }
svg.bars { width: 100%; max-width: 900px; height: auto; display: block; }
svg.bars .bar { fill: var(--accent); }
svg.bars g:hover .bar { fill: #084a8c; }
svg.bars .hit { fill: transparent; }
svg.bars .axis { stroke: #c9ced6; stroke-width: 1; }
svg.bars .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
svg.bars .tick { font-size: 11px; fill: var(--muted); }
.filters form { margin: 0; }
table.roles input, table.roles select { padding: 4px 6px; font-size: 13px; }
table.roles input.short { width: 70px; }
.form input.short { width: 90px; }
fieldset.card { margin: 0; }
