/* ==========================================================================
   Jonathan Favre-Godal — feuille de style unique
   Direction : « la table de jeu ». Papier ivoire, encre, un accent brique.
   Les couvertures reposent sur des tuiles blanches (les visuels d'éditeurs
   ont souvent un fond blanc), numérotées comme un catalogue.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #f5f0e6;
  --papier-2: #ebe3d3;
  --tuile: #ffffff;
  --encre: #1e1b18;
  --encre-douce: #5b5248;
  --filet: #d9cfbd;
  --accent: #a3391f;
  --accent-fonce: #822c17;
  --or: #b7862c;
  --ombre: 0 1px 2px rgba(30, 27, 24, 0.06), 0 10px 24px -12px rgba(30, 27, 24, 0.28);
  --ombre-forte: 0 2px 4px rgba(30, 27, 24, 0.08), 0 22px 40px -18px rgba(30, 27, 24, 0.45);

  --titre: "Fraunces", "Iowan Old Style", Georgia, serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --largeur: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

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

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

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

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--encre); color: var(--papier);
  padding: 0.6rem 1rem; z-index: 100; text-decoration: none;
}
.lien-evitement:focus { top: 1rem; color: var(--papier); }

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

/* ---------- Petits éléments ---------- */

.surtitre {
  font-family: var(--texte);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.filet {
  border: 0;
  border-top: 1px solid var(--filet);
  margin: 0;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  background: var(--encre);
  color: var(--papier);
  font: 600 0.95rem/1 var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.bouton:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.bouton--clair { background: transparent; color: var(--encre); }
.bouton--clair:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.bouton svg { width: 1em; height: 1em; }

.lien-fleche {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.lien-fleche::after { content: " →"; }

.provisoire {
  border: 1.5px dashed var(--or);
  background: #fbf3df;
  color: #6a4c12;
  border-radius: var(--rayon);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}
.provisoire strong { color: #4f380b; }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--filet);
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.signature {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.signature span { color: var(--accent); }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre-douce);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--encre); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav__contact a {
  color: var(--papier);
  background: var(--encre);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: none;
}
.nav .nav__contact a:hover { background: var(--accent); color: #fff; }

@media (max-width: 40rem) {
  .entete__barre { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 0.6rem 0.2rem; min-height: 0; }
  .signature { font-size: 1.1rem; }
  .nav { width: 100%; }
  .nav ul { justify-content: space-between; gap: 0.25rem; }
  .nav a { font-size: 0.92rem; padding: 0.55rem 0.1rem; }
  .nav .nav__contact a { padding: 0.45rem 0.9rem; }
}

/* ---------- Accueil : ouverture ---------- */

.ouverture {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.ouverture__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ouverture h1 {
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.ouverture h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.ouverture__intro {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--encre-douce);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--filet);
}
.chiffres div { display: flex; flex-direction: column-reverse; }
.chiffres dt { font-size: 0.85rem; color: var(--encre-douce); }
.chiffres dd {
  margin: 0;
  font-family: var(--titre);
  font-size: 2.3rem;
  line-height: 1.05;
  font-weight: 400;
}

/* Table de jeu animée : les jeux à l'affiche, chacun sur son socle à ses couleurs */
.pile {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1 / 0.92;
  justify-self: center;
  display: grid;
  place-items: end center;
}
.pile__halo {
  position: absolute; inset: 2% 4% 12%; z-index: -2; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(184, 134, 46, 0.16) 0 8deg, transparent 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
}
.pile__tapis {
  position: absolute; left: 2%; right: 2%; bottom: 2%; height: 34%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #3f7d5a, #2c5e43 70%);
  box-shadow: inset 0 0 0 0.45rem #6b4a2b, inset 0 0 0 0.7rem #8a6239, 0 18px 30px -18px rgba(30, 27, 24, 0.6);
}
.pile__rang {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 0.4rem;
  width: 94%; margin-bottom: 15%;
}
.pile__boite {
  position: relative;
  display: grid; justify-items: center;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.pile__boite:nth-child(1) { order: 2; }
.pile__boite:nth-child(2) { order: 1; }
.pile__boite:nth-child(3) { order: 3; }
.pile__boite picture { display: contents; }
.pile__boite img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(30, 27, 24, 0.35)); }
.pile__socle {
  position: absolute; left: 6%; right: 6%; bottom: -0.6rem; height: 1.4rem; border-radius: 50%; z-index: 0;
  background: var(--u-accent, var(--accent));
  box-shadow: 0 0.35rem 0 rgba(0, 0, 0, 0.25);
}
.pile__boite:hover, .pile__boite:focus-visible { transform: translateY(-10px); }

.pile__jouet { position: absolute; z-index: 0; height: auto; pointer-events: none; }
.pile__jouet--de { width: 2.4rem; left: 24%; bottom: 0; fill: var(--accent); }
.pile__jouet--de circle, .pile__jouet--de2 circle { fill: #fff; }
.pile__jouet--de2 { width: 2rem; right: 25%; bottom: 1%; fill: #2b5d8a; }
.pile__jouet--pion { width: 1.9rem; left: 3%; bottom: 2%; fill: #d9a520; }
.pile__jouet--pion2 { width: 1.7rem; right: 4%; bottom: 2%; fill: #b8412f; }
.pile__jouet--cartes { width: 4.2rem; right: 6%; top: 8%; }
.pile__carte { fill: #fff; stroke: var(--encre); stroke-width: 2; }
.pile__carte--2 { fill: #f4d58a; }
.pile__carte--3 { fill: #c9e2f0; }
.pile__jouet--etoile { width: 2rem; left: 8%; top: 6%; fill: var(--or); }
.pile__confetti { position: absolute; z-index: -1; width: 0.6rem; height: 0.6rem; border-radius: 2px; pointer-events: none; }
.pile__confetti--1 { left: 22%; top: 4%; background: #e0574a; rotate: 20deg; }
.pile__confetti--2 { right: 26%; top: 2%; background: #3f9a97; border-radius: 50%; }
.pile__confetti--3 { left: 3%; top: 22%; background: #f2b632; rotate: -30deg; }
.pile__confetti--4 { right: 1%; top: 26%; background: #9c7ac2; border-radius: 50%; }

@media (max-width: 52rem) {
  .ouverture__grille { grid-template-columns: 1fr; }
  .pile { max-width: 26rem; order: -1; margin-bottom: 0.5rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--sombre { background: var(--encre); color: var(--papier); }
.section--sombre .surtitre { color: #e59a83; }
.section--teinte { background: var(--papier-2); }

.section__tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__tete h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.section__tete p { max-width: 46ch; color: var(--encre-douce); margin: 0.75rem 0 0; }

/* ---------- Jeux à l'affiche ---------- */

.affiche { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.affiche__jeu {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}
.affiche__jeu:nth-child(even) .affiche__visuel { order: 2; }
.affiche__visuel {
  padding: clamp(1.5rem, 4vw, 3rem);
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
}
.affiche__visuel { position: relative; }
.affiche__visuel img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(30, 27, 24, 0.28)); }
.affiche__visuel picture { display: contents; }
.affiche__texte h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4rem; }
.affiche__editeur { color: var(--encre-douce); margin-bottom: 1.25rem; }
.affiche__accroche {
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

@media (max-width: 48rem) {
  .affiche__jeu { grid-template-columns: 1fr; }
  .affiche__jeu:nth-child(even) .affiche__visuel { order: 0; }
}

/* Badges et pictogrammes */
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f3e6c7;
  color: #5a3f09;
}
.badge--laureat { background: var(--encre); color: #f2d48a; }
.badge svg { width: 0.95em; height: 0.95em; flex: none; }

.pictos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.95rem;
}
.pictos li { display: inline-flex; align-items: center; gap: 0.45rem; }
.pictos svg { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; }

/* ---------- Ludographie (grille catalogue) ---------- */

.ludographie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 30rem) {
  .ludographie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.carte { position: relative; display: flex; flex-direction: column; }
.carte__visuel {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 12%;
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s;
}
.carte__visuel picture { display: contents; }
.carte__visuel img { position: absolute; inset: 8% 6% 4%; width: 88%; height: 88%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 12px rgba(30, 27, 24, 0.22)); transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
.carte__numero {
  position: absolute;
  top: 0.55rem;
  left: 0.7rem;
  font: 500 0.72rem/1 var(--texte);
  letter-spacing: 0.06em;
  color: var(--encre-douce);
  font-variant-numeric: tabular-nums;
}
.carte__prime {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--encre);
  color: #f2d48a;
  display: grid;
  place-items: center;
}
.carte__prime svg { width: 0.95rem; height: 0.95rem; }
.carte__titre {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0.9rem 0 0.2rem;
}
.carte__titre a { text-decoration: none; }
.carte__titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte__meta { font-size: 0.88rem; color: var(--encre-douce); margin: 0; }
.carte:hover .carte__visuel img { transform: translateY(-5px); }
.carte:has(a:focus-visible) .carte__visuel { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--rayon); }
.carte a:focus-visible { outline: none; }

.couv-vide {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--titre);
  font-size: 1.1rem;
  color: var(--encre-douce);
  border: 1.5px dashed var(--filet);
}

/* ---------- Bandeau contact ---------- */

.appel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: end;
}
.appel h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; }
.appel h2 em { font-style: italic; color: #e59a83; }
.appel p { color: #cfc6b8; max-width: 48ch; margin: 1rem 0 0; }
.appel .bouton { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.appel .bouton:hover { background: #e59a83; border-color: #e59a83; color: var(--encre); }
@media (max-width: 44rem) { .appel { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Page intérieure : tête ---------- */

.tete-page { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.tete-page--aeree { padding-bottom: 6rem; }
.section--colle { padding-top: 0; }
.tete-page h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; letter-spacing: -0.03em; }
.tete-page p { font-size: 1.2rem; color: var(--encre-douce); max-width: 50ch; margin: 1.25rem 0 0; }

.fil-ariane { font-size: 0.88rem; color: var(--encre-douce); margin-bottom: 1.5rem; }
.fil-ariane ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.fil-ariane li + li::before { content: "/"; margin-right: 0.4rem; color: var(--filet); }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }

/* Index par année */
.annees { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.annees a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--filet);
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.annees a:hover { border-color: var(--encre); color: var(--encre); }

.bloc-annee { scroll-margin-top: 6rem; }
.bloc-annee + .bloc-annee { margin-top: clamp(3rem, 6vw, 4.5rem); }
.bloc-annee__titre {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1.75rem;
}
.bloc-annee__titre::after { content: ""; flex: 1; border-top: 1px solid var(--filet); transform: translateY(-0.3em); }
.bloc-annee__titre small { font-family: var(--texte); font-size: 0.85rem; color: var(--encre-douce); letter-spacing: 0; order: 2; }

/* ---------- Fiche jeu (structure commune ; les mises en scène sont plus bas) ---------- */

.fil-ariane--fiche { padding-top: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.fiche {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "visuel tete" "visuel corps";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.fiche__visuel { grid-area: visuel; position: sticky; top: 6rem; }
.fiche__tete { grid-area: tete; }
.fiche__corps { grid-area: corps; }
.fiche__cadre {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.fiche__cadre picture { display: contents; }
/* L'image est seulement réduite proportionnellement (object-fit: contain) : jamais recadrée, filtrée ni déformée. */
.fiche__cadre img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(20, 16, 12, 0.3)); }
.fiche h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.fiche__alt { color: var(--encre-douce); font-style: italic; margin-bottom: 1.25rem; }
.fiche__accroche { font-family: var(--titre); font-style: italic; font-size: 1.4rem; line-height: 1.35; margin: 1.25rem 0 1.5rem; }
.fiche__description { font-size: 1.08rem; max-width: 60ch; }

.caracteristiques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--filet);
}
.caracteristiques div { padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--filet); }
.caracteristiques dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-douce); font-weight: 600; }
.caracteristiques dd { margin: 0.2rem 0 0; font-size: 1rem; }

.distinctions { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 0.6rem; }
.distinctions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: var(--tuile);
  border-radius: var(--rayon);
  border-left: 3px solid var(--or);
}
.distinctions svg { width: 1.2rem; height: 1.2rem; color: var(--or); margin-top: 0.2rem; }
.distinctions strong { display: block; font-weight: 600; }
.distinctions li.avec-logo { align-items: center; }
.logo-prix { width: 4rem; height: 4rem; object-fit: contain; }
.badge--logo img { width: 1.6rem; height: 1.6rem; object-fit: contain; margin: -0.2rem 0; }
.distinctions span { font-size: 0.9rem; color: var(--encre-douce); }

.liens-jeu { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.liens-secondaires { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.25rem 0 0; font-size: 0.95rem; }
.liens-secondaires a::after { content: " ↗"; }

.photo-jeu { margin: 0 auto clamp(3rem, 6vw, 4.5rem); max-width: 60rem; }
.photo-jeu img { width: 100%; height: auto; }
.photo-jeu figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-douce); }

.voisins {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.95rem;
}
.voisins a { text-decoration: none; display: flex; flex-direction: column; }
.voisins small { color: var(--encre-douce); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.voisins strong { font-family: var(--titre); font-size: 1.25rem; font-weight: 500; }
.voisins .suivant { text-align: right; margin-left: auto; }
.voisins a.voisin { flex-direction: row; align-items: center; gap: 0.9rem; }
.voisins a.voisin > span:last-child { display: flex; flex-direction: column; }
.voisins a.voisin.suivant { flex-direction: row-reverse; }
.voisin__boite {
  position: relative;
  flex: none;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 12px;
  background: var(--u-surface, var(--papier-2));
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}
.voisin__boite picture { display: contents; }
.voisin__boite img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.voisin:hover .voisin__boite { transform: translateY(-3px); }

@media (max-width: 48rem) {
  .fiche, .univers .fiche { grid-template-columns: 1fr; grid-template-areas: "visuel" "tete" "corps"; }
  .fiche__visuel { position: relative; top: 0; max-width: 26rem; width: 100%; justify-self: center; }
}

/* ---------- À propos ---------- */

.apropos {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--papier-2);
  border-radius: var(--rayon);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--encre-douce);
  border: 1.5px dashed var(--filet);
  font-size: 0.95rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); }
figure.portrait { margin: 0; padding: 0; border: 0; background: none; display: block; box-shadow: var(--ombre); }

/* Accueil : présentation avec portrait */
.presentation {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.presentation .portrait { max-width: 24rem; transform: rotate(-2deg); }
.presentation p.grand { font-family: var(--titre); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.3; margin-bottom: 1.5rem; }
@media (max-width: 48rem) { .presentation { grid-template-columns: 1fr; } .presentation .portrait { max-width: 17rem; } }
.prose { font-size: 1.12rem; max-width: 62ch; }
.prose h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose .grand { font-family: var(--titre); font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.35; font-weight: 400; }

/* ---- Collaborations (À propos) : éditeurs et coauteurs, sans compteur ni classement ---- */
.collab { margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); padding: clamp(1.6rem, 4vw, 2.8rem); background: var(--papier-2); border-radius: 18px; }
.collab h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 0.6rem; }
.collab__intro { max-width: 58ch; margin: 0 0 1.6rem; font-family: var(--titre); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; color: var(--encre-douce); }
.collab__onglets { display: inline-flex; gap: 0.3rem; padding: 0.3rem; margin-bottom: 1.6rem; background: var(--tuile); border-radius: 999px; box-shadow: var(--ombre); }
.collab__onglets[hidden] { display: none; }
.collab__onglets button {
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.6rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--encre);
  transition: background-color 0.2s, color 0.2s;
}
.collab__onglets button:hover { background: var(--papier); }
.collab__onglets button[aria-selected="true"] { background: var(--encre); color: var(--papier); }
.collab__onglets button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.collab__panneau + .collab__panneau { margin-top: 2.2rem; }
.collab-onglets .collab__panneau + .collab__panneau { margin-top: 0; }
.collab__panneau:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.collab__sous-titre { font-family: var(--texte); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-douce); margin: 0 0 1rem; }
/* Avec les onglets, le bouton porte déjà le nom du panneau. */
.collab-onglets .collab__sous-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.collab__editeurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: clamp(0.7rem, 2vw, 1.1rem); }
.editeur {
  position: relative;
  display: grid; place-items: center;
  height: 100%; min-height: 7.5rem;
  padding: 1.2rem 1rem;
  background: var(--tuile);
  border-radius: 14px;
  box-shadow: var(--ombre);
  color: var(--encre); text-decoration: none; text-align: center;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s;
}
a.editeur:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
a.editeur:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.editeur__logo { max-width: 100%; max-height: 4.5rem; width: auto; height: auto; object-fit: contain; }
.editeur__nom {
  font-family: var(--titre); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.15; font-weight: 500;
  max-width: 100%; padding: 0.5rem 0.35rem; overflow-wrap: anywhere; hyphens: auto;
  border-top: 1.5px solid var(--filet); border-bottom: 1.5px solid var(--filet);
}
.editeur__fleche { position: absolute; top: 0.55rem; right: 0.75rem; font-size: 0.9rem; color: var(--encre-douce); opacity: 0; transition: opacity 0.2s; }
a.editeur:hover .editeur__fleche, a.editeur:focus-visible .editeur__fleche { opacity: 1; }

.collab__coauteurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: clamp(0.7rem, 2vw, 1.1rem); }
.coauteur {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--tuile); border-radius: 14px; box-shadow: var(--ombre);
}
.coauteur__pastille {
  flex: none; display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%;
  font-family: var(--titre); font-weight: 600; font-size: 1.05rem; color: #fff;
}
.coauteur--a .coauteur__pastille { background: var(--accent); }
.coauteur--b .coauteur__pastille { background: #2d6a68; }
.coauteur--c .coauteur__pastille { background: #8a6420; }
.coauteur--d .coauteur__pastille { background: #5b4a8a; }
.coauteur__nom { font-family: var(--titre); font-size: 1.2rem; line-height: 1.2; }
.coauteur__lien { margin-left: auto; font-size: 0.9rem; font-weight: 600; color: var(--accent-fonce); white-space: nowrap; }
@media (max-width: 30rem) {
  .collab__editeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editeur { min-height: 6rem; padding: 1rem 0.5rem; }
  .collab__onglets { display: flex; }
  .collab__onglets button { flex: 1; padding-inline: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .editeur, .collab__onglets button { transition: none; } }

@media (max-width: 48rem) {
  .apropos { grid-template-columns: 1fr; }
  .portrait { max-width: 20rem; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.publics { list-style: none; margin: 0 0 2rem; padding: 0; }
.publics li { padding: 0.9rem 0; border-bottom: 1px solid var(--filet); }
.publics li:first-child { border-top: 1px solid var(--filet); }
.publics strong { display: block; font-family: var(--titre); font-weight: 500; font-size: 1.2rem; }
.publics span { color: var(--encre-douce); font-size: 0.95rem; }

.carte-mail {
  background: var(--encre);
  color: var(--papier);
  border-radius: var(--rayon);
  padding: 1.5rem;
}
.carte-mail p { margin: 0 0 0.75rem; color: #cfc6b8; font-size: 0.95rem; }
.carte-mail a { font-family: var(--titre); font-size: clamp(1.2rem, 3vw, 1.5rem); color: #fff; word-break: break-word; }

.formulaire {
  background: var(--tuile);
  border-radius: var(--rayon);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--ombre);
}
.formulaire h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.champ { margin-bottom: 1.15rem; }
.champ label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.champ .aide { display: block; font-weight: 400; color: var(--encre-douce); font-size: 0.85rem; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--encre);
  background: var(--papier);
  border: 1.5px solid #b9ad98;
  border-radius: var(--rayon);
  padding: 0.75rem 0.85rem;
  min-height: 3rem;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--encre); }
.mention-form { font-size: 0.85rem; color: var(--encre-douce); margin: 1rem 0 0; }
.pot-de-miel { position: absolute; left: -9999px; }

@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } }

/* ---------- Texte légal ---------- */

.legal { max-width: 68ch; padding-bottom: 5rem; }
.legal h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.legal dl { margin: 0; }
.legal dt { font-weight: 600; margin-top: 0.75rem; }
.legal dd { margin: 0; }
.a-completer { background: #fbf3df; color: #6a4c12; padding: 0 0.3em; border-radius: 2px; border: 1px dashed var(--or); }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--papier-2);
  padding-block: 3rem 2rem;
  font-size: 0.92rem;
  color: var(--encre-douce);
}
.pied__haut {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--filet);
}
.pied .signature { font-size: 1.5rem; color: var(--encre); }
.pied__metier { margin: 0.35rem 0 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }

/* ---------- Apparition douce ---------- */

@media (prefers-reduced-motion: no-preference) {
  .apparait { animation: apparait 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .apparait--2 { animation-delay: 0.08s; }
  .apparait--3 { animation-delay: 0.16s; }
  @keyframes apparait { from { opacity: 0; transform: translateY(14px); } }
}

/* Accueil : jeux distingués */
.primes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.prime { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; align-items: start; padding: 1.25rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
.prime__visuel { position: relative; aspect-ratio: 3 / 4; }
.prime__visuel picture { display: contents; }
.prime__visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; filter: drop-shadow(0 8px 10px rgba(30, 27, 24, 0.22)); }
.prime__titre { font-size: 1.35rem; margin: 0 0 0.2rem; }
.prime__titre a { text-decoration: none; }
.prime__titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.prime:hover { border-color: var(--encre-douce); }
.prime:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.prime a:focus-visible { outline: none; }
.prime__editeur { color: var(--encre-douce); font-size: 0.9rem; margin: 0 0 0.75rem; }
.prime__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; line-height: 1.4; }
.prime__liste strong { color: var(--accent); font-weight: 600; }

/* Fiche : lien vers toute la ludographie entre « plus récent » et « plus ancien » */
@media (min-width: 36.01rem) {
  .voisins { display: grid; grid-template-columns: 1fr auto 1fr; }
  .voisins > a:first-child:not(.voisins__tous) { grid-column: 1; }
  .voisins__tous { grid-column: 2; align-items: center; text-align: center; }
  .voisins .suivant { grid-column: 3; justify-self: end; }
}
@media (max-width: 36rem) {
  .voisins { flex-wrap: wrap; }
  .voisins__tous { order: 3; width: 100%; align-items: center; padding-top: 1rem; border-top: 1px solid var(--filet); }
}

/* Cibles tactiles plus confortables (années du catalogue) */
.annees a { min-height: 2.5rem; display: inline-flex; align-items: center; padding-inline: 0.95rem; }
.affiche__visuel img { transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
.affiche__visuel:hover img { transform: translateY(-6px); }

/* ==========================================================================
   UNIVERS DES JEUX
   Chaque jeu a son thème dans src/_data/univers.json (couleurs, décor, typographie,
   mise en scène, animation). Les variables --u-* sont générées dans /assets/css/univers.css.
   Règle absolue : les illustrations ne sont jamais modifiées. Les décors sont des motifs
   originaux (src/assets/img/motifs/) placés derrière les images, jamais par-dessus.
   ========================================================================== */

/* Polices d'ambiance : téléchargées seulement par les pages qui les utilisent. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Alfa Slab One"; src: url("/assets/fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Le thème du jeu remplace les couleurs du site dans sa zone : tous les composants suivent. */
.univers, .affiche__jeu--univers {
  --papier: var(--u-fond);
  --papier-2: var(--u-surface);
  --tuile: var(--u-surface);
  --encre: var(--u-encre);
  --encre-douce: var(--u-doux);
  --accent: var(--u-accent);
  --accent-fonce: var(--u-accent);
  --or: var(--u-accent);
  --filet: color-mix(in srgb, var(--u-encre) 20%, transparent);
  background: var(--u-fond);
  color: var(--u-encre);
}
.univers .bouton:hover, .affiche__jeu--univers .bouton:hover { background: var(--u-accent); border-color: var(--u-accent); color: var(--u-fond); }
.univers .bouton--clair:hover { background: var(--u-encre); border-color: var(--u-encre); color: var(--u-fond); }

.univers { position: relative; isolation: isolate; overflow: clip; }
.univers__contenu { position: relative; }

/* Décor : motif original, teinté à la couleur du jeu, qui s'efface vers le bas. */
.univers__decor {
  position: absolute;
  z-index: -1;
  top: -200px;
  left: -200px;
  right: -200px;
  height: calc(min(90vh, 48rem) + 200px);
  background: color-mix(in srgb, var(--u-motif) 70%, var(--u-fond));
  -webkit-mask-image: var(--u-decor), linear-gradient(#000 10%, transparent 85%);
  -webkit-mask-size: 200px 200px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--u-decor), linear-gradient(#000 10%, transparent 85%);
  mask-size: 200px 200px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
  pointer-events: none;
}

/* Titres dans la typographie du jeu (le texte courant reste en Inter pour la lisibilité). */
.univers .fiche h1,
.affiche__jeu--univers h3 {
  font-family: var(--u-titre);
  font-weight: var(--u-titre-poids);
  letter-spacing: var(--u-titre-espace);
}
.univers .fiche h1 { font-size: calc(clamp(2.6rem, 6vw, 4.4rem) * var(--u-titre-echelle)); line-height: 1.02; }
.affiche__jeu--univers h3 { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--u-titre-echelle)); }

/* ---- Mise en scène « miroir » : la boîte à droite ---- */
.scene-miroir .fiche { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "tete visuel" "corps visuel"; }

/* ---- Mise en scène « scène » : la boîte au centre, sous un projecteur ---- */
.scene-scene .fiche { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "visuel" "corps"; }
.scene-scene .fiche__tete { text-align: center; max-width: 46rem; margin-inline: auto; }
.scene-scene .fiche h1 { font-size: calc(clamp(3rem, 8vw, 5.6rem) * var(--u-titre-echelle)); }
.scene-scene .fiche__visuel { position: relative; top: 0; width: 100%; max-width: 27rem; justify-self: center; margin-block: 0.5rem 2.5rem; }
.scene-scene .fiche__visuel::before {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--u-accent) 22%, var(--u-surface)), transparent);
}
.scene-scene .fiche__visuel::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 1%;
  height: 9%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--u-encre) 22%, transparent), transparent);
}
@media (min-width: 60rem) {
  .scene-scene .fiche__corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; grid-auto-flow: dense; align-items: start; }
  .scene-scene .fiche__corps > * { grid-column: 2; }
  .scene-scene .fiche__corps > .pictos, .scene-scene .fiche__corps > .fiche__description { grid-column: 1; }
  .scene-scene .caracteristiques { margin-top: 0; }
  .scene-scene .fiche__corps:not(:has(.pictos, .fiche__description)) { display: block; max-width: 40rem; margin-inline: auto; }
}

