/* Opération Poumons Noirs — site
   Matières : la tranchée (noir de l'appli), le papier des ordres, l'encre de machine à écrire,
   le tampon rouge. Typo : Stardos Stencil (la police de l'appli) + Courier Prime. */

@font-face { font-family: "Stardos Stencil"; src: url("/fonts/stardos-stencil-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Stardos Stencil"; src: url("/fonts/stardos-stencil-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --noir: #070707;
  --papier: #e7dbb6;
  --papier-bord: #c9b986;
  --encre: #1c1a15;
  --encre-douce: #4a4535;
  --sang: #c1121f;
  --sang-fonce: #8b0000;
  --kaki: #9aa36a;
  --os: #e6e1d3;
  --gris: #9a9f9f;
  --stencil: "Stardos Stencil", "Rockwell", Georgia, serif;
  --machine: "Courier Prime", "Courier New", ui-monospace, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--os);
  font: 400 1.125rem/1.6 var(--machine);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--kaki); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--stencil); font-weight: 700; text-transform: uppercase; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(3.1rem, 8.4vw, 7.4rem); line-height: .9; }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: .95; }
h3 { font-size: 1.45rem; line-height: 1.1; }
p { margin: 0 0 1em; }

.cadre { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* ---------- Barre du haut ---------- */
.barre { position: absolute; inset: 0 0 auto; z-index: 5; }
.barre .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--stencil); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; }
.marque img { width: 38px; height: 38px; border-radius: 9px; }
.barre nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.barre nav a { text-decoration: none; }
.barre nav a:hover { text-decoration: underline; }
.barre .liens-sections { display: flex; gap: 1.4rem; }
@media (max-width: 860px) { .barre .liens-sections { display: none; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1.05rem/1 var(--stencil); text-transform: uppercase; letter-spacing: .04em;
  padding: .95rem 1.35rem; border: 2px solid var(--sang); background: var(--sang); color: var(--papier);
  cursor: pointer; text-decoration: none; transition: transform .08s ease, background-color .15s ease;
}
.bouton:hover { background: var(--sang-fonce); border-color: var(--sang-fonce); }
.bouton:active { transform: translateY(2px); }
.bouton:disabled { opacity: .55; cursor: wait; }
.bouton-trait { background: transparent; color: inherit; border-color: currentColor; }
.bouton-trait:hover { background: rgba(28, 26, 21, .08); border-color: currentColor; }
.sombre .bouton-trait:hover { background: rgba(230, 225, 211, .08); }

/* ---------- Sections ---------- */
.sombre { background: var(--noir); color: var(--os); }
.papier { background: var(--papier) var(--grain); color: var(--encre); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-tete { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-tete p { font-size: 1.15rem; margin-top: 1.1rem; }
.papier .section-tete p { color: var(--encre-douce); }
.sombre .section-tete p { color: #cfc9ba; }

/* ---------- Ouverture ---------- */
.ouverture { position: relative; overflow: hidden; background: var(--noir); padding-top: 7.5rem; padding-bottom: clamp(4rem, 7vw, 6rem); }
.ouverture::before { content: ""; position: absolute; inset: 0 0 auto; height: 9rem; z-index: 1; pointer-events: none; background: linear-gradient(rgba(7, 7, 7, .8), rgba(7, 7, 7, 0)); }
.ouverture-photo { position: absolute; top: 0; right: 0; margin: 0; }
.ouverture-photo img {
  height: min(100vh, 960px); width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to top, transparent, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to top, transparent, #000 24%);
  mask-composite: intersect;
}
.ouverture-grille { position: relative; z-index: 2; }
.ouverture-grille > * { max-width: 31rem; }
.ouverture h1 { font-size: clamp(3rem, 5.4vw, 5.3rem); max-width: 10ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.chapeau { font-size: 1.15rem; margin-top: 1.4rem; color: #d9d3c3; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.statut { display: inline-block; margin: .2rem 0 2.2rem; padding: .35rem .7rem; border: 1px dashed var(--kaki); color: var(--kaki); font-size: .95rem; background: rgba(7, 7, 7, .55); }
.feuille-ligne { margin: 0 0 .4rem; font-size: .98rem; }
.ouverture .tampon { --taille: 118px; }
.ouverture .feuille-actions { margin: .8rem 0 1.1rem; }
@media (max-width: 1199px) {
  .ouverture { padding-top: 4.6rem; }
  .ouverture::before { display: none; }
  .ouverture-photo { position: relative; display: block; }
  .ouverture-photo img {
    width: 100%; height: auto; max-height: 74vh; object-fit: cover; object-position: 50% 20%;
    -webkit-mask-image: linear-gradient(to top, transparent, #000 32%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to top, transparent, #000 32%); mask-composite: add;
  }
  .ouverture-grille { margin-top: -3.4rem; }
  .ouverture-grille > * { max-width: 40rem; }
  .ouverture h1 { font-size: clamp(2.7rem, 10vw, 5rem); max-width: 12ch; }
}

/* ---------- La feuille (ordre papier) ---------- */
.feuille {
  position: relative;
  background: var(--papier) var(--grain);
  color: var(--encre);
  border: 1px solid var(--papier-bord);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .85), 0 2px 0 rgba(0, 0, 0, .25);
}
.feuille-penchee { transform: rotate(1.4deg); }
@media (max-width: 900px) { .feuille-penchee { transform: none; } }
.feuille-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--encre); padding-bottom: .6rem; margin-bottom: 1.1rem; }
.feuille-titre { font: 700 1.6rem/1 var(--stencil); text-transform: uppercase; }
.feuille-ref { font-size: .85rem; color: var(--encre-douce); white-space: nowrap; }
.feuille dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0 0 1.1rem; }
.feuille dt { font-weight: 700; }
.feuille dd { margin: 0; }

/* Tampon : le bouton signature */
.tampon {
  --taille: 132px; flex: none;
  width: var(--taille); height: var(--taille); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font: 700 1rem/1.05 var(--stencil); text-transform: uppercase; letter-spacing: .03em;
  color: var(--sang); background: transparent; cursor: pointer;
  border: 5px double var(--sang); padding: .9rem;
  transform: rotate(-11deg);
  transition: background-color .15s ease;
}
.tampon:hover { background: rgba(193, 18, 31, .07); }
.tampon .tampon-icone { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: .25rem; }
.tampon.frappe { animation: frappe .32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes frappe { 0% { transform: rotate(-11deg) scale(1); } 35% { transform: rotate(-11deg) scale(.86); } 100% { transform: rotate(-11deg) scale(1); } }
.tampon[aria-pressed="true"] { background: rgba(193, 18, 31, .12); }

.feuille-actions { display: flex; align-items: center; gap: 1.4rem; margin: 1.3rem 0 1.5rem; }
.feuille-actions p { margin: 0; font-size: .98rem; }

/* Empreinte de tampon posée sur la feuille */
.empreinte {
  position: absolute; right: 7%; top: 22%;
  font: 700 clamp(1.6rem, 3.4vw, 2.5rem)/1 var(--stencil); text-transform: uppercase; letter-spacing: .06em;
  color: var(--sang); border: 5px solid var(--sang); padding: .4rem .8rem;
  transform: rotate(-9deg); opacity: 0; pointer-events: none;
  -webkit-mask-image: var(--grain), linear-gradient(#000, #000); mask-image: var(--grain), linear-gradient(#000, #000);
  mix-blend-mode: multiply;
}
.empreinte.visible { animation: empreinte .42s cubic-bezier(.2, 1.4, .35, 1) forwards; }
@keyframes empreinte { 0% { opacity: 0; transform: rotate(-9deg) scale(1.8); } 60% { opacity: .95; transform: rotate(-9deg) scale(.96); } 100% { opacity: .88; transform: rotate(-9deg) scale(1); } }

/* Champs façon formulaire tapé à la machine */
.champ { display: block; }
.champ-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.champ input, .champ select {
  width: 100%; font: 400 1.1rem/1.3 var(--machine); color: var(--encre);
  background: rgba(255, 255, 255, .28); border: 0; border-bottom: 2px solid var(--encre);
  padding: .55rem .5rem; border-radius: 0;
}
.champ input:focus, .champ select:focus { outline: none; background: rgba(255, 255, 255, .55); border-bottom-color: var(--sang); }
.signature { border-top: 1px dashed var(--encre-douce); padding-top: 1.1rem; }
.signature-ligne { display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-end; }
.signature-ligne .champ { flex: 1 1 14rem; }
.mini { font-size: .88rem; color: var(--encre-douce); margin: .7rem 0 0; }
.message { font-weight: 700; margin: .7rem 0 0; min-height: 1.6em; }
.message[data-etat="erreur"] { color: var(--sang); }
.message[data-etat="ok"] { color: #3f4a1c; }
.sombre .message[data-etat="ok"] { color: var(--kaki); }

/* ---------- Programme ---------- */
.programme-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.programme-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.programme-liste li { padding-left: 2.2rem; position: relative; }
.programme-liste li::before { content: "\2715"; position: absolute; left: 0; top: .05rem; color: var(--sang); font: 700 1.2rem/1 var(--machine); }
.programme-liste h3 { margin-bottom: .35rem; }
.programme-liste p { margin: 0; }
.avertissement { margin-top: 2.2rem; padding: .9rem 1rem; border: 2px solid var(--encre); font-weight: 700; display: inline-block; }
.telephones { position: relative; min-height: 640px; margin: 0; }
.telephone { position: absolute; width: min(48%, 260px); border-radius: 26px; border: 7px solid #121212; background: #121212; overflow: hidden; box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .7); }
.telephone img { width: 100%; height: auto; }
.telephone:nth-child(1) { left: 0; top: 40px; transform: rotate(-5deg); }
.telephone:nth-child(2) { left: 26%; top: 0; z-index: 2; transform: rotate(1.5deg); }
.telephone:nth-child(3) { right: 0; top: 70px; transform: rotate(6deg); }
.telephone::after { content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(230, 220, 180, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
@media (max-width: 900px) {
  .programme-grille { grid-template-columns: 1fr; }
  .telephones { min-height: 0; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem .2rem 1.5rem; }
  .telephone { position: relative; inset: auto !important; transform: none !important; flex: 0 0 62%; scroll-snap-align: center; }
}

/* ---------- Calculateur ---------- */
.pertes-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.pertes-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.prix-ligne { display: flex; gap: .5rem; }
.prix-ligne input { flex: 1; min-width: 0; }
.prix-ligne select { width: 5.2rem; flex: none; }
.pertes-form .bouton { margin-top: 1.5rem; width: 100%; }
.pertes-resultat { display: flex; flex-direction: column; justify-content: center; border: 2px dashed rgba(230, 225, 211, .35); padding: clamp(1.4rem, 3vw, 2.4rem); min-height: 100%; }
.pertes-resultat[hidden] { display: none; }
.pertes-vide { color: var(--gris); }
.pertes-somme { font: 700 clamp(3rem, 8vw, 6.2rem)/.95 var(--stencil); color: var(--sang); margin: .3rem 0 1rem; word-break: break-word; }
.pertes-somme.roule { animation: roule .5s ease-out; }
@keyframes roule { from { opacity: .2; transform: translateY(.15em); } to { opacity: 1; transform: none; } }
.pertes-details { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pertes-details strong { color: var(--os); }
.pertes-details li { color: #cfc9ba; }
.reaction { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; color: var(--kaki); }
@media (max-width: 900px) { .pertes-grille { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pertes-champs { grid-template-columns: 1fr; } }

/* ---------- Ordre de mission ---------- */
.mission-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mission-exemple { border-left: 4px solid var(--sang); padding: .4rem 0 .4rem 1rem; font-style: italic; color: var(--encre-douce); }
.motifs { border: 0; padding: 0; margin: 1.3rem 0 0; }
.motifs legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.motif { display: flex; gap: .7rem; align-items: baseline; padding: .42rem .3rem; cursor: pointer; border-bottom: 1px dotted rgba(28, 26, 21, .35); }
.motif input { position: absolute; opacity: 0; pointer-events: none; }
.motif .case { font-weight: 700; white-space: pre; }
.motif .case::before { content: "[ ]"; }
.motif input:checked + .case::before { content: "[X]"; color: var(--sang); }
.motif input:focus-visible + .case { outline: 3px solid var(--kaki); outline-offset: 2px; }
.motif:hover { background: rgba(255, 255, 255, .25); }
.mission-boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.mission-lien { margin-top: 1.6rem; border-top: 2px solid var(--encre); padding-top: 1.2rem; }
.mission-lien[hidden] { display: none; }
.mission-lien output { display: block; font-size: .95rem; word-break: break-all; background: rgba(255, 255, 255, .35); padding: .6rem .7rem; border: 1px dashed var(--encre-douce); margin: .4rem 0 1rem; }
@media (max-width: 900px) { .mission-grille { grid-template-columns: 1fr; } }

/* ---------- Médias ---------- */
.videos { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.5rem); }
.video { margin: 0; width: min(100%, 300px); }
.video video { width: 100%; aspect-ratio: 9 / 16; background: #000; border: 6px solid #121212; border-radius: 22px; object-fit: cover; }
.video figcaption { margin-top: .6rem; font-weight: 700; }
.captures { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.2rem .2rem 1.4rem; margin-top: 1rem; }
.captures img { flex: 0 0 auto; width: 210px; height: auto; border-radius: 16px; border: 5px solid #121212; scroll-snap-align: start; }
.presse { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; margin-top: 1.8rem; border-top: 2px solid var(--encre); padding-top: 1.6rem; }
.presse p { margin: 0; max-width: 40rem; }

/* ---------- Questions ---------- */
.questions { max-width: 52rem; }
.questions details { border-top: 1px solid rgba(230, 225, 211, .22); }
.questions details:last-of-type { border-bottom: 1px solid rgba(230, 225, 211, .22); }
.questions summary { cursor: pointer; list-style: none; padding: 1.05rem 2.4rem 1.05rem 0; position: relative; font-weight: 700; font-size: 1.15rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font: 700 1.5rem/1 var(--machine); color: var(--kaki); }
.questions details[open] summary::after { content: "\2212"; }
.questions details p { color: #cfc9ba; margin: 0 0 1.2rem; max-width: 46rem; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid rgba(230, 225, 211, .15); padding-block: 2.4rem 3rem; font-size: .95rem; color: var(--gris); }
.pied .cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.pied p { margin: 0; max-width: 36rem; }

/* ---------- Page « ordre de mission reçu » ---------- */
.recu { min-height: 100vh; display: grid; place-items: center; padding: 6.5rem 0 4rem;
  background: radial-gradient(ellipse 70% 55% at 50% 110%, rgba(193, 18, 31, .45), transparent 70%), var(--noir); }
.recu .feuille { max-width: 40rem; margin-inline: auto; }
.recu-nom { font: 700 clamp(3.4rem, 13vw, 7rem)/.9 var(--stencil); text-transform: uppercase; color: var(--sang); margin: .4rem 0 1rem; word-break: break-word; }
.recu-suite[hidden] { display: none; }
.recu-suite { margin-top: 1.4rem; border-top: 2px solid var(--encre); padding-top: 1.2rem; }
.recu-liens { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 1rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tampon.frappe, .empreinte.visible, .pertes-somme.roule { animation: none; }
  .empreinte.visible { opacity: .88; }
}

/* Compléments */
.tampon-petit { --taille: 92px; font-size: .82rem; padding: .6rem; border-width: 4px; }
.papier .questions details { border-color: rgba(28, 26, 21, .28); }
.papier .questions details p { color: var(--encre-douce); }
.papier .questions summary::after { color: var(--sang); }
.questions-lien { margin-top: 1.4rem; font-size: 1rem; }
.sombre .questions-lien a { color: var(--kaki); }

.recu .empreinte { top: auto; bottom: 30%; right: 5%; }

/* Écrase-Clopes */
.jeu-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.jeu { --or: #d4a72c; width: 100%; color: var(--os); }
.jeu-hud { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: .7rem; }
.jeu-hud > div { display: flex; flex-direction: column; gap: .15rem; }
.jeu-score { flex: 1; }
.jeu-label { font-size: .85rem; color: var(--gris); }
.jeu-score output { font: 700 2.4rem/1 var(--stencil); }
.jeu-record { align-items: flex-end; }
.jeu-record output { font: 700 1.35rem/1 var(--stencil); color: var(--kaki); }
.jeu-record output.mieux { color: var(--or); }
.jeu-son { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; color: var(--os); border: 1px solid #3a4044; cursor: pointer; }
.jeu-son:hover { border-color: var(--os); }
.jeu-son[aria-pressed="true"] .muet, .jeu-son[aria-pressed="false"] .ondes { display: none; }
.jeu-temps { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.jeu-barre { flex: 1; height: 10px; background: #2a2e31; overflow: hidden; }
.jeu-barre span { display: block; height: 100%; transform-origin: left center; background: linear-gradient(90deg, #6b7445, #9aa36a); }
.jeu-barre span[data-phase="2"] { background: linear-gradient(90deg, #c07f00, var(--or)); }
.jeu-barre span[data-phase="3"] { background: linear-gradient(90deg, var(--sang-fonce), var(--sang)); }
.jeu-chrono { display: inline-block; min-width: 3.4ch; text-align: right; font: 700 1.35rem/1 var(--stencil); font-variant-numeric: tabular-nums; }
.jeu-chrono.urgence { color: #e5484d; }
.jeu-plateau { position: relative; aspect-ratio: 1 / 1; }
.jeu-plateau canvas { display: block; width: 100%; height: 100%; border-radius: 12px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.jeu-plateau canvas:focus { outline: none; }
.jeu-plateau canvas:focus-visible { outline: 3px solid var(--kaki); outline-offset: 4px; }
.jeu-ecran { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .8rem; padding: 1.4rem; text-align: center; background: rgba(7, 7, 7, .78); border-radius: 12px; overflow-y: auto; }
.jeu-ecran[hidden] { display: none; }
.jeu-ecran p { margin: 0; }
.jeu-ecran > :first-child { margin-top: auto; }
.jeu-ecran > :last-child { margin-bottom: auto; }
.jeu-depart-titre { max-width: 18ch; font: 700 clamp(1.3rem, 3.4vw, 1.75rem)/1.15 var(--stencil); text-transform: uppercase; }
.jeu-note { max-width: 32ch; font-size: .92rem; color: #cfc9ba; }
.jeu-note a { color: var(--kaki); }
.jeu-fin { gap: .45rem; background: rgba(7, 7, 7, .9); }
.jeu-fin-titre { font-weight: 700; color: #e5484d; }
.jeu-fin-score { font: 700 clamp(2.6rem, 9vw, 3.6rem)/1 var(--stencil); }
.jeu-fin-score.mieux, .jeu-fin-score.mieux + .jeu-fin-record { color: var(--or); }
.jeu-fin-record { color: var(--kaki); }
.jeu-fin-grade { padding: .45rem 1rem; border: 1.5px solid #6b7445; background: rgba(107, 116, 69, .15); color: var(--kaki); font: 700 1.05rem/1.2 var(--stencil); text-transform: uppercase; }
.jeu-fin-combo { font-size: .88rem; color: var(--gris); }
.jeu-fin-combo:empty, .jeu-fin-message:empty { display: none; }
.jeu-fin-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .4rem; }
.jeu-fin-boutons .bouton { padding: .75rem 1.05rem; font-size: .9rem; }
.jeu-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; margin-top: .9rem; }
.jeu-aide { margin: 0; font-size: .95rem; color: #cfc9ba; }
.jeu-arreter { padding: .3rem 0; background: none; border: 0; color: var(--gris); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.jeu-arreter:hover { color: var(--os); }
.jeu-legende { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--gris); }
.jeu-legende li { display: flex; align-items: center; gap: .45rem; }
.jeu-legende canvas { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .jeu-grille { grid-template-columns: 1fr; }
  .jeu { max-width: 520px; }
}
@media (max-width: 480px) {
  .jeu-ecran { padding: 1rem .8rem; }
  .jeu-fin { gap: .35rem; }
  .jeu-fin-grade { padding: .3rem .8rem; font-size: .95rem; }
  .jeu-fin-boutons .bouton { padding: .65rem .8rem; font-size: .82rem; }
  .jeu-note { font-size: .85rem; }
}

/* Bouton de la barre et langue courte */
.barre nav .bouton-barre { padding: .55rem .9rem; font-size: .85rem; text-decoration: none; }
.barre nav .bouton-barre:hover { text-decoration: none; }
.langue-court, .cta-court { display: none; }
.marque, .bouton-barre { white-space: nowrap; }
@media (max-width: 560px) {
  .langue-long, .cta-long { display: none; }
  .langue-court, .cta-court { display: inline; }
  .barre nav { gap: .9rem; }
  .marque { font-size: 1.05rem; }
  .marque img { width: 32px; height: 32px; }
}

/* Calculateur : le visage du Sergent */
.reaction { display: flex; align-items: flex-end; gap: 1rem; margin-top: 1.4rem; }
.reaction-visage { flex: none; width: 150px; height: 175px; object-fit: contain; object-position: bottom; }
.reaction-texte { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding-bottom: .3rem; }
.reaction-texte p { margin: 0; color: var(--kaki); }
.reaction-texte .tampon { transform: rotate(-8deg); }
@media (max-width: 480px) { .reaction-visage { width: 118px; height: 138px; } }

/* Page « ordre reçu » : le Sergent derrière la feuille */
.recu-dossier { position: relative; max-width: 40rem; margin: clamp(120px, 30vw, 190px) auto 0; }
.recu-sergent { position: absolute; z-index: 0; right: 4%; bottom: calc(100% - 2.4rem); width: clamp(150px, 36vw, 230px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.recu-dossier .feuille { position: relative; z-index: 1; }

/* Jeu : le Sergent à côté du plateau */
.jeu-sergent { width: min(100%, 290px); height: auto; margin-top: 1.5rem; }
@media (max-width: 900px) { .jeu-sergent { display: none; } }
