/* ══ COUCHE COMMUNE DES PAGES DE LECTURE — Basilique Saint-Epvre ══════
   Chargée sur toutes les pages de texte (pas l'accueil).
   · Lecture : colonne de 66 caractères, texte plus grand, interlignage ample
   · Ornements SVG : croix de Lorraine, arcs brisés, rosace
   · Animations au scroll : pilotées par assets/js/site.js
   ─────────────────────────────────────────────────────────────────── */

:root {
  --l-ink:    #1d2733;
  --l-soft:   #5b6573;
  --l-line:   rgba(29, 39, 51, 0.14);
  --l-paper:  #f6f2ea;
  --l-gold:   #a8874a;
  --l-lapis:  #213448;
  --l-ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --l-titre:  'Uncial Antiqua', Georgia, serif;
  --l-texte:  'EB Garamond', Georgia, serif;
}

/* ── Lecture ────────────────────────────────────────────────────── */
body.lecture {
  font-family: var(--l-texte);
  font-size: 18px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.lecture article p,
.lecture .intro,
.lecture .frise p {
  font-family: var(--l-texte);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.8;
  max-width: 66ch;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.lecture h1, .lecture h2 { text-wrap: balance; }
.lecture article h2 { line-height: 1.12; letter-spacing: 0.005em; }

/* Lettrine sur le premier paragraphe de chaque section */
.lecture article .section-texte > p:first-of-type::first-letter,
.lecture .lettrine::first-letter {
  font-family: var(--l-titre);
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--l-gold);
}

/* ── Barre de progression de lecture ─────────────────────────────── */
.l-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 210;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--l-lapis);
  pointer-events: none;
}

/* ── Ornement entre sections ─────────────────────────────────────── */
.l-orn {
  display: flex;
  justify-content: center;
  margin: clamp(3rem, 8vw, 6rem) auto;
  max-width: 520px;
  padding: 0 24px;
  color: var(--l-gold);
}
.l-orn svg { width: 100%; height: auto; overflow: visible; }
.l-orn path, .l-orn line, .l-orn circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1.6s var(--l-ease);
}
.l-orn.in path, .l-orn.in line, .l-orn.in circle { stroke-dashoffset: 0; }
.l-orn .croix { transition-delay: 0.5s; color: var(--l-lapis); transform: scale(0.7); transform-origin: 200px 34px; }
.l-orn .croix line { stroke-width: 3.2; stroke-linecap: butt; }
.l-orn { color: var(--l-lapis); }
.l-orn > svg > line { stroke-width: 2.6; }

/* ── Apparitions au scroll ───────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s var(--l-ease), transform 1.1s var(--l-ease);
  transition-delay: var(--d, 0s);
}
.rv.in { opacity: 1; transform: none; }

/* Images : dévoilées comme un rideau qui se lève */
.rv-img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--l-ease);
}
.rv-img.in { clip-path: inset(0 0 0 0); }
.rv-img > img, img.rv-img { transition: transform 1.8s var(--l-ease); }
.rv-img:not(.in) > img, img.rv-img:not(.in) { transform: scale(1.18); }

/* Titres : mot par mot */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(110%);
  transition: transform 1.1s var(--l-ease);
  transition-delay: calc(var(--i) * 70ms + var(--base, 0ms));
}
.wr.in .w > i { transform: none; }

/* Hero : parallaxe forte */
.lecture .hero-photo, .lecture .hero img:first-of-type { will-change: transform; }

/* ── Sommaire (ordinateur uniquement) ────────────────────────────
   Une réglette de verre : un trait par section, le trait courant
   s'allonge, les sections lues restent marquées. Le titre apparaît au survol. */
.l-toc {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translate(-16px, -50%);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--l-ease);
}
.l-toc.on { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.l-toc-panel {
  padding: 14px 12px;
  border-radius: 999px !important;
}
.l-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.l-toc-fill { display: none; }
.l-toc a {
  position: relative;
  display: flex;
  align-items: center;
  height: 18px;
  width: 30px;
  text-decoration: none;
}
.l-toc a::before {
  content: '';
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: rgba(33, 52, 72, 0.22);
  transition: width 0.5s var(--l-ease), background 0.4s ease, height 0.3s ease;
}
.l-toc a.lu::before { background: rgba(33, 52, 72, 0.55); }
.l-toc a.on::before { width: 30px; height: 3px; background: var(--l-lapis); }
.l-toc a:hover::before { width: 24px; background: var(--l-lapis); }
.l-toc a span {
  position: absolute;
  left: calc(100% + 22px);
  top: 50%;
  transform: translate(-8px, -50%);
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--l-texte);
  font-size: 15px;
  color: var(--l-ink);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,246,250,0.9));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(33,52,72,0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--l-ease);
}
.l-toc a:hover span, .l-toc a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.l-toc a:focus-visible { outline: none; }
.l-toc a:focus-visible::before { background: var(--l-lapis); width: 24px; }

