/* ==========================================================================
   Le lauréat — Feuille de style unique
   --------------------------------------------------------------------------
   Sommaire
     01. Variables
     02. Réinitialisation et base
     03. Traitement visuel commun des images (saturation, teinte, grain)
     04. En-tête et navigation
     05. Pied de page
     06. Accueil — structure des sept écrans
     07. Accueil — écran 1 : l'arrivée
     08. Accueil — écran 5 : la menace
     09. Accueil — écran 7 : le pari
     10. Plateau SVG
     11. Pages intérieures (règles, soutenir)
     12. Cartes menaces
     13. Paliers et formulaire
     14. Responsive
     15. Mouvement réduit et onglet masqué
   ========================================================================== */


/* ==========================================================================
   01. VARIABLES
   ========================================================================== */

:root {
  /* Fondamentaux */
  --creme: #F5EFE3;
  --creme-clair: #FFF9EC;
  --brun: #6B5D4F;
  --brun-encre: #3B332B;   /* texte courant sur fond clair */
  --nuit: #241D17;         /* base des voiles sombres */

  /* Accents : les couleurs des cultures, utilisées avec parcimonie */
  --c-violet: #B9A7D4;
  --c-bleu:   #9DC3DE;
  --c-rose:   #E2B6C6;
  --c-beige:  #E0C9A6;
  --c-vert:   #A9C79A;
  --c-rouge:  #E09A82;
  --c-jaune:  #EBD98A;
  --c-marron: #C9A183;

  /* Teintes d'ambiance : bleu glacé -> vert -> or -> brun.
     La valeur courante est portée par --ambiance, changée au défilement. */
  --t-e1: #C9A183;
  --t-e2: #9DC3DE;
  --t-e3: #A9C6C2;
  --t-e4: #A9C79A;
  --t-e5: #C4C795;
  --t-e6: #EBD98A;
  --t-e7: #8A6F55;
  --ambiance: var(--t-e1);

  /* Typographie : géométrique système, aucune requête réseau */
  --police: "Century Gothic", "Futura", "Avenir Next", "Avenir",
            "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  /* Rythme */
  --h-entete: 3.75rem;
  --duree-courte: 400ms;
  --duree: 600ms;
  --duree-longue: 800ms;
  --doux: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Grain : généré en CSS via feTurbulence inline, jamais de fichier image */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
}


/* ==========================================================================
   02. RÉINITIALISATION ET BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brun-encre);
  background-color: var(--creme);
  transition: background-color var(--duree-longue) var(--doux);
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; }

/* Les contrôles ne doivent pas afficher le surlignage bleu natif au toucher.
   Le retour visuel est géré par leurs états :hover/:focus-visible. */
a,
button,
[role="button"],
summary {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.marque,
.marque * {
  -webkit-user-drag: none;
}

/* Focus visible partout, sans exception. */
:focus-visible {
  outline: 3px solid var(--c-rouge);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Lien d'évitement pour la navigation clavier. */
.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--creme);
  color: var(--brun-encre);
  font-weight: 700;
}
.evitement:focus { left: 0; }

/* Contenu réservé aux technologies d'assistance. */
.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================================
   03. TRAITEMENT VISUEL COMMUN DES IMAGES
   --------------------------------------------------------------------------
   Toutes les images et la vidéo passent par .visuel : saturation réduite
   à 85 %, virage colorimétrique vers la teinte d'ambiance en cours, et
   couche de grain. isolation:isolate confine les modes de fusion.
   ========================================================================== */

.visuel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--nuit);
}

.visuel img,
.visuel video {
  filter: saturate(0.85) contrast(1.03) brightness(0.97);
}

/* Virage colorimétrique */
.visuel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--ambiance);
  mix-blend-mode: soft-light;
  opacity: 0.6;
  transition: background-color var(--duree-longue) var(--doux);
  pointer-events: none;
}

/* Grain */
.visuel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: var(--grain);
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.15;
  pointer-events: none;
}


/* ==========================================================================
   04. EN-TÊTE ET NAVIGATION
   ========================================================================== */

.entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--h-entete);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  color: var(--creme);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--duree) var(--doux),
              color var(--duree) var(--doux),
              border-color var(--duree) var(--doux);
}

/* Une fois le premier écran dépassé, ou sur les pages intérieures. */
.entete--pleine,
.page-interieure .entete {
  background-color: var(--creme);
  color: var(--brun-encre);
  border-bottom-color: rgba(107, 93, 79, 0.18);
}

.marque {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
.logo-full {
  display: block;
  width: clamp(9rem, 12vw, 12rem);
  height: auto;
  flex: 0 0 auto;
}
.logo-icon {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
}
.logo-wordmark {
  color: inherit;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.nav__liste {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
}

.nav__lien {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duree-courte) var(--doux);
}
.nav__lien:hover,
.nav__lien[aria-current="page"] { border-bottom-color: currentColor; }

/* Le bouton Soutenir reste hors du menu : accessible à tout moment. */
.cta-entete {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duree-courte) var(--doux),
              color var(--duree-courte) var(--doux);
}
.cta-entete:hover {
  background-color: var(--brun);
  border-color: var(--brun);
  color: var(--creme);
}

