/* ============================================================
   Les Enfants de Dagon — feuille de style unique
   Palette et typographies conformes au cahier de conception
   (§10 palette globale, §11 palettes par acte, §12 typographies).
   Aucune dépendance, aucun préprocesseur.
   ============================================================ */

:root {
  /* Palette globale — §10 */
  --abysse:  #0a0d0f;
  --ardoise: #151a1d;
  --ivoire:  #e8e0d1;
  --brume:   #a8ada8;
  --cuivre:  #a87845;
  --rouille: #6b3e32;
  --petrole: #18383d;

  /* Accents de l'acte courant, redéfinis par [data-acte] */
  --acte-profond: #10252a;
  --acte-medium:  #18383d;
  --acte-brume:   #7e8b88;
  --acte-accent:  #765044;
  --acte-clair:   #c6c9c2;

  --texte:        var(--ivoire);
  --texte-doux:   rgba(232, 224, 209, 0.7);
  --texte-faible: rgba(232, 224, 209, 0.45);
  --trait:        rgba(168, 173, 168, 0.16);
  --trait-fort:   rgba(168, 120, 69, 0.45);

  /* Typographies — §12 */
  /* Les quatre voix du chapitre XIII */
  --f-titre:     "Cormorant Garamond", Georgia, serif;                     /* titres, couvertures, citations */
  --f-editorial: "EB Garamond", "Cormorant Garamond", Georgia, serif;      /* textes longs, récits, essais   */
  --f-archive:   "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* dates, références     */
  --f-texte:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* interface     */

  --large: 1200px;
  --lecture: 70ch;
  --marge: clamp(1.25rem, 5vw, 3.5rem);
  --lent: 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Habillage par acte — §11 */
[data-acte="1"] { --acte-profond:#10252a; --acte-medium:#18383d; --acte-brume:#7e8b88; --acte-accent:#765044; --acte-clair:#c6c9c2; }
[data-acte="2"] { --acte-profond:#23352a; --acte-medium:#4a5b42; --acte-brume:#d2c6b0; --acte-accent:#b0824b; --acte-clair:#d2c6b0; }
[data-acte="2b"]{ --acte-profond:#4d5153; --acte-medium:#5a2e35; --acte-brume:#d7d0c2; --acte-accent:#8a7352; --acte-clair:#d7d0c2; }
[data-acte="3"] { --acte-profond:#07191d; --acte-medium:#23413d; --acte-brume:#a7aba4; --acte-accent:#6f4d34; --acte-clair:#a7aba4; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--abysse); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--abysse);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(168, 120, 69, 0.35); color: var(--ivoire); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; }

/* ---------- Structure ---------- */
.contenant { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: clamp(4rem, 10vw, 9.5rem); }
.section--serre { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section--teinte { background: var(--ardoise); border-block: 1px solid var(--trait); }
.filet { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--trait-fort), transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lecture { max-width: var(--lecture); }

/* ---------- Typographie ---------- */
.surtitre {
  font-family: var(--f-archive);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 1.4rem;
}
.archive { font-family: var(--f-archive); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brume); }

h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.25; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.4rem; }
p:last-child { margin-bottom: 0; }
.doux { color: var(--texte-doux); }

/* Voix du monde : tout ce qui relève de la lecture suivie */
.duo > div > p, .lecture > p, .bandeau__chapo, .encadre p, .heros__texte p {
  font-family: var(--f-editorial);
  font-size: 1.13rem;
  line-height: 1.75;
}

/* Citation d'ouverture, façon exergue de chapitre */
.citation {
  margin: 0;
  padding-left: 1.75rem;
  border-left: 1px solid var(--trait-fort);
  font-family: var(--f-titre);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(232, 224, 209, 0.86);
}
.intro { font-family: var(--f-titre); font-size: clamp(1.2rem, 2.3vw, 1.6rem); font-style: italic; line-height: 1.5; color: rgba(232, 224, 209, 0.8); }
.presse blockquote, .liaison__titre, .chrono__titre { font-family: var(--f-titre); }

/* ---------- Liens et boutons ---------- */
.lien {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--lent), color 400ms;
}
.lien:hover, .lien:focus-visible { background-size: 100% 1px; }

.bouton {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 2rem;
  font-family: var(--f-texte); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--trait-fort); color: var(--texte); background: transparent;
  transition: border-color 400ms, background 400ms, color 400ms;
  cursor: pointer;
}
.bouton:hover, .bouton:focus-visible { border-color: var(--cuivre); background: rgba(168, 120, 69, 0.12); }
.bouton--plein { background: var(--cuivre); border-color: var(--cuivre); color: var(--abysse); }
.bouton--plein:hover, .bouton--plein:focus-visible { background: var(--ivoire); border-color: var(--ivoire); color: var(--abysse); }
.bouton--petit { padding: 0.7rem 1.4rem; font-size: 0.64rem; }
.bouton__fleche { transition: transform var(--lent); }
.bouton:hover .bouton__fleche { transform: translateX(5px); }
.boutons { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 560px) { .boutons .bouton { width: 100%; justify-content: space-between; } }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset-inline: 0; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 600ms, border-color 600ms; }
.entete.est-defile, .entete.est-ouvert { background: rgba(10, 13, 15, 0.94); backdrop-filter: blur(12px); border-bottom-color: var(--trait); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; max-width: var(--large); margin-inline: auto; padding: 0.8rem var(--marge); }

.marque { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; }
.marque img { width: 36px; height: 36px; }
.marque__texte { font-family: var(--f-archive); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.55; }
.marque__texte span { display: block; color: var(--cuivre); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-doux); text-decoration: none; transition: color 400ms; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cuivre); }

