/* ==========================================================================
   Glossator landing / — Sprint Landing V2
   8 sections éditoriales : Header / Hero / § I La marge / § II L'audio /
   § III L'apprentissage / § IV Les livres / § V L'auteur / Footer.
   Built on top of static/css/tokens.css (paper/ink/rubric system).
   Source maquette : docs/design/landing page/Landing Page.html
   ========================================================================== */

* { box-sizing: border-box; }

html, body.landing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
}
body.landing { min-height: 100vh; }

/* ---------- shell ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--s-7); }
@media (max-width: 720px) { .page { padding: 0 var(--s-5); } }

/* ---------- header ---------- */
.top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: var(--s-5) 0 var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.wm {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 24px; line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; gap: 7px;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.wm .mark {
  color: var(--rubric);
  font-style: normal; font-weight: 400;
  font-size: 22px; line-height: 1;
}
.top-right {
  display: flex; align-items: baseline; gap: var(--s-4);
  font-family: var(--font-sans); font-size: 12px;
}
.lang {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: baseline; gap: 6px;
}
.lang .opt {
  cursor: pointer; padding-bottom: 1px;
  color: var(--ink-3); text-decoration: none;
  transition: color var(--d-fast) var(--ease-quiet);
}
.lang .opt.on,
.lang .opt:hover { color: var(--ink); }
.lang .sep { color: var(--ink-4); }
.sep-pipe {
  width: 1px; align-self: stretch; background: var(--rule-soft); margin: 2px 0;
}
.login {
  font-family: var(--font-serif); font-size: 15px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 0.22em; text-decoration-thickness: 1px;
  transition: color var(--d-fast) var(--ease-quiet),
              text-decoration-color var(--d-fast) var(--ease-quiet);
}
.login:hover { color: var(--ink); text-decoration-color: var(--ink-2); }

/* ---------- shared section title ---------- */
/* Section titles are sentences. Period included. The mono anchor on the left
   ("§ I", "§ II"…) gives editorial rhythm — kept structural, not decorative. */
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.013em;
  margin: 0 0 var(--s-6);
  font-variation-settings: "opsz" 36;
  color: var(--ink);
  text-wrap: balance;
}
.section-title .anchor {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--s-3);
  font-style: normal;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: var(--s-10) 0 var(--s-9); }
@media (max-width: 720px) { .hero { padding: var(--s-8) 0 var(--s-7); } }

