/* ==========================================================================
   Alto Grabuge — feuille de style unique, version 2 (maquettes « H »)
   Pages : accueil FR/EN, page Un Chouïa FR/EN, 404.
   Principes :
   - tout est lisible et utilisable sans JavaScript ni animation ;
   - les mouvements n'existent que sous prefers-reduced-motion: no-preference,
     et n'animent que transform / opacity ;
   - aucun style en ligne (CSP style-src 'self').
   ========================================================================== */

/* ---------- Polices (auto-hébergées) ---------- */
/* Police de la charte : Enchanted Land (Sharkshock), licence assumée par le propriétaire */
@font-face {
  font-family: "Enchanted Land";
  /* WOFF2 (58 Ko) en priorité, WOFF (79 Ko) pour les navigateurs anciens ; même police */
  src: url("/fonts/EnchantedLand.woff2") format("woff2"), url("/fonts/EnchantedLand.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Secours si Enchanted Land manque d'un glyphe ou ne se charge pas */
@font-face {
  font-family: "Pirata One";
  src: url("/fonts/pirata-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Repli métrique pendant le chargement : Times réduit à la chasse d'Enchanted Land,
   pour que les titres occupent la même place avant et après (pas de saut de mise en page). */
@font-face {
  font-family: "Gothique repli";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"), local("Liberation Serif");
  size-adjust: 64%; /* mesuré dans Chrome : chasse moyenne d'Enchanted Land rapportée à Times (0,61 à 0,67) */
}

/* ---------- Jetons de la charte ---------- */
:root {
  --noir: #201e1d;
  --creme: #fdf8ef;
  --fond: #f6f1e7;
  --beige: #ebddc5;
  --vert: #e1eecc;
  --rouille: #c67139;
  --rouille-clair: #d6844e;
  --brun: #8a4a20;            /* « rouille foncée » : seule teinte chaude permise en texte sur fond clair */
  --noir-doux: #3a3634;

  --police-texte: "Times New Roman", Times, "Liberation Serif", serif;
  --police-titre: "Enchanted Land", "Pirata One", "Gothique repli", serif;

  --largeur: 80rem;           /* 1280 px */
  --gouttiere: clamp(1rem, 4vw, 1.5rem);
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --courbe-ressort: cubic-bezier(.34, 1.56, .64, 1);
  --focus: var(--noir);

  /* Hauteur bandeau + en-tête : valeur CSS de départ, affinée par site.v2.js */
  --bandeau: 2.5rem;
  --entete: 4.25rem;
  --barres: calc(var(--bandeau) + var(--entete));

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete) + 1rem); /* ancres et focus jamais cachés sous l'en-tête collant */
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--noir);
  font-family: var(--police-texte);
  font-size: 1.1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Zones sombres : anneau de focus crème */
.entete, .pied, .panneau-noir, .fiche-hero__visuel, .etape--noire, .bloc-404 { --focus: var(--creme); }

::selection { background: var(--rouille); color: var(--noir); }

/* ---------- Utilitaires ---------- */
.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.insecable { white-space: nowrap; }

.lien-evitement {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--creme);
  color: var(--noir);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-300%);
}
.lien-evitement:focus-visible { transform: none; outline-color: var(--rouille); }

.conteneur {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Titres gothiques */
.titre-section {
  overflow-wrap: anywhere; /* texte agrandi : un mot trop long se coupe au lieu de déborder */
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
.titre-section--grand { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.2rem); line-height: 1.02; }
.titre-section--moyen { font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3rem); }
.titre-section__suite { color: var(--brun); }
.titre-section__suite--bloc { display: block; }
.panneau-noir .titre-section__suite { color: var(--rouille); }

.surtitre {
  font-size: .85rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
}
.panneau-noir .surtitre { color: var(--rouille); }

.texte-large { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.2rem); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  padding: .9375rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .3s var(--courbe), background-color .3s var(--courbe), color .3s var(--courbe), box-shadow .3s var(--courbe);
}
.bouton--rouille { background: var(--rouille); color: var(--noir); }
.bouton--rouille:hover { background: var(--rouille-clair); box-shadow: 0 14px 28px -14px rgb(138 74 32 / .75); }
.bouton--contour { border-color: var(--noir); color: var(--noir); }
.bouton--contour:hover { background: var(--noir); color: var(--creme); }
.bouton--noir { background: var(--noir); color: var(--creme); padding-inline: 1.875rem; }
.bouton--noir:hover { background: var(--noir-doux); box-shadow: 0 14px 28px -14px rgb(32 30 29 / .7); }
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(.98); }

