/*
 * Zappennui — feuille de style unique.
 * Parti pris : des cubes à lettres. Le nom tient dans une grille 3 × 3 (ZAP / PEN / NUI) ;
 * « zappe » est imprimé en jaune (l'éclair), « ennui » en bleu (le blues), et le E qu'ils
 * partagent, au centre, en vert : deux encres qui se superposent.
 * Papier crème, encre presque noire, ombres franches.
 */

/* ---------- Jetons ---------- */
:root {
  --papier: #f5efe2;
  --papier-2: #ece3cf;
  --papier-3: #e1d5bb;
  --carte: #fffbf2;
  --encre: #1d1a16;
  --encre-2: #51483e;
  --encre-3: #6f6458;
  --bleu: #2348b5;
  --bleu-clair: #dfe6f8;
  --jaune: #ffc83d;
  --jaune-clair: #ffeab0;
  --vert: #1d8259;
  --rouge: #b3261e;
  --rouge-clair: #fdecea;

  --trait: 2px;
  --ombre: 3px 3px 0 var(--encre);
  --ombre-g: 5px 5px 0 var(--encre);
  --r: 14px;
  --r-s: 9px;
  --police: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --entete-h: 64px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 16px); }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--bleu); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--jaune); color: var(--encre); }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--carte); padding: 10px 16px; border-radius: var(--r-s);
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.evitement:focus { top: 12px; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }

/* ---------- Cubes à lettres ---------- */
.tuile {
  --t: 56px;
  display: grid; place-items: center;
  width: var(--t); height: var(--t);
  border: var(--trait) solid var(--encre);
  border-radius: calc(var(--t) * 0.17);
  background: var(--carte); color: var(--encre);
  font-weight: 800; font-stretch: 88%;
  font-size: calc(var(--t) * 0.58); line-height: 1;
  box-shadow: 0 calc(var(--t) * 0.07) 0 var(--encre);
  user-select: none;
}
.t-bleu { background: var(--bleu); color: var(--carte); }
.t-vert { background: var(--vert); color: var(--carte); }
.t-jaune { background: var(--jaune); color: var(--encre); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: var(--papier);
  border-bottom: var(--trait) solid var(--encre);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--entete-h); }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; }
.marque svg { width: 30px; height: 30px; flex: none; }
.marque-nom { font-weight: 800; font-stretch: 85%; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1; }
/* Le nom souligné de deux encres : « zapp » en jaune, « nnui » en bleu, le E des deux à la fois. */
.marque-nom span { background-repeat: no-repeat; background-size: 100% 0.2em; background-position: 0 92%; padding-bottom: 0.1em; }
.m-zapp { background-image: linear-gradient(var(--jaune), var(--jaune)); }
.m-e { background-image: linear-gradient(var(--vert), var(--vert)); }
.m-nnui { background-image: linear-gradient(var(--bleu), var(--bleu)); }
.marque:hover .marque-nom span { background-size: 100% 0.32em; }

.nav ul { display: flex; gap: clamp(12px, 3vw, 28px); list-style: none; }
.nav a {
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 6px 2px; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--jaune); }
.nav a[aria-current="page"] { border-bottom-color: var(--bleu); }

/* ---------- Boutons ---------- */
.bouton {
  --b-fond: var(--carte);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  background: var(--b-fond); color: var(--encre);
  border: var(--trait) solid var(--encre); border-radius: var(--r-s);
  box-shadow: var(--ombre);
  font-weight: 800; font-size: 1.02rem; line-height: 1.1; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.bouton:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--encre); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; box-shadow: var(--ombre); }
