/* ══════════════════════════════════════════════════════════════════════════════
   RICHARD ALEXANDRE — ÉCRIVAIN
   Identité : la nuit, la lune, le papier. Typographies : Cormorant Garamond + Lato.
   Tous les couples texte/fond respectent le contraste WCAG AA (4,5:1 minimum).
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── POLICES (hébergées sur le site) ─────────────────────────────────────────── */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ── VARIABLES ───────────────────────────────────────────────────────────────── */
:root {
  --papier:       #f8f4ec;
  --papier-2:     #f0e9dc;
  --blanc:        #fffdf9;
  --encre:        #1d1830;   /* texte principal  — 15,6:1 sur papier */
  --encre-2:      #4b4560;   /* texte secondaire —  8,3:1 sur papier */
  --encre-3:      #625c72;   /* texte discret    —  5,9:1 sur papier */
  --nuit:         #15112a;
  --nuit-2:       #261d4a;
  --nuit-texte:   #efe9f6;   /* 15,2:1 sur nuit */
  --nuit-texte-2: #c2b9d6;   /*  9,6:1 sur nuit */
  --or:           #b08433;   /* filets, ornements */
  --or-texte:     #7a5718;   /*  5,9:1 sur papier */
  --or-clair:     #e2c27f;   /* 10,6:1 sur nuit  */
  --or-bouton:    #e0bd74;
  --trait:        rgba(29, 24, 48, 0.14);
  --trait-nuit:   rgba(239, 233, 246, 0.16);
  --rouge:        #a3261b;
  --vert:         #2f5d2c;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans:  "Lato", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --largeur: 1180px;
  --largeur-texte: 740px;
  --gouttiere: clamp(16px, 5vw, 48px);
  --section: clamp(64px, 10vw, 128px);
  --entete: 72px;
  --ombre-livre: 0 2px 4px rgba(10, 6, 25, .25), 0 18px 40px rgba(10, 6, 25, .35), 0 40px 80px rgba(10, 6, 25, .25);
}

/* ── BASE ────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--encre);
  background: var(--papier);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
em { font-style: italic; }
strong { font-weight: 700; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--or-clair); color: var(--nuit); }

:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 2px; }
.nuit :focus-visible, .entete :focus-visible, .pied :focus-visible { outline-color: var(--or-clair); }
main:focus { outline: none; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--or-bouton); color: var(--nuit); font-weight: 700; border-radius: 2px; }
.lien-evitement:focus { top: 12px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-texte { max-width: calc(var(--largeur-texte) + 2 * var(--gouttiere)); }
.centre { text-align: center; }

/* ── TYPOGRAPHIE ─────────────────────────────────────────────────────────────── */
.surtitre {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 700; font-size: .75rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--or-texte); margin-bottom: 1.1rem;
}
.surtitre::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.surtitre-centre { justify-content: center; }
.surtitre-centre::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }

.titre-geant, .titre-page, .titre-section {
  font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.005em;
  text-wrap: balance;
}
.titre-geant   { font-size: clamp(3rem, 8.5vw, 6.4rem); line-height: .98; }
.titre-page    { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: .35em; }
.titre-section { font-size: clamp(2.05rem, 4.2vw, 3.1rem); margin-bottom: .5em; }
.titre-petit   { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.titre-centre  { text-align: center; }

.chapeau {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.4;
  color: var(--nuit-texte-2); max-width: 34ch; text-wrap: pretty;
}
.chapeau-sombre { color: var(--encre-2); }
.centre .chapeau, .chapeau.centre { margin-inline: auto; }

.texte-courant { max-width: 66ch; }
.texte-courant p + p { margin-top: 1em; }
.texte-courant + .lien-fleche, .texte-courant + p { margin-top: 1.6rem; }
.texte-lecture { font-family: var(--serif); font-weight: 500; font-size: clamp(1.22rem, 1.8vw, 1.36rem); line-height: 1.68; max-width: none; }
.texte-discret { color: var(--encre-3); font-size: .95rem; }
.nuit .texte-discret { color: var(--nuit-texte-2); }

.lettrine::first-letter, .article-corps > p:first-child::first-letter {
  float: left; font-family: var(--serif); font-weight: 500; font-style: normal;
  font-size: 4.4em; line-height: .82; padding: .06em .1em 0 0; color: var(--or-texte);
}
.lettrine-fin { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--encre); }

