/* LA FEUILLE DU SITE DE FERAE. Son identité est celle de l'accueil du jeu (`prototype/interface-compacte.css`,
   `body.accueil-larme`) : le fond olive aux courbes de bronze, le cartouche à double filet, la porte d'or et les portes
   sombres, la police à pixels du jeu pour les titres. Le texte courant est en Alegreya Sans, la police du combat : une
   page entière en pixels fatigue.

   Aucune couleur de type ici : `construire.cjs` les ajoute à la fin, lues dans `prototype/types.js`. Aucun style dans
   les pages (la politique de sécurité du site les refuse) : tout passe par des classes. */

@font-face { font-family: 'Ferae Pixel'; src: url(polices/ferae-pixel.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url(polices/alegreya-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url(polices/alegreya-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --fond: #282C20; --fond-creux: #1E2219; --panneau: #263327; --panneau-2: #304237;
  --trait: #A48050; --trait-sombre: #706044; --texte: #F4E4C0; --doux: #D2C6A6;
  --or: #E8CC78; --or-bord: #B09352; --sur-or: #302719; --menthe: #9CD8CC;
  --pixel: 'Ferae Pixel', ui-monospace, 'Courier New', monospace;
  --courant: 'Alegreya Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --large: 1120px; --marge: clamp(16px, 4vw, 40px);
  --arc: linear-gradient(90deg, #E8452F, #F29B1C, #F2D21C, #5CC84A, #28B8C8, #3B6FE6, #8A4FD8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 18px/1.6 var(--courant); overflow-x: hidden; }
/* le fond du jeu, tenu derrière la page : en pseudo-élément, pour ne pas faire repeindre le défilement des téléphones */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--fond) url(images/fond-courbes.webp) center / cover no-repeat; }
@media (min-aspect-ratio: 1/1) { body::before { background-image: url(images/fond-courbes-large.webp); } }

img { max-width: 100%; height: auto; }
a { color: var(--or); text-underline-offset: 3px; }
a:hover { color: #FFE9A6; }
:focus-visible { outline: 2px solid var(--menthe); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(26px, 4.2vw, 38px); color: var(--menthe); }
h3 { font-size: clamp(20px, 2.6vw, 24px); color: var(--texte); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
small, .petit { font-size: 15px; color: var(--doux); }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--or); color: var(--sur-or); padding: 10px 16px; font-family: var(--pixel); }
.evitement:focus { left: 8px; top: 8px; }

/* ---------- l'en-tête ---------- */
.tete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px var(--marge);
  background: #1E2219F2; border-bottom: 1px solid var(--trait-sombre); }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font: 400 26px/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em; }
.marque img { image-rendering: pixelated; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu > a { color: var(--texte); text-decoration: none; font: 400 17px/1 var(--pixel); padding: 12px 12px; border-radius: 5px; }
.menu > a:hover { background: var(--panneau-2); }
.menu > a[aria-current=page] { color: var(--or); box-shadow: inset 0 -2px 0 var(--or); }
.menu .bouton { margin-left: 8px; min-height: 40px; padding: 8px 16px; font-size: 16px; }
.menu-bouton { display: none; margin-left: auto; font: 400 17px/1 var(--pixel); color: var(--texte); background: var(--panneau-2); border: 1px solid var(--trait); border-radius: 5px; padding: 12px 16px; min-height: 44px; }
@media (max-width: 860px) {
  .menu-bouton { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--marge) 16px;
    background: #1E2219FA; border-bottom: 1px solid var(--trait-sombre); }
  .menu.ouvert { display: flex; }
  .menu > a { padding: 14px 8px; font-size: 19px; border-bottom: 1px solid #70604455; border-radius: 0; }
  .menu .bouton { margin: 12px 0 0; }
}

/* ---------- les boutons : la porte d'or et les portes sombres de l'accueil du jeu ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  font: 400 19px/1.1 var(--pixel); text-decoration: none; text-align: center; color: var(--texte); background: var(--panneau-2);
  border: 1px solid var(--trait); border-radius: 5px; box-shadow: inset 0 0 0 2px #243027; cursor: pointer; }
.bouton:hover { color: var(--texte); background: #3A5044; }
.bouton.or { background: var(--or); color: var(--sur-or); box-shadow: inset 0 0 0 2px var(--or-bord); }
.bouton.or:hover { background: #F3DA8C; color: var(--sur-or); }
.bouton.attente { cursor: default; opacity: .78; }
.bouton.attente:hover { background: var(--panneau-2); }
.bouton.or.attente:hover { background: var(--or); }
.bouton small { font: 400 13px/1 var(--pixel); color: inherit; opacity: .8; border: 1px solid currentColor; border-radius: 3px; padding: 3px 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- le cartouche et les panneaux ---------- */
.cadre { background: #263327EE; border: 1px solid var(--trait); border-radius: 6px; box-shadow: inset 0 0 0 3px #263327, inset 0 0 0 4px var(--trait-sombre), 0 10px 30px #0006; padding: clamp(18px, 3vw, 32px); }
.section { max-width: var(--large); margin: 0 auto; padding: clamp(40px, 7vw, 84px) var(--marge); }
.section.etroite { max-width: 820px; }
.section > header { max-width: 720px; margin-bottom: clamp(20px, 3vw, 36px); }
.surtitre { font: 400 15px/1 var(--pixel); text-transform: uppercase; letter-spacing: .14em; color: var(--or); margin: 0 0 12px; }
.chapeau { font-size: clamp(19px, 2.2vw, 22px); color: var(--doux); }
.filet { height: 3px; width: 120px; background: var(--arc); border: 0; border-radius: 2px; margin: 0 0 22px; }

/* ---------- le haut de l'accueil : l'arène de la plaine, les trois starters au repos, le cartouche du jeu ---------- */
.hero { position: relative; }
/* l'image fait 1536 × 1024 : son horizon (collines, chaumière) est entre 20 et 36 % de sa hauteur, l'herbe dessous. Sur
   un écran large elle est rognée en hauteur ; on la cale haut, pour garder l'horizon et laisser les starters dans l'herbe */
.hero-scene { position: relative; height: clamp(360px, 62vh, 640px); overflow: hidden; background: #87A9E8 url(images/hero-plaine.webp) center 20% / cover no-repeat; image-rendering: pixelated; }
.hero-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, #282C2000, #282C20 92%); }
/* Les starters se rangent dans une bande : le premier à son bord gauche, le dernier à son bord droit, le deuxième au
   milieu, un peu plus haut. Sur un grand écran, la bande part du bord droit du cartouche (il finit à 50 % − 20 px) et
   s'arrête à 16 px du bord de l'écran, 800 px au plus : à 1 400 px de large, deux voisins ne se couvrent que de 20 px. */
.hero-ferae { --bord: 0px; position: absolute; left: calc(50% - 12px); bottom: 13%; width: min(800px, calc(50% - 4px)); height: 0; z-index: 1; }
.hero-ferae .sprite { position: absolute; bottom: 0; }
.hero-ferae .sprite-brindon { left: var(--bord); }
.hero-ferae .sprite-aquin { left: calc(50% - var(--t) / 2); bottom: 34px; }
.hero-ferae .sprite-flammot { left: calc(100% - var(--bord) - var(--t)); }
.hero-texte { position: relative; z-index: 2; max-width: var(--large); margin: clamp(-300px, -34vh, -150px) auto 0; padding: 0 var(--marge); }
.hero-texte .cadre { max-width: 500px; text-align: center; }
.embleme { width: 132px; height: 132px; margin: 0 auto 6px; animation: flotte 3.6s ease-in-out infinite; }
.embleme img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero h1 { font-size: clamp(60px, 13vw, 96px); text-transform: uppercase; letter-spacing: .09em; margin: 0 0 6px; color: var(--texte); padding-left: .09em; }
.hero h1::after { content: ""; display: block; height: 4px; width: 62%; margin: 8px auto 0; background: var(--arc); border-radius: 2px; }
.slogan { font-size: clamp(20px, 2.4vw, 24px); margin: 14px 0 12px; font-weight: 700; }
.statut { display: inline-block; font: 400 15px/1.2 var(--pixel); color: var(--menthe); border: 1px solid #9CD8CC66; border-radius: 4px; padding: 6px 10px; margin: 0; }
.hero .actions { justify-content: center; }
/* sous 1 400 px, trois starters ne tiennent plus à côté du cartouche sans se couvrir : il passe sous la scène, qu'ils
   occupent en entier, dans une bande centrée de 1 000 px au plus */
@media (max-width: 1399px) {
  .hero-scene { height: 420px; background-position: 38% 34%; }
  .hero-ferae { --bord: 3%; left: 50%; bottom: 30%; width: min(100%, 1000px); transform: translateX(-50%); }
  .hero-ferae .sprite-aquin { bottom: 22px; }
  .hero-texte { margin-top: -96px; }
  .hero-texte .cadre { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .hero-scene { height: 330px; }
  .hero-ferae { bottom: 26%; width: min(100%, 560px); }   /* des starters de 128 px : la bande se resserre avec eux */
  .hero-ferae .sprite-aquin { bottom: 14px; }
  .hero-texte { margin-top: -84px; }
  .hero-texte .cadre { max-width: none; }
  .embleme { width: 96px; height: 96px; }
}
/* sur un téléphone, trois starters de 128 px vont d'un bord à l'autre de l'écran */
@media (max-width: 480px) { .hero-ferae { --bord: 0px; } }

/* ---------- un Ferae au repos : les seize images de sa bande du jeu, l'une après l'autre ---------- */
.sprite { --t: 256px; width: var(--t); height: var(--t); background-repeat: no-repeat; background-size: calc(var(--t) * 16) var(--t); image-rendering: pixelated;
  animation: repos 2.4s steps(16) infinite; filter: drop-shadow(0 8px 6px #0006); }
.sprite-aquin { background-image: url(images/ferae/anim/aquin.webp); }
.sprite-brindon { background-image: url(images/ferae/anim/brindon.webp); }
.sprite-flammot { background-image: url(images/ferae/anim/flammot.webp); }
@keyframes repos { to { background-position-x: calc(var(--t) * -16); } }
.sprite.en-pause { animation-play-state: paused; }
@media (max-width: 860px) { .sprite { --t: 128px; } }

/* ---------- texte et téléphone côte à côte ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.duo.inverse { grid-template-columns: auto minmax(0, 1fr); }
.duo.inverse > .duo-texte { order: 2; }
.duo-texte h2 { margin-bottom: .4em; }
.telephone { margin: 0; width: min(300px, 74vw); aspect-ratio: 375 / 834; border-radius: 30px; border: 4px solid #0E100C; outline: 1px solid var(--trait-sombre);
  box-shadow: 0 18px 40px #0009; overflow: hidden; background: #000; }
.telephone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.telephones { display: flex; gap: clamp(12px, 2vw, 24px); justify-content: center; }
.telephones .telephone { width: min(264px, 40vw); border-radius: 26px; }
.telephones .telephone:nth-child(2) { margin-top: 44px; }
@media (max-width: 860px) {
  .duo, .duo.inverse { grid-template-columns: minmax(0, 1fr); }
  .duo.inverse > .duo-texte { order: 0; }
  .duo > .telephone, .duo > .telephones { justify-self: center; }
  .telephones .telephone { width: min(46vw, 240px); border-radius: 22px; border-width: 3px; }
  .telephones .telephone:nth-child(2) { margin-top: 28px; }
}
.points { list-style: none; padding: 0; margin: 18px 0 0; }
.points li { position: relative; padding-left: 26px; margin: 10px 0; }
.points li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 10px; background: var(--or); transform: rotate(45deg); box-shadow: 0 0 0 2px #302719; }

/* ---------- les chiffres ---------- */
.chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.chiffres li { margin: 0; text-align: center; background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; padding: 18px 8px 14px; }
.chiffres b { display: block; font: 400 clamp(34px, 5vw, 48px)/1 var(--pixel); color: var(--or); }
.chiffres span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.25; color: var(--doux); }
@media (max-width: 860px) { .chiffres { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }

/* ---------- les pastilles de type, comme en combat ---------- */
.typ { display: inline-block; font: 400 14px/1 var(--pixel); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px 4px; margin: 0 4px 4px 0;
  background: var(--c, #666); color: var(--e, #fff); border: 0; border-radius: 3px; box-shadow: 0 0 0 1px #0008; white-space: nowrap; }
.types { margin: 0 0 8px; }
.rien { color: var(--doux); font-style: italic; }

/* ---------- les starters ---------- */
.starters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte-starter { margin: 0; text-align: center; background: #263327EE; border: 1px solid var(--trait); border-radius: 6px; padding: 8px 18px 20px; box-shadow: inset 0 0 0 3px #263327, inset 0 0 0 4px var(--trait-sombre); }
.carte-starter .sprite { --t: 256px; margin: 0 auto -6px; max-width: 100%; }
.carte-starter h3 { margin-bottom: 8px; font-size: 28px; }
.carte-starter .chemin { font: 400 15px/1.2 var(--pixel); color: var(--menthe); margin-bottom: 10px; }
.carte-starter p:last-child { margin: 0; color: var(--doux); font-size: 17px; }
@media (max-width: 860px) { .starters { grid-template-columns: 1fr; } .carte-starter .sprite { --t: 128px; margin-bottom: 2px; } }
@media (min-width: 861px) and (max-width: 1040px) { .carte-starter .sprite { --t: 128px; } }

/* ---------- le bestiaire entrouvert ---------- */
.grille-ferae { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.carte-ferae { margin: 0; background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; padding: 12px 14px 16px; }
.carte-ferae .portrait { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; border-radius: 4px; background: radial-gradient(circle at 50% 62%, #3F4C2E 0, #1E2219 72%); }
.carte-ferae .portrait img { width: 88%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 4px #0007); }
.carte-ferae h3 { margin-bottom: 6px; }
.carte-ferae p { margin: 0 0 6px; font-size: 16px; line-height: 1.4; color: var(--doux); }
.carte-ferae .ou { font: 400 13px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--menthe); }
.carte-ferae.inconnu { border-style: dashed; }
.carte-ferae.inconnu .portrait img { filter: none; opacity: .9; }
.carte-ferae.inconnu h3 { color: var(--doux); letter-spacing: .2em; }
@media (max-width: 480px) { .grille-ferae { grid-template-columns: repeat(2, 1fr); gap: 10px; } .carte-ferae { padding: 8px 10px 12px; } }

/* ---------- la table des éléments ---------- */
.table-types { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.choix-types { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-types .typ { margin: 0; font-size: 16px; padding: 10px 12px 9px; min-height: 40px; cursor: pointer; opacity: .82; }
.choix-types .typ:hover { opacity: 1; }
.choix-types .typ[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px var(--or); }
.panneau-type { background: #263327EE; border: 1px solid var(--trait); border-radius: 6px; padding: 18px 20px; min-height: 280px; }
.panneau-type h3 .typ { font-size: 20px; padding: 8px 12px 7px; }
.panneau-type dl { margin: 0; }
.panneau-type dt { font: 400 15px/1.2 var(--pixel); color: var(--menthe); margin: 14px 0 8px; }
.panneau-type dd { margin: 0; }
@media (max-width: 860px) { .table-types { grid-template-columns: 1fr; } }

/* ---------- les biomes ---------- */
.grille-biomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.carte-biome { margin: 0; background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; overflow: hidden; }
.carte-biome img { display: block; width: 100%; aspect-ratio: 750 / 560; object-fit: cover; }
.carte-biome div { padding: 12px 14px 12px; }
.carte-biome h3 { margin-bottom: 4px; }
.carte-biome .ou { margin: 0 0 10px; font-size: 16px; color: var(--doux); }
.carte-biome .types { margin: 0; }

/* ---------- listes du jeu ---------- */
.paliers { list-style: none; counter-reset: palier; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.paliers li { counter-increment: palier; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; padding: 12px 14px; }
.paliers li::before { content: counter(palier); grid-row: span 2; font: 400 30px/1 var(--pixel); color: var(--or); width: 1.2em; text-align: center; }
.paliers b { font: 400 20px/1.1 var(--pixel); }
.paliers span { grid-column: 2; color: var(--doux); font-size: 16px; }
.paliers .typ { display: none; }
.liste-noms, .liste-ecoles { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.liste-noms li, .liste-ecoles li { margin: 0; background: var(--panneau-2); border: 1px solid var(--trait-sombre); border-radius: 4px; padding: 7px 12px; font: 400 16px/1.2 var(--pixel); }
.liste-ecoles li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 6px; }
.liste-ecoles .typ { margin: 0 4px 0 0; }
.liste-ecoles b { font-weight: 400; }

/* ---------- la citation de l'univers ---------- */
.recit { max-width: 760px; margin: 0 auto; }
.recit blockquote { margin: 0; padding: clamp(20px, 4vw, 36px); background: #1E2219E6; border-left: 4px solid var(--or); border-radius: 0 6px 6px 0; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.6; }
.recit blockquote p:last-child { margin: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; justify-items: center; margin-top: 28px; }
.galerie .telephone { width: 100%; max-width: 250px; border-radius: 24px; }
.galerie figure { margin: 0; text-align: center; width: 100%; max-width: 250px; }
.galerie figcaption { margin-top: 10px; font-size: 16px; color: var(--doux); line-height: 1.3; }
.bandeau { background: #1E2219D9; border-top: 1px solid var(--trait-sombre); border-bottom: 1px solid var(--trait-sombre); }

/* ---------- le journal ---------- */
.note { background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; padding: 20px 24px; margin: 0 0 16px; scroll-margin-top: 80px; }
.note h2, .note h3 { color: var(--texte); font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 4px; }
.note .version { font: 400 14px/1.2 var(--pixel); color: var(--or); margin-bottom: 12px; }
.note ul { margin: 0; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.dernieres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note.courte { margin: 0; display: flex; flex-direction: column; }
.note.courte p { font-size: 17px; color: var(--doux); }
.note.courte p:last-child { margin-top: auto; }
@media (max-width: 860px) { .dernieres { grid-template-columns: 1fr; } }

/* ---------- questions ---------- */
details { background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; margin: 0 0 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font: 400 clamp(18px, 2.2vw, 21px)/1.3 var(--pixel); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--pixel); color: var(--or); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 18px; color: var(--doux); }
details > div p:last-child { margin: 0; }

/* ---------- pages de texte ---------- */
.texte h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.6em; padding-bottom: 6px; border-bottom: 1px solid var(--trait-sombre); }
.texte h1 { font-size: clamp(34px, 6vw, 52px); color: var(--texte); }
.texte .cadre { box-shadow: inset 0 0 0 3px #263327, inset 0 0 0 4px var(--trait-sombre); margin: 22px 0; padding: 16px 20px; }
.texte .anglais { margin-top: 38px; font-size: 16px; color: var(--doux); }
.titre-page { max-width: var(--large); margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--marge) 0; }
.titre-page h1 { font-size: clamp(40px, 7vw, 64px); color: var(--texte); margin-bottom: 14px; }
.titre-page .chapeau { max-width: 760px; margin-bottom: 0; }
.fiche { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 20px; }
.fiche dt { font: 400 15px/1.3 var(--pixel); color: var(--menthe); }
.fiche dd { margin: 0; }
@media (max-width: 560px) { .fiche { grid-template-columns: 1fr; gap: 2px; } .fiche dd { margin-bottom: 12px; } }
.telechargements { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.telechargements li { margin: 0; background: #263327EE; border: 1px solid var(--trait-sombre); border-radius: 6px; padding: 12px; text-align: center; }
.telechargements img { display: block; margin: 0 auto 10px; max-height: 190px; width: auto; border-radius: 4px; }
.telechargements a { font: 400 16px/1.2 var(--pixel); }

/* ---------- l'appel de fin et le pied ---------- */
.appel { text-align: center; }
.appel .cadre { max-width: 760px; margin: 0 auto; }
.appel .actions { justify-content: center; }
.pied { margin-top: 40px; background: #1E2219F2; border-top: 1px solid var(--trait-sombre); padding: 40px var(--marge) 24px; }
.pied-colonnes { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.pied h2 { font-size: 17px; color: var(--menthe); margin-bottom: 10px; }
.pied nav a { display: block; padding: 5px 0; color: var(--texte); text-decoration: none; font-size: 17px; overflow-wrap: anywhere; }
.pied nav a:hover { color: var(--or); text-decoration: underline; }
.pied-marque { display: flex; align-items: center; gap: 10px; font: 400 24px/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.pied-marque img { image-rendering: pixelated; }
.pied p { color: var(--doux); font-size: 17px; }
.pied-bas { max-width: var(--large); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid #70604455; font-size: 15px !important; }
@media (max-width: 860px) { .pied-colonnes { grid-template-columns: 1fr 1fr; } .pied-colonnes > div { grid-column: 1 / -1; } }

/* ---------- pour qui demande moins de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sprite, .embleme { animation: none; }
}
@media print { body::before, .tete, .pied nav, .hero-scene { display: none; } body { background: #fff; color: #000; } }

/* les couleurs des types, lues dans prototype/types.js à la construction */
.t-feu{--c:#e8542f;--e:#2a0b02}
.t-eau{--c:#3b8ee6;--e:#06203d}
.t-nature{--c:#5cad3f;--e:#0f2a06}
.t-foudre{--c:#f2c31c;--e:#2a2200}
.t-glace{--c:#8fd8e8;--e:#0b2a33}
.t-terre{--c:#c29a52;--e:#2a1d08}
.t-vent{--c:#9fb8e0;--e:#14213a}
.t-roche{--c:#a8925a;--e:#221a08}
.t-poison{--c:#9b4fb5;--e:#fff}
.t-insecte{--c:#9fb82a;--e:#1c2200}
.t-tenebres{--c:#4a3d5c;--e:#f1e6ff}
.t-esprit{--c:#c98adf;--e:#2a0d36}
.t-lumiere{--c:#f6e7a1;--e:#4a3a08}
.t-metal{--c:#a9b3bd;--e:#1c2228}
.t-dragon{--c:#5d4fd1;--e:#fff}
.t-combat{--c:#c04a3a;--e:#fff}
.t-acide{--c:#8fe33c;--e:#173000}
.t-brume{--c:#c9d6d8;--e:#26363a}
