/* Proposition 2 : La Nuit. Un seul thème, sombre. Encre bleu-noir, texte os, un ambre pour la lumière. */
:root {
  --fond: #0e1116; --fond-2: #161b22; --texte: #e6e3dc; --texte-fort: #f4f2ec; --texte-2: #b3b0a7; --texte-3: #7f7d76;
  --filet: #262c35; --accent: #d9a441; --accent-fonce: #f0bd5c; --accent-clair: rgba(217, 164, 65, .14); --sur-accent: #15110a;
  --ok: #7fcf9a; --ok-clair: rgba(127, 207, 154, .14); --alerte: #e6c46a; --alerte-clair: rgba(230, 196, 106, .14);
  --corps: "Source Sans 3", "Segoe UI", sans-serif; --titres: "Cormorant Garamond", Georgia, serif;
  --mesure: 42rem; --large: 100rem; --rayon: 2px; --taille: 1.2rem; --fond-champ: #0b0e12; --bordure-champ: #3a414c;
  color-scheme: dark;
}
body { line-height: 1.7; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); letter-spacing: 0; }
h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.55rem; }
.chapeau, .question, blockquote { font-style: italic; font-weight: 500; }
.question { border-left-color: var(--accent); font-size: 1.45rem; }
.btn:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.btn-secondaire { color: var(--texte-fort); border-color: var(--texte-3); }
.btn-secondaire:hover { background: var(--fond-2); border-color: var(--texte-fort); color: var(--texte-fort); }
.flash-err { color: #ffb8ae; background: rgba(255, 120, 100, .12); }
.encadre, blockquote, .suite, .verrouille { background: var(--fond-2); }

/* Barre de lecture : animée par le défilement (CSS uniquement) */
.progression { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 30; }
@supports (animation-timeline: scroll()) {
  .progression { animation: lire linear both; animation-timeline: scroll(root); }
  @keyframes lire { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* En-tête */
.site-header { border-bottom: 1px solid var(--filet); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { text-decoration: none; color: var(--texte-fort); font-family: var(--titres); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; white-space: nowrap; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .95rem; }
.site-nav a { color: var(--texte-2); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.site-nav a:hover { color: var(--texte-fort); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-acces { color: var(--ok) !important; }
.badge { font-size: .75rem; padding: 0 .35rem; background: var(--ok-clair); color: var(--ok); border-radius: 2px; }
@media (max-width: 900px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; padding: .9rem 0; gap: .6rem 1.2rem; }
  .site-nav { margin: 0; flex-wrap: wrap; gap: .3rem 1.1rem; width: 100%; }
}

/* Accueil */
main:has(.hero) { padding-top: 0; }
.hero { margin-inline: calc(50% - 50vw); position: relative; min-height: 86dvh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 4rem 1.25rem; isolation: isolate; }
.hero-txt { max-width: 46rem; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); line-height: 1.02; }
.hero-sub { font-size: 1.35rem; color: var(--texte-2); margin: 1.4rem auto 0; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.barres { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: space-evenly; pointer-events: none; }
.barres span { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(217, 164, 65, .55) 40%, rgba(217, 164, 65, .55) 60%, transparent); opacity: .35; animation: derive 9s ease-in-out infinite alternate; transform: translateY(-12%); }
.barres span:nth-child(2n) { animation-duration: 12s; animation-delay: -3s; opacity: .22; }
.barres span:nth-child(3n) { animation-duration: 14s; animation-delay: -6s; opacity: .5; }
.barres span:nth-child(5n) { animation-delay: -9s; }
@keyframes derive { from { transform: translateY(-12%); } to { transform: translateY(12%); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--fond)); z-index: -1; }

/* La scène : la litanie qui apparaît ligne par ligne */
.scene { max-width: 52rem; margin: 2rem auto 0; padding: 4rem 0 3rem; text-align: center; }
.scene-lignes p { font-family: var(--titres); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin: 0 0 .6rem; color: var(--texte-fort); }
.scene-lignes > * { transition-delay: calc(var(--i, 0) * 260ms); }
.scene-lignes p:nth-child(2), .scene-lignes p:nth-child(3), .scene-lignes p:nth-child(4), .scene-lignes p:nth-child(5) { color: var(--accent); }
.scene-fin { margin-top: 2.5rem; color: var(--texte-2); font-size: 1.15rem; }

.rub-liste { list-style: none; padding: 0; margin: 0; max-width: 56rem; }
.rub-liste li { border-top: 1px solid var(--filet); }
.rub-liste li:last-child { border-bottom: 1px solid var(--filet); }
.rub-liste a { display: flex; gap: 1.5rem; align-items: baseline; padding: 1.3rem .6rem; text-decoration: none; color: inherit; position: relative; transition: background .25s ease; }
.rub-liste a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .3s ease; transform-origin: top; }
.rub-liste a:hover { background: var(--fond-2); }
.rub-liste a:hover::before { transform: scaleY(1); }
.rub-num { font-family: var(--titres); font-size: 1.7rem; font-weight: 600; color: var(--accent); min-width: 2.6rem; }
.rub-titre { display: block; font-family: var(--titres); font-size: 1.55rem; font-weight: 600; color: var(--texte-fort); }
.rub-txt { display: block; color: var(--texte-2); font-size: 1rem; margin-top: .1rem; }

.acces-liste { max-width: 56rem; }
.acces-ligne { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--filet); }
.acces-ligne:last-child { border-bottom: 1px solid var(--filet); }
.acces-ligne .prix { font-family: var(--titres); font-size: 1.7rem; font-weight: 600; color: var(--accent); }
.acces-ligne p { margin: .15rem 0 0; color: var(--texte-2); font-size: 1rem; }
@media (max-width: 600px) { .acces-ligne { grid-template-columns: 4.5rem 1fr; gap: 1rem; } .acces-ligne .prix { font-size: 1.3rem; } }

/* Offres */
.offres { gap: 1.2rem; }
.offre { background: var(--fond-2); border: 1px solid var(--filet); padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column; position: relative; transition: border-color .25s ease, transform .25s ease; }
.offre:hover { border-color: var(--accent); transform: translateY(-3px); }
.offre-num { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); margin: 0 0 .5rem; }
.offre .prix { font-family: var(--titres); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--accent); margin: 0; }
.offre h3 { margin: .5rem 0 .1rem; font-size: 1.5rem; }
.offre .sous { color: var(--texte-3); margin-bottom: .8rem; font-size: .95rem; font-style: italic; }
.offre .desc { color: var(--texte-2); font-size: 1rem; flex: 1; }
.offre .inclus { color: var(--ok); font-size: .9rem; margin-bottom: .6rem; }
.offre.acquis { border-color: var(--ok); }
.offre .ouvert { color: var(--ok); font-weight: 600; margin: 0 0 .6rem; }
.offre-don { border-style: dashed; }
.verrouille { border-color: var(--filet); }
.verrou-titre { font-family: var(--titres); font-style: italic; font-size: 1.6rem; color: var(--accent); margin-bottom: .5rem; }

/* Téléphone */
.mobile .hero { min-height: 70dvh; padding: 3rem 1.25rem; }
.mobile .hero h1 { font-size: 2.5rem; }
.mobile .hero-sub { font-size: 1.15rem; }
.mobile .scene { padding: 2rem 0 .5rem; margin-top: 0; }
.mobile .scene-lignes p { font-size: 1.45rem; }
.mobile .progression { display: none; }
