/* Shanghokite : le festival de nuit du port (maquette M2 LANTERNES DU PORT). Aplats, lanternes, flaques de lumière à deux paliers. */
@font-face {
  font-family: "Lanterne";
  src: url("/statique/polices/lanterne-5x7.woff2") format("woff2");
  font-display: swap;
}
:root {
  --noir: #080612; --nuit: #0E1028; --eau: #101C3C; --eau2: #1C305A; --eau3: #2C4678;
  --bois: #22161E; --bois2: #3E2828; --ambre: #FFA83A; --ambre-f: #A85422; --rouge: #EC3E34; --rouge-f: #841E2C;
  --jade: #54DEA0; --jade-f: #186C5A; --lilas: #C8A8FF; --blanc: #FFF6D6; --jaune: #FFE262; --papier: #FFCE8E;
  --lotus: #F07896; --lotus2: #FFCED6; --lune: #FFF0C8; --lune-f: #DCC8A0;
  --doux: #C9C2D8;
  --flaque1: #22305E; --flaque2: #2B3B70;
  --pixel: "Lanterne", ui-monospace, monospace;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --large: 1100px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--blanc); font: 17px/1.62 var(--texte);
  background: var(--eau) url("/statique/images/eau.png") 0 0 / 288px 144px repeat;
  image-rendering: pixelated; overflow-x: hidden;
}
img { image-rendering: pixelated; max-width: 100%; height: auto; }
img[src$=".webp"], img[src$=".jpg"] { image-rendering: auto; }
a { color: var(--jaune); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--papier); }
a:focus-visible, summary:focus-visible { outline: none; background: var(--jaune); color: var(--noir); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: 16px; top: -60px; z-index: 9; padding: 8px 14px; background: var(--jaune); color: var(--noir); font-weight: 700; }
.saut:focus { top: 12px; }
code { font: 0.92em/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow-wrap: anywhere; color: var(--papier); }
kbd { font: 700 0.9em var(--texte); color: var(--noir); background: var(--papier); padding: 0 6px; white-space: nowrap; }

/* ---------- ciel de l'en-tête : logo, langue, guirlande de lanternes ---------- */
.ciel {
  position: relative;
  background:
    url("/statique/images/etoiles.png") 0 0 / 320px 160px repeat,
    linear-gradient(to bottom, var(--noir) 0, var(--nuit) 45%, #141A3E 100%);
}
.ciel-haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 18px 16px 0; }
.marque { display: inline-flex; gap: 8px; align-items: flex-end; line-height: 0; }
.marque img { width: auto; height: 39px; }
.marque:focus-visible { background: var(--jaune); }
.langue {
  font: 20px/1 var(--pixel); color: var(--papier); text-decoration: none; padding: 8px 10px 6px;
  background: var(--rouge-f);
}
.langue:hover { background: var(--rouge); color: var(--blanc); }
.guirlande { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.guirlande ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.guirlande li { margin-top: var(--creux, 0); }
.guirlande a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 12px;
  text-decoration: none; color: var(--doux);
}
.guirlande .l { position: relative; line-height: 0; }
.guirlande .l img { width: 27px; height: 48px; }
.guirlande .l-survol { position: absolute; left: 0; top: 0; opacity: 0; }
.guirlande a:hover .l-survol, .guirlande a:focus-visible .l-survol { opacity: 1; }
.guirlande .t { font: 20px/1 var(--pixel); letter-spacing: 0; white-space: nowrap; }
.guirlande a.allumee { color: var(--jaune); }
.guirlande a:hover { color: var(--papier); }
.guirlande a:focus-visible { background: var(--jaune); color: var(--noir); }
.rive { height: 200px; margin-top: -24px; background: url("/statique/images/port.png") 50% 100% / 1280px 200px repeat-x; }

/* Menu sur téléphone et tablette : une grande lanterne, puis la liste en deux colonnes */
.lampion { display: none; max-width: 1280px; margin: 0 auto; padding: 4px 16px 0; }
.lampion summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 6px 8px 6px 0; font: 20px/1 var(--pixel); color: var(--jaune); }
.lampion summary::-webkit-details-marker { display: none; }
.lampion summary img { width: 27px; height: 48px; }
.lampion ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.lampion a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font: 20px/1 var(--pixel); color: var(--doux); text-decoration: none; }
.lampion a.allumee { color: var(--jaune); }
.lampion a img { width: 18px; height: 32px; }
@media (max-width: 1000px) {
  .guirlande { display: none; }
  .lampion { display: block; }
}

