
/* base.css - socle commun a toutes les pages (refonte librairie 2026-09-30).
   Fond blanc, header marchand (recherche, rayons), boutons, cartes livre, pied de page.
   Les noms --cream / --white / --text-* / --terracotta sont conserves : la couche
   mobile (templates/mobile_ux.html) s'en sert. */
:root {
  --white: #FFFFFF;
  --paper: #F6F2EA;
  --cream: #F6F2EA;
  --cream-dark: #E8E1D4;
  --line: #E6E1D8;
  --text-dark: #1C1B19;
  --text-mid: #4B4843;
  --text-light: #7C776E;
  --terracotta: #A94A31;
  --terracotta-dark: #8C3B26;
  --ink: #22313A;
  --ok: #2F6B45;
  --radius: 6px;
  --wrap: 1240px;
  --serif: 'Cardo', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --collection-color: #3A6B8C;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; background: var(--white); color: var(--text-dark); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.2; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Bandeau de reassurance ---------- */
.topbar { background: var(--ink); color: #F2EEE6; font-size: 13px; }
.topbar ul { list-style: none; max-width: var(--wrap); margin: 0 auto; padding: 7px 24px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D98E6F; flex: 0 0 auto; }

/* ---------- Header / navigation ---------- */
nav.site-nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-main { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
nav .logo { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: .3px; color: var(--text-dark); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
nav .logo span { color: var(--terracotta); }
.nav-search { flex: 1 1 auto; max-width: 620px; display: flex; border: 1.5px solid var(--text-dark); border-radius: 999px; overflow: hidden; background: var(--white); }
.nav-search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 10px 18px; font: inherit; font-size: 15px; background: transparent; color: var(--text-dark); }
.nav-search input:focus { outline: none; }
.nav-search:focus-within { box-shadow: 0 0 0 3px rgba(169,74,49,.18); }
.nav-search button { flex: 0 0 auto; border: 0; background: var(--text-dark); color: #fff; padding: 0 18px; cursor: pointer; display: flex; align-items: center; }
.nav-search button svg { width: 18px; height: 18px; }
.nav-cta { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text-dark); padding: 9px 14px; border-radius: var(--radius); }
.nav-cta:hover { background: var(--paper); }
.nav-cta svg { width: 20px; height: 20px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--text-dark); }
.nav-menu { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { display: block; padding: 10px 12px 12px; font-size: 15px; font-weight: 600; color: var(--text-mid); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:first-child { padding-left: 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-dark); border-bottom-color: var(--terracotta); }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font-size: 12.5px; font-weight: 600; letter-spacing: .6px; color: var(--text-light); text-decoration: none; padding: 4px 6px; border-radius: 4px; }
.lang-switch a:hover { color: var(--text-dark); background: var(--paper); }
.lang-switch a.active { color: var(--terracotta); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 0; font-size: 13.5px; color: var(--text-light); }
.breadcrumb a { color: var(--text-mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; color: #B7B1A6; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-dark { background: var(--text-dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: var(--white); color: var(--text-dark); border-color: var(--text-dark); }
.btn-outline:hover { background: var(--text-dark); color: #fff; }
.link-arrow { font-weight: 600; color: var(--terracotta); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Titres de section ---------- */
.shelf { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.shelf-head h2 { font-size: 28px; }
.shelf-head p { color: var(--text-light); font-size: 15px; margin-top: 4px; }

/* ---------- Carte livre (accueil, fiche : meme collection) ---------- */
.book-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.book-card .bc-cover { aspect-ratio: 2 / 3; background: var(--paper); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 3px; }
.book-card .bc-cover img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.14); transition: transform .2s; }
.book-card:hover .bc-cover img { transform: translateY(-3px); }
.book-card .bc-coll { margin-top: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.book-card .bc-title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.25; margin-top: 4px; }
.book-card:hover .bc-title { color: var(--terracotta); }
.book-card .bc-author { font-size: 14px; color: var(--text-mid); margin-top: 3px; }
.book-card .bc-price { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--text-dark); }
.book-card .bc-price small { font-weight: 400; color: var(--text-light); font-size: 13px; }

/* ---------- Pied de page ---------- */
footer.site-footer { margin-top: 88px; background: var(--text-dark); color: #CFC9BE; font-size: 15px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; }
.footer-brand .logo span { color: #D98E6F; }
.footer-brand p { margin-top: 12px; line-height: 1.55; max-width: 34ch; }
.footer-brand .mail { display: inline-block; margin-top: 14px; color: #fff; }
footer.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
footer.site-footer ul { list-style: none; display: grid; gap: 8px; }
footer.site-footer ul a { color: #CFC9BE; text-decoration: none; }
footer.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #A39D92; }
.footer-langs { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-langs a { color: #CFC9BE; text-decoration: none; }
.footer-langs a:hover, .footer-langs a.active { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .nav-cta span { display: none; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar li:nth-child(n+2) { display: none; }
  .nav-main { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px 12px; }
  nav .logo { font-size: 20px; }
  .nav-burger { display: block; order: 2; }
  .nav-cta { display: none; }
  .nav-search { order: 3; flex: 1 1 100%; max-width: none; }
  .nav-search input { font-size: 16px; padding: 9px 14px; }
  .nav-menu { padding: 0; }
  .breadcrumb { padding: 14px 16px 0; }
  .wrap, .shelf { padding-left: 16px; padding-right: 16px; }
  .shelf { padding-top: 40px; }
  .shelf-head h2 { font-size: 23px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px 28px; }
  .footer-bottom-inner { padding: 16px; }
}

/* Panier (2026-10-01) */
.nav-cart { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius); color: var(--text-dark); text-decoration: none; margin-left: 4px; }
.nav-cart:hover { background: var(--paper); }
.nav-cart svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #a64b2a; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
.cart-modal { position: fixed; inset: 0; background: rgba(20,20,20,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.cm-box { background: #fff; border-radius: 10px; padding: 22px; max-width: 440px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.cm-title { font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.cm-book { color: var(--text-mid); margin: 0 0 18px; line-height: 1.4; }
.cm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-actions .btn { flex: 1 1 160px; text-align: center; }
.cart-page { max-width: 900px; margin: 0 auto; padding: 0 24px 64px; }
.cart-page .breadcrumb { padding-left: 0; padding-right: 0; }  /* marge portee par .cart-page (2026-10-12) */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: auto; border-radius: 3px; }
.cl-title { font-weight: 700; color: var(--text-dark); text-decoration: none; }
.cl-sub { font-size: 14px; color: var(--text-light); margin-top: 2px; }
.cl-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.cl-ctrl select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.cl-remove { background: none; border: 0; color: #a64b2a; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.cl-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line.cl-out { opacity: .5; }
.cart-box { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; max-width: 420px; margin-left: auto; }
.cart-box .od-select { margin-bottom: 14px; }
.cart-note { background: var(--paper); border-radius: 6px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin: 14px 0; }
.cart-thanks { background: #eef6ee; border: 1px solid #9c9; border-radius: 8px; padding: 14px 16px; margin: 10px 0 20px; }
.cart-thanks strong { display: block; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 600px) { .cart-page { padding: 0 16px 48px; } .cart-line { grid-template-columns: 52px 1fr; } .cart-line img { width: 52px; } .cl-price { grid-column: 2; } .cart-box { max-width: none; } }

/* pages legales (2026-10-01) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal .legal-date { color: var(--text-light); font-size: .9rem; }
.legal code { font-size: .85em; background: rgba(0,0,0,.05); padding: 1px 4px; border-radius: 3px; }
.footer-legal { margin: 0; }
.footer-legal a { color: inherit; }
.cart-terms { font-size: 12.5px; color: var(--text-light); margin: 10px 0 0; }
.cart-waiver { display: block; }
.cart-waiver[hidden] { display: none; }

/* surlignage dans l'accroche de l'accueil (2026-10-01) */
.hero-lede .hl { color: var(--terracotta); font-weight: 700; }

/* A4 : vignettes catalogue/accueil, montant EUR en petit sous le prix converti */
.px .fx-main { display: inline; }
.px .fx-eur { display: inline; margin-left: 5px; font-size: .8em; font-weight: 400; color: var(--text-light); }
/* Titre du catalogue sans offre (2026-10-06) */
.soon-tag { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--terracotta); }

/* piliers SEO (2026-10-07) : bloc Explorer du pied de page et de l'accueil */
.footer-explore { border-top: 1px solid rgba(255,255,255,.12); }
.footer-explore-inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 10px; }
footer.site-footer .footer-explore h2 { margin-bottom: 10px; }
.footer-explore p { margin: 0 0 6px; line-height: 1.9; font-size: 14px; }
.footer-explore .fe-label { color: #A39D92; margin-right: 10px; }
.footer-explore a { color: #CFC9BE; text-decoration: none; margin-right: 14px; white-space: nowrap; display: inline-block; }
.footer-explore a:hover { color: #fff; text-decoration: underline; }
section.shelf.hub-explore { padding-top: 32px; }
.hub-explore .shelf-head p { color: var(--text-mid); }
.hub-explore .he-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.hub-explore h3 { font-size: 13px; font-family: var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.hub-explore ul { list-style: none; display: grid; gap: 6px; }
.hub-explore li a { text-decoration: none; font-size: 16px; }
.hub-explore li a:hover { color: var(--terracotta); text-decoration: underline; }
/* Lien Kindle secondaire sous l'EPUB direct (2026-10-10) */
.offer-alt{margin:-4px 0 10px;font-size:.88rem;text-align:right}
.offer-alt a{color:var(--muted,#6b6157);text-decoration:underline}

/* styles.css - fiches livre et pages auteur (refonte librairie 2026-09-30).
   Charge APRES base.css. #8C2332 remplace au build. */
:root { --collection-color: #8C2332; }

/* ---------- Bloc produit ---------- */
.product { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 48px; display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.product-cover { position: sticky; top: 130px; }
.book-cover { width: 100%; height: auto; box-shadow: 0 14px 40px rgba(0,0,0,.18); border-radius: 2px; }
.product-collection { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--collection-color); text-decoration: none; }
.product-collection img { width: 28px; height: 28px; object-fit: contain; }
.product-collection span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-light); font-style: italic; }
.product-collection:hover { text-decoration: underline; }
.product-main h1 { font-size: 38px; margin: 10px 0 8px; }
.book-subtitle { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--text-mid); line-height: 1.45; margin-bottom: 16px; }
.product-byline { font-size: 15px; color: var(--text-mid); display: grid; gap: 4px; margin-bottom: 14px; }
.product-byline strong { color: var(--text-dark); }
.product-byline a { text-decoration: none; }
.book-series-line { margin: -4px 0 14px; font-size: 15px; font-weight: 600; }
.product-byline a:hover strong { color: var(--terracotta); text-decoration: underline; }
.book-dates { color: var(--text-light); }
.book-source-line { font-size: 14.5px; color: var(--text-light); margin-bottom: 18px; line-height: 1.5; }
.product-lede { border-top: 1px solid var(--line); padding-top: 18px; }
.product-lede p { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--text-dark); margin-bottom: 10px; }
.product-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.product-facts li { font-size: 13.5px; padding: 5px 11px; background: var(--paper); border-radius: 999px; color: var(--text-mid); }

/* ---------- Buy box ---------- */
.buybox { position: sticky; top: 130px; border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--white); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.bb-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.offer { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.offer:first-of-type { border-color: var(--text-dark); }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer-fmt { font-weight: 700; font-size: 16px; }
.offer-price { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer-sub { font-size: 13.5px; color: var(--text-light); margin: 4px 0 12px; line-height: 1.4; }
.offer .btn { width: 100%; }
.offer .btn svg { width: 22px; height: 12px; }
.offer-bookstore { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 14px; }
.offer-bookstore summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.offer-bookstore summary::-webkit-details-marker { display: none; }
.offer-bookstore summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--text-light); }
.offer-bookstore[open] summary::after { content: "\2013"; }
.offer-bookstore p { margin: 8px 0; color: var(--text-mid); line-height: 1.45; }
.offer-bookstore .isbn { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.od-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 4px; }
.od-select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 15px; margin-bottom: 10px; }
.od-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--text-mid); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.od-row-total { font-weight: 700; color: var(--text-dark); font-size: 16px; margin-bottom: 12px; }
.od-err { font-size: 13.5px; color: #a4262c; margin: 0 0 10px; }
.fx-main { display: block; }
.fx-eur { display: block; font-size: 12px; font-weight: 400; color: var(--text-light); text-align: right; }
.od-fx { font-size: 12px; color: var(--text-light); margin: 2px 0 8px; text-align: right; line-height: 1.4; }
.offer-ebook .od-fx { text-align: left; margin: -4px 0 6px; }
.od-customs { font-size: 12.5px; color: var(--text-light); margin: 10px 0 0; line-height: 1.4; }
.od-thanks strong { display: block; font-size: 18px; margin-bottom: 6px; }
.od-thanks p { margin: 0; color: var(--text-mid); line-height: 1.45; }
.offer .btn[disabled] { opacity: .55; cursor: default; }
.bb-note { font-size: 12.5px; color: var(--text-light); margin-top: 10px; }
.platforms-note { font-size: 15px; color: var(--text-mid); font-style: italic; }

/* ---------- Sections de la fiche ---------- */
.section-block { max-width: 860px; margin: 0 auto; padding: 0 24px 56px; }
.section-block > h2, .section-block > .section-eyebrow { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); letter-spacing: 0; text-transform: none; }
.section-divider { display: none; }
.prose p { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: var(--text-dark); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--text-light); padding-right: 32px; }
.specs dd { color: var(--text-dark); font-variant-numeric: tabular-nums; }
.specs a { color: var(--terracotta); text-decoration: none; }
.specs a:hover { text-decoration: underline; }

/* Auteur ancien */
.ancient-author { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; }
.ancient-author .portrait img { width: 100%; height: auto; border-radius: 4px; }
.aa-name { font-size: 24px; margin-bottom: 2px; }
.aa-work { font-size: 14.5px; color: var(--text-light); font-style: italic; margin-bottom: 12px; }
.aa-text p { font-family: var(--serif); font-size: 17px; line-height: 1.7; margin-bottom: 12px; }
.bio-link { font-weight: 600; font-size: 15px; color: var(--terracotta); text-decoration: none; }
.bio-link:hover { text-decoration: underline; }

/* Avant / apres */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-col { padding: 20px 22px; border-radius: 8px; background: var(--paper); }
.ba-col.after { background: var(--white); border: 1px solid var(--line); }
.ba-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.ba-col.after .ba-label { color: var(--collection-color); }
.ba-col p { font-family: var(--serif); font-size: 16.5px; line-height: 1.7; font-style: italic; }

/* Carte */
.book-map img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.book-map figcaption { font-size: 14px; color: var(--text-light); font-style: italic; margin-top: 10px; text-align: center; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }
.faq-item p { color: var(--text-mid); }

/* Editeur moderne */
.author-snippet { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.author-snippet .avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-text h3 { font-size: 20px; }
.author-text .role { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta); margin: 2px 0 10px; font-weight: 600; }
.author-text p { color: var(--text-mid); margin-bottom: 10px; }

/* Meme collection */
.related { padding-top: 16px; }

/* ---------- Pages auteur ---------- */
.author-hero { max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 48px; }
.author-hero-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.author-hero-inner:not(:has(.portrait)) { grid-template-columns: 1fr; }
.author-hero .portrait img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.section-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.author-hero h1 { font-size: 40px; margin-bottom: 6px; }
.author-dates { color: var(--text-light); font-size: 16px; margin-bottom: 6px; }
.author-lede { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--text-mid); max-width: 60ch; margin-top: 10px; }
.author-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 22px; }
.author-book { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 16px; border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.author-book:hover { border-color: var(--text-dark); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.author-book img { width: 100%; height: auto; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.author-book h3 { font-size: 17px; }
.author-book:hover h3 { color: var(--terracotta); }
.ab-meta { font-size: 13.5px; color: var(--text-light); margin-top: 4px; }
.ab-desc { font-size: 14px; color: var(--text-mid); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.page-authors .section-block { max-width: var(--wrap); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Tablette : buy box sous la couverture, colonne de gauche, visible des l'arrivee */
  .product { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "cover main" "buy main"; row-gap: 20px; }
  .product-cover { grid-area: cover; position: static; }
  .product-main { grid-area: main; }
  .buybox { grid-area: buy; position: static; padding: 16px; }
  .offer-price { font-size: 21px; }
}
@media (max-width: 700px) {
  .product { grid-template-columns: 1fr; grid-template-areas: none; gap: 24px; padding: 16px 16px 40px; }
  .product-cover, .product-main, .buybox { grid-area: auto; }
  .product-cover { width: 70%; max-width: 280px; margin: 0 auto; order: 1; }
  /* Mobile : le bloc d'achat remonte juste sous le titre et les auteurs */
  .product-main { display: contents; }
  .product-collection { order: 2; flex-wrap: wrap; }
  .product-main h1 { order: 3; margin: 0; }
  .book-subtitle { order: 4; margin: -12px 0 0; font-size: 16.5px; }
  .product-byline { order: 5; margin: -8px 0 0; }
  .buybox { order: 6; }
  .book-source-line { order: 7; margin: 0; }
  .product-lede { order: 8; }
  .product-facts { order: 9; margin-top: -8px; }
  .product-main h1 { font-size: 29px; }
  .section-block { padding: 0 16px 44px; }
  .section-block > h2, .section-block > .section-eyebrow { font-size: 22px; }
  .prose p, .product-lede p { font-size: 17px; }
  .ancient-author { grid-template-columns: 1fr; }
  .ancient-author .portrait { max-width: 160px; }
  .before-after { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 0; }
  .author-hero { padding: 20px 16px 32px; }
  .author-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .author-hero .portrait { max-width: 180px; }
  .author-hero h1 { font-size: 30px; }
  .author-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .author-book { padding: 10px; }
}

/* hub auteurs : portraits et filtres (2026-10-01) */
.hub-filters { display: grid; gap: 12px; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hub-filters .filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hub-filters .filter-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text-mid); cursor: pointer; }
.hub-filters .filter-btn:hover { border-color: var(--btn-color, var(--text-dark)); color: var(--text-dark); }
.hub-filters .filter-btn.active { background: var(--btn-color, var(--text-dark)); border-color: var(--btn-color, var(--text-dark)); color: #fff; }
.hub-filters .filter-select, .hub-filters .filter-reset { font: inherit; font-size: 14.5px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text-dark); }
.hub-filters .filter-reset { cursor: pointer; color: var(--text-mid); }
.hub-author { align-items: center; text-align: center; }
.hub-author[hidden] { display: none; }
.hub-avatar { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 34px; color: var(--text-light); margin-bottom: 12px; flex: none; }
.author-book .hub-avatar img, .hub-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; margin: 0; box-shadow: none; }
.hub-author:hover h3 { color: var(--terracotta); }

/* Titre du catalogue : "Bientot disponible" + alerte de parution (2026-10-06) */
.offer-soon { border-color: var(--text-dark); }
.offer-soon .notify-form { display: grid; gap: 8px; margin-top: 4px; }
.offer-soon [hidden], .offer-soon .notify-form[hidden] { display: none !important; }
.offer-soon .notify-form .nf-label, .offer-soon .notify-form label { font-weight: 600; font-size: 14px; }
.offer-soon .notify-form input[type=email] { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--text-dark); width: 100%; box-sizing: border-box; }
.offer-soon .notify-form input[type=email]:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.offer-soon .hp { position: absolute; left: -9999px; }
.offer-soon .form-note { font-size: 12.5px; color: var(--text-light); margin: 2px 0 0; line-height: 1.4; }
.offer-soon .form-note a { color: inherit; }
.offer-soon .notify-ok { margin: 4px 0 0; font-size: 14.5px; color: var(--text-dark); font-weight: 600; line-height: 1.45; }
.offer-soon .notify-err { margin: 6px 0 0; font-size: 13.5px; color: var(--terracotta); }
/* Rupture d'un livre a creer (Erik 2026-10-11) : prix garde, bouton grise, alerte de retour en stock dans le meme cadre. */
.offer-direct .od-oos { font-size: 14.5px; font-weight: 600; color: #a4262c; margin: 2px 0 10px; }
.offer-direct .mto-oos { border: 0; padding: 0; margin: 12px 0 0; }
.offer-direct .mto-oos .offer-sub { margin-bottom: 8px; }
.offer-direct .btn-off { opacity: .45; filter: grayscale(1); cursor: pointer; }
.mto-pop { border: 0; border-radius: 10px; padding: 22px 20px 18px; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; background: var(--white); color: var(--text-dark); }
.mto-pop::backdrop { background: rgba(20, 16, 12, .45); }
.mto-pop .offer-soon { border: 0; padding: 0; margin: 0; }
.mto-pop-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-light); }
.mto-pop[open] { position: fixed; }

/* piliers SEO (2026-10-07) : etiquettes epoque / region et bloc "Au meme moment" */
.book-countries { margin-top: 12px; font-size: 14.5px; color: var(--text-mid); line-height: 1.7; }
.book-countries .bc-label { font-weight: 700; color: var(--text-dark); margin-right: 4px; }
.book-countries a { color: var(--text-dark); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.book-countries a:hover { color: var(--terracotta); text-decoration-color: var(--terracotta); }
.book-countries .bc-minor { color: var(--text-light); font-size: 13.5px; }
.hub-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hub-tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-mid); text-decoration: none; }
.hub-tag:hover { border-color: var(--terracotta); color: var(--terracotta); }
.hub-tag-region { border-color: var(--collection-color); color: var(--collection-color); }
.same-time .st-list { list-style: none; display: grid; gap: 20px; }
.same-time .st-list li { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.same-time .st-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.same-time h3 { font-size: 18px; margin-bottom: 6px; }
.same-time .st-year { font-weight: 400; color: var(--text-light); font-size: 15px; }
.same-time p { font-family: var(--serif); font-size: 16.5px; line-height: 1.65; color: var(--text-dark); }
.st-link { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--terracotta); text-decoration: none; }
.st-link:hover { text-decoration: underline; }

/* Hub auteurs : recherche par nom dans les filtres, barre du bandeau masquee (2026-10-11, comme le catalogue) */
.hub-filters .filter-search-input { width: 100%; max-width: 520px; font: inherit; font-size: 15px; padding: 10px 16px; border: 1.5px solid var(--text-dark); border-radius: 999px; background: var(--white); color: var(--text-dark); }
.page-authors-hub .nav-search { visibility: hidden; }
@media (max-width: 600px) { .page-authors-hub .nav-search { display: none; } .hub-filters .filter-search-input { font-size: 16px; } }

