/* Style technique neutre. L'habillage de la page cliente (marque, visuels)
   se pose par-dessus ; ici, juste un rendu lisible pour developper et tester,
   et une regie lisible au videoprojecteur. */

:root {
  --bg: #0f1115;
  --fg: #e8eaed;
  --muted: #9aa0a6;
  --card: #1a1d23;
  --line: #2a2e37;
  --accent: #4c8bf5;
  --ok: #34c759;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Page cliente ---------- */
.carte {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.carte h1 { font-size: 1.5rem; margin: 0; }
.sous { color: var(--muted); margin: 0; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ span { font-size: .85rem; color: var(--muted); }
.champ input {
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
}
button {
  padding: 12px 16px;
  font-size: 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.etat { font-size: .85rem; color: var(--muted); }

/* ---------- Regie ---------- */
.barre {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.barre h1 { font-size: 1.1rem; margin: 0; }
.compteur { color: var(--muted); font-variant-numeric: tabular-nums; }
.barre button { margin-left: auto; background: #333; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 16px 20px;
}
.fiche {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fiche.hors-ligne { opacity: .45; }
.corps { padding: 12px 14px; }
.ln {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--line);
  font-size: .9rem;
}
.ln:last-child { border-bottom: 0; }
.ln .k { color: var(--muted); white-space: nowrap; }
.ln .v { text-align: right; word-break: break-word; }
.ln .v em { color: var(--ok); font-style: normal; }
.ln .v code { font-size: .8rem; }
.carte-gps { height: 160px; display: none; }
