/* Polices hébergées par le site (dossier polices/, licences OFL et Apache à côté des fichiers).
   Sous-ensemble latin de Google Fonts, téléchargé le 2026-11-12 : il couvre tout le texte du site (accents, « », ’, œ, €).
   Plus d'appel à Google à chaque visite (RGPD), et la CSP n'autorise plus que le site lui-même.
   Bricolage Grotesque est variable : graisse 300 à 800, largeur 75 % à 100 %, taille optique automatique. */
@font-face { font-family: "Abril Fatface"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/abril-fatface.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap;
  src: url("polices/bricolage-grotesque.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik Mono One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/rubik-mono-one.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/special-elite.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --papier: #EEEDE3;
  --papier-2: #E3E4D6;
  --kraft: #C9A27B;
  --kraft-clair: #E4CBA8;
  --kraft-ombre: #94704D;
  --encre: #22304A;
  --encre-douce: #4A5770;
  --leman: #3D8789;
  --pion: #EFB338;
  --pion-ombre: #B9821A;

  --voie: 8vw;
  --largeur: min(46rem, calc(100vw - 2 * (var(--voie) + 3.5rem)));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --police: "Bricolage Grotesque", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Formes SVG partagées (<defs> en haut de chaque page) : hors du flux.
   Une classe plutôt qu'un attribut style : la CSP du site refuse les styles en ligne. */
.formes-communes { position: absolute; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Le défilement s'aimante doucement sur chaque étape, sans bloquer
   (« proximity » : seulement quand on s'arrête près d'un début de bloc). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative;
  background-color: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

/* Vraie photo de papier froissé (CC0), rendue raccordable ; deux tailles
   superposées pour ne jamais voir la répétition, plus un grain de papier.
   Sur un calque à part et non sur body : Safari iOS ignore le mélange
   (soft-light) du fond de body, d'où des couleurs différentes sur iPhone. */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--papier);
  background-image: url("images/fonds/froisse.webp"), url("images/fonds/froisse-2.webp"), var(--grain);
  background-size: 1600px auto, 1100px auto, auto;
  background-blend-mode: soft-light, soft-light, normal;
}

h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 800; font-stretch: 82%; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-stretch: 90%; letter-spacing: 0; }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: inherit; }

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

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--encre); color: var(--papier); padding: .6rem 1rem; border-radius: 8px; }
.evitement:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.entete {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem max(1rem, 3vw);
  position: relative; z-index: 5;
}
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-stretch: 85%; line-height: 1; font-size: 1.05rem; }
.marque-pion { width: 2.1rem; height: 2.1rem; fill: var(--pion); filter: drop-shadow(2px 2px 0 var(--pion-ombre)); }

