/* Farfelu Games · page de vente. Direction : « la page est l'objet » (une carte, son recto, son verso).
   Deux encres : sable et cobalt. Changer la palette = changer les six premières lignes. */

/* les deux polices sont servies par le site : pas d'appel à Google */
@font-face { font-family: "Ultra"; src: url("assets/fonts/ultra-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo"; src: url("assets/fonts/chivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #e6dbc7;
  --surface: #ddd0b9;
  --ink: #062b8a;
  --muted: #3a5aa8;
  --accent: #062b8a;
  --accent-ink: #e6dbc7;
  --cta: #d4351f;      /* rouge-orangé du bouton de commande : 4,7:1 avec son texte */
  --cta-ink: #fffaf2;

  --font-display: "Ultra", Georgia, serif;
  --font-text: "Chivo", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  --step-display: clamp(4rem, 14vw, 16rem);

  --margin: clamp(1rem, 1.4vw, 1.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 10vw, 10rem);
  --radius: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  /* la rayure du dos de carte, en blocs pleins (pas de dégradé) */
  --stripe-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='28' height='56' fill='%23062b8a'/%3E%3C/svg%3E");
  --check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='12' height='12' fill='%23062b8a'/%3E%3Crect x='12' y='12' width='12' height='12' fill='%23062b8a'/%3E%3C/svg%3E");
  --dots-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='4.5' fill='%23062b8a'/%3E%3C/svg%3E");
  --stripe-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='28' height='56' fill='%23e6dbc7'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--ink); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--muted); outline-offset: 3px; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--step-head); line-height: 1.06; }
p { text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.nums { font-variant-numeric: tabular-nums; }
main { position: relative; z-index: 1; background: var(--bg); }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: var(--ink); color: var(--accent-ink); }
.skip:focus { top: var(--margin); }

.wordmark { font-family: var(--font-display); font-size: var(--step-lead); text-decoration: none; }
.stripe { flex: none; width: 100%; height: 56px; background: var(--stripe-ink) 0 0 / 56px 100% repeat-x; }
.stripe-paper { background-image: var(--stripe-paper); }
.stripe-thin { height: 8px; }

.button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.75rem; background: var(--ink); color: var(--accent-ink); font-weight: 700; text-decoration: none; text-align: center; transition: transform var(--t-press) var(--ease-out); }
.button::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--stripe-paper) 0 0 / 12px 100% repeat-x; transform: translateY(100%); transition: transform var(--t-hover) var(--ease-out); }
.button:active { transform: scale(0.97); }
.button-paper { background: var(--bg); color: var(--ink); }
.button[href$="#commander"]:not(.button-paper), .slip .button[type="submit"] { background: var(--cta); color: var(--cta-ink); }
.button-paper::after { background-image: var(--stripe-ink); }
.link, .link-plain { text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
.link { text-decoration: underline transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover::after { transform: none; }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.16em; }
}

/* ---------- barre qui suit, après le premier écran ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding: 8px var(--margin); background: var(--surface); visibility: hidden; transform: translateY(-101%); transition: transform 320ms var(--ease-out), visibility 0s 320ms; }
.topbar.is-on { visibility: visible; transform: none; transition: transform 320ms var(--ease-out); }
.topbar nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-weight: 500; }
.topbar .button { min-height: 2.75rem; padding: 0 1.25rem; }
.topbar .wordmark, .topbar .button { white-space: nowrap; }
/* navigation globale : où on en est dans la page, et la rubrique en cours */
.topbar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--ink); transform: scaleX(var(--read, 0)); transform-origin: 0 50%; }
.topbar nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
@media (max-width: 30rem) { .topbar .wordmark { font-size: 1.15rem; } .topbar .button { padding: 0 0.9rem; } }

/* ---------- premier écran : la carte à côté de l'image ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); min-height: 100svh; padding: var(--margin); background: var(--ink); }
.hero-card { display: flex; flex-direction: column; align-items: center; overflow: hidden; background: var(--bg); border-radius: var(--radius); text-align: center; }
.hero-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem); }
.hero-main .wordmark { margin-bottom: clamp(1.5rem, 5svh, 3.5rem); }
h1 { font-size: clamp(2.25rem, 3.6vw, 3.75rem); line-height: 1.05; }
.hero-sub { max-width: 36ch; margin-top: 2rem; }
.hero-main .button { margin-top: 2rem; }
.hero-price { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.3; }
.hero-price b { font-weight: 800; }
.hero-trial { max-width: 44ch; margin: 0.75rem auto 0; font-size: var(--step-small); line-height: 1.45; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; padding: 0 1.25rem 1.75rem; font-weight: 500; }
.hero-room { position: relative; overflow: hidden; min-height: 60svh; border-radius: var(--radius); background: var(--surface); }
.hero-room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease; }
.hero-room img.is-on { opacity: 1; }
.room-3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-room.is-3d { background: var(--ink); }
.hero-room.is-3d > img { display: none; }
.room-bubble { position: absolute; left: 0; right: 0; top: 7%; z-index: 2; width: fit-content; max-width: 84%; margin-inline: auto; padding: 0.75rem 1.1rem; background: var(--bg); color: var(--ink); border-radius: 16px 16px 16px 4px; font-size: var(--step-lead); font-weight: 700; line-height: 1.25; text-align: center; visibility: hidden; }
.room-bubble::after { content: ""; position: absolute; left: 1.5rem; bottom: -10px; border-top: 11px solid var(--bg); border-right: 11px solid transparent; }
.room-hint { display: none; }
.room-replay { position: absolute; right: 1rem; bottom: 1.75rem; z-index: 2; min-height: 2.75rem; padding: 0 1.1rem; background: var(--bg); color: var(--ink); font-weight: 700; }
.room-caption { position: absolute; left: 0; bottom: 1.75rem; max-width: 85%; padding: 0.5rem 1rem 0.5rem 1.25rem; background: var(--bg); font-weight: 500; }

/* ---------- de la photo à la carte : le tirage posé sur sa carte ---------- */
.proof { padding: calc(var(--section) / 2) var(--margin); }
.proof-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.proof-head .lead { max-width: 34ch; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 3.5rem; }
.pairs li:nth-child(2) { margin-top: 4rem; }
.pair { position: relative; padding: 14% 0 0 20%; }
.made { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.snap { position: absolute; top: 0; left: 0; width: 44%; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--bg); transform: rotate(-4deg); }
.pairs li:nth-child(2) .snap { transform: rotate(3deg); }
.pairs li:nth-child(3) .snap { transform: rotate(-2deg); }
.pairs p { max-width: 30ch; margin: 1rem 0 0 20%; font-weight: 500; }
.proof-note { margin-top: 2.5rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- devinez l'histoire : la carte qui se retourne ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); min-height: 88svh; padding: calc(var(--section) / 2) var(--margin); }
.plate { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--surface); border-radius: var(--radius); }
.flip { width: min(100%, 26rem, 50svh); }
.face { overflow: hidden; border-radius: var(--radius); }
.face img { width: 100%; }
.back { display: flex; flex-direction: column; margin-top: var(--margin); background: var(--ink); color: var(--accent-ink); }
.back .stripe { height: 28px; background-size: 28px 100%; }
.back-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 1.5rem clamp(1.25rem, 2.4vw, 2rem); }
.back-label { font-weight: 700; }
.back-text { font-size: var(--step-lead); line-height: 1.35; }
.back-echo { font-weight: 700; }
.js .flip { aspect-ratio: 2 / 3; perspective: 1400px; }
.js .flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 800ms var(--ease-in-out); }
.js .flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.js .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.js .face img { height: 100%; object-fit: cover; }
.js .back { margin-top: 0; transform: rotateY(180deg); }
.showcase-text { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(0.5rem, 2.5vw, 2.5rem); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.tabs button { min-height: 2.75rem; color: var(--muted); font-size: 1.125rem; font-weight: 500; text-align: left; transition: color var(--t-hover) ease; }
.tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 3px; }
.showcase-mid p { max-width: 34ch; margin-top: 3rem; font-size: var(--step-lead); line-height: 1.35; }
.ask { margin-bottom: 0.75rem; font-weight: 700; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { min-height: 4.5rem; padding: 0.875rem 1.125rem; font-weight: 500; line-height: 1.3; text-align: left; transition: transform var(--t-press) var(--ease-out); }
.cell:active { transform: scale(0.98); }
.cell-ink { background: var(--ink); color: var(--accent-ink); }
.cell-tone { background: var(--surface); color: var(--ink); }
.cell.is-right::before { content: "La vraie. "; font-weight: 700; }
.cell.is-wrong::before { content: "Un leurre. "; font-weight: 700; }
html[lang="en"] .cell.is-right::before { content: "The real one. "; }
html[lang="en"] .cell.is-wrong::before { content: "A decoy. "; }
.verdict { min-height: 3.2em; margin-top: 0.75rem; }
html:not(.js) :is(.tabs, .answers-wrap) { display: none; }

/* ---------- le mur : notre premier jeu ---------- */
.wall-section { padding: calc(var(--section) * 0.7) var(--margin); background: var(--ink); color: var(--accent-ink); }
.wall-title { font-size: var(--step-display); line-height: 0.9; text-transform: uppercase; }
.wall-intro { display: flex; align-items: flex-end; gap: clamp(2rem, 6vw, 6rem); margin-top: 2rem; }
.wall-title br { display: none; }
.wall-intro .lead { max-width: 46ch; }
.wall-intro a { flex: none; font-weight: 500; }
.wall { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 2.5rem; }
.wall figure { width: calc((100% - 32px) / 5); }
.wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); background: var(--muted); transition: opacity 240ms ease; }
.wall figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.75rem; padding: 0.4rem 0.15rem 1rem; font-size: var(--step-small); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
  .wall:hover figure:not(:hover) img { opacity: 0.55; }
}

