/* Supervision du serveur — thème clair par défaut, sombre selon le système ou le choix de l'utilisateur. */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb; --surface-3: #f2f4f7; --border: #e4e7ec; --border-strong: #d0d5dd;
  --text: #101828; --text-2: #344054; --muted: #667085; --faint: #98a2b3;
  --primary: #1d4ed8; --primary-hover: #1e40af; --primary-soft: #eff4ff; --on-primary: #ffffff;
  --ok: #067647; --ok-bg: #ecfdf3; --ok-line: #abefc6; --ok-dot: #17b26a;
  --warn: #b54708; --warn-bg: #fffaeb; --warn-line: #fedf89; --warn-dot: #f79009;
  --bad: #b42318; --bad-bg: #fef3f2; --bad-line: #fecdca; --bad-dot: #f04438;
  --info: #175cd3; --info-bg: #eff8ff; --info-line: #b2ddff; --info-dot: #2e90fa;
  --neutral-bg: #f2f4f7; --neutral: #475467;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06); --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -8px rgba(16, 24, 40, .18);
  --chart-grid: rgba(16, 24, 40, .07); --chart-1: #1d4ed8; --chart-2: #0e9384; --chart-3: #c11574;
  --radius: 12px; --radius-sm: 8px;
  --sidebar: 252px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg); color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17; --surface: #121722; --surface-2: #161c29; --surface-3: #1c2333; --border: #242c3d; --border-strong: #313a4f;
    --text: #f2f4f7; --text-2: #d0d5dd; --muted: #98a2b3; --faint: #667085;
    --primary: #528bff; --primary-hover: #84adff; --primary-soft: #172447; --on-primary: #0b0f17;
    --ok: #47cd89; --ok-bg: #0b2a1b; --ok-line: #135c37; --warn: #fdb022; --warn-bg: #2d1f07; --warn-line: #6a4510;
    --bad: #f97066; --bad-bg: #2f1210; --bad-line: #74211b; --info: #53b1fd; --info-bg: #0b2139; --info-line: #164c7e;
    --neutral-bg: #1c2333; --neutral: #98a2b3; --shadow-sm: none; --shadow: 0 0 0 1px rgba(255, 255, 255, .02); --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
    --chart-grid: rgba(255, 255, 255, .07); --chart-1: #528bff; --chart-2: #2ed3b7; --chart-3: #ee46bc; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --surface: #121722; --surface-2: #161c29; --surface-3: #1c2333; --border: #242c3d; --border-strong: #313a4f;
  --text: #f2f4f7; --text-2: #d0d5dd; --muted: #98a2b3; --faint: #667085;
  --primary: #528bff; --primary-hover: #84adff; --primary-soft: #172447; --on-primary: #0b0f17;
  --ok: #47cd89; --ok-bg: #0b2a1b; --ok-line: #135c37; --warn: #fdb022; --warn-bg: #2d1f07; --warn-line: #6a4510;
  --bad: #f97066; --bad-bg: #2f1210; --bad-line: #74211b; --info: #53b1fd; --info-bg: #0b2139; --info-line: #164c7e;
  --neutral-bg: #1c2333; --neutral: #98a2b3; --shadow-sm: none; --shadow: 0 0 0 1px rgba(255, 255, 255, .02); --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  --chart-grid: rgba(255, 255, 255, .07); --chart-1: #528bff; --chart-2: #2ed3b7; --chart-3: #ee46bc; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.small { width: 14px; height: 14px; }
