/* Ardinum — pages publiques en « arcade chaleureux » (taste-skill, seed 214473026 ; accueil à deux téléphones depuis le 2026-10-24) :
   couleurs prises dans les jeux (mer de Fish Rush, herbe et soleil de Fun Fair Rush, rouge du carrousel). */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #17151a;
  --soft: #4a4650;
  --sea: #3cc0ef;
  --grass: #8fd65a;
  --sun: #ffcf33;
  --red: #d42a33;      /* bouton : 5,0:1 avec le blanc */
  --red-press: #b31f28;
  --pad: clamp(16px, 2.2vw, 32px);
  --edge: max(var(--pad), calc((100% - 1440px) / 2)); /* marge latérale des blocs : centre le contenu au-delà de 1440 px */
  --step-small: 0.875rem;                                  /* 14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17-19 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);   /* 20-26 */
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem);    /* 36-68 */
  --step-mega: clamp(3.25rem, 8vw, 8rem);                  /* titres des jeux, adresse */
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--ink); }

.f-sea { background: var(--sea); }
.f-grass { background: var(--grass); }
.f-sun { background: var(--sun); }

/* Barre : marque, trois liens. */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--edge); }
.page-doc .bar { position: static; }
.mark, .foot-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); text-decoration: none; }
.mark img, .foot-mark img { width: 40px; height: 40px; border-radius: 12px; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { font: 600 var(--step-body)/1 var(--display); text-decoration: none; padding: 12px 14px; border-radius: 999px; transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
@media (hover: hover) { .bar nav a:hover { background: rgba(23, 21, 26, 0.08); } }
.bar nav a:active { transform: scale(0.96); }

/* Accueil : le titre reste, les affiches des jeux passent dessous. */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px clamp(24px, 4vw, 72px); padding: 96px var(--edge) 48px; }
.hero h1 { font-size: clamp(4.5rem, 11.5vw, 12rem); line-height: 0.84; letter-spacing: -0.035em; }
.hero-text { display: grid; gap: 24px; justify-items: start; max-width: 36rem; }
/* Deux téléphones dessinés en CSS (cadre, coins) : la vidéo ou la capture du jeu dedans, lien vers la page du jeu. */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 48px); }
.phone { width: min(44%, calc((100svh - 230px) * 0.46)); display: grid; justify-items: center; gap: 14px; text-decoration: none; font: 600 var(--step-body)/1 var(--display); }
.phone:first-child { transform: translateY(-28px) rotate(-3deg); }
.phone:last-child { transform: rotate(3deg); }
.screen { display: block; width: 100%; aspect-ratio: 9 / 19; overflow: hidden; border: clamp(6px, 0.7vw, 10px) solid var(--ink); border-radius: clamp(26px, 3vw, 44px); background: var(--ink); box-shadow: 0 28px 48px -28px rgba(23, 21, 26, 0.55); transition: transform 240ms var(--ease-out); }
.screen img, .screen video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .phone:hover .screen { transform: translateY(-8px); } }
.phone:active .screen { transform: scale(0.98); }
.lead { font: 700 max(1.125rem, var(--step-body))/1.45 var(--text); }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--red); color: #fff; font: 600 var(--step-body)/1 var(--display); text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
@media (hover: hover) { .btn:hover { background: var(--red-press); transform: translateY(-2px); } }
.btn:active { transform: scale(0.97); }

