/* Nimoria Apocalypse · nimoria.fr/apocalypse/
   Le poste de survivants : une affiche plein cadre, puis un mur d'avis punaisés
   de travers sur du contreplaqué. Papier jauni, encre de pochoir, sang séché.
   Une seule audace : le tampon rouge qui s'abat quand on ouvre un avis. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/site/polices/big-shoulders-display-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/site/polices/public-sans-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/site/polices/public-sans-italique-var.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --goudron: #14120f;
  --contreplaque: #221e18;
  --papier: #ddd2ba;
  --papier-ombre: #c9bda3;
  --encre: #1d1a15;
  --encre-pale: #4a443a;
  --sang: #8c1410;
  --sang-vif: #c0201a;
  --rubalise: #f2c21b;
  --os: #ece4d2;
  --trait: rgba(236, 228, 210, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--goudron);
  color: var(--os);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--rubalise); text-underline-offset: .2em; }
a:hover { color: var(--os); }
:focus-visible { outline: 3px solid var(--rubalise); outline-offset: 3px; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--rubalise); color: var(--goudron); padding: .6rem 1rem; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  font: inherit; font-size: .85em; background: var(--encre); color: var(--papier);
  border: 1px solid rgba(0,0,0,.4); border-bottom-width: 3px; padding: .05em .45em;
}

/* ------------------------------------------------------------- bandeau --- */
.bandeau {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(20, 18, 15, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.retour { display: inline-flex; align-items: center; gap: .5rem; color: var(--os); text-decoration: none; font-size: .95rem; }
.retour:hover { color: var(--rubalise); }
.navigation { display: flex; align-items: center; gap: .35rem 1.1rem; flex-wrap: wrap; }
.navigation a { color: rgba(236, 228, 210, .78); text-decoration: none; font-size: .95rem; }
.navigation a:hover { color: var(--rubalise); }
.navigation-appel {
  background: var(--rubalise); color: var(--goudron) !important; font-weight: 700;
  padding: .32rem .85rem;
}
.navigation-appel:hover { background: #ffd43d; }

/* -------------------------------------------------------------- affiche --- */
.affiche { position: relative; min-height: min(92vh, 52rem); display: grid; align-items: end; overflow: hidden; }
.affiche-fond { position: absolute; inset: 0; }
.affiche-fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.affiche::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(20,18,15,0) 30%, rgba(20,18,15,.55) 100%),
    linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.1) 25%, rgba(20,18,15,.88) 78%, var(--goudron) 100%);
}
.affiche-contenu {
  position: relative; z-index: 1;
  width: min(100%, 64rem);
  margin: 0 auto; padding: clamp(6rem, 12vh, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(3.5rem, 8vh, 6rem);
  text-align: center;
}
.affiche h1 { margin: 0 auto; }
.affiche-logo {
  width: clamp(13rem, 34vw, 23rem); height: auto; margin: 0 auto;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.65));
}
.affiche-phrase {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.12;
  margin: .6rem auto 0; max-width: 24ch; color: var(--os);
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.affiche-note { margin: .9rem auto 0; max-width: 56ch; color: rgba(236, 228, 210, .74); font-size: .98rem; }

.affiche-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.bouton {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; line-height: 1.05;
  text-decoration: none; padding: .7rem 1.6rem;
  background: var(--rubalise); color: var(--goudron);
  box-shadow: 4px 4px 0 0 rgba(0,0,0,.55);
  transition: transform .12s ease, background .2s ease, box-shadow .12s ease;
}
.bouton small { font-family: "Public Sans", sans-serif; font-weight: 500; font-size: .74rem; letter-spacing: 0; opacity: .78; }
.bouton:hover { background: #ffd43d; color: var(--goudron); }
.bouton:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 rgba(0,0,0,.55); }
.bouton-second { background: transparent; color: var(--os); border: 2px solid rgba(236,228,210,.5); box-shadow: none; justify-content: center; }
.bouton-second:hover { background: rgba(236,228,210,.1); color: var(--os); border-color: var(--os); }

.releve {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem;
  margin-top: 1.9rem; padding: .55rem .9rem;
  border: 1px solid var(--trait); background: rgba(20,18,15,.6);
}
.releve-ligne { margin: 0; display: flex; align-items: center; gap: .55rem; font-size: .94rem; color: rgba(236,228,210,.85); }
.pastille { width: .6rem; height: .6rem; border-radius: 50%; background: var(--rubalise); }
.pastille[data-en-ligne] { background: #8bc34a; box-shadow: 0 0 0 4px rgba(139,195,74,.18); }
.pastille[data-hors-ligne] { background: var(--sang-vif); box-shadow: 0 0 0 4px rgba(192,32,26,.18); }
.adresse {
  display: inline-flex; align-items: baseline; gap: .6rem;
  font: inherit; font-size: .94rem; cursor: pointer;
  background: transparent; color: var(--os); border: 1px dashed rgba(236,228,210,.35);
  padding: .3rem .7rem;
}
.adresse em { font-style: normal; font-size: .78rem; color: var(--rubalise); text-transform: lowercase; }
.adresse:hover { border-color: var(--rubalise); }

.affiche-defilement {
  position: absolute; bottom: .9rem; left: 50%; transform: translateX(-50%);
  margin: 0; z-index: 1; font-size: .82rem; color: rgba(236,228,210,.5); letter-spacing: .08em;
}

/* ------------------------------------------------------------------ mur --- */
.mur {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
  background:
    repeating-linear-gradient(94deg, rgba(0,0,0,.16) 0 2px, rgba(0,0,0,0) 2px 26px),
    linear-gradient(180deg, #241f19 0%, #1b1813 100%);
}
.mur::before, .mur::after {
  content: ""; position: absolute; pointer-events: none; opacity: .5;
  background-repeat: no-repeat; background-size: contain;
}
.mur::before { width: 22rem; height: 22rem; top: -3rem; right: -4rem; background-image: url("/apocalypse/img/sang-1.png"); transform: rotate(18deg); }
.mur::after { width: 14rem; height: 14rem; bottom: 2rem; left: -3rem; background-image: url("/apocalypse/img/sang-2.png"); transform: rotate(-28deg); opacity: .4; }

.mur-entete { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; position: relative; }
.mur-entete h2 {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: .95; margin: 0 0 .5rem;
}
.mur-entete p { margin: 0; color: rgba(236,228,210,.7); }

.avis-grille {
  position: relative;
  display: grid; gap: clamp(1.4rem, 2.6vw, 2.2rem);
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  align-items: start;
  max-width: 82rem; margin: 0 auto;
}

/* ---- un avis : une feuille de papier punaisée ---- */
.avis {
  position: relative;
  background: linear-gradient(174deg, var(--papier) 0%, var(--papier-ombre) 100%);
  color: var(--encre);
  padding: 1.6rem 1.35rem 1.35rem;
  box-shadow: 6px 8px 0 rgba(0,0,0,.35), 0 18px 30px rgba(0,0,0,.35);
  transition: transform .22s ease, box-shadow .22s ease;
}
.avis:nth-child(3n+1) { transform: rotate(-1.4deg); }
.avis:nth-child(3n+2) { transform: rotate(.9deg); }
.avis:nth-child(3n) { transform: rotate(-.5deg); }
.avis:nth-child(5n) { transform: rotate(1.7deg); }
.avis-large { grid-column: span 2; }
@media (max-width: 46rem) { .avis-large { grid-column: span 1; } }

/* punaise */
.avis::before {
  content: ""; position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%);
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e2564a, #7c1410 70%);
  box-shadow: 0 3px 5px rgba(0,0,0,.5);
}
/* ruban adhésif dans un coin */
.avis::after {
  content: ""; position: absolute; top: -.7rem; right: 1.1rem;
  width: 4.5rem; height: 1.5rem; transform: rotate(9deg);
  background: rgba(242, 194, 27, .32);
  border-left: 1px solid rgba(255,255,255,.18); border-right: 1px solid rgba(0,0,0,.18);
}
.avis:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 8px 10px 0 rgba(0,0,0,.4), 0 22px 36px rgba(0,0,0,.42); }

.avis-tampon {
  margin: 0 0 .45rem;
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sang);
}
.avis h3 {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: .96;
  margin: 0 0 .55rem; color: var(--encre);
}
.avis-resume { margin: 0; color: var(--encre-pale); }
.avis-note { color: var(--encre-pale); font-size: .92rem; font-style: italic; }
.avis a { color: var(--sang); }
.avis a:hover { color: var(--encre); }

