:root {
  --bg: #0d0f14;
  --bg-1: #141720;
  --line: #2a2f3a;
  --texte: #e8eaf0;
  --texte-2: #6a7280;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
main { width: 100%; max-width: 520px; text-align: center; }
h1 { font-size: 20px; font-weight: 650; letter-spacing: 0.01em; }
.sub { color: var(--texte-2); font-size: 12px; margin: 4px 0 28px; text-transform: uppercase; letter-spacing: 0.14em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--texte);
  text-decoration: none;
  transition: border-color 0.12s, transform 0.12s, opacity 0.12s;
}
.tuile:hover { border-color: var(--c); transform: translateY(-2px); }
.tuile.down { opacity: 0.55; }
.tuile .pastille {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 24px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
}
.tuile .nom { font-weight: 600; font-size: 14px; }
.tuile .etat { font-size: 11px; color: var(--texte-2); font-variant-numeric: tabular-nums; }

.err { color: #e5544f; font-size: 13px; }

@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
