/* Les Terres Taillées : feuille de style du site.
   Couleurs : palette « Lanterne & laiton » du jeu (commun/jeu/theme_ui.gd, docs/interface_da.md § 2).
   Matières : PNG de l'interface du jeu (ui/), posés en neuf tranches au pixel (image-rendering: pixelated). */

:root {
  --fond: #1c1713;
  --fond-haut: #2a221b;
  --fond-bas: #120e0b;
  --case: #0f0c0a;
  --trait: #070605;
  --metal-ombre: #5e4720;
  --metal: #b48d42;
  --metal-clair: #ecd08a;
  --texte: #eee2c4;
  --texte-doux: #ab9e80;
  --titre: #f0c96e;
  --accent: #ff9d3d;
  --parchemin: #ebdfc0;
  --encre: #33251a;
  --sceau: #8f3a20;
  --laiton: #c69b5e;
  --vie: #c23a30;

  --police-titre: "Junicode", "Noto Serif", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --police-texte: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bord-bois: 14px;      /* bois sculpté : marge 14 px du PNG, ×1 sur téléphone, ×2 ailleurs */
  --bord-parchemin: 18px; /* parchemin taché : marge 18 px */
  --gouttiere: 16px;
  color-scheme: dark;
}
@media (min-width: 700px) {
  :root { --bord-bois: 28px; --bord-parchemin: 36px; --gouttiere: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond-bas) url(../img/ui/grain.png) repeat;
  background-size: 128px 128px;
  image-rendering: auto;
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--metal-clair); text-decoration-color: var(--metal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
strong { color: var(--titre); font-weight: 700; }
.parchemin strong { color: var(--sceau); }
em { font-style: italic; }
[hidden] { display: none !important; }

.evitement {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--fond); color: var(--texte); padding: 8px 14px; border: 2px solid var(--metal);
}
.evitement:focus { top: 8px; }

.large { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- Matières du jeu ---------- */
.bois {
  position: relative;
  border: var(--bord-bois) solid transparent;
  border-image: url(../img/ui/bois.png) 14 fill / var(--bord-bois) round;
  image-rendering: pixelated;
  background-clip: padding-box;
}
.bois > * { image-rendering: auto; }
.parchemin {
  color: var(--encre);
  border: var(--bord-parchemin) solid transparent;
  border-image: url(../img/ui/parchemin.png) 18 fill / var(--bord-parchemin) round;
  image-rendering: pixelated;
}
.parchemin > * { image-rendering: auto; }
.parchemin a { color: var(--sceau); }

/* Ferrures d'angle (fer forgé) */
.ferrure {
  position: absolute; width: 51px; height: 51px; pointer-events: none;
  background: url(../img/ui/ferrure_hg.png) no-repeat 0 0 / 100% 100%;
  image-rendering: pixelated;
}
.ferrure.hg { left: calc(-1 * var(--bord-bois) + 2px); top: calc(-1 * var(--bord-bois) + 2px); }
.ferrure.hd { right: calc(-1 * var(--bord-bois) + 2px); top: calc(-1 * var(--bord-bois) + 2px); background-image: url(../img/ui/ferrure_hd.png); }
@media (min-width: 700px) { .ferrure { width: 76px; height: 76px; } }

/* Cases de laiton (barre d'actions du jeu) */
.case, .case-laiton, .case-icone {
  border: 10px solid transparent;
  border-image: url(../img/ui/case.png) 5 fill / 10px stretch;
  image-rendering: pixelated;
}
.case > *, .case-laiton > *, .case-icone > * { image-rendering: auto; }

/* Boutons (cadres « lanterne » du thème) */
.bouton {
  display: inline-block;
  font-family: var(--police-titre); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--metal-clair); text-decoration: none; text-align: center;
  padding: 2px 14px; min-height: 44px; line-height: 40px;
  border: 12px solid transparent; border-image: url(../img/ui/bouton.png) 6 fill / 12px stretch;
  image-rendering: pixelated; background: none; cursor: pointer;
}
.bouton:hover { color: var(--accent); border-image-source: url(../img/ui/bouton_survol.png); }
.bouton.eteint { color: var(--texte-doux); border-image-source: url(../img/ui/bouton_eteint.png); cursor: default; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(var(--fond-haut), var(--fond));
  border-bottom: 1px solid var(--trait);
  box-shadow: 0 1px 0 var(--metal-ombre), 0 6px 18px rgba(0,0,0,.55);
}
.nav { display: flex; align-items: center; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 6px var(--gouttiere); }
.nav-logo img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav ul {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
.nav ul a {
  display: block; padding: 8px 10px; color: var(--texte); text-decoration: none;
  font-family: var(--police-titre); font-weight: 700; font-size: .98rem;
}
.nav ul a:hover { color: var(--titre); }
.langue {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
  font-family: var(--police-titre); font-weight: 700; font-size: .95rem;
  padding: 2px 4px; border: 1px solid var(--metal-ombre); border-radius: 3px; background: rgba(0,0,0,.25);
}
.langue-choix { padding: 3px 7px; border-radius: 2px; color: var(--metal-clair); text-decoration: none; }
a.langue-choix:hover, a.langue-choix:focus-visible { color: var(--titre); background: rgba(255,200,120,.08); }
.langue-choix.actuelle { color: var(--titre); background: rgba(255,200,120,.12); }
.langue-sep { color: var(--metal-ombre); }
@media (max-width: 560px) {
  .nav ul a { padding: 8px 7px; font-size: .9rem; }
  .nav-logo { display: none; }
}

/* ---------- Héros ---------- */
.heros {
  position: relative; min-height: min(calc(100svh - 50px), 940px);
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 40px 0 56px;
}
.heros-fond, .heros-fond img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.heros-fond img { object-fit: cover; object-position: 50% 45%; }
.heros::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(18,14,11,.15) 0%, rgba(18,14,11,.55) 55%, rgba(18,14,11,.92) 100%),
    linear-gradient(rgba(18,14,11,.25), rgba(18,14,11,0) 30%, rgba(18,14,11,.85) 100%);
}
.heros-contenu { width: 100%; max-width: 880px; padding: 0 var(--gouttiere); text-align: center; }
.logo { margin: 0 auto 4px; max-width: 760px; }
.logo img { width: 100%; filter: drop-shadow(0 4px 12px rgba(0,0,0,.8)); }
.genre {
  margin: 0 0 10px; color: var(--metal-clair); font-family: var(--police-titre);
  font-size: clamp(1rem, 2.6vw, 1.3rem); letter-spacing: .04em; text-shadow: 0 2px 6px #000;
}
.accroche {
  margin: 0 auto 26px; max-width: 640px; font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
}

