/* ═════════════════════════════════════════════════════════════
   AfriSwap — site public · système de design
   Charte : vert AfriSwap (#1e6b3c) + or (accent) + rouge (promos),
   un clin d'œil discret aux couleurs de la Guinée.
   Mode sombre automatique, mouvements désactivés si l'appareil
   le demande (prefers-reduced-motion).
   ═════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --surface-3: #ebe8de;
  --ink: #0f1a14;
  --ink-2: #344239;
  --muted: #637167;
  --line: #e6e2d8;
  --line-2: #d6d1c4;

  --primary: #1e6b3c;
  --primary-press: #175630;
  --primary-ink: #1a5f35;
  --primary-50: #ecf6f0;
  --primary-100: #d6ecdf;
  --mint: #4caf76;
  --deep: #0b2a19;
  --deep-2: #0f3621;

  --sun: #f2b31b;
  --sun-ink: #8a5f00;
  --sun-50: #fff6dc;
  --clay: #d9452f;
  --clay-50: #fdece8;

  --shadow-sm: 0 1px 2px rgba(15, 36, 23, .06), 0 1px 1px rgba(15, 36, 23, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 36, 23, .22), 0 2px 6px rgba(15, 36, 23, .05);
  --shadow-lg: 0 30px 70px -24px rgba(11, 42, 25, .38), 0 8px 20px -8px rgba(11, 42, 25, .14);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --hdr-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09100c;
    --surface: #111a15;
    --surface-2: #16211b;
    --surface-3: #1d2a22;
    --ink: #ebf2ed;
    --ink-2: #c4d1c8;
    --muted: #94a49a;
    --line: #213029;
    --line-2: #2c3d34;

    --primary: #23804a;
    --primary-press: #1e6b3c;
    --primary-ink: #74d39b;
    --primary-50: #13261b;
    --primary-100: #183222;
    --deep: #071a10;
    --deep-2: #0b2416;

    --sun-ink: #ffd166;
    --sun-50: #2a2210;
    --clay: #ff6b55;
    --clay-50: #2d1612;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--sun); color: #1b1300; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide, [hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ─── Barre de progression de lecture ─── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--mint), var(--sun)); }

/* ─── En-tête ─── */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.hdr.solid, .hdr.always {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--line);
}
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; flex: 0 0 auto; transition: transform .6s var(--ease); }
.logo-mark img { width: 30px; height: 30px; }
.logo:hover .logo-mark { transform: rotate(-180deg); }
.logo b { color: var(--primary-ink); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--primary-ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; }
.burger .ic { width: 22px; height: 22px; }