.bouton-jouer { --b-fond: var(--jaune); }
.bouton-jouer::after {
  content: ''; width: 0; height: 0; margin-left: 2px;
  border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.bouton-bleu { --b-fond: var(--bleu); color: var(--carte); }
.bouton-petit { min-height: 38px; padding: 6px 14px; font-size: .95rem; }
.lien-fort { font-weight: 800; color: inherit; }

/* ---------- La une (accueil) ---------- */
.une {
  border-bottom: var(--trait) solid var(--encre);
  background-color: var(--papier);
  /* papier à petits carreaux */
  background-image:
    linear-gradient(rgba(35, 72, 181, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 72, 181, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.une .conteneur {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center;
  gap: clamp(28px, 5vw, 72px); padding-block: clamp(28px, 4.5vw, 56px);
}
.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2);
}
.surtitre::before { content: ''; width: 18px; height: 3px; background: var(--encre); }
.une h1 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem);
  font-stretch: 80%; line-height: .98; letter-spacing: -0.025em;
  max-width: 17ch;
}
.surligne { background-repeat: no-repeat; background-size: 100% 0.42em; background-position: 0 88%; padding-inline: 0.04em; white-space: nowrap; }
.surligne-jaune { background-image: linear-gradient(var(--jaune), var(--jaune)); }
.surligne-bleu { background-image: linear-gradient(var(--bleu-clair), var(--bleu-clair)); box-shadow: inset 0 -0.08em 0 var(--bleu); }
.une .chapo { margin-top: 20px; font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); max-width: 36ch; color: var(--encre-2); }
.une .chapo strong { color: var(--encre); }

/* ---------- Le jouet : le logo qui se remue ---------- */
.remue { margin: 0; display: grid; justify-items: center; gap: 14px; }
.remue-plateau {
  --t: clamp(50px, 12vw, 64px);
  --fl: calc(var(--t) * 0.46);
  display: grid; gap: 6px;
  grid-template-columns: var(--fl) repeat(3, var(--t)) var(--fl);
  grid-template-rows: var(--fl) repeat(3, var(--t)) var(--fl);
  touch-action: pan-y;
}
.remue-plateau.est-actif { touch-action: none; }
.remue-grille {
  grid-column: 2 / 5; grid-row: 2 / 5;
  position: relative; width: calc(var(--t) * 3 + 12px); height: calc(var(--t) * 3 + 12px);
}
.remue-grille .tuile {
  position: absolute; left: 0; top: 0;
  --t: inherit;
  width: var(--t); height: var(--t);
  transform: translate(calc(var(--x) * (var(--t) + 6px)), calc(var(--y) * (var(--t) + 6px)));
  transition: transform .2s cubic-bezier(.3, .7, .3, 1), box-shadow .12s, opacity .2s;
  cursor: grab; padding: 0;
}
.remue-grille .tuile.saute { transition: none; animation: apparait .22s ease-out; }
@keyframes apparait { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
.remue-grille .tuile:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; z-index: 2; }
.remue-grille .tuile[aria-pressed="true"] {
  z-index: 3; box-shadow: 0 calc(var(--t) * 0.07) 0 var(--encre), 0 0 0 4px var(--carte), 0 0 0 7px var(--encre);
}
.remue-plateau.est-resolu .tuile { animation: hop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes hop { 40% { translate: 0 -14px; } 100% { translate: 0 0; } }
.fleche {
  display: grid; place-items: center; padding: 0;
  width: 100%; height: 100%;
  background: transparent; border: 0; border-radius: 8px; color: var(--encre-3);
  transition: color .12s, background-color .12s;
}
.fleche:hover { color: var(--encre); background: rgba(29, 26, 22, .07); }
.fleche svg { width: 60%; height: 60%; max-width: 22px; max-height: 22px; }
.remue figcaption { text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 30ch; }
.remue-etat { font-size: .98rem; color: var(--encre-2); min-height: 3em; }
.remue-etat strong { color: var(--encre); }
.remue-aide { font-size: .85rem; color: var(--encre-3); display: none; }
.remue:focus-within .remue-aide { display: block; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 7vw, 88px); }
#jeux { padding-top: clamp(32px, 4.5vw, 52px); }
.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.section-tete h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); font-stretch: 82%; }
.section-tete p { color: var(--encre-2); }
.compteur { font-weight: 700; }