/* ---------- les étapes : une rangée qu'on fait glisser ---------- */
.steps { padding: calc(var(--section) / 2) 0; overflow: hidden; }
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding: 0 var(--margin); }
.steps-nav { display: flex; gap: 6px; }
.steps-nav button { width: 3rem; height: 3rem; background: var(--ink); color: var(--accent-ink); font-size: var(--step-lead); transition: transform var(--t-press) var(--ease-out); }
.steps-nav button:active { transform: scale(0.94); }
html:not(.js) .steps-nav { display: none; }
.progress { height: 6px; margin: 1.25rem var(--margin) 0; overflow: hidden; background: var(--surface); }
.progress i { display: block; width: 30%; height: 100%; background: var(--ink); will-change: transform; }
.row { display: flex; gap: 32px; margin-top: 2.5rem; padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--margin); scrollbar-width: none; overscroll-behavior-x: contain; }
.row::-webkit-scrollbar { display: none; }
.row li { flex: 0 0 280px; scroll-snap-align: start; }
.row h3 { font-size: 1.125rem; font-weight: 700; }
.row p { min-height: 4.5em; margin-top: 0.5rem; margin-bottom: var(--sp, 96px); font-size: 1rem; color: var(--muted); }
/* Les cartes des étapes sont des objets : carton épais (tranche dessinée par des ombres empilées), coins arrondis,
   reflet, dos rayé au nom du jeu. Une vraie main les retourne pendant la scène guidée. */
