/* Enigmous : le papier du dossier d'enquête sur le velours sombre de l'affiche. */
@font-face { font-family: "Special Elite"; src: url("/polices/SpecialElite-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/polices/CourierPrime-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Courier Prime"; font-weight: 700; src: url("/polices/CourierPrime-Bold.ttf") format("truetype"); font-display: swap; }

:root {
  --fond: #1d1814;
  --fond-2: #2a221c;
  --velours: #4a1a1c;
  --papier: #efe7d3;
  --chemise: #d9c8a2;
  --onglet: #c9b587;
  --encre: #1e1b16;
  --encre-douce: #4a4236;
  --tampon: #a3301f;
  --ambre: #f0a93b;
  --machine: "Special Elite", "Courier New", monospace;
  --texte: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--papier);
  font: 17px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ambre); }
a:hover { color: #ffc56b; }
.passer { position: absolute; left: -999px; top: 8px; background: var(--papier); color: var(--encre); padding: 8px 12px; }
.passer:focus { left: 8px; z-index: 10; }

.cadre { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(29, 24, 20, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid #3a3029; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.marque { font: 22px var(--machine); color: var(--papier); text-decoration: none; letter-spacing: 0.06em; }
.entete nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.entete nav a { color: var(--onglet); text-decoration: none; }
.entete nav a:hover { color: var(--papier); }
.langue { border: 1px solid var(--onglet); border-radius: 4px; padding: 4px 9px; }
@media (max-width: 640px) { .entete nav .facultatif { display: none; } }

/* Ouverture */
.ouverture {
  background: radial-gradient(ellipse at 70% 30%, #5a2124 0%, var(--velours) 35%, var(--fond) 80%);
  padding: 56px 0 72px;
  overflow: hidden;
}
.ouverture .cadre { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .ouverture .cadre { grid-template-columns: 1fr; gap: 36px; } }
.dossier { font: 14px var(--machine); letter-spacing: 0.16em; color: var(--onglet); margin: 0 0 14px; }
h1 { font: clamp(46px, 9vw, 92px)/0.95 var(--machine); margin: 0 0 18px; letter-spacing: 0.02em; }
.accroche { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; margin: 0 0 14px; max-width: 34ch; }
.sous { color: #d9cfba; margin: 0 0 28px; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 10px;
  font: 18px var(--machine); text-decoration: none;
}
.bouton.plein { background: var(--papier); color: var(--encre); }
span.bouton.plein { cursor: default; }
.bouton.creux { border: 1.5px solid var(--onglet); color: var(--papier); }
.bouton.creux:hover { border-color: var(--papier); color: var(--papier); }
.note { font-size: 14px; color: var(--onglet); margin-top: 14px; }
.affiche { position: relative; justify-self: center; width: min(380px, 100%); }
.affiche img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 42%; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); transform: rotate(2deg); }
.tampon {
  position: absolute; top: 18px; left: -14px; transform: rotate(-9deg);
  border: 3px solid var(--tampon); color: var(--tampon); background: rgba(239, 231, 211, 0.92);
  font: 19px var(--machine); letter-spacing: 0.1em; padding: 6px 12px; border-radius: 6px;
}

/* Sections */
section { padding: 72px 0; }
.titre-section { font: clamp(30px, 4.5vw, 44px)/1.1 var(--machine); margin: 0 0 12px; }
.intro-section { color: #d9cfba; max-width: 60ch; margin: 0 0 36px; }
.papier { background: var(--papier); color: var(--encre); }
.papier .intro-section { color: var(--encre-douce); }
.papier a { color: var(--tampon); }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.carte { background: #f7f1e3; border: 1px solid #cdbf9f; border-radius: 10px; padding: 22px; }
.carte .num { font: 13px var(--machine); color: var(--tampon); letter-spacing: 0.12em; }
.carte h3 { font: 21px/1.25 var(--machine); margin: 8px 0 8px; }
.carte p { margin: 0; font-size: 16px; color: var(--encre-douce); }

/* Captures */
.ecrans { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.ecran { flex: 0 0 auto; width: 220px; scroll-snap-align: start; margin: 0; }
.ecran img { border-radius: 26px; border: 6px solid #0d0b09; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.ecran figcaption { font-size: 14px; color: var(--onglet); margin-top: 10px; text-align: center; }

/* Histoire */
.histoire .cadre { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .histoire .cadre { grid-template-columns: 1fr; } }
.histoire img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 46%; border-radius: 12px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45); }
.etiquette { display: inline-block; background: var(--tampon); color: var(--papier); font: 13px var(--machine); letter-spacing: 0.12em; padding: 5px 10px; border-radius: 4px; }
.histoire h3 { font: clamp(32px, 4.5vw, 46px)/1.05 var(--machine); margin: 14px 0 14px; }
.prix { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.prix li { border: 1.5px solid var(--onglet); border-radius: 6px; padding: 6px 12px; font-size: 15px; }

/* Bande-annonce */
.video { max-width: 380px; margin-inline: auto; }
.video video { width: 100%; border-radius: 22px; border: 6px solid #0d0b09; background: #000; }

/* Modèle */
.modele { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.modele li { border-top: 3px solid var(--encre); background: #f7f1e3; padding: 18px; }
.modele strong { display: block; font: 20px var(--machine); font-weight: 400; margin-bottom: 4px; }

/* Questions */
.questions details { border-bottom: 1px solid #3a3029; padding: 16px 0; }
.questions summary { cursor: pointer; font: 19px var(--machine); list-style-position: outside; }
.questions p { color: #d9cfba; margin: 10px 0 0; max-width: 70ch; }

/* Pied de page */
.pied { border-top: 1px solid #3a3029; padding: 32px 0 48px; font-size: 14px; color: var(--onglet); }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 18px; }
.pied a { color: var(--onglet); }

/* Pages de texte (confidentialité, mentions) */
.texte-legal { padding: 48px 0 72px; }
.texte-legal .cadre { max-width: 760px; }
.texte-legal h1 { font-size: clamp(34px, 6vw, 52px); }
.texte-legal h2 { font: 24px var(--machine); margin: 34px 0 8px; }
.texte-legal p, .texte-legal li { color: #e3dac6; }
.a-completer { background: #5a2124; color: var(--papier); padding: 0 6px; border-radius: 3px; }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }
.intro-section.suite { margin: 28px 0 0; }
.affiche img, .histoire img { width: 100%; height: auto; }
.video { max-width: 320px; }
.video video { height: auto; aspect-ratio: 540 / 1172; }
@media (max-width: 640px) { .tampon { left: 8px; top: 10px; font-size: 16px; } }
.ecran img { width: 100%; height: auto; aspect-ratio: 560 / 1218; object-fit: cover; }
