/* Le site d'Ascent Studio et de La Taverne.
   Tout vient de l'app (La-Taverne) : couleurs de `nuancier.dart` et
   `roles_couleurs.dart`, tuiles de `TuileWrapper` / `lampe_tuile.dart`,
   bouton de `bouton_biseau.dart`, patchs de `patch.dart`, fond de
   `fond_menus.dart`, cotes de `ui_constantes.dart`. À reporter ici si l'app
   change. Pensé d'abord pour le téléphone (375 px), centré sur ordinateur. */

@font-face { font-family: 'Fredoka One'; font-display: swap; src: url('/lataverne/fonts/FredokaOne-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 450; font-display: swap; src: url('/lataverne/fonts/Fredoka-Texte.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('/lataverne/fonts/Fredoka-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/lataverne/fonts/Fredoka-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('/lataverne/fonts/Geist-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('/lataverne/fonts/Geist-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Geist'; font-weight: 800; font-display: swap; src: url('/lataverne/fonts/Geist-ExtraBold.ttf') format('truetype'); }

:root {
  color-scheme: dark;
  --creme: #F8F0E1;
  --noir: #0F0B0E;
  --jaune: #FFD24A;          /* CouleursTexte.sloganAccueil */
  --ombre: #140228;
  --fond-base: #19072E;      /* violet, clarté × 0,30 */
  --fond-bandes: #250B46;    /* violet, clarté × 0,45 */
  --violet-sombre: #1C0537;
  --rayon-tuile: 18px;       /* borderRadiusTuileCst */
  --rayon-carte: 22px;       /* borderRadiusCarteCst */
  --biseaux: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 rgba(15, 11, 14, .4);
  --ombre-tuile: 0 2px 2px rgba(15, 11, 14, .35);
  --ombre-texte: 1px 2px 0 rgba(15, 11, 14, .5);
  --marge: 16px;
  --largeur: 560px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--creme);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--fond-base);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Le fond des menus de l'app : trois bandes par écran, épaisses de 30 % de sa
   hauteur, un centre tous les 40 %, montant vers la droite de 16,5°. Posé sur
   un calque fixe (Safari ignore `background-attachment: fixed`). */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -20vw;
  z-index: -1;
  background: repeating-linear-gradient(
    163.5deg,
    var(--fond-bandes) 0 30vh,
    var(--fond-base) 30vh 38.36vh);
  pointer-events: none;
}

a { color: var(--jaune); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--marge) 0;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin: 0 auto;
  min-height: 58px;
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1.5px rgba(248, 240, 225, .16);
  color: var(--creme);
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.retour svg { width: 9px; height: 16px; }

.langues {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1.5px rgba(248, 240, 225, .16);
}
.langues a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  border-radius: 10px;
}
.langues img {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .45);
  opacity: .45;
  transition: opacity .15s;
}
.langues a[aria-current] { background: rgba(255, 210, 74, .16); }
.langues a[aria-current] img { opacity: 1; box-shadow: 0 0 0 2px var(--jaune); }

.entete {
  text-align: center;
  padding: 22px var(--marge) 0;
}
.entete .logo {
  display: block;
  overflow: visible;
  width: 124px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 6px 10px rgba(15, 11, 14, .45));
}
.entete h1 {
  margin: 0;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 11.5vw, 64px);
  line-height: 1;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .32);
  text-wrap: balance;
}
.slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--jaune);
}
.slogan::before, .slogan::after {
  content: '';
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--jaune);
  flex: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin: 0 auto;
  padding: 30px var(--marge) 48px;
}

.surtitre {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--jaune);
  text-transform: uppercase;
}

h2.titre-section {
  margin: 8px 0 0;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  text-shadow: var(--ombre-texte);
  text-wrap: balance;
}

/* ---------- Tuile de l'app ----------
   La lampe (`lampeTuile`) : un dégradé radial centré hors de la tuile, en haut
   à droite, du reflet vers l'ombre. Les arrêts --l0/--l1/--l2 sont calculés
   par le générateur (`couleursLampe`), comme dans l'app. */