/* ---- Mise en scène « bandeau » : un grand titre sur une bande de couleur, la boîte qui déborde ---- */
.scene-bandeau .fiche { grid-template-areas: "tete tete" "corps visuel"; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.scene-bandeau .fiche__tete {
  background: var(--u-surface);
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.scene-bandeau .fiche h1 { font-size: calc(clamp(3rem, 9vw, 6.5rem) * var(--u-titre-echelle)); }
@media (min-width: 48.01rem) {
  .scene-bandeau .fiche__tete { padding-right: 45%; min-height: 19rem; }
  .scene-bandeau .fiche__visuel { margin-top: -18rem; z-index: 1; }
}

/* ---- Mise en scène « carnet » : une page de carnet, la boîte comme une photo collée ---- */
.scene-carnet .fiche {
  background:
    linear-gradient(90deg, transparent 2.6rem, color-mix(in srgb, var(--u-accent) 45%, transparent) 2.6rem, color-mix(in srgb, var(--u-accent) 45%, transparent) calc(2.6rem + 2px), transparent calc(2.6rem + 2px)),
    repeating-linear-gradient(transparent 0 calc(2.2rem - 1px), color-mix(in srgb, var(--u-encre) 9%, transparent) calc(2.2rem - 1px) 2.2rem),
    var(--u-surface);
  border-radius: 6px 18px 18px 6px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 6vw, 5rem);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--u-encre) 10%, transparent), 0 24px 40px -28px rgba(20, 16, 12, 0.45);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.scene-carnet .fiche__cadre { background: color-mix(in srgb, var(--u-motif) 40%, var(--u-fond)); border-radius: 4px; box-shadow: 0 14px 26px -18px rgba(20, 16, 12, 0.5); }
