/* Study Like a Strategist — site_v6
   Design system: **Stripe** (repris de site_v5, comme demandé)
   Canvas blanc, titres bleu nuit en weight 300, CTA violet, ombres bleutées,
   rayons 4–8 px, sections alternées gris très clair, footer bleu nuit.
   Système de polices local d'abord, aucune dépendance réseau obligatoire. */

@import url("assets/fonts/fonts.css");

:root {
  --white: #ffffff;
  --surface: #f6f9fc;
  --heading: #061b31;
  --label: #273951;
  --body: #64748d;
  --purple: #533afd;
  --purple-hover: #4434d4;
  --purple-deep: #2e2b8c;
  --border: #e5edf5;
  --border-purple: #b9b9f9;
  --dark: #1c1e54;
  --dark-2: #0d253d;
  --accent: #c4401a;        /* l'orange des couvertures, en touche */
  --green-text: #108c3d;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-card: rgba(50, 50, 93, .25) 0 30px 45px -30px, rgba(0, 0, 0, .1) 0 18px 36px -18px;
  --shadow-soft: rgba(23, 23, 23, .08) 0 15px 35px 0;
  --shadow-ambient: rgba(23, 23, 23, .06) 0 3px 6px;

  --radius: 6px;
  --radius-sm: 4px;
  --max: 1080px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-hover); }
::selection { background: rgba(83, 58, 253, .16); color: var(--heading); }

.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 3rem, 720px); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.15rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--heading); font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 .9rem;
}
.eyebrow.on-ink { color: #b9b9f9; }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--body); font-weight: 350; max-width: 46ch; }
.small { font-size: .88rem; line-height: 1.55; }
.mono { font-family: var(--mono); font-size: .79rem; letter-spacing: .01em; }
.accent { color: var(--accent); }
hr { border: 0; height: 1px; background: var(--border); margin: 0; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 1.4rem; min-height: 66px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: .84rem; font-weight: 400; letter-spacing: -.005em;
  color: var(--label); white-space: nowrap; line-height: 1.25;
}
.brand b { font-weight: 500; color: var(--heading); }
.logo { width: 26px; height: 26px; flex: 0 0 auto; }
nav.main { display: none; gap: 1.5rem; margin-left: auto; }
nav.main a { font-size: .87rem; color: var(--label); }
nav.main a:hover { color: var(--purple); }
.bar .btn { margin-left: auto; }
@media (min-width: 900px) {
  nav.main { display: flex; }
  .bar .btn { margin-left: .4rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  font: inherit; font-size: .95rem; font-weight: 400;
  cursor: pointer; white-space: nowrap;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
  box-shadow: rgba(50, 50, 93, .11) 0 13px 27px -5px, rgba(0, 0, 0, .08) 0 8px 16px -8px;
}
.btn:hover { background: var(--purple-hover); border-color: var(--purple-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .price { font-size: .88rem; opacity: .82; padding-left: .55rem; border-left: 1px solid rgba(255,255,255,.35); }
.btn-ghost { background: #fff; color: var(--purple); border-color: var(--border-purple); box-shadow: none; }
.btn-ghost:hover { background: rgba(83, 58, 253, .05); color: var(--purple-hover); border-color: var(--border-purple); }
.btn-sm { padding: .5rem .85rem; font-size: .87rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }

.badge {
  display: inline-block; background: rgba(83, 58, 253, .08); color: var(--purple);
  font-size: .68rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: var(--radius-sm); vertical-align: 2px;
}

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(2.6rem, 5vw, 4.2rem) 0; border-top: 1px solid var(--border); }
.sec:nth-of-type(even) { background: var(--surface); }
.sec-head { display: grid; grid-template-columns: 190px 1fr; gap: 0 3rem; align-items: start; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.sec-num {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple); padding-top: .45rem;
}
.sec-head h2 + .lead { margin-top: 1rem; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: .6rem; }
  .sec-num { padding-top: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); background: var(--white); }
.hero-grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .45em; }
.hero .lead { max-width: 44ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.6rem;
  font-size: .82rem; color: var(--body); padding: 0; list-style: none;
}
.hero-meta span { display: flex; align-items: center; gap: .4rem; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-purple); }

/* three covers, gently fanned, Stripe shadows */
.covers { display: flex; align-items: flex-end; justify-content: center; padding: 1.4rem 0 0; }
.cover-shot {
  border-radius: 3px 6px 6px 3px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.cover-shot.guide { width: 43%; order: 2; z-index: 3; transform: rotate(-1.2deg); }
.cover-shot.workbook { width: 39%; order: 1; z-index: 2; margin-left: -5%; transform: translateY(-.6rem) rotate(-6deg); }
.cover-shot.masterclass { width: 43%; order: 3; z-index: 1; margin-left: -4%; transform: rotate(4deg); }
.stamp { margin-top: 1.2rem; font-size: .78rem; color: var(--body); text-align: center; }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); margin-top: 2.6rem; }
.strip-in {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem;
  padding: 1rem 0; font-size: .82rem; color: var(--body); list-style: none;
}
.strip-in span { display: flex; align-items: center; gap: .45rem; }
.strip-in span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-purple); }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.story p:first-child { font-size: 1.05rem; color: var(--label); }
.pull {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 300; line-height: 1.35;
  color: var(--heading); border-left: 2px solid var(--purple); padding-left: 1.2rem; margin: 1.8rem 0 0;
}
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---------- ledger (tableau des emprunts) ---------- */
.ledger {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-ambient); overflow: hidden;
}
.ledger th {
  font-size: .71rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--body); text-align: left; padding: .9rem 1.1rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.ledger td { padding: 1.05rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--body); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover td { background: rgba(83, 58, 253, .022); }