/* Plus de sommaire sur téléphone et tablette */
.l-toc-btn, .l-sheet, .l-veil { display: none !important; }
@media (max-width: 1100px) { .l-toc { display: none; } }

/* ── Page Histoire : frise chronologique ─────────────────────────── */
.frise { max-width: 1040px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); position: relative; }
.chapitre { position: relative; padding: clamp(4rem, 10vw, 8rem) 0 2rem; }
.chapitre-tete { display: grid; gap: 0.9rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 40rem; }
.chapitre-siecle { font-family: var(--l-texte); font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--l-gold); }
.chapitre h2 { font-family: var(--l-titre); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 4rem); color: var(--l-ink); margin: 0; }
.chapitre-tete p { color: var(--l-soft); font-style: italic; margin: 0; }

.jalons { list-style: none; margin: 0; padding: 0 0 0 clamp(28px, 8vw, 150px); position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.jalons::before { content: ''; position: absolute; left: clamp(6px, 2vw, 20px); top: 0.6rem; bottom: 0; width: 1px; background: var(--l-line); }
.jalons .trait { position: absolute; left: clamp(6px, 2vw, 20px); top: 0.6rem; width: 2px; margin-left: -0.5px; height: 0; background: var(--l-lapis); }
.jalon { position: relative; display: grid; gap: 0.6rem; }
.jalon::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(28px, 8vw, 150px) + clamp(6px, 2vw, 20px) - 5px);
  top: 0.65rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--l-paper);
  border: 1px solid var(--l-lapis);
  transition: background 0.5s ease, transform 0.5s var(--l-ease);
}
.jalon.in::before { background: var(--l-lapis); transform: scale(1.25); }
.jalon-date { font-family: var(--l-titre); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; color: var(--l-lapis); font-variant-numeric: tabular-nums; }
.jalon h3 { font-family: var(--l-texte); font-weight: 600; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); margin: 0; color: var(--l-ink); }
.jalon p { margin: 0; color: #2e3846; }
.jalon .source { font-size: 0.85rem; color: var(--l-soft); font-style: italic; }

/* Bande immersive : grande image + parallaxe */
.immersif { position: relative; width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; height: clamp(60vh, 80vh, 820px); overflow: hidden; margin: clamp(3rem, 8vw, 6rem) 0; background: #111; }
.immersif img { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; will-change: transform; opacity: 0.82; }
.immersif blockquote { position: absolute; inset: auto 0 0 0; margin: 0; padding: 3rem max(24px, env(safe-area-inset-left, 0px)) clamp(2.5rem, 7vw, 5rem); color: #f6f2ea; background: linear-gradient(transparent, rgba(0,0,0,0.65)); }
.immersif blockquote p { font-family: var(--l-titre); font-size: clamp(1.6rem, 4.2vw, 3.2rem); line-height: 1.15; max-width: 22ch; margin: 0 auto; text-align: center; }
.immersif cite { display: block; text-align: center; margin-top: 1rem; font-family: var(--l-texte); font-style: normal; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }

/* Chiffres clés */
.mesures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 4rem 0 0; }
.mesures div { padding: 1.4rem 0 0; border-top: 2px solid var(--l-lapis); text-align: left; display: grid; gap: 0.5rem; }
.mesures b { font-family: var(--l-titre); font-weight: 400; font-size: clamp(2rem, 6vw, 3.4rem); color: var(--l-lapis); font-variant-numeric: tabular-nums; }
.mesures span { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--l-soft); }
@media (max-width: 560px) { .mesures { grid-template-columns: 1fr; } }

.sources { max-width: 66ch; margin: 5rem auto 0; padding: 2rem max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--l-line); font-size: 0.95rem; color: var(--l-soft); }
.sources a { color: inherit; }