.entete__actions { display: flex; align-items: center; gap: 1rem; }
.entete__cta { display: none; }
.langues a { font-family: var(--f-archive); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-faible); text-decoration: none; transition: color 400ms; }
.langues a:hover { color: var(--ivoire); }

.burger { display: flex; align-items: center; gap: 0.65rem; background: none; border: 0; padding: 0.5rem 0; color: var(--texte-doux); font-family: var(--f-texte); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.burger__trait { position: relative; display: block; width: 22px; height: 12px; }
.burger__trait i { position: absolute; left: 0; display: block; width: 22px; height: 1px; background: var(--cuivre); transition: transform 400ms, top 400ms; }
.burger__trait i:nth-child(1) { top: 0; }
.burger__trait i:nth-child(2) { top: 11px; }
.entete.est-ouvert .burger__trait i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.entete.est-ouvert .burger__trait i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

.menu-mobile { position: fixed; inset: 0; z-index: 40; background: rgba(10, 13, 15, 0.985); backdrop-filter: blur(16px); display: flex; flex-direction: column; justify-content: center; padding: 5rem var(--marge) 3rem; overflow-y: auto; }
.menu-mobile[hidden] { display: none; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--trait); font-family: var(--f-titre); font-size: clamp(1.5rem, 5.5vw, 2rem); font-weight: 300; color: var(--texte); text-decoration: none; }
.menu-mobile a[aria-current="page"] { color: var(--cuivre); }
.menu-mobile .bouton { margin-top: 2rem; }

.evitement { position: absolute; left: -9999px; top: 0; z-index: 60; background: var(--cuivre); color: var(--abysse); padding: 1rem 1.5rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.evitement:focus { left: 1rem; top: 1rem; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
  .entete__cta { display: inline-flex; }
  .entete__barre { padding-block: 1rem; }
}

/* ---------- Héros ---------- */
.heros { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-block: 9rem 4.5rem; }
.heros__fond { position: absolute; inset: 0; }
.heros__fond img, .heros__fond video { width: 100%; height: 100%; object-fit: cover; }
.heros__voile { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,13,15,0.78), rgba(10,13,15,0.42) 42%, var(--abysse)); }
.heros__contenu { position: relative; width: 100%; }
.heros__logo { width: min(420px, 70vw); margin-bottom: 2rem; }
.heros h1 { max-width: 16ch; }
.heros__texte { max-width: 52ch; margin-top: 2rem; color: var(--texte-doux); }
.heros .boutons { margin-top: 2.75rem; }
.descendre { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 0.7rem; font-family: var(--f-archive); font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--texte-faible); }
.descendre i { display: block; width: 1px; height: 48px; background: linear-gradient(var(--cuivre), transparent); animation: respire 14s ease-in-out infinite; }
@media (min-width: 1024px) { .descendre { display: flex; } }
@keyframes respire { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.75; } }

