/* Polices hébergées sur le site (licence SIL OFL, voir assets/fonts) : aucune requête vers Google. */
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/assets/fonts/literata-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/assets/fonts/literata-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Dilam B' — feuille de style du site public */

:root {
  --nuit: #16130F;         /* ebooks Lamine Diabaté : le noir de ses couvertures */
  --nuit-2: #221E18;
  --ivoire: #F2ECE1;
  --coton: #F4F5F1;        /* fond */
  --blanc: #FFFFFF;
  --banco: #0D3B2E;        /* vert profond : grandes surfaces */
  --banco-2: #165140;
  --action: #127A4B;       /* boutons d'action */
  --action-d: #0E6640;
  --encre: #13201A;        /* texte */
  --gris: #5B655F;         /* texte secondaire */
  --trait: #DCDFD8;        /* séparateurs */
  --mangue: #D9771F;       /* promos uniquement */
  --cover-bg: #E6E9E3;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 6px;
  --r-m: 12px;
  --gutter: 16px;
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--coton);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blanc); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Bandeau de promotion : rouge et défilant ── */
.notice {
  background: #C21F1F;
  color: #fff;
  font-size: 14px; font-weight: 600;
  overflow: hidden; white-space: nowrap;
  padding: 9px 0;
}
.notice-track { display: inline-flex; width: max-content; }
.notice-item { padding: 0 28px; position: relative; }
.notice-item::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: no-preference) {
  .notice-track { animation: marquee 28s linear infinite; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* ── En-tête ── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 245, 241, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--trait);
}
.top-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: 12px; color: var(--gris); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 50%;
  cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(19, 32, 26, .06); }
