/* Nimoria Apocalypse — la tôle du poste de survivants (21/09/2026)
   D'après les maquettes des futurs menus du jeu : plaques de métal rivetées et
   rouillées, bandes de danger jaune et noir, pochoir, fiches de papier punaisées.
   Chargée APRÈS la feuille de chaque page : elle ne fait qu'habiller.
   Une seule audace : la plaque-menu de l'accueil, posée sur la ville. */

@font-face {
  font-family: "Big Shoulders Stencil Display";
  src: url("/site/polices/big-shoulders-stencil-display-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("/site/polices/permanent-marker-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

:root {
  --tole: #2c302b;
  --tole-claire: #3d423b;
  --tole-sombre: #1a1d19;
  --rouille: #7a4a2a;
  --rubalise: #f2c21b;
  --papier: #e2d5b6;
  --papier-ombre: #cdbf9d;
  --punaise: #b3261e;
  --braise: #e8874f;
  --pochoir: "Big Shoulders Stencil Display", "Big Shoulders Display", system-ui, sans-serif;
  --feutre: "Permanent Marker", "Big Shoulders Display", cursive;
  /* grain de métal, sans image externe */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --rivet: radial-gradient(circle at 40% 35%, #b3afa2 0 1.4px, #6d6a60 2.2px, #2b2b27 3.2px, transparent 3.8px);
  --rayures: repeating-linear-gradient(-45deg, var(--rubalise) 0 12px, #151511 12px 24px);
}


/* ------------------------------------------------ le fond : une palette de bois --- */
/* Texture générée par img/src/generer-palette.py (raccordable, 1024 × 768). */
:root {
  --palette: url("/apocalypse/img/palette-20260921.webp");
  --sang-coulure: url("/apocalypse/img/sang-coulure-20260921.webp");
  --sang-trainee: url("/apocalypse/img/sang-trainee-20260921.webp");
  --sang-eclat: url("/apocalypse/img/sang-3.png");
}
body {
  position: relative;
  background: linear-gradient(rgba(14, 12, 9, .6), rgba(14, 12, 9, .6)), var(--palette) repeat;
  background-size: auto, 1024px 768px;
  background-color: #14120f;
}
/* du sang sur les planches, derrière le contenu */
body::before, body::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; background-repeat: no-repeat; background-size: contain;
}
html { overflow-x: clip; }
body::before, body::after { max-width: 55vw; }
/* les petits textes posés à même le bois : une ombre pour rester lisibles */
.reg-soustitre, .reg-chapeau, .reg-note, .etat-chapeau, .etat-note, .wiki-entete p, .mur-entete p, .affiche-defilement { text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .6); }
.reg-comment .reg-note { text-shadow: none; }
body::before { top: 34%; right: 2%; width: 15rem; height: 25rem; background-image: var(--sang-coulure); opacity: .72; }
body::after { top: 68%; left: 1%; width: 26rem; height: 13rem; background-image: var(--sang-trainee); opacity: .6; transform: rotate(-8deg); }
main, .pied, .bandeau { position: relative; z-index: 1; }
.bandeau { position: sticky; z-index: 10; }
.pied { background: rgba(14, 12, 9, .85); }

/* ------------------------------------------------------- la tôle rivetée --- */
.tole {
  position: relative;
  background:
    var(--rivet) no-repeat left 7px top 7px / 12px 12px,
    var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--rivet) no-repeat left 7px bottom 7px / 12px 12px,
    var(--rivet) no-repeat right 7px bottom 7px / 12px 12px,
    radial-gradient(60% 40% at 88% 100%, rgba(122, 74, 42, .45), transparent 70%),
    radial-gradient(40% 30% at 6% 0%, rgba(122, 74, 42, .3), transparent 70%),
    var(--grain),
    linear-gradient(165deg, #434840 0%, var(--tole) 45%, #252823 100%);
  border: 2px solid #11130f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 4px rgba(0, 0, 0, .22), 0 14px 30px rgba(0, 0, 0, .5);
}
.rayures { background: var(--rayures); }

/* ------------------------------------------------------------- bandeau --- */
.bandeau {
  background: var(--grain), linear-gradient(180deg, #30342f, #22251f);
  border-bottom: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.bandeau::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px;
  background: var(--rayures); opacity: .9;
}
.navigation a { font-family: var(--pochoir); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; }
.navigation-appel {
  font-family: var(--pochoir); font-weight: 800; letter-spacing: .04em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 2px 2px 0 rgba(0, 0, 0, .5);
}

/* ------------------------------------------------ boutons de tôle à chevron --- */
.bouton-tole {
  position: relative; display: flex; align-items: center; gap: .85rem;
  min-height: 3rem; padding: .4rem 2.6rem .4rem 1rem;
  font-family: var(--pochoir); font-weight: 800; font-size: 1.35rem; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: #e9e4d6;
  background: var(--grain), linear-gradient(180deg, #474c45 0%, #30342f 55%, #262924 100%);
  border: 2px solid #0f110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -3px 0 rgba(0, 0, 0, .35), 3px 3px 0 rgba(0, 0, 0, .55);
  transition: transform .1s ease, filter .15s ease;
}
.bouton-tole::after {
  content: "›"; position: absolute; right: .9rem; top: 50%; transform: translateY(-54%);
  font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 1.7rem; opacity: .85;
}
.bouton-tole svg { flex: none; width: 1.55rem; height: 1.55rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.bouton-tole small { display: block; margin-top: .2rem; font-family: "Public Sans", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: 0; text-transform: none; opacity: .75; }
.bouton-tole:hover { filter: brightness(1.18); color: #fff; }
.bouton-tole:active { transform: translate(2px, 2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 1px 1px 0 rgba(0, 0, 0, .55); }
.bouton-tole-jaune {
  color: #17150f;
  /* pas de grain sombre ici : il salit le jaune */
  background:
    radial-gradient(22% 70% at 97% 95%, rgba(90, 55, 10, .28), transparent 70%),
    linear-gradient(180deg, #ffd84a 0%, var(--rubalise) 55%, #e2b213 100%);
  border-color: #3a2c04;
}
.bouton-tole-jaune:hover { color: #000; }

/* ------------------------------------------------------ plaques de titre --- */
.plaque-titre {
  position: relative; display: inline-flex; align-items: center;
  margin: 0; padding: .55rem 3.6rem;
  font-family: var(--pochoir); font-weight: 800; line-height: 1; letter-spacing: .06em;
  text-transform: uppercase; color: #e6e0cf;
  background: var(--grain), linear-gradient(180deg, #454a43, #2b2f2a);
  border: 2px solid #0f110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 18px rgba(0, 0, 0, .45);
}
.plaque-titre::before, .plaque-titre::after {
  content: ""; position: absolute; top: 5px; bottom: 5px; width: 2.4rem;
  background: var(--rayures); border: 1px solid rgba(0, 0, 0, .5);
}
.plaque-titre::before { left: 5px; }
.plaque-titre::after { right: 5px; }

/* --------------------------------------------- étiquettes griffonnées --- */
.feutre { font-family: var(--feutre); font-weight: 400; letter-spacing: .01em; }
.etiquette {
  display: inline-block; margin: 0;
  padding: .45rem .9rem .4rem;
  font-family: var(--feutre); font-size: 1rem; line-height: 1.15; color: #26221b;
  background: linear-gradient(176deg, #ece2c9, #d6c9a6);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .4);
  transform: rotate(-1.6deg);
}

/* =========================================================== L'ACCUEIL === */
.affiche-poste { align-items: stretch; min-height: min(94vh, 50rem); }
.affiche-poste::after {
  background:
    linear-gradient(90deg, rgba(20, 18, 15, .78) 0%, rgba(20, 18, 15, .35) 38%, rgba(20, 18, 15, 0) 60%),
    linear-gradient(180deg, rgba(20, 18, 15, .45) 0%, rgba(20, 18, 15, 0) 22%, rgba(20, 18, 15, 0) 70%, var(--goudron) 100%);
}
.affiche-poste .affiche-fond img { object-position: 60% 40%; }
.poste-cadre {
  position: relative; z-index: 1;
  width: min(100%, 84rem); margin: 0 auto;
  padding: clamp(4.5rem, 9vh, 6rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vh, 4rem);
  display: flex; align-items: center;
}
.poste {
  background:
    var(--sang-coulure) no-repeat left 48% top -6px / 4.6rem auto,
    var(--sang-eclat) no-repeat right -2.2rem bottom -2rem / 7rem 7rem,
    var(--rivet) no-repeat left 7px top 7px / 12px 12px,
    var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--rivet) no-repeat left 7px bottom 7px / 12px 12px,
    var(--rivet) no-repeat right 7px bottom 7px / 12px 12px,
    radial-gradient(60% 40% at 88% 100%, rgba(122, 74, 42, .45), transparent 70%),
    var(--grain),
    linear-gradient(165deg, #434840 0%, var(--tole) 45%, #252823 100%);
  width: min(100%, 27.5rem);
  padding: 1.3rem 1.3rem 1.2rem;
  display: grid; gap: .65rem;
}
/* bandes de danger sur la tranche gauche, comme sur la maquette */
.poste::before {
  content: ""; position: absolute; left: -14px; top: 12%; bottom: 12%; width: 12px;
  background: var(--rayures); border: 2px solid #11130f;
}
.poste-tete { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; }
.poste h1 { margin: 0; }
.poste-logo { width: 6.2rem; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.poste-devise {
  margin: 0; justify-self: end; text-align: right;
  font-family: var(--pochoir); font-weight: 700; font-size: 1rem; line-height: 1.25; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(233, 228, 214, .72);
}
.poste-devise span { display: block; font-size: 2rem; line-height: 1; color: var(--rubalise); letter-spacing: 0; }
.poste .etiquette { justify-self: start; }
.poste-phrase { margin: 0; color: rgba(236, 228, 210, .82); font-size: .98rem; line-height: 1.5; }
.poste-menu { display: grid; gap: .55rem; margin-top: .2rem; }
.poste .releve {
  display: grid; gap: .45rem; margin: .3rem 0 0; padding: .6rem .75rem;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
}
.poste .adresse { justify-content: space-between; width: 100%; }
.affiche-griffon {
  position: absolute; z-index: 1; right: clamp(1rem, 5vw, 4rem); bottom: clamp(3.5rem, 9vh, 6rem);
  margin: 0; padding: .7rem 1.2rem;
  font-family: var(--feutre); font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.05; color: #2a251c;
  background: linear-gradient(170deg, #e7dcc2, #cdbf9b);
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .4);
  transform: rotate(-4deg);
}
.affiche-griffon::before {
  content: ""; position: absolute; top: -.5rem; left: 50%; width: 1rem; height: 1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e2564a, #7c1410 70%); box-shadow: 0 3px 5px rgba(0, 0, 0, .5);
}
@media (max-width: 52rem) {
  .poste-cadre { justify-content: center; padding-top: 4.5rem; }
  .affiche-poste::after { background: linear-gradient(180deg, rgba(20, 18, 15, .5), rgba(20, 18, 15, .25) 40%, var(--goudron) 100%); }
  .affiche-griffon { display: none; }
  .poste::before { display: none; }
}

/* ------------------------------------------- le mur, cadré comme un tableau --- */
.mur { background: linear-gradient(rgba(14, 12, 9, .3), rgba(14, 12, 9, .45)), var(--palette) repeat; background-size: auto, 1024px 768px; }
.mur::before { background-image: var(--sang-coulure); width: 16rem; height: 27rem; top: -1rem; right: 1%; transform: none; opacity: .8; }
.mur::after { background-image: var(--sang-trainee); width: 24rem; height: 12rem; bottom: 1rem; left: -2rem; transform: rotate(12deg); opacity: .65; }
.mur-cadre {
  background:
    var(--sang-trainee) no-repeat right 3% bottom 2px / 16rem auto,
    var(--rivet) no-repeat left 7px top 7px / 12px 12px,
    var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--rivet) no-repeat left 7px bottom 7px / 12px 12px,
    var(--rivet) no-repeat right 7px bottom 7px / 12px 12px,
    radial-gradient(40% 30% at 6% 0%, rgba(122, 74, 42, .3), transparent 70%),
    var(--grain),
    linear-gradient(165deg, #434840 0%, var(--tole) 45%, #252823 100%);
  position: relative; max-width: 86rem; margin: 0 auto;
  padding: 0 clamp(.8rem, 2.4vw, 1.6rem) clamp(1.6rem, 3vw, 2.4rem);
}
.mur-entete { max-width: none; margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); display: grid; justify-items: center; gap: .7rem; }
.mur-entete .plaque-titre { font-size: clamp(1.6rem, 3.8vw, 2.6rem); transform: translateY(-50%); margin-bottom: -.8rem; }
.mur-entete p { color: rgba(236, 228, 210, .72); }
/* le fond du tableau : une vieille carte du secteur, quadrillée et tachée */
.mur-planche {
  position: relative; padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2.5vw, 2rem);
  background:
    radial-gradient(35% 25% at 20% 30%, rgba(60, 40, 20, .35), transparent 70%),
    radial-gradient(30% 30% at 80% 70%, rgba(60, 40, 20, .3), transparent 70%),
    repeating-linear-gradient(0deg, rgba(40, 30, 18, .22) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(40, 30, 18, .22) 0 1px, transparent 1px 38px),
    var(--grain),
    linear-gradient(170deg, #6d5e45, #54482f);
  border: 3px solid #11130f;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55);
}
.avis::before { background: radial-gradient(circle at 35% 30%, #ef5a4c, #7c1410 70%); }
.avis h3, .avis-tampon { font-family: var(--pochoir); }

/* quelques avis tachés : une éclaboussure dans un coin, sous le texte */
.avis:nth-child(4n+3):not(.avis-sang):not(.avis-archives) {
  background: var(--sang-eclat) no-repeat right -2.4rem top -2.2rem / 8rem 8rem, linear-gradient(174deg, var(--papier) 0%, var(--papier-ombre) 100%);
}
.avis:nth-child(5n+2):not(.avis-sang):not(.avis-archives):not(.avis-urgent) {
  /* à droite : le bouton est en bas à gauche, la traînée ne doit pas le salir */
  background: var(--sang-trainee) no-repeat right -2rem top .4rem / 10rem auto, linear-gradient(174deg, var(--papier) 0%, var(--papier-ombre) 100%);
}

/* ============================================================ LE REGISTRE === */
.reg-entete h1, .etat-entete h1, .wiki-entete h1 { font-family: var(--pochoir); letter-spacing: .02em; }
.reg-section > h2, .etat-page .section > h2 {
  display: inline-flex; align-items: center; position: relative;
  padding: .45rem 3.2rem; margin-bottom: .9rem;
  font-family: var(--pochoir); font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: .05em; text-transform: uppercase;
  color: #e6e0cf;
  background: var(--grain), linear-gradient(180deg, #454a43, #2b2f2a);
  border: 2px solid #0f110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .4);
}
.reg-section > h2::before, .reg-section > h2::after,
.etat-page .section > h2::before, .etat-page .section > h2::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; width: 2rem; background: var(--rayures); border: 1px solid rgba(0, 0, 0, .5);
}
.reg-section > h2::before, .etat-page .section > h2::before { left: 4px; }
.reg-section > h2::after, .etat-page .section > h2::after { right: 4px; }
.reg-sous { font-family: var(--pochoir); }

/* les compagnies : des plaques rivetées */
.reg-cie {
  background:
    var(--rivet) no-repeat left 7px top 7px / 12px 12px, var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--rivet) no-repeat left 7px bottom 7px / 12px 12px, var(--rivet) no-repeat right 7px bottom 7px / 12px 12px,
    radial-gradient(50% 40% at 90% 100%, rgba(122, 74, 42, .4), transparent 70%),
    var(--grain), linear-gradient(165deg, #434840, var(--tole) 50%, #252823);
  border: 2px solid #11130f; border-left: 8px solid var(--rouille);
  padding-left: 1.6rem;
}
.reg-cie-nom { font-family: var(--pochoir); letter-spacing: .02em; }

/* les contrats : des fiches de mission punaisées */
.reg-contrat {
  position: relative; color: #26221b;
  background: linear-gradient(174deg, var(--papier), var(--papier-ombre));
  border: 0; border-top: 0;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, .35), 0 14px 24px rgba(0, 0, 0, .3);
  padding-top: 1.5rem;
}
.reg-contrat:nth-child(odd) { transform: rotate(-.7deg); }
.reg-contrat:nth-child(3n+2) { background: var(--sang-eclat) no-repeat right -2rem bottom -2rem / 7rem 7rem, linear-gradient(174deg, var(--papier), var(--papier-ombre)); }
.reg-contrat:nth-child(even) { transform: rotate(.6deg); }
.reg-contrat::before {
  content: ""; position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%);
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef5a4c, #7c1410 70%); box-shadow: 0 3px 5px rgba(0, 0, 0, .5);
}
.reg-contrat .reg-type { color: #6a5d45; }
.reg-contrat .reg-prix { color: #8c1410; font-family: var(--pochoir); }
.reg-contrat .reg-prix small { color: #6a5d45; }
.reg-contrat .reg-desc { color: #26221b; font-weight: 600; }
.reg-contrat .reg-meta { color: #5a5040; }
.reg-contrat.reg-colonie .reg-type { color: #2f5130; }
.reg-encours { opacity: 1; }
.reg-encours .reg-etat {
  position: absolute; right: .9rem; bottom: .8rem;
  font-family: var(--pochoir); font-weight: 800; font-size: 1rem; letter-spacing: .08em;
  color: rgba(179, 38, 30, .85); border: 3px solid rgba(179, 38, 30, .75); padding: .05rem .45rem;
  transform: rotate(-9deg); background: rgba(226, 213, 182, .5);
}
.reg-vide { background: rgba(0, 0, 0, .25); border-color: rgba(236, 228, 210, .2); }

/* secteurs, relais, économie : de petites plaques */
.reg-secteur, .reg-economie {
  background: var(--grain), linear-gradient(165deg, #3f443d, #282b26);
  border: 2px solid #11130f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 16px rgba(0, 0, 0, .35);
}
.reg-secteur { border-left: 7px solid #7bc043; }
.reg-relais-libre { border-left-color: var(--rubalise); }
.reg-relais-majeur { border: 2px solid var(--rubalise); box-shadow: 0 0 0 1px #11130f, 0 0 18px rgba(242, 194, 27, .25); }
.reg-eco-chiffre { font-family: var(--pochoir); }
.reg-jauge-barre { height: .8rem; border: 2px solid #11130f; background: #151713; }

/* le mode d'emploi : des feuilles de papier */
.reg-comment {
  color: #26221b;
  background: linear-gradient(176deg, var(--papier), var(--papier-ombre));
  border: 0; box-shadow: 5px 7px 0 rgba(0, 0, 0, .35);
}
.reg-comment h3 { color: #1d1a15; font-family: var(--pochoir); }
.reg-comment ol { color: #3b352b; }
.reg-comment .reg-note { color: #5a5040; }
.reg-comment code { background: #26221b; color: var(--rubalise); border-color: #11130f; }

/* ================================================================ L'ÉTAT === */
.etat-carte {
  background:
    var(--rivet) no-repeat left 7px top 7px / 12px 12px, var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--grain), linear-gradient(165deg, #434840, var(--tole) 50%, #252823);
  border: 2px solid #11130f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 20px rgba(0, 0, 0, .4);
}
.etat-valeur { font-family: var(--pochoir); }

/* les onglets du classement : des boutons de tôle, le choisi en jaune */
.podium-onglet {
  font-family: var(--pochoir); font-weight: 800; font-size: 1.02rem; letter-spacing: .06em;
  color: #e9e4d6; padding: .5rem 1rem;
  background: var(--grain), linear-gradient(180deg, #474c45 0%, #30342f 55%, #262924 100%);
  border: 2px solid #0f110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -3px 0 rgba(0, 0, 0, .35), 2px 2px 0 rgba(0, 0, 0, .55);
}
.podium-onglet:hover { border-color: #0f110d; filter: brightness(1.18); color: #fff; }
.podium-onglet[aria-selected="true"] {
  color: #17150f; border-color: #3a2c04;
  background: linear-gradient(180deg, #ffd84a 0%, var(--rubalise) 55%, #e2b213 100%);
}
/* le podium : trois fiches punaisées, un ruban de la couleur du rang */
.podium-place {
  position: relative; color: #26221b;
  background: linear-gradient(174deg, var(--papier), var(--papier-ombre));
  border: 0; border-top: 0; padding: 1.5rem 1.2rem 1.2rem;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, .35), 0 14px 24px rgba(0, 0, 0, .3);
}
.podium-place:nth-child(1) { transform: rotate(-1deg); }
.podium-place:nth-child(2) { transform: rotate(.8deg); }
.podium-place:nth-child(3) { transform: rotate(-.4deg); }
.podium-place::before {
  content: ""; position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%);
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef5a4c, #7c1410 70%); box-shadow: 0 3px 5px rgba(0, 0, 0, .5);
}
.podium-place::after {
  content: ""; position: absolute; top: -.6rem; right: 1rem; width: 4rem; height: 1.3rem; transform: rotate(8deg);
  background: rgba(185, 179, 164, .55);
}
.podium-place-1::after { background: rgba(242, 194, 27, .6); }
.podium-place-3::after { background: rgba(138, 106, 69, .6); }
.podium-place-1 { background: var(--sang-eclat) no-repeat right -2.2rem bottom -2.2rem / 7rem 7rem, linear-gradient(174deg, var(--papier), var(--papier-ombre)); }
.podium-rang { color: #6a5d45; font-family: var(--pochoir); font-weight: 700; letter-spacing: .1em; }
.podium-nom { color: #1d1a15; font-family: var(--pochoir); }
.podium-score { color: #8c1410; font-family: var(--pochoir); }
.podium-unite { color: #5a5040; }
.podium-vide { text-shadow: 0 1px 3px rgba(0, 0, 0, .95); }

/* le classement complet : une feuille sur une planchette à pince */
.etat-tableau-cadre {
  position: relative; overflow-x: auto; margin-top: .6rem;
  padding: 2rem .6rem .6rem;
  background:
    var(--sang-eclat) no-repeat left -2.4rem bottom -2.4rem / 7rem 7rem,   /* dans un coin : pas sur les en-têtes */
    linear-gradient(176deg, var(--papier), var(--papier-ombre));
  border: 0;
  box-shadow: 0 0 0 10px #5b4630, 0 0 0 12px #2b2016, 8px 12px 0 12px rgba(0, 0, 0, .4);
}
/* la pince métallique en haut de la planchette */
.etat-tableau-cadre::before {
  content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 8rem; height: 1.9rem;
  background: var(--grain), linear-gradient(180deg, #b9b6ad, #6f6c64);
  border: 2px solid #2a2925; border-radius: 4px 4px 10px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .45);
}
.etat-tableau th, .etat-tableau td { border-bottom: 1px solid rgba(29, 26, 21, .2); color: #3b352b; }
.etat-tableau thead th { color: #6a5d45; }
.etat-tableau th:first-child, .etat-tableau td:first-child { color: #6a5d45; }
.etat-tableau tbody tr:nth-child(1) td { color: #1d1a15; }
.etat-tableau th.colonne-active, .etat-tableau td.colonne-active,
.etat-tableau tbody tr:nth-child(1) td.colonne-active { color: #8c1410; }
.etat-tableau tbody tr:hover { background: rgba(29, 26, 21, .06); }
/* une carte de l'état tachée */
.etat-grille .etat-carte:nth-child(3) {
  background:
    var(--sang-eclat) no-repeat right -2rem bottom -2.2rem / 6.5rem 6.5rem,
    var(--rivet) no-repeat left 7px top 7px / 12px 12px, var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--grain), linear-gradient(165deg, #434840, var(--tole) 50%, #252823);
}

/* ============================================ LA CONCEPTION DU REGISTRE === */
/* page générée par ~/postapo/registre/publier.py : un long document dans une plaque */
.doc {
  position: relative; margin-top: 2rem !important; margin-bottom: 3rem !important;
  background:
    var(--rivet) no-repeat left 7px top 7px / 12px 12px, var(--rivet) no-repeat right 7px top 7px / 12px 12px,
    var(--rivet) no-repeat left 7px bottom 7px / 12px 12px, var(--rivet) no-repeat right 7px bottom 7px / 12px 12px,
    var(--sang-coulure) no-repeat right 3rem top -6px / 4.4rem auto,
    var(--grain), linear-gradient(170deg, rgba(52, 57, 50, .96), rgba(33, 36, 31, .97));
  border: 2px solid #11130f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .55);
  padding-left: clamp(1.25rem, 4vw, 3rem) !important; padding-right: clamp(1.25rem, 4vw, 3rem) !important;
}
.doc h1, .doc h2 { font-family: var(--pochoir); letter-spacing: .02em; }

/* ================================================================= WIKI === */
.groupe h2 { font-family: var(--pochoir); padding-bottom: .55rem; border-bottom: 0; background: var(--rayures) no-repeat left bottom / 100% 6px; }
.dossier-titre { font-family: var(--pochoir); }

@media (prefers-reduced-motion: reduce) {
  .bouton-tole { transition: none; }
}
