/* La feuille du site — la page d'accueil, la confidentialité, l'assistance.
   Les mêmes jetons de couleur que l'application : le site et le jeu doivent se
   ressembler au pixel près, sinon l'un a l'air d'être la copie de l'autre. */
:root {
  /* Les mêmes jetons que l'application : le site et le jeu doivent se
     ressembler au pixel près, sinon l'un a l'air d'être la copie de l'autre. */
  --bg: #0f1116;
  --surface: #171a22;
  --surface-2: #1e222c;
  --border: #2a2f3c;
  --text: #e9ebf2;
  --muted: #99a1b3;
  --accent: #6366f1;
  --accent-soft: #6366f133;
  --gold: #f5c518;
  --ok: #34d399;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.enveloppe { width: min(1060px, 100% - 40px); margin-inline: auto; }

/* --- En-tête -------------------------------------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.entete .enveloppe {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
}
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.entete nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.entete nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.entete nav a:hover { color: var(--text); }
@media (max-width: 720px) { .entete nav a.lien-menu { display: none; } }

/* --- Boutons -------------------------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-weight: 650; text-decoration: none;
  white-space: nowrap;
}
.bouton-primaire { background: var(--accent); border-color: transparent; color: #fff; }
.bouton-primaire:hover { filter: brightness(1.08); }
.bouton:hover { border-color: var(--accent); }
.bouton-petit { padding: 9px 16px; font-size: 15px; }

/* --- Hero ----------------------------------------------------------------- */

.hero { padding: 74px 0 60px; text-align: center; }
.hero-logo { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 18px 50px #0008; }
h1 {
  margin: 26px 0 0;
  font-size: clamp(34px, 6.4vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
}
.hero-sous {
  margin: 18px auto 0; max-width: 40ch;
  font-size: clamp(17px, 2.4vw, 21px); color: var(--muted);
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

.chiffres {
  margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  list-style: none; padding: 0;
}
.chiffres li {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.chiffres b { display: block; font-size: 28px; line-height: 1.1; }
.chiffres span { color: var(--muted); font-size: 14.5px; }

/* --- Sections ------------------------------------------------------------- */

section { padding: 62px 0; border-top: 1px solid var(--border); }
h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; }
.chapo { margin: 0 0 32px; max-width: 62ch; color: var(--muted); }

.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.carte {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.carte h3 { margin: 0 0 8px; font-size: 18px; }
.carte p { margin: 0; color: var(--muted); font-size: 15.5px; }
.carte .emoji { font-size: 26px; display: block; margin-bottom: 10px; }

ol.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
ol.etapes li {
  counter-increment: etape;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
ol.etapes li::before {
  content: counter(etape);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 999px; background: var(--accent-soft); color: #c7c9ff;
  font-weight: 800;
}
ol.etapes h3 { margin: 0 0 6px; font-size: 18px; }
ol.etapes p { margin: 0; color: var(--muted); font-size: 15.5px; }

.themes { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.themes li {
  padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 15px;
}

.prix { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prix article { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prix article.en-avant { border-color: var(--accent); }
.prix .montant { font-size: 30px; font-weight: 800; }
.prix ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.prix li { margin-bottom: 6px; }

details.question {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 18px 22px; margin-bottom: 10px;
}
details.question summary { cursor: pointer; font-weight: 650; }
details.question p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }

.rappel {
  margin-top: 40px; padding: 34px; text-align: center;
  border: 1px solid var(--accent); border-radius: 20px;
  background: linear-gradient(160deg, #241f4d 0%, var(--surface) 70%);
}
.rappel h2 { margin-bottom: 8px; }

footer { border-top: 1px solid var(--border); padding: 34px 0 54px; color: var(--muted); font-size: 14.5px; }
footer .enveloppe { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { color: var(--muted); }
footer .droite { margin-left: auto; }

/* --- Les pages de texte : confidentialité, assistance -------------------- */

/* Une politique de confidentialité se lit mal en pleine largeur. On la borne à
   une longueur de ligne confortable, et on laisse respirer les titres : ce sont
   eux qui permettent de retrouver le paragraphe qu'on cherche. */
.texte { padding: 54px 0 70px; }
.texte .enveloppe { width: min(760px, 100% - 40px); }
.texte h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.texte .date { color: var(--muted); font-size: 14.5px; margin: 0 0 30px; }
.texte h2 {
  margin: 44px 0 10px; font-size: 22px;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.texte h3 { margin: 26px 0 6px; font-size: 17.5px; }
.texte p, .texte li { color: #c8cdda; }
.texte ul, .texte ol { padding-left: 22px; }
.texte li { margin-bottom: 7px; }
.texte a { color: #a5a8ff; }

/* Le résumé honnête, en tête : ce que la plupart des gens liront vraiment. */
.resume {
  padding: 24px 26px; margin: 0 0 12px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(160deg, #211d47 0%, var(--surface) 75%);
}
.resume p { margin: 0 0 10px; color: var(--text); }
.resume p:last-child { margin-bottom: 0; }

table.donnees { width: 100%; border-collapse: collapse; margin: 16px 0 6px; font-size: 15.5px; }
table.donnees th, table.donnees td {
  text-align: left; vertical-align: top;
  padding: 11px 12px; border-bottom: 1px solid var(--border);
}
table.donnees th { color: var(--muted); font-weight: 600; }
table.donnees td { color: #c8cdda; }
@media (max-width: 620px) {
  table.donnees, table.donnees tbody, table.donnees tr, table.donnees td, table.donnees th { display: block; }
  table.donnees thead { display: none; }
  table.donnees tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; }
  table.donnees td { border: 0; padding: 6px 12px; }
  table.donnees td::before { content: attr(data-libelle) " — "; color: var(--muted); }
}

/* Un encadré pour ce qu'on ne veut pas qu'un lecteur pressé rate : supprimer
   son compte, écrire à quelqu'un. */
.encadre {
  padding: 22px 26px; margin: 24px 0;
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius); background: var(--surface);
}
.encadre h3 { margin-top: 0; }
.encadre p:last-child { margin-bottom: 0; }

/* --- Le formulaire de contact -------------------------------------------- */

.formulaire { display: grid; gap: 18px; margin: 26px 0 10px; max-width: 34rem; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 14.5px; color: var(--muted); }
.champ input, .champ textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font: inherit;
}
.champ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.champ .aide { margin: 0; font-size: 13.5px; color: var(--muted); }
.formulaire button { justify-self: start; }

/* Le pot de miel. Ni `display:none` ni `hidden` : certains robots les
   reconnaissent et sautent le champ, ce qui lui ôte tout intérêt. On le sort
   de l'écran, et on le retire du parcours au clavier. */
.pot-de-miel {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Les pages de thème, générées au build. */
.hero-emoji { font-size: 64px; line-height: 1; margin: 0 0 14px; }
.themes li:has(a) { padding: 0; }
.themes a { display: block; padding: 9px 15px; color: inherit; text-decoration: none; border-radius: 999px; }
.themes a:hover { background: var(--accent-soft); }
ul.reponses-exemple { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
ul.reponses-exemple li { margin-bottom: 4px; }