/* ── LIENS & BOUTONS ─────────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 13px 28px;
  font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.3;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.bouton-principal { background: var(--or-bouton); color: var(--nuit); border-color: var(--or); box-shadow: 0 6px 20px -8px rgba(176, 132, 51, .7); }
.bouton-principal:hover { background: #ecd197; transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(176, 132, 51, .8); text-decoration: none; }
.bouton-contour { background: transparent; border-color: currentColor; }
.bouton-sombre { color: var(--encre); }
.bouton-sombre:hover { background: var(--encre); color: var(--papier); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--or-texte); text-decoration: none; padding-block: .5em;
  border-bottom: 1px solid currentColor;
}
.lien-fleche::after { content: "→"; letter-spacing: 0; transition: transform .25s; }
.lien-fleche:hover::after { transform: translateX(4px); }
.lien-clair { color: var(--or-clair); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 2.2rem; }

.lien-bouton { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; }

/* ── EN-TÊTE ─────────────────────────────────────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 40;
  background: rgba(21, 17, 42, .96);
  color: var(--nuit-texte);
  border-bottom: 1px solid var(--trait-nuit);
  transition: box-shadow .3s;
}
@supports (backdrop-filter: blur(8px)) { .entete { background: rgba(21, 17, 42, .86); backdrop-filter: blur(12px) saturate(1.2); } }
.entete.defile { box-shadow: 0 8px 30px rgba(10, 6, 25, .35); }
.entete-inner {
  max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere);
  min-height: var(--entete); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; flex-direction: column; flex-shrink: 0; text-decoration: none; line-height: 1.05; white-space: nowrap; }
.logo-nom  { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; }
.logo-role { font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--or-clair); margin-top: 3px; }

.menu { display: flex; align-items: center; gap: 30px; }
.menu ul { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.menu ul a {
  position: relative; display: inline-block; padding-block: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  color: var(--nuit-texte-2); text-decoration: none; transition: color .2s;
}
.menu ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--or-clair); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu ul a:hover, .menu ul a[aria-current="page"] { color: var(--nuit-texte); }
.menu ul a:hover::after, .menu ul a[aria-current="page"]::after { transform: scaleX(1); }
.bouton-menu { min-height: 42px; padding: 10px 16px; font-size: .72rem; letter-spacing: .08em; box-shadow: none; white-space: nowrap; }

.menu-bouton { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px 8px 12px; background: none; border: 0; color: var(--nuit-texte); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.menu-icone, .menu-icone::before, .menu-icone::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s, background-color .3s; }
.menu-icone { position: relative; }
.menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
.menu-icone::before { top: -7px; }
.menu-icone::after  { top: 7px; }
.menu-bouton[aria-expanded="true"] .menu-icone { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-icone::before { transform: translateY(7px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-icone::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .js .menu-bouton { display: inline-flex; }
  .js .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 12px var(--gouttiere) 32px;
    background: var(--nuit); border-bottom: 1px solid var(--trait-nuit);
    box-shadow: 0 30px 40px rgba(10, 6, 25, .4);
    max-height: calc(100vh - var(--entete)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .js .menu.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .js .menu ul { flex-direction: column; gap: 0; }
  .js .menu ul a { display: block; padding: 14px 0; font-size: .9rem; border-bottom: 1px solid var(--trait-nuit); }
  .js .menu ul a::after { display: none; }
  .js .menu ul a[aria-current="page"] { color: var(--or-clair); }
  .no-js .entete-inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .menu { flex-wrap: wrap; gap: 12px 24px; }
  .no-js .menu ul { flex-wrap: wrap; gap: 4px 20px; }
}

/* Menu compact automatique : si le menu ne tient plus sur une ligne (beaucoup de pages), bouton « Menu » */
.menu-compact .menu-bouton { display: inline-flex; }
.menu-compact .menu {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 24px;
  padding: 12px var(--gouttiere) 32px;
  background: var(--nuit); border-bottom: 1px solid var(--trait-nuit);
  box-shadow: 0 30px 40px rgba(10, 6, 25, .4);
  max-height: calc(100vh - var(--entete)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.menu-compact .menu.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
.menu-compact .menu ul { flex-direction: column; gap: 0; }
.menu-compact .menu ul a { display: block; padding: 14px 0; font-size: .9rem; border-bottom: 1px solid var(--trait-nuit); }
.menu-compact .menu ul a::after { display: none; }
.menu-compact .menu ul a[aria-current="page"] { color: var(--or-clair); }
.menu-compact .menu ul.menu-reseaux { flex-direction: row; justify-content: center; gap: 14px; }
.menu-compact .menu ul.menu-reseaux a { display: grid; width: 48px; height: 48px; padding: 0; border: 1px solid var(--trait-nuit); border-radius: 50%; }

/* ── FONDS DE NUIT (ciel étoilé en CSS pur, sans image ni animation coûteuse) ── */
.nuit {
  position: relative; isolation: isolate;
  color: var(--nuit-texte);
  background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(98, 76, 160, .35), transparent 70%),
              linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%);
}
.nuit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 43% 33%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 57%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 27%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 61%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 8%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 92%, rgba(255,255,255,.7) 50%, transparent 51%);
  background-size: 340px 340px;
}
.nuit .surtitre { color: var(--or-clair); }
.nuit a:not(.bouton) { color: var(--or-clair); }

/* ── SECTIONS ────────────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section-papier { background: var(--papier-2); }
.section-serree { padding-block: clamp(48px, 7vw, 80px); }
.section-serree-haut { padding-top: clamp(24px, 4vw, 48px); }
.section + .section:not(.section-papier):not(.nuit) { border-top: 1px solid var(--trait); }

.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 104px); align-items: center; }
.entete-section { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.entete-section .titre-section { margin-bottom: 0; }

/* ── OUVERTURE (accueil) ─────────────────────────────────────────────────────── */
.ouverture { padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 136px); overflow: hidden; }
.ouverture-inner { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ouverture .chapeau { margin-top: 1.6rem; color: var(--nuit-texte); }
.ouverture-presentation { margin-top: 1.4rem; max-width: 52ch; color: var(--nuit-texte-2); }
.ouverture-presentation em { color: var(--nuit-texte); }
.ouverture-visuel { position: relative; display: flex; flex-direction: column; align-items: center; }
.ouverture-visuel::before {
  content: ""; position: absolute; z-index: -1; width: 130%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(226, 214, 246, .22) 0%, rgba(140, 120, 200, .12) 35%, transparent 65%);
}
.ouverture-dispo { text-align: center; margin-top: 28px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--nuit-texte-2); }

/* Livre en volume */
.livre-3d { display: block; width: min(300px, 68vw); perspective: 1200px; text-decoration: none; }
.livre-3d picture { position: relative; transform: rotateY(-14deg) rotateX(2deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.7,.2,1); box-shadow: var(--ombre-livre); border-radius: 1px 4px 4px 1px; }
.livre-3d picture::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(255,255,255,.18) 1.6%, rgba(0,0,0,.12) 3.4%, transparent 7%, transparent 92%, rgba(255,255,255,.06) 100%); }
.livre-3d img { width: 100%; border-radius: inherit; }
a.livre-3d:hover picture, a.livre-3d:focus-visible picture { transform: rotateY(-4deg) rotateX(0); }

/* ── LIVRE : grille d'accueil ────────────────────────────────────────────────── */
.grille-livre { align-items: start; }
.grille-livre .chapeau { max-width: 26ch; }