/* ── Surligneur ─────────────────────────────────────────────────── */
.l-surligne {
  background-image: linear-gradient(transparent 52%, var(--sl, #f7e3a1) 52%, var(--sl, #f7e3a1) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}
/* Sur fond foncé, le texte surligné passe en encre foncée pour rester lisible */
.l-surligne.sur-fonce {
  transition: color 0.3s ease;
  background-image: linear-gradient(var(--sl, #f7e3a1), var(--sl, #f7e3a1));
  border-radius: 3px;
  padding: 0.05em 0.2em;
}
.l-surligne.sur-fonce.in { color: #10202e !important; }

/* ── Liquid glass ────────────────────────────────────────────────── */
.l-glass, .l-toc-panel, .l-toc-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18)) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6) !important;
  border-radius: 22px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.25),
    inset 0 0 22px rgba(255,255,255,0.18),
    0 12px 32px rgba(33,52,72,0.12) !important;
  outline: none !important;
}
.l-glass.sombre, .l-toc-btn {
  background: linear-gradient(135deg, rgba(33,52,72,0.82), rgba(20,30,44,0.72)) !important;
  border-color: rgba(255,255,255,0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 12px 32px rgba(0,0,0,0.25) !important;
}
.l-toc-btn { background-color: rgba(20,28,40,0.55) !important; }
.hero .l-glass.sombre { background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)) !important; }
.l-glass::before, .l-glass::after { border-radius: inherit; }

/* ── Rail de lecture le long des sections ────────────────────────── */
.l-rail { position: relative; }
.l-rail > .l-rail-ligne, .l-rail > .l-rail-fill {
  position: absolute;
  left: var(--rx, 8px);
  top: var(--ry, 0.6rem);
  width: 1px;
  pointer-events: none;
}
.l-rail > .l-rail-ligne { bottom: 0; background: var(--l-line); }
.l-rail > .l-rail-fill { width: 2px; margin-left: -0.5px; height: 0; background: var(--l-lapis); }
.l-rail > .l-rail-point {
  position: absolute;
  left: calc(var(--rx, 8px) - 5px);
  top: calc(var(--ry, 0.6rem) - 5px);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--l-paper);
  border: 1px solid var(--l-lapis);
  transition: background 0.5s ease, transform 0.5s var(--l-ease);
  pointer-events: none;
}
.l-rail.in > .l-rail-point { background: var(--l-lapis); transform: scale(1.25); }

/* ── Chronologie des cloches ─────────────────────────────────────── */
.lecture .timeline-wrapper { opacity: 1; transform: none; margin: 4rem 0 6rem; }
.lecture .timeline-titre {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--l-titre); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--l-lapis); margin-bottom: 3rem;
}
.lecture .timeline-titre svg { width: 36px; height: 36px; flex: none; color: var(--l-gold); transform-origin: 50% 8%; }
.lecture .timeline-titre.in svg { animation: tl-swing 1.6s ease-in-out 2; }
.lecture .timeline-titre::after {
  content: ''; flex: 1; height: 1px; background: var(--l-line);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--l-ease) 0.3s;
}
.lecture .timeline-titre.in::after { transform: scaleX(1); }

.lecture .timeline { padding-left: 4.4rem; }
.lecture .timeline::before { left: 1.55rem; width: 1px; background: var(--l-line); top: 1rem; bottom: 1rem; }
.lecture .timeline .tl-fill { position: absolute; left: 1.55rem; top: 1rem; width: 2px; margin-left: -0.5px; height: 0; background: var(--l-lapis); }
.lecture .timeline-item { padding-bottom: 3rem; gap: 0.5rem; }
.lecture .timeline-item::before { display: none; }