/* Bouton burger : masqué au-dessus de 768px (voir section 14). */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
}
.burger__trait {
  position: relative;
  display: block;
  width: 16px; height: 1.5px;
  background-color: currentColor;
}
.burger__trait::before,
.burger__trait::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background-color: currentColor;
  transition: transform var(--duree-courte) var(--doux);
}
.burger__trait::before { top: -5px; }
.burger__trait::after  { top: 5px; }

.burger[aria-expanded="true"] .burger__trait { background-color: transparent; }
.burger[aria-expanded="true"] .burger__trait::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__trait::after  { transform: translateY(-5px) rotate(-45deg); }


/* ==========================================================================
   05. PIED DE PAGE
   ========================================================================== */

.pied {
  padding: 3rem clamp(1rem, 4vw, 2.5rem);
  background-color: var(--creme);
  color: var(--brun);
  border-top: 1px solid rgba(107, 93, 79, 0.18);
  text-align: center;
}
.pied__titre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pied__mention {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}


/* ==========================================================================
   06. ACCUEIL — STRUCTURE DES SEPT ÉCRANS
   ========================================================================== */

.ecran {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  scroll-margin-top: var(--h-entete);
}

.ecran__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* --py est posé par scroll.js : parallaxe verticale, 40 px d'amplitude au plus.
   Le léger agrandissement évite de découvrir les bords pendant le glissement. */
.ecran__media img,
.ecran__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  will-change: transform;
}

/* Voile sombre dégradé : garantit le contraste du texte par-dessus la photo. */
.ecran__voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(36, 29, 23, 0.82) 0%,
    rgba(36, 29, 23, 0.48) 28%,
    rgba(36, 29, 23, 0.14) 60%,
    rgba(36, 29, 23, 0.34) 100%
  );
  pointer-events: none;
}

.ecran__contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.25rem, 6vw, 5rem) clamp(4rem, 12vh, 8rem);
  color: var(--creme);
}

.ecran__texte {
  max-width: 16ch;
  font-size: clamp(2.5rem, 11vw, 6.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ecran__narration,
.ecran-un__narration {
  max-width: 34ch;
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(245, 239, 227, 0.88);
}
.ecran__narration--centre { margin-left: auto; margin-right: auto; text-align: center; }

/* Contraste renforcé uniquement pour la scène de janvier. */
#ecran-2 .ecran__voile {
  background:
    linear-gradient(to right,
      rgba(20, 16, 12, 0.68) 0%,
      rgba(20, 16, 12, 0.38) 42%,
      rgba(20, 16, 12, 0.08) 72%,
      transparent 100%),
    linear-gradient(to top,
      rgba(20, 16, 12, 0.86) 0%,
      rgba(20, 16, 12, 0.48) 34%,
      rgba(20, 16, 12, 0.12) 68%,
      rgba(20, 16, 12, 0.28) 100%);
}
#ecran-2 .ecran__texte,
#ecran-2 .ecran__narration {
  text-shadow: 0 3px 18px rgba(20, 16, 12, 0.9);
}
.ecran__texte > p + p { margin-top: 1.25rem; }

/* Transition douce entre deux scènes photographiques. */
.ecran::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(2.5rem, 8vh, 7rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(245,239,227,0.2), transparent);
  opacity: 0.55;
}

