/* =====================================================================
   Les Trésors du Savoir — Feuille de style canonique (partagée)
   Source UNIQUE du design : en-tête, pied, hero, sections, offre, FAQ…
   Modifiée ici = appliquée à TOUTES les pages. Ne plus dupliquer en ligne.
===================================================================== */
:root {
  --bg-page: #f3f4f6;
  --bg-hero: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #e5e7eb;
  --accent-blue: #0f172a;
  --accent-blue-soft: #1d4ed8;
  --accent-gold: #eab308;
  --accent-gold-soft: #facc15;
  --text-main: #0f172a;
  --text-soft: #4b5563;
  --border-soft: #e5e7eb;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 10px 30px rgba(15,23,42,0.15);
  --shadow-subtle: 0 6px 18px rgba(15,23,42,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0f2fe 0, #f3f4f6 45%, #e5e7eb 100%);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page { max-width: 1120px; margin: 0 auto; padding: 14px 16px 40px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #1d4ed8; color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font: 600 14px/1 system-ui, sans-serif; text-decoration: none; }
.skip-link:focus { left: 0; }

/* Fil d'Ariane (fiches livre) */
.crumb { margin: 12px 0 0; padding: 0 4px; font-size: 13px; color: var(--text-soft); display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--text-soft); text-decoration: none; }
.crumb a:hover { color: var(--accent-blue-soft); text-decoration: underline; }
.crumb .crumb-sep { color: #cbd5e1; }
.crumb [aria-current] { color: var(--text-main); font-weight: 700; }

/* Avis clients (VRAIS avis — section affichée uniquement si CONFIG.REVIEWS renseigné) */
.reviews-avg { margin: 4px 0 18px; font-size: 15px; color: var(--text-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reviews-avg strong { color: var(--text-main); }
.review-stars { color: var(--accent-gold); letter-spacing: 1px; font-size: 16px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.review { margin: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-main); }
.review figcaption { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.reviews-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-soft); font-style: italic; }

/* Encart « ceci est un livre » (conformité myPOS / réseaux cartes) */
.book-notice { max-width: 1080px; margin: 16px auto 0; padding: 14px 18px; background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--accent-blue-soft); border-radius: 12px; font-size: 13.5px; line-height: 1.6; color: #1e3a8a; }
/* Identité marchand en pied (nom + adresse société) */
.footer-legal { text-align: center; font-size: 12px; color: var(--text-soft); margin: 10px 0 0; padding: 0 16px; line-height: 1.5; }

/* Focus clavier visible (accessibilité WCAG 2.4.7) — global. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; border-radius: 6px; }

/* ====== BARRE ANNONCE ====== */
.topbar {
  max-width: 1120px; margin: 0 auto 10px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-blue));
  color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-subtle);
}
.topbar span { display: inline-flex; align-items: center; gap: 6px; opacity: 0.96; }