/* ---------- quai : contenu, côtés de la régie ---------- */
.quai { width: 100%; }
main { display: block; width: 100%; max-width: calc(var(--large) + 32px); margin: 0 auto; padding: 0 16px 24px; }
@media (min-width: 1280px) {
  .quai { display: grid; grid-template-columns: 160px minmax(0, var(--large)) 160px; justify-content: center; column-gap: 24px; padding: 0 16px; }
  main { max-width: none; padding: 0 0 24px; }
}
@media (min-width: 1800px) {
  .quai { grid-template-columns: 300px minmax(0, var(--large)) 300px; }
}

/* ---------- tête de page : titre sur l'eau et son reflet, Shangho en vol au-dessus d'une flaque de lumière ---------- */
.tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 40px 0 8px; }
.tete-texte { min-width: 0; }
.surtitre { margin: 0 0 14px; font: 20px/1.2 var(--pixel); color: var(--ambre); }
.surtitre a { color: var(--ambre); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; letter-spacing: 0; text-wrap: balance; }
h1 {
  position: relative; margin: 0 0 46px; font-size: 40px; line-height: 1.1; color: var(--papier);
}
h1::after, h2::after {
  content: attr(data-reflet) / ""; position: absolute; left: 0; right: 0; top: 100%; pointer-events: none;
  transform: translateY(50%) scaleY(-0.5); transform-origin: 50% 0; color: var(--rouge-f);
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 4px);
  mask: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 4px);
}
.chapeau { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--blanc); }
.tete-scene {
  position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 200px; min-height: 230px; padding-bottom: 28px;
  background: radial-gradient(ellipse 120px 20px at 50% 92%, var(--flaque2) 0 50%, var(--flaque1) 50% 100%, transparent 100%);
}
.tete-scene img { display: block; }
.vol { display: block; animation: vol 4.8s steps(8) infinite; }
@keyframes vol { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .vol { animation: none; } }

/* Accueil : le logo en lettres-lanternes et son reflet tramé, comme l'écran titre */
.logo-titre { margin: 0 0 18px; line-height: 0; }
.logo-titre::after { content: none; }
.logo-mots, .logo-reflets { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.logo-mots img { width: auto; height: 78px; }
.logo-reflets { margin-top: 6px; }
.logo-reflets img { width: auto; height: 30px; }
.tete-accueil .tete-scene { min-height: 300px; }
.etat-jeu { font: 20px/1.4 var(--pixel); color: var(--jade); margin: 22px 0 0; }
.appels { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 0; list-style: none; }
.appels a { font: 20px/1.3 var(--pixel); color: var(--jaune); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px; }
.appels a::before { content: ""; width: 9px; height: 48px; background: url("/statique/images/petard.png") 0 0 / 9px 48px no-repeat; }
.appels a:hover { color: var(--papier); }

/* ---------- rubriques ---------- */
.rubrique { margin: 84px 0 0; }
.rubrique > p, .rubrique > ul:not(.niveaux):not(.defile), .rubrique > ol:not(.etapes), .rubrique > dl { max-width: 760px; }
h2 { position: relative; margin: 0 0 40px; font-size: 30px; line-height: 1.15; color: var(--ambre); }
h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; color: var(--jade); }
p { margin: 0 0 14px; }
.doux { color: var(--doux); }
.rubrique ul { padding-left: 22px; }
.rubrique li { margin: 0 0 6px; }
.rubrique li::marker { color: var(--ambre); }

/* Rangées : titre à gauche, détail à droite sur grand écran */
.rangs { display: grid; gap: 22px; margin: 0; }
.rang { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: baseline; }
.rang h3 { margin: 0; }
.rang p { margin: 0; color: var(--blanc); }
.rang p + p { margin-top: 8px; }

/* Scène et texte côte à côte */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.duo > div > :last-child { margin-bottom: 0; }

/* Écran de jeu : l'image seule, sans cadre ; légende dessous */
figure { margin: 0; }
.ecran img { display: block; width: 100%; height: auto; }
.ecran figcaption { margin-top: 10px; font-size: 15px; color: var(--doux); }
.galerie { display: grid; gap: 40px; }

/* Niveaux : numéro en grand, comme l'annonce d'un niveau à l'écran */
.niveaux { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.niveaux li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; margin: 0; }
.niveaux .num { font: 40px/1 var(--pixel); color: var(--rouge); padding-top: 4px; }
.niveaux h3 { color: var(--papier); }
.niveaux p { margin: 0; }
.niveaux .boss { color: var(--lilas); }

