/* =========================================================
   Notre histoire : mise en page « récit » (contenu inchangé)
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body.page-apropos { background: var(--green-dk); color: var(--cream); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* barre de progression de lecture (pilotée par GSAP) */
.read-progress { position: fixed; z-index: 120; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

.story { width: 100%; }
.story strong { color: var(--beige); font-weight: 800; background: linear-gradient(var(--red), var(--red)) 0 100% / var(--hl, 0%) 2px no-repeat; transition: background-size .8s cubic-bezier(.2, .8, .2, 1); }
.story strong.lit { --hl: 100%; }

/* ---------- ouverture ---------- */
.story-hero {
    position: relative; min-height: 92svh; display: flex; flex-direction: column; justify-content: center;
    padding: 140px var(--gutter) clamp(120px, 18vh, 200px); overflow: hidden;
}
.story-title { font-size: clamp(64px, 15vw, 230px); line-height: .9; color: var(--cream); }
.story-title .char { display: inline-block; }
.story-lead { margin-top: clamp(20px, 3vw, 36px); max-width: 24em; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.35; color: #ece5d9; }
.story-hero-mnt { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 12vw, 170px); }
.story-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.story-scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: var(--muted); transform-origin: top; animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- chapitres ---------- */
.chapter {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 96px); align-items: center;
    max-width: 1300px; margin: 0 auto; padding: clamp(70px, 11vw, 150px) var(--gutter);
}
.chapter.reverse .chapter-text { order: 2; }
.chapter.text-only { grid-template-columns: 1fr; }
.chapter-text { position: relative; }
.chapter-text.wide { max-width: 860px; margin: 0 auto; }
.chapter-text p { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.55; color: #e9e2d6; }
.chapter-text p + p { margin-top: 1.2em; }
.chapter-num {
    display: block; font-family: var(--display); font-size: clamp(64px, 9vw, 130px); line-height: .8;
    color: transparent; -webkit-text-stroke: 1.5px rgba(231, 220, 203, .35); margin-bottom: 18px;
}

/* lignes masquées pour l'apparition (créées par SplitText) */
.line-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* photos : cadre qui se dévoile + image qui glisse dedans */
.story-fig { margin: 0; }
.fig-frame { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; background: var(--green); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.story-fig.tall .fig-frame { aspect-ratio: 3 / 4; }
.fig-frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.story-fig figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.story-fig figcaption::before { content: ""; width: 26px; height: 2px; background: var(--red); align-self: center; }
.story-fig figcaption a, .end-logo figcaption a { color: var(--cream); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); }

/* ---------- phrase-clé ---------- */
.story-quote { position: relative; padding: clamp(80px, 14vw, 200px) var(--gutter); text-align: center; background: var(--green); overflow: hidden; }
.quote-text { font-size: clamp(44px, 8.4vw, 132px); line-height: .98; max-width: 14ch; margin: 0 auto; }
.quote-text .word { display: inline-block; }
.quote-icon { display: inline-grid; place-items: center; width: clamp(48px, 6vw, 72px); height: clamp(48px, 6vw, 72px); margin-top: 28px; color: var(--beige); }
.quote-icon svg { width: 100%; height: 100%; }

/* ---------- fin ---------- */
.story-end { max-width: 1300px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(60px, 8vw, 110px); }
.end-text { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; max-width: 18ch; }
.end-text .word { display: inline-block; }
.end-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.end-logo { margin: 0; text-align: center; }
.end-logo img { width: min(100%, 300px); margin: 0 auto; border-radius: 26px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.end-logo figcaption { margin-top: 16px; color: var(--muted); }
.end-heart { margin: 0; }
.end-heart svg { width: 100%; height: auto; border-radius: 22px; display: block; }
.end-heart .thanks { font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 3.4vw, 46px); color: var(--beige); text-align: center; margin-top: 18px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
    .chapter, .chapter.reverse { grid-template-columns: 1fr; padding-block: clamp(56px, 12vw, 90px); }
    .chapter.reverse .chapter-text { order: 0; }
    .story-fig .fig-frame { aspect-ratio: 4 / 4.4; }
    .end-grid { grid-template-columns: 1fr; }
    .story-hero { min-height: 86svh; }
}
@media (max-width: 600px) {
    .chapter-text p { font-size: 18px; }
    .story-scroll { display: none; }
}