.tl-cloche {
  position: absolute; left: calc(-4.4rem + 1.55rem - 21px); top: -4px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(33,52,72,0.14);
  color: var(--l-soft); cursor: pointer; padding: 0;
  transform: scale(0.6); opacity: 0;
  transition: transform 0.7s var(--l-ease), opacity 0.5s ease, color 0.5s ease;
}
.tl-cloche:focus-visible { outline: 2px solid var(--l-gold); outline-offset: 3px; }
.tl-cloche svg { width: 22px; height: 22px; overflow: visible; transform-origin: 50% 10%; }
.tl-cloche .onde { fill: none; stroke: var(--l-gold); stroke-width: 1.2; stroke-linecap: round; opacity: 0; }
.timeline-item.majeur .tl-cloche { width: 54px; height: 54px; left: calc(-4.4rem + 1.55rem - 27px); top: -10px; }
.timeline-item.majeur .tl-cloche svg { width: 28px; height: 28px; }
.timeline-item.in .tl-cloche { transform: none; opacity: 1; color: var(--l-lapis); }
.timeline-item.in .tl-cloche svg { animation: tl-swing 1.4s ease-in-out 0.3s 2; }
.timeline-item.in .tl-cloche .onde { animation: tl-onde 1.4s ease-out 0.5s 2; }
.tl-cloche.sonne svg { animation: tl-swing 1.4s ease-in-out 2 !important; }
.tl-cloche.sonne .onde { animation: tl-onde 1.4s ease-out 2 !important; }
@keyframes tl-swing { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 45% { transform: rotate(13deg); } 70% { transform: rotate(-7deg); } 88% { transform: rotate(3deg); } }
@keyframes tl-onde { 0% { opacity: 0.9; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
.tl-cloche .onde { transform-box: fill-box; transform-origin: center; }

.lecture .timeline-date {
  font-family: var(--l-titre); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.05;
  color: var(--l-lapis); letter-spacing: 0;
  opacity: 0; transform: translateX(-24px); transition: opacity 0.8s ease, transform 0.9s var(--l-ease);
}
.lecture .timeline-item.majeur .timeline-date { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.lecture .timeline-texte {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem); line-height: 1.75; color: #2e3846; max-width: 60ch;
  opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease 0.15s, transform 0.9s var(--l-ease) 0.15s;
}
.lecture .timeline-item.in .timeline-date, .lecture .timeline-item.in .timeline-texte { opacity: 1; transform: none; }
.lecture .timeline-item.majeur .timeline-texte { padding: 1.1rem 1.3rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  border: 1px solid rgba(255,255,255,0.65); box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(33,52,72,0.1); }
@media (max-width: 560px) {
  .lecture .timeline { padding-left: 3.6rem; }
  .lecture .timeline::before, .lecture .timeline .tl-fill { left: 1.3rem; }
  .tl-cloche { left: calc(-3.6rem + 1.3rem - 21px); }
  .timeline-item.majeur .tl-cloche { left: calc(-3.6rem + 1.3rem - 27px); }
}
@media (prefers-reduced-motion: reduce) {
  .lecture .timeline-date, .lecture .timeline-texte, .tl-cloche { opacity: 1; transform: none; transition: none; }
}

/* ── Sommaire des pages : grands numéros détourés (version D) ───── */
.lecture .sommaire.l-som {
  background: none !important;
  padding: 0 !important;
  margin: 0 0 6rem;
  opacity: 1;
  animation: none;
}
.lecture .l-som .sommaire-label {
  display: block;
  font-family: var(--l-titre);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--l-lapis);
  margin: 0 0 1.4rem;
}
.lecture .l-som ol { list-style: none; margin: 0; padding: 0; display: block; gap: 0; }
.lecture .l-som li { display: block; width: 100%; }
.lecture .l-som li a {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  border-top: 1px solid var(--l-line);
  color: var(--l-ink);
  text-decoration: none;
  line-height: 1.25;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.35s ease;
}
.lecture .l-som li:last-child a { border-bottom: 1px solid var(--l-line); }
.lecture .l-som li a::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--l-lapis);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--l-ease);
  z-index: -1;
}
.lecture .l-som li a:hover, .lecture .l-som li a:focus-visible { color: #f3f4f4; border-color: transparent; outline: none; }
.lecture .l-som li a:hover::before, .lecture .l-som li a:focus-visible::before { transform: scaleX(1); }
.lecture .l-som i {
  font-style: normal;
  font-family: var(--l-titre);
  font-size: 3rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--l-lapis);
  transition: -webkit-text-stroke-color 0.35s ease;
  min-width: 0;
  white-space: nowrap;
}
.lecture .l-som em { font-style: normal; font-family: var(--l-texte); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 500; }
.lecture .l-som b { font-weight: 400; font-size: 1.6rem; transition: transform 0.35s ease; }
.lecture .l-som li a:hover b { transform: translateX(6px); }
.lecture .l-som li a:hover i, .lecture .l-som li a:focus-visible i { -webkit-text-stroke-color: #f3f4f4; }

/* Entrée : les lignes glissent l'une après l'autre */
.lecture .l-som li { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.8s var(--l-ease); transition-delay: calc(var(--k, 0) * 70ms); }
.lecture .l-som.in li { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .lecture .l-som li a { grid-template-columns: 3.4rem 1fr auto; padding: 1rem 0.6rem; }
  .lecture .l-som i { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .lecture .l-som li { opacity: 1; transform: none; } }

/* ── Page Vitraux : filtres et liste des verrières ─────────────── */
.lecture .filtres-wrapper {
  position: sticky;
  top: calc(74px + env(safe-area-inset-top, 0px));
  z-index: 20;
  margin: 0 0 4rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.55));
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px rgba(33,52,72,0.12);
}
.lecture .filtres-label {
  font-family: var(--l-titre);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--l-lapis);
  margin-bottom: 0.8rem;
}
/* Onglets soulignés : un trait bleu marine glisse sous la zone choisie.
   La suite des zones est signalée à droite par un fondu et une flèche. */