.scene-carnet .fiche__cadre img { inset: 9%; width: 82%; height: 82%; }
/* Bandes adhésives posées sur le cadre, à l'extérieur de l'image */
.scene-carnet .fiche__cadre::before,
.scene-carnet .fiche__cadre::after {
  content: "";
  position: absolute;
  top: -0.8rem;
  width: 5.5rem;
  height: 1.5rem;
  background: color-mix(in srgb, var(--u-motif) 75%, transparent);
  border-radius: 2px;
}
.scene-carnet .fiche__cadre::before { left: -1rem; transform: rotate(-12deg); }
.scene-carnet .fiche__cadre::after { right: -1rem; transform: rotate(10deg); }
.scene-carnet .caracteristiques div { border-bottom-style: dashed; }

/* ---- Mise en scène « écran » : un cadre de visée, des lignes fines, des étiquettes techniques ---- */
.scene-ecran .fiche__cadre {
  --coin: var(--u-accent);
  background:
    linear-gradient(var(--coin), var(--coin)) top left / 2.2rem 2px no-repeat,
    linear-gradient(var(--coin), var(--coin)) top left / 2px 2.2rem no-repeat,
    linear-gradient(var(--coin), var(--coin)) top right / 2.2rem 2px no-repeat,
    linear-gradient(var(--coin), var(--coin)) top right / 2px 2.2rem no-repeat,
    linear-gradient(var(--coin), var(--coin)) bottom left / 2.2rem 2px no-repeat,
    linear-gradient(var(--coin), var(--coin)) bottom left / 2px 2.2rem no-repeat,
    linear-gradient(var(--coin), var(--coin)) bottom right / 2.2rem 2px no-repeat,
    linear-gradient(var(--coin), var(--coin)) bottom right / 2px 2.2rem no-repeat,
    radial-gradient(closest-side, var(--u-surface), transparent);
}
.scene-ecran .fiche__cadre img { inset: 9%; width: 82%; height: 82%; }
.scene-ecran .surtitre::before { content: "▸ "; }
.scene-ecran .caracteristiques dt,
.scene-ecran .surtitre { font-family: "Space Grotesk", var(--texte); letter-spacing: 0.22em; }
.scene-ecran .caracteristiques { border-top-color: var(--u-accent); }