.i.large { width: 22px; height: 22px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* --- Ossature ---------------------------------------------------------------------------- */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand span { display: block; color: var(--muted); font-size: 12px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.nav-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-3); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav a span { flex: 1; }
.count { min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; line-height: 18px; text-align: center; background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.count.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.sidebar-foot { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live.on i { background: var(--ok-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-dot) 22%, transparent); }
.live.off i { background: var(--bad-dot); }
.main { margin-left: var(--sidebar); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.topbar-title p { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.updated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-right: 6px; white-space: nowrap; }
.icon-btn.menu-btn { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.icon-btn:hover { background: var(--surface-3); }
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.menu { position: absolute; right: 0; top: 44px; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--text-2); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); text-decoration: none; }
.banner { display: flex; align-items: center; gap: 10px; margin: 16px 32px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); font-size: 13px; }
.view { padding: 24px 32px 56px; max-width: 1480px; outline: none; }
.loading-state { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Éléments ------------------------------------------------------------------------------ */
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: grid; gap: 16px; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 15px; font-weight: 650; }
.section-head p { color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-body { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .muted { font-size: 12px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 550; white-space: nowrap; box-shadow: var(--shadow-sm); }
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn.danger { background: var(--bad-dot); border-color: var(--bad-dot); color: #fff; }
.btn.danger:hover:not(:disabled) { filter: brightness(.95); }
.btn.ghost { border-color: transparent; background: none; box-shadow: none; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 30px; padding: 0; }
.btn .spinner { width: 14px; height: 14px; }
.input, .select { height: 36px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); min-width: 0; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.search { position: relative; }
.search .i { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.search .input { padding-left: 34px; width: 260px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 550; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.form-error { color: var(--bad); font-size: 13px; }
.segmented { display: inline-flex; padding: 2px; border-radius: var(--radius-sm); background: var(--surface-3); border: 1px solid var(--border); }
.segmented button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Pastilles d'état */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 550; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge.neutral { background: var(--neutral-bg); color: var(--neutral); border-color: var(--border); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.dot.ok { background: var(--ok-dot); } .dot.warn { background: var(--warn-dot); } .dot.bad { background: var(--bad-dot); } .dot.info { background: var(--info-dot); }

/* Bandeau d'état de la vue d'ensemble */
.status-hero { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.status-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; }
.status-icon .i { width: 24px; height: 24px; }
.status-icon.ok { background: var(--ok-bg); color: var(--ok); } .status-icon.warn { background: var(--warn-bg); color: var(--warn); } .status-icon.bad { background: var(--bad-bg); color: var(--bad); }
.status-hero h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.status-hero p { color: var(--muted); margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }

/* Indicateurs */
.kpi { padding: 16px 18px; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-label .i { color: var(--faint); }
.kpi-value { margin-top: 8px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi-sub { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.meter { height: 6px; margin-top: 12px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--primary); transition: width .4s ease; }
.meter i.warn { background: var(--warn-dot); } .meter i.bad { background: var(--bad-dot); } .meter i.ok { background: var(--ok-dot); }
.chart-box { position: relative; height: 220px; }
.chart-box.small { height: 160px; }

/* Listes */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 550; }
.list .sub { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.list .icon-wrap { margin-top: 1px; }
.icon-wrap.ok { color: var(--ok); } .icon-wrap.warn { color: var(--warn); } .icon-wrap.bad { color: var(--bad); } .icon-wrap.info { color: var(--info); }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.empty .i { width: 28px; height: 28px; color: var(--ok); display: block; margin: 0 auto 8px; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.right, th.right { text-align: right; }
.cell-title { font-weight: 550; }
.cell-sub { color: var(--muted); font-size: 12px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.wrap-cell { white-space: normal; min-width: 160px; max-width: 260px; }
.actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Barres de disponibilité (une case par heure) */
.uptime { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.uptime i { width: 5px; height: 100%; border-radius: 2px; background: var(--surface-3); }
.uptime i.ok { background: var(--ok-dot); } .uptime i.warn { background: var(--warn-dot); } .uptime i.bad { background: var(--bad-dot); }

/* Audit */
.score-card { display: flex; align-items: center; gap: 24px; padding: 22px 24px; }
.score-ring { position: relative; width: 112px; height: 112px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-ring .track { stroke: var(--surface-3); }
.score-ring .value { stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.score-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-ring[data-size="64"] { width: 64px; height: 64px; }
.score-ring[data-size="64"] strong { font-size: 18px; }
.score-ring[data-size="64"] circle { stroke-width: 12; }
.score-ring strong small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; text-align: center; margin-top: -6px; }
.tally { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.finding { border-top: 1px solid var(--border); }
.finding:first-child { border-top: 0; }
.finding summary { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary:hover { background: var(--surface-2); }
.finding summary .grow { flex: 1; min-width: 0; }
.finding summary .badge { margin-top: 1px; }
.finding summary .chev { margin-left: auto; color: var(--faint); transition: transform .2s; }
.finding[open] summary .chev { transform: rotate(180deg); }
.finding .detail { padding: 0 20px 16px 50px; display: grid; gap: 10px; }
.finding .detail h4 { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.cmd { display: block; padding: 8px 10px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence { margin: 0; padding-left: 18px; color: var(--text-2); }
.evidence li { overflow-wrap: anywhere; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.callout.info { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-line); }
.callout.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.callout.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }

/* Journaux */
.log-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.log-output { margin: 0; padding: 14px 16px; max-height: 64vh; overflow: auto; background: #0d1117; color: #d0d7de; border-radius: 0 0 var(--radius) var(--radius); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-output mark { background: #9e6a03; color: #fff; border-radius: 2px; }
.log-output .err { color: #ff7b72; } .log-output .wrn { color: #e3b341; }

/* Fenêtres */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); }
.modal { width: min(460px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; }
.modal h2 { font-size: 17px; font-weight: 650; }
.modal-body { margin-top: 8px; color: var(--text-2); display: grid; gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(760px, 100%); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer header h2 { font-size: 16px; }
.drawer header p { color: var(--muted); font-size: 12.5px; }
.drawer-body { flex: 1; overflow: auto; }
.drawer-body .log-output { max-height: none; min-height: 100%; border-radius: 0; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 420px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: rise .2s ease; }
.toast.error { background: var(--bad-dot); color: #fff; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* Compte */
.qr { width: 184px; height: 184px; padding: 8px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); }
.qr svg { width: 100%; height: 100%; }
.secret { font-size: 15px; letter-spacing: .08em; padding: 8px 10px; border-radius: 6px; background: var(--surface-3); display: inline-block; user-select: all; }
.code-input { width: 168px; font-size: 20px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.strength { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.strength i { display: block; height: 100%; transition: width .3s, background .3s; }

.scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .4); z-index: 25; }

@media (max-width: 1200px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .icon-btn.menu-btn { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .view { padding: 16px 16px 48px; }
  .banner { margin: 12px 16px 0; }
  .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .updated span, .user-btn #user-name, .user-btn .i { display: none; }
  .search .input { width: 100%; }
  .score-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .cols-4 { grid-template-columns: minmax(0, 1fr); } .status-hero { align-items: flex-start; } .finding .detail { padding-left: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* --- Connexion ----------------------------------------------------------------------------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; background: #0f1d3d; color: #e4e9f5; }
.login-aside::after { content: ""; position: absolute; inset: auto -20% -35% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 139, 255, .35), transparent 65%); }
.login-aside .brand { padding: 0; }
.login-aside .brand span { color: #9fb0d4; }
.login-aside blockquote { position: relative; z-index: 1; margin: 0; max-width: 440px; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.login-aside ul { position: relative; z-index: 1; list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: #b9c5e0; }
.login-aside li { display: flex; gap: 10px; align-items: center; }
.login-aside li .i { color: #84adff; }
.login-aside footer { position: relative; z-index: 1; color: #7c8db5; font-size: 12px; }
.login-main { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.login-form { width: min(380px, 100%); display: grid; gap: 18px; }
.login-form h1 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.login-form > p { color: var(--muted); margin-top: -10px; }
.login-form .input { height: 42px; }
.login-form .btn { height: 42px; }
.login-help { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .login-page { grid-template-columns: minmax(0, 1fr); } .login-aside { display: none; } }