/* Écrans centrés (arrivée et pari). */
.ecran--centre { justify-content: center; }
.ecran--centre .ecran__contenu {
  padding-bottom: clamp(1.25rem, 6vw, 5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ecran--centre .ecran__texte { max-width: 18ch; }

/* Révélation au défilement : fondu + montée de 20 px. */
.a-reveler {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duree) var(--doux),
              transform var(--duree) var(--doux);
}
.a-reveler.est-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Décalages internes, pour que le texte suive le bloc. */
.a-reveler--tard { transition-delay: 140ms; }


/* ==========================================================================
   07. ACCUEIL — ÉCRAN 1 : L'ARRIVÉE
   ========================================================================== */

/* La photo de fond arrive floue et se révèle nette en 1,2 s.
   Remplissage « backwards » : passé l'animation, l'image reprend les règles
   normales, et la parallaxe (--py) peut donc s'appliquer. */
.ecran-un__fond {
  animation: nettete 1200ms var(--doux) backwards;
}
@keyframes nettete {
  from { filter: saturate(0.85) contrast(1.03) brightness(0.97) blur(20px); transform: scale(1.12); }
  to   { filter: saturate(0.85) contrast(1.03) brightness(0.97) blur(0);    transform: scale(1.06); }
}

.ecran-un__accroche { grid-area: accroche; }
.ecran-un__narration {
  margin: 1.5rem auto 0;
  opacity: 0;
  transform: translateY(1rem);
  animation: narration-finale 700ms var(--doux) 3250ms both;
}
@keyframes narration-finale {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Le plateau apparaît case par case, puis recule légèrement. */
.ecran-un__plateau {
  width: min(74vmin, 560px);
  margin: clamp(1rem, 4vh, 2.5rem) auto;
  animation: recul 600ms var(--doux) 1100ms both;
}
.ecran-un__plateau[data-plateau-zoom] {
  position: relative;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='9' fill='%233B332B' fill-opacity='.82' stroke='%23FFF9EC' stroke-width='2'/%3E%3Cpath d='M20 20l8 8' stroke='%23FFF9EC' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 13 13, pointer;
  transition: filter 300ms ease, transform 300ms ease;
}
.ecran--pari .ecran__plateau[data-plateau-zoom] {
  position: relative;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='9' fill='%233B332B' fill-opacity='.82' stroke='%23FFF9EC' stroke-width='2'/%3E%3Cpath d='M20 20l8 8' stroke='%23FFF9EC' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 13 13, pointer;
  transition: filter 300ms ease, transform 300ms ease;
}
.ecran--pari .ecran__plateau[data-plateau-zoom]::after {
  content: "Explorer le plateau";
  position: absolute;
  right: 4%;
  bottom: 4%;
  padding: .45rem .75rem;
  border: 1px solid rgba(245,239,227,.7);
  border-radius: 999px;
  background: rgba(36,29,23,.7);
  color: var(--creme);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(.35rem);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}
.ecran--pari .ecran__plateau[data-plateau-zoom]:hover {
  filter: drop-shadow(0 0 14px rgba(245,239,227,.3));
}
.ecran--pari .ecran__plateau[data-plateau-zoom]:hover::after,
.ecran--pari .ecran__plateau[data-plateau-zoom]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.ecran-un__plateau[data-plateau-zoom]::after {
  content: "Explorer le plateau";
  position: absolute;
  right: 4%;
  bottom: 4%;
  padding: .45rem .75rem;
  border: 1px solid rgba(245,239,227,.7);
  border-radius: 999px;
  background: rgba(36,29,23,.7);
  color: var(--creme);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(.35rem);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}
.ecran-un__plateau[data-plateau-zoom]:hover {
  filter: drop-shadow(0 0 14px rgba(245,239,227,.3));
}
.ecran-un__plateau[data-plateau-zoom]:hover::after,
.ecran-un__plateau[data-plateau-zoom]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
@keyframes recul {
  from { transform: scale(1.06); }
  to   { transform: scale(0.94); }
}

/* Stagger : --i porte l'index de semaine (0 à 51), posé par plateau.js.
   Dernière case : 150 + 51 × 18 = 1068 ms, + 300 ms de fondu = 1,37 s. */
.ecran-un__plateau .pl-case {
  opacity: 0;
  animation: fondu 300ms var(--doux) forwards;
  animation-delay: calc(100ms + var(--i, 0) * 12ms);
}
.ecran-un__plateau .pl-bandes,
.ecran-un__plateau .pl-labels,
.ecran-un__plateau .pl-mois,
.ecran-un__plateau .pl-cultures,
.ecran-un__plateau .pl-zones {
  opacity: 0;
  animation: fondu 350ms var(--doux) 900ms forwards;
}
@keyframes fondu { to { opacity: 1; } }

/* Le texte s'écrit, mot à mot. Le contenu reste intégralement dans le DOM. */
.ecran__texte--ecrit span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.28em);
  animation: ecriture 420ms var(--doux) forwards;
  animation-delay: calc(1750ms + var(--m, 0) * 110ms);
}
.ecran__texte--ecrit span:last-child {
  position: relative;
  isolation: isolate;
  z-index: 0;
  animation: entree-semez 850ms cubic-bezier(0.16, 1, 0.3, 1) 2400ms both;
}
.ecran__texte--ecrit span:last-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #A66F45;
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
  animation: bande-semez 7s var(--doux) 2400ms infinite;
}
@keyframes entree-semez {
  0% {
    opacity: 0;
    transform: translateY(0.65em) scale(0.58) rotate(-3deg);
    filter: blur(9px);
  }
  52% {
    opacity: 1;
    transform: translateY(-0.08em) scale(1.1) rotate(0deg);
    filter: blur(0);
  }
  72% { transform: translateY(0.02em) scale(0.97); }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes bande-semez {
  0%, 4% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right center;
  }
  14% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: right center;
  }
  15% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left center;
  }
  27% {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
  }
  29%, 100% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
  }
}
@keyframes ecriture {
  to { opacity: 1; transform: translateY(0); }
}

/* Indicateur de défilement, discret et cliquable au clavier. */
.indicateur {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  color: var(--creme);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: fondu 700ms var(--doux) 3000ms forwards;
}
.indicateur__trait {
  width: 1px;
  height: 34px;
  background-color: currentColor;
  transform-origin: top;
  animation: glisse 2.4s var(--doux) infinite;
}
@keyframes glisse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}


/* ==========================================================================
   08. ACCUEIL — ÉCRAN 5 : LA MENACE
   ========================================================================== */

/* Recadrage : on écarte le coin bas-droite du champ visible. */
.ecran--menace .ecran__media img,
.ecran--menace .ecran__media video {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
  transform-origin: center left;
}