/* Les jeux : le titre déchiré à la couture de deux captures. */
.games { padding-top: clamp(96px, 12vw, 180px); }
.games-title { font-size: var(--step-head); padding: 0 var(--edge) 48px; }
.game { position: relative; }
.stage { position: relative; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.pane { overflow: hidden; }
.pane img, .pane video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pane-l img { object-position: center 40%; }
.seam { position: absolute; z-index: 1; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; text-align: center; font-size: var(--step-mega); line-height: 0.9; }
.half { grid-area: 1 / 1; padding: 0.12em 0.3em 0.16em; justify-self: center; color: var(--ink); }
.f-sea .half { background: var(--sea); }
.f-sun .half { background: var(--sun); }
.half-l { clip-path: inset(0 50% 0 0); }
.half-r { clip-path: inset(0 0 0 50%); }
.game-card { display: grid; grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 64px); align-items: start; padding: 56px var(--edge) 120px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.facts dt { font-size: var(--step-small); font-weight: 700; color: var(--ink); }
.facts dd { margin: 4px 0 0; font: 600 var(--step-body)/1.3 var(--display); }
.game-icon { width: 120px; height: 120px; border-radius: 28px; }
.game-card > div { display: grid; gap: 14px; max-width: 62ch; }
.game-line { font: 600 var(--step-lead)/1.2 var(--display); }
.game-status { font-weight: 800; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage { view-timeline: --stage block; }
    .pane-l { animation: tear-up linear both; animation-timeline: --stage; }
    .pane-r { animation: tear-down linear both; animation-timeline: --stage; }
    .half-l { animation: nudge-up linear both; animation-timeline: --stage; }
    .half-r { animation: nudge-down linear both; animation-timeline: --stage; }
  }
}
@keyframes tear-up { from { transform: translateY(12svh); } 50% { transform: none; } to { transform: translateY(-12svh); } }
@keyframes nudge-up { from { transform: translateY(3svh); } 50% { transform: none; } to { transform: translateY(-3svh); } }
@keyframes nudge-down { from { transform: translateY(-3svh); } 50% { transform: none; } to { transform: translateY(3svh); } }
@keyframes tear-down { from { transform: translateY(-12svh); } 50% { transform: none; } to { transform: translateY(12svh); } }

/* Le studio. */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(120px, 12vw, 200px) var(--edge); }
.studio-text { display: grid; gap: 20px; max-width: 34em; }
.studio-text h2 { font-size: var(--step-head); margin-bottom: 8px; }
.studio-text p:first-of-type { font: 600 var(--step-lead)/1.35 var(--text); }
.treats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.treats li { display: grid; justify-items: center; gap: 10px; padding: 24px 12px 20px; border-radius: 28px; background: #fff3c4; font: 600 var(--step-body)/1.2 var(--display); text-align: center; }
.treats li:nth-child(2n) { background: #d9f2ff; }
.treats li:nth-child(3n) { background: #e4f6d6; }
.treats img { width: clamp(72px, 8vw, 120px); height: auto; transition: transform 240ms var(--ease-out); }
@media (hover: hover) { .treats li:hover img { transform: rotate(-6deg) scale(1.06); } }

/* Contact : l'adresse en grand. */
.contact { display: grid; gap: 32px; padding: 64px var(--edge) 40px; }
.contact-intro { font: 600 var(--step-lead)/1.3 var(--display); letter-spacing: 0; max-width: 26ch; }
.email { margin-top: clamp(64px, 10vw, 160px); align-self: end; font: 600 var(--step-mega)/0.95 var(--display); letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; transition: color 200ms var(--ease-out); }
@media (hover: hover) { .email:hover { color: var(--red); } }
.contact-foot { font-size: var(--step-small); font-weight: 700; }

/* Pied : la photo d'un côté, le menu de l'autre. */
/* L'image suit la hauteur du menu (position absolue) au lieu de l'imposer : pas de grand vide vert en 1440. */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(640px, 88svh, 820px); }
.foot-img { position: relative; overflow: hidden; }
.foot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.foot-menu { background: var(--grass); padding: 64px var(--edge) 32px; display: grid; grid-template-rows: auto 1fr auto; gap: 40px; }
.foot-menu nav { display: grid; align-content: start; gap: 20px; }
.foot-menu nav a { font: 700 var(--step-head)/1 var(--display); text-decoration: none; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); width: fit-content; }
@media (hover: hover) { .foot-menu nav:hover a { opacity: 0.55; } .foot-menu nav a:hover { opacity: 1; transform: translateX(12px); } }
.foot-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--step-small); }
.foot-info a { overflow-wrap: anywhere; }
.legal { font-size: var(--step-small); font-weight: 600; }
.private { color: var(--soft); font-weight: 600; }