/* ---- Mise en scène « affiche » : titre en majesté dans un cadre d'affiche à double filet ---- */
.scene-affiche .fiche { grid-template-areas: "tete tete" "visuel corps"; }
.scene-affiche .fiche__tete { text-align: center; max-width: 52rem; margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); }
.scene-affiche .fiche h1 { font-size: calc(clamp(3rem, 8.5vw, 6rem) * var(--u-titre-echelle)); }
.scene-affiche .fiche__tete::after {
  content: "";
  display: block;
  width: 9rem;
  height: 10px;
  margin: 1.25rem auto 0;
  background: radial-gradient(circle, var(--u-accent) 2.5px, transparent 3px) center / 15px 10px repeat-x;
}
/* Cadre d'affiche : double filet aux couleurs du jeu */
.scene-affiche .fiche {
  border: 3px double color-mix(in srgb, var(--u-accent) 70%, transparent);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  background: color-mix(in srgb, var(--u-surface) 55%, transparent);
}
.scene-affiche .fiche::before,
.scene-affiche .fiche::after {
  content: "✦";
  position: absolute;
  top: 0.6rem;
  color: var(--u-accent);
  font-size: 0.9rem;
  line-height: 1;
}
.scene-affiche .fiche::before { left: 0.8rem; }
.scene-affiche .fiche::after { right: 0.8rem; }
.scene-affiche .fiche__visuel { top: 7rem; }