.lecture .filtres-rail { position: relative; }
.lecture .filtres {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-bottom: 1px solid var(--l-line);
  padding-right: 3.5rem;
}
.lecture .filtres::-webkit-scrollbar { display: none; }
.lecture .filtre-btn {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 0.8rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--l-texte);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--l-soft);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.lecture .filtre-btn:hover { background: none; color: var(--l-ink); border: 0; }
.lecture .filtre-btn.actif { background: none; color: var(--l-ink); border: 0; }
.lecture .filtre-count {
  font-family: var(--l-titre);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--l-lapis);
  background: none;
  padding: 0;
  margin-left: 0.25rem;
  opacity: 1;
  position: relative;
  top: -0.55em;
}
.lecture .filtre-btn.actif .filtre-count { background: none; }
.lecture .filtres-ink {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: var(--l-lapis);
  transition: transform 0.45s var(--l-ease), width 0.45s var(--l-ease);
  pointer-events: none;
}

/* Indice de suite : fondu + bouton flèche, masqués quand on arrive au bout */
.lecture .filtres-suite {
  position: absolute;
  top: 0; right: 0; bottom: 1px;
  width: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(250,250,250,0.95) 55%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lecture .filtres-suite button {
  pointer-events: auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--l-lapis);
  color: #f3f4f4;
  font-size: 1.2rem;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(33,52,72,0.25);
  animation: filtres-pousse 1.6s ease-in-out 1s 3;
}
.lecture .filtres-suite button:focus-visible { outline: 2px solid var(--l-lapis); outline-offset: 3px; }
.lecture .filtres-rail.fin .filtres-suite { opacity: 0; }
.lecture .filtres-rail.fin .filtres-suite button { pointer-events: none; }
.lecture .filtres-rail.debut-cache::before {
  content: '';
  position: absolute; z-index: 1; top: 0; left: 0; bottom: 1px; width: 2.5rem;
  background: linear-gradient(270deg, rgba(255,255,255,0), rgba(250,250,250,0.95));
  pointer-events: none;
}
@keyframes filtres-pousse { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .lecture .filtres-suite button { animation: none; } }

.lecture .zone-titre {
  font-family: var(--l-titre);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--l-lapis);
  padding: 4rem 0 1.2rem;
  border-top: 0;
  border-bottom: 2px solid var(--l-lapis);
  margin-bottom: 0.4rem;
}
.lecture .vitrail-groupe:first-of-type .zone-titre { padding-top: 0; }