.tuile {
  --l0: #7136BC; --l1: #5B21A5; --l2: #42118D;
  --retrait: 6px;
  position: relative;
  isolation: isolate;
  display: block;
  border-radius: var(--rayon-tuile);
  background: radial-gradient(circle farthest-corner at 78% -10%, var(--l0) 0%, var(--l1) 27%, var(--l2) 82%);
  box-shadow: var(--biseaux), var(--ombre-tuile);
  color: var(--creme);
  text-decoration: none;
  text-align: left;
}
.tuile.carte { border-radius: var(--rayon-carte); --retrait: 7px; }

/* Le tracé pointillé en retrait du bord (`dashPatternTuileCst` 6-4-2-8). */
.pointilles {
  position: absolute;
  inset: var(--retrait) var(--retrait) calc(var(--retrait) + 3px);
  width: calc(100% - 2 * var(--retrait));
  height: calc(100% - 2 * var(--retrait) - 3px);
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}
.pointilles rect {
  fill: none;
  stroke: rgba(248, 240, 225, .2);
  stroke-width: 1.5;
  stroke-dasharray: 6 4 2 8;
  stroke-linecap: round;
}

/* Une tuile qu'on touche : l'effet de `BoutonWrapper`, un léger rétrécissement. */
.touchable {
  cursor: pointer;
  border: 0;
  font: inherit;
  transition: transform .15s ease-out;
  -webkit-user-select: none;
  user-select: none;
}
.touchable:active { transform: scale(.96); transition: transform .15s ease-in; }

/* Le flottement permanent des tuiles de l'accueil de l'app (±0,75°, ±1,5 px). */
@media (prefers-reduced-motion: no-preference) {
  .flotte { animation: flotter var(--duree, 4s) ease-in-out infinite alternate; }
  .flotte:active { animation-play-state: paused; }
}
@keyframes flotter {
  from { translate: -1px 1px; rotate: -.5deg; }
  to { translate: 1px -1.5px; rotate: .6deg; }
}

/* Les grosses cartes de navigation (maquette) : sticker, titre, sous-titre,
   flèche ronde à droite. */
.carte-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 108px;
  padding: 20px 18px 22px 18px;
}
.carte-nav .sticker { width: 56px; height: 56px; flex: none; object-fit: contain; overflow: visible; }
.carte-nav svg.sticker { width: 60px; height: 59px; }
.carte-nav .textes { flex: 1; min-width: 0; }
.carte-nav .nom {
  display: block;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-size: 27px;
  line-height: 1.05;
  text-shadow: var(--ombre-texte);
}
.carte-nav .sous {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  opacity: .92;
}
.fleche {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .26);
  box-shadow: inset 0 0 0 1.5px rgba(248, 240, 225, .34);
}
.fleche svg { width: 11px; height: 18px; }

/* ---------- Patch (`patch.dart`) ---------- */
.patch {
  display: inline-block;
  padding: 3px 6px 4px;
  border-radius: 4px;
  background: var(--p, #52189B);
  color: #fff;
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 12px;
  line-height: .95;
  letter-spacing: .2px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(15, 11, 14, .4), 1.4px 1.4px 0 rgba(15, 11, 14, .5);
  rotate: var(--r, 6deg);
}
.tuile > .patch { position: absolute; top: -9px; right: -6px; }
.patch.gros { font-size: 15px; padding: 4px 8px 6px; }

/* ---------- Bouton biseau (`bouton_biseau.dart`) ----------
   Face crème, tranche décalée de 4 px (crème sous un voile #140228 à 45 %).
   À l'appui, la face descend et la tranche s'écrase ; le bas ne bouge pas. */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 52px;
  background: var(--creme);
  color: var(--noir);
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 4px 0 #91858E;
  transition: transform .14s ease-out, box-shadow .14s ease-out;
  cursor: pointer;
}
.bouton:active { transform: translateY(4px); box-shadow: 0 0 0 #91858E; transition-duration: .09s; transition-timing-function: ease-in; }

/* ---------- Encadré sombre (popups « violet sombre » de l'app) ---------- */
.encadre {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--rayon-carte);
  background: rgba(9, 3, 22, .42);
  box-shadow: inset 0 0 0 1.5px rgba(248, 240, 225, .16), 0 20px 40px -24px rgba(0, 0, 0, .7);
}
.encadre p { margin: 10px 0 0; line-height: 1.6; color: rgba(248, 240, 225, .9); text-wrap: pretty; }
.encadre.centre { text-align: center; }

