/* =========================================================================
   Bookline — feuille de style
   Apparence reprise de Library Online : fond beige doux, cartes blanches, encre presque noire,
   touches dorées ; titres en Playfair Display, textes en Inter ; boutons en pilule.
   1. Tokens & base        5. Accueil                 9. Console : devise, consentement, WhatsApp, avis
   2. Boutons & formulaires 6. Pied de page           10. Vente par produit : boutons, cours, Chariow Snap
   3. En-tête, tiroirs, toasts 7. Pages intérieures   11-14. Témoignages, langues du livre, désinscription
   4. Couvertures & cartes livres 8. Responsive
   ========================================================================= */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bg: #f7f3eb;            /* fond beige */
  --paper: #fbf8f2;         /* ivoire : textes sur fond encre, panneaux */
  --card: #ffffff;
  --beige-deep: #f1eade;    /* sections secondaires, survols */
  --ink: #110c09;           /* encre presque noire : titres, boutons principaux */
  --ink-2: #3f3832;         /* paragraphes */
  --muted: #5a544e;         /* textes secondaires (contraste AA sur le beige) */
  --green: var(--ink);      /* ancien vert de BOOKLINE : l'encre le remplace partout */
  --green-2: #2b231d;       /* survol des fonds encre */
  --green-soft: #f1eade;
  --gold: #cfa354;          /* décor : filets, icônes, étoiles */
  --gold-soft: #e6ce9d;
  --gold-deep: #a37a2c;     /* grands textes dorés (≥ 3:1) */
  --gold-ink: #8a672b;      /* petits textes dorés sur fond clair (AA) */
  --gold-light: #e2c07e;    /* dorés sur fond encre */
  --gold-btn: #8a672b;
  --gold-btn-hover: #74561f;
  --sand: #f1eade;
  --sand-2: #efe7d9;
  --sand-3: #f4efe6;
  --sand-deep: #e7dcc9;
  --line: #e7e1d6;
  --line-2: #ece6db;
  --line-3: #ddd7cb;
  --line-4: #c9bfae;
  --on-green: #fbf8f2;      /* textes sur fond encre */
  --on-green-2: rgba(251, 248, 242, 0.72);
  --heart: #c0563f;
  --danger: #a8402c;
  /* Boutons de vente : une couleur par mode, comme sur Library Online (textes contrastés AA). */
  --chariow-a: #f7cb58;
  --chariow-b: #efa810;
  --chariow-line: #e19c00;
  --chariow-ink: #180f09;
  --wa: #25d366;
  --wa-hover: #1fbf5b;
  --wa-line: #1ebe5a;
  --wa-ink: #0b2414;
  --free: #2563b8;
  --free-hover: #1f559f;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --r-xl: 32px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow-soft: 0 10px 30px -12px rgba(17, 12, 9, 0.18);
  --shadow-card: var(--shadow-soft);
  --shadow-pop: 0 30px 60px -30px rgba(17, 12, 9, 0.25), 0 18px 36px -18px rgba(17, 12, 9, 0.18);
  --header-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
::selection { background: var(--gold-soft); color: var(--ink); }

[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 13px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.serif { font-family: var(--serif); font-weight: 500; }
/* Sur-titre : petites capitales dorées très espacées (Playfair), au-dessus des titres de section */
.kicker {
  font-family: var(--serif); font-size: 12px; font-weight: 500; line-height: 1.5;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink);
}
.muted { color: var(--muted); }
/* Filet doré qui s'efface sur les bords */
.gold-divider { height: 1px; width: 160px; margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- 2. Boutons & formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.2; text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-pop); }
.btn--primary:hover { background: var(--green-2); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: rgba(255, 255, 255, 0.72); color: var(--ink); border-color: var(--line-3); }
.btn--light:hover { background: #fff; border-color: var(--gold); color: var(--ink); }
.btn--gold { background: linear-gradient(135deg, var(--chariow-a), var(--chariow-b)); color: var(--chariow-ink); border-color: var(--chariow-line); }
.btn--gold:hover { background: linear-gradient(135deg, #f9d266, #f2b120); color: var(--chariow-ink); box-shadow: 0 12px 30px -12px rgba(239, 168, 16, 0.55); }
.btn--details { background: var(--bg); color: var(--ink); border-color: var(--line-3); }
.btn--details:hover { background: var(--beige-deep); border-color: var(--line-4); color: var(--ink); }
.btn--glass { background: rgba(251, 248, 242, 0.06); color: var(--paper); border-color: rgba(251, 248, 242, 0.22); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(251, 248, 242, 0.12); border-color: var(--gold); color: var(--paper); }
.btn--glass .icon { color: var(--gold-light); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.is-added { background: var(--beige-deep); color: var(--ink); border-color: var(--line-3); box-shadow: none; }
.btn.is-added:hover { background: var(--sand-deep); color: var(--ink); }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap;
}
.link-more:hover { color: var(--gold-ink); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, 0.7); color: var(--ink); border: 1px solid var(--line-3);
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--gold); background: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12px; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-3); border-radius: 12px; background: #fff;
  padding: 12px 14px; font-size: 15px; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: #8a847d; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 163, 84, 0.22);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: auto; min-height: 44px; border-radius: 999px; background-color: #fff;
  padding: 0 40px 0 18px; font-size: 13px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23110c09' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 11px;
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; cursor: pointer; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 3. En-tête, tiroirs, toasts ---------- */
/* En-tête léger : transparent en haut de page, verre dépoli beige dès que la page défile. */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.is-scrolled, .site-header.is-searching {
  background: rgba(247, 243, 235, 0.85); border-bottom-color: rgba(221, 215, 203, 0.7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.logo__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.main-nav a { position: relative; color: rgba(17, 12, 9, 0.72); }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hdr-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line-3); background: rgba(255, 255, 255, 0.6); color: rgba(17, 12, 9, 0.82);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hdr-btn:hover, .hdr-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--ink); background: #fff; }
.hdr-btn .icon { width: 17px; height: 17px; }
.hdr-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 600; line-height: 18px; text-align: center;
}
.menu-toggle { display: none; }

/* Devise d'affichage (en-tête) : pastille comme la langue */
.hdr-currency select {
  appearance: none; -webkit-appearance: none; cursor: pointer; height: 38px; padding: 0 28px 0 14px;
  border: 1px solid var(--line-3); border-radius: 999px; background-color: rgba(255, 255, 255, 0.6); color: rgba(17, 12, 9, 0.82);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23110c09' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 9px;
  transition: border-color 0.2s;
}
.hdr-currency select:hover { border-color: var(--gold); }

/* Recherche : panneau déroulant sous l'en-tête (suggestions pendant la frappe) */
.site-search { border-top: 1px solid var(--line-2); }
.site-search__inner { padding-block: 14px 20px; }
.search { position: relative; max-width: 680px; margin-inline: auto; }
.search__field {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-3); border-radius: 999px; padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-soft); transition: border-color 0.2s, box-shadow 0.2s;
}
.search__field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 163, 84, 0.2); }
.search__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--ink); padding: 8px 0;
}
.search__input::placeholder { color: #8a847d; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__submit {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex-shrink: 0;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: background 0.2s;
}
.search__submit:hover { background: var(--green-2); }
.search__submit .icon { width: 16px; height: 16px; }
.search__panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line-3); border-radius: 18px; padding: 8px;
  box-shadow: var(--shadow-pop);
}
.search__panel[hidden] { display: none; }
.search__option {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink);
}
.search__option:hover, .search__option[aria-selected="true"] { background: var(--sand-3); color: var(--ink); }
.search__option .cover { width: 34px; }
.search__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search__title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__author { font-size: 12px; color: var(--muted); }
.search__price { font-family: var(--serif); font-size: 16px; color: var(--ink); white-space: nowrap; }
.search__all {
  display: block; margin-top: 4px; padding: 12px 8px 6px; border-top: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink);
}
.search__all[aria-selected="true"] { color: var(--ink); }
.search__empty { padding: 12px 8px; font-size: 13px; color: var(--muted); }