.ledger .name { display: block; font-size: 1rem; font-weight: 500; color: var(--heading); margin-bottom: .2rem; }
.ledger .src { font-family: var(--mono); font-size: .74rem; color: var(--body); }
.ledger .lives { display: block; margin-top: .3rem; font-size: .68rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--purple); }
.ledger td:last-child { width: 168px; }
.ledger.plain td:last-child, .ledger.plain th:last-child { width: auto; }
@media (max-width: 860px) {
  .ledger { border-radius: var(--radius); }
  .ledger thead { display: none; }
  .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td { border: 0; padding: .2rem 0; }
  .ledger td[data-l]::before {
    content: attr(data-l) " · "; font-size: .68rem; font-weight: 500; letter-spacing: .07em;
    text-transform: uppercase; color: var(--purple);
  }
}

/* ---------- products ---------- */
.books { display: grid; gap: 1rem; }
.book {
  display: grid; grid-template-columns: 1fr 186px; gap: 0 2rem; align-items: start;
  grid-template-areas: "num shot" "body shot";
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.7rem 1.8rem; box-shadow: var(--shadow-ambient);
  transition: box-shadow .18s ease, transform .18s ease;
}
.book:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.book .num { grid-area: num; }
.book .body { grid-area: body; }
.book .shot { grid-area: shot; }
.book .num {
  font-family: var(--mono); font-size: .74rem; color: var(--purple); letter-spacing: .06em;
  display: block; margin-bottom: .5rem;
}
.book .kicker {
  font-size: .78rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--body); margin: 0 0 .5rem;
}
.book h3 { margin: 0 0 .5rem; }
.book p { font-size: .95rem; max-width: 56ch; }
.book ul { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .86rem; }
.book ul li { position: relative; padding-left: .95rem; }
.book ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--border-purple); }
.book .foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.book .shot { width: 100%; border-radius: 3px 6px 6px 3px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
@media (max-width: 780px) {
  .book { grid-template-columns: 1fr; grid-template-areas: "shot" "num" "body"; gap: .9rem; padding: 1.3rem; }
  .book .shot { width: 118px; }
}

/* ---------- finder ---------- */
.finder {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.8rem; box-shadow: var(--shadow-ambient); max-width: 760px;
}
.finder .q, .finder .result { display: grid; gap: .55rem; }
.finder .q .mono { color: var(--body); margin: 0 0 .4rem; font-size: .78rem; }
.finder button[data-opt] {
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font: inherit; font-size: .95rem; color: var(--label); cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.finder button[data-opt]:hover { border-color: var(--border-purple); background: rgba(83, 58, 253, .04); color: var(--heading); transform: translateX(2px); }
.finder .result h3 { margin: 0 0 .4rem; }
.finder .result p { font-size: .95rem; margin-bottom: 1rem; }
.finder .result .foot { display: flex; gap: .6rem; align-items: center; }

/* ---------- inside ---------- */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: start; }
.fig { margin: 0; }
.fig img { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-ambient); }
.fig figcaption { margin-top: .6rem; font-size: .8rem; line-height: 1.45; color: var(--body); }
@media (max-width: 900px) { .figs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .figs { grid-template-columns: 1fr; } }