.accroche {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 20px !important;
  line-height: 1.35 !important;
  color: var(--creme) !important;
  text-wrap: balance !important;
}

.chiffres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 2px dashed rgba(248, 240, 225, .18);
  list-style: none;
}
.chiffres li { display: flex; flex-direction: column; align-items: center; }
.chiffres strong {
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--jaune);
  text-shadow: var(--ombre-texte);
}
.chiffres span { font-size: 12.5px; line-height: 1.25; color: rgba(248, 240, 225, .82); }

/* Les ambiances : un patch de mode et sa phrase, comme sur les cartes. */
.ambiances { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.ambiances li { display: flex; align-items: center; gap: 12px; text-align: left; }
.ambiances .patch { flex: none; min-width: 84px; text-align: center; }
.ambiances span:last-child { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 15px; line-height: 1.25; }

/* ---------- Stores ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.stores a { display: block; border-radius: 8px; }
.stores img { height: 48px; width: auto; }

.appel { text-align: center; }
.appel h2 { margin: 0; }
.appel p { margin: 8px 0 0; color: rgba(248, 240, 225, .8); }

/* ---------- Téléphone avec une capture ---------- */
.telephone {
  width: 200px;
  flex: none;
  aspect-ratio: 9 / 19.5;
  padding: 8px;
  border-radius: 34px;
  background: #0F0322;
  box-shadow: 0 0 0 2px rgba(248, 240, 225, .12), 0 26px 44px -14px rgba(0, 0, 0, .7);
}
.telephone img, .telephone .vide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
  background: var(--violet-sombre);
}
.apercu { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.apercu p { margin: 8px 0 0; color: rgba(248, 240, 225, .82); line-height: 1.6; }

/* ---------- Boutons des infos pratiques ---------- */
.liens-legaux { display: grid; gap: 12px; }
.lien-legal {
  --l0: #2B6BBF; --l1: #1B55A5; --l2: #0F3A8C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 14px 18px 17px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}
.lien-legal::after { content: '→'; color: var(--jaune); font-size: 18px; }

/* ---------- Grille des jeux ---------- */
.grille-jeux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tuile-jeu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 150px;
  padding: 14px 14px 18px;
}
.tuile-jeu.large { grid-column: 1 / -1; min-height: 124px; }
.tuile-jeu .sticker { width: 44px; height: 44px; object-fit: contain; }
.tuile-jeu .nom {
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-size: 18px;
  line-height: 1.1;
  text-shadow: var(--ombre-texte);
}
.tuile-jeu .desc { margin-top: auto; font-size: 11.5px; line-height: 1.3; font-weight: 600; opacity: .9; }

/* Le panneau d'un jeu : une tuile qui s'ouvre depuis celle qu'on a touchée. */
dialog.panneau {
  width: min(560px, calc(100vw - 20px));
  max-height: min(88dvh, 820px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--creme);
  background: radial-gradient(circle farthest-corner at 78% -10%, var(--l0) 0%, var(--l1) 27%, var(--l2) 82%);
  box-shadow: var(--biseaux), 0 40px 80px -20px rgba(0, 0, 0, .7);
  overflow: hidden;
}
dialog.panneau::backdrop { background: rgba(15, 11, 14, .7); backdrop-filter: blur(6px); }
dialog.panneau[open] { display: flex; flex-direction: column; }
.panneau-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px 18px;
  border-bottom: 2px dashed rgba(248, 240, 225, .25);
}
.panneau-tete .sticker { width: 44px; height: 44px; flex: none; }
.panneau-tete h2 {
  flex: 1;
  margin: 0;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.05;
  text-shadow: var(--ombre-texte);
}
.fermer {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, .24);
  box-shadow: inset 0 0 0 1.5px rgba(248, 240, 225, .35);
  cursor: pointer;
}
.fermer svg { width: 14px; height: 14px; }
.panneau-corps { overflow-y: auto; padding: 18px 18px 24px; -webkit-overflow-scrolling: touch; }
.panneau-corps .infos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.panneau-corps .desc-longue { margin: 0; font-size: 16px; line-height: 1.6; }
.captures {
  display: flex;
  gap: 10px;
  margin: 18px -18px 0;
  padding: 0 18px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.captures .telephone { width: 150px; padding: 6px; border-radius: 26px; scroll-snap-align: start; }
.captures .telephone img { border-radius: 21px; }

/* ---------- Pages légales ---------- */
.doc { padding: 22px 18px 26px; }
.doc .maj { margin: 0 0 14px; font-size: 13px; color: rgba(248, 240, 225, .65); }
.doc h2 {
  margin: 30px 0 10px;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  color: var(--creme);
  scroll-margin-top: 16px;
}
.doc h2:first-of-type { margin-top: 6px; }
.doc h3 { margin: 22px 0 6px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.65; color: rgba(248, 240, 225, .9); }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--creme); }
.doc a { word-break: break-word; }
.doc .table { overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px; }
.doc table { border-collapse: collapse; min-width: 100%; font-size: 14px; line-height: 1.45; }
.doc th, .doc td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(248, 240, 225, .14); }
.doc th { font-weight: 600; color: var(--jaune); white-space: nowrap; }
.sommaire { margin: 0 0 8px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .22); }
.sommaire summary { cursor: pointer; font-family: 'Fredoka', sans-serif; font-weight: 600; min-height: 28px; }
.sommaire ol { margin: 10px 0 0; padding-left: 20px; }
.sommaire li { font-size: 14.5px; margin-bottom: 4px; }
.autres-docs { display: grid; gap: 10px; }