/* Favoris et panier (en-tête) */
.fav-link__count:empty { display: none; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px;
  border: 0; background: var(--ink); color: var(--paper);
  padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.cart-btn:hover { background: var(--green-2); }
.cart-btn__icon { width: 16px; height: 16px; }
.count-pill {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.6;
}
.is-bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Tiroirs (panier + menu mobile) — <dialog> natif */
.drawer {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: var(--ink);
}
.drawer::backdrop { background: rgba(17, 12, 9, 0); transition: background 0.3s; }
.drawer.is-open::backdrop { background: rgba(17, 12, 9, 0.42); }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--bg);
  box-shadow: -24px 0 48px -24px rgba(0, 0, 0, 0.35);
  transform: translateX(100%); transition: transform 0.32s var(--ease);
}
.drawer--left .drawer__panel { right: auto; left: 0; width: min(380px, 92%); transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line-2);
}
.drawer__title { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 16px; }
.drawer__foot { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line-2); background: #fff; }
.drawer__empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 56px 12px; color: var(--muted); }
.drawer__empty .serif { font-size: 24px; color: var(--ink); }

.mobile-nav { display: flex; flex-direction: column; padding-block: 8px; }
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
  font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; color: var(--ink);
}
.mobile-nav a:hover { color: var(--gold-ink); }
.mobile-nav a[aria-current="page"] { color: var(--gold-ink); }
.mobile-nav a > span { font-family: var(--sans); font-size: 16px; color: var(--gold); }
.mobile-nav__secondary { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.mobile-nav__settings { display: flex; flex-wrap: wrap; gap: 10px; }

.cart-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cart-line .cover { width: 52px; flex-shrink: 0; }
.cart-line__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line__title { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); }
.cart-line__author { font-size: 12px; color: var(--muted); }
.cart-line__remove {
  align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none;
  font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 2px;
}
.cart-line__remove:hover { color: var(--danger); }
.cart-line__price { font-family: var(--serif); font-size: 18px; color: var(--ink); white-space: nowrap; }

.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.summary-row--discount { color: var(--gold-ink); font-weight: 600; }
.summary-row--total { font-weight: 600; font-size: 15px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.summary-row--total .serif { font-size: 28px; color: var(--ink); }
.pay-currency { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.pay-currency select { max-width: 62%; }
.summary-note { font-size: 12px; color: var(--muted); text-align: center; }

/* Toasts */
.toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%);
  width: min(calc(100% - 32px), 460px); display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--ink); color: var(--paper);
  font-size: 14px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.3s var(--ease) both;
}
.toast .icon { color: var(--gold-light); }
.toast__text { flex: 1; min-width: 0; }
.toast__action {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 8px 14px;
  background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600;
}
.toast__action:hover { background: #fff; }
.toast.is-leaving { animation: toast-out 0.25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 4. Couvertures & cartes livres ---------- */
/* Couverture générée : la taille du texte suit la largeur (unités cqi). */
.cover {
  position: relative; width: 100%; aspect-ratio: 2 / 3; container-type: inline-size; overflow: hidden;
  border-radius: 3px 8px 8px 3px;
  background: var(--cover-bg, var(--ink)); color: var(--cover-fg, var(--paper));
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.45), inset 4px 0 0 rgba(0, 0, 0, 0.18);
}
.cover__inner {
  position: absolute; inset: 0; padding: 10cqi 9cqi;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6cqi;
}
.cover__label { font-size: 5.4cqi; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.cover__title { font-family: var(--serif); font-size: 14cqi; line-height: 1.05; overflow-wrap: break-word; hyphens: auto; }
.cover--long .cover__title { font-size: 11.5cqi; }
.cover__author { font-size: 6.6cqi; letter-spacing: 0.14em; text-transform: uppercase; }
.cover--img { background: var(--sand-3); }
.cover--img img { width: 100%; height: 100%; object-fit: cover; }
.cover--img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 4px 0 0 rgba(0, 0, 0, 0.18); }

.cover--featured {
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 40px 60px -28px rgba(17, 12, 9, 0.55), inset 6px 0 0 rgba(0, 0, 0, 0.18);
}
.cover--featured .cover__inner { padding: 11.5cqi 9.5cqi; }
.cover--featured .cover__title { font-size: 13.7cqi; }
.cover--featured.cover--long .cover__title { font-size: 11.5cqi; }
.cover--featured .cover__author { font-size: 5.8cqi; letter-spacing: 0.12em; }

.cover--mini { border-radius: 2px 6px 6px 2px; box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.18); }
.cover--mini .cover__inner { padding: 9cqi; }
.cover--mini .cover__title { font-size: 15.6cqi; line-height: 1.1; }
.cover--mini.cover--long .cover__title { font-size: 12.5cqi; }

/* Grille de livres : cartes de 230 px minimum */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 24px; }
/* Accueil et suggestions : 4 cartes par ligne au plus, dernière ligne centrée (ex. 5 meilleures ventes : 4 + 1) */
.book-grid--rows { display: flex; flex-wrap: wrap; justify-content: center; }
.book-grid--rows > .book-card { flex: 0 1 calc((100% - 3 * 24px) / 4); min-width: 0; }
@media (max-width: 1100px) { .book-grid--rows > .book-card { flex-basis: calc((100% - 2 * 24px) / 3); } }
@media (max-width: 760px) { .book-grid--rows > .book-card { flex-basis: calc((100% - 24px) / 2); } }

/* Carte livre : couverture pleine largeur, catégorie et best-seller en pastilles, titre, début de la
   description, prix, puis les boutons empilés (« Voir les détails » et boutons de vente du livre). */