/* ── EXTRAITS ────────────────────────────────────────────────────────────────── */
.extraits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); }
.extrait { position: relative; padding: 48px 32px 32px; background: var(--blanc); border: 1px solid var(--trait); border-top: 2px solid var(--or); }
.section-papier .extrait { background: var(--blanc); }
.section:not(.section-papier) .extrait { background: var(--papier-2); border-color: transparent; border-top-color: var(--or); }
.extrait::before { content: "“"; position: absolute; top: 4px; left: 26px; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--or); opacity: .55; }
.extrait blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.42rem; line-height: 1.45; color: var(--encre); }
.extrait figcaption { margin-top: 18px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); }

/* ── ROMAN & CORBEAUX ────────────────────────────────────────────────────────── */
.section-roman { overflow: hidden; }
.grille-roman { grid-template-columns: .95fr 1.05fr; }
.roman-texte p:not([class]) { color: var(--nuit-texte-2); max-width: 56ch; }
.roman-texte p:not([class]) + p:not([class]) { margin-top: 1em; }
.citation-roman { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.35; color: var(--nuit-texte); margin-bottom: 1.4rem; }
.lieux { margin-top: 1.6rem; font-size: .76rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--or-clair); }

/* Les deux corbeaux — la pensée et la mémoire — devant la lune.
   Amélioration : ombres au sol qui respirent, léger balancement, lune lumineuse,
   et mouvement coupé si le visiteur a demandé à réduire les animations. */
.corbeaux { position: relative; display: block; width: min(440px, 100%); aspect-ratio: 4 / 3; margin-inline: auto; }
.corbeaux-grands { width: min(560px, 100%); margin-bottom: clamp(16px, 3vw, 32px); }
.corbeaux-lune {
  position: absolute; left: 15%; top: 0; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fdfbff 0%, #f0eaf8 45%, #ddd3ec 80%, #cfc3e3 100%);
  box-shadow: 0 0 60px 10px rgba(236, 229, 246, .22), 0 0 160px 60px rgba(150, 128, 214, .16);
}
.corbeaux-lune::after { /* reliefs lunaires discrets */
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .28;
  background: radial-gradient(circle at 30% 64%, rgba(170, 156, 196, .25) 0 10%, transparent 11%),
              radial-gradient(circle at 70% 70%, rgba(170, 156, 196, .2) 0 5%, transparent 6%);
}
.corbeau { position: absolute; bottom: 13%; width: 40%; }
.corbeau-gauche { left: 9%;  --incl: 1.6deg; }
.corbeau-droit  { right: 9%; --incl: -1.6deg; }
.corbeau picture { position: relative; z-index: 1; transform-origin: 50% 100%; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }
.corbeau-gauche img { transform: scaleX(-1); }
.corbeau::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -5px; height: 10px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(5, 3, 14, .75) 0%, transparent 70%);
}
.corbeaux-sol { position: absolute; left: 0; right: 0; bottom: 13%; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 194, 127, .55) 20%, rgba(226, 194, 127, .55) 80%, transparent); }

/* Les corbeaux bougent toujours (signature du site, mouvement doux et lent).
   Seule la respiration de la lune s'arrête si le visiteur a demandé moins d'animations. */
.corbeau picture { animation: corbeau-vol 6s ease-in-out infinite; }
.corbeau::after  { animation: corbeau-ombre 6s ease-in-out infinite; }
.corbeau-droit picture, .corbeau-droit::after { animation-delay: -3s; }
@media (prefers-reduced-motion: no-preference) {
  .corbeaux-lune { animation: lune-souffle 12s ease-in-out infinite; }
}
@keyframes corbeau-vol {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-16px) rotate(var(--incl)); }
}
@keyframes corbeau-ombre {
  0%, 100% { transform: scaleX(1);  opacity: 1; }
  50%      { transform: scaleX(.68); opacity: .45; }
}
@keyframes lune-souffle {
  0%, 100% { box-shadow: 0 0 60px 10px rgba(236, 229, 246, .22), 0 0 160px 60px rgba(150, 128, 214, .16); }
  50%      { box-shadow: 0 0 70px 14px rgba(236, 229, 246, .3),  0 0 190px 70px rgba(150, 128, 214, .2); }
}

/* ── AUTEUR ──────────────────────────────────────────────────────────────────── */
.grille-auteur { grid-template-columns: .8fr 1.2fr; }
.portrait { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--or); z-index: 0; }
/* Ombre marquée, orientée comme le cadre doré (en bas à droite) : la photo semble posée au-dessus du cadre */
.portrait picture { position: relative; z-index: 1; box-shadow: 0 2px 4px rgba(21, 17, 42, .18), 10px 18px 30px -6px rgba(21, 17, 42, .42), 22px 36px 60px -18px rgba(21, 17, 42, .45); }
.portrait img { width: 100%; }
.grille-auteur .titre-section { font-style: italic; }

/* ── AVIS ────────────────────────────────────────────────────────────────────── */
.avis-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-block: clamp(32px, 5vw, 48px); }
.avis-liste-colonne { grid-template-columns: 1fr; }
.avis { padding: 28px 32px; background: var(--blanc); border-left: 2px solid var(--or); }
.avis blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; }
.avis figcaption { margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--encre-2); }
.section:not(.section-papier) .avis { background: var(--papier-2); }

/* ── CARTES D'ARTICLES ───────────────────────────────────────────────────────── */
.cartes-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.carte-article {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 30px 28px; background: var(--blanc); border: 1px solid var(--trait);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.carte-article:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(21, 17, 42, .45); border-color: rgba(176, 132, 51, .45); }
.carte-article-meta { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); }
.carte-article-meta span { color: var(--or-texte); }
.carte-article-titre { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.15; }
.carte-article-titre a { text-decoration: none; }
.carte-article-titre a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.carte-article-titre a:focus-visible { outline: none; }
.carte-article:focus-within { outline: 3px solid var(--or); outline-offset: 3px; }
.carte-article-extrait { margin-top: 12px; color: var(--encre-2); font-size: 1rem; flex: 1; }
.carte-article-lire { margin-top: 20px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
.carte-article-lire span { display: inline-block; transition: transform .25s; }
.carte-article:hover .carte-article-lire span { transform: translateX(4px); }

/* ── EN-TÊTES DE PAGES INTÉRIEURES ───────────────────────────────────────────── */
.page-tete { padding-block: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 40px); }
.page-tete-legale { padding-bottom: 0; }
.page-auteur-tete { padding-block: clamp(48px, 8vw, 104px); }
.page-auteur-tete .grille-auteur { align-items: center; }

