/* CLIKSPAM — page de statut (status.clikspam.fr). Aucune ressource externe ; couleurs
   alignées sur le site vitrine (site/public/assets/site.css). */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #55626f;
  --border: #d9e0e7;
  --brand: #0f6e8c;
  --ok: #1d7f49;
  --ok-bg: #e3f4ea;
  --danger: #b8322a;
  --danger-bg: #fbe7e5;
  --warn: #a65500;
  --warn-bg: #fdf0e1;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151c;
    --surface: #16212b;
    --text: #e3eaf1;
    --muted: #9fb0c0;
    --border: #2a3a49;
    --brand: #4fb6d6;
    --ok: #4cc584;
    --ok-bg: #12301f;
    --danger: #f0776c;
    --danger-bg: #3a1714;
    --warn: #f0a24a;
    --warn-bg: #3a2610;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.brand {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .08em;
}

h1 { margin: 4px 0 24px; font-size: 1.8rem; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 20px;
}

.overall {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.overall.ok { background: var(--ok-bg); color: var(--ok); }
.overall.ko { background: var(--danger-bg); color: var(--danger); }
.overall.unknown { background: var(--warn-bg); color: var(--warn); }

.notice { border-color: var(--warn); }
.notice p { margin: 0 0 8px; overflow-wrap: anywhere; }

.components, .history { list-style: none; margin: 0; padding: 0; }

.components li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.components li:first-child { border-top: 0; }
.components .state { font-weight: 600; }
.components .ok .state { color: var(--ok); }
.components .ko .state { color: var(--danger); }
.components .detail { flex-basis: 100%; margin: 0; color: var(--muted); }

.history li { padding: 6px 0; border-top: 1px solid var(--border); }
.history li:first-child { border-top: 0; }
.history time { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

.meta, footer { color: var(--muted); font-size: .9rem; }
footer a { color: var(--brand); }