/* Mobile : le titre d'abord pour les mises en scène où il ouvre la page */
@media (max-width: 48rem) {
  .univers .fiche { grid-template-columns: minmax(0, 1fr); }
  .univers .fiche__visuel { position: relative; top: 0; }
  .scene-scene .fiche, .scene-bandeau .fiche, .scene-affiche .fiche { grid-template-areas: "tete" "visuel" "corps"; }
  .scene-miroir .fiche { grid-template-areas: "visuel" "tete" "corps"; }
  .scene-bandeau .fiche__visuel { margin-top: 0; }
  .scene-carnet .fiche { padding-left: clamp(3rem, 12vw, 3.5rem); }
  .scene-carnet .fiche__visuel { max-width: 20rem; margin-bottom: 1.5rem; }
}

/* Photos de la boîte, posées dans la couleur du jeu */
.univers .photo-jeu { background: var(--u-surface); padding: clamp(0.75rem, 2vw, 1.25rem); border-radius: 14px; }

/* ---- Cartes du catalogue : chaque boîte posée sur la couleur et le motif de son jeu ---- */
.carte--univers .carte__visuel { background: var(--u-surface); border-radius: 14px; overflow: hidden; isolation: isolate; }
.carte--univers .carte__visuel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--u-motif) 55%, var(--u-surface));
  -webkit-mask: var(--u-decor) 0 0 / 90px 90px repeat;
  mask: var(--u-decor) 0 0 / 90px 90px repeat;
  transition: -webkit-mask-position 0.6s cubic-bezier(.2,.7,.2,1), mask-position 0.6s cubic-bezier(.2,.7,.2,1);
}
.carte--univers:hover .carte__visuel::before { -webkit-mask-position: 22px -14px; mask-position: 22px -14px; }
.carte--univers .carte__numero { color: var(--u-doux); }