.tagline {
  font-family: var(--font-serif); font-weight: 400; font-style: normal;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08; letter-spacing: -0.018em;
  color: var(--ink); margin: 0;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.subtitle {
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 32em; margin: var(--s-6) auto 0;
  text-wrap: pretty;
}

/* Hero CTA — sprint conversion 2026-05-26. Bouton primaire ancré sur la
   section IV (les livres). Visuel cohérent avec le bouton "LIRE CE LIVRE"
   de la fiche (rubric/paper, même border-radius, même flèche serif). */
.hero-cta {
  margin: var(--s-6) 0 0;
  text-align: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em; line-height: 1.2;
  padding: 14px 26px;
  border: 1px solid var(--rubric);
  border-radius: 4px;
  background: var(--rubric);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-quiet),
              transform var(--d-fast) var(--ease-quiet);
}
.btn-primary:hover {
  background: var(--rubric-press); border-color: var(--rubric-press);
  color: var(--paper);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary .arrow {
  font-family: var(--font-serif); font-size: 17px; line-height: 1;
}

/* ---------- vignettes (shared frame with register marks) ---------- */
.vignette {
  margin: var(--s-8) auto 0;
  width: 100%; max-width: 1040px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
  position: relative;
}
.vignette::before, .vignette::after {
  content: ""; position: absolute; width: 8px; height: 1px;
  background: var(--ink-4);
}
.vignette::before { top: -8px; left: 0; }
.vignette::after  { bottom: -8px; right: 0; }

/* Hero shot — real screenshot of the reader (page de lecture + gloses
   en marge + IA compagnon). Image responsive (ratio dicté par le PNG),
   ``width:100%; height:auto`` sur ``<img>``. */
.hero-shot {
  background: var(--paper);
}
.hero-shot__img {
  display: block;
  width: 100%;
  height: auto;
}

.vignette-caption {
  margin: var(--s-3) auto 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.02em;
  text-align: center;
}
.vignette-caption .dot { color: var(--ink-4); margin: 0 6px; }

/* ---------- generic editorial section ---------- */
.ed-section { padding: var(--s-9) 0; border-top: 1px solid var(--rule-soft); }
.ed-section.centered { text-align: center; }
.ed-section.centered .section-title { text-align: center; }
.ed-section .lede {
  font-family: var(--font-serif);
  font-size: 21px; line-height: 1.6;
  color: var(--ink);
  max-width: 30em;
  margin: 0;
  text-wrap: pretty;
}
.ed-section.centered .lede { margin: 0 auto; }
.ed-section .lede em, .ed-section .lede .ital { font-style: italic; }

/* ---------- § I La marge ---------- */
.marge-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 860px) {
  .marge-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.marge-prose .lede { max-width: 26em; }
.marge-etym {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px; line-height: 1.65;
  color: var(--ink-3);
  margin: var(--s-5) 0 0;
  max-width: 26em;
  text-wrap: pretty;
}

/* margin vignette ("page-with-glosses") — 2-col mock of a real reader page */
.margin-vignette {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: var(--s-6) 0 var(--s-7);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: var(--s-6);
  position: relative;
  margin: 0;
}
.margin-vignette .glosses {
  display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-3) 0 0 var(--s-5);
  border-left: 1px solid var(--rule-soft);
}
.gloss {
  font-family: var(--font-serif);
  font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.gloss .signature {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 4px;
}
.gloss .signature .mark {
  font-family: var(--font-serif); color: var(--rubric);
  font-size: 13px; line-height: 1;
}
.gloss .signature .init {
  font-family: var(--font-sans); font-weight: 600; color: var(--ink);
}

.margin-vignette .text-col { padding: var(--s-3) 0 0 var(--s-5); }
.margin-vignette .text-col p {
  font-family: var(--font-serif);
  font-size: 16px; line-height: 1.7;
  color: var(--ink);
  margin: 0 0 0.8em;
  max-width: 34em;
  text-wrap: pretty;
}
.margin-vignette .text-col .chapline {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.margin-vignette .text-col .chapline .dot { color: var(--ink-4); margin: 0 6px; }
@media (max-width: 720px) {
  .margin-vignette { grid-template-columns: 1fr; }
  .margin-vignette .glosses {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding-left: 0;
    padding-top: var(--s-5);
  }
  .margin-vignette .text-col { padding-left: 0; }
}

/* ---------- § III L'apprentissage ---------- */
.triad {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.013em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 40;
  text-align: center;
}
.triad .breath { display: inline-block; width: 0.6em; }
.coda {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px; color: var(--ink-2);
  margin: var(--s-7) 0 0;
  text-align: center;
}

/* ---------- § IV Les livres ---------- */
.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-6);
}
.books-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: var(--s-6) auto 0; }
.books-1 { grid-template-columns: 1fr; max-width: 360px; margin: var(--s-6) auto 0; }
@media (max-width: 900px) {
  .books { grid-template-columns: 1fr; gap: var(--s-8); max-width: 360px; margin: var(--s-6) auto 0; }
}

.book { display: flex; flex-direction: column; }
.book .cover-wrap {
  width: 200px; aspect-ratio: 2/3; margin-bottom: var(--s-5);
  position: relative;
}
@media (max-width: 900px) {
  .book .cover-wrap { margin: 0 auto var(--s-5); }
}
.book .num {
  position: absolute; top: -22px; left: 0;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.08em;
}

/* Cover link — sprint conversion 2026-05-26 :
   le hover -2px était trop discret pour signaler l'action. Le visiteur de
   Lille (2026-05-26) a chargé les 3 covers mais n'a pas cliqué. Renforcé
   avec un lift + ombre douce + bordure rubric subtile. La cover devient
   clairement actionnable au survol sans casser l'esthétique éditoriale. */
.cover-link {
  display: block; width: 100%; height: 100%;
  text-decoration: none; color: inherit;
  transition: transform var(--d-normal) var(--ease-quiet),
              box-shadow var(--d-normal) var(--ease-quiet);
  box-shadow: 0 1px 0 var(--rule-soft);
}
.cover-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.18),
              0 2px 0 var(--rubric);
}
.cover-link:focus-visible {
  outline: 1px solid var(--rubric); outline-offset: 3px;
}

.cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Typographic placeholder when no cover Asset exists.
   Preserves the editorial frame even without an image. */
.cover-placeholder {
  width: 100%; height: 100%;
  background: #221A14;
  color: #ECE3D2;
  display: grid; grid-template-rows: 1fr auto;
  padding: 16px 14px;
}
.cover-placeholder .cover-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 18px; line-height: 1.15; align-self: center;
  letter-spacing: -0.005em;
}
.cover-placeholder .cover-author {
  font-family: var(--font-sans); font-size: 8px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(236,227,210,0.7);
  border-top: 1px solid rgba(236,227,210,0.35);
  padding-top: 12px;
}

.book h3.title {
  font-family: var(--font-serif); font-size: 22px;
  font-weight: 600; font-style: normal;
  line-height: 1.2; letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 24;
}
.book h3.title a {
  color: inherit; text-decoration: none;
  transition: color var(--d-fast) var(--ease-quiet);
}
.book h3.title a:hover { color: var(--rubric); }
.book .author {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-3); margin-top: var(--s-3);
}
.book .category {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--rubric); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Meta row — sprint conversion 2026-05-26 : aligne category + badge
   « Gratuit » sur la même ligne pour qu'aucune info budgétaire n'attende
   un clic sur la fiche. Discret, jamais marketing. */
.book-meta-row {
  display: flex; align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-2);
  flex-wrap: wrap;
}
.book .free-badge {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 2px;
}
.book .hair {
  height: 1px; background: var(--rule-soft);
  margin: var(--s-4) 0; width: 32px;
}
.book .summary {
  font-family: var(--font-serif); font-size: 16px;
  line-height: 1.55; color: var(--ink-2);
  margin: 0; max-width: 30em;
  text-wrap: pretty;
}

/* Per-card CTA — sprint conversion 2026-05-26 : libellé texte sous chaque
   livre qui répète l'idiome de la fiche ("LIRE CE LIVRE →") sans surcharger
   visuellement. Le visiteur sait qu'il peut cliquer sans avoir à supposer
   que la cover est un lien. Souligné fin + flèche serif = même rendu que
   les autres liens éditoriaux de la landing. */
.book .book-cta {
  font-family: var(--font-sans); font-size: 13px;
  font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-top: var(--s-5);
  align-self: flex-start;
  transition: color var(--d-fast) var(--ease-quiet),
              text-decoration-color var(--d-fast) var(--ease-quiet);
}
.book .book-cta:hover {
  color: var(--rubric);
  text-decoration-color: var(--rubric);
}
.book .book-cta .arrow {
  font-family: var(--font-serif); font-size: 15px; line-height: 1;
}
@media (max-width: 900px) {
  .book .book-cta { align-self: center; }
  .book-meta-row { justify-content: center; }
}

/* ---------- § V L'auteur ---------- */
.author-row {
  display: flex; align-items: baseline; gap: var(--s-3);
  flex-wrap: wrap;
}
.author-row .lede { font-style: italic; max-width: none; }
.author-row a {
  font-family: var(--font-serif); font-size: 21px;
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color var(--d-fast) var(--ease-quiet),
              text-decoration-color var(--d-fast) var(--ease-quiet);
}
.author-row a:hover {
  color: var(--rubric);
  text-decoration-color: var(--rubric);
}

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: var(--s-5) 0 var(--s-7);
  border-top: 1px solid var(--rule);
  margin-top: var(--s-7);
  gap: var(--s-5);
  flex-wrap: wrap;
}
.foot-links {
  display: flex; gap: var(--s-3); align-items: baseline;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--ink);
  flex-wrap: wrap;
}
.foot-links a, .foot-links .ml {
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: color var(--d-fast) var(--ease-quiet);
}
.foot-links .ml { color: var(--ink-3); cursor: default; }
.foot-links a:hover { color: var(--rubric); }
.foot-links .dot { color: var(--ink-4); }

/* ---------- focus a11y ---------- */
a:focus-visible, .opt:focus-visible {
  outline: 1px solid var(--rubric); outline-offset: 3px;
}