.mnav { position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49; background: var(--bg); padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.mnav.open { opacity: 1; transform: none; visibility: visible; }
.mnav a.mlink { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mnav .store-row { margin-top: 22px; }

@media (max-width: 880px) {
  .nav, .hdr-cta .btn-hdr { display: none; }
  .burger { display: grid; }
  .hdr-cta { gap: 8px; }
}
body.menu-open { overflow: hidden; }
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hdr-in { gap: 12px; }
  .hdr-cta .btn-primary { padding: 0 14px; }
  .hdr-cta .btn-primary .ic { display: none; }
  .logo { font-size: 19px; gap: 8px; }
}

/* ─── Boutons ─── */
.btn {
  --bg-btn: var(--primary); --fg-btn: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn);
  font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn-primary { --bg-btn: var(--primary); }
.btn-primary:hover { --bg-btn: var(--primary-press); }
.btn-sun { --bg-btn: var(--sun); --fg-btn: #1b1300; }
.btn-dark { --bg-btn: var(--ink); --fg-btn: var(--bg); }
.btn-ghost { --bg-btn: transparent; --fg-btn: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { --bg-btn: var(--surface); border-color: var(--ink-2); }
.btn-light { --bg-btn: #fff; --fg-btn: var(--deep); }
.btn-glass { --bg-btn: rgba(255, 255, 255, .1); --fg-btn: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-glass:hover { --bg-btn: rgba(255, 255, 255, .18); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Boutons « store » */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px;
  border-radius: 16px; background: #0c0f0d; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); background: #000; }
.store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: .75; font-weight: 500; letter-spacing: .02em; }
.store strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-family: var(--font-display); }
.store.is-me { box-shadow: 0 0 0 3px var(--sun); }

/* ─── Petits éléments ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #ce1126; }
.flag i:nth-child(2) { background: #fcd116; }
.flag i:nth-child(3) { background: #009460; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag .ic { width: 14px; height: 14px; }
.tag-green { background: var(--primary-50); color: var(--primary-ink); border-color: var(--primary-100); }
.tag-sun { background: var(--sun-50); color: var(--sun-ink); border-color: color-mix(in srgb, var(--sun) 35%, transparent); }
.tag-clay { background: var(--clay-50); color: var(--clay); border-color: color-mix(in srgb, var(--clay) 30%, transparent); }

/* ─── Sections ─── */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head .h2 { margin-top: 14px; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h2 em { font-style: normal; color: var(--primary-ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin-top: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); padding: 10px 0; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(5px); }
@media (max-width: 720px) { .section { padding: 76px 0; } .sec-head { margin-bottom: 30px; } }

/* ─── Héros ─── */
.hero { position: relative; overflow: hidden; padding: 40px 0 90px; margin-top: calc(var(--hdr-h) * -1); padding-top: calc(var(--hdr-h) + 56px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 26px 26px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s var(--ease) infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: radial-gradient(circle, #8fd6aa, transparent 65%); top: -120px; right: -80px; }
.blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #ffd56b, transparent 65%); bottom: -140px; left: -100px; opacity: .45; animation-duration: 22s; }
.blob.b3 { width: 300px; height: 300px; background: radial-gradient(circle, #4caf76, transparent 65%); top: 40%; left: 40%; opacity: .25; animation-duration: 26s; }
@media (prefers-color-scheme: dark) {
  .blob { opacity: .22; }
  .blob.b2 { opacity: .16; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(30px, -20px, 0) scale(.96); }
}

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.045em; margin: 22px 0 0; }
.hero h1 .hl { position: relative; color: var(--primary-ink); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .2em; z-index: -1;
  background: var(--sun); border-radius: 6px; opacity: .55;
  transform: scaleX(0); transform-origin: 0 50%; animation: underline 1s var(--ease) 1.1s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { max-width: 540px; margin-top: 24px; font-size: clamp(1.08rem, 1.7vw, 1.25rem); }
.hero .lead b { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 34px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--primary-ink); width: 18px; height: 18px; }
.mm { display: inline-flex; gap: 6px; }
.mm i { font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; }
.mm .om { background: #ff7900; color: #fff; }
.mm .mtn { background: #ffcb05; color: #1b1300; }

/* Découpage du titre en mots (anime l'arrivée) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordUp { to { transform: none; } }

/* Arrivée du héros */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Téléphone */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #1c2620, #070b09); box-shadow: var(--shadow-lg), inset 0 0 0 2px #2d3a32;
  transform: rotate(-4deg); animation: phoneIn 1.2s var(--ease) .3s both;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(-10deg) scale(.94); } }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f6f8f6; color: #131a15; }
.scr-top { position: absolute; inset: 0 0 auto 0; z-index: 2; padding: 52px 14px 10px; background: linear-gradient(#f6f8f6 78%, rgba(246, 248, 246, 0)); }
.scr-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.scr-title .dot { width: 30px; height: 30px; border-radius: 50%; background: #e8f5ee; display: grid; place-items: center; color: #1e6b3c; }
.scr-title .dot .ic { width: 15px; height: 15px; }
.scr-search { margin-top: 10px; height: 34px; border-radius: 12px; background: #fff; border: 1px solid #e6eae7; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #8e968f; font-size: 12px; }
.scr-search .ic { width: 14px; height: 14px; }
.scr-chips { display: flex; gap: 6px; margin-top: 10px; }
.scr-chips span { font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e6eae7; white-space: nowrap; }
.scr-chips span:first-child { background: #1e6b3c; color: #fff; border-color: #1e6b3c; }
.scr-feed { position: absolute; inset: 0; padding: 150px 12px 0; overflow: hidden; }
.scr-track { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; animation: feedUp 38s linear infinite; }
.scr-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.scr-card .im { aspect-ratio: 1; background: #e9edea; position: relative; }
.scr-card .im img { width: 100%; height: 100%; object-fit: cover; }
.scr-card .im .pr { position: absolute; top: 6px; left: 6px; background: #d92d20; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.scr-card .tx { padding: 7px 8px 9px; }
.scr-card .n { font-size: 10.5px; font-weight: 600; line-height: 1.25; height: 2.5em; overflow: hidden; }
.scr-card .p { font-size: 11.5px; font-weight: 800; color: #1e6b3c; margin-top: 3px; }
.scr-card.ph .im { background: linear-gradient(135deg, #dcefe3, #f4f7f5); }
.scr-card.ph .n { background: #eef1ef; border-radius: 4px; height: 10px; width: 80%; }
.scr-card.ph .p { background: #dcefe3; border-radius: 4px; height: 10px; width: 50%; }
@keyframes feedUp { to { transform: translateY(-50%); } }
.scr-tab { position: absolute; inset: auto 0 0 0; z-index: 2; height: 64px; background: rgba(255, 255, 255, .94); border-top: 1px solid #e6eae7; display: flex; justify-content: space-around; align-items: center; padding-bottom: 8px; color: #8e968f; }
.scr-tab .ic { width: 20px; height: 20px; }
.scr-tab .on { color: #1e6b3c; }

.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.3; color: var(--ink-2);
  opacity: 0; animation: floatIn .9s var(--ease-spring) forwards, bob 6s ease-in-out infinite;
  animation-delay: var(--d), calc(var(--d) + .9s);
}
.float b { display: block; color: var(--ink); font-size: 14.5px; font-family: var(--font-display); letter-spacing: -.01em; }
.float .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.float .fi .ic { width: 20px; height: 20px; }
.float.f1 { top: 22px; left: -28px; --d: 1.1s; }
.float.f1 .fi { background: var(--sun-50); color: var(--sun-ink); }
.float.f2 { top: 46%; right: -18px; --d: 1.5s; }
.float.f2 .fi { background: var(--primary-50); color: var(--primary-ink); }
.float.f3 { bottom: 60px; left: 4px; --d: 1.9s; }
.float.f3 .fi { background: var(--primary); color: #fff; }
@keyframes floatIn { from { opacity: 0; transform: translateY(26px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.ring { position: absolute; border: 1.5px dashed color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 50%; animation: spin 60s linear infinite; }
.ring.r1 { width: 520px; height: 520px; top: 50%; left: 50%; margin: -260px 0 0 -260px; }
.ring.r2 { width: 380px; height: 380px; top: 50%; left: 50%; margin: -190px 0 0 -190px; animation-direction: reverse; animation-duration: 45s; border-style: solid; border-color: color-mix(in srgb, var(--sun) 35%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 560px; }
  .hero { padding-bottom: 60px; }
}
@media (max-width: 520px) {
  .hero { padding-top: calc(var(--hdr-h) + 28px); }
  .hero-visual { min-height: 520px; transform: scale(.88); margin: -30px 0 -40px; }
  .float.f1 { left: -22px; }
  .float.f2 { right: -26px; }
  .ring.r1 { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ─── Bandeau défilant ─── */
.ticker { position: relative; background: var(--deep); color: #eaf5ee; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -20px; box-shadow: var(--shadow-md); }
.ticker-track { display: flex; width: max-content; gap: 44px; animation: marquee 40s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 44px; font-family: var(--font-display); font-weight: 700; font-size: 19px; white-space: nowrap; letter-spacing: -.01em; }
.ticker-item::after { content: "✦"; color: var(--sun); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Carte produit ─── */
.pcard {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard-img { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-img img.loading { opacity: 0; }
.pcard-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.pcard-img img { position: relative; }
img.ko { visibility: hidden; }
.pcard-img .ph .ic { width: 38px; height: 38px; opacity: .5; }
.pcard-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.pbadge { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--clay); color: #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.pbadge.soft { background: rgba(255, 255, 255, .92); color: #131a15; }
.pbadge.dark { background: rgba(12, 15, 13, .78); color: #fff; }
.pcard-go { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #131a15; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .3s var(--ease), transform .4s var(--ease-spring); }
.pcard-go .ic { width: 17px; height: 17px; }
.pcard:hover .pcard-go { opacity: 1; transform: none; }
.pcard-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-shop { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard-price strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.pcard-price strong small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.pcard-price s { font-size: 13px; color: var(--muted); }

/* Squelettes de chargement */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.pcard.is-sk .pcard-img { border-radius: 0; }
.pcard.is-sk .l1 { height: 12px; width: 45%; }
.pcard.is-sk .l2 { height: 14px; width: 90%; margin-top: 6px; }
.pcard.is-sk .l3 { height: 18px; width: 55%; margin-top: 12px; }

/* Rail défilant de produits */
.rail { position: relative; overflow: hidden; padding: 14px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail-track { display: flex; gap: 18px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.rail-track.rev { animation-direction: reverse; }
.rail:hover .rail-track { animation-play-state: paused; }
.rail .pcard { width: 230px; flex: 0 0 auto; }
@media (max-width: 520px) { .rail .pcard { width: 180px; } }

/* ─── Catégories ─── */
.cats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 14px; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
.cat.all { background: var(--deep); border-color: var(--deep); color: #fff; }
.cat.all .cat-ic { background: rgba(255, 255, 255, .1); color: var(--sun); }
.cat.all .cat-c { color: #a9c2b2; }
.cat {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  padding: 22px; min-height: 190px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--primary)) 22%, transparent), transparent 65%); }
.cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, var(--primary)) 45%, var(--line)); box-shadow: var(--shadow-md); }
.cat:hover::before { opacity: 1; }
.cat-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--primary)) 14%, var(--surface)); color: var(--c, var(--primary)); transition: transform .5s var(--ease-spring); }
.cat-ic .ic { width: 26px; height: 26px; }
.cat:hover .cat-ic { transform: rotate(-8deg) scale(1.08); }
.cat-n { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.cat-c { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.cat-c .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.cat:hover .cat-c .ic { transform: translateX(4px); }

/* ─── L'argent attend (fonctionnement du séquestre) ─── */
/* overflow: clip (et non hidden) : hidden créerait un conteneur de défilement
   qui empêche le coffre de rester collé (position: sticky). */
.escrow { background: var(--deep); color: #e3efe7; overflow: hidden; overflow: clip; border-radius: var(--r-xl); margin: 0 14px; }
.escrow .kicker { color: var(--sun); }
.escrow .h2 { color: #fff; }
.escrow .h2 em { color: var(--sun); }
.escrow .lead { color: #a9c2b2; }
.escrow::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 175, 118, .25), transparent 60%); pointer-events: none; }
.esc-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: start; margin-top: 60px; }
.esc-visual { position: sticky; top: calc(var(--hdr-h) + 40px); }
.vault {
  position: relative; border-radius: 28px; padding: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vault-top { display: flex; align-items: center; gap: 14px; }
.vault-thumb { width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .1); overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; color: #9fd8b5; }
.vault-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vault-top .t1 { font-size: 13px; color: #9fb8a8; font-weight: 600; }
.vault-top .t2 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 18px; line-height: 1.2; }
.vault-amount { margin: 26px 0 8px; display: flex; align-items: center; gap: 16px; }
.vault-lock { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .5s var(--ease), color .5s, transform .6s var(--ease-spring); }
.vault-lock .ic { width: 28px; height: 28px; }
.vault-amount .amt { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: #fff; letter-spacing: -.03em; line-height: 1; }
.vault-amount .amt small { font-size: 16px; color: #9fb8a8; margin-left: 6px; }
.vault-status { font-size: 14.5px; font-weight: 700; color: #cfe3d6; min-height: 1.5em; }
.vault-bar { margin-top: 20px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vault-bar span { display: block; height: 100%; width: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--mint), var(--sun)); transform-origin: 0 50%; transform: scaleX(.08); transition: transform .9s var(--ease); }
.vault-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.vault-steps span { font-size: 11.5px; font-weight: 700; color: #6f8c7b; text-align: center; transition: color .4s; }
.vault[data-step="1"] .vault-lock, .vault[data-step="2"] .vault-lock, .vault[data-step="3"] .vault-lock { background: var(--sun); color: #1b1300; }
.vault[data-step="2"] .vault-lock { transform: rotate(-10deg) scale(1.05); }
.vault[data-step="4"] .vault-lock { background: var(--mint); color: #062114; transform: scale(1.08); }
.vault[data-step="1"] .vault-bar span { transform: scaleX(.28); }
.vault[data-step="2"] .vault-bar span { transform: scaleX(.52); }
.vault[data-step="3"] .vault-bar span { transform: scaleX(.76); }
.vault[data-step="4"] .vault-bar span { transform: scaleX(1); }
.vault[data-step="1"] .vault-steps span:nth-child(-n+1),
.vault[data-step="2"] .vault-steps span:nth-child(-n+2),
.vault[data-step="3"] .vault-steps span:nth-child(-n+3),
.vault[data-step="4"] .vault-steps span { color: #fff; }
.vault-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 10px; font-size: 13.5px; color: #a9c2b2; }
.vault-note .ic { color: var(--sun); width: 18px; height: 18px; margin-top: 2px; }

.esc-steps { position: relative; display: flex; flex-direction: column; gap: 22px; padding-left: 34px; }
.esc-line { position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; }
.esc-line span { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); background: linear-gradient(var(--mint), var(--sun)); border-radius: 2px; }
.esc-step { position: relative; padding: 26px 26px 28px; border-radius: 22px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); transition: background .5s var(--ease), border-color .5s, transform .5s var(--ease); }
.esc-step::before { content: ""; position: absolute; left: -30px; top: 32px; width: 16px; height: 16px; border-radius: 50%; background: var(--deep); border: 2px solid rgba(255, 255, 255, .25); transition: background .4s, border-color .4s, box-shadow .4s; }
.esc-step.on { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.esc-step.on::before { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 6px rgba(242, 179, 27, .2); }
.esc-num { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7fa18c; }
.esc-step.on .esc-num { color: var(--sun); }
.esc-step h3 { font-size: 26px; color: #fff; margin: 10px 0 8px; }
.esc-step p { color: #a9c2b2; font-size: 16px; }
.esc-step p b { color: #e6f1ea; }
@media (max-width: 920px) {
  .esc-grid { display: block; margin-top: 40px; }
  .esc-steps { margin-top: 22px; }
  /* Sur téléphone, le coffre devient une barre compacte qui reste visible
     pendant qu'on fait défiler les étapes. */
  .esc-visual { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 3; }
  .vault { padding: 16px 18px; background: rgba(9, 34, 20, .94); }
  .vault-top, .vault-note { display: none; }
  .vault-amount { margin: 0 0 6px; gap: 12px; }
  .vault-lock { width: 44px; height: 44px; border-radius: 14px; }
  .vault-lock .ic { width: 22px; height: 22px; }
  .vault-amount .amt { font-size: 28px; }
  .vault-bar { margin-top: 12px; }
  .escrow { margin: 0 8px; border-radius: 26px; }
}

/* ─── Vendeurs ─── */
.seller-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-list { display: grid; gap: 14px; margin-top: 32px; }
.feat { display: flex; gap: 16px; padding: 16px; border-radius: 18px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.feat:hover { background: var(--surface); border-color: var(--line); }
.feat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: var(--primary-50); color: var(--primary-ink); }
.feat-ic .ic { width: 22px; height: 22px; }
.feat h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: -.01em; }
.feat p { color: var(--muted); font-size: 15px; }

.ai-demo { position: relative; border-radius: var(--r-xl); padding: 26px; background: linear-gradient(160deg, var(--primary-50), var(--sun-50)); border: 1px solid var(--line); }
.ai-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px; display: grid; grid-template-columns: 170px 1fr; gap: 18px; }
.ai-photo { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.ai-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-photo .ic { width: 44px; height: 44px; opacity: .5; }
.ai-scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(76, 175, 118, .55)); border-bottom: 2px solid #7ff0ad; opacity: 0; }
.ai-demo.scanning .ai-scan { animation: scan 1.6s var(--ease) 2; opacity: 1; }
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }
.ai-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ai-f label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ai-f div { min-height: 38px; padding: 9px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ai-f.big div { min-height: 64px; font-weight: 500; font-size: 13.5px; }
.ai-f div.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--primary); vertical-align: -2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-pill { position: absolute; top: -16px; right: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-md); }
.ai-pill .ic { width: 16px; height: 16px; color: var(--sun); }
.ai-share { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; color: var(--muted); }
.ai-share b { color: var(--ink); display: block; font-size: 14.5px; }
.ai-share .wa { width: 40px; height: 40px; border-radius: 12px; background: #25d366; color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.ai-share .wa .ic { width: 20px; height: 20px; }
@media (max-width: 960px) { .seller-grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 520px) { .ai-card { grid-template-columns: 1fr; } .ai-photo { aspect-ratio: 16 / 10; } .ai-demo { padding: 16px; } }

/* ─── Offres vendeurs ─── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 24px; }
.plan .pdesc { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 2.8em; }
.plan .price { margin: 22px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .com { font-size: 14px; font-weight: 700; color: var(--primary-ink); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .ic { color: var(--primary-ink); width: 18px; height: 18px; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan.hot { background: var(--deep); color: #e3efe7; border-color: var(--deep); box-shadow: var(--shadow-lg); }
.plan.hot h3, .plan.hot .price { color: #fff; }
.plan.hot .pdesc, .plan.hot .price small { color: #a9c2b2; }
.plan.hot .com, .plan.hot li .ic { color: var(--sun); }
.plan-flag { position: absolute; top: -13px; right: 24px; background: var(--sun); color: #1b1300; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.fine { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 22px; }

/* ─── Boutiques ─── */
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shop-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.shop-cover { height: 96px; position: relative; overflow: hidden; background: var(--g, linear-gradient(135deg, #1e6b3c, #4caf76)); }
.shop-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 14px 14px; transition: transform 1.2s var(--ease); }
.shop-card:hover .shop-cover::after { transform: scale(1.15) rotate(3deg); }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; background: var(--g, var(--primary)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; box-shadow: 0 0 0 4px var(--surface), var(--shadow-md); }
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.shop-card .avatar { margin: -32px 0 0 18px; position: relative; z-index: 1; }
.shop-card-body { padding: 12px 18px 18px; }
.shop-card h3 { font-size: 19px; letter-spacing: -.02em; }
.shop-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.shop-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.shop-card .meta .ic { width: 15px; height: 15px; }

/* ─── Promesses ─── */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.promise:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.promise .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1; color: var(--primary-ink); }
.promise h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.promise p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 920px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }

/* ─── FAQ ─── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: 0 0 auto; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq summary .pm .ic { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq .ans { overflow: hidden; }
.faq .ans > div { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ─── Appel final ─── */
.cta-final { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 80px 60px; background: var(--deep); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-final::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg at 50% 50%, rgba(76, 175, 118, .35), rgba(242, 179, 27, .25), rgba(30, 107, 60, .1), rgba(76, 175, 118, .35)); animation: spin 18s linear infinite; filter: blur(40px); }
.cta-final::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: calc(var(--r-xl) - 2px); background: radial-gradient(ellipse at 20% 0%, rgba(30, 107, 60, .9), var(--deep) 60%); }
.cta-final h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; }
.cta-final h2 em { font-style: normal; color: var(--sun); }
.cta-final p { color: #b8cfc0; font-size: 18px; margin-top: 16px; max-width: 520px; }
.cta-final .store-row { margin-top: 32px; }
.cta-logo { justify-self: center; width: 220px; height: 220px; border-radius: 56px; background: #fff; display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: bob 7s ease-in-out infinite; transform: rotate(6deg); }
.cta-logo img { width: 160px; height: 160px; animation: spin 24s linear infinite; }
@media (max-width: 860px) { .cta-final { grid-template-columns: 1fr; padding: 54px 26px; text-align: left; } .cta-logo:not(.keep) { display: none; } }

/* ─── Pied de page ─── */
.ftr { margin-top: 110px; border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--surface); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.ftr a:hover { color: var(--primary-ink); }
.ftr .about { color: var(--muted); font-size: 15px; margin: 16px 0 22px; max-width: 320px; }
.ftr .contact li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.ftr .contact .ic { color: var(--primary-ink); width: 18px; height: 18px; }
.ftr-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }
.ftr .store { min-height: 50px; padding: 0 16px 0 14px; border-radius: 14px; }
.ftr .store, .ftr .store:hover { color: #fff; }
.ftr .logo { font-size: 21px; color: var(--ink); }
.ftr .logo:hover { color: var(--ink); }
.ftr .store strong { font-size: 15.5px; }
.ftr .store svg { width: 22px; height: 22px; }
@media (max-width: 920px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr-grid { grid-template-columns: 1fr; } .ftr { margin-top: 70px; } }

/* ─── Pages intérieures : en-tête de page ─── */
.page-head { position: relative; overflow: hidden; padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.04em; margin-top: 14px; }
.page-head .lead { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }

/* ─── Explorer ─── */
.ex-bar { position: sticky; top: var(--hdr-h); z-index: 20; padding: 14px 0; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.ex-bar.stuck { border-bottom-color: var(--line); }
.ex-row { display: flex; gap: 12px; align-items: center; }
.search { position: relative; flex: 1; }
.search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search input { width: 100%; height: 54px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 48px 0 50px; font: 600 16px var(--font-body); transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 16%, transparent); }
.search .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.search .clear .ic { position: static; transform: none; width: 15px; height: 15px; }
.select { height: 54px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 40px 0 20px; font: 700 15px var(--font-body); cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23637167' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.select:focus { outline: none; border-color: var(--primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 2px 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font: 700 14.5px var(--font-body); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-spring); }
.chip .ic { width: 17px; height: 17px; }
.chip:hover { border-color: var(--line-2); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .65; }
.ex-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--muted); font-weight: 600; font-size: 15px; }
.ex-meta b { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 560px) {
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard-body { padding: 10px 11px 12px; }
  .pcard-name { font-size: 14px; }
  .pcard-price strong { font-size: 16px; }
  .ex-row { flex-wrap: wrap; }
  .ex-row .select { flex: 1; height: 46px; }
  .search input { height: 50px; }
}
.empty { text-align: center; padding: 70px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 14px; opacity: .6; }
.empty h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }

.shop-strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.shop-strip::-webkit-scrollbar { display: none; }
.shop-pill { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px; transition: transform .3s var(--ease), box-shadow .3s; }
.shop-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shop-pill .avatar { width: 38px; height: 38px; border-radius: 50%; font-size: 15px; box-shadow: none; }

/* ─── Fiche produit ─── */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; padding: 10px 0 20px; }
.pd-media { position: sticky; top: calc(var(--hdr-h) + 20px); }
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.media .ph .ic { width: 64px; height: 64px; opacity: .45; }
.gal-piste { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.gal-piste::-webkit-scrollbar { display: none; }
.gal-piste img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; }
.gal-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #131a15; cursor: pointer; place-items: center; box-shadow: var(--shadow-md); transition: transform .3s var(--ease), opacity .3s; }
.gal-nav .ic { width: 20px; height: 20px; }
.gal-nav:hover { transform: translateY(-50%) scale(1.08); }
.gal-nav.prec { left: 14px; }
.gal-nav.suiv { right: 14px; }
.gal-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .gal-nav { display: grid; } }
.gal-compteur { position: absolute; right: 14px; bottom: 14px; background: rgba(12, 15, 13, .7); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); opacity: .6; transition: opacity .25s, border-color .25s, transform .3s var(--ease); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button.on { opacity: 1; border-color: var(--primary); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.035em; margin: 16px 0 0; line-height: 1.05; }
.pd-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.stars { color: #f5a524; letter-spacing: 1px; font-size: 16px; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; }
.pd-price strong { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1; }
.pd-price strong small { font-size: .42em; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.pd-price s { color: var(--muted); font-size: 18px; }
.pd-offer { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--sun-50); border: 1px solid color-mix(in srgb, var(--sun) 35%, transparent); font-size: 15px; }
.pd-offer .ic { color: var(--sun-ink); width: 20px; height: 20px; margin-top: 2px; }
.pd-offer b { color: var(--ink); }
.pd-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.pd-cta .row { display: flex; gap: 10px; }
.pd-cta .row .btn { flex: 1; }
.pd-hint { font-size: 13.5px; color: var(--muted); text-align: center; }
.trust { margin-top: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.trust-item { display: flex; gap: 14px; padding: 16px 18px; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item .ti { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); color: var(--primary-ink); display: grid; place-items: center; flex: 0 0 auto; }
.trust-item .ti .ic { width: 20px; height: 20px; }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { font-size: 14px; color: var(--muted); }
.pd-sec { margin-top: 34px; }
.pd-sec h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.desc { white-space: pre-wrap; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.specs div { background: var(--surface); padding: 12px 16px; }
.specs dt { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.seller { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.seller:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.seller .avatar { width: 58px; height: 58px; border-radius: 18px; box-shadow: none; font-size: 22px; }
.seller .sn { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.seller .ss { font-size: 14px; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.seller .chev { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: 0 0 auto; transition: transform .3s var(--ease), background .3s; }
.seller:hover .chev { transform: translateX(4px); background: var(--primary-50); color: var(--primary-ink); }
.seller .chev .ic { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .pd-media { position: relative; top: 0; margin: 0 -22px; }
  .pd-media .media { border-radius: 0; border-left: 0; border-right: 0; }
  .thumbs { padding: 2px 22px; }
}

/* Barre d'achat collante (mobile) */
.buybar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .5s var(--ease); }
.buybar.show { transform: none; }
.buybar .bp { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1.1; }
.buybar .bp small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.buybar .btn { margin-left: auto; }
@media (max-width: 900px) { .buybar { display: flex; } body.has-buybar .ftr { padding-bottom: 110px; } }

/* ─── Boutique ─── */
.shop-hero { position: relative; height: 230px; border-radius: var(--r-xl); overflow: hidden; background: var(--g, linear-gradient(135deg, #0b2a19, #1e6b3c 55%, #4caf76)); margin-top: 18px; }
.shop-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .2) 1.2px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%); mask-image: linear-gradient(120deg, #000, transparent 75%); }
.shop-hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero .wm { position: absolute; right: -10px; bottom: -40px; font-family: var(--font-display); font-weight: 800; font-size: 200px; line-height: 1; color: rgba(255, 255, 255, .1); letter-spacing: -.06em; white-space: nowrap; }
.shop-head { display: flex; gap: 22px; align-items: flex-start; margin-top: -56px; padding: 0 28px; position: relative; z-index: 1; flex-wrap: wrap; }
.shop-head .info, .shop-head .actions { padding-top: 70px; }
.shop-head .avatar { width: 112px; height: 112px; border-radius: 30px; font-size: 42px; box-shadow: 0 0 0 6px var(--bg), var(--shadow-md); }
.shop-head .info { flex: 1; min-width: 240px; }
.shop-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.shop-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.shop-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.shop-head .meta .ic { width: 17px; height: 17px; }
.shop-head .actions { display: flex; gap: 10px; }
.shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.stat { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.stat .k { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.shop-desc { margin-top: 26px; max-width: 760px; color: var(--ink-2); font-size: 16.5px; white-space: pre-wrap; }
@media (max-width: 760px) {
  .shop-hero { height: 170px; border-radius: 0 0 26px 26px; margin: 0 -22px; }
  .shop-head { padding: 0 4px; margin-top: -48px; gap: 16px; }
  .shop-head .avatar { width: 92px; height: 92px; font-size: 34px; border-radius: 26px; }
  .shop-head .info { padding-top: 56px; }
  .shop-head .actions { width: 100%; padding-top: 0; }
  .shop-head .actions .btn { flex: 1; }
  .shop-stats { grid-template-columns: 1fr 1fr; }
}

/* Bandeau « continuer dans l'app » */
.app-band { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px; background: linear-gradient(120deg, var(--primary-50), var(--sun-50)); border: 1px solid var(--line); margin-top: 30px; }
.app-band .ai { width: 52px; height: 52px; border-radius: 16px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.app-band .ai .ic { width: 24px; height: 24px; }
.app-band .tx { flex: 1; min-width: 220px; }
.app-band b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; display: block; }
.app-band span { color: var(--muted); font-size: 15px; }

/* ─── États / erreurs ─── */
.state { text-align: center; padding: 90px 20px; color: var(--muted); }
.state h2 { color: var(--ink); font-size: 28px; margin: 14px 0 8px; }
.state .ic { width: 48px; height: 48px; margin: 0 auto; opacity: .6; }
.state .btn { margin-top: 22px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); margin: 0 auto; animation: spin .8s linear infinite; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 30px); opacity: 0; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; transition: opacity .35s var(--ease), transform .45s var(--ease-spring); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 18px; height: 18px; color: var(--mint); }
body.has-buybar .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ─── Télécharger ─── */
.dl { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding: 40px 0 0; }
.dl h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.045em; line-height: 1; margin-top: 20px; }
.dl h1 em { font-style: normal; color: var(--primary-ink); }
.dl .store-row { margin-top: 34px; }
.dl-list { display: grid; gap: 14px; margin-top: 36px; }
.dl-list div { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink-2); }
.dl-list .ic { width: 22px; height: 22px; color: var(--primary-ink); }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } .dl .hero-visual { order: -1; min-height: 520px; } }

/* ─── Pages légales / texte ─── */
.prose { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 26px; color: var(--ink); margin: 52px 0 14px; letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 30px 0 10px; letter-spacing: -.015em; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--primary-ink); }
.prose strong { color: var(--ink); }
.prose .maj { color: var(--muted); font-size: 14.5px; margin-bottom: 30px; }
.prose .encart { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 16px; padding: 18px 22px; margin: 22px 0; }
.prose .encart p:last-child { margin-bottom: 0; }
.prose .tableau { width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: var(--surface); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.prose .etapes { list-style: none; counter-reset: etape; padding: 0; display: grid; gap: 10px; }
.prose .etapes li { counter-increment: etape; position: relative; margin: 0; padding: 14px 18px 14px 60px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.prose .etapes li::before { content: counter(etape); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.prose .alerte { background: var(--sun-50); border: 1px solid color-mix(in srgb, var(--sun) 40%, transparent); border-left: 4px solid var(--sun); border-radius: 16px; padding: 18px 22px; margin: 22px 0; }
.prose .alerte p:last-child { margin-bottom: 0; }
.toc { position: sticky; top: calc(var(--hdr-h) + 24px); }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start; }
.toc h4 { font-family: var(--font-body); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--primary-ink); border-left-color: var(--primary); }
@media (max-width: 960px) { .legal-grid { grid-template-columns: 1fr; } .toc { display: none; } }

/* ─── Formulaires (abonnement, suppression) ─── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink); font: 500 16px var(--font-body); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 15%, transparent); }

/* ─── Apparition au défilement ─── */
html.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.from-left { transform: translateX(-40px); }
html.js .reveal.from-right { transform: translateX(40px); }
html.js .reveal.zoom { transform: scale(.94); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .stagger.in > * { opacity: 1; transform: none; }
html.js .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
html.js .stagger.in > *:nth-child(2) { transition-delay: 70ms; }
html.js .stagger.in > *:nth-child(3) { transition-delay: 140ms; }
html.js .stagger.in > *:nth-child(4) { transition-delay: 210ms; }
html.js .stagger.in > *:nth-child(5) { transition-delay: 280ms; }
html.js .stagger.in > *:nth-child(6) { transition-delay: 350ms; }
html.js .stagger.in > *:nth-child(7) { transition-delay: 420ms; }
html.js .stagger.in > *:nth-child(8) { transition-delay: 490ms; }
html.js .stagger.in > *:nth-child(n+9) { transition-delay: 540ms; }

/* ─── Mode calme ───
   Posé par le script d'en-tête quand l'appareil demande « réduire les
   animations » (ou via le bouton du pied de page). Les mouvements
   disparaissent ; seuls des fondus doux et les survols restent. */
html.calme { scroll-behavior: auto; }
html.calme *, html.calme *::before, html.calme *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
html.calme .rail-track, html.calme .ticker-track, html.calme .scr-track { animation: none !important; }
html.calme .rail { overflow-x: auto; scrollbar-width: thin; -webkit-mask-image: none; mask-image: none; padding-left: max(22px, calc((100vw - var(--wrap)) / 2 + 22px)); padding-right: 22px; scroll-snap-type: x proximity; }
html.calme .rail .pcard { scroll-snap-align: start; }
html.calme.js .reveal, html.calme.js .stagger > * { transform: none !important; transition-property: opacity; transition-duration: .6s; }
html.calme .split .w > span { transform: none; }
html.calme .rise, html.calme .float { opacity: 1; transform: none; }
html.calme .blob { animation: none; }

.motion-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font-body); cursor: pointer; transition: color .2s, border-color .2s; }
.motion-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.motion-toggle .ic { width: 15px; height: 15px; }