/* ---------- Raccourcis : tuiles de papier ---------- */
.raccourcis {
  position: fixed; z-index: 15;
  top: calc(env(safe-area-inset-top, 0px) + .8rem); right: calc(env(safe-area-inset-right, 0px) + max(1rem, 2.5vw));
}
.raccourcis ul { display: flex; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.raccourcis :is(a, .bientot) {
  --penche: -3deg;
  display: grid; justify-items: center; align-content: center; gap: .2rem;
  width: 4.6rem; height: 4rem; padding: .3rem .2rem;
  border-radius: 8px; background: #FBFAF5; color: var(--encre); text-decoration: none;
  box-shadow: 2px 3px 0 rgba(148, 112, 77, .3);
  font-size: .72rem; font-weight: 700; line-height: 1.05; text-align: center;
  transform: rotate(var(--penche));
  transition: transform .15s, background-color .15s;
}
.raccourcis li:nth-child(2) > * { --penche: 2.5deg; }
.raccourcis li:nth-child(3) > * { --penche: -1.5deg; }
.raccourcis li:nth-child(4) > * { --penche: 3deg; }
.raccourcis li:nth-child(5) > * { --penche: -2deg; }
.raccourcis li:nth-child(6) > * { --penche: 2deg; }
.raccourcis li:nth-child(7) > * { --penche: -2.5deg; }
.raccourcis li:nth-child(8) > * { --penche: 2.5deg; }
.raccourcis svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.raccourcis a:hover { transform: rotate(0) translateY(-3px); }
.raccourcis a:focus-visible { outline: 3px solid var(--leman); outline-offset: 3px; }
.raccourcis a:is([aria-current="page"], [aria-current="true"]) { background: var(--pion); box-shadow: 2px 3px 0 var(--pion-ombre); transform: rotate(0) translateY(-2px); }
/* Page pas encore faite : tuile de papier encore vierge, en pointillés */
.raccourcis .bientot { background: transparent; color: var(--kraft-ombre); box-shadow: inset 0 0 0 2px var(--kraft-clair); cursor: default; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-stretch: 90%;
  color: var(--papier); background: var(--encre);
  padding: .8rem 1.3rem; border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 5px 0 #0f1a2e;
  transition: transform .08s, box-shadow .08s;
}
.bouton:hover { background: #2c3c5c; }
.bouton:active { transform: translateY(4px); box-shadow: 0 1px 0 #0f1a2e; }
.bouton-calme { background: var(--kraft-clair); color: var(--encre); box-shadow: 0 5px 0 var(--kraft); }
.bouton-calme:hover { background: #ead6b8; }
.bouton-calme:active { box-shadow: 0 1px 0 var(--kraft); }
.bouton:disabled { opacity: .55; cursor: wait; }

/* ---------- Plateau, piste, personnages ---------- */
.plateau { position: relative; }

.piste { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.piste path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.piste-ref { stroke: none; }
.tuile-ombre { fill: rgba(148, 112, 77, .26); }

.etape { position: relative; padding: 8rem 0; z-index: 1; scroll-margin-top: -4rem; }
.accueil { scroll-margin-top: 10rem; }
.contenu { width: var(--largeur); margin-inline: auto; position: relative; }

.case {
  position: absolute; top: 50%; z-index: 2;
  width: 3.6rem; height: 3.6rem; margin: -1.8rem 0 0 -1.8rem;
  display: grid; place-items: center;
  border-radius: 9px;
  background: #FBFAF5;
  box-shadow: 3px 4px 0 rgba(148, 112, 77, .3);
  transform: rotate(var(--penche-case, -5deg));
}
.etape:nth-of-type(even) .case { --penche-case: 6deg; }
.case svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: var(--encre); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case svg .plein { fill: var(--encre); stroke: none; }
.voie-g .case { left: var(--voie); }
.voie-d .case { left: calc(100% - var(--voie)); }
.case-arrivee { background: var(--pion); }
/* Case départ : plus grande, le meeple se tient dessus et le nom reste lisible en bas */
.case.case-depart {
  width: 4.1rem; height: 3.4rem; margin: -1.7rem 0 0 -2.05rem;
  place-items: end center; padding-bottom: .35rem;
  background: var(--pion); box-shadow: 3px 4px 0 var(--pion-ombre);
  font-weight: 800; font-stretch: 85%; font-size: .78rem; color: var(--encre);
}

.marmotte, .suiveur {
  position: absolute; left: 0; top: 0; z-index: 4;
  padding: 0; border: 0; background: none;
  will-change: transform;
}
.marmotte { cursor: pointer; }
.marmotte svg, .suiveur svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 4px 1.5px rgba(94, 70, 45, .4)); }


.avion { width: 4rem; height: 2.5rem; z-index: 4; }
.av-blanc { fill: #FBF7EC; }
.av-bleu { fill: #2F5A9E; }
.av-rouge { fill: #C4473A; }
.av-helice { fill: var(--encre); transform-box: fill-box; transform-origin: center; }
.avion[data-helice="1"] .av-helice { transform: scaleY(.3); }

.as-trefle { width: 3rem; height: 4.2rem; z-index: 3; }
.pion-meeple { width: 3.6rem; height: 3.6rem; fill: var(--pion); }
.ca-tranche { fill: var(--kraft); }
.ca-fond { fill: #FBF7EC; }
.ca-encre { fill: var(--encre); }
.ca-encre text { font: 800 10px var(--police); }
.ca-bleu { fill: #2F5A9E; }
.ca-motif { fill: none; stroke: #FBF7EC; stroke-width: 1.2; opacity: .7; }
.ca-dos { display: none; }
.as-trefle[data-cote="dos"] .ca-dos { display: inline; }
.as-trefle[data-cote="dos"] .ca-face { display: none; }

.marmotte { width: 6.2rem; height: 5.2rem; z-index: 3; }
.m-kraft { fill: var(--kraft); }
.m-fonce { fill: var(--kraft-ombre); }
.m-dos { opacity: .5; }
.m-clair { fill: var(--kraft-clair); }
.m-encre { fill: var(--encre); }
.m-blanc { fill: #fff; }
.m-debout, .m-pattes-b { display: none; }
.marmotte[data-pose="b"] .m-pattes-a { display: none; }
.marmotte[data-pose="b"] .m-pattes-b { display: inline; }
.marmotte[data-pose="debout"] .m-marche { display: none; }
.marmotte[data-pose="debout"] .m-debout { display: inline; }
.marmotte.cligne .m-oeil { transform: scaleY(.15); transform-box: fill-box; transform-origin: center; }


/* ---------- Accueil ---------- */
/* z-index auto : les montagnes passent sous la piste, qui sort ainsi du paysage */
.accueil { z-index: auto; padding-top: 3rem; padding-bottom: 15rem; min-height: calc(100vh - 5rem); display: flex; align-items: center; }
.accueil .contenu { margin-left: max(1rem, 6vw); width: min(52rem, calc(100vw - 2 * (var(--voie) + 3.5rem))); }
.accueil .case { top: auto; bottom: 7rem; }
/* Titre en lettres découpées dans des magazines */
.magazine {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .35em;
  font-size: clamp(2.3rem, 1rem + 5.4vw, 5.6rem);
  font-weight: 400; font-stretch: 100%; letter-spacing: 0; line-height: 1;
  margin-bottom: 1.8rem;
}
.mot { display: inline-flex; gap: .05em; white-space: nowrap; }
.mot-petit { font-size: .5em; }
.mot-trait { font-size: .7em; }
.saut { flex-basis: 100%; height: 0; } /* « la Biblio - Ludo » / « de Ballaison » */
.accueil .magazine { width: max-content; max-width: calc(100vw - max(1rem, 6vw) - var(--voie) - 3.5rem); }
.lettre {
  display: inline-block; padding: .06em .13em .04em;
  border-radius: 2px;
  box-shadow: .05em .07em 0 rgba(60, 45, 30, .22);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  cursor: default;
}
.magazine.arrive .lettre { animation: colle .42s steps(4) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes colle {
  0% { opacity: 0; transform: rotate(calc(var(--r, 0deg) * -3)) translateY(-.5em) scale(1.25); }
  100% { opacity: 1; }
}
.accroche {
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem);
  font-weight: 800; font-stretch: 80%; line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: 1.2rem;
}

/* Objets photographiés puis découpés, qui se déplient au défilement */
.decoupe {
  position: absolute; z-index: 2; margin: 0;
  top: 7rem; width: clamp(7rem, 11vw, 10.5rem);
  perspective: 800px;
  transform: translateX(-50%) rotate(var(--penche, -4deg));
  cursor: pointer;
}
.voie-g .decoupe { left: calc(100% - var(--voie)); --penche: 5deg; }
.voie-d .decoupe { left: var(--voie); }
.decoupe svg {
  display: block; width: 100%; height: auto; aspect-ratio: 1; overflow: visible;
  transform-origin: 50% 92%;
  filter: drop-shadow(4px 7px 3px rgba(94, 70, 45, .35));
}
.decoupe.plie svg { transform: rotateX(90deg); }
.decoupe.deplie svg { animation: deplie .9s cubic-bezier(.3, 1.45, .5, 1) both; }
@keyframes deplie {
  0% { transform: rotateX(90deg); }
  60% { transform: rotateX(-10deg); }
  100% { transform: rotateX(0); }
}
/* Logo : sur grand écran, dans le blanc à droite du texte, remonté à hauteur de la 2e ligne du titre.
   Sa largeur prend la place libre entre le texte (6vw + 44rem + écart) et la colonne de la piste
   (100vw - voie - 3rem), où le cortège attend au-dessus de la case départ. */
.accueil .logo-accueil {
  top: auto; left: calc(100% + 2.5vw);
  width: clamp(13rem, 83.5vw - 47rem, 36rem);
  margin-top: calc(-1.25 * clamp(2.3rem, 1rem + 5.4vw, 5.6rem));
  transform: rotate(3deg);
}
@media (min-width: 1181px) {
  .accueil .contenu { width: min(44rem, calc(100vw - 2 * (var(--voie) + 3.5rem))); }
}
@media (max-width: 1180px) {
  .accueil .contenu .logo-accueil { position: relative; left: auto; top: auto; display: block; width: min(18rem, 75%); margin: -.6rem auto 1.6rem; transform: rotate(2deg); }
}
/* Le pion et la marmotte n'apparaissent qu'une fois posés sur la piste */
.plateau:not(.pret) :is(.marmotte, .suiveur) { visibility: hidden; }

.chapo { font-size: 1.2rem; color: var(--encre-douce); }
.chapo p { margin-bottom: .7rem; }
.accroche + .chapo { margin-top: 2.4rem; }
.chapo p:nth-child(2) { font-weight: 700; color: var(--encre); }
/* Mots-genres : une étiquette de papier collée de travers, dans une police qui imite le genre */
.genre {
  display: inline-block; white-space: nowrap;
  padding: .04em .3em 0; border-radius: 2px; line-height: 1.2;
  color: var(--encre); background: #FBFAF5;
  box-shadow: .05em .07em 0 rgba(60, 45, 30, .22);
  transform: rotate(var(--r, -1.5deg));
}
.genre-rire { background: var(--pion); font-weight: 800; font-stretch: 75%; --r: -2.5deg; }
.genre-enquete { font-family: "Special Elite", monospace; --r: 1.2deg; }
.genre-cite { background: var(--kraft-clair); font-family: "Rubik Mono One", sans-serif; font-size: .78em; --r: -1deg; }
.genre-pirate { background: var(--encre); color: #FBF7EC; font-family: "Abril Fatface", serif; letter-spacing: .02em; --r: 2deg; }

/* Titre des pages intérieures */
.titre-page { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.6rem); margin-bottom: 1.2rem; }
.page-tete { padding-top: 4rem; }

/* Mise en garde : un bout de ruban adhésif jaune sur la page */
.avis {
  padding: .7rem 1rem; border-left: 5px solid var(--pion);
  background: rgba(239, 179, 56, .14); border-radius: 0 8px 8px 0;
  font-weight: 600; color: var(--encre);
}
.suite { margin-top: 1.8rem; }

.montagnes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 12rem; z-index: -1; }
.mont-loin { fill: #C7D3BE; }
.mont-lac { fill: #9FC2BE; }
.mont-pres { fill: var(--papier-2); }

/* Titre d'une partie de section (« Choisir un jeu », « La boîte à idées ») */
.sous-titre { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-stretch: 80%; margin: 2.6rem 0 .8rem; }

/* ---------- Venir jouer : les formats ---------- */
/* Quatre fiches de papier, chacune avec son horaire en étiquette kraft */
.formats {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem;
}
.format {
  --fil: var(--leman);
  position: relative; padding: 1.5rem 1.3rem 1.2rem;
  background: #FBF7EC; border-radius: 6px;
  border-top: 6px solid var(--fil);
  box-shadow: 4px 6px 0 rgba(148, 112, 77, .22);
  transform: rotate(var(--penche, 0deg));
}
.format:nth-child(1) { --penche: -.8deg; }
.format:nth-child(2) { --penche: .7deg; --fil: var(--encre); }
.format:nth-child(3) { --penche: .5deg; --fil: #B5654F; }
.format:nth-child(4) { --penche: -.6deg; --fil: var(--pion); }
.format:nth-child(5) { --penche: .3deg; --fil: #7E9C6B; }
.format-libre { grid-column: 1 / -1; }
.format p.format-public {
  display: inline-block; margin-top: .7rem; padding: .1rem .55rem; border-radius: 999px;
  border: 1.5px solid var(--fil); color: var(--encre); font-size: .8rem; font-weight: 700;
}
.format h3 { font-size: 1.5rem; font-stretch: 80%; margin-bottom: .4rem; }
.format p { margin: 0; color: var(--encre-douce); }
.format-heure {
  position: absolute; top: -1.05rem; right: 1rem;
  padding: .2rem .65rem; border-radius: 3px;
  background: var(--kraft-clair); color: var(--encre) !important;
  font-weight: 700; font-size: .85rem;
  transform: rotate(2deg);
}
.a-savoir {
  margin-top: 1.8rem; padding: .8rem 1rem; border-radius: 6px;
  border: 2px dashed var(--kraft); color: var(--encre-douce);
}
.a-savoir strong { color: var(--encre); }
.a-savoir p { margin: 0 0 .3rem; }
.a-savoir ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; }

/* Petite feuille scotchée dans le décor : le coin dessin des Grasses Matinées, la lecture sur place */
.encart {
  --scotch: rgba(239, 179, 56, .55);
  position: relative; display: flex; gap: .9rem; align-items: center;
  margin-top: 1.1rem; padding: .85rem 1rem .85rem .8rem;
  background: #fff; border-radius: 3px;
  box-shadow: 2px 3px 0 rgba(148, 112, 77, .2);
  transform: rotate(var(--penche-encart, 1.2deg));
}
.encart::before {
  content: ""; position: absolute; top: -.6rem; left: 50%; width: 4.4rem; height: 1.15rem;
  background: var(--scotch); transform: translateX(-50%) rotate(-3deg);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 88% 4%, 94% 0, 100% 9%, 100% 92%, 94% 100%, 88% 90%, 12% 96%, 6% 100%, 0 90%);
}
.encart svg { flex: none; width: 5.4rem; height: auto; }
.encart p { margin: 0; color: var(--encre-douce); }
.encart strong { display: block; color: var(--encre); font-size: 1.05rem; }
.encart-lire { --scotch: rgba(61, 135, 137, .4); --penche-encart: -.8deg; margin-top: 1.8rem; margin-bottom: 1.8rem; max-width: 36rem; }
.encart-lire svg { width: 5rem; }
.encart-tarif, .encart-news, .encart-poche { --scotch: rgba(61, 135, 137, .4); --penche-encart: -.6deg; margin-top: 2.2rem; }
.encart-tarif svg, .encart-news svg, .encart-poche svg { width: 5rem; }

/* Grand panneau scotché : ce qui n'est pas encore là (les jeux, la gazette) */
.panneau {
  position: relative; display: flex; gap: 1.6rem; align-items: center;
  margin: 2.2rem 0; padding: 2rem 2rem 1.8rem;
  background: #FBF7EC; border-radius: 4px;
  box-shadow: 5px 7px 0 rgba(148, 112, 77, .25);
  transform: rotate(-.9deg);
}
.panneau[hidden] { display: none; }
.panneau::before, .panneau::after {
  content: ""; position: absolute; top: -.7rem; width: 6rem; height: 1.5rem;
  background: rgba(228, 203, 168, .85);
}
.panneau::before { left: 1.5rem; transform: rotate(-6deg); }
.panneau::after { right: 1.5rem; transform: rotate(5deg); }
.panneau-dessin { flex: none; width: 7rem; height: auto; }
.panneau h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-stretch: 80%; margin-bottom: .5rem; }
.panneau p { margin: 0; color: var(--encre-douce); }
.panneau .suite { margin-top: 1.2rem; }
.filtres-attente { opacity: .55; }
.page-tete-courte { padding-bottom: 1rem; }
.etape-suite { padding-top: 1.5rem; }

/* Gazette : les photos d'une soirée défilent à l'horizontale */
.pellicule { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .4rem .2rem 1rem; margin: 1rem 0; }
.pellicule img { flex: none; height: 14rem; width: auto; border: .45rem solid #fff; border-radius: 3px; box-shadow: 3px 4px 0 rgba(148, 112, 77, .25); scroll-snap-align: start; }

/* Étiquette de date posée au-dessus d'un titre */
.etiquette-date {
  display: inline-block; margin: 0 0 .6rem; padding: .2rem .7rem; border-radius: 3px;
  background: var(--pion); color: var(--encre); font-weight: 700; font-size: .95rem;
  box-shadow: 2px 2px 0 var(--pion-ombre); transform: rotate(-1.5deg);
}

/* Notre ambition */
.atouts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.8rem; }
.atouts .genre { font-size: 1.15rem; }
.atouts p { margin: .5rem 0 0; color: var(--encre-douce); }
.citation { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; margin-bottom: 1.4rem; }
.loisirs { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.loisirs li { padding: 1.1rem 1.1rem 1.2rem; background: #FBF7EC; border-radius: 6px; box-shadow: 4px 6px 0 rgba(148, 112, 77, .22); }
.loisirs li:nth-child(1) { transform: rotate(-.8deg); }
.loisirs li:nth-child(2) { transform: rotate(.6deg); }
.loisirs li:nth-child(3) { transform: rotate(-.4deg); }
.loisirs svg { display: block; width: 4.6rem; height: auto; margin-bottom: .5rem; }
.loisirs h3 { font-size: 1.3rem; font-stretch: 80%; margin-bottom: .3rem; }
.loisirs p { margin: 0; color: var(--encre-douce); font-size: .95rem; }

/* Mécaniques : raccourcis vers les familles, sorties récentes en jaune */
.familles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 .4rem; }
.familles a {
  padding: .3rem .8rem; border-radius: 999px; background: #FBF7EC; color: var(--encre);
  font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: inset 0 0 0 2px var(--kraft-clair);
}
.familles a:hover { background: var(--kraft-clair); }
.mecanique .etiquettes li { border-color: var(--kraft-clair); background: #fff; color: var(--encre); }
.mecanique .etiquettes li.recent { background: var(--pion); border-color: var(--pion-ombre); }

/* ---------- Sur nos étagères : bannière de boîtes ---------- */
.banniere { margin-top: 2rem; }
.boites {
  list-style: none; margin: 0; padding: 1rem .6rem 1.4rem;
  display: grid; grid-auto-flow: column; gap: 1.2rem;
  grid-auto-columns: calc((100% - 2 * 1.2rem) / 3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .6rem;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.boites::-webkit-scrollbar { display: none; }
.boites:focus-visible { outline: 3px solid var(--pion); outline-offset: 4px; border-radius: 8px; }
.boite {
  --couv: var(--leman);
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--couv); color: #fff;
  border-radius: 6px;
  box-shadow: 5px 7px 0 rgba(34, 48, 74, .18);
  transform: rotate(var(--penche, 0deg));
  transition: transform .22s ease-in;
}
.boite:nth-child(3n+1) { --penche: -1deg; }
.boite:nth-child(3n+2) { --penche: .8deg; }
.boite:nth-child(3n) { --penche: -.4deg; }
.boite:hover { transform: rotate(0) translateY(-4px); }
.boite h3 { font-size: 1.5rem; font-stretch: 78%; margin-bottom: .4rem; }
.boite p { font-size: .95rem; opacity: .92; margin-bottom: .2rem; }
.boite dl { display: flex; flex-wrap: wrap; gap: .35rem; margin: auto 0 0; padding-top: .6rem; }
.boite dl div { background: rgba(255, 255, 255, .18); border-radius: 8px; padding: .22rem .5rem; font-size: .8rem; }
.boite dt { display: inline; opacity: .8; }
.boite dt::after { content: " "; }
.boite dd { display: inline; margin: 0; font-weight: 700; }
.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .55rem 0 0; padding: 0; }
.etiquettes li {
  padding: .12rem .5rem; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .55); font-size: .78rem; font-weight: 600;
}
.boite.couv-claire { color: var(--encre); }
.boite.couv-claire dl div { background: rgba(34, 48, 74, .1); }
.boite.couv-claire .etiquettes li { border-color: rgba(34, 48, 74, .35); }

/* Photo du jeu, tirée sur papier et posée de travers sur la boîte.
   Sans photo, le dessin découpé du jeu la remplace. */
.boite-photo {
  margin: 0 0 .9rem; padding: .35rem .35rem .9rem;
  background: #FBF7EC; border-radius: 2px;
  box-shadow: 2px 3px 0 rgba(34, 48, 74, .22);
  transform: rotate(calc(var(--penche, 0deg) * -1.6));
}
.boite-photo > * {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  background: color-mix(in srgb, var(--couv) 22%, #fff);
}
.boite-photo svg { padding: 8% 0; overflow: visible; }
.boites-vide { color: var(--encre-douce); }

.banniere-commandes { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; }
.banniere-compte { margin: 0; min-width: 7.5rem; text-align: center; font-size: .92rem; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.fleche {
  width: 2.8rem; height: 2.8rem; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--encre); color: #fff;
  box-shadow: 0 4px 0 #0f1a2e; transition: transform .1s;
}
.fleche svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fleche:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #0f1a2e; }
.fleche:disabled { opacity: .3; cursor: default; }
.fleche:focus-visible { outline: 3px solid var(--pion); outline-offset: 3px; }

.note { margin-top: 1.6rem; font-size: .92rem; color: var(--encre-douce); }

.a-remplir {
  background: repeating-linear-gradient(-45deg, rgba(239, 179, 56, .28) 0 6px, rgba(239, 179, 56, .12) 6px 12px);
  border-bottom: 2px dashed var(--pion-ombre);
  padding: 0 .15em;
}

/* ---------- Agenda ---------- */
.billets { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.billet {
  --talon: 6.5rem;
  display: grid; grid-template-columns: var(--talon) 1fr; gap: 1.2rem; align-items: center;
  background: #fff;
  padding: 1rem 1.3rem 1rem 0;
  border-radius: 10px;
  box-shadow: 3px 4px 0 var(--kraft-clair);
  /* encoches de ticket */
  -webkit-mask: radial-gradient(circle at var(--talon) 0, transparent 9px, #000 10px) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--talon) 100%, transparent 9px, #000 10px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at var(--talon) 0, transparent 9px, #000 10px) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--talon) 100%, transparent 9px, #000 10px) bottom / 100% 51% no-repeat;
}
.billet-date {
  margin: 0; align-self: stretch; display: grid; place-content: center; text-align: center;
  border-right: 2px dashed var(--kraft-clair);
  font-weight: 700; color: var(--leman); line-height: 1;
}
.billet-date abbr { display: block; margin-bottom: .2rem; text-decoration: none; font-size: .85rem; color: var(--encre-douce); }
.billet-date span { display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 75%; color: var(--encre); }
.billet h3 { margin-bottom: .3rem; }
.billet p { margin: 0; color: var(--encre-douce); }
.billet-ouvert { background: transparent; box-shadow: inset 0 0 0 2px var(--kraft-clair); -webkit-mask: none; mask: none; }
.billet-ouvert .billet-date { font-size: .95rem; color: var(--kraft-ombre); }

/* ---------- Mini-jeu : bataille de boules de neige ---------- */
.duel {
  margin-top: 2rem; padding: 1.2rem;
  background: var(--papier-2); border-radius: 18px;
  box-shadow: inset 0 0 0 2px var(--kraft-clair);
}
.duel-scene { position: relative; aspect-ratio: 5 / 2; overflow: hidden; border-radius: 12px; background: linear-gradient(#E4EAEE, #EEF1EF 60%); }
.duel-sol { position: absolute; left: 0; bottom: 0; width: 100%; height: 45%; }
.duel-sapin { position: absolute; bottom: 30%; width: 6%; overflow: visible; }
.duel-sapin-1 { left: 41%; }
.duel-sapin-2 { left: 52%; width: 4.5%; bottom: 34%; }
.duelliste { position: absolute; bottom: 5%; width: 24%; }
.joueur { left: 9%; }
.adversaire { right: 9%; }
.duel-perso { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(2px 4px 1.5px rgba(94, 70, 45, .35)); }
.pose-baissee { display: none; }
.duelliste.baisse .pose-debout { display: none; }
.duelliste.baisse .pose-baissee { display: inline; }
.duelliste.touche .duel-perso { animation: touche .45s steps(4); }
@keyframes touche { 25% { transform: translateX(-6%) rotate(-6deg); } 50% { transform: translateX(5%) rotate(5deg); } 75% { transform: translateX(-3%); } }
.duel-annonce {
  position: absolute; bottom: 100%; left: 50%; z-index: 2; margin: 0;
  transform: translate(-50%, -.3rem); white-space: nowrap;
  padding: .25rem .6rem; border-radius: 10px;
  background: #fff; box-shadow: 2px 3px 0 var(--kraft-clair);
  font-size: .85rem; font-weight: 700;
}
.boule-neige {
  position: absolute; left: 0; top: 0; z-index: 3; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 40%, #DCE3EE);
  box-shadow: 1px 2px 2px rgba(34, 48, 74, .25);
}

.duel-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.duel-etat p { margin: 0; }
#etat-adversaire { text-align: right; }
.duel-nom { font-weight: 800; font-stretch: 85%; }
.duel-vies, .duel-boules { display: inline-flex; gap: .25rem; vertical-align: middle; margin-right: .4rem; }
.duel-vies i { width: 1.05rem; height: 1rem; background: #C46A55; clip-path: path("M8.4 15.5 1.6 8.8C-.7 6.4.3 1.6 4.1 1.2c2-.2 3.3 1 4.3 2.4C9.4 2.2 10.7 1 12.7 1.2c3.8.4 4.8 5.2 2.5 7.6z"); }
.duel-vies i.perdue { background: var(--kraft-clair); }
.duel-boules i { width: .8rem; height: .8rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #B8C4D4; }
.duel-boules-texte { font-size: .9rem; color: var(--encre-douce); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.duel-message { margin: 1rem 0; min-height: 3em; font-weight: 600; }

.duel-cartes { display: flex; flex-wrap: wrap; gap: 1.1rem .9rem; padding: .6rem .4rem 0; }

/* Cartes à la façon des jeux de cartes à collectionner : coût, nom, illustration,
   type, texte de règle et valeur, chacun dans son encart. */
.carte {
  --cadre: #3D8789; --fond-art: #CFE3E0;
  position: relative; flex: 0 1 9.4rem; aspect-ratio: 63 / 88;
  display: grid; grid-template-rows: auto 1fr auto auto; gap: .3rem;
  padding: .45rem; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; color: var(--encre); text-align: left;
  background: var(--cadre);
  box-shadow: 3px 5px 0 rgba(94, 70, 45, .35), inset 0 0 0 2px rgba(255, 255, 255, .3);
  transform: rotate(var(--penche, -1.5deg));
  transition: transform .15s;
}
.carte:nth-child(2) { --penche: 1deg; }
.carte:nth-child(3) { --penche: -.5deg; }
.carte:nth-child(4) { --penche: 2deg; }
.carte:hover:not(:disabled) { transform: translateY(-8px) rotate(0); }
.carte:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .55; }
.famille-attaque { --cadre: #C46A55; --fond-art: #F2DCC4; }
.famille-defense { --cadre: #4A5770; --fond-art: #DCE3EE; }
.famille-bonus { --cadre: #D9A12F; --fond-art: #F6E3B0; }

.carte-nom {
  display: flex; align-items: center; min-height: 2.3em;
  padding: .2rem .4rem .2rem 1.6rem; border-radius: 6px; background: #FBF7EC;
  font-weight: 800; font-stretch: 85%; font-size: .9rem; line-height: 1.05;
}
.carte-cout {
  position: absolute; top: -.6rem; left: -.6rem; z-index: 1;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 45%, #DCE3EE);
  border: 2.5px solid var(--cadre); box-shadow: 1px 2px 0 rgba(34, 48, 74, .3);
  font-weight: 800; font-size: 1.05rem;
}
.carte-art {
  display: grid; place-items: center; min-height: 3.6rem; border-radius: 6px;
  background: var(--fond-art);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), inset 0 3px 8px rgba(34, 48, 74, .15);
}
.carte-art svg { width: 72%; max-width: 4.6rem; height: auto; }
.carte-type {
  padding: .08rem .45rem; border-radius: 4px; background: #FBF7EC;
  font-size: .7rem; font-weight: 700; color: var(--cadre);
}
.carte-texte {
  min-height: 3.9em; padding: .3rem .45rem .45rem; border-radius: 6px; background: #FBF7EC;
  font-size: .72rem; line-height: 1.25; color: var(--encre-douce);
}
.carte-effet {
  position: absolute; right: -.55rem; bottom: -.6rem;
  width: 2.1rem; height: 2.4rem; display: grid; place-items: center;
  background: var(--cadre); color: #fff; font-weight: 800; font-size: 1rem;
  clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
  filter: drop-shadow(1px 2px 0 rgba(34, 48, 74, .3));
}
.duel-cartes .rejouer { flex: 0 0 auto; align-self: center; }


/* ---------- Le marché ---------- */
/* Annonces : étiquettes de prix sur papier, comme au vide-grenier */
.annonces { list-style: none; margin: 2rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.2rem; }
.annonce { padding: 1.1rem 1.2rem; background: #FBF7EC; border-radius: 6px; box-shadow: 4px 6px 0 rgba(148, 112, 77, .22); }
.annonce img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: .8rem; }
.annonce h3 { margin-bottom: .3rem; }
.annonce-prix { display: inline-block; margin: 0 0 .6rem; padding: .05em .45em; background: var(--pion); font-weight: 800; font-size: 1.3rem; transform: rotate(-2deg); }
.annonce dl { margin: 0; display: grid; gap: .2rem; font-size: .92rem; }
.annonce dl div { display: flex; gap: .4rem; }
.annonce dt { font-weight: 700; }
.annonce dd { margin: 0; color: var(--encre-douce); }
.annonce-vide { grid-column: 1 / -1; background: transparent; box-shadow: inset 0 0 0 2px var(--kraft-clair); }
.annonce-vide p { margin: 0; color: var(--encre-douce); }

/* Le dépôt-vente en cinq étapes : une vraie suite, d'où les numéros */
.parcours { list-style: none; counter-reset: etape; margin: 1.8rem 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.parcours li { counter-increment: etape; display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1rem; align-items: start; }
.parcours li::before {
  content: counter(etape); grid-row: span 2;
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 7px;
  background: #FBFAF5; box-shadow: 2px 3px 0 rgba(148, 112, 77, .3);
  font-weight: 800; font-size: 1.3rem; transform: rotate(-4deg);
}
.parcours li:nth-child(even)::before { transform: rotate(5deg); }
.parcours li:last-child::before { background: var(--pion); }
.parcours h3 { margin: .35rem 0 .2rem; }
.parcours p { margin: 0; color: var(--encre-douce); }

/* Écrire à la ludo : feuille de papier, champs comme des étiquettes à remplir */
.formulaire { margin-top: 1.6rem; padding: 1.6rem 1.5rem 1.2rem; background: #FBF7EC; border-radius: 6px; box-shadow: 4px 6px 0 rgba(148, 112, 77, .22); }
.ecrire-titre { font-weight: 700; margin-bottom: .5rem; }
.a-preciser { margin: 0 0 1.3rem; padding-left: 1.2rem; color: var(--encre-douce); }
.a-preciser li { margin-bottom: .25rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .9rem; }
.formulaire label { display: block; font-weight: 700; margin-bottom: .3rem; }
.formulaire :is(input:not([type="radio"]), select, textarea) {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--encre);
  padding: .6rem .7rem; background: #fff; border: 2px solid var(--kraft-clair); border-radius: 8px;
}
.formulaire textarea { resize: vertical; }
.formulaire :is(input, select, textarea):focus-visible { outline: 3px solid var(--leman); outline-offset: 1px; border-color: var(--leman); }
.facultatif { font-weight: 400; color: var(--encre-douce); font-size: .9em; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.champs p { max-width: none; }
.champ-large { grid-column: 1 / -1; }
.choix { border: 0; margin: 0 0 1.3rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.choix legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.formulaire .choix label { margin: 0; cursor: pointer; }
.choix input { position: absolute; opacity: 0; }
.choix span {
  display: block; height: 100%; box-sizing: border-box; padding: .8rem 1rem; border-radius: 8px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--kraft-clair); font-weight: 400; color: var(--encre-douce);
  transition: transform .15s, background .15s;
}
.choix strong { display: block; color: var(--encre); font-size: 1.1rem; }
.choix label:hover span { box-shadow: inset 0 0 0 2px var(--pion-ombre); }
.choix input:checked + span { background: var(--pion); box-shadow: 2px 3px 0 var(--pion-ombre); color: var(--encre); transform: rotate(-1deg); }
.choix input:focus-visible + span { outline: 3px solid var(--leman); outline-offset: 2px; }
.piege { position: absolute; left: -9999px; }
.formulaire-retour { margin: 0; font-weight: 600; }
.formulaire-retour:empty { display: none; }
/* Après l'envoi : le formulaire laisse place à une carte « C'est bien envoyé ! » */
.formulaire.envoye > :not(.formulaire-ok) { display: none; }
.formulaire-ok { text-align: center; padding: .6rem 0 .4rem; }
.formulaire-ok:focus { outline: none; }
.formulaire-ok p { margin: 0 auto .7rem; max-width: 34rem; }
.formulaire-ok-coche {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--leman); color: #fff; font-size: 1.9rem; font-weight: 700; box-shadow: 2px 3px 0 #2a6466;
}
.formulaire-ok-titre { font-size: 1.45rem; font-weight: 800; color: var(--encre); }
.formulaire-ok .note { color: var(--encre-douce); font-size: .95rem; }
.formulaire-ok .bouton { margin-top: .4rem; }

/* ---------- Les jeux : mécaniques ---------- */
/* Cinq bouts de carton, chacun avec le jeu qui sert d'exemple en étiquette kraft */
.mecaniques {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem;
}
.mecanique {
  display: flex; flex-direction: column;
  padding: 1.1rem 1.1rem 1rem; background: #FBFAF5; border-radius: 6px;
  box-shadow: 3px 4px 0 rgba(148, 112, 77, .22);
  transform: rotate(var(--penche, 0deg));
}
.mecanique:nth-child(odd) { --penche: -.6deg; }
.mecanique:nth-child(3n) { --penche: .8deg; }
.mecanique h3 { font-size: 1.25rem; font-stretch: 80%; margin-bottom: .4rem; }
.mecanique p { margin: 0 0 .8rem; font-size: .95rem; color: var(--encre-douce); }
.mecanique .mecanique-jeu {
  margin: auto 0 0; align-self: flex-start; padding: .15rem .55rem; border-radius: 3px;
  background: var(--kraft-clair); color: var(--encre); font-size: .85rem;
}

/* D'autres mécaniques : petit lexique sur deux colonnes */
.glossaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; margin: 1.6rem 0 0; }
.glossaire div { padding-top: .6rem; border-top: 3px solid var(--kraft-clair); }
.glossaire dt { font-weight: 800; font-stretch: 85%; font-size: 1.15rem; margin-bottom: .25rem; }
.glossaire dd { margin: 0; color: var(--encre-douce); font-size: .95rem; }
.glossaire em { font-style: normal; font-weight: 600; color: var(--encre); }

/* ---------- Les jeux : la collection à filtrer ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: end; margin-top: 1.2rem; }
.filtre { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.filtre legend, .filtre-theme label { display: block; width: 100%; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; padding: 0; }
.filtre label { cursor: pointer; }
.filtre input { position: absolute; opacity: 0; }
.filtre span {
  display: block; padding: .3rem .75rem; border-radius: 999px;
  background: #FBFAF5; box-shadow: inset 0 0 0 2px var(--kraft-clair); font-size: .9rem; font-weight: 600;
}
.filtre input:checked + span { background: var(--encre); color: #FBF7EC; box-shadow: none; }
.filtre input:focus-visible + span { outline: 3px solid var(--leman); outline-offset: 2px; }
.filtre-theme { display: block; max-width: none; }
.filtre-theme select {
  font: inherit; font-size: .9rem; color: var(--encre); padding: .35rem .7rem;
  background: #FBFAF5; border: 2px solid var(--kraft-clair); border-radius: 999px;
}
.filtre-theme select:focus-visible { outline: 3px solid var(--leman); outline-offset: 2px; }
.compte { margin: 1rem 0 .4rem; font-weight: 700; color: var(--kraft-ombre); }
.compte:empty { display: none; }
.collection { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fiche {
  display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 1rem; align-items: center;
  padding: .7rem 1rem .7rem .7rem; background: #FBFAF5; border-radius: 8px;
  border-left: 6px solid var(--teinte, var(--leman));
  box-shadow: 2px 3px 0 rgba(148, 112, 77, .18);
}
.fiche svg { width: 3.6rem; height: 3.6rem; overflow: visible; }
.fiche h4 { margin: 0 0 .15rem; font-size: 1.15rem; font-weight: 800; font-stretch: 85%; }
.fiche p { margin: 0; font-size: .92rem; color: var(--encre-douce); }
.fiche .fiche-infos { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .35rem; font-size: .82rem; color: var(--encre); }
.fiche .fiche-niveau {
  align-self: start; padding: .1rem .55rem; border-radius: 999px;
  border: 1.5px solid var(--teinte, var(--leman)); font-size: .78rem; font-weight: 700; color: var(--encre);
}
.fiche-vide { display: block; background: transparent; box-shadow: inset 0 0 0 2px var(--kraft-clair); border-left: 0; padding: 1rem; }

/* ---------- La gazette : retour sur nos activités ---------- */
/* Une feuille par séance, la photo scotchée de travers dans la marge */
.carnet { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.feuillet {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1.4rem; align-items: start;
  padding: 1.2rem 1.3rem; background: #FBFAF5; border-radius: 4px;
  background-image: repeating-linear-gradient(transparent 0 1.7rem, rgba(61, 135, 137, .12) 1.7rem calc(1.7rem + 1px));
  box-shadow: 3px 5px 0 rgba(148, 112, 77, .2);
}
.feuillet:nth-child(even) { transform: rotate(.4deg); }
.feuillet:nth-child(odd) { transform: rotate(-.3deg); }
.feuillet-photo {
  position: relative; margin: 0; padding: .5rem .5rem 1.6rem; background: #fff;
  box-shadow: 2px 3px 6px rgba(34, 48, 74, .15); transform: rotate(-3deg);
}
.feuillet:nth-child(even) .feuillet-photo { transform: rotate(2.5deg); }
.feuillet-photo::before {
  content: ""; position: absolute; top: -.6rem; left: 50%; width: 3.6rem; height: 1.2rem; margin-left: -1.8rem;
  background: rgba(228, 203, 168, .8); transform: rotate(-4deg);
}
.feuillet-photo svg { display: block; width: 100%; aspect-ratio: 1; background: var(--papier-2); padding: 12%; box-sizing: border-box; overflow: visible; }
.feuillet-photo figcaption { position: absolute; bottom: .3rem; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--encre-douce); }
.feuillet-date { margin: 0 0 .4rem; font-weight: 700; font-size: .9rem; color: var(--leman); }
.feuillet-format { display: inline-block; white-space: nowrap; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; background: var(--kraft-clair); color: var(--encre); font-size: .8rem; }
.feuillet h3 { font-size: 1.4rem; font-stretch: 80%; margin-bottom: .45rem; }
.feuillet p { color: var(--encre-douce); margin-bottom: .2rem; }
.feuillet .etiquettes li { border-color: var(--kraft); color: var(--encre); }

/* Un récit avec photos prend toute la largeur de la feuille */
.feuillet-recit { display: block; padding: 1.6rem 1.6rem 1.5rem; }
.feuillet-recit h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: .8rem; }
.feuillet-recit > p { margin-bottom: .7rem; }
.feuillet-recit strong { color: var(--encre); }
.feuillet p.feuillet-jeux { margin-top: 1.2rem; font-weight: 700; color: var(--encre); }
.feuillet-recit .avis { margin: 1.6rem 0 0; color: var(--encre); }
.encart-merci { --scotch: rgba(61, 135, 137, .4); --penche-encart: -.7deg; margin-top: 2rem; max-width: 38rem; }
.encart-merci-2 { --scotch: rgba(239, 179, 56, .55); --penche-encart: .8deg; margin-left: auto; }
.encart-merci svg { width: 4.6rem; }
.encart-news-2 { --scotch: rgba(239, 179, 56, .55); --penche-encart: .7deg; }
.encart-nounou { --scotch: rgba(181, 101, 79, .4); --penche-encart: .6deg; margin-top: 1.8rem; max-width: 38rem; }
.encart-nounou svg { width: 4.8rem; }
.encart-nounou > div p + p { margin-top: .6rem; }
.affiche + .encart-nounou { margin: -1.4rem 0 3.4rem; }

/* Polaroids : cadre blanc, large marge du bas pour la légende tapée à la machine, posés de travers */
.polaroids {
  list-style: none; margin: 1.8rem 0 1.4rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.8rem 1.3rem;
}
.polaroid {
  position: relative; margin: 0; padding: .6rem .6rem 0; background: #fff; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(34, 48, 74, .2), 3px 6px 12px rgba(34, 48, 74, .16);
  transform: rotate(var(--penche, -2deg)); transition: transform .18s;
}
.polaroid::before {
  content: ""; position: absolute; top: -.55rem; left: 50%; width: 3.8rem; height: 1.1rem; margin-left: -1.9rem;
  background: var(--scotch, rgba(228, 203, 168, .85)); transform: rotate(-4deg); z-index: 1;
}
.polaroids li:nth-child(4n + 2) .polaroid { --penche: 1.6deg; --scotch: rgba(239, 179, 56, .6); }
.polaroids li:nth-child(4n + 3) .polaroid { --penche: -.8deg; --scotch: rgba(61, 135, 137, .4); }
.polaroids li:nth-child(4n) .polaroid { --penche: 2.4deg; }
.polaroid a { display: block; cursor: zoom-in; }
.polaroid a:focus-visible { outline: 3px solid var(--leman); outline-offset: 2px; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; background: var(--papier-2); }
.polaroid figcaption {
  display: grid; place-items: center; min-height: 3.6rem; padding: .5rem .2rem .6rem;
  font-family: "Special Elite", monospace; font-size: .88rem; line-height: 1.25; text-align: center; color: var(--encre);
}
.polaroid:hover, .polaroid:focus-within { transform: rotate(0deg) scale(1.04); z-index: 2; }

/* La photo agrandie : un grand Polaroid au milieu de l'écran */
.visionneuse {
  border: 0; padding: .8rem .8rem .2rem; background: #fff; border-radius: 3px;
  max-width: min(94vw, 68rem); max-height: 94vh; box-shadow: 0 12px 40px rgba(15, 26, 46, .5);
}
.visionneuse::backdrop { background: rgba(34, 48, 74, .78); }
.visionneuse img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; }
.visionneuse p { margin: .7rem 2.4rem .6rem; font-family: "Special Elite", monospace; text-align: center; color: var(--encre); }
.visionneuse-fermer {
  position: absolute; top: .3rem; right: .3rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%;
  background: var(--encre); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.visionneuse-fermer:focus-visible { outline: 3px solid var(--pion); outline-offset: 2px; }

/* ---------- À l'affiche : la prochaine soirée, sur l'accueil ---------- */
/* Une affiche bleu nuit scotchée sous l'accroche, avec sa pastille jaune de compte à rebours */
.affiche {
  position: relative; margin: .6rem 0 3.4rem; max-width: 40rem; padding: 1.5rem 1.5rem 1.4rem;
  background: var(--encre); color: #FBF7EC; border-radius: 6px;
  box-shadow: 5px 7px 0 rgba(34, 48, 74, .28); transform: rotate(-.8deg);
}
.affiche::before, .affiche::after {
  content: ""; position: absolute; top: -.65rem; width: 5rem; height: 1.3rem; background: rgba(228, 203, 168, .9);
}
.affiche::before { left: 1.4rem; transform: rotate(-6deg); }
.affiche::after { right: 6.5rem; transform: rotate(4deg); }
.affiche-rubrique { margin: 0 0 .5rem; font-family: "Rubik Mono One", sans-serif; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pion); }
.affiche-compte {
  position: absolute; top: -1.3rem; right: -.8rem; display: grid; place-items: center; width: 6.2rem; height: 6.2rem; margin: 0; padding: .4rem;
  border-radius: 50%; background: var(--pion); color: var(--encre); box-shadow: 2px 3px 0 var(--pion-ombre);
  font-weight: 800; font-stretch: 75%; font-size: 1.35rem; line-height: 1.05; text-align: center; transform: rotate(9deg);
}
.affiche-compte span { display: block; font-size: .8rem; font-weight: 700; font-stretch: 90%; }
.affiche h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); margin: 0 4.6rem .5rem 0; color: #fff; }
.affiche p { margin: 0 0 .8rem; color: #DADFE9; }
.affiche p.affiche-quand { font-weight: 700; color: #fff; }
/* La pastille jaune garde son encre foncée (sinon « .affiche p » la passait en gris clair) */
.affiche p.affiche-compte { color: var(--encre); }
.affiche-jeux { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .5rem; margin: 0 0 1.3rem; padding: 0; }
.affiche-jeux li { padding: .12rem .55rem; border-radius: 2px; background: #FBFAF5; color: var(--encre); font-weight: 700; font-size: .9rem; }
.affiche-jeux li:nth-child(odd) { transform: rotate(-1.5deg); }
.affiche-jeux li:nth-child(even) { transform: rotate(1.2deg); }
.affiche-jeux li:nth-child(3n) { background: var(--kraft-clair); }
.affiche-jeux li:last-child { background: transparent; color: #DADFE9; font-weight: 400; transform: none; }
.affiche .boutons { margin: 0; }
.bouton-jaune { background: var(--pion); color: var(--encre); box-shadow: 0 5px 0 var(--pion-ombre); }
.bouton-jaune:hover { background: #f5c257; }
.bouton-jaune:active { box-shadow: 0 1px 0 var(--pion-ombre); }
.affiche .bouton-calme { box-shadow: 0 5px 0 #7d6243; }
.affiche a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Page des jeux d'une soirée : une fiche seule ne s'étire pas, le jeu d'ambiance est en jaune */
.menu-solo { grid-template-columns: minmax(0, 26rem); }
.mecanique.menu-ambiance { border-top: 6px solid var(--pion); }
.etiquettes-grandes { margin: 1rem 0 0; }
.etiquettes-grandes li { border-color: var(--kraft); background: #fff; color: var(--encre); }
.suite.boutons { margin-top: 2.2rem; }

/* Boîte à idées : quatre choix sur deux rangées */
.choix-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choix-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 2.6rem; margin-top: 2rem; }
.info h3 { margin-bottom: .7rem; padding-bottom: .4rem; border-bottom: 3px solid var(--kraft-clair); }
.horaires { border-collapse: collapse; width: 100%; }
.horaires th, .horaires td { text-align: left; padding: .35rem 0; border-bottom: 1px dashed var(--kraft-clair); }
.horaires th { font-weight: 600; }
.consignes { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.courriel { font-weight: 700; user-select: all; overflow-wrap: anywhere; }

.pied { padding: 3rem max(1rem, 3vw) 2.5rem; text-align: center; color: var(--encre-douce); font-size: .92rem; background: var(--papier-2); }
.pied p { margin-inline: auto; }
.mentions { max-width: 60rem; margin: 1.2rem auto 0; text-align: left; font-size: .85rem; }
.mentions summary { cursor: pointer; text-align: center; font-weight: 600; }
.mentions summary:focus-visible { outline: 3px solid var(--pion); outline-offset: 3px; border-radius: 4px; }
.mentions dl { display: grid; gap: .6rem; margin: 1rem 0 0; }
.mentions dt { font-weight: 700; color: var(--encre); }
.mentions dd { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  /* Texture à l'échelle de l'écran (en taille réelle, elle paraissait zoomée). */
  body::before { background-size: 700px auto, 480px auto, auto; }
  :root { --voie: 1.6rem; }
  .contenu, .accueil .contenu { width: auto; margin-left: 3.9rem; margin-right: 1rem; }
  .accueil { min-height: auto; }
  .accueil .case { bottom: 5rem; }
  .voie-d .case { left: var(--voie); }
  .case { width: 2.3rem; height: 2.3rem; margin: -1.15rem 0 0 -1.15rem; border-radius: 7px; }
  .case svg { width: 1.15rem; height: 1.15rem; }
  .case.case-depart { width: 3.6rem; height: 3rem; margin: -1.5rem 0 0 -1.8rem; padding-bottom: .2rem; font-size: .66rem; }
  .avion { width: 2.9rem; height: 1.8rem; }
  .as-trefle { width: 2.1rem; height: 2.9rem; }
  .pion-meeple { width: 2.6rem; height: 2.6rem; }
  .marmotte { width: 4.2rem; height: 3.5rem; }
  .formats { grid-template-columns: 1fr; gap: 1.6rem; }
  .boites { grid-auto-columns: 82%; gap: .9rem; }
  .boite-photo > * { aspect-ratio: 2 / 1; }
  .infos, .glossaire { grid-template-columns: 1fr; }
  .choix-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .choix-4 span { padding: .6rem .7rem; font-size: .85rem; }
  .choix-4 strong { font-size: 1rem; }
  .fiche { grid-template-columns: 2.8rem 1fr; gap: .8rem; }
  .fiche svg { width: 2.8rem; height: 2.8rem; }
  .fiche .fiche-niveau { grid-column: 2; justify-self: start; }
  .feuillet { grid-template-columns: 1fr; padding: 1rem; }
  .feuillet-recit { padding: 1.2rem 1rem; }
  .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
  .polaroid { padding: .4rem .4rem 0; }
  .polaroid figcaption { font-size: .78rem; min-height: 3.4rem; }
  .affiche { padding: 1.3rem 1.1rem 1.2rem; margin-right: .4rem; }
  .affiche-compte { width: 5.2rem; height: 5.2rem; right: .4rem; top: -1.6rem; font-size: 1.1rem; }
  .affiche h2 { margin-right: 3.6rem; }
  .affiche::after { display: none; }
  .menu-solo { grid-template-columns: 1fr; }
  .feuillet-photo { width: 8rem; }
  .formulaire { padding: 1.2rem 1rem 1rem; }
  .panneau { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.1rem 1.3rem; gap: .8rem; }
  .panneau-dessin { width: 4.6rem; }
  .atouts, .loisirs { grid-template-columns: 1fr; }
  .champs, .choix-3 { grid-template-columns: 1fr; }
  .encart-tarif, .encart-news, .encart-poche { --penche-encart: .4deg; }
  /* Raccourcis : barre de tuiles fixée en bas de l'écran, sur une seule ligne */
  .raccourcis {
    top: auto; left: 0; right: 0; bottom: 0;
    padding: .45rem max(.4rem, env(safe-area-inset-right, 0px)) calc(.45rem + env(safe-area-inset-bottom, 0px)) max(.4rem, env(safe-area-inset-left, 0px));
    background: var(--kraft-clair); box-shadow: 0 -3px 0 rgba(148, 112, 77, .25);
  }
  .raccourcis ul { justify-content: space-between; gap: .2rem; }
  .raccourcis li { flex: 1 1 0; min-width: 0; }
  .raccourcis :is(a, .bientot) { width: 100%; height: 3.3rem; font-size: .56rem; letter-spacing: -.02em; border-radius: 7px; padding-inline: 0; }
  .raccourcis .bientot { box-shadow: inset 0 0 0 2px rgba(148, 112, 77, .45); }
  .raccourcis svg { width: 1.2rem; height: 1.2rem; }
  body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px)); }
  /* Un lien vers une section ne la cache pas sous la barre */
  html { scroll-padding-bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)); }
  .montagnes { height: 7rem; }
  .decoupe, .voie-g .decoupe, .voie-d .decoupe { position: relative; left: auto; top: auto; display: block; width: 4.5rem; margin: 0 1rem .2rem auto; transform: rotate(var(--penche, -4deg)); }

  /* Texte un cran plus petit que sur grand écran : 16 px au lieu de 17 */
  body { font-size: 1rem; }
  h2 { font-size: 1.85rem; margin-bottom: .8rem; }
  h3 { font-size: 1.15rem; }
  .magazine { font-size: 2.1rem; margin-bottom: 1.2rem; }
  .accroche { font-size: 1.3rem; }
  .chapo { font-size: 1.05rem; }
  .format { padding: 1.2rem 1rem 1rem; }
  .encart { gap: .7rem; padding: .75rem .8rem .75rem .6rem; }
  .encart svg, .encart-lire svg { width: 3.6rem; }
  .format h3, .boite h3 { font-size: 1.3rem; }
  .boite p { font-size: .9rem; }

  /* Accueil plus ramassé : moins de vide sous le texte, logo plus petit */
  .etape { padding: 3.5rem 0; }
  .accueil { padding-top: 2rem; padding-bottom: 9rem; }
  .accueil .contenu .logo-accueil { width: min(12.5rem, 62%); margin: -.4rem auto 1.2rem; }

  .billet { --talon: 4.6rem; gap: .9rem; padding-right: 1rem; }
  .billet-date span { font-size: 2.1rem; }


  /* Mini-jeu : tout doit tenir dans un écran de téléphone.
     Scène plus basse et cartes en bandeaux horizontaux (illustration, nom, règle). */
  .duel { margin-top: 1.2rem; padding: .6rem; }
  .duel-scene { aspect-ratio: auto; height: 7.5rem; }
  .duelliste { width: 22%; }
  .duel-scores { margin-top: .6rem; font-size: .9rem; }
  .duel-message { margin: .5rem 0; min-height: 2.6em; font-size: .95rem; line-height: 1.3; }
  .duel-cartes { flex-direction: column; gap: .7rem; padding: .3rem .3rem .4rem .5rem; }
  .carte {
    flex: none; width: 100%; aspect-ratio: auto;
    grid-template-columns: 3.4rem 1fr; grid-template-rows: auto 1fr; gap: .3rem .45rem;
    padding: .4rem 1.1rem .4rem .4rem; border-radius: 10px;
  }
  .carte:hover:not(:disabled) { transform: rotate(0); }
  .carte-cout { width: 1.7rem; height: 1.7rem; top: -.45rem; left: -.45rem; font-size: .9rem; }
  .carte-art { grid-row: 1 / 3; grid-column: 1; min-height: 0; }
  .carte-art svg { width: 80%; }
  .carte-nom { grid-column: 2; min-height: 0; padding: .15rem .45rem; font-size: .88rem; }
  .carte-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .carte-texte { grid-column: 2; min-height: 0; padding: .2rem .45rem .3rem; font-size: .76rem; }
  .carte-effet { width: 1.8rem; height: 2rem; right: -.45rem; bottom: -.45rem; font-size: .88rem; }
  .duel-cartes .rejouer { align-self: center; }
}
/* Petits téléphones (320–360 px) : scène du mini-jeu encore plus basse */
@media (max-width: 360px) {
  .duel-scene { height: 6rem; }
  .duel-message { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .decoupe { width: 5.5rem; }
  .boites { grid-auto-columns: calc((100% - 1.2rem) / 2); }
}

@media (prefers-reduced-motion: reduce) {
  .raccourcis a { transition: none; }
  .polaroid { transition: none; }
  .polaroid:hover, .polaroid:focus-within { transform: rotate(var(--penche, -2deg)); }
  .boite { transition: none; }
  .duelliste.touche .duel-perso, .magazine.arrive .lettre, .decoupe.deplie svg { animation: none; }
}