.book-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-3); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-pop); }
.book-card:has(.book-card__link:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.book-card__media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--beige-deep); }
.book-card__media .cover {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 0; box-shadow: none; transition: transform 0.7s var(--ease);
}
.book-card__media .cover--img::after { display: none; }
/* Couverture générée (livre sans image) : titre sous les pastilles de catégorie et de best-seller */
.book-card__media .cover:not(.cover--img) .cover__inner { padding-top: 22%; }
.book-card:hover .book-card__media .cover { transform: scale(1.04); }
.book-card__genre {
  position: absolute; left: 12px; top: 12px; z-index: 1; max-width: calc(100% - 24px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(247, 243, 235, 0.9); color: rgba(17, 12, 9, 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 5px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.book-card__badge {
  position: absolute; right: 12px; top: 12px; z-index: 1;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 5px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.book-card__genre:has(~ .book-card__badge) { max-width: calc(100% - 128px); }
.book-card__genre, .book-card__badge, .product__badge { pointer-events: none; }
.fav-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center; color: #6f6862; box-shadow: var(--shadow-soft); transition: color 0.2s, transform 0.2s;
}
.fav-btn .icon { width: 16px; height: 16px; }
.fav-btn:hover { color: var(--heart); }
.fav-btn[aria-pressed="true"] { color: var(--heart); }
.fav-btn[aria-pressed="true"] .icon path { fill: currentColor; }
.book-card__body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.book-card__title { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.3; }
.book-card__link { color: var(--ink); }
.book-card__link:hover, .book-card:hover .book-card__link { color: var(--gold-deep); }
.book-card__link:focus-visible { outline: none; }
.book-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.book-card__author { margin-top: 4px; font-size: 13px; color: var(--muted); }
.book-card__rating { margin-left: 6px; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
.book-card__desc {
  margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.book-card__price { margin-top: 14px; }
.book-card__actions { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.book-card__actions .btn, .book-card__actions .book-langs__toggle { position: relative; z-index: 2; }
.book-card__actions .btn { width: 100%; min-height: 44px; padding: 0 14px; font-size: 13px; white-space: normal; }
.book-card__actions .cta-group { display: flex; flex-direction: column; gap: 8px; }
.price { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.price--free { color: var(--gold-ink); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 16px; text-align: center; color: var(--muted); }
.empty__title { font-family: var(--serif); font-size: 30px; color: var(--ink); }

/* ---------- 5. Accueil ---------- */
/* En-tête de section centré : sur-titre doré, grand titre, phrase d'accroche */
.section-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1;
  letter-spacing: -0.015em; color: var(--ink); text-wrap: balance;
}
.section-sub { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section-more { display: flex; justify-content: center; margin-top: 40px; }

/* Héros : accroche à gauche, livres mis en avant à droite (console : Accueil) */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, rgba(241, 234, 222, 0.7) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(60px); }
.hero::before { top: -240px; left: 50%; width: 680px; height: 680px; margin-left: -340px; opacity: 0.5; background: radial-gradient(closest-side, var(--gold-soft), transparent); }
.hero::after { right: -80px; bottom: -40px; width: 420px; height: 420px; opacity: 0.28; background: radial-gradient(closest-side, var(--gold), transparent); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-block: 64px 96px;
}
.hero__inner:not(:has(.hero__visual)) { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--line-3); border-radius: 999px; background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-soft);
  font-size: 12.5px; font-weight: 500; color: rgba(17, 12, 9, 0.75);
}
.hero__eyebrow .icon { width: 14px; height: 14px; color: var(--gold-deep); }
.hero__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 76px); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold-deep); }
.hero__lead { max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ctas .btn { min-height: 50px; padding-inline: 28px; }
/* Recherche de l'accueil : champ large, filtres genre et langue du livre, bouton */
.hero-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; width: 100%; max-width: 640px; padding: 8px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper, #fff); box-shadow: 0 8px 24px rgba(17, 12, 9, 0.06); }
.hero-search__field { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.hero-search__field .icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.hero-search__field input { width: 100%; min-height: 50px; padding: 0 14px 0 44px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.hero-search__field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.hero-search__filters { display: flex; flex: 1 1 100%; gap: 8px; order: 3; }
.hero-search__filters[hidden] { display: none; }
.hero-search__filters select { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); font: inherit; font-size: 14px; color: var(--ink); }
.hero-search__filters select[hidden] { display: none; }
.hero-search__submit { min-height: 50px; padding-inline: 24px; border-radius: 12px; }
@media (max-width: 520px) {
  .hero-search__submit { flex: 1 1 100%; order: 4; }
}
.hero__proof { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; font-size: 13px; color: var(--muted); }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof .icon { width: 14px; height: 14px; color: var(--gold-deep); }

/* Livres mis en avant : grande carte (photo 3D ou couverture), petites couvertures flottantes autour */
.hero__visual { position: relative; width: 100%; max-width: 500px; margin-inline: auto; }
.hv-stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  background: radial-gradient(circle at 30% 18%, #fff8e9 0%, transparent 55%), linear-gradient(160deg, #f3e7d1 0%, #e8d1a5 100%);
}
.hv-main { position: absolute; inset: 0; display: grid; place-items: center; padding: 12% 20% 30%; color: inherit; transition: opacity 0.3s ease, transform 0.45s var(--ease); }
.hv-main .cover { width: 100%; max-width: 300px; transform: rotate(-3deg); transition: transform 0.45s var(--ease); }
.hv-main:hover .cover { transform: rotate(-1.5deg) translateY(-6px); }
.hv-main--photo { padding: 0; }
.hv-main--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hv-main--photo:hover img { transform: scale(1.03); }
.hv-label {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft);
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
}
.hv-label__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold-ink); }
.hv-title { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.25; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-title:hover { color: var(--gold-deep); }
.hv-price .price-wrap { gap: 2px 6px; }
.hv-price .price { font-size: 17px; }
.hv-price .price-old { font-size: 12px; }
.hv-go { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--paper); transition: background 0.2s, transform 0.2s; }
.hv-go:hover { background: var(--green-2); color: var(--paper); transform: translateX(2px); }
.hv-go .icon { width: 16px; height: 16px; }
.hero__visual.is-fading .hv-main, .hero__visual.is-fading .hv-label { opacity: 0; transform: translateY(8px); }
.hv-mini {
  position: absolute; z-index: 1; display: block; width: 84px; border-radius: 8px; box-shadow: var(--shadow-pop);
  animation: hv-float 6s ease-in-out infinite; transform: rotate(var(--rot, 0deg));
}
.hv-mini .cover { border-radius: 4px 8px 8px 4px; }
.hv-mini--1 { left: -28px; top: 9%; --rot: -8deg; }
.hv-mini--2 { right: -34px; top: 32%; width: 96px; --rot: 10deg; animation-duration: 5.5s; }
.hv-mini--3 { left: -22px; bottom: 120px; --rot: 6deg; animation-duration: 4.6s; }
@keyframes hv-float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); } }
.hv-dots { position: absolute; top: 18px; right: 18px; z-index: 1; display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.featured__dot {
  position: relative; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(17, 12, 9, 0.25); transition: width 0.3s var(--ease), background 0.3s;
}
.featured__dot::before { content: ""; position: absolute; inset: -10px -4px; }
.featured__dot[aria-current="true"] { width: 20px; background: var(--ink); }

/* Avantages (console : Accueil → points forts du héros) */
.home-trust { padding-block: 88px 8px; }
.trust-grid, .why__grid { display: grid; gap: 22px; list-style: none; }
.trust-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.trust-card, .why__item {
  padding: 28px; border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.trust-card { background: var(--card); }
.trust-card:hover, .why__item:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-pop); }
.trust-card__icon, .why__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--beige-deep); color: var(--gold-deep);
}
.trust-card__icon .icon, .why__icon .icon { width: 20px; height: 20px; }
.trust-card h3, .why__item strong { display: block; margin-top: 20px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.trust-card p, .why__item p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Sélection : meilleures ventes */
.home-selection { padding-block: 88px 96px; }

/* Pourquoi Bookline (console : Accueil) : bande blanche, cartes beige */
.home-why { background: var(--card); padding-block: 96px; }
.why__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why__item { background: var(--bg); }

/* Témoignages à la une : un témoignage à la fois, flèches et points */
.home-testimonials { background: rgba(241, 234, 222, 0.5); padding-block: 96px; }
.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; max-width: 780px; margin-inline: auto;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonial {
  position: relative; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 36px 40px; scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
}
.testimonial::after {
  content: "\201D"; position: absolute; top: 14px; right: 26px; font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--gold-soft);
}
.testimonial .rating__stars { font-size: 15px; }
.testimonial__text { margin: 0; font-family: var(--serif); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: var(--ink); overflow-wrap: break-word; }
.testimonial figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.testimonial__about { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
.testimonials-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.testimonials-nav__dots { display: flex; gap: 6px; }

/* Offre limitée (console : Accueil → Promotion) — retirée quand l'offre est désactivée */
.home-promo { padding-top: 96px; }
.promo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--r-xl); padding: 44px 48px; box-shadow: var(--shadow-soft);
}
.promo__copy { display: flex; flex-direction: column; gap: 12px; }
.promo__title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--ink); }
.promo__code { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--ink-2); }
.code-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 8px 16px;
  background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: 0.1em; font-size: 14px;
}
.code-pill .icon { width: 14px; height: 14px; opacity: 0.75; }
.code-pill:hover { background: var(--green-2); }