/* ---------- prices ---------- */
.prices { display: grid; grid-template-columns: 1fr 1.05fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow-ambient); }
.prices .col { padding: 1.9rem; }
.prices .col + .col { border-left: 1px solid var(--border); }
.p-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.p-line .amt { font-weight: 500; color: var(--heading); }
.p-line.total { border-bottom: 0; border-top: 1px solid var(--heading); margin-top: .4rem; padding-top: 1rem; color: var(--heading); }
.set-col { background: var(--dark); color: rgba(255,255,255,.76); }
.set-col h3 { color: #fff; }
.set-col .big { font-size: 3.4rem; line-height: 1; color: #fff; font-weight: 300; letter-spacing: -.03em; margin: .4rem 0 .2rem; }
.set-col .strike { font-size: .84rem; text-decoration: line-through; color: rgba(255,255,255,.45); }
.set-col ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; font-size: .93rem; }
.set-col ul li { padding: .45rem 0 .45rem 1.1rem; position: relative; border-top: 1px solid rgba(255,255,255,.14); }
.set-col ul li:first-child { border-top: 0; }
.set-col ul li::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: #b9b9f9; }
.set-col .btn { width: 100%; background: #fff; border-color: #fff; color: var(--purple-deep); box-shadow: none; }
.set-col .btn:hover { background: #b9b9f9; border-color: #b9b9f9; color: var(--dark-2); }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } .prices .col + .col { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- refusals ---------- */
.refusals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ref { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.25rem; box-shadow: var(--shadow-ambient); }
.ref .mark { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: .45rem; }
.ref p { font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .refusals { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: 1rem; font-weight: 500; color: var(--heading); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--purple); font-size: 1.15rem; line-height: 1; font-weight: 300; flex: 0 0 auto; }
details[open] summary::after { content: "–"; }
summary:hover { color: var(--purple); }
details p { margin: .7rem 0 0; font-size: .94rem; max-width: 70ch; }

/* ---------- about / colophon ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.colophon { font-size: .82rem; line-height: 1.8; color: var(--body); border-top: 1px solid var(--border); padding-top: 1rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- footer ---------- */
footer.site { background: var(--dark-2); color: rgba(255, 255, 255, .62); padding: 3rem 0 2.2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
footer.site .brand { color: #fff; }
footer.site .brand b { color: #fff; }
footer.site a { color: rgba(255,255,255,.82); display: block; padding: .28rem 0; font-size: .88rem; }
footer.site a:hover { color: #b9b9f9; }
.foot-col h4 { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 .7rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.4rem; padding-top: 1.2rem; font-size: .78rem; color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- book pages ---------- */
.book-hero { padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--border); }
.bh-grid { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.bh-cover { width: 100%; border-radius: 3px 6px 6px 3px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.bh-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 1.1rem 0 0; font-size: .82rem; color: var(--body); }
.bh-meta span { display: flex; align-items: center; gap: .4rem; }
.bh-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-purple); }
@media (max-width: 900px) { .bh-grid { grid-template-columns: 1fr; gap: 1.6rem; } .bh-cover { max-width: 220px; } }

.toc { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2.5rem; font-size: .93rem; }
.toc li { padding: .55rem 0; border-bottom: 1px solid var(--border); break-inside: avoid; display: flex; gap: .8rem; }
.toc .n { font-family: var(--mono); font-size: .74rem; color: var(--purple); min-width: 22px; padding-top: .18rem; }
@media (max-width: 900px) { .toc { columns: 1; } }

.buy-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.buy-bar .p { font-size: 1.35rem; color: var(--heading); font-weight: 300; }

.notice {
  background: rgba(83, 58, 253, .045); border: 1px solid var(--border-purple);
  border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .92rem; color: var(--label);
}
.notice strong { color: var(--heading); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  :root { --max: 100%; }
  .hero .lead, .lead { max-width: none; }
  .covers { padding-top: .8rem; gap: 6px; }
  .cover-shot { width: 32% !important; margin-left: 0 !important; }
  .cover-shot.guide, .cover-shot.masterclass { transform: rotate(-1deg) !important; }
  .cover-shot.workbook { transform: translateY(-.4rem) rotate(2deg) !important; }
  .strip-in { font-size: .74rem; gap: .3rem .8rem; }
  .hero-meta { font-size: .78rem; }
  .book .shot { width: 108px; }
  .prices .col { padding: 1.3rem; }
  .finder { padding: 1.2rem; }
  .set-col .big { font-size: 2.8rem; }
}

/* ---------- print ---------- */
@media print {
  header.site, footer.site, .buy-bar, .cta-row, .strip { display: none; }
  body { background: #fff; }
  .sec:nth-of-type(even) { background: #fff; }
}

/* les grilles écrites en style inline doivent s'empiler sur mobile */
@media (max-width: 800px) {
  [style*="grid-template-columns:1fr 1fr"], [style*="grid-template-columns:1fr 1.35fr"],
  [style*="grid-template-columns:1.1fr .9fr"], [style*="grid-template-columns:.9fr 1.1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 1.4rem !important; }
}

/* ---------- photographies libres de droit ---------- */
.photo-sec { padding: 0 0 clamp(2rem, 4vw, 3rem); background: var(--white); }
.photo-fig { margin: 0; }
.photo-band {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%;
  border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}
.photo-fig figcaption { margin-top: .65rem; font-size: .79rem; color: var(--body); }
.photo-small {
  width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-ambient);
  margin-bottom: 1.2rem;
}
@media (max-width: 640px) { .photo-band { aspect-ratio: 4 / 3; } .photo-small { max-width: 200px; } }

/* ---------- barre d'achat collante (mobile) ---------- */
.mobile-buy {
  display: none;
}
@media (max-width: 760px) {
  .mobile-buy {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--border);
    box-shadow: rgba(50, 50, 93, .18) 0 -12px 30px -18px;
    backdrop-filter: saturate(180%) blur(10px);
  }
  .mobile-buy .mb-label { font-size: .76rem; color: var(--body); line-height: 1.25; max-width: 11rem; }
  .mobile-buy .btn { padding: .6rem .9rem; font-size: .9rem; }
  body.has-mobile-buy footer.site { padding-bottom: 5.2rem; }
}

/* ---------- assistant (chat) ---------- */
.chat-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple); color: #fff; border: 1px solid var(--purple);
  box-shadow: rgba(50,50,93,.28) 0 18px 30px -12px, rgba(0,0,0,.14) 0 8px 16px -8px;
  cursor: pointer; transition: transform .16s ease, background .16s ease;
}
.chat-fab:hover { background: var(--purple-hover); transform: translateY(-2px); }
.chat-fab.hidden { display: none; }
@media (max-width: 760px) { .chat-fab { bottom: 4.6rem; } }

.chat-panel {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 71;
  width: min(360px, calc(100vw - 2rem)); max-height: min(560px, calc(100vh - 2rem));
  display: none; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: rgba(50,50,93,.28) 0 30px 60px -24px, rgba(0,0,0,.12) 0 18px 36px -18px;
}
.chat-panel.open { display: flex; }
@media (max-width: 760px) { .chat-panel { bottom: 4.4rem; max-height: min(70vh, 520px); } }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--heading); background: var(--surface);
}
.chat-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--body); cursor: pointer; padding: 0 .2rem; }
.chat-close:hover { color: var(--heading); }

.chat-body { padding: .9rem 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; flex: 1 1 auto; }
.msg { font-size: .88rem; line-height: 1.45; padding: .55rem .75rem; border-radius: 10px; max-width: 92%; }
.msg.bot { background: var(--surface); color: var(--label); align-self: flex-start; border: 1px solid var(--border); }
.msg.me { background: var(--purple); color: #fff; align-self: flex-end; }
.msg.typing { color: var(--body); letter-spacing: .1em; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.chips button {
  font: inherit; font-size: .78rem; padding: .3rem .6rem; cursor: pointer;
  background: #fff; color: var(--purple); border: 1px solid var(--border-purple); border-radius: 99px;
}
.chips button:hover { background: rgba(83,58,253,.06); }

.chat-form { display: flex; gap: .4rem; padding: .7rem .8rem; border-top: 1px solid var(--border); }
.chat-form input {
  flex: 1 1 auto; font: inherit; font-size: .88rem; padding: .5rem .65rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--label);
}
.chat-form input:focus { outline: 2px solid var(--border-purple); outline-offset: 1px; }
.chat-form button { background: var(--purple); color: #fff; border: 1px solid var(--purple); border-radius: var(--radius-sm); width: 38px; cursor: pointer; }
.chat-form button:hover { background: var(--purple-hover); }
.chat-note { margin: 0; padding: 0 .9rem .7rem; font-size: .68rem; color: var(--body); }

/* ---------- formulaire de code ---------- */
.code-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.code-form input {
  flex: 1 1 240px; font: inherit; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--heading);
}
.code-form input:focus { outline: 2px solid var(--border-purple); outline-offset: 1px; }
.code-msg { margin-top: .9rem; font-size: .92rem; }
.code-msg.ok { color: var(--heading); }
.code-msg.err { color: #b42318; }
.code-msg a { font-weight: 500; }

/* ---------- paiement USDT ---------- */
.pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pay-box { margin-top: 1.6rem; padding: 1.4rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.pay-box .amount { font-size: 2.2rem; font-weight: 300; color: var(--heading); margin: 0; letter-spacing: -.02em; }
.pay-box .addr { font-family: var(--mono); font-size: .84rem; word-break: break-all; color: var(--heading); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; margin: 0; }
.pay-box .code-msg { margin-top: .9rem; }
.pay-box .code-msg a { display: inline-block; margin-right: .6rem; }

/* ---------- avis clients ---------- */
.reviews { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: start; }
.rev-list { display: grid; gap: 1rem; }
.rev-empty { background: #fff; border: 1px dashed var(--border); border-radius: 8px; padding: 1.4rem; color: var(--body); font-size: .92rem; }
.rev-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow-ambient); }
.rev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; }
.rev-name { font-weight: 500; color: var(--heading); font-size: .95rem; }
.rev-stars-view { color: #f5a524; letter-spacing: .1em; font-size: .9rem; }
.rev-book { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.rev-text { font-size: .93rem; margin: .4rem 0 0; color: var(--label); }
.rev-date { font-size: .74rem; color: var(--body); margin-top: .5rem; }
.rev-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.3rem; box-shadow: var(--shadow-ambient); display: grid; gap: .6rem; }
.rev-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rev-form input:not([type=hidden]), .rev-form select, .rev-form textarea {
  font: inherit; font-size: .9rem; padding: .6rem .7rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--label); background: #fff; width: 100%;
}
.rev-form textarea { resize: vertical; min-height: 96px; }
.rev-form input:focus, .rev-form select:focus, .rev-form textarea:focus { outline: 2px solid var(--border-purple); outline-offset: 1px; }
.rev-stars { display: flex; gap: .15rem; }
.rev-stars button { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--border); cursor: pointer; padding: 0 .1rem; }
.rev-stars button.on { color: #f5a524; }
.rev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rev-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } .rev-row { grid-template-columns: 1fr; } }

/* ---------- paiement : QR et étapes ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 210px; gap: 1.6rem; align-items: start; }
.qr { text-align: center; }
.qr canvas { width: 190px; height: 190px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px; }
.steps { margin: 1rem 0; padding-left: 1.1rem; font-size: .93rem; color: var(--label); }
.steps li { margin-bottom: .45rem; }
.check-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.2rem; }
.check-row input { flex: 1 1 260px; font: inherit; font-size: .86rem; font-family: var(--mono); padding: .55rem .7rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--label); }
@media (max-width: 700px) { .pay-grid { grid-template-columns: 1fr; } .qr { order: -1; } }

/* ---------- page de paiement simplifiée ---------- */
.pay-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.6rem; box-shadow: var(--shadow-soft); }
.step-label { font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--purple); margin: 0 0 .7rem; }
.pay-card .pick { margin-bottom: 1.2rem; }
.mini-faq { margin-top: 1.8rem; }
.mini-faq details { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.mini-faq summary { font-size: .95rem; }
@media (max-width: 700px) { .pay-card { padding: 1.1rem; } }