/* Menaces : un petit cercle de cartes, comme une table de jeu qui tourne. */
.ecran--menace .ecran__contenu {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.menaces-carrousel {
  position: relative;
  flex: 0 0 clamp(220px, 36vw, 430px);
  width: clamp(220px, 36vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.carrousel__piste { position: absolute; inset: 9%; border-radius: 50%; }
.carrousel__piste::before {
  content: ""; position: absolute; inset: -8%; border: 1px solid rgba(245,239,227,.45);
  border-radius: 50%; box-shadow: 0 0 0 14px rgba(245,239,227,.05);
}
.carrousel__carte {
  position: absolute; inset: 0; overflow: hidden; border-radius: 50%;
  opacity: 0; transform: scale(.82) rotate(-8deg); pointer-events: none;
  transition: opacity var(--duree) var(--doux), transform var(--duree) var(--doux);
  background: rgba(36,29,23,.78); border: 1px solid rgba(245,239,227,.65);
}
.carrousel__carte.est-active { opacity: 1; transform: scale(1) rotate(0); pointer-events: auto; }
.carrousel__carte img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.carrousel__carte > div { position: absolute; inset: auto 12% 13%; text-align: center; }
.carrousel__carte h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); line-height: 1; }
.carrousel__carte p { margin-top: .55rem; font-size: clamp(.75rem, 1.3vw, 1rem); line-height: 1.35; }
.carrousel__etape { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.carrousel__fleche {
  position: absolute; z-index: 3; width: 44px; height: 44px; border: 1px solid rgba(245,239,227,.7);
  border-radius: 50%; background: rgba(36,29,23,.55); color: var(--creme); cursor: pointer; font-size: 1.2rem;
  animation-duration: 1.8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.carrousel__fleche--precedent { left: -4%; animation-name: fleche-carrousel-gauche; }
.carrousel__fleche--suivant { right: -4%; animation-name: fleche-carrousel-droite; }
@keyframes fleche-carrousel-gauche {
  0%, 100% { transform: translateX(0); opacity: .78; }
  50% { transform: translateX(-5px); opacity: 1; }
}
@keyframes fleche-carrousel-droite {
  0%, 100% { transform: translateX(0); opacity: .78; }
  50% { transform: translateX(5px); opacity: 1; }
}
.carrousel__points { position: absolute; bottom: -1.5rem; display: flex; gap: .5rem; }
.carrousel__points button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(245,239,227,.45); cursor: pointer; }
.carrousel__points button.est-active { background: var(--creme); transform: scale(1.35); }
.menaces-carrousel__texte { flex: 1; }
.menaces-carrousel__texte .ecran__texte { max-width: 10ch; }

/* Écran du semis : le choix des graines occupe la zone libre à droite. */
@media (min-width: 768px) {
  .ecran--semis .ecran__contenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38vw);
    align-items: end;
    gap: clamp(2rem, 6vw, 7rem);
  }
  .ecran--semis .carrousel-graines {
    width: min(38vw, 360px);
    margin: 0 auto;
  }
  .ecran--semis .carrousel-graines__bloc { align-self: end; }
}
.carrousel-graines .carrousel__carte { text-decoration: none; }
.carrousel-graines .carrousel__carte h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  text-transform: none;
}
.carrousel-graines__texte {
  margin-top: 1.25rem;
  text-align: center;
}
.carrousel-graines__texte .ecran__texte {
  max-width: none;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}
.carrousel-graines__texte .ecran__narration {
  margin: .5rem auto 0;
  max-width: 26ch;
}
.carrousel-graines__texte .badge { margin-top: 1rem; }
@media (max-width: 767.98px) {
  .ecran--semis .ecran__contenu { display: flex; align-items: stretch; gap: 1.5rem; }
  .ecran--semis .carrousel-graines {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    align-self: center;
  }
  .ecran--semis .carrousel-graines__bloc { width: 100%; }
}

/* La vidéo se superpose au poster, qui reste visible tant qu'elle charge. */
.ecran__video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Les dés sont nets : ils sont hors de .visuel, sans grain ni désaturation. */
.des {
  width: clamp(120px, 30vw, 220px);
  height: auto;
  margin-bottom: clamp(1rem, 4vh, 2rem);
}
.des__de {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.ecran--menace.est-visible .des__de {
  animation: chute 1000ms cubic-bezier(0.3, 0.9, 0.4, 1) forwards;
}
.ecran--menace.est-visible .des__de--deux { animation-delay: 160ms; }

@keyframes chute {
  0%   { opacity: 0; transform: translateY(-160px) rotate(-26deg); }
  12%  { opacity: 1; }
  48%  { transform: translateY(0) rotate(0deg); }
  64%  { transform: translateY(-24px) rotate(6deg); }
  80%  { transform: translateY(0) rotate(0deg); }
  90%  { transform: translateY(-7px) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* Badge discret : il ne doit pas concurrencer le CTA de l'écran 7. */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(245, 239, 227, 0.55);
  border-radius: 999px;
  background-color: rgba(20, 16, 12, 0.45);
  color: var(--creme);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--duree-courte) var(--doux),
              border-color var(--duree-courte) var(--doux);
}
.badge:hover {
  background-color: rgba(20, 16, 12, 0.72);
  border-color: var(--creme);
}


/* ==========================================================================
   09. ACCUEIL — ÉCRAN 7 : LE PARI
   ========================================================================== */

/* Fond volontairement assombri : la lumière se retire, on parle du présent. */
.ecran--pari .ecran__voile {
  background:
    linear-gradient(to top,
      rgba(29, 23, 18, 0.9) 0%,
      rgba(29, 23, 18, 0.72) 45%,
      rgba(29, 23, 18, 0.78) 100%);
}

.ecran--pari .ecran__plateau {
  width: min(48vmin, 340px);
  margin: 0 auto clamp(1.5rem, 5vh, 3rem);
  opacity: 0.92;
}

.ecran--pari .ecran__texte { font-size: clamp(2.1rem, 8.5vw, 5rem); }

.pari__precisions {
  max-width: 34ch;
  margin: 1.75rem auto 0;
  font-size: clamp(0.95rem, 2.6vw, 1.125rem);
  line-height: 1.7;
  color: rgba(245, 239, 227, 0.86);
}
.pari__precisions strong { font-weight: 700; color: var(--creme); }

/* CTA unique et large. */
.cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin-top: clamp(1.75rem, 5vh, 3rem);
  padding: 1rem clamp(1.5rem, 6vw, 3.5rem);
  background-color: var(--creme);
  color: var(--brun-encre);
  border: 1px solid var(--creme);
  border-radius: 999px;
  font-size: clamp(0.875rem, 3vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--duree-courte) var(--doux),
              color var(--duree-courte) var(--doux);
}
.cta-large:hover {
  background-color: transparent;
  color: var(--creme);
}