/* ---------- Cartes de jeu ---------- */
.grille-jeux { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px); }
.carte-jeu {
  --j-fond: var(--papier); --j-carte: var(--carte); --j-encre: var(--encre); --j-discret: var(--encre-2);
  --j-accent: var(--bleu); --j-police: var(--police); --j-graisse: 800;
  --j-bord: 2px; --j-rayon: 14px; --j-ombre: var(--ombre-g);
  position: relative; display: flex; flex-direction: column;
  background: var(--j-carte); color: var(--j-encre);
  border: var(--j-bord) solid var(--j-encre); border-radius: var(--j-rayon);
  box-shadow: var(--j-ombre);
}
.carte-jeu .numero { position: absolute; top: -16px; left: 18px; z-index: 2; --t: 40px; font-size: 1.05rem; font-stretch: 85%; }
.carte-visuel {
  position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden;
  border-bottom: var(--j-bord) solid var(--j-encre);
  border-radius: calc(var(--j-rayon) - var(--j-bord)) calc(var(--j-rayon) - var(--j-bord)) 0 0;
  background: var(--j-fond);
}
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.carte-jeu:hover .carte-visuel img { transform: scale(1.035); }
.reperes {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-items: center;
  list-style: none; pointer-events: none;
}
.reperes li {
  font-family: var(--j-police); font-size: .95rem; line-height: 1;
  background: var(--j-carte); color: var(--j-encre);
  border: 1px solid var(--j-encre); border-radius: var(--j-rayon); padding: 4px 8px;
}
.carte-corps { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: clamp(18px, 2.4vw, 26px); }
.carte-sur { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--j-discret); }
.carte-titre {
  font-family: var(--j-police); font-weight: var(--j-graisse);
  font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.7rem); line-height: 1; letter-spacing: -0.01em;
}
.carte-titre a { color: inherit; text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.carte-titre em { font-style: italic; }
.carte-accroche { font-size: 1.05rem; }
.pastilles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pastilles li {
  font-size: .86rem; font-weight: 600; line-height: 1.2; padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--j-encre) 40%, transparent);
  border-radius: calc(var(--j-rayon) * 1.6);
  background: color-mix(in srgb, var(--j-fond) 60%, transparent);
}
.carte-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.carte-actions .lien-fort { color: var(--j-encre); }

/* La case libre */
.case-libre {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px;
  padding: clamp(20px, 3vw, 28px);
  border: 2px dashed var(--encre-3); border-radius: var(--r);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(29, 26, 22, .035) 10px 11px);
}
.case-libre .tuile { --t: 64px; background: transparent; border-style: dashed; border-color: var(--encre-3); color: var(--encre-3); box-shadow: none; font-size: 1.5rem; }
.case-libre h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-stretch: 85%; }
.case-libre p { color: var(--encre-2); margin-top: 6px; max-width: 60ch; }

