:root {
  --fond: #0e0e12;
  --carte: #1a1a21;
  --texte: #ececf1;
  --doux: #8b8b96;
  --accent: #e50914;
  --ok: #22c55e;
  --ko: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  background: var(--fond);
  color: var(--texte);
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header { margin-bottom: 2rem; }

h1 { font-size: 2.5rem; font-weight: 800; }
h1 span { color: var(--accent); }

.resume { font-size: 1.2rem; font-weight: 600; margin-top: 0.5rem; }
.maj { color: var(--doux); font-size: 0.9rem; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.carte {
  background: var(--carte);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--doux);
}

.carte h2 { font-size: 1.1rem; }
.carte p { color: var(--doux); font-size: 0.9rem; }

.statut { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* Une seule classe change selon l'état : la couleur suit automatiquement */
.ok { border-left-color: var(--ok); }
.ok .statut { color: var(--ok); }
.ko { border-left-color: var(--ko); }
.ko .statut { color: var(--ko); }

footer { margin-top: 2rem; text-align: center; }
footer a { color: var(--doux); }