.avis-bouton {
  margin-top: 1rem; font: inherit; font-weight: 700; font-size: .92rem;
  background: transparent; color: var(--encre); cursor: pointer;
  border: 2px solid rgba(29,26,21,.45); padding: .38rem .9rem;
  transition: background .18s ease, border-color .18s ease;
}
.avis-bouton:hover { background: rgba(29,26,21,.08); border-color: var(--encre); }
.avis-bouton[aria-expanded="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }

.avis-suite { margin-top: 1rem; padding-bottom: 2.6rem; border-top: 2px dashed rgba(29,26,21,.25); padding-top: .9rem; }
.avis-suite p:first-child { margin-top: 0; }
.avis-suite ul, .avis-suite ol { margin: 0; padding-left: 1.15rem; }
.avis-suite li + li { margin-top: .5rem; }
.avis-lien { margin: 1rem 0 0; font-weight: 700; }

.etapes { list-style: none; counter-reset: etape; padding: 0; }
.etapes li { counter-increment: etape; position: relative; padding-left: 3rem; }
.etapes li + li { margin-top: 1.1rem; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: -.15rem;
  font-family: "Big Shoulders Display", system-ui, sans-serif; font-weight: 800; font-size: 2rem;
  color: var(--sang); line-height: 1;
}
.etapes h4 { margin: 0 0 .25rem; font-size: 1.05rem; }
.etapes p { margin: 0 0 .35rem; color: var(--encre-pale); }

.classes, .touches, .questions { margin: 0; display: grid; gap: .7rem; }
.classes dt, .questions dt { font-weight: 700; }
.classes dd, .questions dd { margin: .1rem 0 0; color: var(--encre-pale); }
.touches { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.touches div { display: flex; align-items: baseline; gap: .5rem; }
.touches dd { margin: 0; color: var(--encre-pale); font-size: .95rem; }

.tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau th, .tableau td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(29,26,21,.2); }
.tableau thead th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-pale); }