/* ---------- La tirelire (pourboires) ---------- */
.section-tirelire { padding-top: 0; }
.tirelire {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch;
  gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 4vw, 44px);
  background: var(--carte); border: var(--trait) solid var(--encre); border-radius: var(--r); box-shadow: var(--ombre-g);
}
.tirelire-scene {
  display: grid; justify-items: center; align-content: center; gap: 6px; padding: 18px 12px 10px; border-radius: var(--r-s);
  background-color: var(--papier);
  background-image:
    linear-gradient(rgba(35, 72, 181, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 72, 181, .07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bulle {
  position: relative; width: min(100%, 300px); min-height: 7.4em; padding: 10px 14px;
  background: #fff; border: var(--trait) solid var(--encre); border-radius: 14px;
  font-size: .98rem; font-weight: 600; line-height: 1.35; text-align: center;
  display: grid; place-items: center;
}
.bulle::after {
  content: ''; position: absolute; left: 50%; bottom: -11px; width: 18px; height: 18px; margin-left: -9px;
  background: #fff; border-right: var(--trait) solid var(--encre); border-bottom: var(--trait) solid var(--encre);
  transform: rotate(45deg);
}
.bulle-indice { display: none; color: var(--encre-2); font-style: italic; }
.bulle.avec-indice .bulle-indice { display: block; }
/* la réponse reste lisible par les lecteurs d'écran même quand un indice la remplace à l'écran */
.bulle.avec-indice .bulle-reponse { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cube-tirelire { width: min(100%, 220px); height: auto; overflow: visible; }
.cube-tirelire g[class^="v-"] { display: none; }
.cube-tirelire[data-humeur="attend"] .v-attend,
.cube-tirelire[data-humeur="ravi"] .v-ravi,
.cube-tirelire[data-humeur="boude"] .v-boude,
.cube-tirelire[data-humeur="clin"] .v-clin { display: inline; }
.cube-tirelire .corps { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s ease; }
.cube-tirelire[data-humeur="boude"] .corps { transform: rotate(-4deg); }
.cube-tirelire .piece { opacity: 0; transform-box: fill-box; }
.cube-tirelire.saute .piece { animation: piece-tombe .7s ease-in; }
.cube-tirelire.saute .corps { animation: tirelire-saute .55s cubic-bezier(.3, 1.6, .5, 1) .45s; }
.cube-tirelire.parle .corps { animation: tirelire-parle .3s ease-out; }
@keyframes piece-tombe { 0% { opacity: 1; transform: translateY(-40px); } 75% { opacity: 1; transform: translateY(44px); } 100% { opacity: 0; transform: translateY(54px); } }
@keyframes tirelire-saute { 40% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
@keyframes tirelire-parle { 50% { transform: scale(1.04, .96); } }
.tirelire-texte h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); font-stretch: 82%; margin-top: 10px; }
.tirelire-chapo { margin-top: 12px; color: var(--encre-2); max-width: 52ch; }
.montants { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.montant {
  display: grid; align-content: start; gap: 3px; height: 100%; padding: 12px 14px;
  background: var(--papier); color: var(--encre); text-decoration: none;
  border: var(--trait) solid var(--encre); border-radius: 12px; box-shadow: var(--ombre);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s;
}
.montant:hover { background: var(--jaune); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--encre); }
.montant:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.montant-somme { font-weight: 800; font-stretch: 80%; font-size: 1.9rem; line-height: 1; }
.montant-nom { font-weight: 800; }
.montant-blague { font-size: .86rem; line-height: 1.3; color: var(--encre-2); }
.bouton-zero {
  margin-top: 16px; padding: 6px 2px; background: none; border: 0; cursor: pointer;
  font-weight: 700; color: var(--encre-2); text-decoration: underline dotted; text-underline-offset: .22em;
}
.bouton-zero:hover { color: var(--encre); text-decoration-style: solid; }
.tirelire .mention { margin-top: 14px; max-width: 60ch; }

/* ---------- Appel à idées ---------- */
.appel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--jaune); border: var(--trait) solid var(--encre); border-radius: var(--r); box-shadow: var(--ombre-g);
}
.appel h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-stretch: 82%; }
.appel p { margin-top: 10px; max-width: 52ch; }
.appel .bouton { --b-fond: var(--carte); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--papier); margin-top: clamp(48px, 8vw, 96px); }
.pied .conteneur { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding-block: 32px; }
.pied a { color: var(--papier); }
.pied :focus-visible { outline-color: var(--jaune); }
.pied .marque { color: var(--papier); }
.pied .marque svg { width: 26px; height: 26px; }
.pied p { color: #d9cfbd; font-size: .95rem; margin-top: 8px; }
.pied ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }

/* ---------- Pages simples ---------- */
.page { padding-block: clamp(36px, 6vw, 72px); }
.page-tete { max-width: 44rem; }
.page-tete h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem); font-stretch: 80%; margin-top: 12px; }
.page-tete .chapo { margin-top: 16px; font-size: 1.15rem; color: var(--encre-2); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; font-stretch: 85%; margin: 36px 0 10px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-top: 6px; }

