/* ============================================================
   L'EFFET CLIQUET — Page Livre (/livre)
   DA claire (fond rosé + WebGL, injectés par site.js). Hero : photo 16:9
   ~78 % centrée, titre R.A.F / LE LIVRE superposé (texte clair + ombre pour
   rester lisible sur la photo). Sous le hero : storytelling dans une colonne
   de lecture (.livre-read), intertitres en framboise (--accent). Mockup posé
   sobre sur le fond. Zone d'inscription : cartouche blanche translucide
   (.livre-signup), texte sombre, ombre douce. Typo : Inter.
   ============================================================ */

/* ---- Hero : photo décollée du header, titre superposé ----------------- */
.livre-hero {
  position: relative;
  width: 100%;
  margin-top: 40px;
  line-height: 0; /* supprime l'espace sous l'img inline */
}
.livre-hero img {
  display: block;
  width: 78%;
  max-width: 78%;
  height: auto;
  margin: 0 auto; /* centrée */
}
/* Bloc titre superposé, centré, dans le tiers bas de la photo */
.livre-hero-title {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
/* « R.A.F » : Inter 800, agrandi. Texte clair + ombre pour rester lisible
   par-dessus la photo (zones claires comme sombres). */
.livre-hero-raf {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(72px, 16vw, 240px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(43, 23, 33, 0.55), 0 1px 4px rgba(43, 23, 33, 0.45);
  margin: 0;
}
/* « LE LIVRE » : label clair sous le titre, même logique de lisibilité */
.livre-hero-label {
  margin-top: clamp(6px, 1vw, 14px);
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(13px, 1.9vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(43, 23, 33, 0.55);
}

/* ---- Mobile : marge haute pour passer sous le header fixe -------------- */
@media (max-width: 980px) {
  .livre-hero { margin-top: 48px; }
}

/* ---- Storytelling : colonne de lecture dans un CADRE simple et sobre -------
   Cartouche blanche translucide + blur (verre) avec un encadrement net
   (1px var(--line) + radius 14px) — MÊME traitement que la cartouche
   « Le Cercle » plus bas. Pas d'effet d'ombre/fondu haut-bas (retiré) :
   un cadre propre, uniforme, pour une lisibilité stable sur le WebGL. */
.livre-read {
  position: relative;
  max-width: 760px;
  width: 90%;
  margin: clamp(56px, 8vw, 96px) auto clamp(72px, 10vw, 120px);
  padding: clamp(36px, 4.5vw, 64px) clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
/* Chaque segment du manuscrit = un <p>. Espacement généreux pour le rythme. */
.livre-read p {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.8;
  color: var(--ink-body);
  margin: 0 0 1.5em;
}
.livre-read p:last-child { margin-bottom: 0; }
/* Accroche en exergue : plus grande et plus foncée que le corps. */
.livre-lead {
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 clamp(48px, 6vw, 64px);
}
/* Espacement vertical généreux entre blocs (avant chaque intertitre). */
.livre-block { margin-top: clamp(56px, 7vw, 80px); }
/* Intertitres : label framboise (--accent). */
.livre-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
/* Spécificité bumpée pour battre .livre-read p (0,1,1) sur la couleur. */
.livre-read .livre-eyebrow { color: var(--accent); }

/* ---- Mockup du livre : objet détouré, posé sobre sur le fond ----------- */
.livre-mockup {
  margin: clamp(72px, 10vw, 120px) auto;
  padding: 0;
  text-align: center;
}
.livre-mockup img {
  display: inline-block;
  width: clamp(300px, 32vw, 420px);
  height: auto;
}

/* ---- Inscription au cercle : cartouche blanche translucide ------------
   Bloc d'action isolé sur le fond clair + WebGL. Surface blanche translucide
   + blur (verre), texte sombre, ombre douce sombre. Surtitre framboise.
   Form simple, bouton pill framboise, mention discrète, erreur + succès. */
.livre-signup {
  display: flex;
  justify-content: center;
  padding: 0 24px;
  margin: clamp(80px, 12vw, 140px) auto clamp(96px, 14vw, 160px);
}
.livre-signup-card {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  width: 100%;
  max-width: 760px;
  padding: clamp(40px, 5vw, 76px) clamp(28px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(43, 23, 33, 0.12);
}
.livre-signup-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.livre-signup-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: none;
}
.livre-signup-card > p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--ink-body);
  margin: 0 0 1.2em;
}

/* Formulaire */
.livre-signup-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.livre-field { display: flex; flex-direction: column; gap: 8px; }
.livre-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.livre-field input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.livre-field input::placeholder { color: var(--ink-muted); }
.livre-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Bouton primaire (pill framboise) */
.livre-signup-submit {
  align-self: flex-start;
  margin-top: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.livre-signup-submit:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 14px 36px -10px rgba(214, 51, 108, 0.45);
}
.livre-signup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.livre-signup-mention {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.form-error {
  font-size: 14px;
  color: #B22B30;
  margin: 4px 0 0;
  line-height: 1.4;
  min-height: 1em;
}
.form-error:empty { display: none; }

/* Message de confirmation qui remplace le formulaire */
.livre-signup-ok {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  margin: 32px 0 0;
  padding: 20px 24px;
  background: var(--accent-tint);
  border: 1px solid rgba(214, 51, 108, 0.28);
  border-radius: 10px;
}

@media (max-width: 760px) {
  .livre-read {
    /* padding horizontal symétrique (22px) ALIGNÉ sur .livre-signup-card mobile,
       sinon le 0 horizontal collait le texte au bord gauche de la cartouche. */
    padding: 28px 22px;
    margin: clamp(40px, 8vw, 64px) auto clamp(56px, 10vw, 80px);
  }
  .livre-read p { font-size: 17px; }
  .livre-lead { font-size: 21px; }
  .livre-mockup { margin: clamp(48px, 10vw, 72px) auto; }
  .livre-mockup img { width: min(78%, 320px); }
  .livre-signup { padding: 0 16px; margin: clamp(56px, 12vw, 96px) auto clamp(64px, 12vw, 96px); }
  .livre-signup-card { padding: 32px 22px; border-radius: 12px; }
  .livre-signup-submit { align-self: stretch; }
}