/* ── PAGE LIVRE ──────────────────────────────────────────────────────────────── */
.page-livre-tete { padding-block: clamp(40px, 6vw, 88px); }
.grille-livre-tete { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.livre-tete-couverture {
  position: relative; isolation: isolate; display: grid; place-items: center;
  padding: clamp(40px, 6vw, 72px) 24px; border-radius: 2px; overflow: hidden;
  color: var(--nuit-texte);
  background: radial-gradient(circle at 50% 42%, rgba(226, 214, 246, .25), transparent 60%), linear-gradient(180deg, var(--nuit), var(--nuit-2));
}
.livre-tete-couverture .livre-3d { width: min(280px, 64vw); }
.livre-tete-texte .chapeau { margin-bottom: 2rem; }

.achat { padding: clamp(24px, 3vw, 32px); background: var(--blanc); border: 1px solid var(--trait); border-top: 3px solid var(--or); }
.achat-titre { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--encre); margin-bottom: 16px; }
.achat-liste { display: grid; gap: 10px; }
.achat-lien {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 20px; border: 1px solid var(--trait); border-radius: 2px;
  text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s;
}
.achat-lien:hover { border-color: var(--or); background: var(--papier); transform: translateX(2px); }
.achat-lien-principal { background: var(--or-bouton); border-color: var(--or); }
.achat-lien-principal:hover { background: #ecd197; }
.achat-format { font-weight: 700; }
.achat-vendeur { font-size: .9rem; color: var(--encre-2); }
.achat-lien-principal .achat-vendeur { color: var(--nuit); }
.achat-fleche { font-size: 1.1rem; }
.achat-note { margin-top: 14px; font-size: .9rem; color: var(--encre-3); }

.themes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.2rem; }
.themes li { padding: 6px 16px; border: 1px solid rgba(122, 87, 24, .35); border-radius: 999px; font-size: .86rem; color: var(--or-texte); background: var(--blanc); }

.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; margin-top: 8px; }
.fiche div { padding: 14px 0; border-bottom: 1px solid var(--trait); }
.fiche dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-texte); }
.fiche dd { margin-top: 2px; }

/* ── PAGE ROMAN ──────────────────────────────────────────────────────────────── */
.roman-tete { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 112px); text-align: center; }
.roman-tete .titre-page { max-width: 16ch; margin-inline: auto; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); counter-reset: etape; }
.etape { padding: 36px 30px; background: var(--blanc); border: 1px solid var(--trait); counter-increment: etape; }
.etape-lieu { display: flex; align-items: baseline; gap: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--or-texte); }
.etape-lieu::before { content: counter(etape, upper-roman); font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0; }
.etape-titre { margin-block: 12px 10px; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.etape p:last-child { color: var(--encre-2); }
.section-appel .texte-courant { margin-inline: auto; margin-bottom: 1.4rem; }
.section-appel .texte-discret { margin-top: 2rem; }

/* ── BIBLIOGRAPHIE ───────────────────────────────────────────────────────────── */
.biblio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: 16px; }
.biblio-livre { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.biblio-couverture { display: block; box-shadow: 0 14px 30px -14px rgba(21, 17, 42, .55); }
.biblio-couverture-attente { display: grid; place-items: center; aspect-ratio: 400 / 566; text-decoration: none; }
.biblio-couverture-attente span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--nuit-texte); text-align: center; padding: 8px; }
.biblio-statut { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-texte); }
.biblio-titre { margin-block: 6px 8px; font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }
.biblio-titre a { text-decoration: none; }
.biblio-titre a:hover { text-decoration: underline; }
.biblio-livre p:last-child { color: var(--encre-2); }

/* ── ARTICLE ─────────────────────────────────────────────────────────────────── */
.article-tete { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 40px); }
.fil { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 1.2rem; }
.fil a { color: var(--or-texte); }
.article-date { color: var(--encre-3); font-size: .95rem; }
.article-corps { padding-bottom: 8px; }
.article-corps p + p { margin-top: 1.05em; }
.article-corps .accroche { font-style: italic; font-size: 1.12em; color: var(--encre); }
.article-ornement { margin-block: 40px; text-align: center; color: var(--or); font-size: 1.1rem; letter-spacing: 1em; }
.encart-livre { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: center; padding: 28px; background: var(--papier-2); border-top: 2px solid var(--or); }
.encart-livre-couv picture { box-shadow: 0 10px 24px -10px rgba(21, 17, 42, .55); }
.encart-livre-sur { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); }
.encart-livre-titre { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin-block: 4px 16px; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-block: 48px clamp(56px, 8vw, 96px); }
.article-nav a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; text-decoration: none; }
.article-nav a span { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
.article-nav a:hover { text-decoration: underline; }
.article-nav-suivant { margin-left: auto; text-align: right; }

.commentaires { display: grid; gap: 16px; margin-block: 24px 32px; }
.commentaire { padding: 22px 26px; background: var(--blanc); border-left: 2px solid var(--or); }
.commentaire-meta { font-size: .9rem; color: var(--encre-3); margin-bottom: 6px; }
.commentaire-meta strong { color: var(--encre); }
.compte { font-family: var(--sans); font-size: 1rem; color: var(--encre-3); font-weight: 400; }

/* ── FORMULAIRES ─────────────────────────────────────────────────────────────── */
.depliant { margin-top: 24px; }
.depliant > summary {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 26px;
  border: 1px solid var(--encre); border-radius: 2px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.depliant > summary::-webkit-details-marker { display: none; }
.depliant > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; letter-spacing: 0; }
.depliant[open] > summary::after { content: "–"; }
.depliant > summary:hover { background: var(--encre); color: var(--papier); }
.depliant[open] > .formulaire { margin-top: 24px; }

.formulaire { display: grid; gap: 22px; padding: clamp(24px, 4vw, 40px); background: var(--blanc); border: 1px solid var(--trait); }
.formulaire > .bouton { justify-self: start; }
.champs-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.champ { display: grid; gap: 8px; }
.champ label { font-weight: 700; font-size: .9rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--blanc); border: 1px solid #8a8399; border-radius: 3px;
  font-size: 1rem; line-height: 1.5; transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 150px; }