.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: .92rem; color: var(--j-discret, var(--encre-2)); }
.fil li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--encre-3); }
.fil a { color: inherit; }

/* ---------- Fiche d'un jeu ---------- */
.fiche-bandeau {
  background: var(--j-fond, var(--papier)); color: var(--j-encre, var(--encre));
  border-bottom: var(--trait) solid var(--encre);
}
.fiche-bandeau .conteneur { padding-block: clamp(24px, 4vw, 44px) clamp(32px, 5vw, 56px); }
.fiche-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 20px; }
.fiche-titre {
  font-family: var(--j-police); font-weight: var(--j-graisse);
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: .98; letter-spacing: -0.015em; margin-top: 10px;
}
.fiche-titre em { font-style: italic; }
.fiche-accroche { margin-top: 16px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 34ch; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.fiche-affiche {
  margin: 0; position: relative; overflow: hidden; aspect-ratio: 2 / 1;
  border: var(--j-bord) solid var(--j-encre); border-radius: var(--j-rayon); box-shadow: var(--j-ombre);
  background: var(--j-carte);
}
.fiche-affiche img { width: 100%; height: 100%; object-fit: cover; }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border-top: var(--trait) solid var(--encre); border-left: var(--trait) solid var(--encre); }
.infos div { padding: 14px 16px; border-right: var(--trait) solid var(--encre); border-bottom: var(--trait) solid var(--encre); background: var(--carte); }
.infos dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); }
.infos dd { margin: 4px 0 0; font-weight: 700; line-height: 1.3; }
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.fiche-corps h2, .galerie h2, .autres h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-stretch: 84%; margin-bottom: 14px; }
.fiche-corps .description { font-size: 1.12rem; }
.liste-points { list-style: none; margin-top: 20px; display: grid; gap: 12px; counter-reset: point; }
.liste-points li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; counter-increment: point; }
.liste-points li::before {
  content: counter(point); display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--jaune); border: var(--trait) solid var(--encre); border-radius: 7px;
  font-weight: 800; font-size: .9rem; line-height: 1; box-shadow: 0 2px 0 var(--encre);
}
.bon-a-savoir { background: var(--carte); border: var(--trait) solid var(--encre); border-radius: var(--r); padding: 22px 24px; align-self: start; }
.bon-a-savoir h2 { font-size: 1.35rem; }
.bon-a-savoir ul { list-style: none; display: grid; gap: 10px; }
.bon-a-savoir li { padding-left: 18px; position: relative; color: var(--encre-2); }
.bon-a-savoir li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--bleu); border-radius: 2px; }
.retour-jeu { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--encre-3); display: grid; gap: 8px; }
.retour-jeu p { font-weight: 700; color: var(--encre); }
.retour-jeu a { font-weight: 700; }

.galerie { margin-top: clamp(40px, 6vw, 64px); }
.galerie ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.galerie.petites ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; border: var(--trait) solid var(--encre); border-radius: var(--r-s); background: var(--carte); }
.galerie .portrait img { width: min(100%, 292px); margin-inline: auto; }
.galerie figcaption { margin-top: 8px; font-size: .92rem; color: var(--encre-2); }
.autres { margin-top: clamp(48px, 7vw, 80px); }

.etat-page { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 72px; }
.etat-page h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-stretch: 82%; }
.etat-page p { color: var(--encre-2); max-width: 40ch; }

/* Grille de cubes décorative (404, page vide) */
.mini-grille { display: grid; grid-template-columns: repeat(3, var(--t)); gap: 6px; --t: 46px; }
.mini-grille .tuile { --t: 46px; font-size: 1.6rem; }
.mini-grille .tuile.vide { background: transparent; border-style: dashed; border-color: var(--encre-3); box-shadow: none; }