/* ---- Accueil : jeux à l'affiche, chacun dans son univers ---- */
.affiche__jeu--univers {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.affiche__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--u-motif) 70%, var(--u-fond));
  -webkit-mask-image: var(--u-decor), linear-gradient(115deg, #000 15%, transparent 60%);
  -webkit-mask-size: 110px 110px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--u-decor), linear-gradient(115deg, #000 15%, transparent 60%);
  mask-size: 110px 110px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}
.affiche__jeu--univers:nth-child(even) .affiche__decor { -webkit-mask-image: var(--u-decor), linear-gradient(245deg, #000 15%, transparent 60%); mask-image: var(--u-decor), linear-gradient(245deg, #000 15%, transparent 60%); }
.affiche__jeu--univers .affiche__visuel { background: radial-gradient(closest-side, var(--u-surface), transparent); }

/* Jeux distingués : la vignette dans la couleur du jeu */
.prime--univers .prime__visuel { background: var(--u-surface); border-radius: 10px; }
.prime--univers .prime__visuel img { inset: 7%; width: 86%; height: 86%; object-position: center; }
.prime--univers { border-left: 5px solid var(--u-accent); }


/* ==========================================================================
   MOUVEMENTS (tous coupés si le visiteur a demandé à réduire les animations)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Passage fluide d'une page à l'autre ; la boîte « voyage » du catalogue vers sa fiche. */
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.4s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }

  /* Décors vivants, très lents */
  .anim-derive .univers__decor { animation: u-derive 90s linear infinite; }
  .anim-monte .univers__decor { animation: u-monte 40s linear infinite; }
  .anim-flotte .univers__decor { animation: u-flotte 9s ease-in-out infinite alternate; }
  .anim-scintille .univers__decor { animation: u-scintille 5s ease-in-out infinite alternate; }
  @keyframes u-derive { to { transform: translateX(200px); } }
  @keyframes u-monte { to { transform: translateY(-200px); } }
  @keyframes u-flotte { to { transform: translateY(14px); } }
  @keyframes u-scintille { from { opacity: 0.55; } to { opacity: 1; } }

  /* Ondes sonores autour de la boîte (jeux de sons) : derrière l'image, jamais dessus. */
  .anim-pulse .fiche__cadre::before,
  .anim-pulse .fiche__cadre::after {
    content: "";
    position: absolute;
    inset: 12%;
    z-index: -1;
    border-radius: 50%;
    border: 2px solid var(--u-accent);
    opacity: 0;
    animation: u-onde 3.6s ease-out infinite;
  }
  .anim-pulse .fiche__cadre::after { animation-delay: 1.8s; }
  @keyframes u-onde { 0% { transform: scale(0.7); opacity: 0.55; } 100% { transform: scale(1.18); opacity: 0; } }

  /* Arrivée sur une fiche */
  .fiche__cadre { animation: u-pose 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .fiche__tete { animation: apparait 0.7s 0.08s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes u-pose { from { opacity: 0; transform: translateY(18px); } }

  /* Petits objets de l'accueil qui flottent doucement */
  /* Table de jeu : chaque boîte saute à son tour, les pièces bougent autour. */
  .pile__halo { animation: pile-halo 90s linear infinite; }
  @keyframes pile-halo { to { rotate: 360deg; } }
  .pile__boite { animation: pile-saut 6s ease-in-out infinite; }
  .pile__boite:nth-child(2) { animation-delay: 2s; }
  .pile__boite:nth-child(3) { animation-delay: 4s; }
  @keyframes pile-saut { 0%, 22%, 100% { translate: 0 0; } 8% { translate: 0 -1.1rem; } 14% { translate: 0 0; } 17% { translate: 0 -0.3rem; } }
  .pile__boite:hover, .pile__boite:focus-visible { animation-play-state: paused; }
  .pile__jouet--de { animation: pile-de 6s ease-in-out infinite; }
  @keyframes pile-de { 0%, 60%, 100% { translate: 0 0; rotate: 0deg; } 70% { translate: 0.8rem -1.4rem; rotate: 180deg; } 80% { translate: 1.4rem 0; rotate: 360deg; } }
  .pile__jouet--de2 { animation: pile-de2 6s ease-in-out infinite 3s; }
  @keyframes pile-de2 { 0%, 60%, 100% { translate: 0 0; rotate: 0deg; } 70% { translate: -0.8rem -1.2rem; rotate: -180deg; } 80% { translate: -1.3rem 0; rotate: -360deg; } }
  .pile__jouet--pion, .pile__jouet--pion2 { animation: pile-pion 1.8s ease-in-out infinite; }
  .pile__jouet--pion2 { animation-delay: 0.9s; }
  @keyframes pile-pion { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -0.7rem; } }
  .pile__carte { transform-box: fill-box; transform-origin: 50% 100%; animation: pile-carte 5s ease-in-out infinite; }
  .pile__carte--1 { --a: -14deg; } .pile__carte--3 { --a: 14deg; }
  @keyframes pile-carte { 0%, 100% { rotate: 0deg; } 40%, 70% { rotate: var(--a, 0deg); } }
  .pile__jouet--etoile { animation: pile-etoile 3s ease-in-out infinite; }
  @keyframes pile-etoile { 50% { scale: 1.25; rotate: 20deg; } }
  .pile__confetti { animation: pile-confetti 4s ease-in-out infinite; }
  .pile__confetti--2 { animation-delay: -1s; } .pile__confetti--3 { animation-delay: -2s; } .pile__confetti--4 { animation-delay: -3s; }
  @keyframes pile-confetti { 50% { translate: 0 0.8rem; rotate: 120deg; } }

  /* Apparition au défilement (navigateurs récents ; ailleurs, tout est simplement visible) */
  @supports (animation-timeline: view()) {
    .revele { animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

/* ---------- Jouer en ligne (Board Game Arena, Game Park…) ---------- */
.bouton--jouer { position: relative; }
.bouton--jouer svg { width: 1.2em; height: 1.2em; }
.univers .bouton--jouer { background: var(--u-accent); border-color: var(--u-accent); color: var(--u-fond); box-shadow: 0 0 0 3px var(--u-fond), 0 0 0 5px var(--u-accent); }
.univers .bouton--jouer:hover { background: var(--u-encre); border-color: var(--u-encre); color: var(--u-fond); }
.carte__en-ligne {
  position: relative;
  width: fit-content;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  padding: 0.15rem 0.55rem 0.15rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.carte__en-ligne svg { width: 1rem; height: 1rem; }

/* ---------- Dans la presse : un carnet de coupures ---------- */
.presse {
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(56, 89, 140, 0.12) 31px 32px),
    linear-gradient(90deg, transparent 0 3.2rem, rgba(163, 57, 31, 0.25) 3.2rem 3.3rem, transparent 3.3rem),
    var(--papier);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.presse__intro { max-width: 52ch; font-size: 1.1rem; color: var(--encre-douce); }
.presse__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3rem); }
.coupure article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 56rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: #fffdf7;
  box-shadow: 0 1px 0 rgba(30, 27, 24, 0.08), 0 24px 40px -28px rgba(30, 27, 24, 0.55);
  clip-path: polygon(0 1%, 3% 0, 9% 0.8%, 18% 0.2%, 31% 1%, 45% 0, 58% 0.9%, 71% 0.1%, 86% 0.8%, 100% 0, 99.4% 22%, 100% 47%, 99.3% 73%, 100% 100%, 84% 99.2%, 66% 100%, 49% 99.1%, 30% 100%, 14% 99.3%, 0 100%, 0.6% 70%, 0 41%, 0.5% 17%);
}
.coupure::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 7rem;
  height: 1.6rem;
  margin: -0.7rem 0 0 1.5rem;
  background: rgba(229, 154, 131, 0.55);
  transform: rotate(-4deg);
}
.coupure { position: relative; }
/* Une typographique du magazine (aucune reprise de sa couverture) */
.coupure__une {
  display: grid;
  align-content: space-between;
  min-height: 12rem;
  padding: 1rem;
  border: 2px solid var(--encre);
  outline: 1px solid var(--encre);
  outline-offset: 3px;
  background: var(--papier-2, #efe7d8);
}
.coupure__media { font-family: var(--titre); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.coupure__numero { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; border-top: 1px solid var(--encre); padding-top: 0.5rem; }
.coupure__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--encre-douce); }
.coupure__categorie { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--encre); color: var(--papier); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.coupure__titre { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 0.5rem; }
.coupure__rubrique { margin: 0 0 0.9rem; font-style: italic; color: var(--encre-douce); }
.coupure__texte { max-width: 56ch; }
.coupure__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.coupure__jeu { margin: 1.25rem 0 0; padding-top: 0.75rem; border-top: 1px dashed rgba(30, 27, 24, 0.3); font-size: 0.95rem; }
.coupure__jeu a { font-weight: 700; color: var(--accent); }

/* Encadré sur la fiche d'un jeu */
.presse-jeu { margin-top: 1.75rem; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--papier) 88%, var(--encre)); }
.presse-jeu__titre { font-size: 1.05rem; margin: 0 0 0.4rem; letter-spacing: 0.04em; }
.presse-jeu ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.presse-jeu a { color: inherit; font-weight: 600; }