/* Lien « Tout savoir sur Un Chouïa » : flèche dans une pastille rouille */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.lien-fleche__rond {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rouille);
  color: var(--noir);
  transition: transform .35s var(--courbe-ressort);
}
.lien-fleche__texte {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .25em;
  transition: text-decoration-color .25s var(--courbe);
}
.lien-fleche:hover .lien-fleche__texte { text-decoration-color: currentColor; }
.lien-fleche:hover .lien-fleche__rond { transform: translateX(4px); }

/* Boutons de store (cartes de l'accueil) */
.stores { display: flex; flex-wrap: wrap; gap: .625rem; }
.store {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 48px;
  padding: .5rem 1rem;
  border-radius: 14px;
  background: var(--noir);
  color: var(--creme);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: transform .3s var(--courbe), background-color .3s var(--courbe);
}
.store:hover { background: var(--noir-doux); transform: translateY(-2px); }
.stores, .stores > li, .store { max-width: 100%; min-width: 0; }
.store svg { flex: none; }
.store__texte { display: flex; flex-direction: column; }
.store__pre {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--beige);
}
/* Variante pilule (page du jeu) */
.stores--pilules .store { border-radius: 999px; padding: .75rem 1.5rem; }
/* Store pas encore ouvert : même forme, sans lien ni survol */
.store--bientot { background: transparent; color: var(--noir); box-shadow: inset 0 0 0 1.5px var(--noir); cursor: default; }
.store--bientot:hover { background: transparent; transform: none; }
.store--bientot .store__pre { color: var(--noir-doux); }

/* ==========================================================================
   Bandeau + en-tête
   ========================================================================== */
.bandeau {
  margin: 0;
  min-height: var(--bandeau);
  padding: .5625rem 1rem;
  background: var(--rouille);
  color: var(--noir);
  text-align: center;
  font-size: .9rem;
  line-height: 1.375rem;
}
.bandeau a { font-weight: 700; text-underline-offset: .18em; }
.bandeau a:hover { text-decoration-thickness: 2px; }
@media (max-width: 24em) {
  .bandeau { font-size: .8rem; padding-inline: .5rem; }
}

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--noir);
  color: var(--creme);
}
/* Écran bas ou texte très agrandi (em = taille de police choisie) : l'en-tête ne colle plus,
   pour ne pas masquer la moitié de l'écran */
@media (max-height: 30em) {
  .entete { position: relative; }
  html { scroll-padding-top: 1rem; }
}
.entete__barre {
  max-width: var(--largeur);
  min-height: var(--entete);
  margin-inline: auto;
  padding: .75rem var(--gouttiere);
  display: flex;
  flex-wrap: wrap; /* texte agrandi : retour à la ligne plutôt que débordement */
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  color: var(--creme);
  text-decoration: none;
  border-radius: 8px;
}
.marque__blason {
  flex: none;
  width: 42px; height: 42px;
  transition: transform .5s var(--courbe-ressort);
}
.marque:hover .marque__blason { transform: rotate(-8deg) scale(1.06); }
.marque__nom {
  font-family: var(--police-titre);
  font-size: 1.8rem;
  line-height: 1;
  white-space: nowrap;
}

.nav__liste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .375rem .625rem;
}
.nav__lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .875rem;
  color: var(--creme);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  white-space: nowrap;
  transition: text-decoration-color .25s var(--courbe);
}
.nav__lien:hover, .nav__lien[aria-current="page"] { text-decoration-color: currentColor; }
.nav__contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--creme);
  border-radius: 999px;
  color: var(--creme);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--courbe), color .25s var(--courbe);
}
.nav__contact:hover { background: var(--creme); color: var(--noir); }