/* Défilé des personnages : le sprite à gauche, sur sa petite flaque */
.defile { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.defile li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 22px; align-items: center; margin: 0; }
.defile .spr {
  display: flex; align-items: flex-end; justify-content: center; min-height: 110px; padding-bottom: 10px;
  background: radial-gradient(ellipse 60px 12px at 50% 90%, var(--flaque2) 0 50%, var(--flaque1) 50% 100%, transparent 100%);
}
.defile p { margin: 0; }
.points { font: 20px/1 var(--pixel); color: var(--jaune); white-space: nowrap; }

/* Valeurs : nom et chiffre, alignés comme le score du HUD */
.valeurs { margin: 0; display: grid; grid-template-columns: minmax(0, max-content) max-content; gap: 10px 36px; align-items: baseline; }
.valeurs dt { color: var(--blanc); }
.valeurs dd { margin: 0; font: 20px/1 var(--pixel); color: var(--jaune); text-align: right; }

/* Chaîne des lanternes : chaque maillon vaut plus */
.chaine { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 0 !important; margin: 0 0 18px; }
.chaine li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; font: 20px/1 var(--pixel); color: var(--jaune); }
.chaine li img { width: 18px; height: 32px; }

/* Étapes : un pétard rouge porte le numéro */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 760px; }
.etapes > li { position: relative; padding-left: 58px; min-height: 44px; margin: 0; }
.etapes .petard {
  position: absolute; left: 6px; top: 2px; width: 30px; height: 40px; display: flex; align-items: center; justify-content: center;
  font: 20px/1 var(--pixel); color: var(--blanc);
  background: linear-gradient(var(--jaune) 0 4px, var(--rouge) 4px calc(100% - 4px), var(--ambre-f) calc(100% - 4px));
}
.etapes .petard::before { content: ""; position: absolute; left: 13px; top: -8px; width: 4px; height: 8px; background: var(--ambre); }
.etapes h3 { margin: 0 0 4px; color: var(--papier); }
.etapes p { margin: 0; }

/* Flaque de lumière à deux paliers sous une lanterne : l'encart du site */
.flaque {
  position: relative; max-width: 760px; padding: 56px 28px 26px; margin: 8px 0 0;
  background: radial-gradient(ellipse 72% 80% at 50% 0, var(--flaque2) 0 52%, var(--flaque1) 52% 100%, transparent 100%);
}
.flaque-lanterne { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 36px; height: 64px; }
.flaque .etat { font: 30px/1.2 var(--pixel); color: var(--jaune); margin: 10px 0 10px; text-align: center; }
.flaque.bientot .etat { color: var(--lilas); }
.flaque > p { text-align: center; }
.flaque .etat a { color: var(--jaune); }
.fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; }
.fiche dt { color: var(--doux); }
.fiche dd { margin: 0; }
.encart { max-width: 760px; padding: 40px 28px 22px;
  background: radial-gradient(ellipse 70% 90% at 50% 0, var(--flaque2) 0 45%, var(--flaque1) 45% 100%, transparent 100%); }
.encart > :last-child { margin-bottom: 0; }

/* Plateformes : lanterne allumée quand le paquet existe */
.plateformes { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 22px; max-width: 860px; }
.plateformes li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 18px; align-items: baseline; margin: 0; }
.plateformes h3 { margin: 0; }
.plateformes h3 a { color: var(--papier); }
.plateformes p { margin: 4px 0 0; color: var(--doux); }
.attente { font: 20px/1 var(--pixel); color: var(--lilas); }
.dispo { font: 20px/1 var(--pixel); color: var(--jade); }

/* Commandes : une liste par manière de jouer */
.touches { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 26px; max-width: 760px; }
.touches dt { color: var(--papier); }
.touches dd { margin: 0; }

/* FAQ : la lanterne de chaque question s'allume quand elle s'ouvre */
.questions { max-width: 820px; }
.questions details { margin: 0 0 6px; }
.questions summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px 4px; font-weight: 700; font-size: 18px; color: var(--papier);
}
.questions summary::-webkit-details-marker { display: none; }
.q-lanterne { position: relative; line-height: 0; width: 27px; height: 48px; }
.q-lanterne img { width: 27px; height: 48px; }
.q-lanterne .allumee { position: absolute; left: 0; top: 0; opacity: 0; }
.questions details[open] .q-lanterne .allumee, .questions summary:hover .q-lanterne .allumee { opacity: 1; }
.questions details[open] summary { color: var(--jaune); }
.questions details > :not(summary) { margin: 4px 0 18px 48px; }