/* Compte à rebours */
.compte {
  margin: 0 auto; max-width: 620px; padding: 6px 8px 4px;
  background-color: rgba(28,23,19,.94);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
}
.compte-titre {
  margin: 0 0 10px; font-family: var(--police-titre); color: var(--titre);
  font-size: clamp(1.25rem, 3.6vw, 1.7rem); line-height: 1.2;
}
.compte-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.compte .case { background: none; padding: 6px 2px 4px; min-width: 0; }
.compte .n {
  display: block; font-family: var(--police-titre); font-weight: 700; color: var(--accent);
  font-size: clamp(1.6rem, 7vw, 2.7rem); line-height: 1.1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255,157,61,.45);
}
.compte .u { display: block; color: var(--texte-doux); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.compte-date { margin: 12px 0 0; color: var(--texte); }
.compte-date time { color: var(--titre); font-weight: 700; }
.compte-note { margin: 2px 0 0; color: var(--texte-doux); font-size: .86rem; }
.compte-fini { margin: 10px 0 0; color: var(--accent); font-weight: 700; }
.compte-lu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* ---------- Sections ---------- */
.bloc { padding: 64px 0; position: relative; }
.bloc-sombre { background: rgba(7,6,5,.55); border-block: 1px solid var(--trait); box-shadow: inset 0 1px 0 var(--metal-ombre), inset 0 -1px 0 var(--metal-ombre); }
.titre {
  margin: 0 0 26px; text-align: center;
  font-family: var(--police-titre); color: var(--titre); font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: .01em;
  text-shadow: 0 2px 0 var(--trait);
}
.titre::after {
  content: ""; display: block; width: 312px; max-width: 80%; height: 6px; margin: 12px auto 0;
  background: url(../img/ui/filet.png) center / 100% 100% no-repeat; image-rendering: pixelated;
}
.intro { max-width: 760px; margin: 0 auto 32px; text-align: center; color: var(--texte); font-size: 1.1rem; }
.note { text-align: center; color: var(--texte-doux); font-size: .88rem; margin: 10px 0 0; }
h3 { font-family: var(--police-titre); color: var(--titre); font-size: 1.3rem; line-height: 1.25; margin: 0 0 6px; }

.deux-col { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .deux-col { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .deux-col.inverse { grid-template-columns: 1fr 1.1fr; }
}
.texte-long p { margin: 0 0 1em; }
.texte-long p:last-child { margin-bottom: 0; }
.parchemin.texte-long { font-size: 1.06rem; padding: 6px 8px; }

.cadre-image { margin: 0; }
.cadre-image > img {
  width: 100%; border: 3px solid var(--trait); outline: 2px solid var(--metal-ombre); outline-offset: -5px;
  box-shadow: 0 10px 28px rgba(0,0,0,.6);
}
.cadre-image figcaption { margin-top: 14px; }
.cadre-image figcaption h3 { display: flex; align-items: center; gap: 10px; }
.cadre-image figcaption h3 img { width: 33px; height: 33px; image-rendering: pixelated; }
.cadre-image figcaption p { margin: 0; color: var(--texte); }

.chiffres {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 800px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffres li { text-align: center; padding: 8px 6px; }
.chiffres strong { display: block; font-family: var(--police-titre); font-size: 2.1rem; line-height: 1.1; color: var(--accent); }
.chiffres span { color: var(--texte-doux); font-size: .92rem; line-height: 1.3; display: block; }

/* Galerie des donjons */
.galerie { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.vignette {
  display: block; width: 100%; padding: 0; margin: 0 0 12px; cursor: zoom-in;
  background: var(--case); border: 3px solid var(--trait); outline: 2px solid var(--metal-ombre); outline-offset: -5px;
  box-shadow: 0 8px 22px rgba(0,0,0,.55); transition: outline-color .2s, transform .2s;
}
.vignette img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vignette:hover { outline-color: var(--metal); transform: translateY(-2px); }
.vignette:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.donjon p { margin: 0; color: var(--texte); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .vignette { transition: none; } .vignette:hover { transform: none; } }

.grands { margin: 44px auto 0; max-width: 820px; text-align: center; background-color: var(--fond); padding: 4px 6px; }
.grands p { margin: 0; }

/* Gestes de l'allumeur */
.gestes { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; gap: 18px 28px; }
@media (min-width: 760px) { .gestes { grid-template-columns: repeat(2, 1fr); } }
.geste { display: flex; gap: 16px; align-items: flex-start; }
.case-icone { flex: none; width: 84px; height: 84px; display: grid; place-items: center; background: none; }
.case-icone img { width: 64px; height: 64px; }
.geste h3 { margin-top: 4px; }
.geste p { margin: 0; color: var(--texte); }
.geste:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 520px; justify-self: center; }
.braises-phrase { text-align: center; margin: 34px 0 0; font-family: var(--police-titre); font-style: italic; color: var(--accent); font-size: 1.2rem; }

/* Avant la sortie */
.cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 820px) { .cartes { grid-template-columns: repeat(3, 1fr); } }
.carte { padding: 10px 6px 4px; background-color: var(--fond); }
.carte p { margin: 0; }
.sceau {
  display: inline-block; margin-bottom: 8px; padding: 1px 10px;
  background: var(--sceau); color: #fbe9d0; border-radius: 3px; border: 1px solid #5d2412;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 2px #000;
}
.prevenu { margin: 40px auto 0; max-width: 720px; text-align: center; padding: 8px 10px; }
.prevenu h3 { color: var(--encre); }
.prevenu p { margin: 0 0 14px; }
.suivre { margin: 34px auto 0; text-align: center; }
.suivre ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Pied ---------- */
.pied {
  padding: 34px 0 44px; background: linear-gradient(var(--fond), var(--fond-bas));
  border-top: 1px solid var(--trait); box-shadow: inset 0 1px 0 var(--metal-ombre);
  color: var(--texte-doux); font-size: .92rem;
}
.pied-droits { margin: 0 0 16px; }
.mentions { margin: 0 0 8px; border-left: 2px solid var(--metal-ombre); padding-left: 12px; }
.mentions summary { cursor: pointer; color: var(--texte); font-family: var(--police-titre); font-weight: 700; padding: 4px 0; }
.mentions p { margin: 6px 0; }
.mentions strong { color: var(--texte); }

/* ---------- Visionneuse ---------- */
.visionneuse {
  max-width: min(1280px, 94vw); width: auto; padding: 10px; border: 2px solid var(--metal);
  background: var(--fond); color: var(--texte); box-shadow: 0 20px 60px #000;
}
.visionneuse::backdrop { background: rgba(7,6,5,.86); }
.visionneuse img { max-height: 78vh; width: auto; margin: 0 auto; }
.visionneuse-legende { margin: 8px 0; text-align: center; }
.visionneuse .bouton { display: block; margin: 0 auto; }

/* ---------- Braises (js/site.js) ---------- */
.braises { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
@media (prefers-reduced-motion: reduce) { .braises { display: none; } }

/* ---------- Petits écrans ---------- */
@media (max-width: 420px) {
  .compte-cases { gap: 5px; }
  .compte .u { font-size: .62rem; letter-spacing: 0; }
  .compte .case { border-width: 8px; border-image-width: 8px; padding-inline: 0; }
  .compte { padding-inline: 2px; }
}
@media (max-width: 760px) {
  /* le sommaire défile à l'horizontale : un fondu à droite indique la suite */
  .nav ul { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 24px; }
}

/* ---------- Héros : sur grand écran, le texte à gauche, l'allumeur et son chien à droite ---------- */
.heros-fond img { object-position: 50% 50%; }   /* même cadrage que la vidéo (.heros-film) */
@media (min-width: 1000px) {
  .heros { place-items: center start; }
  .heros-contenu { margin-left: max(var(--gouttiere), calc((100vw - 1180px) / 2)); max-width: 640px; text-align: left; padding: 0; }
  .logo { margin-left: -8px; }
  .accroche { margin-left: 0; }
  .heros::after {
    background:
      linear-gradient(90deg, rgba(18,14,11,.94) 0%, rgba(18,14,11,.82) 34%, rgba(18,14,11,.15) 62%, rgba(18,14,11,0) 80%),
      linear-gradient(rgba(18,14,11,.2), rgba(18,14,11,0) 30%, rgba(18,14,11,.85) 100%);
  }
  .compte { margin: 0; }
}
@media (min-width: 1000px) { .compte { text-align: center; } }

/* ---------- Torches murales (img/ui/torche.svg + flamme en CSS) ----------
   Chaque torche reçoit de js/site.js ses propres durées (--d1, --d2, --d3) : aucune ne vacille comme sa voisine.
   Les animations ne tournent que si la torche est à l'écran (.vue), onglet visible, et sans « réduire les animations ». */
.torche {
  position: relative; display: inline-block; width: 22px; height: 56px; margin: 0 .55em;
  vertical-align: -10px; flex: none;
  background: url(../img/ui/torche.svg) center bottom / contain no-repeat;
}
@media (min-width: 700px) { .torche { width: 26px; height: 66px; margin: 0 .8em; vertical-align: -14px; } }
.torche .lueur {
  position: absolute; left: 50%; top: 10%; width: 160%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,170,70,.42) 0%, rgba(255,120,40,.16) 38%, rgba(255,100,30,0) 70%);
  pointer-events: none; animation: lueur var(--d2, 2.3s) ease-in-out infinite alternate paused;
}
.torche .flamme, .torche .flamme::before {
  position: absolute; left: 50%; bottom: 82%; width: 13px; height: 22px; margin-left: -6.5px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff8d6 0%, #ffd77e 22%, #ff9d3d 48%, rgba(230,80,20,.85) 66%, rgba(200,50,10,0) 80%);
  transform-origin: 50% 100%; filter: drop-shadow(0 0 4px rgba(255,140,50,.8));
  animation: vacille var(--d1, 1.1s) ease-in-out infinite alternate paused;
}
@media (min-width: 700px) { .torche .flamme { width: 15px; height: 26px; margin-left: -7.5px; } }
.torche .flamme::before {
  content: ""; left: 30%; bottom: 18%; width: 60%; height: 70%; margin-left: 0;
  background: radial-gradient(ellipse at 50% 80%, #fffbe8 0%, #ffe39a 40%, rgba(255,180,80,0) 75%);
  filter: none; animation: langue var(--d3, .8s) ease-in-out infinite alternate paused;
}
.torche .etincelle {
  position: absolute; left: 50%; bottom: 105%; width: 2px; height: 2px; border-radius: 50%;
  background: #ffc069; box-shadow: 0 0 4px 1px rgba(255,140,40,.8); opacity: 0;
  animation: etincelle var(--d4, 2.6s) linear infinite paused;
}
.torche .etincelle + .etincelle { --dx: -7px; animation-delay: calc(var(--d4, 2.6s) * -.55); animation-duration: calc(var(--d4, 2.6s) * 1.3); }
.torche.vue .lueur, .torche.vue .flamme, .torche.vue .flamme::before, .torche.vue .etincelle { animation-play-state: running; }
@keyframes vacille {
  0%   { transform: scale(1, 1) skewX(0deg); }
  23%  { transform: scale(.94, 1.08) skewX(-3deg); }
  41%  { transform: scale(1.04, .95) skewX(2deg); }
  67%  { transform: scale(.97, 1.12) skewX(-1.5deg); }
  100% { transform: scale(1.02, .98) skewX(3deg); }
}
@keyframes langue { 0% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-2px) scaleY(1.15); } 100% { transform: translateY(1px) scaleY(.9); } }
@keyframes lueur { 0% { opacity: .75; transform: scale(.94); } 60% { opacity: 1; } 100% { opacity: .82; transform: scale(1.05); } }
@keyframes etincelle {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 6px), -34px); }
}
.titre { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.titre::after { flex-basis: 100%; }
.titre .texte-titre { max-width: calc(100% - 110px); }

/* Compte à rebours : les chiffres couvent comme des braises ; la case des secondes rougeoie à chaque tic */
.compte.vivant .n { animation: couve 3.6s ease-in-out infinite; }
.compte.vivant .case:nth-child(2) .n { animation-duration: 4.3s; animation-delay: -1.1s; }
.compte.vivant .case:nth-child(3) .n { animation-duration: 3.1s; animation-delay: -2.2s; }
.compte.vivant .case:nth-child(4) .n { animation-duration: 3.9s; animation-delay: -.6s; }
.compte .n.tic { animation: tic .9s ease-out; }
@keyframes couve { 0%, 100% { text-shadow: 0 0 10px rgba(255,157,61,.35); } 50% { text-shadow: 0 0 18px rgba(255,140,40,.7), 0 0 3px rgba(255,210,150,.6); } }
@keyframes tic { 0% { color: #ffd59a; text-shadow: 0 0 22px rgba(255,170,70,.95); } 100% { color: var(--accent); text-shadow: 0 0 12px rgba(255,157,61,.45); } }

/* ---------- Séquences du jeu (vidéos muettes en boucle, chargées à la demande) ---------- */
video.film { display: block; width: 100%; height: auto; background: var(--case); }
video.heros-film {   /* video. : plus fort que « video.film { height: auto } », sinon la vidéo ne couvre pas toute la hauteur */
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: 50% 50%;   /* = l'image fixe */
  opacity: 0; transition: opacity 1.2s ease;
}
video.heros-film.joue { opacity: 1; }
.cadre-image > video.film {
  border: 3px solid var(--trait); outline: 2px solid var(--metal-ombre); outline-offset: -5px;
  box-shadow: 0 10px 28px rgba(0,0,0,.6); aspect-ratio: 16 / 9; object-fit: cover;
}
.vignette { position: relative; }
.vignette video.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.vignette video.film.joue { opacity: 1; }
.marque-film {
  position: absolute; right: 8px; top: 8px; z-index: 1; padding: 0 7px; border-radius: 3px;
  background: rgba(15,12,10,.82); border: 1px solid var(--metal-ombre); color: var(--metal-clair);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
}

/* Onglet caché ou « réduire les animations » : tout s'arrête */
.repos .torche *, .repos .torche .flamme::before, .repos .compte .n { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .torche *, .torche .flamme::before, .compte .n { animation: none !important; }
  .torche .etincelle { display: none; }
  video.heros-film, .vignette video.film { display: none; }
}

/* ---------- Téléphone (vérification du 26 novembre 2026) ----------
   Le sommaire passe sur deux lignes au lieu de défiler (« L'allumeur » et « Avant la sortie » étaient cachés),
   le sélecteur de langue reste en haut à droite ; le fond du haut de page montre l'allumeur et son chien. */
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; row-gap: 0; padding-top: 4px; padding-bottom: 4px; }
  .nav { align-items: flex-start; }
  .nav ul {
    flex: 1 1 0; flex-wrap: wrap; justify-content: flex-start; overflow: visible; row-gap: 0;
    -webkit-mask-image: none; mask-image: none; padding-right: 0;
  }
  .nav ul a { padding: 5px 6px; font-size: .86rem; }
  .nav .langue { margin-top: 2px; font-size: .85rem; }
  .langue-choix { padding: 2px 5px; }
  .heros-fond img, video.heros-film { object-position: 66% 55%; }
}