/* CTA final : un appel vivant, visible sans devenir agressif. */
.ecran--pari .cta-large {
  position: relative;
  overflow: hidden;
  gap: 1rem;
  min-width: min(14rem, 72vw);
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
  color: var(--creme);
  background: linear-gradient(135deg, #6B5D4F, #3B332B);
  border: 1px solid rgba(245,239,227,.8);
  border-color: rgba(245,239,227,.8);
  border-radius: 14px;
  box-shadow:
    0 10px 28px rgba(20,16,12,.3),
    inset 0 1px 0 rgba(255,255,255,.2);
  animation: cta-faire-pousser 4.8s ease-in-out 900ms infinite;
}
.ecran--pari .cta-large::after {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(245,239,227,.6);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M6 14h12a3 3 0 0 1 3 3v7H6z' stroke='%23F5EFE3' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9 14V9a5 5 0 0 1 9 0v5M21 17l5-3 2 2' stroke='%23F5EFE3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25 21v2M28 20v2.5' stroke='%23F5EFE3' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 1.45rem no-repeat;
  transition: transform 250ms ease, background-color 250ms ease;
}
.ecran--pari .cta-large:hover {
  color: var(--creme);
  background: linear-gradient(135deg, #7A6A5B, #4A4037);
  border-color: var(--creme);
  box-shadow: 0 0 28px rgba(255,249,236,.38), inset 0 1px 0 rgba(255,255,255,.3);
}
.ecran--pari .cta-large:hover::after {
  transform: translate(3px, -3px) rotate(8deg);
  background-color: rgba(245,239,227,.12);
}
@keyframes cta-faire-pousser {
  0%, 22%, 100% { transform: translateY(0) scale(1); box-shadow: 0 10px 28px rgba(20,16,12,.3), inset 0 1px 0 rgba(255,255,255,.2); }
  34% { transform: translateY(-4px) scale(1.025); box-shadow: 0 0 30px rgba(255,249,236,.4), 0 12px 32px rgba(20,16,12,.35); }
  46%, 62% { transform: translateY(0) scale(1); box-shadow: 0 0 12px rgba(255,249,236,.18), 0 10px 28px rgba(20,16,12,.3); }
}


/* ==========================================================================
   10. PLATEAU SVG
   --------------------------------------------------------------------------
   Le conteneur impose un carré ; le SVG s'y inscrit entièrement grâce à
   preserveAspectRatio="xMidYMid meet".
   ========================================================================== */

.plateau-cadre {
  aspect-ratio: 1 / 1;
  width: 100%;
  /* Le plateau est une interface : un toucher ne doit pas sélectionner
     ses textes ou ses formes comme du contenu de page. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.plateau {
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.plateau * {
  user-select: none;
  -webkit-user-select: none;
}
.pl-fond { fill: transparent; }
.plateau .pl-label,
.plateau .pl-mois-texte,
.plateau .pl-culture-texte {
  stroke: none;
}
.plateau .pl-label {
  fill: #3B332B;
  font-weight: 700;
}
.plateau .pl-mois-texte,
.plateau .pl-culture-texte {
  fill: #FFF9EC;
  font-weight: 800;
}
.plateau-plein-ecran {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: clamp(1rem, 5vw, 4rem); background: rgba(20,16,12,.96);
  animation: plateauOuverture 300ms var(--doux) both;
}
.plateau-plein-ecran__fermer {
  position: absolute; top: 1rem; right: 1.5rem; z-index: 2; width: 52px; height: 52px;
  border: 1px solid var(--creme); border-radius: 50%; background: transparent; color: var(--creme);
  font-size: 2rem; line-height: 1; cursor: pointer; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.plateau--plein { width: min(90vmin, 900px); height: min(90vmin, 900px); }
.plateau--plein .pl-case {
  cursor: pointer;
  pointer-events: all;
  transition: fill 220ms ease, filter 220ms ease, stroke 220ms ease;
}
.plateau--plein .pl-case:hover,
.plateau--plein .pl-case:focus,
.plateau--plein .pl-case.case-selectionnee {
  fill: #FFF9EC;
  stroke: #FFFFFF;
  stroke-width: 2.5;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 1))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.72))
    brightness(1.16);
  outline: none;
}
.plateau--plein .pl-zone {
  cursor: pointer;
  pointer-events: all;
  transition: fill 220ms ease, filter 220ms ease, stroke 220ms ease;
}
.plateau--plein .pl-zone:hover,
.plateau--plein .pl-zone:focus,
.plateau--plein .pl-zone.zone-selectionnee {
  fill: #FFF9EC;
  stroke: #FFFFFF;
  stroke-width: 4;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 1))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.72));
  outline: none;
}
.plateau-info {
  position: absolute;
  left: clamp(1rem, 4vw, 4rem);
  bottom: clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 220px;
  padding: 1rem 1.25rem;
  background: rgba(245, 239, 227, .96);
  color: var(--brun-encre);
  border-left: 4px solid var(--c-vert);
  box-shadow: 0 12px 35px rgba(0,0,0,.28);
  font-size: .85rem;
  border-radius: .35rem;
}
.plateau-info__invite,
.plateau-info__semaine {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.plateau-info strong { font-size: 1.1rem; }
.plateau-info small { margin-top: .3rem; color: var(--brun); }
@keyframes plateauOuverture { from { opacity: 0; } to { opacity: 1; } }
.plateau-ouvert { overflow: hidden; }


/* ==========================================================================
   11. PAGES INTÉRIEURES (RÈGLES, SOUTENIR)
   ========================================================================== */

.page-interieure { background-color: var(--creme); }
.page-interieure main { padding-top: var(--h-entete); }

/* Retour vers l'accueil : toujours atteignable, collant sous l'en-tête. */
.retour {
  position: sticky;
  top: var(--h-entete);
  z-index: 40;
  display: block;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background-color: var(--creme);
  border-bottom: 1px solid rgba(107, 93, 79, 0.18);
}
.retour__lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.retour__lien:hover { border-bottom-color: currentColor; }

.contenu {
  max-width: 70ch;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) 5rem;
  display: flex;
  flex-direction: column;
}

/* Ordre éditorial de la page des règles. */
.contenu > .section { order: 10; }
.contenu > #but { order: 1; }
.contenu > #materiel { order: 2; }
.contenu > #mise-en-place { order: 3; }
.contenu > #pistes { order: 4; }
.contenu > #tour { order: 5; }
.contenu > #cartes { order: 6; }
.contenu > #menaces { order: 7; }
.contenu > #fin { order: 8; }
.contenu > .retour-haut { order: 20; }

.titre-page {
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chapeau {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
  line-height: 1.65;
  color: var(--brun);
}

/* Bandeau d'avertissement : le jeu n'est pas finalisé. */
.avertissement {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.6rem 1.1rem;
  background-color: var(--c-jaune);
  color: var(--brun-encre);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sommaire ancré */
.sommaire {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(107, 93, 79, 0.25);
  border-radius: 4px;
}
.sommaire__titre {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brun);
}
.sommaire__liste {
  margin-top: 1rem;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}
.sommaire__liste a {
  display: inline-block;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sommaire__liste a:hover { border-bottom-color: currentColor; }

/* Sections : scroll-margin-top compense l'en-tête fixe et la barre de retour. */
.section {
  margin-top: 3.5rem;
  scroll-margin-top: calc(var(--h-entete) + 4.5rem);
}
.section__titre {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brun-encre);
}
.section__corps { margin-top: 1.25rem; }
.section__corps p + p { margin-top: 1rem; }

.liste {
  margin-top: 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.liste li { padding-left: 0.25rem; }

/* Marqueur des informations qui n'existent pas encore. */
.a-completer {
  display: inline-block;
  padding: 0.15em 0.5em;
  background-color: var(--c-rose);
  color: var(--brun-encre);
  border-radius: 3px;
  font-size: 0.8125em;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.marge-haute { margin-top: 1.5rem; }

/* Retour en haut de page */
.retour-haut {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--brun);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--duree-courte) var(--doux),
              color var(--duree-courte) var(--doux);
}
.retour-haut:hover { background-color: var(--brun); color: var(--creme); }

.pied--accueil { padding: 0 clamp(1.25rem, 5vw, 4rem) 1.5rem; text-align: left; }
.pied__retour {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(107, 93, 79, .18);
}
.retour-haut--accueil { margin-top: 0; }
.pied__grille {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: start;
  gap: 2rem;
  max-width: 84rem;
  margin: 0 auto;
  padding: 3rem 0;
}
.pied__accroche { margin-top: .65rem; color: var(--brun); font-size: .9rem; }
.pied__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  padding-top: .65rem;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .pied__nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.pied__nav a,
.pied__contact { color: var(--brun-encre); font-size: .78rem; letter-spacing: .08em; text-decoration: none; }
.pied__nav a:hover,
.pied__contact:hover { text-decoration: underline; text-underline-offset: .3em; }
.pied__contact { justify-self: end; padding: .75rem 1rem; border: 1px solid var(--brun); border-radius: 999px; }
.pied__bas {
  display: flex; justify-content: space-between; gap: 1rem; max-width: 84rem; margin: 0 auto;
  padding-top: 1rem; border-top: 1px solid rgba(107, 93, 79, .18);
  color: var(--brun); font-size: .72rem; letter-spacing: .05em;
}

@media (max-width: 767.98px) {
  .pied__grille { grid-template-columns: 1fr; gap: 1.5rem; }
  .pied__nav { position: static; transform: none; }
  .pied__contact { justify-self: start; }
  .pied__bas { flex-direction: column; }
}


/* ==========================================================================
   12. CARTES MENACES
   ========================================================================== */

.menaces {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
}

.menace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(107, 93, 79, 0.25);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--creme-clair);
}
.menace__visuel { aspect-ratio: 1 / 1; }
.menace__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menace__texte { padding: 0 1.25rem 1.5rem; }
.menace__titre {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.menace__phrase {
  margin-top: 0.5rem;
  color: var(--brun);
  line-height: 1.6;
}


/* ==========================================================================
   13. PALIERS ET FORMULAIRE
   ========================================================================== */

.paliers {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
}

.palier {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgba(107, 93, 79, 0.25);
  border-radius: 4px;
  background-color: var(--creme-clair);
  border-top: 4px solid var(--palier-teinte, var(--c-beige));
}
.palier__nom {
  font-size: 1.25rem;
  font-weight: 700;
}
.palier__montant {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brun);
}
.palier__texte { margin-top: 0.9rem; color: var(--brun); }

/* Emplacement d'intégration du prestataire de paiement. */
.paiement {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px dashed rgba(107, 93, 79, 0.5);
  border-radius: 4px;
  color: var(--brun);
  font-size: 0.9375rem;
}

/* Formulaire */
.formulaire {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.champ { display: grid; gap: 0.4rem; }
.champ__intitule {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brun);
}
.champ input,
.champ textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--brun-encre);
  background-color: var(--creme-clair);
  border: 1px solid rgba(107, 93, 79, 0.4);
  border-radius: 3px;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-color: var(--brun); }