/* avis particuliers */
.avis-urgent { background: linear-gradient(174deg, #e6d9b6 0%, #d3c49c 100%); }
.avis-urgent .avis-tampon { color: #8a5b00; }
.avis-sang::before { background: radial-gradient(circle at 35% 30%, #f0f0f0, #9a9a9a 70%); }
.avis-sang { background-image: linear-gradient(174deg, var(--papier) 0%, var(--papier-ombre) 100%), url("/apocalypse/img/sang-3.png"); background-repeat: no-repeat; background-position: center, right -2.5rem bottom -2.5rem; background-size: cover, 11rem 11rem; background-blend-mode: normal, multiply; }
.avis-archives { background: linear-gradient(174deg, #cfd8c8 0%, #b9c4ae 100%); }
.avis-archives .avis-tampon { color: #2f5130; }

/* le tampon qui s'abat à l'ouverture */
.tampon-lu {
  position: absolute; right: .9rem; bottom: .9rem; pointer-events: none;
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800; font-size: 1.5rem; letter-spacing: .12em;
  color: rgba(140, 20, 16, .78);
  border: 3px solid rgba(140, 20, 16, .7); padding: .1rem .5rem;
  transform: rotate(-14deg) scale(1);
  animation: tamponner .38s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes tamponner {
  0% { transform: rotate(-30deg) scale(2.4); opacity: 0; }
  60% { transform: rotate(-11deg) scale(.92); opacity: 1; }
  100% { transform: rotate(-14deg) scale(1); opacity: 1; }
}

/* ------------------------------------------------------------------ pied --- */
.pied { border-top: 1px solid var(--trait); background: var(--goudron); }
.pied-interieur {
  max-width: 82rem; margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: space-between;
}
.pied p { margin: 0; max-width: 62ch; color: rgba(236,228,210,.45); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