.lecture .vitrail-ligne {
  grid-template-columns: 4.8rem 1fr auto;
  gap: 0 1.4rem;
  align-items: center;
  padding: 1.5rem 0.4rem;
  border-bottom: 1px solid var(--l-line);
  transition: background 0.3s ease, padding 0.3s ease;
}
.lecture .vitrail-ligne:hover { background: rgba(33,52,72,0.04); margin: 0; padding-left: 1rem; padding-right: 1rem; }
.lecture .vitrail-num {
  font-family: var(--l-titre);
  font-size: 2.6rem;
  line-height: 1;
  padding: 0;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.1px var(--l-lapis);
  transition: color 0.35s ease;
}
.lecture .vitrail-ligne:hover .vitrail-num { color: var(--l-lapis); }
.lecture .vitrail-saints { font-family: var(--l-texte); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; color: var(--l-ink); line-height: 1.3; margin-bottom: 0.4rem; }
.lecture .vitrail-donateur { font-size: 1.05rem; color: var(--l-soft); line-height: 1.6; max-width: 62ch; }
.lecture .vitrail-note { font-size: 0.98rem; color: var(--l-soft); line-height: 1.6; max-width: 62ch; }
.lecture .vitrail-photo-btn {
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-size: 0.85rem;
  background: var(--l-lapis);
  transition: transform 0.3s var(--l-ease), background 0.3s ease;
}
.lecture .vitrail-photo-btn:hover { background: #2d4560; transform: translateX(4px); }
.lecture .vitrail-photo-btn.pas-de-photo { border-radius: 999px; background: none; }
.lecture .credits { border-radius: 22px; border: 1px solid var(--l-line); background: rgba(33,52,72,0.04); }
.lecture .credits-texte { font-size: 1.02rem; color: var(--l-soft); }
@media (max-width: 600px) {
  .lecture .filtres-wrapper { top: calc(70px + env(safe-area-inset-top, 0px)); padding: 0.9rem 0.9rem 1rem; border-radius: 18px; }
  .lecture .filtres-label { font-size: 1.1rem; }
  .lecture .filtre-btn { font-size: 1.05rem; }
  .lecture .filtres { gap: 1.2rem; }
  .lecture .vitrail-ligne { grid-template-columns: 3.4rem 1fr; }
  .lecture .vitrail-num { font-size: 2rem; }
}

/* ── Easter eggs ─────────────────────────────────────────────────── */
.egg-toast {
  position: fixed;
  left: 50%; top: 84px;
  transform: translate(-50%, -20px);
  opacity: 0;
  z-index: 260;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.88);
  color: #f3eee3;
  font-family: var(--l-texte);
  font-size: 15px;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--l-ease);
  max-width: calc(100% - 32px);
  text-align: center;
}
.egg-toast.on { opacity: 1; transform: translate(-50%, 0); }

@keyframes egg-swing { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.egg-swing { display: inline-block; transform-origin: 50% 0; animation: egg-swing 0.9s ease-in-out 3; }

.egg-vitrail {
  background: linear-gradient(110deg, #1d4fa0, #b3261e 22%, #e6b422 40%, #2f7d4a 58%, #6b2fa0 76%, #1d4fa0);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  animation: egg-glass 6s linear infinite;
}
@keyframes egg-glass { to { background-position: 300% 0; } }
.egg-lumiere { position: fixed; inset: 0; z-index: 240; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s ease; }
.egg-lumiere.on { opacity: 1; }
.egg-lumiere i { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50%; filter: blur(60px); opacity: 0.35; animation: egg-drift 9s ease-in-out infinite alternate; }
@keyframes egg-drift { to { transform: translate(18vw, 22vh) scale(1.2); } }

.egg-orgue { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 240; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.egg-orgue i { display: block; width: 14px; border-radius: 7px 7px 0 0; background: linear-gradient(#e9cf8f, #a8874a); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--l-ease), filter 0.2s; }
.egg-orgue.on i { transform: scaleY(1); }
.egg-orgue i.joue { filter: brightness(1.5) drop-shadow(0 0 12px #f5d98c); }

.egg-carte { position: fixed; inset: 0; z-index: 270; display: grid; place-items: center; padding: 24px; background: rgba(10, 12, 16, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.egg-carte.on { opacity: 1; pointer-events: auto; }
.egg-carte > div { max-width: 460px; background: var(--l-paper); color: var(--l-ink); padding: 2.4rem 2rem 2rem; border: 1px solid var(--l-gold); outline: 1px solid var(--l-gold); outline-offset: -8px; text-align: center; transform: translateY(24px) scale(0.97); transition: transform 0.6s var(--l-ease); }
.egg-carte.on > div { transform: none; }
.egg-carte svg { width: 64px; height: 64px; color: var(--l-gold); }
.egg-carte h3 { font-family: var(--l-titre); font-weight: 400; font-size: 1.8rem; margin: 0.8rem 0 0.6rem; }
.egg-carte p { font-family: var(--l-texte); font-size: 1.1rem; line-height: 1.7; margin: 0 0 1.2rem; }
.egg-carte button { font: 600 14px var(--l-texte); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.8rem 1.4rem; border: 0; background: var(--l-lapis); color: #f6f2ea; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-img, .w > i, .l-orn *, .l-toc, .l-sheet, .l-toc-btn { transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .l-surligne { background-size: 100% 100%; transition: none; }
  .rv-img { clip-path: none; }
  .w > i { transform: none; }
  .l-orn * { stroke-dashoffset: 0; }
}