/* Bouton de coupure de la vidéo d'ambiance */
.video-fond__bascule {
  position: absolute; right: var(--marge); bottom: 1.5rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; background: rgba(10, 13, 15, 0.6);
  border: 1px solid var(--trait); color: var(--texte-doux);
  font-family: var(--f-archive); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer;
}
.video-fond__bascule:hover { color: var(--ivoire); border-color: var(--trait-fort); }

/* ---------- Bandeau de page ---------- */
.bandeau { position: relative; overflow: hidden; border-bottom: 1px solid var(--trait); }
.bandeau__fond { position: absolute; inset: 0; }
.bandeau__fond img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.bandeau__voile { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,13,15,0.7), rgba(10,13,15,0.85) 60%, var(--abysse)); }
.bandeau__contenu { position: relative; padding-block: clamp(7.5rem, 16vw, 12rem) clamp(3rem, 6vw, 5.5rem); }
.bandeau__chapo { max-width: var(--lecture); margin-top: 1.75rem; color: var(--texte-doux); }
.fil { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-family: var(--f-archive); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-faible); }
.fil a { text-decoration: none; color: var(--cuivre); }
.fil li + li::before { content: "/"; margin-right: 0.5rem; color: var(--texte-faible); }

/* ---------- Grilles ---------- */
.duo { display: grid; gap: clamp(2.25rem, 5vw, 5rem); }
@media (min-width: 900px) { .duo { grid-template-columns: 0.85fr 1.15fr; } }
.duo--inverse { direction: ltr; }
.grille { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.carte { border-top: 1px solid var(--trait); padding-top: 1.6rem; }
.carte h3 { margin-bottom: 0.8rem; }
.carte p { color: var(--texte-doux); font-size: 0.96rem; }

/* ---------- StatusBadge ---------- */
.statut {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem; border: 1px solid var(--trait-fort);
  font-family: var(--f-archive); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cuivre); white-space: nowrap;
}
.statut::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.statut--production { color: var(--acte-clair); border-color: var(--trait); }
.statut--avenir { color: var(--texte-faible); border-color: var(--trait); }

/* ---------- WorkCard ---------- */
.oeuvre { display: block; text-decoration: none; }
.oeuvre__visuel { position: relative; overflow: hidden; border: 1px solid var(--trait); background: var(--ardoise); }
.oeuvre__visuel img { width: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--lent), transform 1.2s cubic-bezier(0.22,1,0.36,1); }
.oeuvre:hover .oeuvre__visuel img { opacity: 1; transform: scale(1.04); }
.oeuvre--album .oeuvre__visuel img { aspect-ratio: 1 / 1; }
.oeuvre--roman .oeuvre__visuel img { aspect-ratio: 2 / 3; }
.oeuvre__meta { margin-top: 1.1rem; font-family: var(--f-archive); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cuivre); }
.oeuvre h3 { margin: 0.5rem 0 0.6rem; }
.oeuvre__resume { color: var(--texte-doux); font-size: 0.94rem; margin: 0; }
.oeuvre__badge { margin-top: 0.9rem; }
.oeuvre--provisoire h3 { color: var(--texte-doux); }

/* ---------- ActTimeline — §15.2 ---------- */
.chrono { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.chrono__etape { position: relative; padding-left: 2.5rem; padding-bottom: 2.25rem; border-left: 1px solid var(--trait); }
.chrono__etape:last-child { padding-bottom: 0; border-left-color: transparent; }
.chrono__etape::before {
  content: ""; position: absolute; left: -4.5px; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acte-accent); border: 1px solid var(--cuivre);
}
.chrono__acte { padding-left: 2.5rem; margin-bottom: 1.1rem; font-family: var(--f-archive); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cuivre); }
.chrono__acte + .chrono__etape { }
.chrono a { text-decoration: none; display: block; }
.chrono__titre { font-family: var(--f-titre); font-size: 1.4rem; font-weight: 300; color: var(--texte); transition: color 400ms; }
.chrono a:hover .chrono__titre { color: var(--cuivre); }
.chrono__detail { font-family: var(--f-archive); font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--texte-faible); margin-top: 0.35rem; }
.chrono__resume { color: var(--texte-doux); font-size: 0.93rem; margin: 0.6rem 0 0; max-width: 46ch; }