.champ__erreur {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: #A2412A;
}

.envoyer {
  justify-self: start;
  min-height: 52px;
  padding: 0.85rem 2rem;
  background-color: var(--brun-encre);
  color: var(--creme);
  border: 1px solid var(--brun-encre);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--duree-courte) var(--doux),
              color var(--duree-courte) var(--doux);
}
.envoyer:hover { background-color: transparent; color: var(--brun-encre); }

.formulaire__retour {
  min-height: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}


/* ==========================================================================
   14. RESPONSIVE
   --------------------------------------------------------------------------
   Mobile-first : les règles ci-dessus valent pour 360 px. On enrichit
   ensuite à 768 px puis 1200 px.
   ========================================================================== */

/* --- Sous 768 px : menu burger et plateau simplifié -------------------- */
@media (max-width: 767.98px) {

  /* Sur mobile, un repère visuel remplace le mot « Défiler ». */
  .indicateur {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(245, 239, 227, .68);
    border-radius: 50%;
    background: rgba(36, 29, 23, .28);
    box-shadow: 0 0 0 0 rgba(245, 239, 227, .2);
    /* Le titre et la narration doivent être entièrement visibles avant
       l'arrivée de l'indicateur. */
    animation: fondu 700ms var(--doux) 3950ms forwards,
               indicateur-mobile-pulse 2.8s ease-in-out 4650ms infinite;
  }
  .ecran-un .ecran__contenu {
    padding-bottom: 5.75rem;
  }
  .indicateur > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .indicateur__trait { display: none; }
  .indicateur::before {
    content: "";
    width: .7rem;
    height: .7rem;
    border-right: 2px solid var(--creme);
    border-bottom: 2px solid var(--creme);
    transform: translateY(-.2rem) rotate(45deg);
    animation: indicateur-mobile-chevron 1.35s ease-in-out infinite;
  }
  @keyframes indicateur-mobile-chevron {
    0%, 100% { opacity: .6; transform: translateY(-.25rem) rotate(45deg); }
    50% { opacity: 1; transform: translateY(.18rem) rotate(45deg); }
  }
  @keyframes indicateur-mobile-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 239, 227, .18); }
    50% { box-shadow: 0 0 0 .45rem rgba(245, 239, 227, 0); }
  }

  .burger { display: inline-flex; }

  /* Panneau de navigation, replié par défaut. */
  .nav {
    position: fixed;
    top: var(--h-entete);
    left: 0;
    right: 0;
    background-color: var(--creme);
    color: var(--brun-encre);
    border-bottom: 1px solid rgba(107, 93, 79, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duree-courte) var(--doux),
                transform var(--duree-courte) var(--doux),
                visibility var(--duree-courte);
  }
  .nav[data-ouvert="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1rem;
  }
  .nav__lien {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid rgba(107, 93, 79, 0.15);
  }
  .nav__lien[aria-current="page"] { border-bottom-color: var(--brun-encre); }

  /* Les identifiants de case deviennent illisibles : on les retire.
     Les couleurs et les mois restent. */
  .pl-labels { display: none; }

  /* Le plateau agrandi doit rester entièrement lisible sur petit écran. */
  .plateau-plein-ecran {
    padding: 4.5rem .75rem 7.75rem;
    align-items: flex-start;
    overflow-y: auto;
  }
  .plateau--plein {
    width: min(92vw, calc(100dvh - 13rem));
    height: auto;
    flex: 0 1 auto;
  }
  .plateau-info {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    width: auto;
    min-width: 0;
    padding: .8rem 1rem;
    border: 1px solid rgba(245,239,227,.38);
    border-top: 3px solid var(--c-vert);
    border-radius: .65rem;
    background: rgba(59,51,43,.97);
    color: var(--creme);
    box-shadow: 0 10px 28px rgba(0,0,0,.38);
    font-size: .8rem;
  }
  .plateau-info small { color: rgba(245,239,227,.78); }
  .plateau-info strong { font-size: 1rem; }
  .plateau-plein-ecran__fermer {
    top: .75rem;
    right: .75rem;
    width: 44px;
    height: 44px;
    font-size: 1.65rem;
  }

  /* L'en-tête compacte : la marque cède la place au CTA. */
  .marque { font-size: 0.6875rem; letter-spacing: 0.12em; }
  .cta-entete { padding: 0 0.85rem; font-size: 0.6875rem; }
  .ecran--menace .ecran__contenu { flex-direction: column; align-items: flex-start; }
  .menaces-carrousel { align-self: center; }
}