.tcard-wrap { position: relative; }
.tcard { position: relative; aspect-ratio: 2 / 3; transform-style: preserve-3d; }
.tcard-face, .tcard-back { position: absolute; inset: 0; padding: 7px; background: #f6eedf; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 0 #ddd1ba, 0 2px 0 #d3c5ab, 0 3px 0 #c8b99c, 0 4px 0 #bcac8e, 0 26px 40px -14px rgba(18, 14, 40, 0.55), 0 8px 14px -6px rgba(18, 14, 40, 0.3); }
.tcard-face img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.tcard-face::after { content: ""; position: absolute; inset: 7px; border-radius: 11px; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 48%, transparent 60%); pointer-events: none; }
.tcard-back { display: grid; place-items: center; background: repeating-linear-gradient(90deg, var(--ink) 0 16px, #f6eedf 16px 32px); transform: rotateY(180deg); }
.tcard-back span { padding: 0.45em 0.8em; background: #f6eedf; color: var(--ink); border-radius: 10px; font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; }
.hand { display: none; background: none; }

/* ---------- ce qu'il y a dans le jeu : la feuille de menu ---------- */
.menu-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding: calc(var(--section) * 0.7) var(--margin); background: var(--ink); }
.sheet { grid-column: 2 / span 5; padding: 4rem clamp(1.25rem, 3vw, 2.75rem) 3.5rem; background: var(--bg); clip-path: polygon(0.000% 10px, 3.571% 0px, 7.143% 10px, 10.714% 0px, 14.286% 10px, 17.857% 0px, 21.429% 10px, 25.000% 0px, 28.571% 10px, 32.143% 0px, 35.714% 10px, 39.286% 0px, 42.857% 10px, 46.429% 0px, 50.000% 10px, 53.571% 0px, 57.143% 10px, 60.714% 0px, 64.286% 10px, 67.857% 0px, 71.429% 10px, 75.000% 0px, 78.571% 10px, 82.143% 0px, 85.714% 10px, 89.286% 0px, 92.857% 10px, 96.429% 0px, 100.000% 10px, 100.000% calc(100% - 10px), 96.429% 100%, 92.857% calc(100% - 10px), 89.286% 100%, 85.714% calc(100% - 10px), 82.143% 100%, 78.571% calc(100% - 10px), 75.000% 100%, 71.429% calc(100% - 10px), 67.857% 100%, 64.286% calc(100% - 10px), 60.714% 100%, 57.143% calc(100% - 10px), 53.571% 100%, 50.000% calc(100% - 10px), 46.429% 100%, 42.857% calc(100% - 10px), 39.286% 100%, 35.714% calc(100% - 10px), 32.143% 100%, 28.571% calc(100% - 10px), 25.000% 100%, 21.429% calc(100% - 10px), 17.857% 100%, 14.286% calc(100% - 10px), 10.714% 100%, 7.143% calc(100% - 10px), 3.571% 100%, 0.000% calc(100% - 10px)); }
.sheet h2 { text-align: center; margin-bottom: 0.5rem; }
.sheet h3 { margin-top: 2.75rem; font-size: var(--step-lead); font-weight: 700; }
.menu li { margin-top: 1.125rem; }
.menu-row { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 500; }
.menu-row span:last-child { white-space: nowrap; }
.menu-row i { flex: 1; min-width: 1.5rem; border-bottom: 4px dotted var(--ink); transform: translateY(-0.2em); }
.menu p { max-width: 34ch; margin-top: 0.15rem; font-size: 1rem; color: var(--muted); }
.menu-figure { grid-column: 8 / span 4; color: var(--accent-ink); }
.menu-figure img { width: 100%; border-radius: var(--radius); }
.statement { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- les six jeux : un mot géant, des barres pleines ---------- */
.games { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: calc(var(--section) / 2) var(--margin); }
.games-col { grid-column: 1 / span 6; container-type: inline-size; }
html[lang="en"] .games-col h2 { font-size: 22.5cqw; }
.games-col h2 { font-size: 32.5cqw; line-height: 0.8; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.bars { display: grid; gap: 6px; margin-top: 2rem; }
.bars details { background: var(--surface); }
.bars summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; padding: 0 1.125rem; font-weight: 500; cursor: pointer; list-style: none; }
.bars summary::-webkit-details-marker { display: none; }
.bars summary small { margin-left: 0.5rem; font-size: 0.875rem; font-weight: 400; }
.bars summary i { font-style: normal; font-size: var(--step-lead); line-height: 1; transition: transform 240ms var(--ease-out); }
.bars details[open] summary i { transform: rotate(45deg); }
.panel { padding: 0.25rem 1.125rem 1.25rem; }
.panel p { max-width: 52ch; }
.panel dl { display: grid; gap: 0.5rem; margin-top: 1rem; }
.panel dl div { display: flex; justify-content: space-between; gap: 1rem; }
.panel dt { font-weight: 500; }
.games-figure { grid-column: 9 / span 4; }
.games-figure img { width: 100%; border-radius: var(--radius); }
.games-figure .lead { margin-top: 1.5rem; max-width: 30ch; }

/* ---------- le prix : un ticket ---------- */
.pricing { padding: calc(var(--section) * 0.7) var(--margin); background: var(--surface); }
.ticket { position: relative; display: grid; grid-template-columns: 6fr 4fr; width: min(100%, 68rem); min-height: 26rem; margin: 0 auto; background: var(--ink); color: var(--accent-ink); border-radius: var(--radius); }
.ticket-main { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.ticket-lines { columns: 2; column-gap: var(--gutter); }
.ticket-lines li { break-inside: avoid; padding: 0.2rem 0; }
.ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); border-left: 6px dotted var(--surface); text-align: center; position: relative; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -17px; width: 28px; height: 28px; background: var(--surface); border-radius: 50%; }
.ticket-stub::before { top: -14px; }
.ticket-stub::after { bottom: -14px; }
.prices { display: grid; gap: 0.9rem; width: 100%; }
.prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.prices dt { font-weight: 500; white-space: nowrap; }
.prices dd { font-family: var(--font-display); font-size: var(--step-head); line-height: 1; white-space: nowrap; }
.ticket-stub .button { width: 100%; margin-top: 2rem; padding: 0 0.75rem; }
.pricing-note { margin-top: 1.75rem; text-align: center; }

/* ---------- le bon de commande ---------- */
.order { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; padding: calc(var(--section) / 2) var(--margin); }
.order-head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.order-head .lead { max-width: 40ch; }
.pay { grid-column: 8 / span 5; position: sticky; top: 6rem; display: grid; gap: 0.9rem; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--ink); color: var(--accent-ink); border-radius: var(--radius); }
.pay .slip-note a { color: inherit; }
.pay h3, .slip-body h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.slip-body h3 + p { margin-top: 0.5rem; }
.pay-links { display: grid; gap: 6px; margin: 0.9rem 0; }
.pay-link { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: 0.8rem 1.1rem; background: var(--bg); color: var(--ink); font-weight: 500; text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.pay-link b { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 400; }
.pay-link:active { transform: scale(0.98); }
.hp { position: absolute; left: -999rem; }
.slip { grid-column: 1 / span 7; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.slip .stripe { height: 28px; background-size: 28px 100%; }
.slip-body { display: grid; gap: 1.75rem; padding: clamp(1.25rem, 3vw, 2.5rem); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 0.6rem; padding: 0; font-weight: 700; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.choices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; min-height: 3.5rem; height: 100%; padding: 0.6rem 0.9rem; background: var(--bg); font-weight: 500; line-height: 1.2; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.choice input:checked + span { background: var(--ink); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--muted); outline-offset: 3px; }
.choice:active span { transform: scale(0.98); }
.fields { display: grid; gap: 1rem; }
.fields label { display: grid; gap: 0.4rem; font-weight: 500; }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem; background: var(--bg); border: 0; border-radius: 0; color: var(--ink); font: inherit; font-size: max(1rem, var(--step-body)); }
textarea.field { resize: vertical; }
.slip .button { width: 100%; }
.slip-note { font-size: var(--step-small); }
.slip-done h3 { font-family: var(--font-display); font-size: var(--step-head); font-weight: 400; line-height: 1.06; }
[hidden] { display: none !important; }

/* ---------- les scènes de scroll (voir scenes/complices.js) : la mise en page tenue à l'écran ---------- */
.proof.is-live, .steps.is-live, .bande.is-live { padding-block: 0; overflow: visible; overflow-x: clip; }
/* les cartes qui tournent ou glissent ne doivent jamais élargir la page */
.proof, .wall-section, .pricing, .real { overflow-x: clip; }
.proof.is-live > .scene-stage, .steps.is-live > .scene-stage, .bande.is-live > .scene-stage { display: flex; flex-direction: column; justify-content: center; padding: 5rem 0 1.5rem; }
.proof.is-live .pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); width: min(100%, calc((100svh - 17rem) / 0.5)); max-width: none; margin: 2rem auto 0; }
.proof.is-live .pairs li:nth-child(2) { margin-top: 0; }
.proof.is-live .proof-note { margin-top: 1rem; }
.steps.is-live .steps-nav { display: none; }
.steps.is-live .row { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: var(--gutter); margin-top: 1rem; padding: 0 var(--margin); overflow: visible; scroll-snap-type: none; counter-reset: st; }
.steps.is-live .row li { display: contents; }
.steps.is-live .row h3 { grid-area: 1 / 1; align-self: end; counter-increment: st; font-family: var(--font-display); font-size: var(--step-head); font-weight: 400; line-height: 1.05; }
.steps.is-live .row h3::before { content: counter(st, decimal-leading-zero) " / 08"; display: block; margin-bottom: 0.75rem; font-family: var(--font-text); font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0.55; }
.steps.is-live .row p { grid-area: 2 / 1; align-self: start; max-width: 32ch; min-height: 0; margin: 1rem 0 0; color: var(--ink); font-size: var(--step-lead); }
.steps.is-live .row .tcard-wrap { grid-area: 1 / 2 / 4 / 3; place-self: center; height: min(62svh, 560px); aspect-ratio: 2 / 3; }
.steps.is-live .row .tcard { height: 100%; }
.steps.is-live .hand { display: block; position: absolute; top: 36%; left: 88%; width: 80%; height: auto; pointer-events: none; filter: drop-shadow(0 20px 18px rgba(18, 14, 40, 0.35)); opacity: 0; }
@media (max-width: 60rem) {
  .steps.is-live .row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .steps.is-live .row h3 { font-size: 1.6rem; }
  .steps.is-live .row h3::before { margin-bottom: 0.4rem; font-size: 0.85rem; }
  .steps.is-live .row p { margin-top: 0.5rem; font-size: 1rem; }
  .steps.is-live .row .tcard-wrap { grid-area: 3 / 1; height: min(44svh, 400px); }
  .steps.is-live .hand { width: 72%; left: 86%; }
}
.steps.is-live .progress i { width: 100% !important; transform: scaleX(var(--p, 0)) !important; transform-origin: 0 50%; }