@media (max-width: 40rem) {
  .coupure article { grid-template-columns: minmax(0, 1fr); }
  .coupure__une { min-height: 0; gap: 1.5rem; }
  .presse { background: var(--papier); }
}

/* ---------- Ludographie : « Trouver un jeu » (filtres, script /assets/js/filtres.js) ---------- */
.filtres[hidden], .ludographie > .carte[hidden], .bloc-annee[hidden], .annees li[hidden], .filtres__vide[hidden] { display: none; }
.filtres {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--papier-2, #efe7d8);
}
.filtres__titre { font-size: 1.35rem; margin: 0 0 0.9rem; }
.filtres__groupe + .filtres__groupe { margin-top: 1rem; }
.filtres__question { margin: 0 0 0.5rem; font-weight: 600; }
.filtres__choix { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pastille {
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  background: var(--papier);
  color: var(--encre);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pastille:hover { background: color-mix(in srgb, var(--papier) 80%, var(--encre)); }
.pastille[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.pastille[aria-pressed="true"]::before { content: "✓ "; }
.pastille:focus-visible, .filtres__effacer:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.filtres__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--filet); }
.filtres__compte { margin: 0; min-height: 1.5em; font-weight: 700; }
.filtres__effacer {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.filtres__effacer:disabled { color: var(--encre-douce); text-decoration: none; cursor: default; opacity: 0.7; }
.filtres__vide { margin: 0.9rem 0 0; padding: 0.8rem 1rem; border-radius: var(--rayon); background: var(--papier); }

/* ---------- Badge « Nouveauté » (affiché par /assets/js/nouveaute.js) ---------- */
.nouveaute[hidden] { display: none; }
.nouveaute {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--papier);
  font-family: var(--texte);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.carte__nouveaute { margin: 0.6rem 0 0.1rem; }
.nouveaute--fiche { margin-bottom: 0.75rem; }
.affiche__texte .nouveaute { margin-bottom: 0.6rem; }
.disponibilite { margin: 1rem 0 0; font-size: 0.95rem; font-style: italic; color: var(--encre-douce); }

/* ---------- Choix de la langue (FR / EN) ---------- */
.nav .nav__langue a {
  min-width: 2.6rem;
  padding: 0.35rem 0.6rem;
  border: 1.5px solid var(--filet-fort, currentColor);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
.nav .nav__langue a:hover { color: var(--encre); border-color: var(--encre); }

/* ==========================================================================
   PAGES « SUR MESURE », LOT 2 : gabarit commun (src/_includes/univers/_page.njk).
   Chaque jeu règle ses couleurs et son décor dans /assets/css/univers/<slug>.css.
   Le décor (.sm-decor) est toujours sous la boîte ; la boîte n'a qu'une ombre portée.
   ========================================================================== */
.sm {
  --sm-fond: #f6f1e7; --sm-fond-2: #ece4d3; --sm-encre: #1f1b16; --sm-doux: #4d453b;
  --sm-accent: #8a3b12; --sm-accent-fonce: #5e270b; --sm-carte: #fff; --sm-police: var(--titre);
  background: var(--sm-fond-2); color: var(--sm-encre);
}
.sm .fil-ariane, .sm .fil-ariane a { color: var(--sm-doux); }
.sm-ouverture { position: relative; isolation: isolate; overflow: hidden; background: var(--sm-fond); padding-bottom: clamp(6rem, 12vw, 9rem); }
.sm-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sm-scene { position: relative; z-index: 1; }
.sm-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-top: clamp(1rem, 4vw, 2.5rem); }
.sm-sur { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sm-accent); }
.sm h1 { margin: 0; font-family: var(--sm-police); font-size: clamp(3rem, 9vw, 6.2rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--sm-encre); overflow-wrap: anywhere; }
.sm-accroche { margin: 1.1rem 0 0; max-width: 30ch; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; color: var(--sm-doux); }
.sm-piece { position: relative; z-index: 2; display: grid; place-items: center; padding: 1rem 0 2rem; }
.sm-boite { position: relative; z-index: 2; width: min(19rem, 62vw); }
.sm-boite picture { display: contents; }
.sm-boite img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.35)); }

