/* Voidlabs — page de statut. Mêmes couleurs que voidlabs.fr. */
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/assets/nunito-600.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/nunito-800.ttf") format("truetype"); }

:root {
  --bg: #07060f;
  --card: #110e24;
  --line: rgba(160, 140, 255, 0.14);
  --line-2: rgba(160, 140, 255, 0.3);
  --text: #f0eeff;
  --muted: #a7a1cf;
  --faint: #6c6796;
  --violet: #9a6cff;
  --cyan: #5fe8f0;
  --ok: #5fe8f0;
  --degraded: #ffc24a;
  --down: #ff5c7a;
  --stopped: #6c6796;
  --none: rgba(160, 140, 255, 0.12);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg) radial-gradient(900px 420px at 50% -120px, rgba(154, 108, 255, .16), transparent 70%) no-repeat; color: var(--text); font: 600 16px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, b { font-weight: 800; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

.top { display: flex; align-items: center; gap: 20px; max-width: 920px; margin: 0 auto; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand img { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a:not(.pill) { color: var(--muted); }
.top nav a:not(.pill):hover { color: var(--text); }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.pill:hover { border-color: var(--cyan); background: rgba(95, 232, 240, .06); }

.head { padding: 56px 0 34px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.overall { display: flex; align-items: center; gap: 16px; margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: -.5px; }
.overall .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--faint)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c, var(--faint)) 18%, transparent), 0 0 30px var(--c, transparent); animation: blink 2.4s infinite; }
.overall.loading .dot { animation: none; box-shadow: none; }
.updated { margin: 12px 0 0; color: var(--faint); font-size: 14px; }
@keyframes blink { 50% { opacity: .45; } }

.s-ok { --c: var(--ok); }
.s-degraded { --c: var(--degraded); }
.s-down { --c: var(--down); }
.s-stopped { --c: var(--stopped); }
.s-unknown, .s-none { --c: var(--none); }

.group { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.group h2 { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.svc { padding: 18px 22px 16px; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc-top { display: flex; align-items: flex-start; gap: 14px; }
.svc-name { margin: 0; font-size: 18px; line-height: 1.3; }
.svc-name a:hover { color: var(--cyan); }
.svc-desc { margin: 2px 0 0; color: var(--faint); font-size: 14px; }
.badge { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); font-size: 13px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.badge.s-unknown { color: var(--faint); border-color: var(--line-2); }
.badge.s-unknown::before { background: var(--faint); }

.bars { display: flex; gap: 2px; height: 34px; margin-top: 14px; }
.bar { flex: 1; min-width: 0; border-radius: 3px; background: var(--c); opacity: .9; transition: opacity .15s, transform .15s; }
.bar.s-ok { opacity: .55; }
.bar:hover { opacity: 1; transform: scaleY(1.12); }
.bar.s-none { background: var(--none); }
.scale { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--faint); font-size: 12px; }
.scale b { color: var(--muted); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; color: var(--faint); font-size: 13px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; background: var(--c); vertical-align: -1px; }

.incidents { padding-top: 56px; }
.incidents h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.3px; }
.incidents ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.incidents li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.incidents li.empty { color: var(--muted); border-style: dashed; background: none; }
.incidents .badge { margin-left: 0; }
.incidents .what { font-weight: 800; }
.incidents .when { margin-left: auto; color: var(--faint); font-size: 14px; }
.incidents .ongoing { color: var(--c); }

.tip { position: fixed; z-index: 20; max-width: 240px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(13, 11, 28, .96); color: var(--muted); font-size: 13px; line-height: 1.45; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.tip b { display: block; color: var(--text); }

.error { padding: 18px 22px; border: 1px solid rgba(255, 92, 122, .4); border-radius: 14px; color: var(--muted); }

footer { margin-top: 90px; padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .brand { font-size: 17px; color: var(--text); }
footer .brand img { width: 26px; height: 26px; }
footer a:hover { color: var(--text); }

/* Téléphone : 30 derniers jours. */
.far30 { display: none; }
@media (max-width: 640px) {
  .bar.old { display: none; }
  .scale .far90 { display: none; }
  .scale .far30 { display: inline; }
  .top nav a:not(.pill) { display: none; }
  .svc { padding: 16px; }
  .group h2 { padding: 12px 16px; }
  .head { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