/* Sélecteur de langue FR | EN */
.langue {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 10px;
  border: 1.5px solid rgb(235 221 197 / .35);
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1.2;
}
.langue__globe { flex: none; margin-right: 2px; }
/* Interrupteur : FR toujours à gauche, EN à droite ; la pastille crème glisse sous la langue active */
.langue__piste {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  cursor: pointer;
}
.langue__piste::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: 999px;
  background: var(--creme);
  transition: translate .3s var(--courbe);
}
.langue__piste[data-actif="en"]::before { translate: 100% 0; }
.langue__choix {
  position: relative; /* au-dessus de la pastille */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--creme);
  transition: background-color .25s var(--courbe), color .3s var(--courbe);
}
.langue__piste[data-actif="fr"] .langue__choix--fr,
.langue__piste[data-actif="en"] .langue__choix--en { color: var(--noir); }
.langue__piste[data-actif="fr"] a.langue__choix--en:hover,
.langue__piste[data-actif="en"] a.langue__choix--fr:hover { background: rgb(253 248 239 / .16); }

/* Petits écrans : le nom passe en texte masqué (reste dans le nom du lien), marges resserrées */
@media (max-width: 42em) {
  .marque__nom {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 26em) {
  .entete__barre { padding-inline: .625rem; column-gap: .5rem; }
  .nav__liste { column-gap: .25rem; }
  .nav__lien { padding-inline: .5rem; }
  .nav__contact { padding-inline: .8125rem; }
  .langue { padding-left: 4px; }
  .langue__globe { display: none; }
  .langue__choix { padding-inline: 8px; }
  .marque__blason { width: 38px; height: 38px; }
}
/* 320 px : en-tête sur une seule ligne */
@media (max-width: 21em) {
  .entete__barre { padding-inline: .5rem; column-gap: .25rem; }
  .nav__liste { column-gap: .125rem; }
  .nav__lien { padding-inline: .375rem; }
  .nav__contact { padding-inline: .625rem; }
  .langue__choix { padding-inline: 6px; }
  .marque__blason { width: 34px; height: 34px; }
}

/* ==========================================================================
   Hero de l'accueil : toute la hauteur visible sous le bandeau et l'en-tête
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--barres));
  min-height: calc(100svh - var(--barres));
  background: var(--beige);
  color: var(--noir);
  --lance-h: 78px;
  --lance-bas: 22px;
}
.hero__grille {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding: clamp(1.5rem, 5svh, 3.5rem) var(--gouttiere) calc(var(--lance-h) + var(--lance-bas) + clamp(1rem, 3svh, 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "sur sur"
    "titre renard"
    "texte texte"
    "actions actions";
  align-items: center;
  column-gap: 1rem;
  row-gap: clamp(.875rem, 2.4svh, 1.625rem);
}
.hero__surtitre { grid-area: sur; }
.hero__titre {
  grid-area: titre;
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 4.75rem);
  line-height: .88;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.hero__renard {
  grid-area: renard;
  justify-self: end;
  width: clamp(5.5rem, 27vw, 9rem);
  height: auto;
}
.hero__texte {
  grid-area: texte;
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 34rem;
}
.hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .375rem;
}
@media (max-width: 26em) {
  .hero__actions .bouton { padding-inline: 1.25rem; font-size: 1rem; }
}
/* Téléphone assez bas (360×640…) : on resserre pour tenir dans la hauteur visible */
@media (max-width: 47.99em) and (max-height: 42em) {
  .hero__grille { padding-top: 1rem; row-gap: .625rem; padding-bottom: calc(var(--lance-h) + var(--lance-bas) + .75rem); }
  .hero__texte { font-size: 1rem; line-height: 1.45; }
  .hero__actions { padding-top: 0; }
}
/* Petit et bas (iPhone SE 1re génération, 320×568) : version compacte, sans lance */
@media (max-width: 22.5em) and (max-height: 36em) {
  .hero { --lance-h: 0px; --lance-bas: 0px; }
  .hero .lance { display: none; }
  .hero__grille { padding-block: .75rem; row-gap: .5rem; }
  .hero__surtitre { font-size: .72rem; letter-spacing: .14em; }
  .hero__titre { font-size: 2.75rem; }
  .hero__renard { width: 4.5rem; }
  .hero__texte { font-size: .95rem; line-height: 1.4; }
  .hero__actions { gap: .5rem; }
  .hero__actions .bouton { padding: .5rem 1rem; }
}
/* Très étroit (ou texte agrandi) : le renard passe sous le titre au lieu de l'écraser */
@media (max-width: 18em) {
  .hero__grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sur" "titre" "renard" "texte" "actions"; }
  .hero__renard { justify-self: start; }
}

/* Deux colonnes : texte à gauche, renard à droite */
@media (min-width: 48em) {
  .hero__grille {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
      "sur renard"
      "titre renard"
      "texte renard"
      "actions renard";
    align-content: center;
    column-gap: 3rem;
  }
  .hero__titre { font-size: clamp(4rem, min(8.5vw, 15svh), 8rem); }
  .hero__texte { font-size: clamp(1.15rem, .9rem + .6vw, 1.3rem); }
  .hero__renard {
    justify-self: center;
    width: auto;
    max-width: 100%;
    /* le renard se règle sur la hauteur disponible : jamais de débordement sous la lance */
    height: clamp(14rem, calc(100svh - var(--barres) - 12rem), 28.4rem);
    object-fit: contain;
  }
}

/* Lance de défilement : pilule à contour plein, lance dessinée au trait */
.lance {
  position: absolute;
  left: 50%;
  bottom: var(--lance-bas);
  width: 46px;
  height: var(--lance-h);
  margin-left: -23px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9px;
  border: 1.5px solid var(--noir);
  border-radius: 999px;
  color: var(--noir);
  overflow: hidden;
  transition: background-color .3s var(--courbe), color .3s var(--courbe);
}
.lance:hover { background: var(--noir); color: var(--creme); }
.lance svg { width: 20px; height: 56px; }
@media (max-width: 47.99em) {
  .hero { --lance-h: 64px; --lance-bas: 14px; }
  .lance { width: 40px; margin-left: -20px; padding-top: 6px; }
  .lance svg { height: 48px; width: 18px; }
}
/* Écran très bas (paysage, petit téléphone) : la lance cède sa place au contenu */
@media (max-height: 30em) {
  .hero { --lance-h: 0px; --lance-bas: 0px; }
  .hero .lance { display: none; }
}

/* ==========================================================================
   Accueil : section du jeu
   ========================================================================== */
.jeu {
  padding-block: clamp(4rem, 8vw, 6rem) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.cartes-jeu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 33.75rem), 1fr));
  gap: 1.5rem;
}
.carte {
  container-type: inline-size;
  background: var(--creme);
  border-radius: 28px;
  padding: min(2rem, 5vw);
  display: flex;            /* la grille interne occupe toute la hauteur de la carte */
  flex-direction: column;
  transition: transform .4s var(--courbe), box-shadow .4s var(--courbe);
}
.carte:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgb(32 30 29 / .45); }
.carte__grille {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
@container (min-width: 30rem) {
  .carte__grille { grid-template-columns: minmax(0, 1fr) 190px; }
  .carte__capture { align-self: center; } /* captures centrées en hauteur dans la carte */
}
.carte__texte { display: flex; flex-direction: column; gap: .875rem; align-items: flex-start; }
.carte__icone { width: 48px; height: 48px; border-radius: 12px; }
.carte__surtitre {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brun);
}
.carte__titre { font-size: 1.45rem; font-weight: 700; line-height: 1.25; }
.carte__mention {
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.carte__capture {
  width: 100%;
  max-width: 15rem;
  justify-self: center;
  border-radius: 18px;
}
.coches { display: flex; flex-direction: column; gap: .5rem; }
.coches li { display: flex; gap: .625rem; align-items: flex-start; }
.coches svg { flex: none; margin-top: 3px; }
.carte .lien-fleche { margin-top: .375rem; }

/* Bande « En bref » */
.en-bref {
  margin-top: 3.5rem;
  border-block: 1px solid rgb(32 30 29 / .12);
}
.en-bref__liste {
  max-width: var(--largeur);
  margin-inline: auto;
  padding: 2.125rem var(--gouttiere);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.25rem 3rem;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  line-height: 1.2;
  text-align: center;
}
.en-bref__gothique { font-family: var(--police-titre); }
.en-bref__italique { font-style: italic; }
.en-bref__gras { font-weight: 700; letter-spacing: -.02em; }

/* Grand panneau noir arrondi */
.panneau-section { padding: 4.5rem 1rem; }
.panneau-section--page { padding-top: 0; padding-bottom: 5.5rem; }
.panneau-noir {
  position: relative;
  max-width: 82.5rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 32px;
  background: var(--noir);
  color: var(--creme);
  overflow: hidden;
}
.ville {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}
.ville__texte {
  flex: 1.2 1 27.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  align-items: flex-start;
}
.ville__texte p:not(.surtitre) { font-size: 1.2rem; color: var(--beige); max-width: 32rem; }
.ville__images {
  flex: 1 1 22.5rem;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.125rem;
}
.ville__images img { width: 46%; max-width: 16.25rem; border-radius: 22px; }
.ville__images img + img { margin-bottom: 3rem; }

/* Le studio */
.studio {
  padding-block: 2.5rem 6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}
.studio__texte {
  flex: 1 1 26.25rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.studio__texte p:not(.surtitre) { font-size: 1.2rem; max-width: 34rem; }
.valeurs {
  flex: 1 1 28.75rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
}
.valeur {
  background: var(--creme);
  border-radius: 24px;
  padding: 1.625rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .4s var(--courbe), box-shadow .4s var(--courbe);
}
.valeur:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -26px rgb(32 30 29 / .5); }
.valeur__titre { font-size: 1.2rem; }
.numero {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--police-titre);
  font-size: 1.2rem;
  line-height: 1;
  background: var(--beige);
  color: var(--noir);
}
.numero--vert { background: var(--vert); }
.numero--rouille { background: var(--rouille); }
.numero--noir { background: var(--noir); color: var(--creme); }
.numero--creme { background: var(--creme); color: var(--noir); }
.numero--grand { width: 48px; height: 48px; font-size: 1.6rem; }