@media (min-width: 1000px) {
  .chrono--horizontale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .chrono--horizontale .chrono__etape {
    padding-left: 0; padding-top: 2.75rem; padding-bottom: 0;
    border-left: 0; border-top: 1px solid var(--trait);
  }
  .chrono--horizontale .chrono__etape::before { left: 0; top: -4.5px; }
  .chrono--horizontale .chrono__acte { display: none; }
  .chrono--horizontale .chrono__acte-inline { display: block; }
  .chrono--horizontale .chrono__titre { font-size: 1.25rem; }
}
.chrono__acte-inline { display: none; font-family: var(--f-archive); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cuivre); margin-bottom: 0.5rem; }

/* ---------- Acte : carte large ---------- */
.acte { display: grid; gap: 2rem; padding-block: clamp(2.25rem, 4.5vw, 3.5rem); border-top: 1px solid var(--trait); }
@media (min-width: 900px) { .acte { grid-template-columns: 340px 1fr; gap: 3.5rem; } }
.acte__visuel { position: relative; overflow: hidden; border: 1px solid var(--trait); }
.acte__visuel img { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; opacity: 0.78; transition: opacity var(--lent), transform 1.4s cubic-bezier(0.22,1,0.36,1); }
.acte a:hover .acte__visuel img { opacity: 1; transform: scale(1.04); }
.acte a { text-decoration: none; display: block; }
.acte__num { font-family: var(--f-archive); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cuivre); }
.acte h3 { margin-block: 0.65rem 0.9rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.acte p { color: var(--texte-doux); }

/* ---------- RelatedContents — précédent / suivant ---------- */
.liaison { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 700px) { .liaison { grid-template-columns: 1fr 1fr; } }
.liaison a { display: block; padding: 1.6rem; border: 1px solid var(--trait); text-decoration: none; transition: border-color 400ms, background 400ms; }
.liaison a:hover { border-color: var(--trait-fort); background: rgba(168, 120, 69, 0.05); }
.liaison__sens { font-family: var(--f-archive); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cuivre); }
.liaison__titre { font-family: var(--f-titre); font-size: 1.4rem; font-weight: 300; margin-top: 0.5rem; }
.liaison__detail { font-family: var(--f-archive); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-faible); margin-top: 0.4rem; }
.liaison--fin { text-align: right; }

/* ---------- Presse ---------- */
.presse { display: grid; gap: 2.25rem; }
@media (min-width: 780px) { .presse { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.presse blockquote { margin: 0; padding-left: 1.6rem; border-left: 1px solid var(--trait-fort); font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: 1.18rem; line-height: 1.55; color: rgba(232, 224, 209, 0.84); }
.presse cite { display: block; margin-top: 1rem; padding-left: 1.6rem; font-family: var(--f-archive); font-style: normal; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cuivre); }

/* ---------- Galerie ---------- */
.galerie { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.galerie figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--trait); }
.galerie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s cubic-bezier(0.22,1,0.36,1); }
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.75rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(10,13,15,0.9)); font-size: 0.76rem; color: var(--texte-doux); }
.galerie li:first-child { grid-column: 1 / -1; }
.galerie li:first-child img { aspect-ratio: 21 / 9; }

/* ---------- Vidéo YouTube ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--trait); overflow: hidden; background: var(--ardoise); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__lancer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; background: rgba(10,13,15,0.35); border: 0; cursor: pointer; color: var(--texte); font-family: var(--f-texte); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; }
.video__lancer:hover { background: rgba(10,13,15,0.15); }
.video__triangle { width: 62px; height: 62px; border: 1px solid var(--cuivre); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 400ms; }
.video__lancer:hover .video__triangle { background: rgba(168,120,69,0.2); }
.video__triangle::after { content: ""; margin-left: 4px; border-left: 14px solid var(--cuivre); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* ---------- Fiches ---------- */
.fiche { display: grid; gap: 1.5rem; margin: 0; }
@media (min-width: 620px) { .fiche--2 { grid-template-columns: repeat(2, 1fr); } }
.fiche > div { border-top: 1px solid var(--trait); padding-top: 0.9rem; }
.fiche dt { font-family: var(--f-archive); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cuivre); }
.fiche dd { margin: 0.55rem 0 0; color: var(--texte-doux); font-size: 0.95rem; }