/* Tableau simple (licences) */
.tableau { width: 100%; max-width: 860px; border-collapse: collapse; }
.tableau th { font: 20px/1.2 var(--pixel); color: var(--ambre); text-align: left; padding: 0 16px 10px 0; font-weight: 400; }
.tableau td { padding: 8px 16px 8px 0; vertical-align: top; }
.tableau tr:nth-child(even) td { background: rgba(28, 48, 90, 0.55); }

/* ---------- régie : affiches du festival (ciel de nuit, eau du port), mention Publicité ---------- */
.pub { display: flex; flex-direction: column; align-items: center; }
.pub-mention { margin: 0 0 6px; font: 20px/1 var(--pixel); color: var(--lilas); }
.pub-place { position: relative; line-height: 0; }
.pub-haut { margin: 40px 0 8px; }
.pub-bas { margin: 64px auto 40px; padding: 0 16px; }
.pub-gauche, .pub-droite { display: none; }
@media (min-width: 1280px) {
  .pub-gauche, .pub-droite { display: flex; position: sticky; top: 24px; align-self: start; margin-top: 40px; }
}
.annonce {
  position: relative; display: grid; align-items: center; overflow: hidden; text-decoration: none; color: var(--blanc); line-height: 1.3;
  background: linear-gradient(to bottom, var(--noir) 0, var(--nuit) 78%, var(--eau3) 78%, var(--eau2) 84%);
}
.annonce + .annonce { display: none; }
.annonce img { display: block; }
.an-titre { display: block; font-family: var(--pixel); font-weight: 400; color: var(--jaune); }
.an-detail { display: block; }
.an-appel { display: block; font-family: var(--pixel); color: var(--ambre); }
.annonce:hover .an-appel { color: var(--papier); }
.annonce:focus-visible { background: var(--jaune); }
.annonce:focus-visible * { color: var(--noir); }
.an-court, .an-cerf, .an-pagode, .annonce .an-cerf2, .annonce .an-pagode1 { display: none; }
/* 970x250 : Shangho, le texte, la pagode sur l'eau */
.pub-haut .annonce { width: 970px; height: 250px; grid-template-columns: 110px minmax(0, 1fr) 140px; gap: 30px; padding: 0 24px; }
.pub-haut .an-cerf { display: block; align-self: start; padding-top: 24px; }
.pub-haut .an-lanterne { display: none; }
.pub-haut .an-pagode { display: block; align-self: end; padding-bottom: 10px; }
.pub-haut .an-titre { font-size: 30px; line-height: 1.2; }
.pub-haut .an-detail { margin: 10px 0 14px; font-size: 18px; }
.pub-haut .an-appel { font-size: 20px; }
/* 728x90 (haut sur tablette, bas) */
.pub-bas .annonce { width: 728px; height: 90px; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 0 20px;
  background: linear-gradient(to bottom, var(--noir) 0, var(--nuit) 100%); }
