@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('bebas-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('noto-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url('noto-serif-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('noto-serif-latin-400-italic.woff2') format('woff2'); }

/* Layout : une seule colonne de téléphone (440px max) ; le jeu au centre, la barre "maquette" fixée en bas, à part du produit. */
:root {
  color-scheme: dark;
  --teal: #0A373A;        /* fond de la couverture */
  --teal-deep: #072B2E;   /* barre maquette, creux */
  --teal-lift: #11484B;   /* panneaux posés sur le fond */
  --cream: #F5ECD5;       /* typo de couverture, cartes "papier" */
  --cream-dim: #B4C2B6;   /* texte secondaire sur fond teal */
  --brick: #B05848;       /* croix, ombres portées des jetons */
  --brick-deep: #9C4A3C;  /* boutons pleins (texte crème dessus) */
  --brick-light: #E59078; /* petits textes d'accent sur fond teal */
  --navy: #122D38;        /* anneau des jetons, ombres des cartes */
  --ink: #16303A;         /* texte sur crème */
  --display: 'Bebas Neue', 'Anton', Impact, 'Arial Narrow', sans-serif;
  --ui: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --read: 'Noto Serif', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body {
  background: var(--teal);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  padding-inline: 18px;
  padding-block: 20px 40px;
}
.app { max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* En-tête */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wordmark {
  font-family: var(--display); font-size: 3.6rem; line-height: .9; letter-spacing: .02em;
  color: var(--cream); text-shadow: 0 4px 0 var(--brick); margin: 0;
}
.tagline { font-family: var(--display); font-size: 1.05rem; letter-spacing: .08em; color: var(--cream); margin: 8px 0 0; }
.lang { display: inline-flex; border: 2px solid var(--cream); border-radius: 999px; overflow: hidden; flex: none; margin-top: 6px; }
.lang button { background: transparent; color: var(--cream); border: 0; padding: 6px 12px; font-weight: 700; font-size: .8rem; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.free { margin: 0; align-self: flex-start; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 700; }
.free-note { font-size: .86rem; font-weight: 700; color: var(--cream); }
.welcome { margin: 0; font-size: .92rem; font-weight: 600; color: var(--cream-dim); }

/* Jetons : le langage ✗ ✓ ✗ de la couverture devient le suivi des jours */
.track { display: flex; flex-direction: column; gap: 10px; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); }
.track-head strong { color: var(--cream); font-variant-numeric: tabular-nums; }
.tokens { display: flex; gap: 9px; flex-wrap: wrap; }
.token {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.15rem; line-height: 1;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--brick);
}
.token svg { width: 20px; height: 20px; display: block; }
.token.is-today { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.token.is-locked { background: transparent; color: var(--cream-dim); border: 2px dashed var(--cream-dim); box-shadow: none; opacity: .65; }
.token.is-big { width: 52px; height: 52px; }
.token.is-big svg { width: 28px; height: 28px; }

/* Jeu */
.stage { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 12px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-light); margin: 0; }
.h { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; letter-spacing: .03em; margin: 0; text-wrap: balance; }
.lead { margin: 0; font-weight: 600; color: var(--cream-dim); }
.stmts { display: flex; flex-direction: column; gap: 14px; }
.stmt {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start;
  width: 100%; text-align: left;
  background: var(--cream); color: var(--ink);
  border: 0; border-radius: 14px; padding: 14px 16px 16px;
  box-shadow: 0 5px 0 var(--navy);
  font-family: var(--read); font-size: 1rem; line-height: 1.5;
  transition: transform .12s ease, box-shadow .12s ease;
}
.stmt .letter { font-family: var(--display); font-size: 2.3rem; line-height: .95; color: var(--brick-deep); }
button.stmt:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); }
button.stmt:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy); }
.stmt.is-result { grid-template-columns: 34px minmax(0, 1fr) 52px; align-items: center; }
.stmt.is-bluff { background: transparent; color: var(--cream-dim); box-shadow: none; border: 2px solid var(--teal-lift); }
.stmt.is-bluff .letter { color: var(--cream-dim); }
.stmt.is-bluff .token { box-shadow: 0 3px 0 var(--brick); }
.stmt .mine { display: block; margin-top: 6px; font-family: var(--ui); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.btn-d {
  background: transparent; color: var(--cream); border: 2px dashed var(--cream-dim); border-radius: 14px;
  padding: 13px 16px; font-weight: 700; font-size: .95rem; text-align: left;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center;
}
.btn-d .letter { font-family: var(--display); font-size: 2.3rem; line-height: .95; color: var(--brick-light); }
.btn-d small { display: block; font-weight: 500; color: var(--cream-dim); font-size: .8rem; }

.story { display: flex; flex-direction: column; gap: 14px; font-family: var(--read); font-size: 1.02rem; line-height: 1.72; }
.story p { margin: 0; }
.punch { margin: 0; padding-top: 16px; border-top: 2px solid var(--teal-lift); font-family: var(--read); font-weight: 700; font-size: 1.08rem; line-height: 1.55; }

/* Panneaux : inscription, lendemain, livre */
.panel { background: var(--teal-lift); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.panel-head .h { font-size: 1.9rem; }
.panel p { margin: 0; }
.bluffy { width: 64px; height: 64px; display: block; }
form { display: flex; flex-direction: column; gap: 12px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
input[type="email"] { background: var(--cream); color: var(--ink); border: 3px solid var(--navy); border-radius: 12px; padding: 12px 14px; font-size: 1rem; font-weight: 600; width: 100%; }
input[type="email"]::placeholder { color: #6E7F7C; font-weight: 500; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .85rem; font-weight: 500; color: var(--cream); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brick); }
.btn { background: var(--brick-deep); color: var(--cream); border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 800; font-size: 1rem; box-shadow: 0 5px 0 var(--navy); transition: transform .12s ease, box-shadow .12s ease; text-align: center; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy); }
.error { color: var(--cream); background: var(--brick-deep); border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 600; }
.fine { font-size: .78rem; color: var(--cream-dim); font-weight: 500; }
.locked-lines { display: flex; flex-direction: column; gap: 9px; }
.locked-lines span { height: 11px; border-radius: 6px; background: var(--teal); }
.locked-lines span:nth-child(3n) { width: 72%; }

.mail { display: block; background: var(--teal); color: var(--cream); border: 2px dashed var(--cream-dim); border-radius: 12px; padding: 12px 14px; font-family: var(--ui); font-weight: 700; font-size: 1rem; text-align: center; overflow-wrap: anywhere; user-select: all; }
.book { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; }
.cover { aspect-ratio: 2 / 3; background: var(--teal); border: 3px solid var(--navy); border-radius: 6px; box-shadow: 0 5px 0 var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 6px; }
.cover b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: .9; color: var(--cream); text-shadow: 0 2px 0 var(--brick); }
.cover i { font-style: normal; font-family: var(--display); font-size: .62rem; letter-spacing: .08em; color: var(--cream); text-align: center; line-height: 1.1; }
.cover .mini { display: flex; gap: 3px; }
.cover .mini .token { width: 20px; height: 20px; border-width: 2px; box-shadow: 0 2px 0 var(--brick); }
.cover .mini .token svg { width: 11px; height: 11px; }
.book h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1; letter-spacing: .03em; margin: 0 0 6px; }
.book p { font-size: .9rem; font-weight: 500; }

footer { font-size: .76rem; color: var(--cream-dim); font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 6px; border-top: 2px solid var(--teal-lift); }

.pop { animation: pop .38s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop { from { transform: scale(.4) rotate(-25deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } .stmt, .btn { transition: none; } }

/* Ajouts version réelle */
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.token { padding: 0; font-family: var(--display); }
button.token:disabled { cursor: default; }
button.token.is-open { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
button.token.is-view { outline: 3px solid var(--brick-light); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid var(--cream-dim); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: .95rem; }
a.btn { display: block; text-decoration: none; }
.note { font-size: .82rem; font-weight: 600; color: var(--brick-light); margin: 0; }
footer a { color: var(--cream-dim); }
footer span { white-space: nowrap; }
.legal { max-width: 640px; margin-inline: auto; font-size: 1rem; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: .03em; margin: 18px 0 8px; }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .04em; margin: 28px 0 6px; color: var(--cream); }
.legal p, .legal li { font-family: var(--read); line-height: 1.65; margin: 8px 0; }
.legal ul { padding-left: 1.2em; }
.legal .todo { background: var(--brick-deep); padding: 1px 6px; border-radius: 4px; font-family: var(--ui); font-weight: 700; }
.legal .back { font-weight: 700; font-size: .9rem; }
[hidden] { display: none !important; }