.encadre { border-left: 1px solid var(--trait-fort); padding: 0.25rem 0 0.25rem 1.6rem; }
.encadre p { color: var(--texte-doux); }

.jetons { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.jetons li { border: 1px solid var(--trait); padding: 0.45rem 0.9rem; font-family: var(--f-archive); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-doux); }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: 1.6rem; }
.champ label { display: block; margin-bottom: 0.6rem; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { width: 100%; padding: 0.95rem 1.15rem; background: rgba(232,224,209,0.035); border: 1px solid var(--trait); color: var(--texte); font-family: inherit; font-size: 0.96rem; transition: border-color 350ms; }
.champ textarea { resize: vertical; min-height: 10rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--trait-fort); outline: none; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-faible); }
.champ select option { background: var(--abysse); }
.champ--case { display: flex; gap: 0.75rem; align-items: flex-start; }
.champ--case input { width: auto; margin-top: 0.35rem; }
.champ--case label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.85rem; line-height: 1.5; }
.pot-de-miel { position: absolute; left: -9999px; }
.message { margin-top: 1.1rem; font-size: 0.87rem; }
.message--ok { color: var(--acte-clair); }
.message--ko { color: var(--cuivre); }
.formulaire-en-ligne { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.formulaire-en-ligne .champ { flex: 1 1 260px; margin: 0; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--trait); padding-block: 4rem 2.5rem; }
.pied__grille { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.pied h2 { font-family: var(--f-archive); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cuivre); margin-bottom: 1.25rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.pied a { font-size: 0.9rem; color: var(--texte-doux); text-decoration: none; }
.pied a:hover { color: var(--texte); }
.pied__bas { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--trait); font-size: 0.75rem; color: var(--texte-faible); }
.pied__logo { width: 150px; margin-bottom: 1.25rem; }
.credits { font-size: 0.75rem; color: var(--texte-faible); margin-top: 1.75rem; }

/* ---------- Apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(16px); }
.js .apparait.est-visible { opacity: 1; transform: none; transition: opacity 900ms cubic-bezier(0.22,1,0.36,1), transform 900ms cubic-bezier(0.22,1,0.36,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .apparait { opacity: 1; transform: none; }
}

/* ============================================================
   Couche Design Bible — matière, archive et mémoire des lieux
   Cette couche reste CSS-only afin de préserver le déploiement FTP.
   Elle traduit les principes des Tomes III à V : la matière avant
   l'effet, le document avant l'ornement, la lumière avant le spectacle.
   ============================================================ */

:root {
  --papier-sombre: rgba(232, 224, 209, 0.045);
  --papier-clair: rgba(232, 224, 209, 0.075);
  --encre-cuivre: rgba(168, 120, 69, 0.72);
  --ombre-profonde: rgba(5, 9, 10, 0.88);
  --rayon-document: 0;
  --cadre-document: 1px solid rgba(168, 173, 168, 0.19);
}

html {
  background:
    radial-gradient(circle at 16% 0%, rgba(58, 79, 76, 0.14), transparent 36rem),
    var(--abysse);
}

body {
  position: relative;
  background:
    linear-gradient(90deg, rgba(232, 224, 209, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(232, 224, 209, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 78% 28%, rgba(36, 58, 58, 0.13), transparent 34rem),
    var(--abysse);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(232, 224, 209, 0.32) 0.45px, transparent 0.6px),
    radial-gradient(rgba(5, 9, 10, 0.5) 0.45px, transparent 0.65px);
  background-position: 0 0, 3px 4px;
  background-size: 7px 7px, 9px 9px;
  mix-blend-mode: soft-light;
}

/* Les sections respirent comme des feuilles séparées d'un dossier. */
.section,
.section--serre {
  position: relative;
  isolation: isolate;
}

.section::after,
.section--serre::after {
  position: absolute;
  top: 0;
  left: var(--marge);
  width: min(10rem, 18vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--encre-cuivre), transparent);
  opacity: 0.6;
}

.section--teinte {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(232, 224, 209, 0.025), transparent 34%),
    linear-gradient(90deg, rgba(5, 9, 10, 0.3), transparent 18%, transparent 82%, rgba(5, 9, 10, 0.24)),
    var(--ardoise);
}