/* Confidentialité. */
.doc-head { padding: clamp(48px, 6vw, 96px) var(--edge) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px var(--pad); align-items: end; overflow: hidden; }
.doc-title { display: grid; gap: 16px; padding-bottom: clamp(48px, 6vw, 96px); }
.doc-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.doc-shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px 20px 0 0; }
.doc-shots img:nth-child(odd) { aspect-ratio: 9 / 14; }
.rise { animation: rise 700ms var(--ease-out) both; }
.doc-title p.rise { animation-delay: 80ms; }
.doc-title .btn, .doc-title .game-links { justify-self: start; animation-delay: 140ms; }
.doc-shots img:nth-child(1) { animation-delay: 120ms; } .doc-shots img:nth-child(2) { animation-delay: 190ms; }
.doc-shots img:nth-child(3) { animation-delay: 260ms; } .doc-shots img:nth-child(4) { animation-delay: 330ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.doc-head h1 { font-size: var(--step-head); line-height: 0.95; }
.doc-head p { font: 600 var(--step-lead)/1.3 var(--text); }
.doc-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--pad); padding: 80px var(--edge) 120px; }
.doc-body section { grid-column: span 4; display: grid; align-content: start; gap: 14px; }
.doc-body section:nth-child(2) { grid-column: span 8; }
.doc-body section:nth-child(3) { grid-column: 1 / span 4; }
.doc-body h2 { font-size: var(--step-lead); letter-spacing: 0; }
.doc-body p { max-width: 62ch; }
.back { grid-column: 5 / -1; align-self: end; font: 600 var(--step-body)/1 var(--display); }
.back a, .doc-body a { text-underline-offset: 4px; }
.foot-mini { background: var(--grass); padding: 28px var(--edge); font-size: var(--step-small); font-weight: 700; }