.champ select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--encre-2); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--or-texte); box-shadow: 0 0 0 3px rgba(176, 132, 51, .35); }
.champ [aria-invalid="true"] { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.champ-erreur { font-size: .9rem; font-weight: 700; color: var(--rouge); }
.champ-erreur::before { content: "⚠ "; }
.compteur { font-size: .82rem; color: var(--encre-3); text-align: right; margin-top: -2px; }
.compteur.limite { color: var(--rouge); font-weight: 700; }
.formulaire-info { font-size: .9rem; color: var(--encre-3); }
.formulaire-info a { color: var(--or-texte); }
.champ-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire button[disabled] { opacity: .65; cursor: progress; }

.alerte { padding: 18px 22px; border-radius: 2px; border-left: 4px solid; }
.alerte:focus { outline: none; }
.alerte ul { margin-top: 6px; padding-left: 1.2em; }
.alerte-erreur { background: #f9e9e6; border-color: var(--rouge); color: #5e140d; }
.alerte-succes { background: #eaf2e6; border-color: var(--vert); color: #1c3a1a; margin-bottom: 24px; }
.alerte-grande { padding: clamp(28px, 5vw, 48px); text-align: center; border-left: 0; border-top: 3px solid var(--vert); }
.alerte-grande p + p { margin-top: .8em; }
.alerte-ornement { font-size: 1.6rem; color: var(--or); }

/* ── CONTACT ─────────────────────────────────────────────────────────────────── */
.grille-contact { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-aside { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--trait); }
.contact-aside-titre { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: .4em; }
.contact-aside p { color: var(--encre-2); }
.contact-aside p + .contact-aside-titre { margin-top: 2rem; }

/* ── PAGES LÉGALES ───────────────────────────────────────────────────────────── */
.texte-legal { max-width: calc(var(--largeur-texte) + 2 * var(--gouttiere)); }
.texte-legal > * + * { margin-top: 1em; }
.texte-legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1.2; margin-top: 2.2em; }
.texte-legal h3 { font-size: 1.05rem; margin-top: 1.8em; }
.texte-legal ul { padding-left: 1.3em; }
.texte-legal li + li { margin-top: .4em; }
.texte-legal a { color: var(--or-texte); }
.texte-legal .chapeau { max-width: none; }
mark.a-completer { background: #fff0b3; color: #4a3500; padding: 0 .3em; border-radius: 2px; }

/* ── 404 ─────────────────────────────────────────────────────────────────────── */
.erreur-404 { padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 128px); min-height: 70vh; }
.erreur-404 .corbeaux { width: min(360px, 90%); margin-bottom: 24px; }
.liens-404 { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 2.4rem; }

/* ── PIED DE PAGE ────────────────────────────────────────────────────────────── */
.pied { background: var(--nuit); color: var(--nuit-texte-2); font-size: .95rem; }
.pied-inner { max-width: var(--largeur); margin-inline: auto; padding: clamp(56px, 8vw, 88px) var(--gouttiere) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.pied-nom { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--nuit-texte); }
.pied-devise { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; max-width: 28ch; }
.pied-reseaux { display: flex; gap: 20px; margin-top: 20px; }
.pied-titre { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 14px; }
.pied ul { display: grid; gap: 6px; list-style: none; padding: 0; }
.pied a, .pied .lien-bouton { color: var(--nuit-texte-2); text-decoration: none; }
.pied a:hover, .pied .lien-bouton:hover { color: var(--nuit-texte); text-decoration: underline; }
.pied-copyright { max-width: var(--largeur); margin-inline: auto; padding: 22px var(--gouttiere) 28px; border-top: 1px solid var(--trait-nuit); font-size: .85rem; }

/* ── BANDEAU DE CONSENTEMENT ─────────────────────────────────────────────────── */
.consentement {
  position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(420px, calc(100vw - 32px));
  padding: 24px; background: var(--blanc); color: var(--encre);
  border: 1px solid var(--trait); border-top: 3px solid var(--or); border-radius: 2px;
  box-shadow: 0 24px 60px -12px rgba(21, 17, 42, .45);
  font-size: .95rem;
}
.consentement[hidden] { display: none; }
.consentement-titre { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 6px; }
.consentement a { color: var(--or-texte); }
.consentement-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.consentement .bouton { color: var(--encre); min-height: 46px; padding-inline: 12px; }
.consentement .bouton:hover { background: var(--encre); color: var(--papier); }

/* ── RÉVÉLATION AU DÉFILEMENT ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveler { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .reveler.visible { opacity: 1; transform: none; }
}

/* ── ADAPTATION MOBILE & TABLETTE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ouverture-inner { grid-template-columns: 1fr; }
  .ouverture .livre-3d { width: min(220px, 58vw); }
  .ouverture-dispo { margin-top: 20px; }
  .extraits, .etapes { grid-template-columns: 1fr; }
  .grille-livre-tete { grid-template-columns: 1fr; }
  .grille-contact { grid-template-columns: 1fr; }
  .contact-aside { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid var(--trait); }
  .pied-inner { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .grille-2, .grille-roman, .grille-auteur { grid-template-columns: 1fr; }
  .grille-roman .roman-visuel { order: -1; }
  .portrait { max-width: 340px; }
  .portrait::before { inset: 12px -12px -12px 12px; }
  .champs-ligne { grid-template-columns: 1fr; }
  .formulaire > .bouton { justify-self: stretch; }
  .encart-livre { grid-template-columns: 72px 1fr; gap: 18px; padding: 20px; }
  .article-nav a { max-width: 100%; }
  .biblio-livre { grid-template-columns: 96px 1fr; gap: 20px; }
  .achat-lien { grid-template-columns: 1fr auto; }
  .achat-vendeur { grid-column: 1; grid-row: 2; }
  .achat-fleche { grid-row: 1 / span 2; grid-column: 2; }
  .extrait { padding: 44px 24px 24px; }
}
@media (max-width: 520px) {
  .logo-nom { font-size: 1.3rem; }
  .menu-texte { display: none; }
  .pied-inner { grid-template-columns: 1fr; }
  .consentement { right: 16px; bottom: 16px; }
  .actions { gap: 16px 24px; }
  .actions .bouton { width: 100%; }
}

/* ── IMPRESSION ──────────────────────────────────────────────────────────────── */
@media print {
  .entete, .pied, .consentement, .depliant, .actions, .article-nav, .encart-livre { display: none !important; }
  .nuit { background: none; color: #000; }
  body { background: #fff; }
}

/* ── Intertitres et citations dans les articles (éditeur de l'administration) ── */
.article-corps h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7em; line-height: 1.2; margin: 1.6em 0 .2em; }
.article-corps blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--or); font-style: italic; color: var(--encre-2); }
.article-corps a { color: var(--or-texte); }
.bandeau-apercu { padding: 10px var(--gouttiere); background: #fff0b3; color: #4a3500; text-align: center; font-weight: 700; font-size: .92rem; }

/* ══════════════════════════════════════════════════════════════════════════════
   BLOCS DE PAGES (éditables dans l'administration)
   ══════════════════════════════════════════════════════════════════════════════ */

/* Bandeau d'ouverture : variantes */
.ouverture-claire { background: var(--papier); color: var(--encre); padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.ouverture-claire.section-papier { background: var(--papier-2); }
.ouverture-claire .ouverture-presentation { color: var(--encre-2); }
.ouverture-claire .chapeau { color: var(--encre-2); }
.ouverture-claire .ouverture-presentation em { color: var(--encre); }
.ouverture-claire .ouverture-visuel::before { display: none; }
.ouverture-seule .ouverture-inner { grid-template-columns: minmax(0, var(--largeur-texte)); }
.ouverture-visuel-corbeaux .ouverture-inner { grid-template-columns: 1.1fr .9fr; }
.ouverture-visuel-image .ouverture-inner { grid-template-columns: 1.2fr .8fr; }
.ouverture-visuel-image .ouverture-visuel { order: -1; }
.ouverture-visuel .corbeaux { width: min(500px, 100%); }
.ouverture-presentation p + p { margin-top: .8em; }
.ouverture-seule .titre-page { margin-bottom: .2em; }

/* Texte */
.bloc-lien { margin-top: 1.6rem; }
.bloc-centre .texte-courant { margin-inline: auto; }
.titre-italique { font-style: italic; }
.nuit .texte-courant, .nuit .texte-courant p { color: var(--nuit-texte-2); }
.nuit .texte-courant strong, .nuit .texte-courant em { color: var(--nuit-texte); }
.texte-courant h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 1.8em 0 .5em; }
.texte-courant h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 1.6em 0 .4em; }
.texte-courant > :first-child { margin-top: 0; }
.texte-courant ul { padding-left: 1.3em; margin-block: .8em; }
.texte-courant li + li { margin-top: .35em; }
.texte-courant a { color: var(--or-texte); }
.nuit .texte-courant a { color: var(--or-clair); }
.texte-courant blockquote { margin: 0 0 1.2em; padding: .1em 0 .1em 1.1em; border-left: 2px solid var(--or); font-family: var(--serif); font-style: italic; font-size: 1.4em; line-height: 1.4; color: var(--encre); }
.nuit .texte-courant blockquote { color: var(--nuit-texte); border-color: var(--or-clair); }
.texte-courant blockquote p { margin: 0; }
.texte-lecture { max-width: 66ch; }
.contact-aside h2 { font-size: 1.45rem; margin-top: 1.6em; }

/* Texte et image */
.grille-texte-image { grid-template-columns: .85fr 1.15fr; }
.grille-texte-image.visuel-droite { grid-template-columns: 1.15fr .85fr; }
.visuel-livre { display: grid; place-items: center; }
.visuel-livre .livre-3d { width: min(260px, 60vw); }

/* Cartes */
.etapes-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.etapes-2 { grid-template-columns: repeat(2, 1fr); }
.nuit .etape { background: rgba(255, 255, 255, .05); border-color: var(--trait-nuit); }
.nuit .etape p:last-child { color: var(--nuit-texte-2); }
.nuit .etape-lieu { color: var(--or-clair); }

/* Achat */
.page-livre-tete.section { padding-block: clamp(40px, 6vw, 88px); }
.achat-texte { margin-bottom: 1.6rem; }

/* ── Réseaux sociaux ──────────────────────────────────────────────────────── */
.reseaux-intro { margin: 0 auto 2.2rem; max-width: 56ch; }
.reseaux-cartes { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.reseaux-cartes li { flex: 1 1 260px; max-width: 340px; }
.reseau-carte {
  position: relative; display: grid; justify-items: center; gap: 6px; height: 100%;
  padding: 32px 24px 26px; text-decoration: none; text-align: center;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 4px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.reseau-carte:hover, .reseau-carte:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(21, 17, 42, .5); border-color: var(--or); }
.reseau-icone {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%;
  color: #fff; background: var(--nuit); transition: transform .3s;
}
.reseau-carte:hover .reseau-icone { transform: scale(1.08) rotate(-4deg); }
.reseau-instagram .reseau-icone { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.reseau-facebook .reseau-icone  { background: #1877f2; }
.reseau-linkedin .reseau-icone  { background: #0a66c2; }
.reseau-youtube .reseau-icone   { background: #e62117; }
.reseau-tiktok .reseau-icone    { background: #111; }
.reseau-bluesky .reseau-icone   { background: #1185fe; }
.reseau-babelio .reseau-icone   { background: #7a5718; }
.reseau-nom { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--encre); }
.reseau-compte { font-size: .92rem; color: var(--or-texte); font-weight: 700; }
.reseau-texte { margin-top: 4px; color: var(--encre-2); font-size: .98rem; line-height: 1.5; }
.reseau-suivre {
  margin-top: 14px; display: inline-flex; gap: .5em; padding: 9px 22px; border: 1px solid var(--encre); border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre);
  transition: background-color .25s, color .25s;
}
.reseau-carte:hover .reseau-suivre { background: var(--encre); color: var(--papier); }
.nuit .reseau-carte { background: rgba(255, 255, 255, .06); border-color: var(--trait-nuit); }
.nuit .reseau-nom { color: var(--nuit-texte); }
.nuit .reseau-compte { color: var(--or-clair); }
.nuit .reseau-texte { color: var(--nuit-texte-2); }
.nuit .reseau-suivre { color: var(--nuit-texte); border-color: var(--nuit-texte-2); }
.nuit .reseau-carte:hover .reseau-suivre { background: var(--or-bouton); border-color: var(--or-bouton); color: var(--nuit); }

/* Icônes dans l'en-tête : visibles sans voler la vedette */
.menu-reseaux { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.menu-reseaux a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--nuit-texte-2); transition: color .2s, background-color .2s, transform .2s; }
.menu-reseaux a:hover { color: var(--nuit); background: var(--or-clair); transform: translateY(-1px); }
@media (max-width: 1040px) {
  .js .menu ul.menu-reseaux { flex-direction: row; justify-content: center; gap: 14px; }
  .js .menu ul.menu-reseaux a { display: grid; width: 48px; height: 48px; padding: 0; border: 1px solid var(--trait-nuit); border-radius: 50%; }
}

/* Fin d'article : invitation à suivre */
.encart-suivre { padding: clamp(24px, 4vw, 36px); background: var(--nuit); color: var(--nuit-texte-2); border-radius: 4px; text-align: center; }
.encart-suivre-titre { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--nuit-texte); margin-bottom: 6px; }
.encart-suivre em { color: var(--nuit-texte); }
.encart-suivre-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.encart-reseau { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--trait-nuit); border-radius: 999px; color: var(--nuit-texte); text-decoration: none; font-weight: 700; font-size: .9rem; transition: background-color .2s, color .2s; }
.encart-reseau:hover { background: var(--or-clair); color: var(--nuit); border-color: var(--or-clair); }

/* Pied de page : réseaux plus visibles */
.pied-titre-reseaux { margin-top: 24px; }
.pied .pied-reseaux { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }
.pied .pied-reseaux a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 1px solid var(--trait-nuit); border-radius: 999px; color: var(--nuit-texte); }
.pied .pied-reseaux a:hover { background: var(--or-clair); color: var(--nuit); border-color: var(--or-clair); text-decoration: none; }

/* ── Liste de lecteurs ────────────────────────────────────────────────────── */
.section-inscription .titre-section { max-width: 20ch; margin-inline: auto; }
.inscription-intro { margin: 0 auto 2rem; max-width: 52ch; }
.inscription { max-width: 580px; margin-inline: auto; text-align: left; display: grid; gap: 14px; }
.inscription-ligne { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.inscription .champ label { font-size: .9rem; }
.nuit .inscription .champ > label { color: var(--nuit-texte); }
.nuit .inscription input[type="email"] { background: #fff; }
.inscription .bouton { min-height: 50px; }
.champ-case label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.champ .champ-case label, .champ-case label { font-weight: 400; }
.champ-case input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--or); }
.nuit .champ-case label, .nuit .formulaire-info { color: var(--nuit-texte-2); }
.nuit .champ-erreur { color: #ffb4a8; }
.nuit .alerte-erreur { background: #3a1820; color: #ffd9d2; }
.alerte-inscription { max-width: 580px; margin-inline: auto; text-align: left; }
.nuit .alerte-succes { background: rgba(255, 255, 255, .08); border-color: var(--or-clair); color: var(--nuit-texte); }
.section-inscription-etat .corbeaux { width: min(320px, 80%); margin-bottom: 16px; }
.actions-centre { justify-content: center; }

@media (max-width: 760px) {
  .grille-texte-image, .grille-texte-image.visuel-droite { grid-template-columns: 1fr; }
  .grille-texte-image.visuel-droite .bloc-visuel { order: -1; }
  .ouverture-visuel-corbeaux .ouverture-inner, .ouverture-visuel-image .ouverture-inner { grid-template-columns: 1fr; }
  .ouverture-visuel .corbeaux { width: min(300px, 86%); }
  .ouverture-visuel-corbeaux .ouverture-inner { gap: 8px; }
  .etapes-2 { grid-template-columns: 1fr; }
  .inscription-ligne { grid-template-columns: 1fr; }
  .inscription .bouton { width: 100%; }
}
@media (max-width: 1180px) and (min-width: 1041px) {
  .menu ul { gap: 16px; }
  .menu { gap: 18px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   VERSION 4 : couverture du roman, inscription avec avant-première
   ══════════════════════════════════════════════════════════════════════════════ */
.inscription-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: center; max-width: 1040px; }
.inscription-couverture { display: grid; place-items: center; position: relative; }
.inscription-couverture::before {
  content: ""; position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(226, 194, 127, .22) 0%, rgba(140, 120, 200, .12) 40%, transparent 68%);
}
.inscription-couverture .livre-3d { width: min(300px, 62vw); }
.inscription-avec-couverture .titre-section { max-width: none; margin-inline: 0; }
.inscription-avec-couverture .inscription-intro { margin-inline: 0; }
.inscription-avec-couverture .inscription, .inscription-avec-couverture .alerte-inscription { margin-inline: 0; }
.inscription-avec-couverture .surtitre { justify-content: flex-start; }

.inscription-etat-couverture { display: grid; place-items: center; margin-bottom: 28px; }
.inscription-etat-couverture .livre-3d { width: min(220px, 56vw); }
.extrait-lien-perso { padding-block: 0 48px; font-size: .92rem; color: var(--encre-3); text-align: center; }
.extrait-lien-perso a { color: var(--or-texte); word-break: break-all; }

/* Couverture en volume dans les blocs « Texte et image » */
.visuel-livre .livre-3d { width: min(280px, 60vw); }

/* En-tête : icônes plus compactes quand il y a plusieurs réseaux */
.menu-reseaux a { width: 34px; height: 34px; }
.menu-reseaux { gap: 0; }

@media (max-width: 860px) {
  .inscription-grille { grid-template-columns: 1fr; text-align: center; }
  .inscription-couverture .livre-3d { width: min(200px, 52vw); }
  .inscription-avec-couverture .surtitre { justify-content: center; }
  .inscription-avec-couverture .titre-section, .inscription-avec-couverture .inscription-intro { margin-inline: auto; }
  .inscription-avec-couverture .inscription, .inscription-avec-couverture .alerte-inscription { margin-inline: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   VERSION 5 : aperçu de l'extrait, avis raccourcis, bandeau cookies compact
   ══════════════════════════════════════════════════════════════════════════════ */
.apercu-extrait { position: relative; margin: 0 0 1.8rem; padding: 22px 26px 18px; border-left: 2px solid var(--or-clair); background: rgba(255, 255, 255, .05); border-radius: 0 4px 4px 0; text-align: left; }
.apercu-extrait-texte { position: relative; max-height: 11.5em; overflow: hidden; font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.55; color: var(--nuit-texte); }
.apercu-extrait-texte p + p { margin-top: .6em; }
.apercu-extrait-texte::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em; background: linear-gradient(transparent, var(--nuit-2)); }
.apercu-extrait figcaption { margin-top: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-clair); }
.section-inscription:not(.nuit) .apercu-extrait { background: var(--blanc); border-color: var(--or); }
.section-inscription:not(.nuit) .apercu-extrait-texte { color: var(--encre); }
.section-inscription:not(.nuit) .apercu-extrait-texte::after { background: linear-gradient(transparent, var(--blanc)); }
.section-inscription:not(.nuit) .apercu-extrait figcaption { color: var(--or-texte); }

/* Avis : 5 lignes, puis « Lire la suite » */
.js .avis.avis-replie blockquote p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.avis-suite { margin-top: 10px; padding: 0; background: none; border: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-texte); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Bandeau cookies discret sur téléphone */
@media (max-width: 600px) {
  .consentement { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 12px 14px; font-size: .82rem; line-height: 1.45; }
  .consentement-titre { display: none; }
  .consentement-actions { margin-top: 10px; gap: 8px; }
  .consentement .bouton { min-height: 40px; padding: 8px 10px; font-size: .72rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   VERSION 8 : bandeau cookies compact, inscription d'abord sur téléphone,
   compteur de lecteurs, encart de fin de chapitre et de fin d'article
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .consentement { padding: 10px 12px; font-size: .8rem; line-height: 1.4; border-top-width: 2px; }
  .consentement-detail { display: none; }
  .consentement-actions { margin-top: 8px; }
  .consentement .bouton { min-height: 38px; padding: 6px 10px; }
}
@media (max-width: 860px) {
  /* Le texte, l'aperçu et le formulaire d'abord ; la couverture ensuite, plus petite */
  .inscription-avec-couverture .inscription-couverture { order: 2; margin-top: 12px; }
  .inscription-avec-couverture .inscription-couverture .livre-3d { width: min(150px, 42vw); }
}
.compteur-lecteurs { margin: 0 0 14px; font-size: .92rem; color: var(--encre-2); }
.compteur-lecteurs span { color: var(--or); margin-right: 4px; }
.nuit .compteur-lecteurs { color: var(--nuit-texte-2); }
.nuit .compteur-lecteurs strong { color: var(--nuit-texte); }
.nuit .compteur-lecteurs span { color: var(--or-clair); }
.encart-chapitre .encart-ornement { color: var(--or-clair); font-size: 1.1rem; margin-bottom: 6px; }
.encart-chapitre p { max-width: 52ch; margin-inline: auto; }
.encart-suivre-ou { margin-top: 22px; font-size: .9rem; }
.encart-suivre-reseaux { margin-top: 10px; }

/* ══════════════════════════════════════════════════════════════════════════════
   PAGE /liens (bio Instagram)
   ══════════════════════════════════════════════════════════════════════════════ */
.section-liens { padding-block: clamp(40px, 7vw, 72px); min-height: 70vh; }
.liens { max-width: 520px; text-align: center; }
.liens-portrait img { width: 116px; height: 116px; margin: 0 auto 16px; object-fit: cover; object-position: 50% 22%; border-radius: 50%; border: 2px solid var(--or-clair); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.liens-nom { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; line-height: 1.1; color: var(--nuit-texte); }
.liens-metier { margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-clair); }
.liens-devise { margin: 14px auto 26px; max-width: 34ch; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--nuit-texte-2); }
.liens-liste { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; text-align: left; }
.lien-carte { position: relative; display: block; padding: 14px 48px 14px 20px; border: 1px solid var(--trait-nuit); border-radius: 4px; background: rgba(255, 255, 255, .05); color: var(--nuit-texte); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.lien-carte:hover, .lien-carte:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--or-clair); transform: translateY(-1px); }
.lien-carte-sur { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--or-clair); }
.lien-carte-titre { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.25; }
.lien-carte-fleche { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--or-clair); }
.lien-carte-vedette { background: var(--or-bouton); border-color: var(--or-bouton); color: var(--nuit); }
.lien-carte-vedette .lien-carte-titre { color: var(--nuit); }
.lien-carte-vedette .lien-carte-sur, .lien-carte-vedette .lien-carte-fleche { color: #4a3500; }
.lien-carte-vedette:hover, .lien-carte-vedette:focus-visible { background: #ecc983; border-color: #ecc983; }
.liens-reseaux { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 26px 0 0; padding: 0; }
.liens-reseaux a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--trait-nuit); border-radius: 50%; color: var(--nuit-texte); }
.liens-reseaux a:hover, .liens-reseaux a:focus-visible { border-color: var(--or-clair); color: var(--or-clair); }