.pub-bas .an-titre { font-size: 20px; }
.pub-bas .an-detail { margin: 4px 0 2px; font-size: 14px; }
.pub-bas .an-appel { font-size: 20px; }
@media (max-width: 1023px) {
  .pub-haut .annonce { width: 728px; height: 90px; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 0 20px;
    background: linear-gradient(to bottom, var(--noir) 0, var(--nuit) 100%); }
  .pub-haut .an-cerf, .pub-haut .an-pagode { display: none; }
  .pub-haut .an-lanterne { display: block; }
  .pub-haut .an-titre { font-size: 20px; }
  .pub-haut .an-detail { margin: 4px 0 2px; font-size: 14px; }
}
/* 320x100 et 320x50 (téléphone) */
@media (max-width: 767px) {
  .pub-haut .annonce { width: 320px; height: 100px; grid-template-columns: 27px minmax(0, 1fr); gap: 12px; padding: 0 12px; }
  .pub-haut .an-titre { font-size: 20px; line-height: 1.15; }
  .pub-haut .an-detail { display: none; }
  .pub-haut .an-appel { margin-top: 8px; }
  .pub-bas { margin: 48px auto 32px; }
  .pub-bas .annonce { width: 320px; height: 50px; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 0 12px; }
  .pub-bas .an-lanterne img { width: 18px; height: 32px; }
  .pub-bas .an-titre, .pub-bas .an-detail, .pub-bas .an-appel { display: none; }
  .pub-bas .an-court { display: block; font: 700 14px/1.25 var(--texte); color: var(--jaune); }
}
/* 160x600 et 300x600 (côtés) : Shangho en haut, le texte, la pagode au bord de l'eau */
.pub-gauche .annonce, .pub-droite .annonce {
  width: 160px; height: 600px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; justify-items: center; align-items: start;
  text-align: center; padding: 22px 12px 0;
  background: linear-gradient(to bottom, var(--noir) 0, var(--nuit) 86%, var(--eau3) 86%, var(--eau2) 90%);
}
.pub-gauche .an-cerf, .pub-droite .an-cerf { display: block; }
.pub-gauche .annonce .an-cerf3, .pub-droite .annonce .an-cerf3 { display: none; }
.pub-gauche .annonce .an-cerf2, .pub-droite .annonce .an-cerf2 { display: block; }
.pub-gauche .an-lanterne, .pub-droite .an-lanterne { display: none; }
.pub-gauche .an-texte, .pub-droite .an-texte { display: block; margin-top: 18px; }
.pub-gauche .an-titre, .pub-droite .an-titre { font-size: 20px; line-height: 1.25; }
.pub-gauche .an-detail, .pub-droite .an-detail { margin: 12px 0 14px; font-size: 14px; line-height: 1.4; }
.pub-gauche .an-appel, .pub-droite .an-appel { font-size: 20px; }
.pub-gauche .an-pagode, .pub-droite .an-pagode { display: block; align-self: end; margin-bottom: 52px; }
.pub-gauche .annonce .an-pagode2, .pub-droite .annonce .an-pagode2 { display: none; }
.pub-gauche .annonce .an-pagode1, .pub-droite .annonce .an-pagode1 { display: block; }
@media (min-width: 1800px) {
  .pub-gauche .annonce, .pub-droite .annonce { width: 300px; padding: 30px 26px 0; }
  .pub-gauche .an-titre, .pub-droite .an-titre { font-size: 30px; line-height: 1.2; }
  .pub-gauche .an-detail, .pub-droite .an-detail { font-size: 17px; }
  .pub-gauche .annonce .an-pagode2, .pub-droite .annonce .an-pagode2 { display: block; }
  .pub-gauche .annonce .an-pagode1, .pub-droite .annonce .an-pagode1 { display: none; }
  .pub-gauche .an-pagode, .pub-droite .an-pagode { margin-bottom: 44px; }
}

/* ---------- pied : la nuit au fond du port, lotus sur l'eau ---------- */
.pied { background: var(--nuit) url("/statique/images/nuit.png") 0 0 / 288px 144px repeat; padding: 48px 16px 36px; }
.pied-in { max-width: 1100px; margin: 0 auto; position: relative; }
.pied-lotus { position: absolute; right: 0; top: -84px; width: 33px; height: 75px; }
.pied-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pied-titre { font: 20px/1.2 var(--pixel); color: var(--ambre); margin: 0 0 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 0 0 8px; }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { color: var(--jaune); text-decoration: underline; }
.pied-bas { margin: 36px 0 0; font-size: 15px; color: var(--doux); }
.pied-bas a { color: var(--doux); text-decoration: underline; }

/* ---------- tablette ---------- */
@media (max-width: 1023px) {
  .guirlande .t { font-size: 20px; }
  .guirlande a { padding: 8px 2px 10px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .rang { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
/* ---------- téléphone ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .marque img { height: 26px; }
  .ciel-haut { padding-top: 14px; }
  .rive { height: 100px; margin-top: -10px; background-size: 640px 100px; }
  .tete { grid-template-columns: minmax(0, 1fr); padding-top: 26px; gap: 8px; }
  .tete-scene { order: -1; min-height: 0; min-width: 160px; padding-bottom: 18px; justify-self: end; }
  .tete-scene img { max-height: 150px; width: auto; }
  .tete-accueil .tete-scene { min-height: 0; }
  h1 { font-size: 30px; margin-bottom: 34px; }
  .logo-mots img { height: 52px; }
  .logo-mots { gap: 10px; }
  .logo-reflets img { height: 20px; }
  .logo-reflets { gap: 10px; }
  .chapeau { font-size: 18px; }
  h2 { font-size: 20px; margin-bottom: 30px; }
  .rubrique { margin-top: 64px; }
  .niveaux li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .niveaux .num { font-size: 30px; }
  .defile li { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .defile .spr img { max-width: 80px; height: auto; }
  .touches { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .touches dd { margin-bottom: 10px; }
  .plateformes li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .flaque { padding: 56px 14px 20px; }
  .encart { padding: 36px 16px 18px; }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .questions details > :not(summary) { margin-left: 0; }
  .pied-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valeurs { gap: 8px 18px; }
  .tableau th, .tableau td { padding-right: 10px; font-size: 15px; }
}
@media print {
  .pub, .guirlande, .rive, .tete-scene { display: none !important; }
  body { background: #fff; color: #000; }
}