/* Entrées : le contenu reste visible sans script (la classe .js n'est posée que par site.js). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .treats li:nth-child(2) { transition-delay: 70ms; } .js .treats li:nth-child(3) { transition-delay: 140ms; }
.js .treats li:nth-child(4) { transition-delay: 210ms; } .js .treats li:nth-child(5) { transition-delay: 280ms; }
.js .treats li:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
  .screen { transition: none; }
  .btn, .bar nav a, .foot-menu nav a, .treats img, .email { transition: none; }
}

/* Tablette et téléphone. */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 88px; }
  .phone { width: min(44%, 260px); }
  .studio { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 96px minmax(0, 1fr); }
  .facts { grid-column: 2; }
  .foot { grid-template-columns: 1fr; }
  .foot-img { height: 50svh; }
  .doc-head { grid-template-columns: 1fr; }
  .doc-title { padding-bottom: 0; }
  .doc-body section, .doc-body section:nth-child(2), .doc-body section:nth-child(3), .back { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bar { padding: 12px 16px; }
  .mark span { display: none; }
  .bar nav a { padding: 12px 10px; font-size: 1rem; }
  .hero { padding-top: 76px; gap: 28px; }
  .phones { padding-top: 12px; }
  .phone:first-child { transform: translateY(-8px) rotate(-2deg); }
  .phone:last-child { transform: translateY(8px) rotate(2deg); }
  .hero h1 { font-size: 22vw; }
  .stage { height: 86svh; }
  .seam { font-size: 13vw; }
  .game-card { grid-template-columns: 1fr; gap: 20px; padding: 40px 16px 96px; }
  .facts { grid-column: 1; }
  .foot-info { grid-template-columns: 1fr; }
  .game-icon { width: 88px; height: 88px; border-radius: 22px; }
  .treats { gap: 10px; }
  .treats li { padding: 16px 6px 14px; border-radius: 22px; font-size: 0.9375rem; }
  .email { font-size: 11vw; }
  .foot-menu nav a { font-size: 8vw; }
  /* Captures en bande qui défile au doigt : la suivante dépasse au bord pour inviter à glisser. */
  .doc-shots { display: flex; min-width: 0; gap: 12px; align-items: end; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .doc-shots::-webkit-scrollbar { display: none; }
  .doc-shots img, .doc-shots img:nth-child(odd) { flex: none; width: 72%; min-width: 0; aspect-ratio: 9 / 16; scroll-snap-align: start; }
}

/* ---------- Pages légales des jeux et de l'outil interne : une colonne de lecture, sans décor. */
.page-legal .bar { position: static; }
.legal-doc { max-width: 72ch; margin: 0 auto; padding: 24px var(--pad) 96px; }
.legal-doc h1 { font-size: var(--step-head); margin: 16px 0 8px; }
.legal-doc h2 { font-size: var(--step-head); margin: 40px 0 6px; }
.legal-doc h3 { font-size: var(--step-lead); letter-spacing: 0; margin: 32px 0 8px; scroll-margin-top: 24px; }
.legal-doc p, .legal-doc li { color: var(--soft); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { padding-left: 1.2em; margin: 0 0 12px; display: grid; gap: 6px; }
.legal-doc a { color: var(--ink); text-underline-offset: 4px; }
.legal-doc strong { color: var(--ink); }
.legal-doc .date { font-size: var(--step-small); font-weight: 700; color: var(--soft); }
.legal-doc .q { margin: 20px 0 4px; color: var(--ink); font-weight: 800; }
.legal-doc hr { border: 0; border-top: 2px solid var(--sun); margin: 48px 0 0; }
.legal-doc section { scroll-margin-top: 24px; }
.legal-game { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font: 700 var(--step-lead)/1 var(--display); }
.legal-game img { border-radius: 12px; }

/* Pages légales d'un jeu : bandeau à la couleur du jeu (comme sa page), sommaire à gauche, colonne de lecture. */
.legal-head { padding: clamp(40px, 5vw, 80px) var(--edge) clamp(28px, 3vw, 40px); display: grid; gap: 12px; justify-items: start; }
.legal-head .legal-game { margin: 0; color: var(--ink); text-decoration: none; }
.legal-head .legal-game img { width: 56px; height: 56px; border-radius: 14px; }
.legal-head h1 { font-size: var(--step-head); line-height: 0.95; margin-top: 8px; }
.legal-head .legal-en { font: 600 var(--step-lead)/1.2 var(--text); opacity: 0.75; }
.legal-head .legal-game.rise, .legal-head .legal-en { animation-delay: 60ms; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; animation-delay: 120ms; }
.legal-tabs a, .lang a { font: 600 var(--step-small)/1 var(--display); color: var(--ink); text-decoration: none; padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.legal-tabs a[aria-current] { background: var(--ink); color: #fff; }
.legal-tabs a:active, .lang a:active { transform: scale(0.97); }
@media (hover: hover) { .legal-tabs a:not([aria-current]):hover { background: #fff; } .lang a:hover { background: rgba(23, 21, 26, 0.12); } }
.legal-body { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 72ch); gap: clamp(32px, 5vw, 80px); padding: 48px var(--edge) 96px; }
.legal-body.no-toc { grid-template-columns: minmax(0, 72ch); }
.legal-body .legal-doc { max-width: none; margin: 0; padding: 0; }
.legal-body .legal-doc section > h2 { margin-top: 0; }
.legal-side { display: grid; align-content: start; gap: 24px; }
.legal-side .lang { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-side .lang a { background: rgba(23, 21, 26, 0.06); }
.legal-toc p { font: 700 var(--step-small)/1 var(--display); margin: 16px 0 8px; }
.legal-toc p:first-child { margin-top: 0; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid rgba(23, 21, 26, 0.1); }
.legal-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--step-small); color: var(--soft); text-decoration: none; }
@media (hover: hover) { .legal-toc li a:hover { color: var(--ink); border-left-color: var(--sea); } }
.legal-toc.narrow { display: none; }
@media (min-width: 901px) { .legal-side { position: sticky; top: 24px; align-self: start; max-height: calc(100svh - 48px); overflow-y: auto; } }
@media (max-width: 900px) {
  .legal-body, .legal-body.no-toc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .legal-toc.wide { display: none; }
  .legal-toc.narrow { display: block; border-radius: 16px; background: rgba(23, 21, 26, 0.04); padding: 4px 16px; }
  .legal-toc.narrow summary { font: 700 var(--step-body)/1 var(--display); padding: 14px 0; cursor: pointer; }
  .legal-toc.narrow[open] { padding-bottom: 16px; }
}

/* ---------- Page d'un jeu : gabarit des pages « doc », icône du jeu et faits dans le corps. */
.game-page .legal-game img { width: 64px; height: 64px; border-radius: 16px; }
.game-page .doc-head h1 { font-size: var(--step-mega); }
.game-page .facts { margin-top: 12px; }
.game-more { font: 600 var(--step-body)/1 var(--display); text-underline-offset: 4px; }
.game-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Page d'un jeu. En haut : titre, 3 repères, boutons, et à côté la vidéo de la pub (4:5) ou une capture dans un téléphone.
   Puis le texte : sections à capture en vis-à-vis (téléphone penché, comme à l'accueil), une bande à la couleur du jeu
   pour les étapes du voyage (îles, quartiers, numérotées : c'est une suite), « En bref », FAQ sur deux colonnes.
   Bouton Play collé en bas sur mobile, montré seulement quand celui du haut est sorti de l'écran (site.js). */
.doc-head.has-film { align-items: center; padding-bottom: clamp(40px, 5vw, 80px); }
.has-film .doc-title { padding-bottom: 0; }
.hero-film { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); animation-delay: 160ms; }
.game-page .doc-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.game-page .doc-head h1 { font-size: clamp(3.25rem, 6.4vw, 6.75rem); line-height: 0.92; }
.sound { position: absolute; right: 14px; bottom: 14px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(23, 21, 26, 0.72); color: #fff; font: 600 var(--step-small)/1 var(--display); cursor: pointer; }
.sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-film video, .hero-film img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; background: var(--ink); box-shadow: 0 28px 48px -28px rgba(23, 21, 26, 0.55); }
.hero-shot { width: min(100%, 340px); }
.hero-shot img { aspect-ratio: 9 / 16; border: clamp(6px, 0.7vw, 10px) solid var(--ink); border-radius: clamp(26px, 3vw, 40px); transform: rotate(2deg); }
.hero-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stats li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); font: 600 var(--step-small)/1.2 var(--display); }
.bar .lang-switch { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; }
.lang-switch .short { display: none; }
@media (max-width: 600px) { .bar .lang-switch { padding: 8px 10px; } .lang-switch .long { display: none; } .lang-switch .short { display: inline; } }
.lang-switch:focus-visible, .faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.game-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(64px, 8vw, 112px); padding: clamp(64px, 8vw, 112px) var(--edge) 96px; }
.game-text > * { grid-column: 1; }
.game-text section { display: grid; gap: 16px; }
.game-text h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.01em; }
.game-text p { max-width: 62ch; margin: 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; }
.game-text p + p { margin-top: 4px; }
.game-text strong { font-weight: 800; }
.game-text a { text-underline-offset: 4px; }

.story.with-shot { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.story > div { display: grid; gap: 16px; }
.story.with-shot > div { grid-row: 1; grid-column: 1; }
.story.with-shot .shot { grid-row: 1; grid-column: 2; margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: clamp(6px, 0.6vw, 9px) solid var(--ink); border-radius: clamp(24px, 2.6vw, 36px); transform: rotate(-2.5deg); box-shadow: 0 28px 48px -28px rgba(23, 21, 26, 0.55); }
.story.with-shot:nth-of-type(even) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.story.with-shot:nth-of-type(even) .shot { grid-column: 1; }
.story.with-shot:nth-of-type(even) .shot img { transform: rotate(2.5deg); }
.story.with-shot:nth-of-type(even) > div { grid-column: 2; }

/* La bande du voyage sort de la colonne de texte et prend toute la largeur. */
.game-text > .route-band { max-width: none; margin-inline: calc(-1 * var(--edge)); padding: clamp(56px, 7vw, 96px) var(--edge); gap: 32px; }
.boxed { padding: clamp(28px, 4vw, 56px); border-radius: 32px; border: 2px solid var(--ink); }
.boxed.f-sea { background: #e4f6fd; }
.boxed.f-sun { background: #fff5d1; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.pair .facts { margin-top: 8px; }
.legal-line { font-size: var(--step-small) !important; color: var(--soft); }
.route-head { display: grid; gap: 16px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.route li { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start; }
.route h3 { font: 600 var(--step-lead)/1.1 var(--display); margin: 0; }
.route p { font-size: 0.9375rem !important; line-height: 1.45 !important; }
.route-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 0.95rem/1 var(--display); margin-bottom: 4px; }

.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); }
.faq h2 { grid-column: 1 / -1; }
.faq details { border-top: 2px solid var(--ink); padding: 16px 0; align-self: start; }
.faq summary { cursor: pointer; font: 600 var(--step-body)/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 0.8; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }

.play-dock { display: none; }
@media (max-width: 900px) {
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .game-page .doc-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .story.with-shot, .story.with-shot:nth-of-type(even) { grid-template-columns: 1fr; }
  .story.with-shot .shot, .story.with-shot:nth-of-type(even) .shot { grid-row: 2; grid-column: 1; width: 62%; justify-self: center; }
  .story.with-shot > div, .story.with-shot:nth-of-type(even) > div { grid-column: 1; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-film { width: 100%; }
  .hero-shot { width: 72%; }
  .route { gap: 10px; }
  .route li { padding: 14px 14px 16px; border-radius: 18px; }
  .play-dock { display: flex; justify-content: center; position: fixed; z-index: 5; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 12px 28px -10px rgba(23, 21, 26, 0.6);
    transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out); }
  .js .play-dock:not(.on) { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .page-doc:has(.play-dock) .foot-mini { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .play-dock { transition: none; }
}

/* ---------- Slide & Boom (2026-10-28) : ciel bleu de l'image clé en haut, sable de l'arène pour le mini-duel.
   Le plateau reprend l'arène du jeu (dalles, piliers gris, caisses, couronne) ; vous êtes en bas à gauche, en bleu. */
.f-boom { background: #5cb8ff; }
.page-boom .shot img, .page-boom .hero-film img { box-shadow: none; }
.boxed.f-boom { background: #e6f3ff; }
.f-boom .half { background: #5cb8ff; }
.mock-note { margin-top: 10px; text-align: center; font: 600 var(--step-small)/1.3 var(--display); color: var(--ink); }
.game-text .mock-line { font-size: var(--step-small); color: var(--soft); }
.game-text .duel-msg, .game-text .duel-off { max-width: none; }
.game-text > .duel-band, .game-text > .cards-band { max-width: none; margin-inline: calc(-1 * var(--edge)); padding: clamp(56px, 7vw, 96px) var(--edge); }

/* Mini-duel : texte à gauche, plateau à droite ; sous 900 px, le plateau passe sous le texte. */
.duel-band { background: #f6dfa7; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: clamp(40px, 6vw, 96px); row-gap: 32px; align-items: center; }
.duel { display: grid; gap: 14px; justify-items: center; width: 100%; max-width: 440px; justify-self: center; }
.duel-off { font-weight: 700; }
.duel.on .duel-off { display: none; }
.duel-score { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 600 var(--step-body)/1 var(--display); }
.duel-score span { display: flex; align-items: center; gap: 10px; }
.duel-score img { width: 44px; height: 44px; border-radius: 12px; border: 3px solid #2f7cf6; }
.duel-score .rival img { border-color: #e0393e; }
.duel-score b { font-size: 1.8em; min-width: 1.2ch; text-align: center; font-variant-numeric: tabular-nums; }
.board { --cell: min(16vw, 80px); position: relative; display: grid; grid-template-columns: repeat(5, var(--cell)); grid-auto-rows: var(--cell); padding: 8px; border-radius: 20px; background: #b9a07a; border: 3px solid var(--ink); touch-action: none; user-select: none; cursor: grab; }
.board:focus-visible { outline-offset: 4px; }
.cell { background: #fbe9be; }
.cell:nth-child(odd) { background: #f5dca3; }
.cell.pillar { background: #9b9aa3; border-radius: 10px; margin: 5px; box-shadow: inset 0 -6px 0 #74737c; }
.cell.crown { display: grid; place-items: center; }
.cell.crown img { width: 78%; height: 78%; border-radius: 10px; }
.piece { position: absolute; left: 8px; bottom: 8px; width: var(--cell); height: var(--cell); display: grid; place-items: center; pointer-events: none;
  transform: translate(calc(var(--x) * 100%), calc(var(--y) * -100%)); transition-property: transform; transition-timing-function: linear; }
.token { z-index: 2; }
.token img { width: 82%; height: 82%; border-radius: 50%; border: 4px solid #2f7cf6; background: #fff; }
.token.rival img { border-color: #e0393e; }
.token.land img { animation: land 220ms var(--ease-out); }
@keyframes land { 40% { transform: scale(1.18, 0.82); } }
.token::after { content: attr(data-arrow); position: absolute; top: -6px; right: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem/1 var(--display); color: #fff; background: #2f7cf6; opacity: 0; transform: scale(0.6); transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
.token.rival::after { background: #e0393e; }
.reveal-dirs .token::after { opacity: 1; transform: none; }
.crate::before { content: ""; width: 78%; height: 78%; border-radius: 8px; background: #b9773a; box-shadow: inset 0 0 0 4px #8a5426, inset 0 -6px 0 #8a5426; }
.crate.gone { transition: transform 380ms var(--ease-out), opacity 380ms; opacity: 0; transform: translate(calc(var(--x) * 100%), calc(var(--y) * -100% - 30%)) rotate(25deg); }
.bomb::before { content: ""; position: absolute; width: 56%; height: 56%; border-radius: 50%; background: #1f1d22; }
.bomb.you::before { outline: 3px solid #2f7cf6; }
.bomb.rival::before { outline: 3px solid #e0393e; }
.bomb span { position: relative; color: #fff; font: 700 1rem/1 var(--display); }
.flame { background: #ff8a1f; border-radius: 14px; animation: flame 520ms var(--ease-out) forwards; }
@keyframes flame { from { transform: translate(calc(var(--x) * 100%), calc(var(--y) * -100%)) scale(0.3); background: #fff3a0; } to { transform: translate(calc(var(--x) * 100%), calc(var(--y) * -100%)) scale(1); opacity: 0; } }
.shake .board { animation: shake 300ms linear; }
@keyframes shake { 25% { translate: -4px 2px; } 50% { translate: 4px -2px; } 75% { translate: -2px 1px; } }
.duel-msg { min-height: 2.6em; text-align: center; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.duel-pad { display: grid; grid-template-columns: 64px auto 64px; grid-template-areas: ". up ." "left bomb right" ". down ."; gap: 8px; justify-items: center; align-items: center; }
.duel-pad button, .duel-msg .again { min-width: 56px; min-height: 56px; border: 3px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); font: 700 1.5rem/1 var(--display); cursor: pointer; transition: transform 120ms var(--ease-out), background-color 120ms; }
.duel-pad button:active, .duel-msg .again:active { transform: scale(0.94); }
.duel-pad [data-dir="up"] { grid-area: up; }
.duel-pad [data-dir="down"] { grid-area: down; }
.duel-pad [data-dir="left"] { grid-area: left; }
.duel-pad [data-dir="right"] { grid-area: right; }
.duel-pad .bomb-toggle { grid-area: bomb; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: var(--step-small); }
.bomb-dot { width: 18px; height: 18px; border-radius: 50%; background: #1f1d22; }
.bomb-toggle[aria-pressed="true"] { background: #ff8a1f; }
.duel-pad .bomb-toggle:disabled { opacity: 0.45; cursor: not-allowed; }
.duel-msg .again { font-size: var(--step-small); padding: 0 18px; background: var(--red); color: #fff; border-color: var(--red); }
@media (hover: hover) { .duel-pad button:hover { background: #fff3c4; } .duel-pad .bomb-toggle[aria-pressed="true"]:hover { background: #ff9c40; } }

/* Le tour en 3 temps : trois maquettes côte à côte, légende sous chacune (une vraie suite : liste ordonnée). */
.tour { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); counter-reset: beat; }
.tour figure { margin: 0; display: grid; gap: 12px; }
.tour img { width: 100%; border-radius: 22px; border: 3px solid var(--ink); }
.tour figcaption { font: 600 var(--step-body)/1.3 var(--display); counter-increment: beat; }
.tour figcaption::before { content: counter(beat); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; }

/* Les 12 cartes : une rangée qui défile au doigt, couleur de la famille autour de chaque carte. */
.cards-band { background: #1d2a4a; color: #fff; }
.cards-band h2, .cards-band strong { color: #fff; }
.game-text .cards-band .mock-line { color: #c9d3ea; }
.deck { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.deck li { display: grid; gap: 10px; align-content: start; }
.deck img { width: 100%; border-radius: 16px; border: 4px solid var(--fam); }
.game-text .deck p { display: grid; gap: 2px; font-size: 1rem; line-height: 1.3; }
.deck span { color: var(--fam); font: 600 var(--step-small)/1.2 var(--display); }
.fam-x { --fam: #ff9a3d; }
.fam-p { --fam: #6cc8ff; }
.fam-m { --fam: #9be36b; }

/* Les héros : la planche entière, puis une capacité par héros à sa couleur. */
.heroes-strip { margin: 0; }
.heroes-strip img { width: 100%; border-radius: 28px; }
.heroes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.heroes li { display: grid; gap: 6px; align-content: start; padding-top: 12px; border-top: 6px solid var(--hero); }
.heroes h3 { font: 600 var(--step-lead)/1.1 var(--display); }
.game-text .heroes p { font-size: 0.9375rem; line-height: 1.45; }

/* Les arènes, dans l'ordre où on les ouvre : rangée qui défile sous 1100 px. */
.arenas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.arenas li { display: grid; gap: 8px; align-content: start; }
.arenas figure { margin: 0; }
.arenas img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 18px; border: 3px solid var(--ink); }
.arenas h3 { font: 600 var(--step-lead)/1.1 var(--display); }
.game-text .arenas p { font-size: 0.9375rem; line-height: 1.45; }

@media (max-width: 1100px) {
  .deck { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(150px, 26vw, 200px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--edge)); padding: 0 var(--edge) 12px; scroll-padding-inline: var(--edge); }
  .heroes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .arenas { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: clamp(170px, 28vw, 230px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--edge)); padding: 0 var(--edge) 8px; scroll-padding-inline: var(--edge); }
  .arenas li { scroll-snap-align: start; }
  .deck li { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .duel-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tour { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--edge)); padding: 0 var(--edge) 8px; scroll-padding-inline: var(--edge); }
  .tour li { scroll-snap-align: start; }
  .heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heroes-strip img { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .token.land img, .shake .board, .flame { animation: none; }
  .crate.gone, .token::after { transition: none; }
}