/* Contact */
.contact { background: var(--vert); }
.contact__bloc {
  padding-block: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.contact__bloc p { font-size: 1.2rem; max-width: 32rem; }
.contact__bloc .bouton { margin-top: .25rem; }

/* Pied de page */
.pied { background: var(--noir); color: var(--beige); }
.pied__bloc {
  padding-block: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.pied__haut {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}
.pied__nom {
  font-family: var(--police-titre);
  font-size: clamp(3rem, 1rem + 8vw, 6rem);
  line-height: .9;
  color: var(--creme);
}
.pied__blason { width: 72px; height: 72px; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(235 221 197 / .2);
  font-size: .95rem;
}
.pied__liens { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.pied__liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--beige);
  text-underline-offset: .2em;
}
.pied__liens a:hover { color: var(--creme); text-decoration-thickness: 2px; }
.pied__bas > p { display: flex; align-items: center; min-height: 44px; }

/* ==========================================================================
   Page du jeu
   ========================================================================== */
.fiche-hero { background: var(--beige); }
.fiche-hero__bloc { padding-block: 2.5rem 5rem; }
.fil-ariane { font-size: .95rem; padding-bottom: 2rem; }
.fil-ariane ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.fil-ariane li + li::before { content: "›" / ""; margin-right: .5rem; }
.fil-ariane a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.fil-ariane a:hover { text-decoration-thickness: 2px; }
.fiche-hero__colonnes { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; }
.fiche-hero__texte {
  flex: 1.2 1 30rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.etiquettes { display: flex; flex-wrap: wrap; gap: .5rem; }
.etiquette {
  border: 1.5px solid var(--noir);
  border-radius: 999px;
  padding: .25rem .875rem;
  font-size: .9rem;
  font-weight: 700;
}
.fiche-hero__titre {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: clamp(3.5rem, 2rem + 6vw, 7.4rem);
  line-height: .9;
}
.fiche-hero__accroche {
  font-family: var(--police-titre);
  color: var(--brun);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1;
}
.fiche-hero__texte > p:not([class]) { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.25rem); max-width: 36rem; }
.fiche-hero__texte .stores { padding-top: .25rem; }
.fiche-hero__visuel {
  flex: 1 1 23.75rem;
  min-width: 0;
  position: relative;
  min-height: clamp(24rem, 60vw, 32.5rem);
  padding: 2.5rem 2.5rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-radius: 32px;
  background: var(--noir);
  overflow: hidden;
}
.fiche-hero__icone {
  position: absolute;
  top: 24px; left: 24px;
  width: 64px; height: 64px;
  border-radius: 16px;
}
.fiche-hero__ecran {
  width: 74%;
  max-width: 300px;
  border-radius: 26px 26px 0 0;
  margin-top: 4.5rem;
}

.bande-creme {
  background: var(--creme);
  border-block: 1px solid rgb(32 30 29 / .1);
}
.section-page {
  padding-block: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.section-page__entete { display: flex; flex-direction: column; gap: .75rem; max-width: 46rem; }
.section-page__entete p:not(.surtitre) { font-size: 1.15rem; }

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.25rem;
}
.etape {
  background: var(--fond);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .4s var(--courbe), box-shadow .4s var(--courbe);
}
.etape:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -26px rgb(32 30 29 / .5); }
.etape h3, .document h3 { font-size: 1.5rem; line-height: 1.25; }
.etape--noire { background: var(--noir); color: var(--creme); }
.etape--noire p { color: var(--beige); }