/* ====== HEADER CANONIQUE (injecté par site.js dans #site-header) ====== */
#site-header { display: block; min-height: 58px; }   /* réserve la hauteur → pas de saut au chargement */
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 16px; border-radius: 999px;
  background: #ffffff; border: 1px solid #dbeafe; box-shadow: var(--shadow-subtle);
  position: sticky; top: 10px; z-index: 50; backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 999px; overflow: hidden; border: 1px solid #dbeafe;
  background: radial-gradient(circle at 25% 0%, #1d4ed8 0, #0f172a 45%, #020617 100%);
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: #0f172a; }
.brand-slogan { font-size: 12px; font-weight: 500; color: var(--text-soft); }

.nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-btn {
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  border: 1px solid transparent; background: #eff6ff; color: #1e3a8a; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .16s ease-out, border-color .16s ease-out, transform .12s;
}
.nav-btn span { font-size: 14px; }
.nav-btn:hover { border-color: #bfdbfe; background: #dbeafe; transform: translateY(-1px); }
.nav-btn[aria-current="page"] { background: #1d4ed8; color: #fff; border-color: #1d4ed8; font-weight: 700; }

/* ====== HERO ====== */
.hero {
  margin-top: 22px; border-radius: var(--radius-xl); padding: 26px 24px;
  background: radial-gradient(circle at top left, #e0f2fe 0, #ffffff 45%, #eff6ff 100%);
  border: 1px solid #e5e7eb; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 26px; align-items: center; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(234,179,8,.18), transparent 70%); pointer-events: none; }
.hero-left, .hero-right { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; width: fit-content; }
.kicker.gold { background: #fffbeb; color: #854d0e; border-color: #fde68a; }
.hero-title { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; color: #0f172a; }
.hero-title .highlight { background: linear-gradient(135deg, #1d4ed8, #0f172a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-author { margin-top: 8px; font-size: 14px; color: var(--text-soft); }
.hero-author b { color: #1d4ed8; }
.hero-sub { font-size: 15.5px; color: var(--text-soft); margin-top: 14px; line-height: 1.6; max-width: 560px; }
.hero-bullets { list-style: none; margin: 16px 0 0; display: grid; gap: 9px; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: #1f2937; }
.hero-bullets .ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #dcfce7; color: #15803d; font-size: 13px; font-weight: 700; }

.rating-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.stars { color: var(--accent-gold); font-size: 17px; letter-spacing: 1px; }
.rating-row small { color: var(--text-soft); font-size: 13px; }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.price-now { font-size: 30px; font-weight: 800; color: #0f172a; }
.price-old { font-size: 16px; color: #6b7280; text-decoration: line-through; }
.price-tag { font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 3px 9px; border-radius: 999px; }

.cta-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn { border-radius: 999px; border: none; padding: 13px 24px; cursor: pointer; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; transition: transform .12s, box-shadow .16s, opacity .16s; line-height: 1; }
.btn-primary { background: linear-gradient(135deg, var(--accent-gold-soft), var(--accent-gold)); color: #422006; box-shadow: 0 8px 20px rgba(234,179,8,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(234,179,8,.45); }
.btn-dark { background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-blue)); color: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.25); }
.btn-dark:hover { transform: translateY(-2px); opacity: .95; }
.btn-outline { background: #fff; color: #1e3a8a; border: 1.5px solid #bfdbfe; }
.btn-outline:hover { background: #eff6ff; transform: translateY(-2px); }
.reassure { margin-top: 12px; font-size: 12.5px; color: var(--text-soft); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.hero-right { display: flex; justify-content: center; }
.cover-card { position: relative; max-width: 300px; width: 100%; }
.cover-badge { position: absolute; top: -12px; right: -10px; z-index: 2; background: linear-gradient(135deg, var(--accent-gold-soft), var(--accent-gold)); color: #422006; font-weight: 800; font-size: 11px; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow-subtle); transform: rotate(6deg); }
.cover-inner { border-radius: 18px; overflow: hidden; border: 1px solid var(--accent-gold); padding: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.cover-inner img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ====== SECTIONS ====== */
section.block { margin-top: 30px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 22px; }
.sec-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: #1d4ed8; font-weight: 700; }
.sec-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; color: #0f172a; }
.sec-sub { text-align: center; max-width: 620px; margin: 6px auto 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.sec-sub b { color: var(--accent-blue-soft); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 18px; color: var(--accent-gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--accent-gold)); }
.ornament::after { background: linear-gradient(90deg, var(--accent-gold), transparent); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feat { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-subtle); transition: transform .18s, box-shadow .18s, border-color .18s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #bfdbfe; }
.feat .emoji { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, #eff6ff, #dbeafe); margin-bottom: 14px; }
.feat h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ====== ÉTAPES ====== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-lg); padding: 26px 20px 20px; box-shadow: var(--shadow-subtle); }
.step .num { counter-increment: step; position: absolute; top: -16px; left: 20px; width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-blue)); color: #fff; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-subtle); }
.step .num::before { content: counter(step); }
.step h3 { font-size: 16px; font-weight: 700; margin: 6px 0; color: #0f172a; }
.step p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ====== À L'INTÉRIEUR (cartes contenu — JAMAIS de faux avis) ====== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.testi { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-subtle); display: flex; flex-direction: column; gap: 12px; }
.testi .stars { font-size: 15px; }
.testi p { font-size: 14.5px; color: #1f2937; line-height: 1.6; font-style: italic; }
.testi .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1d4ed8, #0f172a); font-size: 15px; }
.testi .who b { font-size: 14px; color: #0f172a; }
.testi .who small { font-size: 12px; color: var(--text-soft); display: block; }

/* ====== OFFRE / PAIEMENT ====== */
.offer { border-radius: var(--radius-xl); border: 2px solid var(--accent-gold); background: radial-gradient(circle at top right, #fffbeb 0, #ffffff 55%); box-shadow: var(--shadow-soft); overflow: hidden; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.offer-media { padding: 28px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eff6ff, #dbeafe); }
.offer-media img { max-width: 260px; width: 100%; border-radius: 14px; box-shadow: var(--shadow-soft); border: 1px solid var(--accent-gold); }
.offer-buy { padding: 28px; }
.offer-buy h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.offer-buy .incl { list-style: none; margin: 16px 0; display: grid; gap: 8px; }
.offer-buy .incl li { display: flex; gap: 9px; font-size: 14px; color: #1f2937; }
.offer-buy .incl .ic { color: #15803d; font-weight: 800; }

.price-box { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.price-box .now { font-size: 34px; font-weight: 800; color: #0f172a; }
.price-box .old { font-size: 17px; color: #6b7280; text-decoration: line-through; }
.ship-note { display: block; font-size: 13px; color: var(--text-soft); margin-top: 4px; }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.qty-row label { font-size: 14px; font-weight: 600; color: #0f172a; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #d1d5db; border-radius: 999px; overflow: hidden; }
.stepper button { width: 36px; height: 36px; border: none; background: #f3f4f6; font-size: 18px; font-weight: 700; cursor: pointer; color: #1e3a8a; }
.stepper button:hover { background: #dbeafe; }
.stepper input { width: 46px; text-align: center; border: none; font-size: 16px; font-weight: 700; color: #0f172a; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pay-box { margin-top: 10px; }
.pay-btn { width: 100%; border: none; border-radius: 14px; padding: 15px; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-blue)); color: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.22); transition: transform .12s, opacity .16s; }
.pay-btn:hover { transform: translateY(-2px); opacity: .96; }
.pay-btn .mp { background: #fff; color: #0f172a; font-size: 11px; font-weight: 900; padding: 2px 6px; border-radius: 5px; letter-spacing: .5px; }
.wa-btn { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 8px 20px rgba(18,140,126,.28); text-decoration: none; }
.wa-btn:hover { color: #fff; }
.wa-btn .wa { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #128c7e; font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 5px; letter-spacing: .3px; }
.wa-note { margin-top: 10px; font-size: 12.5px; text-align: center; color: #14532d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 12px; }
.wa-note b { color: #128c7e; }
.email-btn { background: linear-gradient(135deg, #2563eb, #1e3a8a); box-shadow: 0 8px 20px rgba(37,99,235,.28); text-decoration: none; }
.email-btn:hover { color: #fff; }
.email-btn .eml { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #1e40af; font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 5px; letter-spacing: .3px; }
.email-note { color: #1e3a8a; background: #eff6ff; border-color: #bfdbfe; }
.email-note b { color: #1d4ed8; }
.mp-offers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mp-offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #e5e7eb; background: #fff; font-size: 14.5px; font-weight: 600; color: #334155; transition: border-color .15s, background .15s, box-shadow .15s; }
.mp-offer:hover { border-color: #cbd5e1; }
.mp-offer .mo-a { font-weight: 800; color: #0f172a; white-space: nowrap; }
.mp-offer.on { border-color: var(--accent-blue); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.mp-offer:focus-visible { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

.trust-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 16px; font-size: 12px; color: var(--text-soft); }
.trust-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ====== GARANTIE ====== */
.guarantee { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; text-align: center; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; border-radius: var(--radius-xl); padding: 26px 24px; box-shadow: var(--shadow-soft); }
.guarantee .seal { font-size: 44px; }
.guarantee h3 { font-size: 20px; font-weight: 800; }
.guarantee p { font-size: 14px; color: #cbd5e1; margin-top: 4px; max-width: 560px; }

/* ====== AUTRES LIVRES (cross-sell) ====== */
.section-card { background: #fff; border-radius: var(--radius-xl); border: 1px solid #e5e7eb; padding: 24px 20px; box-shadow: var(--shadow-subtle); }
.grid-books { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.prod { border-radius: var(--radius-lg); border: 1px solid #e5e7eb; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s, border-color .12s; position: relative; }
.prod:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #bfdbfe; }
.prod-img-wrapper { border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; height: 210px; display: flex; align-items: center; justify-content: center; }
.prod-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prod-title { font-weight: 600; line-height: 1.25; color: #0f172a; font-size: 13.5px; }
.prod-author { font-size: 12px; color: #6b7280; }
.prod-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 4px; }
.price { font-weight: 700; color: #0f172a; }
.deal-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--accent-gold); color: #422006; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: var(--shadow-subtle); }
.old-mini { font-size: 12px; color: #6b7280; text-decoration: line-through; margin-left: 4px; }
.add-btn { margin-top: 8px; align-self: stretch; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--accent-blue-soft); background: #eff6ff; color: var(--accent-blue-soft); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.add-btn:hover { background: var(--accent-blue-soft); color: #fff; }
.add-btn:active { transform: scale(.97); }
.prod.added { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a inset, var(--shadow-subtle); }
.qty-mini { margin-top: 8px; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 4px; }
.qty-mini button { width: 34px; height: 34px; border: none; border-radius: 8px; background: #16a34a; color: #fff; font-size: 19px; line-height: 1; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; }
.qty-mini button:hover { background: #15803d; }
.qty-mini button:active { transform: scale(.92); }
.qty-mini .qm-val { font-weight: 800; font-size: 15px; color: #15803d; font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; }
.prod-more { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid #1d4ed8; color: #1d4ed8; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; transition: background .14s, color .14s; }
.prod-more:hover { background: #1d4ed8; color: #fff; }

.allbooks-hint { max-width: 460px; margin: 14px auto 0; padding: 11px 16px; border-radius: 12px; border: 1px dashed #cbd5e1; background: #f8fafc; color: var(--text-soft); font-size: 14px; text-align: center; transition: all .2s; }
.allbooks-hint.on { border-style: solid; border-color: #16a34a; background: #f0fdf4; color: #15803d; font-weight: 600; }

.cart-summary { max-width: 460px; margin: 16px auto 0; background: var(--bg-card); border: 1px solid #e5e7eb; border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); padding: 16px 18px; }
.cs-title { font-weight: 700; font-size: 14px; color: var(--accent-blue); margin: 0 0 10px; display: flex; align-items: center; gap: 7px; }
.cart-line { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: baseline; font-size: 14px; padding: 3px 0; color: var(--text-soft); }
.cart-line .cl-q { color: var(--accent-blue-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line .cl-n { color: #374151; }
.cart-line .cl-a { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line.sub { margin-top: 9px; padding-top: 10px; border-top: 1px solid #eef0f3; }
.cart-line.disc .cl-n, .cart-line.disc .cl-a { color: #15803d; font-weight: 600; }
.cart-line.tot { margin-top: 6px; padding-top: 9px; border-top: 2px solid #e5e7eb; font-size: 17px; font-weight: 800; color: var(--accent-blue); }
.cart-line.tot .cl-a { color: var(--accent-blue); }

/* ====== FAQ ====== */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 4px 18px; box-shadow: var(--shadow-subtle); }
.faq summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 700; color: #0f172a; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: #1d4ed8; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ====== FINAL CTA ====== */
.final { text-align: center; border-radius: var(--radius-xl); background: radial-gradient(circle at top, #e0f2fe, #ffffff 60%); border: 1px solid #e5e7eb; padding: 36px 24px; box-shadow: var(--shadow-soft); }
.final h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.final p { font-size: 15px; color: var(--text-soft); margin: 10px auto 20px; max-width: 540px; }

/* ====== CONTENU UTILITAIRE (pages légales / à-propos) ====== */
.prose-page { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-xl); box-shadow: var(--shadow-subtle); padding: 30px 28px; margin-top: 22px; max-width: 820px; margin-left: auto; margin-right: auto; }
.prose-page h1 { font-size: clamp(26px,4vw,34px); letter-spacing: -.02em; margin-bottom: 6px; }
.prose-page h2 { font-size: 1.18rem; margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent-gold); color: #0f172a; }
.prose-page p, .prose-page li { color: #1f2937; line-height: 1.7; }
.prose-page a { color: var(--accent-blue-soft); }
.prose-page .updated { color: var(--text-soft); font-size: .92rem; }

/* ====== FOOTER CANONIQUE (injecté par site.js dans #site-footer) ====== */
.site-footer { margin-top: 36px; border-top: 1px solid #e5e7eb; padding-top: 22px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { font-size: 13px; color: var(--text-soft); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-soft); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.footer-links a:hover { color: #1d4ed8; }
.counters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed #e5e7eb; font-size: 14px; color: #475569; }
.counters .c { display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 8px 16px; font-weight: 600; box-shadow: 0 1px 2px rgba(30,58,138,.06); }
.counters .c b { color: #1d4ed8; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ====== MODALE MERCI ====== */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius-xl); padding: 34px 28px; max-width: 440px; text-align: center; box-shadow: var(--shadow-soft); animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.modal .check { font-size: 54px; }
.modal h3 { font-size: 22px; font-weight: 800; margin: 8px 0; color: #0f172a; }
.modal p { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
.modal button { margin-top: 18px; }

/* ====== REVEAL ANIM ====== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ====== CTA COLLANT MOBILE ====== */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: none; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, #1d4ed8, #1e3a8a); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 10px 28px rgba(30,58,138,.38); transform: translateY(160%); transition: transform .3s ease; }
.sticky-cta b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sticky-cta.show { transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) { .grid-books { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr); text-align: center; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .kicker, .hero-bullets { text-align: left; }
  .hero-right { order: -1; }
  .offer { grid-template-columns: minmax(0,1fr); }
  .grid-books { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  header { flex-direction: column; border-radius: 20px; align-items: center; }
  .nav { justify-content: center; }
  .hero-title { font-size: 30px; }
  .sec-title { font-size: 22px; }
  .grid-books { grid-template-columns: minmax(0,1fr); }
  .footer-grid { flex-direction: column; text-align: center; }
}
@media (max-width: 720px) { .sticky-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
  * { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