/* ---------- la discussion : les trois étapes, les pépites repérées, le message qui s'envole en carte ---------- */
.chat-steps { display: grid; gap: 0.5rem; margin-top: 1.5rem; counter-reset: step; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.15; }
.chat-steps li { display: flex; align-items: baseline; gap: 0.6rem; counter-increment: step; }
.chat-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; background: var(--ink); color: var(--accent-ink); border-radius: 50%; font-size: 0.7em; }
/* 2e étape quand la première pépite s'allume (8 % de la scène), 3e quand sa carte arrive (17 %) : seuils de scenes/complices.js */
.chat.is-live .chat-steps li:nth-child(2) { opacity: clamp(0.3, calc((var(--p, 0) - 0.08) * 40 + 0.3), 1); }
.chat.is-live .chat-steps li:nth-child(3) { opacity: clamp(0.3, calc((var(--p, 0) - 0.17) * 40 + 0.3), 1); }
.wa-pepite { position: absolute; top: -9px; right: -6px; z-index: 1; padding: 2px 8px; background: #f5b700; color: #111; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.wa-out .wa-pepite { right: auto; left: -6px; }
.card-quote { position: relative; margin-bottom: 0.6rem; padding: 0.45rem 0.6rem; background: #fff; border-radius: 0 10px 10px 10px; box-shadow: 0 0 0 3px #f5b700; color: #111b21; font-size: 0.85rem; font-weight: 600; line-height: 1.3; }

/* ---------- les deux scènes guidées : fixées à l'écran, elles se construisent au défilement ---------- */
.scroll-hint { display: none; }
.scene.is-live .scroll-hint { position: absolute; left: 50%; bottom: 1.25rem; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-size: var(--step-small); font-weight: 700; transform: translateX(-50%); opacity: clamp(0, calc(1 - var(--p, 0) * 1.25), 1); pointer-events: none; }
.scroll-hint i { width: 0.7rem; height: 0.7rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .scroll-hint i { animation: hint 1.4s var(--ease-soft) infinite; } }
@keyframes hint { 0%, 100% { transform: translateY(-3px) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }
.scene.is-live > .scene-stage::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: currentColor; opacity: 0.85; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.scene.is-live [data-chat-replay], .scene.is-live [data-bande-replay] { display: none; }
.chat.is-live { padding: 0; }
.chat.is-live > .scene-stage { height: 100svh; align-content: center; padding: 4.5rem var(--margin) 3.5rem; }
.bande.is-live > .scene-stage { padding-inline: var(--margin); }
.bande.is-live .bande-ask { margin-top: 1rem; }
.bande.is-track .bande-table { display: flex; width: max-content; gap: 1.25rem; margin-top: 1.5rem; }
.bande.is-track .seat { width: min(62vw, 14rem); }
@media (max-width: 60rem) {
  .chat.is-live .chat-head .lead, .chat.is-live .chat-links { display: none; }
  .chat-steps { margin-top: 0.75rem; gap: 0.3rem; font-size: 1.05rem; }
  .chat.is-live .chat-stage { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0.75rem; align-items: center; margin-top: 1rem; }
  .chat.is-live .wa { zoom: 0.8; }
  .chat.is-live .chat-cards { grid-template-columns: 1fr; gap: 0.6rem; }
  .chat.is-live .chat-cards li:nth-child(2) { margin-top: 0; }
  .chat.is-live .chat-cards p:not(.card-quote) { display: none; }
  .card-quote { margin-bottom: 0.4rem; padding: 0.3rem 0.45rem; font-size: 0.7rem; }
  /* sur téléphone, les cartes arrivent au même endroit, l'une par-dessus l'autre, chacune avec sa bulle */
  .chat.is-live .chat-cards { position: relative; display: block; min-height: 22rem; }
  .chat.is-live .chat-cards li { position: absolute; inset: 0 0 auto; }
  .chat.is-live .chat-cards img { width: 100%; height: auto; }
  .chat.is-live .card-quote { min-height: 5.2em; }
  .bande.is-live .bande-head .lead { display: none; }
}
@media (max-width: 30rem) { .chat.is-live .wa { zoom: 0.6; } }

/* ---------- les questions, à côté d'une grande image ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin) calc(var(--section) / 2); }
.faq-col { grid-column: 1 / span 6; padding-top: calc(var(--section) / 2); }
.facts { margin-top: 2rem; font-size: 1.125rem; font-weight: 500; line-height: 1.7; }
.accordion { display: grid; gap: 1.75rem; margin-top: 3rem; }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; font-size: var(--step-lead); font-weight: 700; line-height: 1.25; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-25%) rotate(45deg); transition: transform 240ms var(--ease-out); }
.accordion details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.accordion details p { max-width: 54ch; margin-top: 0.5rem; color: var(--muted); }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 3rem; }
.faq-pics { grid-column: 9 / span 4; position: relative; padding-bottom: 80px; }
.faq-tall { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 0 0 var(--radius) var(--radius); }
.faq-square { position: absolute; left: -40px; bottom: 40px; width: 44%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* ---------- la dernière rangée : trois tuiles ---------- */
.cta { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: var(--margin); padding: calc(var(--section) / 2) 0 var(--section); overflow: hidden; }
.tile { min-height: 22.5rem; overflow: hidden; border-radius: var(--radius); }
.tile-pic { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-flat { background: var(--surface); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tile-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--ink); color: var(--accent-ink); }
.tile-main p { max-width: 44ch; }
.tile-main .button { margin-top: 0.75rem; }

/* ---------- premier écran : trois repères sous le bouton ---------- */
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; margin-top: 1.25rem; font-size: var(--step-small); font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: 1.1rem; }
.hero-facts li + li::before { content: ""; width: 6px; height: 6px; background: var(--ink); }

/* ---------- la conversation devient des cartes ---------- */
.chat { padding: var(--section) var(--margin) calc(var(--section) * 0.6); }
.chat > .scene-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.chat-head { grid-column: 1 / span 4; }
.chat-head .lead { max-width: 30ch; margin-top: 1.5rem; }
.chat-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.75rem; font-weight: 500; }
.chat-links button, .bande-foot button { min-height: 2.75rem; text-decoration: underline; text-underline-offset: 0.2em; }
.chat-stage { grid-column: 6 / span 7; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.phone { padding: 10px; background: var(--ink); border-radius: 40px; }
.phone-top { display: grid; justify-items: center; padding: 0.75rem 1rem 0.9rem; color: var(--accent-ink); line-height: 1.3; }
.phone-top span { font-size: var(--step-small); }
.play { flex: none; width: 0; height: 0; border-left: 13px solid var(--ink); border-block: 8px solid transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); align-items: start; }
.chat-cards li:nth-child(2) { margin-top: 2.5rem; }
.chat-cards img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.chat-cards p { margin-top: 0.75rem; font-size: 1rem; font-weight: 500; line-height: 1.35; }

/* ---------- pour quelle occasion : cinq portes d'entrée ---------- */
.occasions { padding: calc(var(--section) * 0.7) var(--margin); background: var(--ink); color: var(--accent-ink); }
.occasions-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.occasions-head .lead { max-width: 36ch; }
.occasion-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--margin); margin-top: 2.5rem; }
.occasion-list a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; }
.occasion-list img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform 900ms var(--ease-out); }
.occasion-list span { position: absolute; left: 0; bottom: 1rem; max-width: 90%; padding: 0.5rem 1rem 0.5rem 0.9rem; background: var(--bg); color: var(--ink); font-weight: 700; line-height: 1.25; }
@media (hover: hover) and (pointer: fine) {
  .occasion-list a:hover img { transform: scale(1.05); }
}