.documents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: 1.25rem;
}
.document {
  background: var(--creme);
  border-radius: 28px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .4s var(--courbe), box-shadow .4s var(--courbe);
}
.document:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -26px rgb(32 30 29 / .5); }
.document h3 { font-size: 1.3rem; }
.document svg { transition: transform .5s var(--courbe-ressort); }
.document:hover svg { transform: rotate(-6deg) scale(1.06); }

/* Ce qui fait la différence : accordéon exclusif (details name="atouts") + écran qui change */
.difference { display: flex; flex-direction: column; gap: 2.5rem; }
.difference__corps { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.atouts { flex: 1 1 26.25rem; min-width: 0; display: flex; flex-direction: column; }
.atout {
  border-left: 4px solid rgb(235 221 197 / .2);
  transition: border-color .35s var(--courbe);
}
.atout:has(details[open]) { border-left-color: var(--rouille); }
.atout summary {
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: 1.125rem 0 1.125rem 1.5rem;
  cursor: pointer;
  list-style: none;
  border-radius: 0 8px 8px 0;
}
.atout summary::-webkit-details-marker { display: none; }
.atout h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--beige);
  transition: color .25s var(--courbe), transform .35s var(--courbe);
}
.atout details[open] h3 { color: var(--creme); }
.atout summary:hover h3 { color: var(--creme); transform: translateX(4px); }
.atout details[open] > summary { padding-bottom: .625rem; }
.atout details > p { padding: 0 0 1.125rem 1.5rem; color: var(--beige); }
.difference__images {
  flex: 1 1 23.75rem;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
}
.difference__ecran { width: 52%; max-width: 280px; border-radius: 24px; }
.difference__vignettes { width: 26%; display: flex; flex-direction: column; gap: .75rem; opacity: .55; }
.difference__vignettes img { width: 100%; border-radius: 14px; }