/* ---------- Salle de jeu ---------- */
.page-salle { height: 100vh; height: 100dvh; overflow: hidden; background: var(--j-fond, var(--papier)); }
.salle { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
.salle-barre {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 4px max(10px, env(safe-area-inset-right)) 4px max(10px, env(safe-area-inset-left));
  background: var(--papier); border-bottom: var(--trait) solid var(--encre);
}
.salle-barre .marque svg { width: 28px; height: 28px; }
.salle-titre { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.salle-titre .sep { color: var(--encre-3); font-weight: 400; }
.salle-titre .nom { overflow: hidden; text-overflow: ellipsis; }
.salle-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.outil {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; min-width: 38px; padding: 6px 10px;
  border: var(--trait) solid var(--encre); border-radius: 8px; background: var(--carte); color: var(--encre);
  font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; justify-content: center;
}
.outil:hover { background: var(--jaune-clair); }
.outil svg { width: 18px; height: 18px; flex: none; }
.outil-quitter { background: var(--encre); color: var(--carte); }
.outil-quitter:hover { background: var(--encre-2); }
.salle-scene { position: relative; min-height: 0; background: var(--j-fond, var(--papier)); }
.salle-scene iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--j-fond, var(--papier)); }
.salle-scene:fullscreen { background: var(--j-fond, var(--papier)); }
.ecran {
  position: absolute; inset: 0; z-index: 2; overflow: auto;
  display: grid; place-items: center; padding: 24px;
  background: var(--j-fond, var(--papier)); color: var(--j-encre, var(--encre));
}
.ecran[hidden] { display: none; }
.ecran-boite { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 34rem; }
.ecran-titre { font-family: var(--j-police); font-weight: var(--j-graisse); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); line-height: 1; }
.ecran-titre em { font-style: italic; }
.ecran-texte { color: var(--j-discret, var(--encre-2)); font-size: 1.05rem; }
.ecran-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.ecran-lent { font-size: .95rem; color: var(--j-discret, var(--encre-2)); }
.chargeur { display: flex; gap: 8px; }
.chargeur span {
  width: 18px; height: 18px; border: var(--trait) solid var(--encre); border-radius: 4px; box-shadow: 0 2px 0 var(--encre);
  animation: rebond 1s cubic-bezier(.4, 0, .4, 1) infinite;
}
.chargeur span:nth-child(1) { background: var(--bleu); }
.chargeur span:nth-child(2) { background: var(--vert); animation-delay: .15s; }
.chargeur span:nth-child(3) { background: var(--jaune); animation-delay: .3s; }
@keyframes rebond { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

/* ---------- Boîte à idées ---------- */
.idees { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.idees-cote { position: sticky; top: calc(var(--entete-h) + 24px); }
.note-confidentialite {
  margin-top: 26px; padding: 18px 20px; display: grid; gap: 8px;
  background: var(--carte); border: var(--trait) solid var(--encre); border-radius: var(--r);
  font-size: .96rem; color: var(--encre-2);
}
.note-confidentialite strong { color: var(--encre); }
.formulaire {
  background: var(--carte); border: var(--trait) solid var(--encre); border-radius: var(--r);
  box-shadow: var(--ombre-g); padding: clamp(20px, 3.4vw, 34px);
}
.formulaire form { display: grid; gap: 24px; }
.types { border: 0; padding: 0; margin: 0; min-width: 0; }
.types legend, .champ > label, .champ .etiquette { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 10px; display: block; }
.choix-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choix { position: relative; display: block; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix span {
  display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; align-items: center; height: 100%;
  padding: 12px 14px; border: var(--trait) solid var(--encre); border-radius: 10px;
  background: var(--papier); cursor: pointer; transition: background-color .12s, box-shadow .12s, transform .12s;
}
.choix svg { width: 24px; height: 24px; grid-row: span 2; }
.choix b { font-weight: 800; line-height: 1.2; }
.choix small { grid-column: 2; color: var(--encre-2); font-size: .86rem; line-height: 1.3; }
.choix input:hover + span { background: var(--jaune-clair); }
.choix input:checked + span { background: var(--jaune); box-shadow: var(--ombre); transform: translate(-1px, -1px); }
.choix input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 3px; }
.champ { display: grid; }
.champ input[type="email"], .champ select, .champ textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  background: #fff; border: var(--trait) solid var(--encre); border-radius: var(--r-s);
  color: var(--encre); line-height: 1.4;
}
.champ select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231d1a16' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.champ textarea { min-height: 170px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.champ [aria-invalid="true"] { border-color: var(--rouge); background-color: var(--rouge-clair); }
.types[aria-invalid="true"] .choix span { border-color: var(--rouge); }
.aide { margin-top: 6px; font-size: .9rem; color: var(--encre-2); }
.facultatif { font-weight: 500; font-size: .92rem; color: var(--encre-2); }
.case-detail { display: block; margin-top: 4px; }
.ligne-aide { display: flex; justify-content: space-between; gap: 12px; }
.compte { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compte.limite { color: var(--rouge); font-weight: 700; }
.erreur { display: flex; gap: 8px; align-items: start; margin-top: 8px; color: var(--rouge); font-weight: 700; font-size: .93rem; }
.erreur[hidden] { display: none; }
.erreur::before { content: '!'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: .8rem; margin-top: 1px; }
.case { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.champ > label.case { display: grid; font-weight: 600; font-size: 1rem; margin-bottom: 0; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bleu); }
.case-detail { grid-column: 2; font-size: .85rem; color: var(--encre-2); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; word-break: break-all; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.envoi .bouton { min-width: 210px; }
.mention { font-size: .88rem; color: var(--encre-2); }
.alerte {
  padding: 14px 16px; border: var(--trait) solid var(--rouge); border-radius: var(--r-s);
  background: var(--rouge-clair); color: var(--encre); font-weight: 600;
}
.alerte[hidden] { display: none; }
.merci { display: grid; gap: 14px; justify-items: start; }
.merci[hidden] { display: none; }
.merci h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); font-stretch: 82%; }
.merci h2:focus { outline: none; }
.merci .recap { list-style: none; display: grid; gap: 4px; padding: 14px 16px; background: var(--papier); border-radius: var(--r-s); width: 100%; }
.merci .recap b { font-weight: 800; }
.merci-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Adaptation ---------- */
@media (max-width: 900px) {
  .une .conteneur { grid-template-columns: 1fr; }
  .une h1 { max-width: 17ch; }
  .remue { justify-self: center; }
  .fiche-tete, .fiche-corps, .idees { grid-template-columns: 1fr; }
  .idees-cote { position: static; }
}
@media (max-width: 760px) {
  .grille-jeux { grid-template-columns: 1fr; }
  .tirelire { grid-template-columns: 1fr; }
  .cube-tirelire { width: min(100%, 170px); }
  .case-libre { grid-template-columns: auto minmax(0, 1fr); }
  .case-libre .bouton { grid-column: 1 / -1; justify-self: start; }
  .appel { grid-template-columns: 1fr; }
  .appel .bouton { justify-self: start; }
  .pied .conteneur { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .outil .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .outil { padding: 6px 8px; }
  .outil-quitter .txt { position: static; width: auto; height: auto; clip-path: none; }
}
@media (max-width: 480px) {
  :root { --entete-h: 58px; }
  .marque-nom { font-size: 1.22rem; }
  .marque svg { width: 26px; height: 26px; }
  .nav a { font-size: .95rem; }
  .choix-grille { grid-template-columns: 1fr; }
  .case-libre { grid-template-columns: 1fr; }
  .case-libre .tuile { --t: 52px; }
  .salle-titre .sep, .salle-titre .marque-courte { display: none; }
  .outil-quitter .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .salle-barre { gap: 8px; }
  .salle-actions { gap: 5px; }
}
@media (max-width: 360px) {
  .nav ul { gap: 10px; }
  .marque-nom { font-size: 1.1rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .chargeur span { animation: none; }
}

/* ---------- Impression ---------- */
@media print {
  .entete, .pied, .remue, .carte-actions, .appel { display: none; }
  body { background: #fff; }
}