/* --- À partir de 768 px ------------------------------------------------ */
@media (min-width: 768px) {
  :root { --h-entete: 4.5rem; }

  .menaces  { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .paliers  { grid-template-columns: repeat(3, 1fr); }

  .ecran__contenu { padding-left: clamp(2.5rem, 7vw, 6rem); }
  .ecran--centre .ecran__contenu { padding-left: clamp(1.25rem, 6vw, 5rem); }
  .ecran-un .ecran__contenu {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "plateau accroche"; align-items: center; gap: clamp(1rem, 3vw, 3rem);
    text-align: left;
  }
  .ecran-un__plateau { grid-area: plateau; width: min(44vw, 820px); margin: 0 auto; }
  .ecran-un__accroche { text-align: left; }
  .ecran-un__accroche .ecran__texte { max-width: 8ch; font-size: clamp(3rem, 6.5vw, 7rem); }
  .ecran-un__narration { margin-left: 0; }

  .ecran--pari .ecran__contenu {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-areas: "copy board";
    align-items: center;
    column-gap: clamp(2rem, 5vw, 6rem);
    row-gap: 0;
    text-align: left;
    padding-left: clamp(2rem, 7vw, 7rem);
    padding-right: clamp(2rem, 5vw, 5rem);
  }
  .ecran--pari .ecran__plateau {
    grid-area: board;
    width: min(100%, 720px);
    margin: 0 auto;
  }
  .ecran--pari .pari__colonne {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1rem, 2vh, 1.5rem);
    min-width: 0;
  }
  .ecran--pari .pari__colonne .ecran__texte {
    width: 100%;
    max-width: 34ch;
    font-size: clamp(2.3rem, 4.2vw, 5rem);
  }
  .ecran--pari .pari__colonne .ecran__texte > p:first-child { max-width: 13ch; }
  .ecran--pari .pari__colonne .ecran__narration {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .ecran--pari .pari__precisions {
    max-width: 32ch;
    margin: 0;
  }
  .ecran--pari .pari__colonne > p:last-child {
    margin: 0;
    position: relative;
    top: -1.25rem;
  }
}

/* --- À partir de 1200 px ----------------------------------------------- */
@media (min-width: 1200px) {
  .ecran__texte { max-width: 14ch; }
  .ecran-un__plateau { width: min(44vw, 820px); }
}

/* --- Écrans très courts en paysage : on rend la main à la hauteur ------ */
@media (max-height: 520px) and (orientation: landscape) {
  .ecran { min-height: 620px; }
  .ecran-un__plateau { width: min(48vmin, 300px); }
}


/* ==========================================================================
   15. MOUVEMENT RÉDUIT ET ONGLET MASQUÉ
   ========================================================================== */

/* Onglet masqué : toutes les animations en pause (la vidéo est mise en
   pause par scroll.js). */
html[data-masque] *,
html[data-masque] *::before,
html[data-masque] *::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {

  html { scroll-behavior: auto; }

  /* Les animations se terminent instantanément : l'état final s'applique,
     donc tout le contenu reste lisible et complet. */
  *, *::before, *::after {
    animation-duration: 1ms;
    animation-delay: 0ms;
    animation-iteration-count: 1;
    transition-duration: 1ms;
    transition-delay: 0ms;
  }

  .a-reveler { opacity: 1; transform: none; }

  .ecran-un__plateau { transform: scale(0.94); }
  .ecran-un__plateau .pl-case,
  .ecran-un__plateau .pl-bandes,
  .ecran-un__plateau .pl-labels,
  .ecran-un__plateau .pl-mois,
  .ecran-un__plateau .pl-cultures,
  .ecran-un__plateau .pl-zones { opacity: 1; }

  .ecran__texte--ecrit span { opacity: 1; transform: none; }
  .indicateur { opacity: 1; }
  .indicateur__trait { animation: none; transform: scaleY(1); }

  .des__de { opacity: 1; }

  /* Écran 5 : la vidéo n'est pas affichée, seul le poster reste.
     scroll.js la retire aussi du DOM pour ne rien télécharger. */
  .ecran__video { display: none; }
}