/* ---------- le prix partagé entre amis ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; width: min(100%, 68rem); margin: 1.25rem auto 0; padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem); background: var(--bg); border-radius: var(--radius); }
.split-q { font-size: var(--step-lead); font-weight: 700; }
.split-ctl { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.split-ctl button { width: 2.75rem; height: 2.75rem; background: var(--ink); color: var(--accent-ink); font-size: 1.375rem; line-height: 1; transition: transform var(--t-press) var(--ease-out); }
.split-ctl button:active { transform: scale(0.94); }
.split-ctl output { min-width: 2ch; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1; text-align: center; }
.split-out { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.split-out div { display: flex; align-items: baseline; gap: 0.5rem; }
.split-out dt { font-weight: 500; color: var(--muted); }
.split-out dd { font-weight: 700; }
html:not(.js) .split-ctl button { display: none; }

/* ---------- les pages de texte : guide, merci, conditions ---------- */
.doc { min-height: 80svh; padding: 8rem var(--margin) var(--section); }
.doc-inner { width: min(100%, 46rem); margin: 0 auto; }
.doc-inner.doc-wide { width: 100%; }
.doc h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1.02; }
.doc .lead { max-width: 40ch; margin-top: 1.5rem; }
.doc h2 { margin-top: 3rem; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); }
.doc p { max-width: 62ch; margin-top: 0.9rem; }
.doc-meta { margin-top: 3rem; font-size: var(--step-small); color: var(--muted); }
.bullets { margin-top: 1rem; }
.bullets li { position: relative; max-width: 62ch; margin-top: 0.75rem; padding-left: 1.5rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--ink); }
.howto { display: grid; gap: 1.1rem; margin-top: 1.5rem; counter-reset: step; }
.howto > li { display: grid; grid-template-columns: 2.75rem 1fr; align-items: baseline; counter-increment: step; }
.howto > li::before { content: counter(step); font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
.howto h2 { margin-top: 0; }
.howto p { margin-top: 0.4rem; }
.howto-cols { display: grid; grid-template-columns: 1fr 1fr minmax(0, 0.8fr); gap: var(--gutter); align-items: start; margin-top: 3rem; }
.howto-card { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--surface); border-radius: var(--radius); }
.howto-card h2 { margin-top: 0; }
.menu-list { overflow: hidden; padding: 0.4rem 0; background: var(--surface); border-radius: 30px; }
.menu-list li { padding: 0.95rem 1.1rem; border-bottom: 2px solid var(--bg); font-weight: 500; }
.menu-list li:last-child { border-bottom: 0; }
.menu-list li.is-hit { background: var(--ink); color: var(--accent-ink); }
.doc-figure { width: min(100%, 22rem); margin-top: 2.5rem; border-radius: var(--radius); }
.doc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--margin); margin-top: 1.5rem; }
.doc-cards img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 3rem; }
.test-note { display: inline-block; margin-bottom: 2rem; padding: 0.6rem 1rem; background: var(--ink); color: var(--accent-ink); font-weight: 500; }
.todo { padding: 0 0.3em; background: var(--ink); color: var(--accent-ink); }

