:root {
  --fond: #11131a;
  --carte: #1a1d28;
  --trait: #2c3040;
  --texte: #e6e8ef;
  --doux: #9aa0b4;
  --accent: #6ea8fe;
  --alerte: #ff6b6b;
  --manque: #f0a53e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.enveloppe { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem; }

h1 { font-size: 1.45rem; margin: 0 0 .25rem; }
.sous-titre { color: var(--doux); margin: 0 0 1.5rem; }

.entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }

.carte {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 2rem;
}
.carte--etroite { max-width: 380px; margin: 8vh auto; }

label { display: block; margin: 1rem 0 .35rem; font-size: .85rem; color: var(--doux); }

input[type="text"], input[type="password"] {
  width: 100%;
  padding: .6rem .7rem;
  background: #0d0f16;
  border: 1px solid var(--trait);
  border-radius: 7px;
  color: var(--texte);
  font-size: .95rem;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.champ-mot-de-passe { position: relative; }
.champ-mot-de-passe button {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--doux);
  font-size: .75rem; cursor: pointer; padding: .25rem .4rem;
}

button[type="submit"] {
  width: 100%; margin-top: 1.5rem; padding: .65rem;
  background: var(--accent); color: #0d0f16;
  border: 0; border-radius: 7px; font-weight: 600; font-size: .95rem;
  cursor: pointer;
}
button[type="submit"]:disabled { background: var(--trait); color: var(--doux); cursor: wait; }

button.discret {
  width: auto; margin: 0; padding: .4rem .7rem;
  background: none; border: 1px solid var(--trait); color: var(--doux);
  border-radius: 7px; font-size: .8rem; font-weight: 400; cursor: pointer;
}

.alerte {
  margin: 1rem 0 0; padding: .6rem .75rem;
  background: rgba(255,107,107,.1);
  border: 1px solid rgba(255,107,107,.35);
  border-radius: 7px; color: var(--alerte); font-size: .85rem;
}
.alerte--bloquante { color: var(--manque); background: rgba(240,165,62,.1); border-color: rgba(240,165,62,.35); }

.indice { margin: .4rem 0 0; font-size: .78rem; color: var(--manque); }

.avertissement {
  margin: 1.5rem 0; padding: .85rem 1rem;
  background: rgba(110,168,254,.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  color: var(--doux); font-size: .88rem;
}

table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .88rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--trait); }
th { color: var(--doux); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
td.source { color: var(--doux); font-size: .78rem; }
.manquant { color: var(--manque); }

.note { margin-top: 1.5rem; color: var(--doux); font-size: .82rem; }

code {
  background: #0d0f16; padding: .1rem .35rem; border-radius: 4px;
  font-size: .85em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Dashboard phase 6 ─────────────────────────────────────────────────── */
.nav-pages { display: flex; gap: .75rem; align-items: center; }
.nav-pages a {
  color: var(--doux); text-decoration: none; font-size: .85rem;
  padding: .35rem .6rem; border: 1px solid var(--trait); border-radius: 7px;
}
.nav-pages a:hover { color: var(--texte); border-color: var(--accent); }

.badge {
  display: inline-block; padding: .3rem .6rem; border-radius: 6px;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; margin: .5rem 0 0;
}
.badge--ok { background: rgba(80,200,120,.12); color: #50c878; border: 1px solid rgba(80,200,120,.4); }
.badge--alerte { background: rgba(240,165,62,.12); color: var(--manque); border: 1px solid rgba(240,165,62,.4); }

.grille { display: flex; gap: .3rem; }
.boule {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: #0d0f16; border: 1px solid var(--accent);
  font-variant-numeric: tabular-nums; font-size: .85rem;
}
h2 { font-size: 1.05rem; margin: 2rem 0 .5rem; }
ul { color: var(--doux); line-height: 1.9; }

.entete-droite { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.entete-droite .nav-pages { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .entete { flex-direction: column; align-items: stretch; }
  .entete-droite { align-items: stretch; }
  .nav-pages { justify-content: flex-start; }
}

/* ── Habillage « Loterie Nationale » ────────────────────────────────────────
   Bleu officiel #001367 relevé sur leurs propres boules pendant la
   reconnaissance (style inline `background-color: rgb(0,19,103)`).
   Codes couleurs seulement — aucun logo, aucune marque reproduite. */
:root {
  --ln-bleu: #001367;
  --ln-bleu-clair: #1b3a8c;
  --ln-or: #f5b52a;
  --ok: #4ec97a;
}

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.carte-stat {
  background: linear-gradient(160deg, var(--ln-bleu) 0%, #0a1c4d 100%);
  border: 1px solid var(--ln-bleu-clair); border-radius: 12px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem;
}
.carte-stat .etiquette { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #9fb0dd; }
.carte-stat .valeur { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.carte-stat .detail { font-size: .76rem; color: #8fa0cd; }

.bloc-grille {
  background: linear-gradient(160deg, var(--ln-bleu) 0%, #0a1c4d 100%);
  border: 1px solid var(--ln-bleu-clair); border-radius: 12px;
  padding: 1.4rem; margin: 1rem 0; text-align: center;
}
.grille--large { justify-content: center; gap: .55rem; margin-bottom: .8rem; }
.boule--lotto {
  width: 3rem; height: 3rem; background: #fff; color: var(--ln-bleu);
  border: none; font-size: 1.15rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.boule--petite { width: 1.6rem; height: 1.6rem; font-size: .72rem;
  background: #fff; color: var(--ln-bleu); border: none; }
.grilles-10 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .55rem; margin: 1rem 0; }
.grilles-10 .grille { gap: .25rem; padding: .45rem .55rem; background: #0d0f16;
  border: 1px solid var(--trait); border-radius: 8px; justify-content: center; }

.avertissement--fort { border-left-color: var(--ln-or); background: rgba(245,181,42,.08); color: var(--texte); }
.ok { color: var(--ok); }