.icon-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }
.cart-count {
  position: absolute; top: 5px; right: 3px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px;
  background: var(--action); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center;
}

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-d); }
.btn-secondary { background: transparent; border-color: var(--encre); color: var(--encre); }
.btn-secondary:hover { background: rgba(19, 32, 26, .05); }
.btn-light { background: #fff; color: var(--banco); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-block { width: 100%; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }

/* ── Accueil : héros ── */
.hero {
  background: var(--banco);
  color: #fff;
  padding: 36px 0 0;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(32px, 9vw, 54px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.08;
  max-width: 15ch;
}
.hero-lead { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.82); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* L'étagère : l'élément signature */
.shelf { position: relative; margin-top: 38px; }
.shelf-row {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 0 var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.shelf-book {
  flex: 0 0 auto;
  width: 30%; max-width: 150px;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  box-shadow: 0 -2px 0 rgba(0,0,0,.08) inset;
  text-decoration: none;
}
.shelf-book:nth-child(2) { width: 33%; max-width: 165px; }
.shelf-book:nth-child(n+4) { display: none; }
.shelf-plank { height: 14px; background: #08291F; border-top: 3px solid #1C5A47; }
@media (min-width: 640px) {
  .shelf-book:nth-child(n+4) { display: block; }
  .shelf-book { width: 18%; }
  .shelf-book:nth-child(2) { width: 19%; }
}
@media (prefers-reduced-motion: no-preference) {
  .shelf-book { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .shelf-book:nth-child(2) { animation-delay: .08s; }
  .shelf-book:nth-child(3) { animation-delay: .16s; }
  .shelf-book:nth-child(4) { animation-delay: .24s; }
  .shelf-book:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ── Garanties ── */
.facts { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.facts-list { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: 1fr; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.fact:last-child { border-bottom: 0; }
.fact svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: var(--action); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.fact strong { display: block; font-weight: 600; font-size: 16px; }
.fact span { color: var(--gris); font-size: 14.5px; }
@media (min-width: 760px) {
  .facts-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .fact { border-bottom: 0; }
}

/* ── Sections ── */
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 26px; letter-spacing: -.01em; }
.section-head a { font-size: 15px; font-weight: 600; color: var(--action); text-decoration: none; white-space: nowrap; }
.section-intro { color: var(--gris); margin: -8px 0 16px; max-width: 46ch; }

/* Objectifs : une liste, pas des cartes */
.goals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.goal a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 2px; border-bottom: 1px solid var(--trait);
  text-decoration: none;
}
.goal-txt { flex: 1; }
.goal-name { font-family: var(--serif); font-size: 19px; display: block; }
.goal-sub { color: var(--gris); font-size: 14px; }
.goal-n { color: var(--gris); font-size: 14px; font-variant-numeric: tabular-nums; }
.goal svg { width: 18px; height: 18px; fill: none; stroke: var(--gris); stroke-width: 1.8; flex: 0 0 18px; }
.goal a:hover .goal-name { text-decoration: underline; text-underline-offset: 3px; }

/* Rangées défilantes */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px var(--gutter) 10px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none;
  contain: paint; /* sinon, sur téléphone, le contenu défilant élargit toute la page */
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wide { grid-auto-columns: 64%; }
@media (min-width: 640px) { .rail { grid-auto-columns: 23%; } .rail-wide { grid-auto-columns: 31%; } }

/* ── Couvertures ── */
.cv {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cover-bg);
  border-radius: var(--r-s);
}
.cv img { position: absolute; }
/* Recadrage sur le livre : on écarte le logo, l'étiquette de prix et le bandeau du bas du visuel d'origine (400×600). */
.cv-crop img { width: 125%; max-width: none; left: -12.5%; top: -62.5%; }
.cv-full img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Nouveaux visuels (livre seul sur fond blanc) : carré plein, centré sur le livre. */
.cv-sq { background: #fff; }
.cv-sq img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pdp-cover.clean { background: #fff; border: 1px solid var(--trait); padding: 0; overflow: hidden; }
.pdp-cover.clean img { display: block; width: 100%; height: auto; max-height: none; margin: 0 auto; border-radius: 0; }
.cv-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 14px; font-family: var(--serif); font-size: 16px; color: var(--encre);
}
.cv-tag {
  position: absolute; left: 8px; top: 8px;
  background: var(--blanc); color: var(--encre);
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.cv-tag.promo { background: var(--mangue); color: #fff; }

/* ── Carte livre ── */
.card { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.card-body { padding-top: 10px; }
.card-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-author { color: var(--gris); font-size: 13.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { margin-top: 6px; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price .now.is-promo { color: var(--mangue); }
.price .was { color: var(--gris); font-weight: 400; font-size: 14px; text-decoration: line-through; }
.card.oos .cv img { opacity: .5; }
.cv-tag.oos { background: #B3261E; color: #fff; }
.cv-tag.pdf { background: var(--banco); color: #fff; z-index: 3; font-size: 14px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; left: 10px; top: 10px; box-shadow: 0 2px 6px rgba(13,59,46,.25); }
.oos-flag { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: #B3261E; color: #fff; font-size: 13px; font-weight: 700; }
.oos-note { color: var(--gris); font-size: 13.5px; margin-top: 4px; }

/* ── Comment ça marche ── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.step { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--trait); }
.step::before {
  content: counter(s);
  font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--action);
}
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.step p { color: var(--gris); font-size: 15px; margin-top: 2px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ── FAQ ── */
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 16px 30px 16px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 22px;
  width: 9px; height: 9px; border-right: 1.8px solid var(--gris); border-bottom: 1.8px solid var(--gris);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq details p { color: var(--gris); padding: 0 0 16px; max-width: 60ch; }

/* ── Appel final ── */
.help {
  margin: 40px 0 0; padding: 28px 22px;
  background: var(--banco); color: #fff; border-radius: var(--r-m);
}
.help h2 { font-size: 24px; }
.help p { color: rgba(255,255,255,.82); margin: 8px 0 18px; max-width: 40ch; }

/* ── Catalogue ── */
.cat-head { padding: 24px 0 8px; }
.cat-head h1 { font-size: 30px; letter-spacing: -.01em; }
.cat-head p { color: var(--gris); margin-top: 6px; max-width: 52ch; }
.filters {
  position: sticky; top: 64px; z-index: 20;
  background: var(--coton);
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--trait);
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px;
  padding: 0 14px; height: 46px;
}
.search svg { width: 19px; height: 19px; fill: none; stroke: var(--gris); stroke-width: 1.8; flex: 0 0 19px; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; width: 100%; color: var(--encre); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 10px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc);
  font-size: 14.5px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.count-line { color: var(--gris); font-size: 14px; padding: 14px 0 4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding: 8px 0 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
.empty { padding: 40px 0; color: var(--gris); }

/* ── Fiche livre ── */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 4px; color: var(--gris); text-decoration: none; font-size: 15px; min-height: 40px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pdp { display: grid; gap: 22px; padding-bottom: 8px; }
.pdp-cover { background: var(--cover-bg); border-radius: var(--r-m); padding: 18px; display: flex; justify-content: center; }
.pdp-cover img { max-height: 380px; width: auto; border-radius: 4px; }
.pdp h1 { font-size: 28px; letter-spacing: -.01em; }
.pdp-author { color: var(--gris); margin-top: 6px; font-size: 16px; }
.pdp .price { font-size: 22px; margin-top: 14px; }
.pdp .price .was { font-size: 16px; }
.pdp-actions { display: grid; gap: 10px; margin-top: 18px; }
.pdp-facts { list-style: none; margin: 18px 0 0; padding: 0; color: var(--gris); font-size: 14.5px; }
.pdp-facts li { padding: 6px 0 6px 22px; position: relative; }
.pdp-facts li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 5px; border-left: 1.8px solid var(--action); border-bottom: 1.8px solid var(--action); transform: rotate(-45deg); }
.pdp-desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--trait); }
.pdp-desc h2 { font-size: 21px; margin-bottom: 10px; }
.pdp-desc .txt { white-space: pre-line; font-size: 16.5px; line-height: 1.65; max-width: 62ch; }
@media (min-width: 820px) {
  .pdp { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; padding-top: 10px; }
  .pdp-cover img { max-height: 520px; }
}

/* ── Barre d'achat fixe ── */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--blanc); border-top: 1px solid var(--trait);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.buybar-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar-price { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.buybar .btn { min-height: 46px; }
body.has-buybar .foot { padding-bottom: 90px; }

/* ── Pied de page ── */
.foot { background: var(--encre); color: rgba(244,245,241,.8); margin-top: 48px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 36px; }
.foot-name { font-family: var(--serif); font-size: 22px; color: #fff; }
.foot-line { margin-top: 8px; font-size: 15px; }
.foot-line a { color: #fff; }
.foot-small { margin-top: 20px; font-size: 13px; color: rgba(244,245,241,.55); }

/* ── Feuilles (panier, commande) ── */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(13, 25, 20, .45); }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh;
  background: var(--coton); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) .sheet-panel { animation: up .28s cubic-bezier(.2,.7,.2,1); }
  @keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 20px; border-bottom: 1px solid var(--trait); }
.sheet-head h2 { font-size: 22px; }
.sheet-body { overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }

.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.line .cv { border-radius: 4px; }
.line-title { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; }
.line-price { color: var(--gris); font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--trait); border-radius: 999px; background: var(--blanc); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty span { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

.offer { margin: 16px 0 4px; padding: 14px 16px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-m); }
.offer strong { display: block; font-size: 15.5px; }
.offer p { color: var(--gris); font-size: 14px; margin-top: 2px; }
.offer.done { border-color: var(--action); }
.offer .rail { grid-auto-columns: 30%; margin-top: 12px; padding-bottom: 4px; }
.mini { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; }
.mini .card-title { font-size: 13.5px; }
.mini .add { color: var(--action); font-weight: 600; font-size: 13.5px; margin-top: 4px; display: block; }

.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; font-size: 17px; }
.total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.total-note { color: var(--gris); font-size: 13.5px; }

.form { display: grid; gap: 12px; margin-top: 16px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--gris); }
.field input {
  width: 100%; height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--encre);
  background: var(--blanc); border: 1px solid #C9CEC6; border-radius: 10px;
}
.field input:focus { outline: 2px solid var(--action); outline-offset: 0; border-color: var(--action); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field-help { color: var(--gris); font-size: 13px; margin-top: 4px; }
.err { color: #B3261E; font-size: 13.5px; margin-top: 4px; }
.form-note { color: var(--gris); font-size: 13.5px; text-align: center; }

.order-book { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px 0 4px; }

.done-box { text-align: center; padding: 26px 4px 8px; }
.done-box h3 { font-size: 22px; }
.done-box p { color: var(--gris); margin: 8px auto 18px; max-width: 34ch; }

.empty-cart { padding: 26px 0 8px; text-align: center; color: var(--gris); }
.empty-cart .btn { margin-top: 16px; }

/* ── Divers ── */
.loading { padding: 80px var(--gutter); text-align: center; color: var(--gris); }
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--encre); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 14.5px; max-width: calc(100% - 32px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-buybar .toast { bottom: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Zones de livraison et récapitulatif ── */
.zones { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.zones legend { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.zone {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center;
  background: var(--blanc); border: 1px solid #C9CEC6; border-radius: 10px;
  padding: 12px 14px; cursor: pointer;
}
.zone input { width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.zone:has(input:checked) { border-color: var(--action); box-shadow: 0 0 0 1px var(--action) inset; }
.zone-name { display: block; font-weight: 600; font-size: 15.5px; }
.zone-sub { display: block; color: var(--gris); font-size: 13px; line-height: 1.35; }
.zone-fee { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }
.zone-fee s { color: var(--gris); font-weight: 400; margin-right: 4px; }
.sum { margin-top: 16px; padding: 14px 16px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-m); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row .free { color: var(--action); font-weight: 600; }
.sum-total { border-top: 1px solid var(--trait); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.sum-total strong { font-size: 20px; }

/* Ebooks de Lamine Diabaté (accueil) */
.ebooks { padding: 34px 0 6px; }
.ebooks-head h2 { font-size: 25px; }
.ebooks-head p { color: var(--gris); margin-top: 6px; max-width: 52ch; }
.ebooks-list { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .ebooks-list { grid-template-columns: repeat(2, 1fr); } }
.ebook { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r-m); background: var(--banco); color: #fff; text-decoration: none; }
.ebook:hover { background: #0F4535; }
.ebook-cv img { width: 92px; aspect-ratio: 720 / 1018; object-fit: cover; border-radius: 3px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.ebook-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ebook-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.ebook-line { font-size: 14.5px; line-height: 1.4; color: rgba(255,255,255,.78); }
.ebook-price { font-weight: 700; font-size: 16px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ebook-price span { font-weight: 400; color: rgba(255,255,255,.7); font-size: 14px; }
.ebook-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14.5px; color: #9FD8B9; }
.ebook-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Liens légaux du pied de page */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; }
.foot-links a { color: inherit; }

/* Pages de texte (conditions, confidentialité) */
.legal { max-width: 680px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.legal h1 { font-size: 30px; line-height: 1.15; }
.legal .legal-date { color: var(--gris); font-size: 14px; margin-top: 8px; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.legal a { color: var(--action); }
.legal .back { display: inline-block; margin-bottom: 18px; font-size: 15px; }

/* Fil d'Ariane : retour à l'accueil et à la catégorie */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 10px 0 2px; font-size: 15px; color: var(--gris); }
.crumbs a { color: var(--action); font-weight: 600; text-decoration: none; padding: 9px 2px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs-sep { color: #A3ABA6; }
.crumbs [aria-current] { color: var(--gris); }
.top-back { font-size: 14.5px; font-weight: 600; color: var(--action); text-decoration: none; padding: 10px 0; }
.top-back:hover { text-decoration: underline; }

/* Ebook mis en avant sur l'accueil */
.ebook-feat { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; margin-top: 16px; padding: 18px; border-radius: var(--r-m); background: var(--banco); color: #fff; text-decoration: none; }
.ebook-feat:hover { background: #0F4535; }
.ebook-feat-cv img { display: block; width: 112px; height: auto; aspect-ratio: 720 / 1018; object-fit: cover; border-radius: 3px; box-shadow: 0 14px 28px -12px rgba(0,0,0,.7); }
.ebook-feat-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ebook-feat-sur { font-size: 13.5px; color: #9FD8B9; font-weight: 600; }
.ebook-feat-title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.ebook-feat-line { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.82); }
.ebook-feat-price { font-weight: 700; font-size: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ebook-feat-price span { font-weight: 400; font-size: 14px; color: rgba(255,255,255,.72); }
.ebook-feat-btn { grid-column: 1 / -1; margin-top: 8px; align-self: flex-start; pointer-events: none; }
@media (max-width: 480px) {
  .ebook-feat { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px; }
  .ebook-feat-cv img { width: 96px; }
  .ebook-feat-title { font-size: 21px; }
  .ebook-feat-txt { display: contents; }
  .ebook-feat-cv { grid-row: 1 / span 3; }
  .ebook-feat-title, .ebook-feat-line, .ebook-feat-price { grid-column: 2; }
  .ebook-feat-btn { grid-column: 1 / -1; width: 100%; }
}
@media (min-width: 820px) {
  .ebook-feat { grid-template-columns: 170px 1fr; gap: 28px; padding: 26px 28px; align-items: center; }
  .ebook-feat-cv img { width: 170px; }
  .ebook-feat-title { font-size: 30px; }
}
.ebook-feat + .ebooks-list { margin-top: 12px; }

/* Encart ebook sur la fiche d'un livre papier */
.pdp-promo { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; margin-top: 18px; padding: 14px; border: 1px solid var(--trait); border-radius: var(--r-m); background: var(--blanc); color: var(--encre); text-decoration: none; }
.pdp-promo:hover { border-color: var(--action); }
.pdp-promo img { width: 56px; height: auto; aspect-ratio: 720 / 1018; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 14px -8px rgba(19,32,26,.6); }
.pdp-promo-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pdp-promo-txt strong { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.3; }
.pdp-promo-txt > span { font-size: 14.5px; line-height: 1.45; color: var(--gris); }
.pdp-promo-price { font-weight: 700; color: var(--encre) !important; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pdp-promo-go { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--action) !important; }
.pdp-promo-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Encart de l'accueil avec bannière : l'image en haut, le texte dessous (côte à côte sur ordinateur) */
.ebook-feat.has-ban { grid-template-columns: 1fr; padding: 0; overflow: hidden; gap: 0; }
.ebook-feat.has-ban .ebook-feat-ban img { display: block; width: 100%; height: auto; }
.ebook-feat.has-ban .ebook-feat-txt { display: flex; padding: 18px; }
.ebook-feat.has-ban .ebook-feat-btn { width: 100%; }
@media (min-width: 820px) {
  .ebook-feat.has-ban { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .ebook-feat.has-ban .ebook-feat-ban img { height: 100%; object-fit: cover; }
  .ebook-feat.has-ban .ebook-feat-txt { padding: 28px 32px; }
  .ebook-feat.has-ban .ebook-feat-btn { width: auto; }
}


/* ═════════════ Refonte visuelle (octobre 2026) ═════════════ */

/* Haut de page : texte à gauche, étagère à droite sur ordinateur */
.hero-in { max-width: var(--maxw); margin: 0 auto; }
.hero-txt { padding: 0 var(--gutter); }
.hero .shelf-row { max-width: none; }
@media (min-width: 960px) {
  .hero { padding-top: 0; }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 48px; align-items: end; }
  .hero-txt { padding: 72px var(--gutter) 76px; align-self: center; }
  .hero h1 { font-size: 56px; }
  .hero .shelf { margin-top: 0; padding-top: 56px; }
  .hero .shelf-row { padding: 0 var(--gutter) 0 12px; gap: 18px; justify-content: center; }
  .hero .shelf-book, .hero .shelf-book:nth-child(2) { width: auto; max-width: 168px; flex: 1 1 0; }
  .hero .shelf-book:nth-child(n+4) { display: none; }
  .hero .shelf-book:nth-child(2) { max-width: 196px; }
  .hero .shelf-plank { margin-right: var(--gutter); }
}

/* Rangées qui défilent seules */
.rail.is-auto { scroll-snap-type: none; }
.rail.is-auto > * { scroll-snap-align: none; }
@media (min-width: 640px) {
  .rail.is-auto { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
}

/* Ebooks Lamine Diabaté : l'univers noir et ivoire de ses couvertures */
.ebooks { background: var(--nuit); color: var(--ivoire); padding: 44px 0 48px; margin-top: 0; }
.ebooks + .section { padding-top: 40px; }
.ebooks .section-head { margin-bottom: 6px; }
.ebooks-head h2 { color: var(--ivoire); font-size: 27px; }
.ebooks .section-head a { color: var(--ivoire); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242,236,225,.4); }
.ebooks-intro { color: rgba(242,236,225,.68); max-width: 52ch; margin-bottom: 20px; }
.ebook-feat, .ebook { background: var(--nuit-2); border: 1px solid rgba(242,236,225,.09); color: var(--ivoire); }
.ebook-feat:hover, .ebook:hover { background: #2A251E; }
.ebook-feat-line, .ebook-line { color: rgba(242,236,225,.74); }
.ebook-feat-price span, .ebook-price span { color: rgba(242,236,225,.6); }
.ebook-go { color: var(--ivoire); }
.ebook-feat-btn { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.ebooks-rail { grid-auto-columns: 86%; margin-top: 12px; }
@media (min-width: 640px) { .ebooks-rail { grid-auto-columns: 46%; } }
@media (min-width: 960px) { .ebooks-rail { grid-auto-columns: 32%; } }
.ebooks-page { margin-top: 0; min-height: 60vh; }
.ebooks-page .crumbs a, .ebooks-page .crumbs span { color: var(--ivoire); }
.ebooks-page .cat-head h1 { color: var(--ivoire); }
.ebooks-page .cat-head p { color: rgba(242,236,225,.68); }
.ebooks-page .ebooks-list { margin-top: 22px; }

/* Encart de la collection sur la fiche d'un livre papier */
.pdp-promo { background: var(--nuit); border-color: var(--nuit); color: var(--ivoire); }
.pdp-promo:hover { border-color: var(--nuit); background: var(--nuit-2); }
.pdp-promo-txt > span { color: rgba(242,236,225,.72); }
.pdp-promo-price { color: var(--ivoire) !important; }
.pdp-promo-go { color: var(--ivoire) !important; }

/* Description d'un livre : paragraphes resserrés, repliée au-delà de quelques lignes */
.pdp-desc .txt { white-space: normal; }
.pdp-desc .txt p { margin: 0 0 10px; }
.pdp-desc .txt.is-clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.desc-more { margin-top: 6px; padding: 8px 0; border: 0; background: none; color: var(--action); font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* Moyens de paiement à la livraison (récapitulatif) */
.sum-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: var(--gris); }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border: 1px solid var(--trait); border-radius: 6px; background: var(--blanc); color: var(--encre); font-weight: 600; font-size: 12.5px; }
.pay-chip img { width: 16px; height: 16px; border-radius: 50%; }

/* Message bref : en haut, il ne cache plus les boutons */
.toast { bottom: auto; top: 76px; transform: translate(-50%, -12px); }
.toast.show { transform: translate(-50%, 0); }
body.has-buybar .toast { bottom: auto; }

/* Pied de page */
.foot { background: var(--encre); }
.foot-grid { display: grid; gap: 28px; }
.foot-col h2 { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: rgba(244,245,241,.55); margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: rgba(244,245,241,.9); text-decoration: none; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(244,245,241,.12); }
.foot-pay .pay-chip { background: #fff; border-color: #fff; }
.foot-pay .pay-chip img { width: auto; height: 16px; border-radius: 0; }
.foot-pay .pay-chip img[src$="wave.png"], .foot-pay .pay-chip img[src$="mtn.png"] { width: 16px; border-radius: 50%; }
.foot-pay .pay-chip img[src$="mtn.png"] { border-radius: 3px; }
.foot-pay .pay-logo img { height: 14px; }
.foot-pay .pay-logo img[src$="mastercard.svg"] { height: 18px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }

/* Couvertures noires sur fond sombre : un liseré clair et une ombre portée pour qu'elles ne se fondent pas dans le fond */
.ebook-feat, .ebook { background: #26211B; }
.ebook-feat:hover, .ebook:hover { background: #2E2821; }
.ebook-cv img, .ebook-feat-cv img, .pdp-promo img { box-shadow: 0 0 0 1px rgba(242,236,225,.22), 0 16px 30px -12px rgba(0,0,0,.95); }

/* Ebooks Lamine Diabaté : fond ivoire, pour que les couvertures noires ressortent (choix de Lamine, option B) */
html .ebooks { background: var(--ivoire); color: var(--nuit); }
html .ebooks-head h2, html .ebooks-page .cat-head h1 { color: var(--nuit); }
html .ebooks .section-head a, html .ebooks-page .crumbs a, html .ebooks-page .crumbs span { color: var(--nuit); text-decoration-color: rgba(22,19,15,.35); }
html .ebooks-intro, html .ebooks-page .cat-head p { color: rgba(22,19,15,.68); }
html .ebook-feat, html .ebook { background: #fff; border-color: rgba(22,19,15,.1); color: var(--nuit); }
html .ebook-feat:hover, html .ebook:hover { background: #FBF8F3; }
html .ebook-feat-line, html .ebook-line { color: rgba(22,19,15,.7); }
html .ebook-feat-price span, html .ebook-price span { color: rgba(22,19,15,.55); }
html .ebook-go { color: var(--nuit); }
html .ebook-feat-btn { background: var(--nuit); color: var(--ivoire); border-color: var(--nuit); }
html .ebook-cv img, html .ebook-feat-cv img, html .pdp-promo img { box-shadow: 0 12px 24px -12px rgba(22,19,15,.7); }
html .pdp-promo { background: var(--ivoire); border-color: #E2D8C7; color: var(--nuit); }
html .pdp-promo:hover { background: #EDE5D7; border-color: #E2D8C7; }
html .pdp-promo-txt > span { color: rgba(22,19,15,.68); }
html .pdp-promo-price, html .pdp-promo-go { color: var(--nuit) !important; }

/* Gros bouton « Découvrir le guide » sur chaque carte d'ebook, comme sur l'ebook mis en avant */
.ebook { grid-template-columns: 92px 1fr; align-items: start; }
.ebooks-rail .ebook { grid-template-rows: 1fr auto; }
.ebook-feat + .ebooks-rail { margin-top: 14px; }
.rail-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
.rail-dots[hidden] { display: none; }
.rail-dots button { width: 26px; height: 26px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.rail-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(22,19,15,.22); transition: width .25s ease, background-color .25s ease; }
.rail-dots button[aria-current="true"]::before { width: 20px; background: var(--nuit); }
.rail-dots button:focus-visible { outline: 2px solid var(--nuit); outline-offset: 1px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .rail-dots button::before { transition: none; } }
.ebook-btn { grid-column: 1 / -1; align-self: end; width: 100%; margin-top: 4px; min-height: 48px; background: var(--nuit); color: var(--ivoire); border-color: var(--nuit); pointer-events: none; }

/* Étagère « À la une » : une rangée de livres qui défile sur la planche */
.shelf-label { padding: 0 var(--gutter); margin-bottom: 12px; font-family: var(--serif); font-size: 18px; color: rgba(255,255,255,.88); }
.shelf-rail { overflow-x: auto; scrollbar-width: none; contain: paint; justify-content: flex-start !important; }
.shelf-rail::-webkit-scrollbar { display: none; }
.shelf-rail .shelf-book, .shelf-rail .shelf-book:nth-child(2), .shelf-rail .shelf-book:nth-child(n+4) { display: block; flex: 0 0 auto; width: 31%; max-width: 150px; }
.shelf-rail.is-auto { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
@media (min-width: 640px) { .shelf-rail .shelf-book, .shelf-rail .shelf-book:nth-child(2), .shelf-rail .shelf-book:nth-child(n+4) { width: 150px; } }
@media (min-width: 960px) {
  .hero .shelf-label { padding-left: 12px; }
  .hero .shelf-rail { padding-right: var(--gutter); }
  .hero .shelf-rail .shelf-book, .hero .shelf-rail .shelf-book:nth-child(2), .hero .shelf-rail .shelf-book:nth-child(n+4) { width: 160px; max-width: none; flex: 0 0 auto; }
}

/* ── Rubrique PDF ── */
.pdf-format { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--action); border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.pdf-save { color: var(--gris); font-size: 14.5px; margin-top: 4px; }
.pdf-cover { padding: 0; background: transparent; }
.pdf-cover > .cv { width: 100%; max-width: 380px; margin: 0 auto; }
/* Pack sans image : les couvertures de ses livres, en éventail. */
.pdf-stack { background: var(--cover-bg); }
.pdf-stack > .cv { position: absolute; width: 58%; top: 50%; left: 50%; box-shadow: 0 10px 22px -12px rgba(19,32,26,.55); border: 1px solid rgba(19,32,26,.06); }
.pdf-stack.n1 > .cv { transform: translate(-50%, -50%); }
.pdf-stack.n2 > .cv:nth-child(1) { transform: translate(-72%, -50%) rotate(-6deg); }
.pdf-stack.n2 > .cv:nth-child(2) { transform: translate(-28%, -48%) rotate(5deg); }
.pdf-stack.n3 > .cv:nth-child(1) { transform: translate(-82%, -50%) rotate(-8deg); }
.pdf-stack.n3 > .cv:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.pdf-stack.n3 > .cv:nth-child(3) { transform: translate(-18%, -50%) rotate(8deg); }
.pdf-learn { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 62ch; }
.pdf-learn li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.55; }
.pdf-learn li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 10px; height: 5px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.pdf-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pdf-members a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--encre); padding: 8px; border: 1px solid var(--trait); border-radius: var(--r-m); background: var(--blanc); }
.pdf-members a:hover { border-color: var(--action); }
.pdf-members strong { display: block; font-size: 15.5px; }
.pdf-members span span { color: var(--gris); font-size: 14px; }
.pdf-cover .cv img { max-height: none; border-radius: 0; }
.pdf-cover .cv-sq img, .pdf-cover .cv-full img { width: 100%; height: 100%; }

/* ── Descriptions mises en forme (éditeur de l'administration) ── */
.rich { font-size: 16.5px; line-height: 1.65; max-width: 66ch; white-space: normal; overflow-wrap: anywhere; }
.rich > * + * { margin-top: .75em; }
.rich h1, .rich h2, .rich h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; margin-top: 1.2em; }
.rich > :first-child { margin-top: 0; }
.rich h1 { font-size: 26px; } .rich h2 { font-size: 22px; } .rich h3 { font-size: 19px; }
.rich blockquote { margin-left: 0; padding-left: 14px; border-left: 3px solid var(--trait); font-style: italic; }
.rich ol, .rich ul { padding-left: 1.4em; margin-bottom: 0; }
.rich li + li { margin-top: .3em; }
.rich li[data-list="bullet"] { list-style-type: disc; }
.rich li[data-list="ordered"] { list-style-type: decimal; }
.rich a { color: var(--action); text-decoration: underline; text-underline-offset: 2px; }
.rich img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.rich iframe.ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.rich .ql-align-center { text-align: center; } .rich .ql-align-right { text-align: right; } .rich .ql-align-justify { text-align: justify; }
.rich .ql-align-center img, .rich .ql-align-center iframe { margin-left: auto; margin-right: auto; }
.rich .ql-size-small { font-size: .8em; } .rich .ql-size-large { font-size: 1.35em; } .rich .ql-size-huge { font-size: 1.9em; line-height: 1.25; }
.rich .ql-font-literata { font-family: var(--serif); } .rich .ql-font-onest { font-family: var(--sans); }
.rich .ql-font-playfair { font-family: "Playfair Display", Georgia, serif; } .rich .ql-font-montserrat { font-family: Montserrat, var(--sans); } .rich .ql-font-lora { font-family: Lora, Georgia, serif; }
.rich .ql-indent-1 { padding-left: 1.5em; } .rich .ql-indent-2 { padding-left: 3em; } .rich .ql-indent-3 { padding-left: 4.5em; }
.rich.is-clamped { max-height: 18em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.rich video.ql-mp4 { display: block; width: 100%; max-height: 80vh; border-radius: 8px; background: #000; }
.about .about-lead { font-size: 18.5px; margin-top: 12px; color: var(--encre); }
.about .about-cta { margin-top: 28px; }
.about .about-cta .btn { color: #fff; text-decoration: none; }
/* Aperçu des PDF : quelques pages marquées EXTRAIT */
.pdf-prev { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 640px) { .pdf-prev { grid-auto-columns: 24%; } }
.pdf-prev-b { scroll-snap-align: start; padding: 0; border: 1px solid var(--trait); border-radius: 6px; background: #fff; overflow: hidden; cursor: zoom-in; }
.pdf-prev-b img { display: block; width: 100%; height: auto; }
.pdf-prev-hint { color: var(--gris); font-size: 14px; margin-top: 8px; }
.pzoom { position: fixed; inset: 0; z-index: 200; background: rgba(13,25,20,.92); display: flex; align-items: center; justify-content: center; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); }
.pzoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: #fff; }
.pzoom-x { position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--encre); font-size: 26px; cursor: pointer; }