/* Fiche du jeu */
.fiche-jeu { padding-block: 0 5.5rem; display: flex; flex-wrap: wrap; gap: 3rem; }
.fiche-jeu__titre { flex: 1 1 18.75rem; display: flex; flex-direction: column; gap: .75rem; }
.fiche-jeu__logo { width: 220px; height: auto; margin-top: .5rem; }
.fiche {
  flex: 2 1 32.5rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  column-gap: 2rem;
}
.fiche > div { border-top: 1px solid rgb(32 30 29 / .2); padding-block: 1rem; }
.fiche dt { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.fiche dd { margin-top: .25rem; font-size: 1.15rem; }
.fiche dd a { text-underline-offset: .2em; }

/* Questions fréquentes */
.faq__bloc {
  max-width: 60rem;
  padding-block: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.faq__bloc .titre-section { text-align: center; }
.faq__liste { border-top: 1px solid rgb(32 30 29 / .2); }
.faq__liste details { border-bottom: 1px solid rgb(32 30 29 / .2); }
.faq__liste summary {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding-block: 1.25rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__liste summary::-webkit-details-marker { display: none; }
.faq__question { min-width: 0; }
.faq__liste summary:hover .faq__question { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.faq__icone {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--noir);
  transition: background-color .3s var(--courbe), border-color .3s var(--courbe);
}
.faq__icone .faq__barre-v { transform-origin: 50% 50%; transform-box: fill-box; transition: transform .35s var(--courbe); }
.faq__liste details[open] .faq__icone { background: var(--rouille); border-color: var(--rouille); }
.faq__liste details[open] .faq__barre-v { transform: scaleY(0); }
.faq__liste details[open] > summary { padding-bottom: .75rem; }
.faq__liste details > p { padding-bottom: 1.25rem; max-width: 46rem; }
.faq__liste a { text-underline-offset: .2em; }
.faq__liste a:hover { text-decoration-thickness: 2px; }

/* Mobile : sections plus resserrées */
@media (max-width: 47.99em) {
  .jeu { padding-block: 3rem 1.5rem; gap: 2rem; }
  .panneau-section { padding-block: 2.5rem; }
  .panneau-section--page { padding-top: 0; padding-bottom: 3rem; }
  .studio { padding-block: 1.5rem 3.5rem; gap: 2rem; }
  .contact__bloc { padding-block: 3.5rem; }
  .fiche-hero__bloc { padding-block: 1.5rem 3rem; }
  .fil-ariane { padding-bottom: 1rem; }
  .fiche-hero__colonnes { gap: 2rem; }
  .section-page { padding-block: 3.5rem; gap: 2rem; }
  .fiche-jeu { padding-bottom: 2.5rem; gap: 1.5rem; }
  .faq__bloc { padding-block: 3rem 3.5rem; gap: 1.5rem; }
}

/* ==========================================================================
   Page 404
   ========================================================================== */
.hero--404 { overflow-x: clip; } /* le tampon penché et son animation ne créent jamais de défilement */
.hero--404 .hero__grille { padding-bottom: clamp(2rem, 6svh, 3.5rem); }
.tampon {
  grid-area: sur;
  justify-self: start;
  display: inline-block;
  padding: .15rem 1rem .25rem;
  border: 3px solid var(--noir);
  border-radius: 10px;
  background: var(--rouille);
  color: var(--noir);
  font-family: var(--police-titre);
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: .06em;
  rotate: -6deg;
  margin-inline-start: .5rem; /* coin penché jamais rogné */
}
.hero--404 .hero__texte { max-width: 30rem; }

/* ==========================================================================
   Mouvement — uniquement si l'utilisateur ne demande pas à le réduire
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* La lance fait un léger va-et-vient vertical, en douceur */
  .lance svg { animation: va-et-vient 1.4s ease-in-out .5s infinite alternate; will-change: transform; }

  /* Le tampon de la 404 tombe */
  .tampon { animation: tampon .7s var(--courbe) .2s both; }

  /* Ouverture fluide des réponses (navigateurs récents ; ailleurs, ouverture instantanée) */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq__liste details::details-content,
    .atout details::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size .4s var(--courbe), content-visibility .4s allow-discrete;
    }
    .faq__liste details[open]::details-content,
    .atout details[open]::details-content { block-size: auto; }
  }

  /* Changement d'écran dans « Ce qui fait la différence » */
  .difference__ecran.est-change { animation: fondu .5s var(--courbe); }

  /* Apparitions liées au défilement : CSS seul. Sans prise en charge (Firefox…),
     les blocs restent simplement visibles. */
  @supports (animation-timeline: view()) {
    .revele {
      animation: revele linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .revele:nth-child(2) { animation-range: entry 5% entry 50%; }
    .revele:nth-child(3) { animation-range: entry 10% entry 55%; }
    .revele:nth-child(4) { animation-range: entry 15% entry 60%; }

    /* Ombre de l'en-tête dès que la page défile */
    .entete::after {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 100%;
      height: 18px;
      background: linear-gradient(rgb(32 30 29 / .2), transparent);
      pointer-events: none;
      animation: apparait linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }
  }
}

/* Pas d'opacité nulle au départ : figé à t = 0 (capture), le contenu reste visible */
@keyframes va-et-vient { from { transform: translateY(0); } to { transform: translateY(6px); } }
/* Jamais d'opacité nulle : même figé avant son entrée (capture pleine page, moteur de rendu), le bloc reste lisible */
@keyframes revele { from { translate: 0 1.25rem; scale: .97; } to { translate: 0 0; scale: 1; } }
@keyframes tampon {
  0% { scale: 1.6; }
  60% { scale: .95; }
  100% { scale: 1; }
}
@keyframes fondu { from { opacity: .2; } to { opacity: 1; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

/* Filet de sécurité : aucune animation ni transition si le mouvement est réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Contraste forcé (Windows) : contours lisibles */
@media (forced-colors: active) {
  .bouton, .store, .carte, .valeur, .etape, .document, .numero, .langue__piste::before, .tampon { border: 1px solid CanvasText; }
  .atout:has(details[open]) { border-left-color: Highlight; }
}

/* Impression : le contenu, sans décor ni animation */
@media print {
  .entete, .bandeau, .lance, .lien-evitement { display: none !important; }
  *, *::before, *::after { animation: none !important; }
  .hero { min-height: 0; }
  .panneau-noir, .fiche-hero__visuel, .etape--noire, .pied { background: none !important; color: #000 !important; }
  .panneau-noir *, .etape--noire *, .pied * { color: #000 !important; }
  .atout details > p { display: block; }
}