.sm-contenu { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sm-contenu__grille { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sm-carte { padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--sm-carte); border-radius: 18px; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.55); }
.sm-rubrique { margin: 0; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sm-accent); }
.sm-carte h2 { font-family: var(--sm-police); font-size: clamp(1.8rem, 4.2vw, 2.5rem); line-height: 1.1; margin: 0.4rem 0 1rem; color: var(--sm-encre); }
.sm-description { font-size: 1.12rem; line-height: 1.7; max-width: 60ch; }
.sm .bouton { background: var(--sm-accent); border-color: var(--sm-accent-fonce); color: #fff; }
.sm .bouton:hover { background: var(--sm-accent-fonce); color: #fff; }
.sm .bouton--clair { background: transparent; color: var(--sm-accent-fonce); border-color: var(--sm-accent-fonce); }
.sm .liens-secondaires a { color: var(--sm-accent-fonce); font-weight: 600; }
.sm .disponibilite { color: var(--sm-doux); }
.sm-cote__titre { font-family: var(--sm-police); font-size: 1.5rem; margin: 0 0 0.7rem; color: var(--sm-encre); }
.sm-infos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.sm-infos div { padding: 0.7rem 0.9rem; background: var(--sm-carte); border-radius: 12px; }
.sm-infos dt { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sm-doux); }
.sm-infos dd { margin: 0.2rem 0 0; font-weight: 700; font-size: 1.15rem; }
.sm-equipe { margin-top: 1.8rem; }
.sm-credits { margin: 0; }
.sm-credits div { padding: 0.55rem 0; border-top: 1px solid color-mix(in srgb, var(--sm-encre) 22%, transparent); }
.sm-credits dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--sm-accent); }
.sm-credits dd { margin: 0.15rem 0 0; font-size: 1.02rem; }
.sm-palmares { margin-top: clamp(2.5rem, 6vw, 4rem); }
.sm-medailles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.sm-medaille { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; background: var(--sm-carte); border-radius: 14px; }
.sm-medaille__insigne { flex: none; display: grid; place-items: center; width: 3.6rem; aspect-ratio: 1; border-radius: 50%; font-weight: 800; font-size: 0.8rem; color: #2a1f0a; background: radial-gradient(circle at 35% 30%, #fde59a, #f0b93a 60%, #a97c12); }
.sm-medaille strong { display: block; }
.sm-medaille span { font-size: 0.95rem; color: var(--sm-doux); }
.sm-cadre { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.sm-cadre img { width: 100%; height: auto; border-radius: 16px; }
.sm-cadre figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--sm-doux); }
@media (max-width: 52rem) {
  .sm-grille, .sm-contenu__grille { grid-template-columns: minmax(0, 1fr); }
  .sm-titre { text-align: center; }
  .sm-accroche { margin-inline: auto; }
}
/* Bande décorative du bas de l'ouverture (sous la boîte, jamais par-dessus) */
.sm-sol { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(6rem, 12vw, 9rem); }
.sm-sol__dessin { position: absolute; inset: 0; width: 100%; height: 100%; }
.sm-ouverture .sm-titre { position: relative; z-index: 1; }

/* Animation « balle » (Medieval Pong, choix de JOHN) : une petite balle de ping-pong qui rebondit d'un bord
   à l'autre en haut de la page, au-dessus du titre, sous le contenu ; jamais sur la boîte. */
@media (prefers-reduced-motion: no-preference) {
  .anim-balle::after {
    content: ""; position: absolute; z-index: -1; left: 0; top: 0.5rem;
    width: 0.9rem; height: 0.9rem; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 40%, #f1ece0 70%, #d9d2c0);
    box-shadow: 0 3px 4px rgba(31, 36, 48, 0.25);
    pointer-events: none;
    animation: u-balle 9s linear infinite alternate;
  }
  @keyframes u-balle {
    0% { left: 2%; top: 3.2rem; animation-timing-function: ease-out; }
    6.25% { left: 8%; top: 0.6rem; animation-timing-function: ease-in; }
    12.5% { left: 14%; top: 3.2rem; animation-timing-function: ease-out; }
    18.75% { left: 20%; top: 0.6rem; animation-timing-function: ease-in; }
    25% { left: 26%; top: 3.2rem; animation-timing-function: ease-out; }
    31.25% { left: 32%; top: 0.6rem; animation-timing-function: ease-in; }
    37.5% { left: 38%; top: 3.2rem; animation-timing-function: ease-out; }
    43.75% { left: 44%; top: 0.6rem; animation-timing-function: ease-in; }
    50% { left: 50%; top: 3.2rem; animation-timing-function: ease-out; }
    56.25% { left: 56%; top: 0.6rem; animation-timing-function: ease-in; }
    62.5% { left: 62%; top: 3.2rem; animation-timing-function: ease-out; }
    68.75% { left: 68%; top: 0.6rem; animation-timing-function: ease-in; }
    75% { left: 74%; top: 3.2rem; animation-timing-function: ease-out; }
    81.25% { left: 80%; top: 0.6rem; animation-timing-function: ease-in; }
    87.5% { left: 86%; top: 3.2rem; animation-timing-function: ease-out; }
    93.75% { left: 92%; top: 0.6rem; animation-timing-function: ease-in; }
    100% { left: 97%; top: 3.2rem; }
  }
}