.section--teinte::before {
  position: absolute;
  inset: 1.25rem var(--marge);
  z-index: -1;
  content: "";
  border: 1px solid rgba(168, 173, 168, 0.06);
  pointer-events: none;
}

/* Le héros devient une page de garde, pas une bannière publicitaire. */
.heros {
  border-bottom: 1px solid var(--trait);
  box-shadow: inset 0 -10rem 10rem rgba(5, 9, 10, 0.26);
}

.heros::before {
  position: absolute;
  top: 8.75rem;
  right: var(--marge);
  z-index: 2;
  content: "DOSSIER 01  /  INNSMOUTH";
  writing-mode: vertical-rl;
  font-family: var(--f-archive);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: rgba(232, 224, 209, 0.56);
  opacity: 0.8;
}

.heros::after {
  position: absolute;
  inset: 5.8rem var(--marge) 2rem;
  z-index: 1;
  content: "";
  border: 1px solid rgba(232, 224, 209, 0.12);
  pointer-events: none;
}

.heros__contenu {
  max-width: 1200px;
  padding-left: clamp(1.75rem, 8vw, 7rem);
}

.heros__texte,
.bandeau__chapo {
  font-family: var(--f-titre);
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.heros__texte p,
.bandeau__chapo { max-width: 48ch; }

.heros h1 { text-wrap: balance; }

.heros__fond img,
.heros__fond video {
  filter: saturate(0.72) contrast(0.94);
}

.heros__voile {
  background:
    linear-gradient(90deg, rgba(5, 9, 10, 0.3), transparent 58%),
    linear-gradient(to bottom, rgba(10, 13, 15, 0.72), rgba(10, 13, 15, 0.38) 42%, var(--abysse));
}

/* Les bandeaux ont le statut d'une fiche de territoire. */
.bandeau::after {
  position: absolute;
  inset: 5.5rem var(--marge) 1.5rem;
  content: "";
  border: 1px solid rgba(232, 224, 209, 0.1);
  pointer-events: none;
}

.bandeau__fond img { filter: saturate(0.64) contrast(0.92); }

.bandeau__contenu { padding-left: clamp(1.75rem, 8vw, 7rem); }

.bandeau__contenu h1 { text-wrap: balance; }

/* Les cartes deviennent des fiches, sans arrondis ni effet de produit. */
.carte,
.acte,
.liaison a,
.encadre,
.fiche > div {
  background:
    linear-gradient(135deg, rgba(232, 224, 209, 0.035), transparent 48%),
    var(--papier-sombre);
}

.carte {
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.55rem;
  border: var(--cadre-document);
  border-top-color: var(--encre-cuivre);
}

.carte::before,
.acte::before {
  display: block;
  width: 2rem;
  height: 1px;
  margin-bottom: 1.15rem;
  content: "";
  background: var(--cuivre);
  opacity: 0.72;
}

.acte { padding-inline: 1.35rem; border: var(--cadre-document); border-top-color: var(--encre-cuivre); }
.acte__visuel { border-color: rgba(168, 173, 168, 0.22); }

.oeuvre__visuel {
  padding: 0.7rem;
  border-color: rgba(168, 173, 168, 0.22);
  background: #0c1112;
}

.oeuvre__visuel::after {
  position: absolute;
  inset: 0.95rem;
  content: "";
  border: 1px solid rgba(232, 224, 209, 0.22);
  pointer-events: none;
}

.oeuvre__meta,
.chrono__detail,
.fiche dt,
.archive { color: var(--acte-brume); }

.oeuvre__badge { display: flex; align-items: center; gap: 0.75rem; }

/* La chronologie est une ligne de transmission, pas une simple liste de cartes. */
.chrono__etape {
  background: linear-gradient(90deg, rgba(232, 224, 209, 0.035), transparent 74%);
}

.chrono__etape::before { box-shadow: 0 0 0 4px rgba(168, 120, 69, 0.08); }

.chrono__titre { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }

.chrono__resume { font-family: var(--f-titre); font-size: 1.05rem; }

.fil { opacity: 0.92; }

.surtitre::before {
  display: inline-block;
  width: 1.35rem;
  height: 1px;
  margin: 0 0.7rem 0.22rem 0;
  content: "";
  background: currentColor;
  opacity: 0.7;
}

.bouton { border-radius: 0; box-shadow: 0 0.35rem 1.8rem rgba(5, 9, 10, 0.14); }

.liaison a { border-color: rgba(168, 173, 168, 0.2); }

.video,
.galerie figure { border-color: rgba(168, 173, 168, 0.22); background: #0c1112; }

.pied {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 10, 0.3));
}