/* ---------- la conversation : un vrai téléphone, une vraie discussion de groupe (fragment d'interface) ---------- */
.wa { width: min(100%, 22.5rem); margin: 0 auto; padding: 10px; background: #0e0e10; border-radius: 54px; }
.wa-screen { display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 9 / 18.5; background: #efeae2; border-radius: 44px; color: #111b21; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wa-status { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 13px 28px 5px; background: #008069; color: #fff; font-size: 14px; }
.wa-island { position: absolute; left: 50%; top: 9px; width: 92px; height: 26px; background: #0e0e10; border-radius: 13px; transform: translateX(-50%); }
.wa-battery { position: relative; width: 25px; height: 12px; border: 2px solid #fff; border-radius: 4px; }
.wa-battery::after { content: ""; position: absolute; inset: 1px 6px 1px 1px; background: #fff; border-radius: 1px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px 12px; background: #008069; color: #fff; }
.wa-back { flex: none; width: 10px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.wa-title { flex: 1; min-width: 0; line-height: 1.25; }
.wa-title b { display: block; font-size: 16.5px; font-weight: 600; }
.wa-title span { display: block; overflow: hidden; color: #fff; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.wa-dots { flex: none; width: 4px; height: 18px; fill: #fff; }
.wa-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 10px 14px 6px; }
.wa-day { align-self: center; margin-bottom: 8px; padding: 4px 10px; background: #fff; border-radius: 8px; color: #54656f; font-size: 12px; }
.wa-msg { position: relative; align-self: flex-start; max-width: 84%; margin-top: 5px; padding: 5px 8px 6px 9px; background: #fff; border-radius: 0 8px 8px 8px; font-size: 14.5px; line-height: 1.35; transform-origin: 0 100%; }
.wa-msg::before { content: ""; position: absolute; top: 0; left: -7px; border-right: 8px solid #fff; border-bottom: 10px solid transparent; }
.wa-out { align-self: flex-end; background: #d9fdd3; border-radius: 8px 0 8px 8px; transform-origin: 100% 100%; }
.wa-out::before { left: auto; right: -7px; border-right: 0; border-left: 8px solid #d9fdd3; }
.wa-from { display: block; margin-bottom: 1px; color: #1a62c4; font-size: 13px; font-weight: 600; }
.wa-c2 { color: #b8136f; }
.wa-c3 { color: #9a5a00; }
.wa-c4 { color: #00785a; }
.wa-msg time { float: right; margin: 7px 0 -5px 10px; color: #56656e; font-size: 11px; }
.wa-ticks { display: inline-block; width: 16px; height: 10px; margin-left: 3px; fill: none; stroke: #53bdeb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.wa-player { display: flex; align-items: center; gap: 8px; padding: 4px 0 2px; color: #56656e; font-size: 12px; }
.wa-face { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wa-player .play { border-left-color: #8696a0; }
.wa-player svg { width: 104px; height: 22px; fill: none; stroke: #8696a0; stroke-width: 2.4; stroke-linecap: round; }
.wa-photo { padding: 4px 4px 6px; }
.wa-photo .wa-from { margin: 0 4px 3px; }
.wa-photo img { display: block; width: 8rem; aspect-ratio: 4 / 5; margin-bottom: 5px; object-fit: cover; border-radius: 6px; }
.wa-photo { padding-left: 4px; }
.wa-typing { position: relative; align-self: flex-start; display: flex; gap: 4px; margin-top: 6px; padding: 12px 14px; background: #fff; border-radius: 0 8px 8px 8px; }
.wa-typing i { width: 7px; height: 7px; background: #8696a0; border-radius: 50%; }
.wa-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 18px; }
.wa-bar span { flex: 1; padding: 10px 16px; background: #fff; border-radius: 22px; color: #56656e; font-size: 15px; }
.wa-bar svg { flex: none; width: 44px; height: 44px; padding: 11px; background: #00a884; border-radius: 50%; fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .wa-typing i { animation: wa-dot 1.2s ease-in-out infinite; }
  .wa-typing i:nth-child(3) { animation-delay: 0.15s; }
  .wa-typing i:nth-child(4) { animation-delay: 0.3s; }
}
@keyframes wa-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }

/* ---------- le jeu en vrai : la boîte à votre nom, en 3D ---------- */
.real { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; padding: var(--section) var(--margin) calc(var(--section) * 0.7); background: var(--surface); }
.real-head { grid-column: 1 / span 5; align-self: center; }
.real-head .lead { max-width: 34ch; margin-top: 1.5rem; }
.real-name { display: grid; gap: 0.5rem; max-width: 24rem; margin-top: 2rem; font-weight: 700; }
.real-name .field { font-family: var(--font-display); font-size: var(--step-lead); }
.real-stage { grid-column: 6 / span 7; display: grid; place-items: center; min-height: 34rem; perspective: 1700px; touch-action: pan-y; }
.table3d { --rx: 56deg; --rz: -24deg; position: relative; width: 34rem; height: 25rem; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)); transition: transform 700ms var(--ease-out); }
.box3d { --bw: 15rem; --bh: 21rem; --bd: 4.5rem; position: absolute; right: 1rem; top: 1.5rem; width: var(--bw); height: var(--bh); transform-style: preserve-3d; }
.box3d > div { position: absolute; }
.box3d-top { inset: 0; display: grid; place-items: center; padding: 1.25rem; background: var(--stripe-ink) 0 0 / 3rem 100% repeat-x, var(--bg); border-radius: 4px; transform: translateZ(var(--bd)); }
.box3d-label { display: grid; gap: 0.3rem; width: 100%; padding: 1.1rem 0.75rem 1.2rem; background: var(--bg); color: var(--ink); text-align: center; }
.box3d-label small { font-size: 0.8rem; font-weight: 700; }
.box3d-label b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.08; overflow-wrap: break-word; }
.box3d-front { left: 0; top: calc(var(--bh) - var(--bd)); display: grid; place-items: center; width: var(--bw); height: var(--bd); background: var(--ink); color: var(--accent-ink); font-family: var(--font-display); font-size: 1.25rem; transform-origin: 50% 100%; transform: rotateX(-90deg); }
.box3d-side { left: calc(var(--bw) - var(--bd)); top: 0; width: var(--bd); height: var(--bh); background: var(--muted); transform-origin: 100% 50%; transform: rotateY(90deg); }
.deck3d { position: absolute; left: 1.5rem; top: 4rem; width: 11rem; height: 16.4rem; transform-style: preserve-3d; }
.deck3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transform-origin: 50% 85%; }
.deck3d img:nth-child(1) { transform: translateZ(1px) rotateZ(-16deg) translateX(-1.5rem); }
.deck3d img:nth-child(2) { transform: translateZ(2px) rotateZ(-4deg); }
.deck3d img:nth-child(3) { transform: translateZ(3px) rotateZ(10deg) translateX(1.75rem); }
.formats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.formats h3 { grid-column: 1 / span 4; font-family: var(--font-display); font-size: var(--step-head); font-weight: 400; line-height: 1.06; }
.formats > p { grid-column: 1 / span 4; max-width: 30ch; margin-top: 1rem; }
.format-list { grid-column: 5 / span 8; grid-row: 1 / span 2; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.format-list li { display: grid; justify-items: start; gap: 0.3rem; }
.format-list li > span:last-child { max-width: 16ch; color: var(--muted); font-size: 1rem; }
.fmt { --mm: 2.2px; width: calc(var(--w) * var(--mm)); height: calc(var(--h) * var(--mm)); margin-bottom: 0.6rem; background: var(--stripe-ink) 0 0 / 16px 100% repeat-x, var(--bg); border: 7px solid var(--bg); border-radius: 10px; outline: 2px solid var(--ink); }
.fmt-ref { background: none; border: 2px solid var(--muted); outline: 0; border-radius: 9px; }
.real-photos { grid-column: 1 / -1; display: grid; gap: var(--margin); }
.photo-row { display: flex; gap: var(--margin); }
.photo-row li { position: relative; flex: var(--r) 1 0; min-width: 0; }
.photo-row img { width: 100%; aspect-ratio: var(--r); object-fit: cover; border-radius: var(--radius); }
.photo-row span { position: absolute; left: 0; bottom: 1rem; max-width: 90%; padding: 0.45rem 0.9rem 0.45rem 0.8rem; background: var(--bg); font-weight: 700; line-height: 1.25; }
.real-note { font-size: 1rem; color: var(--muted); }

/* ---------- d'autres jeux : des cartes à jouer, sur demande ---------- */
.more { padding: calc(var(--section) * 0.7) var(--margin); }
.more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.more-head .lead { max-width: 40ch; }
.more-groups { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.more-group h3 { font-size: var(--step-lead); font-weight: 700; }
.more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--margin); margin-top: 1rem; }
.more-list li { display: flex; flex-direction: column; min-height: 15rem; overflow: hidden; background: var(--ink); color: var(--accent-ink); border-radius: var(--radius); }
.more-list .stripe { height: 32px; background-image: var(--stripe-paper); background-size: 32px 100%; }
.more-list h4 { margin: auto 1.25rem 0; padding-top: 1.25rem; font-family: var(--font-display); font-size: clamp(1.2rem, 0.9rem + 0.6vw, 1.45rem); font-weight: 400; line-height: 1.08; }
.more-list p { margin: 0.6rem 1.25rem 1.25rem; font-size: 1rem; }
.more-list .more-rules { align-self: flex-start; margin: 0.6rem 1.25rem 0; padding: 0.2rem 0.55rem; background: var(--bg); color: var(--ink); font-size: 0.875rem; font-weight: 700; }
.more-demo { margin: -0.25rem 1.25rem 1.25rem; color: inherit; font-weight: 700; text-underline-offset: 0.2em; }
.more-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.5rem; }
.games-figure .button { margin-top: 1.5rem; }

/* ---------- la bande : chacun son rôle, chacun sa carte ---------- */
.bande { padding: var(--section) var(--margin) calc(var(--section) * 0.6); background: var(--ink); color: var(--accent-ink); overflow-x: clip; }
.bande-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); }
.bande-head .lead { max-width: 40ch; }
.bande-table { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.5rem); margin-top: 2.5rem; }
@media (max-width: 75rem) { .bande-table { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; } }
.seat { display: flex; flex-direction: column; }
.bubble { position: relative; min-height: 4.25rem; margin-bottom: 1rem; padding: 0.6rem 0.8rem; background: var(--bg); color: var(--ink); border-radius: 14px 14px 14px 4px; font-size: 1rem; font-weight: 700; line-height: 1.3; transform-origin: 1.25rem 100%; }
.bubble::after { content: ""; position: absolute; left: 1.25rem; bottom: -9px; border-top: 10px solid var(--bg); border-right: 10px solid transparent; }
.seat-flip { position: relative; aspect-ratio: 2 / 3; transform-style: preserve-3d; }
.seat-flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.seat-card { transform: rotateY(180deg); }
.seat-flip { transform: rotateY(180deg); }
.bande-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; font-size: 1rem; }
.seat-name { margin-top: 0.75rem; line-height: 1.25; }
.seat-name b { display: block; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 400; }
.bande-ask { margin-top: 2rem; font-family: var(--font-display); font-size: var(--step-head); line-height: 1.06; text-align: center; }

/* ---------- le dos des cartes : le motif et le nom ---------- */
[data-motif="rayures"] { --motif: var(--stripe-ink); --motif-size: 20px 100%; }
[data-motif="damier"] { --motif: var(--check-ink); --motif-size: 24px 24px; }
[data-motif="pois"] { --motif: var(--dots-ink); --motif-size: 18px 18px; }
.back-pick { margin-top: 2.25rem; }
.back-pick h3 { font-size: var(--step-lead); font-weight: 700; }
.back-row { display: flex; align-items: center; gap: 1.25rem; margin-top: 0.9rem; }
.back-card, .back3d { display: grid; place-items: center; padding: 0.5rem; background: var(--motif) 0 0 / var(--motif-size) repeat, var(--bg); border: 7px solid var(--bg); border-radius: 10px; outline: 2px solid var(--ink); }
.back-card { flex: none; width: 8.5rem; aspect-ratio: 2 / 3; }
.back-card p, .back3d p { max-width: 100%; padding: 0.3rem 0.4rem; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 0.68rem; line-height: 1.1; text-align: center; overflow-wrap: break-word; }
.back-options { display: grid; gap: 6px; }
.back-options button { min-height: 2.75rem; padding: 0 1.1rem; background: var(--bg); font-weight: 500; text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.back-options button[aria-checked="true"] { background: var(--ink); color: var(--accent-ink); }
.back-note { max-width: 34ch; margin-top: 0.9rem; color: var(--muted); font-size: 1rem; }
.back3d { position: absolute; left: 12.5rem; top: 0.5rem; width: 11rem; height: 16.4rem; transform: translateZ(1px) rotateZ(7deg); }
.back3d p { font-size: 0.95rem; }

/* ---------- ultra perso : ce que l'analyse demande, une photo ou un refus à la fois ---------- */
.asks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: start; padding: calc(var(--section) * 0.7) var(--margin); background: var(--ink); color: var(--accent-ink); }
.asks-head { grid-column: 1 / span 4; position: sticky; top: 6rem; }
.asks-head .lead { margin-top: 1.5rem; }
.asks-note { margin-top: 1.25rem; font-size: 1rem; }
.asks-list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.ask { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 1.25rem; padding: 0.9rem 1rem; background: var(--bg); color: var(--ink); border-radius: var(--radius); transition: opacity var(--t-hover) ease; }
.ask-slot { grid-row: span 2; overflow: hidden; aspect-ratio: 2 / 3; background: var(--stripe-ink) 0 0 / 12px 100% repeat-x, var(--bg); border: 4px solid var(--bg); border-radius: 8px; outline: 2px solid var(--ink); }
.ask-slot img { width: 100%; height: 100%; object-fit: cover; }
.ask-text b { display: block; font-size: var(--step-lead); line-height: 1.2; }
.ask-text span { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 1rem; }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.ask-yes { min-height: 2.75rem; padding: 0 1rem; cursor: pointer; }
.ask-yes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ask-yes:focus-within { outline: 3px solid var(--muted); outline-offset: 3px; }
.ask-no { min-height: 2.75rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.ask-state { grid-column: 2 / -1; font-size: 1rem; font-weight: 700; }
.ask-state:empty { display: none; }
.ask.is-no { opacity: 0.6; }
.ask.is-no .ask-slot img { display: none; }
.photo-pick input { padding: 0.6rem; }
.photo-pick input::file-selector-button { margin-right: 0.9rem; padding: 0.65rem 1rem; border: 0; background: var(--ink); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-previews:empty { display: none; }
.photo-previews img { width: 3.5rem; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.photo-previews li:last-child:not(:has(img)) { align-self: center; font-size: var(--step-small); }

/* ---------- le pied : le dos de la carte ---------- */
.footer { position: sticky; bottom: 0; z-index: 0; display: grid; grid-template-rows: auto auto 1fr auto; min-height: 88svh; background: var(--ink); color: var(--accent-ink); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); padding: 2.5rem var(--margin); }
.footer-cols li { padding: 0.15rem 0; }
.footer-cols li:first-child { margin-bottom: 0.35rem; font-weight: 700; }
.footer-cols ul:last-child { text-align: right; } /* le pied tient les deux marges de la page */
.footer-mark { grid-row: 4; padding: 0 var(--margin) 1.25rem; }
.footer-mark svg { width: 100%; height: auto; overflow: visible; }
.footer-mark text { font-family: var(--font-display); font-size: 166px; fill: currentColor; }
.footer-mark p { margin-top: 0.75rem; font-size: var(--step-small); }

/* ---------- mouvement (le contenu reste visible sans script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-room img.is-on { animation: drift 7200ms var(--ease-soft) both; }
}
@media (prefers-reduced-motion: reduce) {
  .js .flip-inner { transition: none; }
}
@media (prefers-reduced-motion: no-preference) and (pointer: coarse) {
  html { scroll-behavior: smooth; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ---------- tablette et téléphone : une autre composition ---------- */
@media (max-width: 60rem) {
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-room { order: -1; min-height: 0; height: 34svh; }
  .hero-card { position: relative; margin: -24px 12px 0; }
  .hero-card .stripe { height: 40px; background-size: 40px 100%; }
  .hero-main { padding: 1.5rem 1.25rem 1.75rem; }
  .hero-main .wordmark { margin-bottom: 1.25rem; }
  .hero-sub { margin-top: 1.5rem; }
  .hero-main .button { margin-top: 1.5rem; }
  h1 { font-size: clamp(1.625rem, 7.4vw, 3.25rem); }
  .room-caption { bottom: 2.75rem; max-width: 100%; font-size: var(--step-small); }
  .room-replay { bottom: 2.75rem; min-height: 2.25rem; font-size: var(--step-small); }
  .room-bubble { font-size: 1rem; top: 5%; }

  .proof-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .pairs { grid-template-columns: 1fr; gap: 3rem; max-width: 26rem; margin-top: 2.5rem; }
  .pairs li:nth-child(2) { margin-top: 0; }

  /* titre, carte, réponses, puis les autres cartes : la carte se retourne sous le pouce */
  .showcase { display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; }
  .showcase-text { display: contents; }
  .showcase-mid { order: 1; }
  .plate { order: 2; padding: 1.25rem; }
  .answers-wrap { order: 3; }
  .tabs { order: 4; }
  .flip { width: min(100%, 26rem, 42svh); }
  .showcase-mid p { margin-top: 1.25rem; }

  .wall-intro { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .wall figure, .wall figure:nth-child(n+6), .wall figure:nth-child(n+14) { width: auto; grid-column: span 2; }
  .wall figure:nth-child(5n+1), .wall figure:nth-child(5n+2) { grid-column: span 3; }
  .wall figure:nth-child(n+11) { display: none; }

  .steps-nav { display: none; }
  .row { gap: 16px; }
  .row li { flex-basis: 72vw; max-width: 22rem; }
  .row p { margin-bottom: calc(var(--sp, 96px) * 0.45); }

  .menu-section, .games, .faq, .order { display: block; }
  .pay { position: static; margin-top: 1.5rem; }
  .order-head, .occasions-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-facts { margin-top: 1rem; }
  .chat { padding-top: calc(var(--section) * 0.6); }
  .chat > .scene-stage { display: block; }
  .chat-stage { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .wa { width: min(100%, 21rem); }
  .asks { display: block; }
  .asks-head { position: static; }
  .asks-list { margin-top: 2rem; }
  .ask { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .ask-actions { grid-column: 2; }
  .bande-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .bande-table { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .back3d { display: none; }
  .real { display: block; }
  .real-stage { min-height: 19rem; margin-top: 0; }
  .table3d { scale: 0.52; translate: -17% 0; }
  .formats { display: block; margin-top: 2rem; }
  .format-list { flex-wrap: wrap; justify-content: flex-start; gap: 1.5rem 2rem; margin-top: 1.5rem; }
  .fmt { --mm: 1.25px; }
  .real-photos { margin-top: 3rem; }
  .photo-row { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .photo-row li.wide { grid-column: 1 / -1; }
  .more-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .more-list { grid-template-columns: 1fr 1fr; }
  .more-list li { min-height: 13rem; }
  .chat-cards li:nth-child(2) { margin-top: 1.25rem; }
  .chat-cards p { font-size: var(--step-small); }
  .occasion-list { grid-template-columns: 1fr 1fr; }
  .occasion-list li:first-child { grid-column: 1 / -1; }
  .occasion-list li:first-child img { aspect-ratio: 4 / 3; }
  .howto-cols { grid-template-columns: 1fr; }
  .howto-phone { width: min(100%, 20rem); }
  .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding-top: 6rem; }
  .slip { margin-top: 2.5rem; }
  .menu-figure { margin-top: 2.5rem; }
  .menu-figure img, .games-figure img { max-width: 28rem; }
  .games-figure { margin-top: 3rem; }

  .ticket { grid-template-columns: 1fr; }
  .ticket-main { display: contents; }
  .ticket-main h2 { padding: 1.75rem 1.5rem 2rem; }
  .ticket-stub { order: 1; }
  .ticket-lines { order: 2; padding: 0 1.5rem 1.75rem; }
  .ticket-stub::before, .ticket-stub::after { top: -17px; bottom: auto; }
  .ticket-stub::before { left: -14px; }
  .ticket-stub::after { left: auto; right: -14px; }
  .ticket-lines { columns: 1; }
  .ticket-stub { border-left: 0; border-top: 6px dotted var(--surface); padding-top: 2.5rem; }

  .faq { padding-top: 0; display: flex; flex-direction: column-reverse; }
  .faq-pics { padding-bottom: 0; margin: 0 calc(var(--margin) * -1); }
  .faq-tall { aspect-ratio: 4 / 5; border-radius: 0; }
  .faq-square { left: auto; right: var(--margin); bottom: -40px; width: 38%; }
  .faq-col { padding-top: calc(var(--section) / 2 + 40px); }

  .cta { grid-template-columns: 1fr 1fr; padding-inline: var(--margin); }
  .tile-main { grid-column: 1 / -1; min-height: 19rem; }
  .tile-pic, .tile-flat { min-height: 7.5rem; height: 7.5rem; border-radius: var(--radius); }
  .tile-pic { order: 1; }
  .tile-flat { order: 2; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .wall-title { font-size: 18.5vw; }
  .wall-title br { display: inline; }
  .answers { grid-template-columns: 1fr; }
  .choices, .choices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { flex-direction: column; align-items: flex-start; }
  .split-out { flex-direction: column; }
  .hero-main .button, .tile-main .button { width: 100%; padding: 0 1rem; }
}