/* ---------- Pied de page ---------- */
footer {
  padding: 30px var(--marge) max(40px, env(safe-area-inset-bottom));
  text-align: center;
  border-top: 2px dashed rgba(248, 240, 225, .14);
}
footer .nom-pied { font-family: 'Fredoka One', 'Fredoka', sans-serif; font-size: 21px; letter-spacing: 1px; }
footer .ligne { margin-top: 8px; color: rgba(248, 240, 225, .72); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 10px; font-size: 14px; }
footer nav a { display: inline-block; padding: 8px 0; }
footer .legal { margin-top: 10px; color: rgba(248, 240, 225, .4); font-size: 12px; }

.contact { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.contact a { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; padding: 6px 0; }

.statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1.5px rgba(248, 240, 225, .18);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.2px;
  color: var(--jaune);
  text-transform: uppercase;
}
.statut::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 10px var(--jaune); }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 700px) {
  :root { --largeur: 640px; }
  .grille-jeux { grid-template-columns: repeat(3, 1fr); }
  .tuile-jeu.large { grid-column: span 2; }
  .apercu { flex-direction: row; text-align: left; }
  .apercu .stores { justify-content: flex-start; }
  .liens-legaux { grid-template-columns: 1fr 1fr; }
  .telephone { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Titres longs (pages légales) : plus petits, coupés proprement. */
.entete h1.petit {
  /* Le mot le plus long (--mot lettres) tient toujours sur une ligne. */
  font-size: min(clamp(27px, 7.6vw, 46px), calc((100vw - 2 * var(--marge)) / (var(--mot, 12) * .74)));
  line-height: 1.08;
}

/* Siège et directeur de la publication (obligatoires) : tout en bas des
   mentions légales seulement, en tout petit. */
footer .obligatoires { margin-top: 14px; color: rgba(248, 240, 225, .32); font-size: 10px; line-height: 1.4; }

/* Les zones de l'accueil de l'app (« LES INCONTOURNABLES »…) :
   `Polices.titreZoneMenusStyle`, Fredoka One 20 crème, centré. */
.zone { display: flex; flex-direction: column; gap: 20px; }
.titre-zone {
  margin: 8px 0 0;
  text-align: center;
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.1;
  text-shadow: var(--ombre-texte);
}
@media (min-width: 700px) { .zone .grille-jeux { grid-template-columns: 1fr 1fr; } .zone .tuile-jeu.large { grid-column: 1 / -1; } }

/* ---------- Vitrine à partager (/taverne) ---------- */
.vitrine main { padding-bottom: 150px; }
.invitation .titre-section { font-size: 28px; margin: 0; }

/* Le défilé des jeux : une bande de tuiles qui passe en boucle. */
.defile {
  margin: 0 calc(-1 * var(--marge));
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Un tour = 7 tuiles de 138 px en 28 s (34,5 px/s). On lit le haut de la
   page en ~5,5 s (logo, titre, deux lignes, chiffres) : la bande part déjà
   avancée de ~350 px pour qu'à ce moment Les Grands Classiques soient à
   gauche, Blackout et Battle Royale à droite de l'écran. */
.defile .piste { display: flex; gap: 10px; width: max-content; animation: defiler 28s linear -10.2s infinite; }
@media (prefers-reduced-motion: reduce) { .defile .piste { animation: none; } }
@keyframes defiler { to { transform: translateX(calc(-50% - 5px)); } }
.tuile-mini {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 128px;
  height: 118px;
  padding: 12px 12px 15px;
  flex: none;
}
.tuile-mini img { width: 40px; height: 40px; }
.tuile-mini span { font-family: 'Fredoka One', 'Fredoka', sans-serif; font-size: 15px; line-height: 1.1; text-shadow: var(--ombre-texte); }

.arguments { display: flex; flex-direction: column; gap: 16px; }
.argument { padding: 20px 18px 22px; }
.argument h3 { margin: 0; font-family: 'Fredoka One', 'Fredoka', sans-serif; font-weight: 400; font-size: 23px; line-height: 1.1; text-shadow: var(--ombre-texte); }
.argument p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }

.qr { display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr img { border-radius: 14px; background: var(--creme); padding: 6px; }
.sur-ordi .qr { display: flex; }

/* Le bouton du store, toujours à portée de pouce. */
.collant {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 12px var(--marge) max(14px, env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(180deg, rgba(25, 7, 46, 0), rgba(25, 7, 46, .92) 28%);
  backdrop-filter: blur(6px);
}
.collant-titre { margin: 0; font-family: 'Fredoka One', 'Fredoka', sans-serif; font-size: 17px; text-shadow: var(--ombre-texte); }
.collant .stores { margin-top: 8px; }
.collant .stores img { height: 52px; }

/* ---------- Finitions (contrôle web-design-guidelines) ---------- */
html, body { touch-action: manipulation; }
.vitrine { scroll-padding-bottom: 150px; }
.panneau-corps { overscroll-behavior: contain; }
.defile:hover .piste, .defile:active .piste { animation-play-state: paused; }
@media (hover: hover) {
  .touchable:hover { filter: brightness(1.08); }
  .retour:hover, .langues a:hover { background: rgba(0, 0, 0, .44); }
  .bouton:hover { filter: brightness(1.04); }
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 12px; background: var(--creme); color: var(--noir);
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 12px; }
.chiffres strong { font-variant-numeric: tabular-nums; }