.pied::before {
  position: absolute;
  top: -0.4rem;
  left: var(--marge);
  width: 0.8rem;
  height: 0.8rem;
  content: "";
  border: 1px solid var(--cuivre);
  transform: rotate(45deg);
  opacity: 0.6;
}

@media (max-width: 700px) {
  .heros::before { top: auto; right: 1.25rem; bottom: 3rem; writing-mode: horizontal-tb; font-size: 0.5rem; }
  .heros::after,
  .bandeau::after { inset-inline: 1rem; }
  .heros__contenu,
  .bandeau__contenu { padding-left: var(--marge); }
  .section::after,
  .section--serre::after { left: var(--marge); }
}

/* Parcours éditorial des livrets : l’image reste une archive, le texte une légende. */
.section--pistes { overflow: hidden; }

.section--archive { padding-top: 0; }
.univers__visuel {
  display: block;
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
  border: var(--cadre-document);
  border-top-color: var(--encre-cuivre);
  filter: saturate(.78) contrast(1.04);
}

.pistes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  padding: 0;
  list-style: none;
  counter-reset: piste;
}

.piste {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: var(--cadre-document);
  border-top-color: var(--encre-cuivre);
  background: rgba(10, 15, 16, 0.48);
}

.piste__visuel { aspect-ratio: 0.53; overflow: hidden; background: #0c1112; }
.piste__visuel:empty { display: none; }
.piste__visuel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity .35s ease, transform .5s ease; }
.piste:hover .piste__visuel img { opacity: 1; transform: scale(1.025); }

.piste__corps { position: relative; padding: 1.1rem 1.15rem 1.35rem; }
.piste__numero { display: block; margin-bottom: .65rem; color: var(--cuivre); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; }
.piste h3 { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.piste p { margin: .75rem 0 0; color: var(--acte-brume); font-family: var(--f-titre); font-size: .98rem; line-height: 1.55; }

@media (max-width: 900px) {
  .pistes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .pistes { grid-template-columns: 1fr; }
}

/* ---------- Photographies de concert ---------- */
.cliches {
  display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-flow: dense;
}
.cliches figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--trait); background: var(--ardoise); height: 100%; }
.cliches img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s cubic-bezier(0.22,1,0.36,1), opacity 600ms; }
.cliches figure:hover img { transform: scale(1.04); }
.cliche--paysage img { aspect-ratio: 3 / 2; }
.cliche--portrait img { aspect-ratio: 2 / 3; }
.cliches figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.25rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(10,13,15,0.92));
  font-family: var(--f-archive); font-size: 0.66rem; letter-spacing: 0.08em;
  color: var(--texte-doux);
}
@media (min-width: 700px) {
  .cliche--portrait { grid-row: span 2; }
  .cliche--portrait img { aspect-ratio: auto; }
}
@media (min-width: 1100px) {
  .cliches { grid-template-columns: repeat(3, 1fr); }
  .cliches li:first-child { grid-column: span 2; }
  .cliches li:first-child.cliche--paysage img { aspect-ratio: 2 / 1; }
}

/* ---------- Planche illustrée (chapitre XIV, §18) ---------- */
.planche { margin: 0; }
.planche picture { display: block; border: 1px solid var(--trait); background: var(--abysse); }
.planche img { width: 100%; height: auto; }
.planche figcaption { display: grid; gap: 0.5rem; margin-top: 1.25rem; padding-left: 1.25rem; border-left: 1px solid var(--trait-fort); }
.planche__titre { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 300; color: var(--texte); }
.planche__legende { font-family: var(--f-editorial); font-size: 1rem; line-height: 1.65; color: var(--texte-doux); }
.planche__credit { font-family: var(--f-archive); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-faible); }

/* ---------- Étapes numérotées (cycle du podcast) ---------- */
.etapes { margin: 1.25rem 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.etapes li { font-family: var(--f-editorial); font-size: 1.02rem; color: var(--texte-doux); }
.etapes li::marker { font-family: var(--f-archive); font-size: 0.72rem; color: var(--cuivre); }
