/* La forteresse du repos — landing de précommande
   Valeurs reprises de la maquette Claude Design (FORTERESSE LANDING PAGE). */

:root {
  --green-deep: #0B270B;
  --green: #384A36;
  --green-logo: #31422E;
  --band: #0C1000;
  --cream: #F5EFE3;
  --ink: #211F1A;
  --ink-2: #1F1E1A;
  --night: #1C1230;
  --gold: #F2D14D;
  --gold-muted: #CDBC63;
  --orange: #FF7226;
  --orange-cta: #FF6E22;
  --coral: #E96B45;
  --line: #DAD4C8;
  --muted: #5A5650;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --sc: "Alegreya SC", Georgia, serif;
  --alegreya: "Alegreya", Georgia, serif;
  --work: "Work Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; background: var(--green-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-cream :focus-visible { outline-color: var(--coral); }

h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Largeur de contenu 1240px (hors marges), comme dans la maquette */
.wrap { max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typo utilitaires ---------- */
.label {
  font-size: 12px; font-weight: 700; font-stretch: 125%;
  letter-spacing: .08em; text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker__num { font-family: var(--sc); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--coral); }
.kicker__rule { width: 24px; height: 1px; background: currentColor; }
.kicker--gold { color: var(--gold); }
.kicker--gold .kicker__num { color: var(--gold); }

.h2 { font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.accent { color: var(--coral); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  font-size: 12px; font-weight: 800; font-stretch: 125%;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(20, 22, 18, .55); }
.btn:active { transform: translateY(-1px); transition-duration: .15s; }
.btn--gold { background: var(--gold); color: var(--ink-2); }
.btn--gold:hover { color: var(--ink-2); }
.btn--dark { background: var(--ink-2); color: var(--cream); }
.btn--dark:hover { color: var(--cream); }
.btn--ghost { border: 1px solid var(--cream); color: var(--cream); min-height: 48px; padding: 0 22px; align-self: flex-start; }
.btn--lg { min-height: 52px; }
@media (prefers-reduced-motion: reduce) { .btn, .hero-cta { transition: none; } .btn:hover, .btn:active, .hero-cta:hover { transform: none; } }

/* ---------- Icônes ---------- */
.ico { display: block; flex: none; }

/* Cadre à étoiles aux 4 coins */
.frame { position: absolute; inset: 12px; border: 1.5px solid var(--cream); pointer-events: none; }
.corner { position: absolute; width: 18px; height: 18px; fill: var(--cream); }
.corner.tl { left: -9px; top: -9px; } .corner.tr { right: -9px; top: -9px; }
.corner.bl { left: -9px; bottom: -9px; } .corner.br { right: -9px; bottom: -9px; }

/* Motif de feuilles ton sur ton */
.leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-leaves { position: relative; }
.has-leaves > .wrap, .has-leaves > .inner { position: relative; }

/* ---------- Ruban d'annonce ---------- */
.ribbon {
  background: var(--orange); color: var(--ink-2);
  padding: 10px 16px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px;
  text-align: center;
}
.ribbon a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-header {
  padding-block: 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.site-header__logo { justify-self: start; display: flex; }
.site-header__logo svg { display: block; }
.navlinks { display: flex; gap: 34px; }
.navlinks a { color: var(--cream); text-decoration: none; }
.navlinks a:hover { color: var(--gold); }
.site-header .btn { grid-column: 3; justify-self: end; white-space: nowrap; padding: 0 18px; }
@media (max-width: 900px) { .navlinks { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero .leaves { height: calc(100% + 64px); }
.hero__grid {
  position: relative;
  padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
}
@media (min-width: 1100px) { .hero { min-height: 643px; } }

.hero__left { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--sc); font-size: 18px; letter-spacing: .1em; color: var(--gold); }
/* Le H1 regroupe le nom du livre et la citation ; chaque partie garde son propre style. */
.hero__title { display: flex; flex-direction: column; gap: 28px; font-size: inherit; line-height: inherit; }
.hero__headline {
  display: block; font-size: clamp(56px, 7vw, 99.7px); line-height: .92; letter-spacing: -.01em; font-style: italic;
}
.hero__intro { margin-top: -14px; max-width: 360px; line-height: 1.3; }

.hero-cta {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 364px; min-height: 90px; padding: 12px;
  background: var(--orange-cta); color: var(--ink-2); text-decoration: none; text-align: center;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1);
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(20, 22, 18, .6); color: var(--ink-2); }
.hero-cta__inner {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 66px; border: 1.5px solid var(--ink-2);
  font-family: var(--serif); font-size: 30px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em;
}
.hero-cta .corner { width: 16px; height: 16px; fill: var(--ink-2); }
.hero-cta .corner.tl { left: -8px; top: -8px; } .hero-cta .corner.tr { right: -8px; top: -8px; }
.hero-cta .corner.bl { left: -8px; bottom: -8px; } .hero-cta .corner.br { right: -8px; bottom: -8px; }

.hero__center { flex: 0 1 360px; min-width: 0; margin: 0 auto; position: relative; height: 520px; width: 100%; max-width: 360px; }
.hero__arch { position: absolute; left: 0; top: 0; width: 100%; height: 520px; }
.hero__book {
  position: absolute; left: 96px; top: 5px; transform: translateX(-46%);
  width: 150%; max-width: 433px; height: auto; display: block;
}
.hero__sticker { position: absolute; right: -40px; top: 6px; transform: rotate(10deg); }
/* Badge compte à rebours (fin des précommandes) : un peu plus grand que le badge « 4–8 ans ». */
.hero__sticker--cd { right: -58px; top: -10px; }

.hero__right { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.hero__quote { display: flex; gap: 14px; }
.hero__quote p { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; max-width: 400px; }
.hero__quote em { color: var(--coral); }
.hero__text { max-width: 360px; line-height: 1.3; }
.hero__extract { display: flex; align-items: center; gap: 14px; }
.hero__extract a { color: var(--cream); text-decoration: none; line-height: 1.5; }
.hero__extract a:hover { color: var(--gold); }

/* Dès que les trois colonnes ne tiennent plus : le visuel passe en premier, seul sur sa ligne. */
@media (max-width: 1140px) {
  .hero__center { order: -1; flex-basis: 100%; }
  .hero__left { padding-top: 0; }
}

@media (max-width: 720px) {
  /* L'arche garde ses proportions : le texte ne vient plus coller à l'image. */
  .hero__center { height: auto; aspect-ratio: 360 / 520; }
  .hero__arch { height: 100%; }
  .hero__left { margin-top: 16px; }
  .hero__left, .hero__right { flex-basis: 100%; padding-top: 0; align-items: center; text-align: center; }
  .hero__title { align-items: center; }
  .hero__quote { flex-direction: column; align-items: center; gap: 10px; }
  .hero__extract { justify-content: center; }
  .hero__sticker { right: -8px; width: 104px; height: 104px; }
  .hero__sticker--cd { right: -10px; top: -6px; width: 128px; height: 128px; }
}

/* ---------- Bande de preuve ---------- */
.proof { margin-top: 64px; background: var(--band); }
.proof__inner {
  padding-block: 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.proof__claim {
  flex: 1 1 340px; font-family: var(--serif); font-size: 26px; line-height: 1.2;
  text-transform: uppercase; color: var(--gold-muted); text-align: end;
}
.disc { flex: none; position: relative; width: 124px; height: 124px; display: block; color: var(--cream); }
.disc .spin { position: absolute; inset: 0; }
.disc__arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.spin { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.proof__list { flex: 1 1 300px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.proof__list li { display: flex; align-items: center; gap: 12px; }
.proof__list a { text-decoration: none; }
.proof__list a:hover { color: var(--gold); }
@media (max-width: 720px) { .proof__claim { text-align: center; } .disc { margin: 0 auto; } }

/* ---------- Zone crème ---------- */
.cream { background: var(--cream); color: var(--ink); }
.cream a:not(.btn) { color: var(--ink); }

/* Bandeau de confiance */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-bottom: 1px solid var(--line); }
.trust > div { padding: 24px 32px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.trust > div:first-child { padding-inline: var(--gutter); }
.trust > div:last-child { border-right: 0; justify-content: center; }
.trust__quote { font-size: 16px; line-height: 1.45; }
.trust__more { font-size: 11px; font-weight: 800; text-decoration: none; text-underline-offset: 4px; }
.trust__more:hover { color: var(--ink); }
.trust__stars { flex-direction: column; justify-content: center; text-align: center; gap: 10px !important; }
.stars { display: flex; align-items: center; gap: 6px; fill: var(--green); }
.trust .label { line-height: 1.4; }
.link-plain, .cream a.link-plain { color: inherit; text-decoration: none; }
/* Trait de survol des liens discrets : 3 px corail, qui commence 4 px sous la ligne de base. */
.link-plain, .link-line { padding-bottom: calc(7px - .21em); background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 3px no-repeat; }
.link-plain:hover, .link-plain:focus-visible, a:hover > .link-line, a:focus-visible > .link-line { background-size: 100% 3px; }
.link-line--gold { background-image: linear-gradient(var(--gold), var(--gold)); padding-bottom: calc(10px - .21em); } /* trait à 7 px sous la ligne de base */
/* Sur smartphone : BLF Éditions d'abord, puis les étoiles, puis la citation. */
@media (max-width: 680px) {
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust > div:last-child { order: 1; }
  .trust > .trust__stars { order: 2; }
  .trust > div:first-child { order: 3; border-bottom: 0; }
}

/* Marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 18px 0; }
.marquee__track {
  display: flex; width: max-content; animation: marq 45s linear infinite;
  font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; white-space: nowrap;
}
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee svg { fill: var(--coral); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .spin, .marquee__track { animation: none; } }

/* En-tête de section */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head__title { display: flex; flex-direction: column; gap: 14px; }

/* Le livre en vrai */
.en-vrai { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 40px; }
.specs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.specs p { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; }
.specs svg { transform: rotate(-90deg); margin: 0 -18px; }
/* Petits écrans : les deux blocs l'un sous l'autre, l'étoile en séparateur horizontal. */
@media (max-width: 520px) {
  .specs { flex-direction: column; align-items: flex-start; gap: 6px; }
  .specs svg { transform: none; margin: 0 0 0 -12px; }
}
.gallery { display: flex; flex-wrap: wrap; gap: 20px; }
.gallery__col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.shot { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.shot img { display: block; width: 100%; object-fit: cover; }
.shot--livre { flex: 2 1 480px; min-width: 0; }
.shot--livre img { height: 440px; object-position: 50% 55%; background: #B1A89A; }
.shot--small img { height: 196px; background: var(--cream); }
.shot--arch { flex: 1 1 240px; min-width: 0; }
.shot--arch img { height: 435px; border-radius: 999px 999px 0 0; object-position: 50% 30%; background: var(--coral); }
.shot--arch .frame { border-radius: 999px 999px 0 0; }
.shot--arch .frame__top { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1 / 1; }
.shot--arch .frame__top .corner.tl, .shot--arch .frame__top .corner.tr { top: calc(50% - 9px); }
.shot--gouter { flex: 1 1 240px; min-width: 0; }
.shot--gouter img { height: 668px; background: var(--gold); }
.shot--full { flex-basis: 100%; }
.disclaimer { margin-top: -28px; align-self: flex-end; text-align: end; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
@media (max-width: 720px) {
  .shot--livre img { height: 300px; }
  .shot--arch img { height: 420px; }
  .shot--gouter img { height: 360px; }
}

/* Avis */
.avis { padding-block: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 40px; }
.avis__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 56px; row-gap: 24px;
  border-bottom: 1px solid var(--line); padding-bottom: clamp(56px, 8vw, 114px);
}
.review { padding: 32px 0 8px; display: flex; flex-direction: column; gap: 18px; }
.review img { display: block; width: 64px; height: 64px; border-radius: 999px; object-fit: cover; outline: 2px solid var(--ink-2); outline-offset: 3px; }
.review blockquote { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.review blockquote span { display: block; }
.review blockquote span + span { margin-top: 10px; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; }
.mini-stars { display: inline-flex; gap: 3px; fill: var(--coral); }

/* Offre */
.offre { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 48px; border-bottom: 1px solid var(--line); }
.offre__head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.offre__head h2 { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: stretch; }
/* Champ masqué dans la fenêtre « Me prévenir » (le formulaire Brevo ne demande que l'e-mail). */
.field[hidden] { display: none !important; }
/* Fenêtre « Me prévenir » : prénom et nom côte à côte, e-mail en dessous sur toute la largeur. */
.field-row.is-prevenir { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.field-row.is-prevenir > .field:last-child { grid-column: 1 / -1; }
/* Mention « facultatif » : plus discrète que l'intitulé (italique, sans majuscules, couleur atténuée). */
.field__opt { margin-left: 4px; font-family: var(--serif); font-size: 15px; line-height: 0; font-weight: 400; font-style: italic; font-stretch: normal; letter-spacing: 0; text-transform: none; color: var(--cream); opacity: .7; }
/* Une seule offre (avant la parution) : carte centrée, à la largeur d'une carte. */
.offers--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
/* Sur mobile, une carte par ligne, dans l'ordre Duo, Solo, Mécène. */
@media (max-width: 720px) {
  .offers { grid-template-columns: 1fr; }
  .offer--duo { order: 1; } .offer--solo { order: 2; } .offer--mecene { order: 3; }
}
.offer { background: var(--cream); padding: 12px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.offer__card { position: relative; overflow: hidden; flex: 1; padding: 32px 26px; display: flex; flex-direction: column; gap: 18px; }
.offer__card > .ico { position: absolute; right: 18px; top: 18px; }
.offer__tag { font-size: 11px; font-weight: 800; }
.offer__card h3 { font-size: 30px; line-height: 1.08; }
.offer__price { font-family: var(--serif); font-size: 64px; line-height: .9; }
.offer__price--promo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.offer__price s { font-size: 32px; text-decoration-thickness: 2px; opacity: .75; }
.offer__later { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--muted); }
.offer__later strong { font-size: 18px; font-weight: 700; }
.offer__card p { font-size: 15px; line-height: 1.55; }
.offer__card .btn { margin-top: auto; }
.offer__note { display: block; font-size: 13px; color: var(--muted); }
.offer__card p.offer__lead { line-height: 1.3; }
.offer__lead + .offer__list { margin-top: -6px; }
.offer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.offer__list li { display: flex; align-items: baseline; gap: 10px; }
.offer__list li > span:first-child { flex: none; width: 1.3em; font-size: 15px; text-align: center; }
.offer--mecene .offer__card { background: var(--green); color: var(--cream); }
.offer--mecene .offer__tag { color: var(--gold); }
.offer--mecene .offer__card > .ico { fill: var(--gold); }
.offer--duo .offer__card { background: var(--coral); color: var(--ink-2); }
.offer--solo .offer__card { background: var(--gold); color: var(--ink-2); }
.offer--duo .offer__tag, .offer--solo .offer__tag { color: var(--night); }
.offer--duo .offer__card > .ico, .offer--solo .offer__card > .ico { fill: var(--ink-2); }
.offre__notes { padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; font-size: 14px; line-height: 1.55; }
.offre__notes .label { margin-bottom: 6px; }

/* Histoire */
.histoire { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.histoire__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.histoire h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; max-width: 635px; }
.histoire__age { line-height: 1.5; }
.histoire__age::after { content: ""; display: block; margin-top: 10px; width: 22px; height: 3px; background: var(--coral); }
.histoire__text > p { max-width: 460px; }
.histoire__ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.histoire__date { display: inline-flex; align-items: center; gap: 12px; }
.histoire__cover { flex: 0 1 440px; min-width: 0; margin: 0 auto; width: 100%; max-width: 440px; }
.histoire__cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 24px 50px rgba(31, 30, 26, .28); }

/* Auteur */
.auteur { background: var(--green-deep); }
.auteur__inner { padding-block: clamp(64px, 8vw, 104px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.auteur__quote { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.auteur__quote p { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }
.auteur__quote em { color: var(--coral); }
.auteur__bio { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.auteur__name { font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1.1; }
.auteur__bio p:not(.auteur__name) { font-size: 15px; }

/* Portrait en arche (auteur + illustratrice) */
.portrait { flex: 0 1 300px; min-width: 0; margin: 0 auto; position: relative; width: 100%; max-width: 300px; height: 330px; }
.portrait__clip { position: absolute; inset: 0 0 20px 0; overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--green); }
.portrait__clip img {
  display: block; width: 100%; height: 100%; border-radius: 999px 999px 4px 4px;
  object-fit: cover; background: #B1A89A; outline: 1.5px solid var(--cream); outline-offset: -18px;
}
.portrait__sticker { position: absolute; bottom: 0; }
.portrait--auteur img { object-position: 50% 25%; }
.portrait--auteur .portrait__sticker { right: -24px; transform: rotate(8deg); }
.portrait--illu { flex-basis: 280px; max-width: 280px; height: 340px; }
.portrait--illu img { object-position: 50% 30%; }
.portrait--illu .portrait__sticker { left: -24px; transform: rotate(-8deg); }
.portrait__credit { position: absolute; right: 0; top: calc(100% - 16px); font-size: 8px; line-height: 1.2; text-align: end; white-space: nowrap; }
@media (max-width: 480px) {
  .portrait--auteur .portrait__sticker { right: -4px; }
  .portrait--illu .portrait__sticker { left: -4px; }
}

/* Illustratrice */
.illu { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.illu__profile { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.illu__quote { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }
.illu__profile > p:not(.illu__quote) { max-width: 460px; font-size: 15px; }
.illu__bio { max-width: 460px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; opacity: .85; }
.illu__link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 800; text-underline-offset: 5px; }
.illu__figure { flex: 1 1 340px; min-width: 0; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.illu__frame { position: relative; overflow: hidden; padding: 12px; background: var(--green); border-radius: 14px; }
.illu__frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.illu__frame .frame { position: relative; inset: auto; z-index: 1; height: 420px; }
.illu__figure figcaption { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-align: center; }

/* Parents */
.parents { background: var(--green-deep); }
.parents__inner { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.parents__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.parents h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; max-width: 356px; }
.parents h2 em { color: var(--coral); }
.parents__text > p { max-width: 460px; }
.pillars { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Chaque case a son propre cadre ; les cases se chevauchent d'1 px pour que les filets communs n'en fassent qu'un. */
.pillar { position: relative; margin: 0 -1px -1px 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.pillar::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--cream); pointer-events: none; }
.pillar h3 { font-size: 26px; line-height: 1.1; }
.pillar p { font-size: 14px; line-height: 1.4; }

/* FAQ */
.faq { background: var(--ink-2); }
.faq__inner { max-width: calc(920px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.faq__inner .section-head .label { color: var(--gold); }
.faq__inner h2 em { color: var(--coral); }
.faq__list { border-top: 1px solid var(--cream); }
.faq__item { border-bottom: 1px solid var(--cream); }
.faq__item summary {
  list-style: none; cursor: pointer;
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  font-family: var(--work); font-size: 24px; line-height: 1.3; color: var(--cream);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { fill: var(--coral); transition: transform .6s cubic-bezier(.45, 0, .2, 1); }
.faq__item[open]:not(.is-closing) summary svg { transform: rotate(45deg); }
.faq__item p { padding: 0 40px 24px 0; }
@media (max-width: 600px) { .faq__item summary { font-size: 20px; } .faq__item p { padding-right: 0; } }

/* CTA final */
.final { background: var(--green); }
.final__inner { padding-block: clamp(72px, 9vw, 128px); display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.final h2 { max-width: 860px; font-size: clamp(48px, 7vw, 96px); line-height: .95; }
.final h2 em { color: var(--coral); }
.final p { font-size: 17px; max-width: 520px; }
.final .btn { min-height: 60px; padding: 0 32px; font-size: 14px; }

/* Pied de page */
.site-footer { background: var(--ink-2); }
.site-footer__inner {
  padding-top: 32px; padding-bottom: 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--cream);
}
.site-footer__legal { display: flex; align-items: center; gap: 10px; font-size: 9px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: var(--cream); text-decoration: none; padding-bottom: calc(10px - .21em); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; }
.site-footer nav a:focus-visible { background-size: 100% 3px; }
.site-footer nav a:hover { color: var(--gold); background-size: 100% 3px; }
@media (max-width: 720px) {
  .site-footer__inner { font-size: 6px; }
  .site-footer__legal { width: 100%; justify-content: center; text-align: left; font-size: 6px; }
  .site-footer nav { order: -1; width: 100%; justify-content: center; font-size: 8px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(31, 30, 26, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px 24px; cursor: pointer;
}
.lightbox[hidden] { display: none; }
.lightbox img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 999px;
  border: 1.5px solid var(--cream); background: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Fenêtre d'inscription : extrait gratuit (70 % de l'écran sur ordinateur) */
.signup {
  width: 70vw; height: 70vh;
  min-width: min(760px, calc(100vw - 24px)); min-height: min(600px, calc(100dvh - 24px));
  max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; overflow: hidden;
  background: var(--green); color: var(--cream);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
}
.signup::backdrop { background: rgba(11, 39, 11, .8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.signup__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); height: 100%; }
.signup__visual { position: relative; overflow: hidden; background: var(--green-deep); }
.signup__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.signup__panel { display: flex; min-height: 0; padding: 12px; overflow-y: auto; }
.signup__form { flex: 1; justify-content: center; }
.signup__fields, .signup__done { display: flex; flex-direction: column; gap: 18px; }
.signup__fields[hidden], .signup__done[hidden] { display: none; }
.signup .contact-form h2 { font-size: clamp(34px, 3.4vw, 46px); }
.signup__intro { max-width: 470px; font-size: 15px; line-height: 1.55; }
.signup__consent { display: flex; align-items: flex-start; gap: 10px; max-width: 470px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.signup__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.signup .contact-form__hint a { color: inherit; text-underline-offset: 3px; }
.signup__close {
  position: absolute; top: 24px; right: 24px; z-index: 2; width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--cream); background: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.signup__close:hover { transform: rotate(90deg); }
@media (max-width: 760px) {
  .signup { width: calc(100vw - 24px); height: fit-content; min-width: 0; min-height: 0; }
  .signup__inner { grid-template-columns: 1fr; height: auto; max-height: calc(100dvh - 24px); }
  .signup__visual { display: none; }
  .signup__close { top: 18px; right: 18px; }
  .signup .contact-form { padding-top: 64px; }
}
@media (prefers-reduced-motion: no-preference) {
  .signup[open] { animation: signup-in .5s cubic-bezier(.22, .61, .36, 1); }
  .signup[open]::backdrop { animation: lb-fade .4s ease; }
  .signup.is-closing { animation: signup-out .25s ease forwards; }
  .signup.is-closing::backdrop { animation: fade-out .25s ease forwards; }
}
@keyframes signup-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes signup-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes fade-out { to { opacity: 0; } }

/* =====================================================================
   PAGES SECONDAIRES — mentions légales, CGV, contact
   ===================================================================== */
.site-footer nav a[aria-current="page"] { color: var(--gold); }

.page-hero { position: relative; }
.page-hero__inner { position: relative; padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 22px; }
.page-hero .kicker { color: var(--gold); }
.page-hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: .92; font-style: italic; letter-spacing: -.01em; }
.page-hero h1 em { color: var(--coral); }
.page-hero p { max-width: 560px; line-height: 1.45; }
.page-hero__meta { color: var(--gold-muted); }

.todo { background: rgba(242, 209, 77, .55); color: var(--ink); padding: 0 4px; border-radius: 2px; }

/* Texte juridique */
.legal { max-width: calc(780px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.legal__toc { margin: 0 0 40px; padding: 24px 28px; border: 1px solid var(--line); }
.legal__toc ol { margin: 12px 0 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 32px; }
.legal__toc li { padding: 3px 0; break-inside: avoid; font-size: 15px; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.legal__toc .num { display: inline-block; min-width: 28px; font-family: var(--sc); color: var(--coral); }
.legal section { padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.08; }
.legal h2 .num { flex: none; font-family: var(--sc); font-size: 18px; color: var(--coral); }
.legal h3 { margin: 24px 0 8px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p + p, .legal ul + p, .legal p + ul, .legal table + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { text-decoration-color: var(--coral); text-underline-offset: 3px; }
.legal__updated { margin-top: 8px; color: var(--muted); }

.info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 0; }
.info dt { padding-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.info dd { margin: 0; }
.legal p + .info, .legal .info + p { margin-top: 14px; }
@media (max-width: 560px) { .info { grid-template-columns: 1fr; gap: 2px; } .info dd + dt { margin-top: 12px; } }

.price-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.price-table th, .price-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { color: var(--muted); font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.price-table td:last-child, .price-table th:last-child { padding-right: 0; text-align: right; white-space: nowrap; }

.form-type { margin-top: 16px; padding: 24px 28px; background: #EDE5D4; border-left: 3px solid var(--coral); }
.form-type p { font-size: 15px; }

/* Contact */
.contact { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.contact__info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact__block { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__block h2 { font-size: 28px; line-height: 1.1; }
.contact__block p { font-size: 15px; line-height: 1.6; }
.contact__mail { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.contact__card { flex: 1.5 1 440px; min-width: 0; padding: 12px; background: var(--green); color: var(--cream); }
.contact-form { position: relative; padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 40px); border: 1.5px solid var(--cream); display: flex; flex-direction: column; gap: 22px; }
.contact-form h2 { font-size: clamp(34px, 4vw, 46px); line-height: 1; }
.contact-form h2 em { color: var(--gold); }
.contact-form .corner { fill: var(--cream); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.field label { font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(245, 239, 227, .45); border-radius: 0;
  background: transparent; color: var(--cream); font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F2D14D' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--gold); }
.contact-form .btn { align-self: flex-start; min-height: 52px; padding: 0 26px; border: 0; cursor: pointer; font-family: var(--sans); }
.contact-form__hint { font-size: 13px; color: rgba(245, 239, 227, .75); }
.contact-form__status:empty { display: none; }
.contact-form__status { font-size: 14px; color: var(--gold); }

/* =====================================================================
   ANIMATIONS
   Toutes désactivées si l'utilisateur demande moins de mouvement.
   ===================================================================== */

/* Apparition au défilement : la classe js-motion est posée dans le <head>. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion :is(
    .hero__left > *, .hero__center, .hero__right > *, .proof__inner > *, .trust > div,
    .section-head, .offre__head, .shot, .review, .offer, .offre__notes,
    .histoire__text > *, .histoire__cover, .auteur__quote, .portrait, .auteur__bio,
    .illu__profile, .illu__figure, .parents__text, .faq__item, .final__inner > *,
    .page-hero__inner > *, .legal__toc, .legal section, .contact__info > *, .contact__card
  ) {
    opacity: 0; translate: 0 18px;
    transition: opacity .8s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms),
                translate .9s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms),
                transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1);
  }
  .js-motion :is(
    .hero__left > *, .hero__center, .hero__right > *, .proof__inner > *, .trust > div,
    .section-head, .offre__head, .shot, .review, .offer, .offre__notes,
    .histoire__text > *, .histoire__cover, .auteur__quote, .portrait, .auteur__bio,
    .illu__profile, .illu__figure, .parents__text, .faq__item, .final__inner > *,
    .page-hero__inner > *, .legal__toc, .legal section, .contact__info > *, .contact__card
  ).is-in { opacity: 1; translate: none; }

  /* Tableau « Pour les parents » : les filets restent fixes, seul le contenu des cases
     apparaît, case après case (délai --rd posé en JS). */
  .js-motion .pillar > * {
    opacity: 0; translate: 0 14px;
    transition: opacity .8s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms),
                translate .9s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms);
  }
  .js-motion .pillar.is-in > * { opacity: 1; translate: none; }
  /* Le cadre de chaque case apparaît sur place, en même temps que son contenu. */
  .js-motion .pillar::before { opacity: 0; transition: opacity .8s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms); }
  .js-motion .pillar.is-in::before { opacity: 1; }

  /* Images : fondu plus long, léger flou qui se dissipe, presque sans déplacement. */
  html.js-motion :is(.hero__center, .shot, .histoire__cover, .portrait, .illu__figure, .contact__card) {
    translate: 0 8px; filter: blur(6px);
    transition: opacity 1.6s cubic-bezier(.25, .1, .25, 1) var(--rd, 0ms),
                translate 1.6s cubic-bezier(.22, .61, .36, 1) var(--rd, 0ms),
                filter 1.4s cubic-bezier(.25, .1, .25, 1) var(--rd, 0ms),
                transform .3s ease, box-shadow .35s ease;
  }
  html.js-motion :is(.hero__center, .shot, .histoire__cover, .portrait, .illu__figure, .contact__card).is-in { translate: none; filter: none; }

  /* Parallaxe : le livre du hero et la couverture (valeur --py posée en JS). */
  .hero__center { perspective: 1400px; }
  .hero__book {
    transform: translateX(-46%) translate3d(var(--tx, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    will-change: transform;
  }
  .hero__sticker { transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) rotate(10deg); }
  .histoire__cover img { transform: translate3d(0, var(--py, 0px), 0); }

  /* Visionneuse : fondu et léger zoom à l'ouverture */
  .lightbox:not([hidden]) { animation: lb-fade .25s ease; }
  .lightbox:not([hidden]) img { animation: lb-zoom .4s cubic-bezier(.22, .61, .36, 1); }
}
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.96); } }

/* Micro-interactions au survol (souris uniquement) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .arr { display: inline-block; transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
  a:hover .arr, button:hover .arr { transform: translateX(4px); }

  .navlinks a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s ease; }
  .navlinks a:hover { background-size: 100% 1px; }
  /* Le trait se dessine de gauche à droite au survol. */
  .link-plain, .link-line, .site-footer nav a { transition: background-size .45s cubic-bezier(.22, .61, .36, 1); }

  .hero-cta .corner { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .hero-cta:hover .corner { transform: rotate(45deg) scale(1.2); }

  .disc__arrow { transition: transform .35s ease; }
  .disc:hover .disc__arrow { transform: translate(-50%, calc(-50% + 5px)); }

  .offer { transition: transform .35s ease, box-shadow .35s ease; }
  .offer:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -20px rgba(31, 30, 26, .4); }
  .offer__card > .ico { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
  .offer:hover .offer__card > .ico { transform: rotate(45deg) scale(1.2); }

  .shot { overflow: hidden; }
  .shot--arch { border-radius: 999px 999px 0 0; }
  .shot img { transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
  .shot:hover img { transform: scale(1.035); }

  .portrait__clip img { transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
  .portrait:hover .portrait__clip img { transform: scale(1.04); }
  .portrait__sticker { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
  .portrait--auteur:hover .portrait__sticker { transform: rotate(16deg); }
  .portrait--illu:hover .portrait__sticker { transform: rotate(-16deg); }

  .faq__item summary span { transition: color .2s ease; }
  .faq__item summary:hover span { color: var(--gold); }
  .faq__item:not([open]) summary:hover svg { transform: rotate(20deg); }

  /* Effets liés au curseur : une lueur de lanterne, comme celle de Perry */
  .hero::before {
    content: ""; position: absolute; inset: 0 0 -64px; pointer-events: none;
    background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 40%), rgba(242, 209, 77, .08), transparent 65%);
    opacity: 0; transition: opacity .6s ease;
  }
  .hero.is-lit::before { opacity: 1; }
  .offer__card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .28), transparent 70%);
    mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s ease;
  }
  .offer:hover .offer__card::after { opacity: 1; }
}