/* Journal : derniers articles du blog */
.home-journal { padding-block: 96px 24px; }

/* Newsletter (console : Accueil → Newsletter) : carte sombre, toujours affichée, avec ou sans offre */
.home-newsletter { padding-block: 96px 104px; }
.newsletter-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 88px 32px; border-radius: var(--r-xl); text-align: center; color: var(--paper);
  background:
    radial-gradient(ellipse at top left, rgba(207, 163, 84, 0.22), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(207, 163, 84, 0.14), transparent 55%),
    linear-gradient(135deg, #110c09, #221811);
}
.newsletter-cta .kicker { color: var(--gold-light); }
.newsletter__title {
  max-width: 780px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 48px); line-height: 1.15;
  color: var(--paper); text-wrap: balance;
}
.newsletter-cta__sub { max-width: 560px; font-size: 15px; line-height: 1.65; color: rgba(251, 248, 242, 0.75); }
.promo__form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-cta .promo__form { width: 100%; max-width: 500px; margin-top: 12px; }
.newsletter { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; transition: box-shadow 0.2s; }
.newsletter:focus-within { box-shadow: 0 0 0 3px rgba(207, 163, 84, 0.3); }
.newsletter input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px; font-size: 14px; background: transparent; }
.newsletter .btn { min-height: 46px; padding: 0 24px; font-size: 13px; box-shadow: none; }
.newsletter-cta .newsletter { background: rgba(251, 248, 242, 0.07); border: 1px solid rgba(251, 248, 242, 0.18); }
.newsletter-cta .newsletter input { color: var(--paper); }
.newsletter-cta .newsletter input::placeholder { color: rgba(251, 248, 242, 0.5); }
.newsletter-cta .newsletter .btn { background: var(--gold); color: var(--ink); }
.newsletter-cta .newsletter .btn:hover { background: var(--gold-light); color: var(--ink); }
.newsletter__done { background: #fff; border-radius: 999px; padding: 18px 24px; font-weight: 600; color: var(--ink); }
.newsletter-cta .newsletter__done { background: rgba(251, 248, 242, 0.08); border: 1px solid rgba(251, 248, 242, 0.16); color: var(--gold-light); }
.newsletter__note, .promo__form .field__error { padding-left: 20px; font-size: 13px; }
.newsletter__note { color: var(--muted); }
.newsletter-cta .field__error { color: #f3b4a6; text-align: left; }
.newsletter-cta__or { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: rgba(251, 248, 242, 0.6); }
.newsletter-cta__or::before, .newsletter-cta__or::after { content: ""; width: 40px; height: 1px; background: rgba(251, 248, 242, 0.2); }

/* ---------- 6. Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line-3); background: rgba(241, 234, 222, 0.42); color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 48px; padding-block: 72px 0; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-brand .logo__name { font-size: 28px; color: var(--ink); }
.footer-brand p { max-width: 360px; font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-3); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: rgba(17, 12, 9, 0.78);
}
.footer-social a:hover { border-color: var(--gold); color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col h2 { margin-bottom: 4px; font-family: var(--serif); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(17, 12, 9, 0.85); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.site-footer .gold-divider { width: 100%; margin-top: 56px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  padding-block: 22px 28px; font-size: 12.5px;
}
.footer-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* ---------- 7. Pages intérieures ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg) 0%, rgba(241, 234, 222, 0.6) 100%); border-bottom: 1px solid var(--line-2); }
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 56px 52px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.page-lead { max-width: 640px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.section { padding-block: 56px 88px; }
.section-sm { padding-block: 40px 56px; }
/* En-tête de section aligné à gauche (pages intérieures) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-head .section-title { margin-top: 8px; font-size: clamp(28px, 3.2vw, 40px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-3); background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip__count { margin-left: auto; opacity: 0.6; font-weight: 500; }

/* Boutique : recherche et tri, filtres à gauche, livres à droite */
.shop-bar { position: sticky; top: var(--header-h); z-index: 30; border-bottom: 1px solid var(--line-2); background: rgba(247, 243, 235, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.shop-bar__inner { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.shop-search {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 18px;
  background: #fff; border: 1px solid var(--line-3); border-radius: 999px; transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 163, 84, 0.2); }
.shop-search .icon { color: var(--muted); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.shop-search input::placeholder { color: #8a847d; }
.shop-search input::-webkit-search-cancel-button { cursor: pointer; }
.shop-bar .select { min-height: 48px; }
.shop { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: start; }
.shop__filters { position: sticky; top: calc(var(--header-h) + 100px); display: flex; flex-direction: column; gap: 30px; }
.filter-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.filter-group__title { font-family: var(--serif); font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink); }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list .chip { justify-content: flex-start; width: 100%; border-color: transparent; background: transparent; border-radius: 12px; padding: 9px 14px; font-size: 14px; white-space: normal; text-align: left; }
.filter-list .chip:hover { background: var(--beige-deep); border-color: transparent; }
.filter-list .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills .chip { padding: 7px 14px; font-size: 13px; }
.shop__results { min-width: 0; }
.toolbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.results-count { font-size: 14px; color: var(--muted); }
.results-count strong { color: var(--ink); font-weight: 600; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 6px 4px 12px;
  background: #fff; border: 1px solid var(--line-3); border-radius: 999px; font-size: 13px; color: var(--ink);
}
.active-filter button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sand-3); color: var(--ink); }
.active-filter button:hover { background: var(--sand); }
.active-filter .icon { width: 12px; height: 12px; }

/* Fiche livre : visuel à gauche, informations et achat à droite, description en dessous */
.product-top { padding-top: 28px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; padding-block: 24px 80px; }
.product__visual {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--r-xl); box-shadow: var(--shadow-pop); padding: 12% 18%;
  background: radial-gradient(circle at 30% 18%, #fff8e9 0%, transparent 55%), linear-gradient(160deg, #f3e7d1 0%, #e8d1a5 100%);
}
.product__visual--photo { padding: 0; }
.product__visual .cover { position: relative; width: 100%; max-width: 300px; transform: rotate(-3deg); }
.product__badge {
  position: absolute; left: 18px; top: 18px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.product__info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.product__title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.product__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--muted); }
.product__byline a { font-weight: 600; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-ink); }
.rating__stars { letter-spacing: 2px; color: var(--gold); }
.product__excerpt { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.product__excerpt a { margin-left: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.product__buy { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.product__price { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ink); }
.product__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.product__ctas > .btn, .product__ctas .cta-group { flex: 1 1 100%; }
.product__ctas .cta-group { display: flex; flex-wrap: wrap; gap: 10px; }
.product__ctas .cta-group .btn { flex: 1 1 200px; }
.product__buy .btn { min-height: 52px; font-size: 14px; }
.product__buy .btn .icon { width: 17px; height: 17px; }
.fav-toggle { align-self: flex-start; }
/* Favoris et « Partager » côte à côte sous les boutons d'achat */
.product__extras { display: flex; flex-wrap: wrap; gap: 10px; }
.product__extras .btn { flex: 0 1 auto; padding-inline: 20px; }
@media (max-width: 520px) { .product__extras .btn { flex: 1 1 0; min-width: max-content; padding-inline: 14px; } }
.fav-toggle[aria-pressed="true"] { color: var(--heart); border-color: var(--heart); }
.fav-toggle[aria-pressed="true"] .icon path { fill: currentColor; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px 20px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.perks li { display: flex; align-items: center; gap: 10px; list-style: none; }
.perks .icon { color: var(--gold-deep); }
/* Description complète : bande claire sous la fiche, texte centré dans une colonne lisible */
.product-about { padding-block: 64px 72px; background: rgba(255, 255, 255, 0.55); border-block: 1px solid var(--line-2); }
.product-about__inner { display: flex; flex-direction: column; gap: 28px; max-width: 780px; margin-inline: auto; }
.tab-pill {
  align-self: center; display: inline-flex; padding: 9px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.product__desc { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }
/* Description mise en forme dans la console : paragraphes, sous-titres, listes, citations, liens */
.product__desc > * + * { margin-top: 0.85em; }
.product__desc h3, .product__desc h4 { font-family: var(--serif); font-weight: 500; line-height: 1.25; color: var(--ink); }
.product__desc h3 { font-size: 24px; margin-top: 1.4em; }
.product__desc h4 { font-size: 19px; }
.product__desc ul, .product__desc ol { padding-left: 1.4em; }
.product__desc ul { list-style: disc; }
.product__desc ol { list-style: decimal; }
.product__desc li + li { margin-top: 0.3em; }
.product__desc li::marker { color: var(--gold-deep); }
.product__desc blockquote { padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.15em; }
.product__desc strong, .product__desc b { font-weight: 600; color: var(--ink); }
/* Couleur du texte et surlignage choisis dans la console (palette fixe, contraste AA) */
.product__desc .tc-green { color: #1f6b4a; }
.product__desc .tc-gold { color: #8a672b; }
.product__desc .tc-red { color: #b3261e; }
.product__desc .tc-blue { color: #1f5fa8; }
.product__desc .tc-purple { color: #6b3fa0; }
.product__desc .tc-grey { color: #6b6b6b; }
.product__desc [class^="tc-"] strong, .product__desc [class^="tc-"] b { color: inherit; }
.product__desc mark { padding: 0 2px; border-radius: 3px; background: #fff1a8; color: inherit; }
.product__desc mark.hl-green { background: #d3f0d9; }
.product__desc mark.hl-pink { background: #ffdde4; }
.product__desc mark.hl-blue { background: #d8e8fb; }
.product__desc a { text-decoration: underline; text-underline-offset: 2px; }
.product__desc hr { border: 0; border-top: 1px solid var(--line); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.spec { padding: 14px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.spec dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin-top: 4px; font-size: 15px; font-weight: 600; }
.product-section { padding-block: 72px 8px; }
.product-section:last-child { padding-bottom: 96px; }
.product-section .modules, .product-section .bonuses { max-width: 960px; margin-inline: auto; }

/* Commande */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-soft); }
.panel + .panel { margin-top: 20px; }
.panel__title { margin-bottom: 18px; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); }
[tabindex="-1"]:focus { outline: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field--full { grid-column: 1 / -1; }
.pay-options { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.pay-option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-3); border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pay-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.pay-option small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.pay-option:has(input:checked) { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.demo-note {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 16px;
  background: #fff8ea; border: 1px dashed var(--gold); border-radius: var(--r-md);
  font-size: 13px; line-height: 1.5; color: #5f4718;
}
.demo-note .icon { color: var(--gold-ink); margin-top: 1px; }
.checkout__summary { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.checkout__lines { display: flex; flex-direction: column; }
.checkout__lines .cart-line:first-child { padding-top: 0; }
.promo-form { display: flex; gap: 8px; }
.promo-form .input { flex: 1; min-width: 0; text-transform: uppercase; padding-block: 10px; }
.promo-form .btn { min-height: 44px; padding: 0 16px; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.promo-applied button { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; }
.success { max-width: 680px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--beige-deep); color: var(--gold-deep); }
.success__icon .icon { width: 32px; height: 32px; }
.success .panel { width: 100%; text-align: left; margin-top: 8px; }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Auteurs */
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.author-card {
  display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.author-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 163, 84, 0.25); }
.author-card__head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--cover-bg, var(--ink)); color: var(--cover-fg, var(--paper));
  font-family: var(--serif); font-size: 22px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.author-card__name { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; color: var(--ink); }
.author-card__genre { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.author-card__bio { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.author-books { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.author-book { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.author-book:hover { color: var(--ink); }
.author-book:hover .author-book__title { color: var(--gold-ink); }
.author-book .cover { width: 40px; flex-shrink: 0; }
.author-book__title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.author-book .price { font-size: 17px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-pop); }
.post-card:has(.post-card__link:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.post-visual {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 22px 24px; overflow: hidden;
  background: var(--post-bg, var(--ink)); color: var(--post-fg, var(--paper));
}
.post-visual__mark {
  position: absolute; right: -8px; top: -30px; font-family: var(--serif); font-size: 170px; line-height: 1;
  opacity: 0.16; pointer-events: none;
}
.post-visual__tag {
  position: relative; background: rgba(247, 243, 235, 0.92); color: var(--ink); border-radius: 999px; padding: 6px 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.post-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.post-card__title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; }
.post-card__link { color: var(--ink); }
.post-card__link:hover, .post-card:hover .post-card__link { color: var(--gold-deep); }
.post-card__link:focus-visible { outline: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.post-card .link-more { margin-top: auto; padding-top: 6px; }
.article { max-width: 760px; margin-inline: auto; }
.article .post-visual { aspect-ratio: 3 / 1; border-radius: var(--r-xl); margin-bottom: 36px; }
.article .post-visual__mark { font-size: 230px; top: -46px; right: 12px; }
.prose { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose blockquote { padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); }

/* Aide */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.help-section + .help-section { margin-top: 72px; }
.help-section > .section-title { margin-bottom: 24px; font-size: clamp(28px, 3.2vw, 40px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); list-style: none; }
.step__num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold-deep); }
.step strong { font-size: 16px; font-weight: 600; }
.step p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line-3); border-radius: 16px; padding: 0 22px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--gold-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 22px; font-weight: 400; line-height: 1; color: var(--gold-ink); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal { max-width: 860px; }
.legal .prose { font-size: 15px; }
.legal .prose h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1199px) {
  .main-nav { gap: 24px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 48px 72px; text-align: center; }
  .hero__copy { align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__proof { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .hero__visual { max-width: 440px; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shop__filters { position: static; gap: 16px; }
  .filter-group { flex-direction: row; align-items: center; gap: 12px; }
  .filter-group__title { flex-shrink: 0; min-width: 84px; letter-spacing: 0.2em; }
  .filter-list, .filter-pills {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); padding-block: 2px;
  }
  .filter-list::-webkit-scrollbar, .filter-pills::-webkit-scrollbar { display: none; }
  .filter-list .chip { width: auto; white-space: nowrap; border: 1px solid var(--line-3); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; }
  .filter-list .chip[aria-pressed="true"] { border-color: var(--ink); }
}

@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 12px; }
  .product__visual { position: relative; top: 0; max-width: 460px; width: 100%; margin-inline: auto; }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout__summary { position: static; }
  .hv-mini { display: none; }
}

@media (max-width: 719px) {
  :root { --gutter: 18px; --header-h: 64px; }
  .site-header__inner { gap: 12px; }
  .logo__name { font-size: 23px; }
  .header-actions { gap: 6px; }
  .hdr-currency { display: none; }
  .lang-switch__btn { padding: 0 11px; }

  .section-intro { margin-bottom: 36px; }
  .hero__inner { padding-block: 32px 64px; gap: 40px; }
  .hero__lead { font-size: 16px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hv-label { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .hv-title { font-size: 16px; }
  .home-trust { padding-top: 64px; }
  .home-selection, .home-why, .home-testimonials { padding-block: 64px; }
  .home-promo { padding-top: 64px; }
  .home-journal { padding-top: 64px; }
  .home-newsletter { padding-block: 64px 72px; }
  .newsletter-cta { padding: 56px 20px; border-radius: 26px; }
  .promo { padding: 32px 24px; border-radius: 24px; }
  .testimonial { padding: 28px 24px; }
  .newsletter { flex-direction: column; border-radius: 22px; }
  .newsletter input { padding: 12px 14px; }
  .newsletter__note, .promo__form .field__error { padding-left: 4px; }

  .page-hero__inner { padding-block: 40px 36px; }
  .shop-bar__inner { padding-block: 10px; gap: 8px; }
  .shop-bar .select { max-width: 44%; padding-left: 14px; padding-right: 32px; }
  .panel { padding: 22px 18px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .product__visual:not(.product__visual--photo) { padding: 10% 16%; }
  .product__price { font-size: 34px; }
  .product-about { padding-block: 48px 56px; }
  .help-section + .help-section { margin-top: 56px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 52px; }
}

@media (max-width: 520px) {
  /* Panier de l'en-tête : icône et nombre seulement (le nom accessible reste « Panier (n articles) ») */
  .header-actions { gap: 4px; }
  .cart-btn { padding: 0 12px; gap: 6px; }
  .cart-btn__label { display: none; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .book-grid--rows > .book-card { flex-basis: calc((100% - 12px) / 2); }
  .book-card { border-radius: 16px; }
  .book-card:hover { transform: none; }
  .book-card__body { padding: 12px; }
  .book-card__title { font-size: 15px; }
  .book-card__desc { display: none; }
  .book-card__genre { left: 8px; top: 8px; padding: 4px 8px; font-size: 9px; }
  .book-card__badge { right: 8px; top: 8px; padding: 4px 8px; font-size: 9px; }
  .book-card__genre:has(~ .book-card__badge) { max-width: calc(100% - 92px); }
  .fav-btn { right: 8px; bottom: 8px; width: 32px; height: 32px; }
  .book-card__actions { padding-top: 12px; gap: 6px; }
  .book-card__actions .btn { min-height: 40px; padding: 0 10px; font-size: 12px; }
  .book-card__actions .cta-group { gap: 6px; }
  .price { font-size: 18px; }
  .drawer__head, .drawer__body, .drawer__foot { padding-inline: 18px; }
}

@media (max-width: 380px) {
  .lang-switch__btn .icon { display: none; }
}

/* ---------- 9. Éléments reliés à la console d'administration ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Devise et langue (pied de page, menu mobile) */
.currency-switch { display: inline-flex; align-items: center; gap: 8px; }
.currency-switch select {
  appearance: none; -webkit-appearance: none; cursor: pointer; min-height: 34px; padding: 4px 28px 4px 12px;
  border: 1px solid var(--line-3); border-radius: 999px; background-color: rgba(255, 255, 255, 0.6); color: var(--ink); font-size: 12px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23110c09' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 9px;
}
.currency-switch select:hover { border-color: var(--gold); }
.currency-switch select option { color: var(--ink); }

/* Consentement pour la mesure d'audience */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  max-width: 720px; margin-inline: auto; padding: 16px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line-3);
  box-shadow: var(--shadow-pop); font-size: 14px; color: var(--ink-2);
}
.consent p { flex: 1 1 260px; }
.consent__actions { display: flex; gap: 8px; }

/* Bouton WhatsApp flottant (numéro réglé dans la console) : sous les notifications et le bandeau de consentement.
   Vert WhatsApp légèrement assombri : icône blanche et contour lisibles (contraste ≥ 3:1). */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #1b9d4f; color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.wa-float:hover { background: #158a44; color: #fff; transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.wa-float__icon { width: 30px; height: 30px; }
.has-wa-float .site-footer__bottom { padding-bottom: 88px; }
@media (max-width: 520px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float__icon { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover { transform: none; }
}
@media print { .wa-float { display: none; } }

/* Avis des lecteurs (fiche livre) */
.reviews { display: flex; flex-direction: column; gap: 20px; }
.review-toggle { align-self: center; width: 100%; max-width: 560px; }
.review-toggle__btn { display: flex; width: fit-content; margin-inline: auto; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.review-toggle__btn::-webkit-details-marker { display: none; }
.review-toggle__btn svg { width: 18px; height: 18px; }
.review-toggle[open] .review-toggle__btn { margin-bottom: 12px; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-3); }
.reviews__avg { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); }
.reviews__empty { padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px dashed var(--line-3); color: var(--muted); }
.review { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.review p { font-size: 15px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.review time { display: block; margin-top: 6px; font-size: 12px; }
.review-form, .contact-form { display: flex; flex-direction: column; gap: 16px; }
.review-form textarea, .contact-form textarea { resize: vertical; min-height: 110px; }
.stars-input { border: 0; margin: 0; padding: 0; min-width: 0; }
.stars-input legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.stars-input__row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input__row label { padding: 2px 3px; font-size: 32px; line-height: 1; color: #dccfb8; cursor: pointer; transition: color 0.15s; }
.stars-input__row label:hover, .stars-input__row label:hover ~ label, .stars-input__row input:checked ~ label { color: var(--gold); }
.stars-input__row input:focus-visible + label { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 6px; }
.review-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.review-thanks .icon { width: 28px; height: 28px; color: var(--gold-deep); }
.contact-form { max-width: 860px; }

/* Commande : paiement bientôt disponible */
.pay-soon { display: flex; flex-direction: column; gap: 12px; }
.download-links { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
.download-item { display: flex; flex-direction: column; gap: 6px; }
.download-item .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.download-progress { display: flex; flex-direction: column; gap: 4px; }
.download-progress[hidden] { display: none; }
.download-progress__bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.download-progress__bar span { display: block; height: 100%; width: 0; background: var(--green, #1f3a2e); transition: width 0.15s linear; }
.download-progress__text { font-size: 13px; color: var(--ink-2); }
.download-progress.is-done .download-progress__text { color: var(--green, #1f3a2e); font-weight: 600; }
.download-progress.is-error .download-progress__bar { display: none; }
.download-progress.is-error .download-progress__text { color: #a3352b; }
.pay-soon p { color: var(--ink-2); line-height: 1.65; }
.pay-soon__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-3); color: var(--gold-ink); }
.pay-soon__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.summary-note__icon { display: inline; width: 13px; height: 13px; vertical-align: -2px; }

/* Blog : image envoyée depuis l'admin */
.post-visual--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Accès à la console d'administration (pied de page) */
.footer-admin { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); }
.footer-admin:hover, .footer-admin:focus-visible { color: var(--ink); }
.footer-admin .icon { width: 14px; height: 14px; color: var(--gold-ink); }

/* Sélecteur de langue (en-tête) : pastille « 🌐 FR », liste des langues au clic */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line-3); color: rgba(17, 12, 9, 0.82);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  transition: border-color 0.2s, background 0.2s;
}
.lang-switch__btn .icon { width: 14px; height: 14px; }
.lang-switch__btn:hover, .lang-switch__btn[aria-expanded="true"] { border-color: var(--gold); background: #fff; color: var(--ink); }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 184px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line-3); border-radius: 16px; box-shadow: var(--shadow-pop);
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0;
}
.lang-switch__menu a:hover, .lang-switch__menu a:focus-visible { background: var(--sand-3); color: var(--ink); }
.lang-switch__menu a[aria-current] { font-weight: 600; }
.lang-switch__menu .icon { width: 16px; height: 16px; color: var(--gold-ink); }



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .testimonials { scroll-behavior: auto; }
}

/* ---------- 10. Vente par produit : boutons d'action, prix barré, cours & bonus, Chariow Snap ---------- */
.price-wrap { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.product__buy .price-wrap { gap: 4px 12px; }
.product__buy .price-old { font-size: 18px; }
.badge-bestseller {
  display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; vertical-align: 1px;
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em;
}
/* Boutons de vente : une identité par mode (Chariow doré, WhatsApp vert, gratuit bleu, lien externe encre) */
.cta-btn .icon { width: 16px; height: 16px; }
.cta-btn--chariow { background: linear-gradient(135deg, var(--chariow-a), var(--chariow-b)); color: var(--chariow-ink); border-color: var(--chariow-line); }
.cta-btn--chariow:hover { background: linear-gradient(135deg, #f9d266, #f2b120); color: var(--chariow-ink); box-shadow: 0 12px 30px -12px rgba(239, 168, 16, 0.55); }
.cta-btn--whatsapp { background: var(--wa); color: var(--wa-ink); border-color: var(--wa-line); }
.cta-btn--whatsapp:hover { background: var(--wa-hover); color: var(--wa-ink); box-shadow: 0 12px 30px -12px rgba(37, 211, 102, 0.5); }
.cta-btn--free { background: var(--free); color: #fff; border-color: var(--free); }
.cta-btn--free:hover { background: var(--free-hover); color: #fff; }
.cta-btn--external { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-btn--external:hover { background: var(--green-2); color: var(--paper); }
.btn--soon, .btn--soon[disabled] { background: var(--beige-deep); color: #5f5953; border-color: var(--line-3); opacity: 1; box-shadow: none; }
.product__mockup { width: 100%; height: 100%; object-fit: cover; }
.product__note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.product__note .icon { color: var(--gold-deep); margin-top: 2px; }

.modules { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.module {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-md); box-shadow: var(--shadow-soft);
}
.module__num {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: var(--beige-deep); color: var(--gold-deep); font-family: var(--serif); font-size: 18px;
}
.module__body, .bonus__body { min-width: 0; }
.module__title, .bonus__title { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); overflow-wrap: break-word; }
.module__text, .bonus__text { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; overflow-wrap: break-word; }
.bonuses { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.bonus {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--r-md); box-shadow: var(--shadow-soft);
}
.bonus > .icon { width: 22px; height: 22px; color: var(--gold-deep); margin-top: 1px; }

.snap { padding: 12px; background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-lg); min-width: 0; overflow: hidden; }
.snap__body { min-height: 60px; }
.snap__frame { display: block; width: 100%; min-height: 560px; border: 0; border-radius: 12px; background: #fff; }
.snap__fallback { margin-top: 10px; font-size: 13px; }
.snap__fallback a { font-weight: 600; }
dialog.snap-dialog {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-pop);
}
dialog.snap-dialog::backdrop { background: rgba(17, 12, 9, 0.42); }
.snap-dialog__panel { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.snap-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.snap-dialog__title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--ink); }
.snap-dialog__body { flex: 1; overflow: auto; padding: 16px 18px; min-height: 200px; }
.snap-dialog .snap__fallback { padding: 0 18px 16px; }
/* Aperçu d'un livre : pages du PDF les unes sous les autres */
dialog.preview-dialog { width: min(920px, calc(100% - 32px)); }
.preview-dialog__body { flex: 1; overflow: auto; padding: 16px; min-height: 240px; background: var(--paper-2, #efe9de); display: flex; flex-direction: column; align-items: center; gap: 14px; user-select: none; }
.preview-dialog__page { display: block; width: 100%; max-width: 860px; height: auto; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); }
.preview-dialog__end { font-size: 14px; color: var(--muted); text-align: center; padding: 4px 0 8px; }
.product__preview { width: 100%; gap: 8px; }
.product__preview svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  dialog.snap-dialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .snap-dialog__panel { max-height: 100dvh; }
  .module, .bonus { padding: 14px 16px; gap: 12px; }
}

/* ---------- 11. Plusieurs boutons par livre ---------- */
.cta-group { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }

/* ---------- 12. Avis & témoignages : auteur, badge « Vérifié » ---------- */
.reviewer { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.reviewer__avatar {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; overflow: hidden; border-radius: 50%;
  background: var(--beige-deep); color: var(--gold-deep); font-size: 13px; font-weight: 700;
}
.reviewer__avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer__who { display: flex; flex-direction: column; min-width: 0; }
.reviewer__who strong { font-weight: 600; overflow-wrap: anywhere; }
.reviewer__role { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.verified { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
.verified .icon { width: 13px; height: 13px; }

/* ---------- 13. Langues du livre : « Disponible en », choix de la langue sur la fiche ---------- */
/* Drapeaux emoji absents (Windows : deux lettres) : seul le nom de la langue ou son code est affiché. */
.lang-flag { font-style: normal; line-height: 1; }
.no-flags .lang-flag { display: none; }
.lang-code--alt { display: none; }
.no-flags .lang-code--alt { display: inline; }
.lang-name { unicode-bidi: isolate; }

.book-langs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.book-langs__label { color: var(--muted); }
.book-langs__item { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
/* Séparateur rattaché au nom suivant : il passe à la ligne avec lui. */
.book-langs__item + .book-langs__item::before { content: "·"; margin-right: 2px; color: var(--muted); font-weight: 400; }
.book-langs__toggle {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 8px;
  border: 1px solid var(--line-3); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; cursor: pointer;
}
.book-langs__toggle:hover, .book-langs.is-open .book-langs__toggle { border-color: var(--gold); }
.book-langs__toggle:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.book-langs__chip { display: inline-flex; align-items: center; }
.book-langs__chip .lang-flag { font-size: 14px; }
.book-langs__chip .lang-code { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
.book-langs__more { font-weight: 700; color: var(--gold-ink); }
.book-langs__pop {
  position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); display: none; gap: 6px; min-width: 170px; max-width: min(260px, 80vw);
  padding: 10px 12px; background: #fff; border: 1px solid var(--line-3); border-radius: 12px; box-shadow: var(--shadow-pop);
  font-size: 13px; color: var(--ink);
}
.book-langs__pop > span { display: flex; align-items: center; gap: 6px; }
.book-langs--compact.is-open .book-langs__pop { display: grid; }
@media (hover: hover) { .book-langs--compact:hover .book-langs__pop { display: grid; } }

.product__heading { display: flex; flex-direction: column; gap: 10px; }
.product__subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.book-version { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.book-version__label { padding: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.book-version__options { display: flex; flex-wrap: wrap; gap: 8px; }
.book-version__opt { position: relative; display: inline-flex; }
.book-version__opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.book-version__opt > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px;
  border: 1px solid var(--line-3); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.book-version__opt > span .lang-flag { font-size: 17px; }
.book-version__opt:hover > span { border-color: var(--gold); }
.book-version__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.book-version__opt input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.book-version--single { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.book-version__value { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
/* Langues sous la description (livre en plusieurs langues) : un clic affiche le bouton d'achat de la langue */
.lang-pick {
  display: grid; gap: 12px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line-3); border-radius: var(--r-md); box-shadow: var(--shadow-soft);
}
.lang-pick__label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lang-pick__options { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-pick__opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px;
  border: 1px solid var(--line-3); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lang-pick__opt .lang-flag { font-size: 17px; }
.lang-pick__opt:hover { border-color: var(--gold); }
.lang-pick__opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lang-pick__buy { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.lang-pick__chosen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.lang-pick__lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.lang-pick__price { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink); }
.lang-pick__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pick__ctas .cta-group { flex: 1 1 100%; }
.lang-pick__ctas .btn { flex: 1 1 200px; }
@media (max-width: 520px) {
  .book-version__opt > span { padding: 8px 14px; font-size: 13.5px; }
  .book-langs { font-size: 11.5px; }
  .lang-pick { padding: 16px; }
  .lang-pick__opt { padding: 8px 14px; font-size: 13.5px; }
}

/* ---------- 14. Désinscription de la newsletter ---------- */
.unsubscribe { max-width: 640px; margin-inline: auto; }
.unsubscribe p { color: var(--ink-2); line-height: 1.7; }
.unsubscribe p + p { margin-top: 8px; }
.unsubscribe__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.unsubscribe__done > .icon { width: 40px; height: 40px; margin-bottom: 10px; padding: 8px; border-radius: 50%; background: var(--beige-deep); color: var(--gold-deep); }

/* ---------- 15. Packs : plusieurs livres vendus ensemble ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 28px; }
/* Carte pack : visuel à gauche (image du pack ou couvertures en éventail), informations à droite */
.pack-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); overflow: hidden;
  background: var(--card); border: 1px solid var(--line-3); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s;
}
.pack-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-pop); }
.pack-card:has(.pack-card__link:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.pack-card__media {
  position: relative; min-height: 280px; overflow: hidden;
  background: radial-gradient(circle at 30% 18%, #fff8e9 0%, transparent 55%), linear-gradient(160deg, #f3e7d1 0%, #e8d1a5 100%);
}
.pack-card__badge {
  position: absolute; left: 12px; top: 12px; z-index: 1; pointer-events: none;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 5px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}
.pack-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px; }
.pack-card__title { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; overflow-wrap: break-word; }
.pack-card__link { color: var(--ink); }
.pack-card__link:hover, .pack-card:hover .pack-card__link { color: var(--gold-deep); }
.pack-card__link:focus-visible { outline: none; }
.pack-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pack-card__rating { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.pack-card__desc {
  font-size: 14px; line-height: 1.6; color: var(--muted); overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pack-card__books { display: grid; gap: 4px; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.pack-card__books li { position: relative; padding-left: 18px; list-style: none; overflow-wrap: break-word; }
.pack-card__books li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.pack-card__price { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pack-card__actions { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pack-card__actions .btn { position: relative; z-index: 2; width: 100%; min-height: 44px; padding: 0 14px; font-size: 13px; white-space: normal; }
.pack-save { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold-ink); }

/* Visuel : image du pack, ou jusqu'à 3 couvertures en éventail */
.pack-visual { position: absolute; inset: 0; }
.pack-visual--image img { width: 100%; height: 100%; object-fit: cover; }
.pack-visual--stack .cover { position: absolute; top: 50%; left: 50%; width: 46%; box-shadow: 0 24px 40px -22px rgba(17, 12, 9, 0.55); }
.pack-visual--stack .cover:nth-child(1) { transform: translate(-50%, -50%); z-index: 3; }
.pack-visual--stack .cover:nth-child(2) { transform: translate(-90%, -46%) rotate(-9deg); z-index: 2; }
.pack-visual--stack .cover:nth-child(3) { transform: translate(-10%, -46%) rotate(9deg); z-index: 1; }
.pack-visual--2 .cover:nth-child(1) { transform: translate(-30%, -50%) rotate(5deg); }
.pack-visual--2 .cover:nth-child(2) { transform: translate(-75%, -48%) rotate(-6deg); }
/* Fiche pack : même mise en page que la fiche livre */
.product__visual--pack { padding: 0; }
.product__visual--pack .pack-visual--stack .cover { width: 44%; max-width: none; }
.pack-includes { display: grid; gap: 10px; }
.pack-includes__label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pack-includes__list { display: grid; gap: 8px; }
.pack-includes__list li { list-style: none; }
.pack-includes__list a {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; min-height: 44px;
  background: #fff; border: 1px solid var(--line-3); border-radius: 14px; color: var(--ink); transition: border-color 0.2s;
}
.pack-includes__list a:hover { border-color: var(--gold); }
.pack-includes__cover { width: 40px; flex-shrink: 0; }
.pack-includes__text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; }
.pack-includes__title { font-family: var(--serif); font-size: 16px; line-height: 1.3; overflow-wrap: break-word; }
.pack-includes__price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pack-buy__price { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) {
  .pack-card { grid-template-columns: minmax(0, 1fr); }
  .pack-card__media { min-height: 0; aspect-ratio: 4 / 3; }
  .pack-visual--stack .cover { width: 30%; }
  .pack-card__body { padding: 18px; }
}

/* ---------- 16. Livre gratuit envoyé par e-mail (formulaire) ---------- */
dialog.free-dialog { width: min(480px, calc(100% - 32px)); }
.free-dialog__body { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.free-dialog__intro { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.free-dialog__done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; outline: none; }
.free-dialog__done > .icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--beige-deep); color: var(--gold-deep); }
.free-dialog__done p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.free-files { display: grid; gap: 8px; }
.free-files li { list-style: none; }
.free-files__link { justify-content: flex-start; gap: 10px; min-height: 48px; text-align: left; white-space: normal; }
