/* MonProduitDigital — styles de l'application. Uniquement des tokens (tokens.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand-text); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 22px; line-height: 30px; font-weight: 800; letter-spacing: -.5px; }
h3 { font-size: 18px; line-height: 26px; font-weight: 700; }
@media (min-width: 900px) { h1 { font-size: 40px; line-height: 48px; } h2 { font-size: 30px; line-height: 38px; } h3 { font-size: 22px; line-height: 30px; } }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; stroke-width: 2; }
.icon--lg { width: 24px; height: 24px; }
.icon--sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.small { font-size: 14px; line-height: 20px; font-weight: 500; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--sm { gap: var(--space-2); }
.stack--lg { gap: var(--space-8); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }
.container--narrow { max-width: 760px; }
@media (min-width: 900px) { .container { padding: 0 var(--space-6); } }
.caption { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-muted); }
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { text-decoration: underline; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* Compléments aux composants du kit */
.mpd-btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.mpd-btn--danger:hover { background: var(--danger-subtle); }
.mpd-btn--icon { padding: 0; width: 44px; }
.mpd-btn--sm.mpd-btn--icon { width: 36px; }
select.mpd-field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea.mpd-field__input { min-height: 120px; resize: vertical; }
.mpd-field__input:disabled { background: var(--surface-alt); color: var(--ink-muted); }
.mpd-field__input[type=file] { padding: 8px; }
.field-suffix { position: relative; }
.field-suffix .mpd-field__input { width: 100%; padding-right: 72px; }
.field-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-weight: 600; font-size: 14px; pointer-events: none; }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } }
.check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.choice { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); cursor: pointer; min-height: 56px; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-alt); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }

/* Alertes */
.alert { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--info-subtle); color: var(--info); font-weight: 500; font-size: 15px; line-height: 22px; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert--success { background: var(--success-subtle); color: var(--success); }
.alert--warning { background: var(--warning-subtle); color: var(--warning); }
.alert--danger { background: var(--danger-subtle); color: var(--danger); }
.alert ul { margin: 0; padding-left: 18px; }

/* Panneaux, statistiques, tableaux */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4); border-bottom: 1px solid var(--border); }
.panel__body { padding: var(--space-4); }
@media (min-width: 900px) { .panel__head, .panel__body { padding: var(--space-6); } .panel__head { padding-top: var(--space-4); padding-bottom: var(--space-4); } }
.stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 900px) { .stats { gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.stat { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.stat__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); display: flex; gap: 6px; align-items: center; }
.stat__value { font-size: 22px; line-height: 30px; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat__hint { font-size: 13px; line-height: 18px; color: var(--ink-subtle); margin-top: 2px; }
.stat--accent { background: var(--surface-inverse); color: var(--on-inverse); border-color: var(--surface-inverse); }
.stat--accent .stat__label, .stat--accent .stat__hint { color: inherit; opacity: .78; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.table th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-muted); padding: 12px var(--space-4); border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-alt); }
.table td { padding: 14px var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table a.rowlink { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a.rowlink:hover { color: var(--brand-text); }
.empty { text-align: center; padding: var(--space-12) var(--space-4); color: var(--ink-muted); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.empty .icon { width: 32px; height: 32px; color: var(--ink-subtle); }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 10px var(--space-4); margin: 0; }
.dl dt { color: var(--ink-muted); }
.dl dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl .dl__total { border-top: 1px solid var(--border); padding-top: 12px; font-weight: 800; font-size: 18px; color: var(--ink); }
.pagination { display: flex; gap: var(--space-2); justify-content: space-between; align-items: center; padding: var(--space-4); font-size: 14px; color: var(--ink-muted); }
.thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-alt); display: grid; place-items: center; color: var(--ink-subtle); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--brand-subtle); color: var(--brand-text); display: grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.bars__bar { background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars__col:hover .bars__bar { background: var(--brand); }
.bars__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-subtle); margin-top: 6px; }
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink-muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* Coquille vendeur / admin */
.shell { min-height: 100vh; background: var(--surface-alt); }
.shell__side { display: none; }
.shell__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); background: var(--surface); border-bottom: 1px solid var(--border); }
.shell__top img { height: 28px; display: block; }
.shell__main { padding: var(--space-4); max-width: 1160px; margin: 0 auto; }
.shell.is-open .shell__side { display: flex; position: fixed; inset: 0; z-index: 30; width: min(320px, 86vw); box-shadow: var(--shadow-lg); }
.shell.is-open::after { content: ""; position: fixed; inset: 0; background: rgba(30, 15, 28, .5); z-index: 25; }
.side { flex-direction: column; gap: var(--space-4); padding: var(--space-4); background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }
.side__logo img { height: 30px; display: block; }
.side__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side__link { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); color: var(--ink-muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.side__link .icon { width: 22px; height: 22px; }
.side__link:hover { background: var(--surface-alt); color: var(--ink); }
.side__link[aria-current="page"] { background: var(--brand-subtle); color: var(--brand-text); }
.side__section { margin: var(--space-3) 12px 4px; }
.side__badge { margin-left: auto; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; padding: 1px 8px; }
.side__plan { padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-alt); font-size: 14px; line-height: 20px; }
@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .shell__side { display: flex; position: sticky; top: 0; height: 100vh; }
  .shell__top { display: none; }
  .shell__main { padding: var(--space-8) var(--space-8) var(--space-16); width: 100%; }
  .side__close { display: none; }
}
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-head p { color: var(--ink-muted); margin-top: 4px; }
.banner-test { background: var(--warning-subtle); color: var(--warning); font-size: 14px; font-weight: 600; text-align: center; padding: 6px var(--space-4); }

/* Pages publiques */
.site-nav { position: sticky; top: 0; z-index: 20; }
.section { padding-block: var(--space-12); }
.section--alt { background: var(--surface-alt); }
.section--inverse { background: var(--surface-inverse); color: var(--on-inverse); }
@media (min-width: 900px) { .section { padding-block: var(--space-16); } }
.section__head { max-width: 640px; margin-bottom: var(--space-8); }
.section__head p { color: var(--ink-muted); font-size: 18px; line-height: 28px; margin-top: var(--space-3); }
.hero { display: grid; gap: var(--space-8); align-items: center; padding-block: var(--space-12); }
.hero h1 { font-size: 36px; line-height: 42px; letter-spacing: -1.5px; }
.hero p.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); margin: var(--space-4) 0 var(--space-6); max-width: 520px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: var(--space-24) var(--space-16); } .hero h1 { font-size: 56px; line-height: 60px; } }
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { gap: var(--space-6); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.feature .icon { width: 24px; height: 24px; color: var(--brand-text); margin-bottom: var(--space-3); }
.feature p { color: var(--ink-muted); margin-top: var(--space-2); }
.step__n { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; margin-bottom: var(--space-3); }
.plan { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.plan--featured { border: 2px solid var(--ink); box-shadow: var(--shadow-md); }
.plan__price { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -.5px; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.plan li .icon { margin-top: 1px; color: var(--success); }
.plan li.is-soon { color: var(--ink-subtle); }
.plan li.is-soon .icon { color: var(--ink-subtle); }
.footer { background: var(--surface-inverse); color: var(--on-inverse); padding-block: var(--space-12) var(--space-8); }
.footer a { color: inherit; opacity: .8; text-decoration: none; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer img { height: 30px; }
.mock { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); padding: var(--space-6); max-width: 420px; margin: 0 auto; width: 100%; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: var(--space-8) var(--space-4); background: var(--surface-alt); }
.auth__card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-sm); }
@media (min-width: 700px) { .auth__card { padding: var(--space-8); } }
.auth__logo { display: block; height: 72px; margin: 0 auto var(--space-6); }

/* Boutique et tunnel d'achat */
.store-hero { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.store-hero__banner { height: 140px; background: var(--brand-subtle) center / cover no-repeat; }
@media (min-width: 900px) { .store-hero__banner { height: 220px; } }
.store-hero__body { display: flex; gap: var(--space-4); align-items: flex-end; padding: 0 0 var(--space-6); margin-top: -36px; flex-wrap: wrap; }
.store-logo { width: 88px; height: 88px; border-radius: var(--radius-lg); border: 4px solid var(--surface); background: var(--brand-subtle); color: var(--brand-text); display: grid; place-items: center; font-size: 32px; font-weight: 800; object-fit: cover; flex: none; }
.mpd-card { text-decoration: none; }
.mpd-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mpd-card__media .icon { width: 40px; height: 40px; }
.price-old { text-decoration: line-through; color: var(--ink-subtle); font-size: 15px; font-weight: 500; }
.checkout { display: grid; gap: var(--space-6); padding-block: var(--space-6) var(--space-16); }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-12); align-items: start; padding-top: var(--space-12); } .checkout__pay { position: sticky; top: var(--space-6); } }
.product-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-alt); display: grid; place-items: center; color: var(--ink-subtle); border: 1px solid var(--border); }
.prose { font-size: 16px; line-height: 26px; overflow-wrap: anywhere; }
.prose p { margin: 0 0 var(--space-4); }
.secure-note { display: flex; gap: var(--space-2); align-items: center; justify-content: center; color: var(--ink-muted); font-size: 14px; }
.file-row { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.file-row:last-child { border-bottom: 0; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } * { transition: none !important; } }

/* Tunnel d'achat sur mobile : pas de débordement, et accès direct au paiement. */
.checkout > *, .grid > *, .hero > * { min-width: 0; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px var(--space-4) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-md); }
.has-buybar { padding-bottom: 76px; }
@media (min-width: 960px) { .buybar { display: none; } .has-buybar { padding-bottom: 0; } }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-4); }

/* Bandeau de consentement des boutiques */
.consent { position: fixed; left: var(--space-4); right: var(--space-4); bottom: 88px; z-index: 40; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.consent[hidden] { display: none; }
.consent .row { justify-content: flex-end; }
@media (min-width: 960px) { .consent { bottom: var(--space-6); } }
.locked { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.tag { display: inline-flex; padding: 2px 10px; border-radius: var(--radius-full); background: var(--surface-alt); color: var(--ink-muted); font-size: 13px; font-weight: 600; }

/* =====================================================================
   Refonte visuelle — fond blanc, style SaaS épuré
   (recommandations du skill UI UX Pro Max : minimalisme, grille nette,
   un seul accent de couleur, transitions de 150 à 250 ms)
   ===================================================================== */
:root, [data-theme="light"] {
  --canvas: #FAF9FA;           /* fond des zones de travail, presque blanc */
  --hairline: #EEE8EB;         /* séparateurs fins */
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Illustrations (fond noir) et blocs de marque : identiques en clair et en sombre. */
  --art-bg: #000000;
  --on-art: #FFFFFF;
  --on-art-ink: #1E0F1C;
  --on-art-soft: #F7F2F4;
  --art-accent: #FF8A9B;
  --art-accent-soft: #FFD3DA;
  --footer-bg: #0E070D;
  --brand-deep: #6E0014;
  --tone-ember: #E0533A;
  --tone-wine: #5A0A1E;
  --tone-plum: #3A1626;
  --tone-rust: #5C1A08;
  --tone-amber: #D97706;
}
[data-theme="dark"] {
  --canvas: #170B15;
  --hairline: #33222F;
}

body { background: var(--surface); }
a, button, summary, label.choice, label.check { cursor: pointer; }
.mpd-btn { transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.mpd-btn--primary:hover { box-shadow: 0 6px 16px rgba(167, 0, 30, .22); }
.mpd-btn:active:not(:disabled) { transform: translateY(1px); }
.mpd-btn--outline { border-width: 1.5px; border-color: var(--border); background: var(--surface); }
.mpd-btn--outline:hover { border-color: var(--border-strong); background: var(--surface); }
.mpd-field__input { border-width: 1px; border-color: var(--border-strong); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.mpd-field__input:hover { border-color: var(--ink-subtle); }
.mpd-field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-subtle); }

/* --- Coquille vendeur / admin --- */
.shell { background: var(--canvas); }
.side { background: var(--surface); border-right: 1px solid var(--hairline); padding: 20px 14px; gap: var(--space-3); }
.side__logo { padding: 4px 8px 12px; }
.side__nav { gap: 1px; }
.side__group { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-subtle); padding: 16px 12px 6px; }
.side__link { min-height: 40px; padding: 8px 12px; font-size: 14.5px; font-weight: 600; border-radius: 10px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.side__link .icon { width: 19px; height: 19px; }
.side__link[aria-current="page"] { background: var(--brand-subtle); color: var(--brand-text); }
.side__user { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--hairline); margin: 0 -14px -20px; padding: 14px 18px; }
.side__user .avatar { width: 36px; height: 36px; font-size: 14px; }
.side__plan { background: var(--canvas); border: 1px solid var(--hairline); }
.shell__top { border-bottom-color: var(--hairline); }
@media (min-width: 1000px) {
  .shell { grid-template-columns: 256px minmax(0, 1fr); }
  .shell__main { padding: var(--space-8) 40px var(--space-16); max-width: 1240px; }
}
.page-head h1 { font-size: 26px !important; line-height: 34px !important; letter-spacing: -.6px; }
@media (min-width: 900px) { .page-head h1 { font-size: 28px !important; line-height: 36px !important; } }
.page-head p { font-size: 15px; }

.panel { border-color: var(--hairline); box-shadow: 0 1px 2px rgba(30, 15, 28, .04); }
.panel__head { border-bottom-color: var(--hairline); }
.panel__head h2 { font-size: 16px !important; line-height: 24px !important; letter-spacing: -.2px; }
.stat { border-color: var(--hairline); padding: 18px 20px; box-shadow: 0 1px 2px rgba(30, 15, 28, .04); }
.stat__label { font-size: 13.5px; }
.stat__value { font-size: 24px; line-height: 32px; letter-spacing: -.6px; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1099px) { .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.table { font-size: 14.5px; }
.table th { background: transparent; color: var(--ink-subtle); font-size: 11.5px; border-bottom-color: var(--hairline); padding-top: 14px; padding-bottom: 10px; }
.table td { border-bottom-color: var(--hairline); }
.table tbody tr { transition: background-color .12s var(--ease); }
.table tbody tr:hover { background: var(--canvas); }
.mpd-badge { font-size: 11.5px; padding: 3px 9px; }
.tabs { border-bottom-color: var(--hairline); }
.bars__bar { background: var(--brand); opacity: .9; border-radius: 3px 3px 0 0; }
.bars__col:hover .bars__bar { opacity: 1; }
.empty { padding: var(--space-12) var(--space-6); }
.empty .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--canvas); color: var(--ink-muted); }
.alert { border: 1px solid transparent; }
.alert--success { border-color: rgba(21, 122, 74, .18); }
.alert--warning { border-color: rgba(154, 81, 0, .18); }
.alert--danger { border-color: rgba(180, 35, 24, .18); }
.locked { background: var(--canvas); border-color: var(--border); }
.banner-test { font-size: 13px; padding: 5px var(--space-4); border-bottom: 1px solid rgba(154, 81, 0, .15); }

/* --- Site public --- */
.mpd-nav { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom-color: var(--hairline); }
[data-theme="dark"] .mpd-nav { background: rgba(30, 15, 28, .86); }
.mpd-nav__link { font-size: 14.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--hairline); font-size: 13.5px; font-weight: 600; color: var(--ink-muted); box-shadow: 0 1px 2px rgba(30, 15, 28, .04); }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-subtle); color: var(--brand-text); display: grid; place-items: center; }
.eyebrow .dot .icon { width: 13px; height: 13px; }
.hero-wrap { background: radial-gradient(52% 60% at 88% 18%, var(--brand-subtle) 0%, transparent 70%), radial-gradient(40% 40% at 0% 100%, var(--canvas) 0%, transparent 70%), var(--surface); border-bottom: 1px solid var(--hairline); }
.hero { gap: var(--space-12); padding-block: var(--space-12) var(--space-16); }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -2px; margin-top: var(--space-6); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero p.lead { font-size: 18px; line-height: 29px; max-width: 34em; }
.hero .row .mpd-btn--lg { min-height: 52px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: var(--space-6); font-size: 13.5px; color: var(--ink-muted); }
.trust__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-full); border: 1px solid var(--hairline); background: var(--surface); font-weight: 600; color: var(--ink); }
@media (min-width: 900px) { .hero { padding-block: var(--space-16) var(--space-24); } }

.phone { position: relative; max-width: 360px; margin: 0 auto; padding: 14px; border-radius: 36px; background: var(--surface-inverse); box-shadow: 0 30px 60px rgba(30, 15, 28, .18), 0 8px 20px rgba(30, 15, 28, .10); }
.phone__screen { border-radius: 24px; background: var(--surface); overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.phone__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.phone__cover { aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, var(--surface-inverse), #3A1626); color: var(--on-inverse); display: flex; align-items: flex-end; padding: 14px; font-weight: 800; font-size: 17px; line-height: 22px; letter-spacing: -.3px; }
.phone__method { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; font-weight: 600; font-size: 14px; }
.phone__method .radio { width: 16px; height: 16px; border-radius: 50%; border: 5px solid var(--ink); }
.phone__pay { min-height: 46px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 12px 30px rgba(30, 15, 28, .12); font-size: 13.5px; line-height: 18px; }
.float-card strong { display: block; font-size: 14.5px; }
.float-card .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--success-subtle); color: var(--success); }
.float-card--a { left: -64px; bottom: 28px; }
.float-card--b { right: -48px; top: 70px; }
.float-card--b .icon { background: var(--brand-subtle); color: var(--brand-text); }
@media (max-width: 1100px) { .float-card--a { left: -12px; bottom: -14px; } .float-card--b { right: -12px; } }
@media (max-width: 520px) { .float-card { display: none; } }

.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center p { margin-inline: auto; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-text); margin-bottom: var(--space-3); }
.feature { border-color: var(--hairline); padding: 28px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.feature:hover { border-color: var(--border); box-shadow: 0 12px 28px rgba(30, 15, 28, .07); transform: translateY(-2px); }
.feature .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand-subtle); color: var(--brand-text); margin-bottom: var(--space-4); }
.feature h3 { font-size: 18px !important; line-height: 26px !important; }
.feature p { font-size: 15.5px; line-height: 24px; }
.steps { counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); }
.step__n { width: 34px; height: 34px; font-size: 15px; background: var(--brand); color: var(--on-brand); }
.step h3 { font-size: 18px !important; line-height: 26px !important; margin-bottom: 6px; }
.plan { border-color: var(--hairline); padding: 28px; transition: box-shadow .2s var(--ease); }
.plan:hover { box-shadow: 0 12px 28px rgba(30, 15, 28, .07); }
.plan--featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(167, 0, 30, .10); }
.plan__price { font-size: 34px; line-height: 40px; letter-spacing: -1px; }
.cta-band { border-radius: 28px; padding: var(--space-12) var(--space-8); background: var(--surface-inverse); color: var(--on-inverse); display: flex; gap: var(--space-6); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: inherit; }
@media (prefers-reduced-motion: reduce) { .feature:hover, .mpd-btn:active { transform: none; } }

/* --- Authentification --- */
.auth { background: radial-gradient(50% 50% at 50% 0%, var(--brand-subtle) 0%, transparent 70%), var(--canvas); }
.auth__card { border-color: var(--hairline); box-shadow: 0 20px 50px rgba(30, 15, 28, .08); border-radius: 20px; }
.auth__logo { height: 64px; }

/* --- Boutique publique --- */
.store-hero { background: var(--surface); border-bottom-color: var(--hairline); }
.mpd-card { border-color: var(--hairline); box-shadow: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.mpd-card:hover { box-shadow: 0 14px 30px rgba(30, 15, 28, .09); transform: translateY(-2px); }
.checkout__pay .panel { box-shadow: 0 18px 40px rgba(30, 15, 28, .08); border-radius: 20px; }

.bars__bar--empty { background: var(--hairline); opacity: 1; }

/* Mobile : en-tête sur une ligne, boutons pleine largeur, aucun débordement. */
@media (max-width: 720px) {
  .site-nav { flex-wrap: nowrap; gap: var(--space-3); padding: 10px var(--space-4); }
  .site-nav .mpd-nav__links { display: none; }
  .site-nav .mpd-nav__logo { flex: 1; min-width: 0; }
  .site-nav .mpd-nav__logo img { height: 26px !important; }
  .site-nav [data-theme-toggle] { display: none; }
  .site-nav .mpd-nav__actions .mpd-btn { padding-inline: 12px; }
  .hero .row .mpd-btn { width: 100%; white-space: normal; text-align: center; }
  .eyebrow { font-size: 12.5px; }
  .cta-band { padding: var(--space-8) var(--space-6); border-radius: 22px; }
  .cta-band .mpd-btn { width: 100%; white-space: normal; }
}

/* Couvertures générées (produit sans image) et bannière par défaut */
:root, [data-theme="light"] { --cover-from: #1E0F1C; --cover-to: #4A1430; }
[data-theme="dark"] { --cover-from: #2A1827; --cover-to: #5A1A38; }
.cover { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover--generated { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); padding: var(--space-5, 20px); overflow: hidden; color: #FFFFFF;
  background: radial-gradient(120% 90% at 100% 0%, rgba(167, 0, 30, .55) 0%, transparent 55%), linear-gradient(150deg, var(--cover-from) 0%, var(--cover-to) 100%); }
.cover--generated::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 36px; border: 1.5px solid rgba(255, 255, 255, .12); transform: rotate(18deg); }
.cover__type { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.cover__type .icon { width: 14px; height: 14px; }
.cover__title { position: relative; z-index: 1; font-weight: 800; font-size: 19px; line-height: 24px; letter-spacing: -.4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover--lg { padding: 28px; }
.cover--lg .cover__title { font-size: 30px; line-height: 36px; letter-spacing: -.8px; max-width: 16ch; }
.cover--sm { padding: 0; justify-content: center; align-items: center; }
.cover--sm .cover__type, .cover--sm .cover__title { display: none; }
.mpd-card__media { aspect-ratio: 4 / 3; background: var(--canvas); overflow: hidden; }
.product-cover { display: block; overflow: hidden; padding: 0; border-color: var(--hairline); border-radius: 20px; }
.store-hero__banner { height: 120px; background: radial-gradient(80% 140% at 100% 0%, rgba(167, 0, 30, .45) 0%, transparent 60%), linear-gradient(150deg, var(--cover-from), var(--cover-to)); background-size: cover; background-position: center; }
@media (min-width: 900px) { .store-hero__banner { height: 180px; } }
.store-hero__body { padding-bottom: var(--space-8); }
.store-logo { box-shadow: 0 8px 20px rgba(30, 15, 28, .12); }
.mpd-card__body { padding: 18px 18px 8px; }
.mpd-card__footer { padding: 0 18px 18px; }
.mpd-card__title { font-size: 17px; line-height: 24px; }
.upsell { border: 1.5px solid var(--brand); background: radial-gradient(70% 120% at 100% 0%, var(--brand-subtle) 0%, transparent 60%), var(--surface); box-shadow: 0 14px 34px rgba(167, 0, 30, .08); }

/* Tableaux : colonnes lisibles, défilement horizontal plutôt qu'écrasement. */
.mpd-badge { white-space: nowrap; }
.table th, .table td.num, .table td.right { white-space: nowrap; }
.table td:first-child { min-width: 200px; }
.table .rowlink { white-space: nowrap; }
.table td.wrap-anywhere { min-width: 180px; overflow-wrap: normal; word-break: normal; }
.table td .mpd-btn { white-space: nowrap; }
.table-wrap { -webkit-overflow-scrolling: touch; }

/* Offres : grille adaptative, prix jamais tronqué. */
.grid--3:has(> .plan) { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan__price { font-size: clamp(28px, 2.4vw, 34px); white-space: nowrap; }
.plan__price small { display: inline-block; white-space: nowrap; }

/* Sélecteur de fichier aux couleurs de l'interface. */
.mpd-field__input[type=file] { padding: 6px; cursor: pointer; color: var(--ink-muted); font-size: 14px; }
.mpd-field__input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--canvas); color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background-color .15s var(--ease); }
.mpd-field__input[type=file]::file-selector-button:hover { background: var(--brand-subtle); }
.grid .table td:first-child { min-width: 0; }
.grid .table td.right, .grid .table td.num { padding-left: var(--space-2); }
.dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.dl dd { overflow-wrap: anywhere; }
.dl dt { min-width: 0; }

/* Boutiques multiples */
.store-tile--current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.store-switch { position: relative; }
.store-switch summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--canvas); min-height: 48px; }
.store-switch summary::-webkit-details-marker { display: none; }
.store-switch summary:hover { border-color: var(--border); }
.store-switch .avatar { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
.store-switch__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.store-switch__menu button, .store-switch__menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 14px/20px var(--font-sans); text-align: left; text-decoration: none; }
.store-switch__menu button:hover, .store-switch__menu a:hover { background: var(--canvas); }
.store-switch__menu [aria-current="true"] { color: var(--brand-text); }

/* Templates : miniatures, aperçus, éditeur */
.theme-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.theme-thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.theme-card { overflow: hidden; display: flex; flex-direction: column; }
.theme-card .panel__body { flex: 1; }
.theme-card--current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); display: block; }
@media (max-width: 700px) { .preview-frame { height: 480px; } }
.split { display: grid; gap: var(--space-6); }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.swatch { display: flex; flex-direction: column; gap: 6px; }
.swatch input[type=color] { width: 100%; height: 44px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.code-area { width: 100%; min-height: 340px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; overflow: auto; }
.code-area--sm { min-height: 220px; }
.guide h2 { font-size: 20px !important; line-height: 28px !important; margin-top: var(--space-6); }
.guide h3 { font-size: 16px !important; line-height: 24px !important; margin-top: var(--space-4); }
.guide p, .guide li { color: var(--ink-muted); }
.guide ul { padding-left: 20px; margin: 8px 0; }
.guide code, .code-inline { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--canvas); border: 1px solid var(--hairline); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.guide pre, .prompt-box { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-4); overflow: auto; white-space: pre-wrap; color: var(--ink); margin: 0; }
.prompt-box { max-height: 420px; }
.base-choice { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.base-choice label { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--surface); }
.base-choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.base-choice label span.row { padding: 10px 12px; }
.base-choice input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }

/* =========================  Éditeur visuel  ========================= */
.ed { position: fixed; inset: 0; display: flex; flex-direction: column; background: #F1F1F3; z-index: 1; }
body:has(.ed) .banner-test { display: none; }
.ed-top { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; background: var(--surface-inverse); color: var(--on-inverse); flex: none; }
.ed-top .mpd-btn--ghost { color: inherit; }
.ed-top .mpd-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.ed-top .mpd-btn--outline { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .35); }
.ed-top .mpd-btn--outline:hover { background: rgba(255, 255, 255, .08); }
.ed-name { width: 220px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; font: 700 14px/1 var(--font-sans); color: inherit; background: rgba(255, 255, 255, .08); }
.ed-name::placeholder { color: rgba(255, 255, 255, .6); }
.ed-name:focus { outline: none; border-color: rgba(255, 255, 255, .5); }
.ed-pagesel { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.ed-pagesel select { border: 0; background: transparent; color: inherit; font: 600 14px/1 var(--font-sans); cursor: pointer; padding-right: 4px; }
.ed-pagesel select option { color: var(--ink); }
.ed-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.ed-seg button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; background: transparent; border-radius: 6px; color: inherit; cursor: pointer; opacity: .75; }
.ed-seg button.is-on { background: rgba(255, 255, 255, .2); opacity: 1; }
.ed-flash { padding: 8px 12px 0; display: flex; flex-direction: column; gap: 6px; }
.ed-flash[hidden] { display: none; }
.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 324px minmax(0, 1fr) 320px; }
.ed--full .ed-body { grid-template-columns: 0 minmax(0, 1fr) 0; }
.ed--full .ed-left, .ed--full .ed-right { visibility: hidden; }
.ed-left { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); background: var(--surface); border-right: 1px solid var(--hairline); min-height: 0; }
.ed-rail { display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; border-right: 1px solid var(--hairline); background: var(--surface); }
.ed-rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: 600 10.5px/12px var(--font-sans); cursor: pointer; }
.ed-rail button:hover { background: var(--canvas); color: var(--ink); }
.ed-rail button.is-on { background: var(--canvas); color: var(--ink); box-shadow: inset 2px 0 0 var(--brand); }
.ed-leftbody { overflow-y: auto; padding: 12px; min-height: 0; }
.ed-right { background: var(--surface); border-left: 1px solid var(--hairline); overflow-y: auto; padding: 14px; min-height: 0; }
.ed-panel { display: flex; flex-direction: column; gap: 10px; }
.ed-panel[hidden] { display: none; }
.ed-ptitle { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.ed-group { margin: 10px 0 0; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-subtle); }
.ed-note { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.ed-start { border: 1px solid var(--hairline); border-radius: 10px; background: var(--canvas); }
.ed-start summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 9px 11px; font: 700 13px/18px var(--font-sans); cursor: pointer; }
.ed-start summary::-webkit-details-marker { display: none; }
.ed-start summary .icon:last-child { margin-left: auto; transition: transform .15s; }
.ed-start[open] summary .icon:last-child { transform: rotate(180deg); }
.ed-start .ed-note { padding: 0 11px; }
.ed-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 11px 11px; }
.ed-preset { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-align: left; cursor: pointer; font-family: var(--font-sans); }
.ed-preset strong { font-size: 13px; color: var(--ink); }
.ed-preset span { font-size: 11.5px; line-height: 15px; color: var(--ink-muted); }
.ed-preset:hover { border-color: var(--ink); }
.ed-tree { display: flex; flex-direction: column; gap: 4px; }
.ed-tgroup { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.ed-tgroup:last-child { border-bottom: 0; }
.ed-tgroup-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ed-tgroup-title small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-subtle); }
.ed-node { position: relative; display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 6px; border-radius: 8px; font: 500 13px/18px var(--font-sans); color: var(--ink); cursor: pointer; border: 1px solid transparent; user-select: none; }
.ed-node:hover { background: var(--canvas); }
.ed-node:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.ed-node.is-sel { background: #EAF1FE; color: #1B4FB8; }
.ed-node.is-section { font-weight: 600; }
.ed-node.is-col { padding-left: 32px; min-height: 26px; color: var(--ink-subtle); font-size: 12px; cursor: default; }
.ed-node.is-block { padding-left: 38px; }
.ed-node.is-block.is-deep { padding-left: 48px; }
.ed-node.is-hidden > :not(.ed-eye) { opacity: .45; }
.ed-node.is-drop { border-color: #2563EB; border-style: dashed; }
.ed-node.is-drag { opacity: .4; }
.ed-node-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-node-label span, .ed-node-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-node-label small { font-size: 11.5px; color: var(--ink-subtle); font-weight: 500; }
.ed-caret { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: var(--ink-subtle); cursor: pointer; border-radius: 4px; }
.ed-caret .icon { transition: transform .15s; }
.ed-caret.is-open .icon { transform: rotate(90deg); }
.ed-grip { display: none; color: var(--ink-subtle); cursor: grab; }
.ed-node:hover .ed-grip { display: inline-flex; position: absolute; left: -2px; }
.ed-eye { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--ink-subtle); border-radius: 6px; cursor: pointer; opacity: 0; }
.ed-node:hover .ed-eye, .ed-node.is-hidden .ed-eye, .ed-node.is-sel .ed-eye, .ed-eye:focus-visible { opacity: 1; }
.ed-eye:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.ed-add { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #1B4FB8; font: 600 13px/18px var(--font-sans); cursor: pointer; text-align: left; }
.ed-add:hover { background: #EAF1FE; }
.ed-add.is-block { padding-left: 38px; font-size: 12.5px; }
.ed-add.is-block.is-deep { padding-left: 48px; }
.ed-add.is-drop { border-color: #2563EB; border-style: dashed; }
.ed-picker { position: absolute; top: 8px; left: 64px; right: 8px; bottom: 8px; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.ed-picker[hidden] { display: none; }
.ed-picker-head { display: flex; align-items: center; justify-content: space-between; }
.ed-search { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--ink-subtle); }
.ed-search input { flex: 1; border: 0; outline: none; font: 14px var(--font-sans); background: transparent; color: var(--ink); }
.ed-picker-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.ed-pick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; font-family: var(--font-sans); color: var(--ink); }
.ed-pick:hover { background: var(--canvas); border-color: var(--hairline); }
.ed-pick:disabled { opacity: .45; cursor: not-allowed; }
.ed-pick strong { display: block; font-size: 13.5px; }
.ed-pick small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ed-pick-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--canvas); color: var(--ink-muted); }
.ed-canvas { overflow: hidden; padding: 16px; display: flex; justify-content: center; min-height: 0; }
.ed--full .ed-canvas { padding: 0; }
.ed-frame { position: relative; width: 100%; height: 100%; background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06); transition: max-width .2s; }
.ed--full .ed-frame { border-radius: 0; }
.ed-frame.is-mobile { max-width: 390px; }
.ed-frame iframe { position: absolute; top: 0; left: 0; border: 0; display: block; transform-origin: 0 0; }
.ed-crumbs { margin: 0; font-size: 12px; color: var(--ink-subtle); }
.ed-rhead { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 16px; }
.ed-empty { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.ed-form { display: flex; flex-direction: column; gap: 16px; }
.ed-f { display: flex; flex-direction: column; gap: 6px; }
.ed-f-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ed-f-help { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.ed-f input[type=text], .ed-f input[type=url], .ed-f select, .ed-f textarea { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; font: 14px/20px var(--font-sans); color: var(--ink); background: var(--surface); }
.ed-f textarea { min-height: 90px; resize: vertical; }
.ed-f input:focus, .ed-f select:focus, .ed-f textarea:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.ed-color { display: flex; gap: 8px; }
.ed-color input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; flex: none; }
.ed-color .ed-hex { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.ed-f.is-toggle { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.ed-switch { position: relative; width: 36px; height: 20px; flex: none; }
.ed-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ed-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background-color .15s; pointer-events: none; }
.ed-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ed-switch input:checked + i { background: var(--ink); }
.ed-switch input:checked + i::after { transform: translateX(16px); }
.ed-switch input:focus-visible + i { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ed-segf { display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--canvas); border: 1px solid var(--hairline); }
.ed-segf button { flex: 1; display: grid; place-items: center; min-height: 30px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font: 600 12.5px/16px var(--font-sans); cursor: pointer; }
.ed-segf button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(30, 15, 28, .14); }
.ed-chips { display: flex; gap: 6px; }
.ed-chips button { min-width: 38px; min-height: 28px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-muted); font: 700 12px/16px var(--font-sans); cursor: pointer; }
.ed-chips button.is-on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ed-range { display: flex; align-items: center; gap: 10px; }
.ed-range input[type=range] { flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ed-range input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--fill, 0%), var(--border) var(--fill, 0%)); }
.ed-range input[type=range]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--border); }
.ed-range input[type=range]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ink); }
.ed-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ed-range input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink); }
.ed-range input[type=range]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.ed-range-box { display: flex; align-items: center; width: 82px; height: 32px; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; flex: none; }
.ed-range-num { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 8px; border: 0; font: 600 13px var(--font-sans); color: var(--ink); background: transparent; -moz-appearance: textfield; }
.ed-range-num::-webkit-outer-spin-button, .ed-range-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ed-range-num:focus { outline: none; }
.ed-unit { padding: 0 8px 0 2px; font-size: 12px; color: var(--ink-subtle); }
.ed-imgbox { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--canvas); color: var(--ink-subtle); font-size: 13px; }
.ed-imgbox img { width: 100%; height: 100%; object-fit: cover; }
.ed-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
@media (max-width: 1200px) { .ed-body { grid-template-columns: 290px minmax(0, 1fr) 280px; } .ed-name { width: 160px; } }
@media (max-width: 900px) {
  .ed { position: static; min-height: 100vh; }
  .ed-top { height: auto; flex-wrap: wrap; padding: 8px; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-left { min-height: 420px; }
  .ed-canvas { order: -1; height: 70vh; padding: 8px; }
  .ed-hide-sm { display: none; }
}

/* Contenu de la boutique (vendeur) : aperçu cliquable et champs */
.ed-body--content { grid-template-columns: minmax(0, 1fr) 380px; }
.ce-frame iframe { position: static; width: 100%; height: 100%; }
.ce-panel { display: flex; flex-direction: column; gap: 12px; }
.ce-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--info-subtle); color: var(--info); }
.ce-help p { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.ce-fields { display: flex; flex-direction: column; gap: 10px; }
.ce-field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ce-field.is-sel { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.ce-field-head { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ce-field-head span:not(.ce-dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563EB; flex: none; }
.ce-field.is-changed .ce-field-head::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2563EB; flex: none; }
.ce-field.is-changed .ce-dot { display: none; }
.ce-reset { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: 600 12.5px/1 var(--font-sans); cursor: pointer; }
.ce-reset:hover { background: var(--canvas); color: var(--ink); }
.ce-field:not(.is-changed) .ce-reset, .ce-field.is-off .ce-reset { display: none; }
.ce-eye { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.ce-eye:hover { background: var(--canvas); color: var(--ink); }
.ce-eye-off, .ce-field.is-off .ce-eye-on { display: none; }
.ce-field.is-off .ce-eye-off { display: inline-flex; }
.ce-field.is-off { background: var(--canvas); }
.ce-field.is-off > :not(legend):not(.ce-off-note) { display: none; }
.ce-field.is-off .ce-field-head span:not(.ce-dot) { text-decoration: line-through; color: var(--ink-subtle); }
.ce-off-note { display: none; margin: 0; font-size: 12.5px; color: var(--ink-subtle); }
.ce-field.is-off .ce-off-note { display: block; }
.ce-field--section { gap: 0; padding: 8px 10px; border-style: dashed; }
.ce-field--section:not(.is-off) .ce-off-note { display: none; }
.ce-minimal { padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.ce-resetall { padding-top: 8px; border-top: 1px solid var(--hairline); }
.ce-field label.is-loading { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .ed-body--content { grid-template-columns: 1fr; } }

/* Choix du mode de création et éditeur de code */
.choose-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
.choose-card:hover { border-color: var(--ink); box-shadow: 0 14px 30px rgba(30, 15, 28, .08); transform: translateY(-2px); }
.choose-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-subtle); color: var(--brand-text); }
.code-editor { overflow: hidden; }
.code-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: #1E0F1C; overflow-x: auto; }
.code-tabs button { border: 0; padding: 9px 14px; border-radius: 8px 8px 0 0; background: transparent; color: #C9B8C5; font: 600 13px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; white-space: nowrap; }
.code-tabs button small { font-family: var(--font-sans); font-weight: 500; opacity: .7; margin-left: 4px; }
.code-tabs button.is-on { background: #2A1827; color: #FFFFFF; }
.code-pane { background: #2A1827; }
.code-pane[hidden] { display: none; }
.code-pane .code-area { display: block; width: 100%; min-height: 460px; padding: 18px 20px; border: 0; border-radius: 0; background: #2A1827; color: #F7F1F4; caret-color: #FF8A9B; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.code-pane .code-area:focus { outline: none; box-shadow: inset 0 0 0 2px #FF8A9B; }
.code-pane .code-area::placeholder { color: #8E7A8A; }
.code-error { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 20px; background: var(--danger-subtle); color: var(--danger); font-size: 14px; font-weight: 600; }
.code-report { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--hairline); }
.code-report[hidden] { display: none; }
.code-bar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--hairline); background: var(--surface); }
.ed-frame iframe[hidden] { display: none; }

/* Aperçu des polices (page Apparence) */
.font-preview { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-alt); }
.font-preview__title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.font-preview__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }

/* =========================  Accueil, vitrine et illustrations  ========================= */
/* Apparition douce des blocs au défilement (désactivée si l'utilisateur réduit les animations). */
[data-reveal] { opacity: 1; }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(167, 0, 30, .22), transparent); filter: blur(10px); animation: mpd-pulse 6s ease-in-out infinite; }
.phone { animation: mpd-float 7s ease-in-out infinite; }
.phone__cover--img { position: relative; padding: 0; overflow: hidden; background: var(--art-bg); }
.phone__cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% 22%; transform: scale(1.65); transform-origin: 18% 22%; }
.phone__cover--img span { position: relative; z-index: 1; padding: 14px; width: 100%; background: linear-gradient(to top, rgba(11, 5, 8, .92), rgba(11, 5, 8, 0)); }
.phone__pay { position: relative; overflow: hidden; }
.phone__pay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-100%); animation: mpd-shine 4.5s ease-in-out infinite 1.2s; }
.phone__pay-label { position: relative; z-index: 1; }
.float-card { animation: mpd-pop .7s cubic-bezier(.2, .9, .3, 1.3) both, mpd-bob 5s ease-in-out infinite; }
.float-card--a { animation-delay: .9s, 1.6s; }
.float-card--b { animation-delay: 1.6s, 2.3s; }
.float-card--a .icon { animation: mpd-ping 2.6s ease-out infinite 2s; }
@keyframes mpd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mpd-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes mpd-pop { from { opacity: 0; transform: scale(.7) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mpd-ping { 0% { box-shadow: 0 0 0 0 rgba(21, 122, 74, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(21, 122, 74, 0); } }
@keyframes mpd-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes mpd-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .phone, .float-card, .float-card .icon, .hero-glow, .phone__pay::after, .mk-card, .showcase__art { animation: none !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* En-têtes de section avec action */
.mk-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.mk-section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -1px; }
.mk-section-head p { margin-top: var(--space-2); max-width: 560px; font-size: 17px; line-height: 26px; }
.kicker--light { color: var(--art-accent); }

/* Catégories */
.mk-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mk-cats a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.mk-cats a:hover { border-color: var(--ink); }
.mk-cats a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Cartes produit */
.mk-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mk-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mk-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 15, 28, .12); border-color: transparent; }
.mk-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.mk-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mk-card:hover .mk-card__media img { transform: scale(1.05); }
.mk-tone-0 { background: linear-gradient(135deg, var(--on-art-ink), var(--tone-wine)); }
.mk-tone-1 { background: linear-gradient(135deg, var(--brand), var(--tone-ember)); }
.mk-tone-2 { background: linear-gradient(135deg, var(--tone-plum), var(--brand)); }
.mk-tone-3 { background: linear-gradient(135deg, var(--tone-rust), var(--tone-amber)); }
.mk-card__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; color: var(--on-art); font-weight: 800; font-size: 18px; line-height: 1.25; }
.mk-card__ph .icon { width: 28px; height: 28px; opacity: .7; }
.mk-chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12px; font-weight: 700; }
.mk-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.mk-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--brand-text); }
.mk-card__title { font-size: 16.5px; line-height: 1.35; }
.mk-card__store { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.mk-card__price { margin-top: 6px; font-size: 18px; font-weight: 800; }
.mk-card__price s { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ink-subtle); }
.mk-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--space-8) var(--space-4); border: 1px dashed var(--border-strong); border-radius: 20px; text-align: center; }
.mk-empty > .icon { width: 32px; height: 32px; color: var(--ink-subtle); }
.mk-empty__art { width: min(420px, 100%); height: auto; border-radius: 16px; margin-bottom: var(--space-2); }

/* En-tête du catalogue */
.mk-head { background: var(--art-bg); color: var(--on-art); overflow: hidden; }
.mk-head__in { display: grid; gap: var(--space-6); align-items: center; padding-block: var(--space-12) 0; }
.mk-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -1.5px; color: var(--on-art); }
.mk-head .lead { margin-top: var(--space-3); font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .78); max-width: 520px; }
.mk-head__art { width: 100%; height: auto; display: block; mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.mk-search { display: flex; align-items: center; gap: 10px; margin-top: var(--space-6); max-width: 520px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--on-art); color: var(--ink-subtle); }
.mk-search input { flex: 1; min-width: 0; min-height: 40px; border: 0; outline: none; font: 16px var(--font-sans); color: var(--on-art-ink); background: transparent; }
@media (min-width: 900px) { .mk-head__in { grid-template-columns: 1fr 1fr; padding-block: var(--space-12); } }

/* Bandeau sombre illustré (templates) */
.showcase { background: var(--art-bg); color: var(--on-art); overflow: hidden; }
.showcase__in { display: grid; gap: var(--space-8); align-items: center; }
.showcase h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -1px; color: var(--on-art); }
.showcase__text p:not(.kicker) { margin: var(--space-4) 0 var(--space-6); font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .78); max-width: 520px; }
.showcase__link { color: var(--on-art); font-weight: 600; }
.showcase__art { width: 100%; height: auto; display: block; mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); animation: mpd-float 9s ease-in-out infinite; }
.showcase__themes { margin-top: var(--space-8); }
.showcase .theme-card { background: var(--on-art); color: var(--on-art-ink); }
.mpd-btn--light { background: var(--on-art); color: var(--on-art-ink); }
.mpd-btn--light:hover { background: var(--on-art-soft); }
@media (min-width: 900px) { .showcase__in { grid-template-columns: 1fr 1.1fr; } }

/* Affiliation */
.aff { display: grid; gap: var(--space-8); align-items: center; }
.aff h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -1px; }
.aff__art { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px rgba(30, 15, 28, .18); }
.aff__steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aff__steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.aff__steps span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--brand-subtle); color: var(--brand-text); font-weight: 800; font-size: 14px; }
.aff__offers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.aff-offer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.aff-offer:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(30, 15, 28, .08); }
.aff-offer__rate { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--tone-ember)); color: var(--on-art); font-weight: 800; font-size: 17px; }
.aff-offer__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aff-offer__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-offer__gain { font-size: 13.5px; font-weight: 700; color: var(--success); }
@media (min-width: 900px) { .aff { grid-template-columns: 1fr 1fr; } }

/* Comment ça marche */
.how { display: grid; gap: var(--space-8); align-items: center; }
.how__steps { display: flex; flex-direction: column; gap: var(--space-4); }
.how__steps .step { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); }
.how__steps .step__n { margin: 0; flex: none; }
.how__art { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px rgba(30, 15, 28, .16); }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }

/* Bandeau final illustré */
.cta-band--art { position: relative; overflow: hidden; background: var(--art-bg); min-height: 320px; align-items: center; }
.cta-band__art { position: absolute; right: -4%; bottom: 0; height: 115%; width: auto; mask-image: linear-gradient(to right, transparent 0%, #000 35%); opacity: .95; }
@media (max-width: 800px) { .cta-band__art { opacity: .28; right: -30%; } }

/* Connexion et inscription : formulaire + illustration */
.auth--split { padding: 0; place-items: stretch; background: var(--surface); }
.auth--split .auth__card { align-self: center; justify-self: center; margin: var(--space-8) var(--space-4); border: 0; box-shadow: none; }
.auth__art { display: none; }
@media (min-width: 1000px) {
  .auth--split { grid-template-columns: minmax(440px, 1fr) minmax(0, 1.15fr); }
  .auth__art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; margin: 16px; border-radius: 28px; background: var(--art-bg); color: var(--on-art); }
  .auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: mpd-zoom 22s ease-in-out infinite alternate; }
  .auth__quote { position: relative; padding: 40px; background: linear-gradient(to top, rgba(0, 0, 0, .9) 30%, rgba(0, 0, 0, 0)); }
  .auth__quote-title { margin: 0 0 14px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
  .auth__quote ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .85); font-weight: 600; }
  .auth__quote li { display: flex; align-items: center; gap: 10px; }
  .auth__quote .icon { color: var(--art-accent); }
}
@keyframes mpd-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .auth__art img { animation: none; } }

/* Tableau de bord : bandeau d'accueil illustré */
.welcome { position: relative; display: flex; align-items: center; overflow: hidden; min-height: 220px; border-radius: 20px; background: var(--art-bg); color: var(--on-art); }
.welcome__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px; max-width: 560px; }
.welcome__kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--art-accent); }
.welcome h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.5px; color: var(--on-art); }
.welcome p { margin: 0; color: rgba(255, 255, 255, .78); }
.welcome__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.welcome__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: var(--on-art); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .15s; }
.welcome__btn:hover { background: rgba(255, 255, 255, .2); }
.welcome__art { position: absolute; right: 0; top: 50%; height: 130%; width: auto; transform: translateY(-50%); mask-image: linear-gradient(to right, transparent 5%, #000 50%); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, .85) 45%, rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.welcome__text { z-index: 2; }
@media (max-width: 860px) { .welcome__art { opacity: .25; } }

/* =========================  Accueil (refonte, style « blocs francs »)  ========================= */
.lp-section { padding-block: 56px; }
.lp-section--tight { padding-block: 8px 24px; }
.lp-section--alt { background: var(--canvas); }
@media (min-width: 900px) { .lp-section { padding-block: 96px; } .lp-section--tight { padding-block: 8px 32px; } }
.lp-h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -1.2px; font-weight: 800; }
.lp-p { font-size: 17px; line-height: 27px; color: var(--ink-muted); }
.lp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-head--center { justify-content: center; text-align: center; }
.lp-head--center .lp-p { margin: 12px auto 0; max-width: 520px; }
.lp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.lp-link:hover { color: var(--brand-text); }
.lp-link:hover .icon { transform: translateX(3px); }
.lp-link .icon { transition: transform .2s ease; }
.lp-link--light { color: var(--on-art); }
.lp-link--light:hover { color: var(--art-accent-soft); }

/* 1. Accueil */
.lp-hero { position: relative; overflow: hidden; background: var(--surface); }
.lp-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, var(--brand-subtle), transparent); pointer-events: none; }
.lp-hero__grid { position: relative; display: grid; gap: 40px; align-items: center; padding-block: 32px 48px; }
.lp-hero__copy { min-width: 0; }
.lp-hero__title { margin-top: 20px; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; }
.lp-hero__title em { font-style: normal; color: var(--brand-text); }
.lp-hero__lead { margin: 20px 0 28px; max-width: 540px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.lp-hero__cta { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.lp-search { display: flex; align-items: center; gap: 10px; margin-top: 28px; max-width: 520px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--ink-subtle); transition: border-color .2s, box-shadow .2s; }
.lp-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--brand-subtle); }
.lp-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: none; background: transparent; font: 16px var(--font-sans); color: var(--ink); }
.lp-search__btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--ink); color: var(--surface); cursor: pointer; transition: background-color .2s; }
.lp-search__btn:hover { background: var(--ink-muted); }
.lp-pay { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.lp-pay li { padding: 6px 12px; border-radius: 999px; background: var(--surface-alt); font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.lp-hero__visual { position: relative; min-width: 0; }
.lp-block { position: relative; padding: 36px 20px; border-radius: 32px; background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%); overflow: visible; }
.lp-block__dots { position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px); background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.lp-block .phone { max-width: 300px; }
.lp-block .float-card--a { left: -8px; bottom: 24px; }
.lp-block .float-card--b { right: -8px; top: 40px; }
@media (min-width: 900px) {
  .lp-hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; padding-block: 64px 96px; }
  .lp-block { padding: 48px 40px; }
  .lp-block .float-card--a { left: -40px; bottom: 48px; }
  .lp-block .float-card--b { right: -32px; top: 64px; }
}
@media (max-width: 520px) { .lp-block .float-card { display: flex; font-size: 12px; padding: 8px 10px; } .lp-block .float-card strong { font-size: 13px; } .lp-block .float-card .icon { width: 26px; height: 26px; } }

/* 2. Catégories */
.lp-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-cat { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.25; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.lp-cat:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 15, 28, .08); }
.lp-cat:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.lp-cat__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-subtle); color: var(--brand-text); }
@media (min-width: 900px) { .lp-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .lp-cat { min-height: 76px; padding: 14px 18px; font-size: 15.5px; } }

/* 4. Bloc sombre (templates) */
.lp-dark { position: relative; display: grid; gap: 24px; overflow: hidden; padding: 32px 20px; border-radius: 32px; background: var(--art-bg); color: var(--on-art); }
.lp-dark .lp-h2 { color: var(--on-art); }
.lp-dark__copy { position: relative; z-index: 1; }
.lp-dark__copy > p:not(.kicker) { margin: 16px 0 24px; max-width: 520px; font-size: 17px; line-height: 27px; color: rgba(255, 255, 255, .78); }
.lp-dark__art { width: 100%; height: auto; mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.lp-dark__themes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lp-theme { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--on-art); color: var(--on-art-ink); text-decoration: none; transition: transform .25s ease; }
.lp-theme:hover { transform: translateY(-4px); }
.lp-theme__meta { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
@media (min-width: 900px) {
  .lp-dark { grid-template-columns: 1fr 1fr; align-items: center; padding: 56px; }
  .lp-dark__themes { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 5. Affiliation */
.lp-split { display: grid; gap: 32px; align-items: center; }
.lp-split__art { overflow: hidden; border-radius: 28px; background: var(--art-bg); }
.lp-split__art img { display: block; width: 100%; height: auto; }
.lp-steps-mini { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-steps-mini li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.lp-steps-mini span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--ink); color: var(--surface); font-weight: 800; font-size: 14px; }
@media (min-width: 900px) { .lp-split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* 6. Grille en blocs */
.lp-bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.lp-tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.lp-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30, 15, 28, .08); }
.lp-tile > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-subtle); color: var(--brand-text); }
.lp-tile h3 { font-size: 19px; line-height: 1.25; }
.lp-tile p { margin: 0; color: var(--ink-muted); }
.lp-tile--brand { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); border-color: transparent; color: var(--on-art); }
.lp-tile--brand h3 { color: var(--on-art); font-size: 24px; }
.lp-tile--brand p { color: rgba(255, 255, 255, .85); max-width: 460px; }
.lp-tile--brand > .icon { background: rgba(255, 255, 255, .16); color: var(--on-art); }
.lp-tile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.lp-tile__chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; }
.lp-tile--art { position: relative; justify-content: flex-end; min-height: 320px; overflow: hidden; padding: 0; background: var(--art-bg); border-color: transparent; color: var(--on-art); }
.lp-tile--art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transition: transform .6s ease; }
.lp-tile--art:hover img { transform: scale(1.04); }
.lp-tile--art div { position: relative; padding: 24px; background: linear-gradient(to top, rgba(0, 0, 0, .92) 40%, transparent); }
.lp-tile--art h3 { color: var(--on-art); }
.lp-tile--art p { color: rgba(255, 255, 255, .82); }
@media (min-width: 700px) { .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-tile--wide { grid-column: span 2; } }
@media (min-width: 1000px) {
  .lp-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
  .lp-tile--wide { grid-column: span 2; }
  .lp-tile--tall { grid-row: span 2; }
}

/* 7. Étapes */
.lp-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.lp-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 24px; border-radius: 24px; background: var(--surface-alt); }
.lp-steps li > .icon { width: 28px; height: 28px; color: var(--brand-text); }
.lp-steps h3 { font-size: 19px; }
.lp-steps p { margin: 0; color: var(--ink-muted); }
.lp-steps__n { position: absolute; top: 18px; right: 22px; font-size: 56px; line-height: 1; font-weight: 800; color: var(--border); }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* 9. Appel final */
.lp-final { position: relative; display: grid; overflow: hidden; border-radius: 32px; background: var(--art-bg); color: var(--on-art); }
.lp-final__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px 24px; }
.lp-final .lp-h2 { color: var(--on-art); }
.lp-final__copy p { margin: 0; max-width: 440px; font-size: 17px; line-height: 27px; color: rgba(255, 255, 255, .8); }
.lp-final__art { width: 100%; height: auto; margin-top: -24px; mask-image: linear-gradient(to bottom, transparent, #000 30%); }
@media (min-width: 900px) {
  .lp-final { grid-template-columns: 1fr 1.1fr; align-items: center; min-height: 380px; }
  .lp-final__copy { padding: 56px; }
  .lp-final__art { margin: 0; height: 100%; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 35%); }
}

/* Menu mobile */
.site-menu { position: relative; display: none; }
.site-menu summary { list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu__close, .site-menu[open] .site-menu__open { display: none; }
.site-menu[open] .site-menu__close { display: inline-flex; }
.site-menu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; width: min(300px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 20px 50px rgba(30, 15, 28, .16); }
.site-menu__panel a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-menu__panel a:hover { background: var(--surface-alt); }
@media (max-width: 899px) { .site-menu { display: block; } .site-nav__login { display: none; } }

/* Pied de page */
.site-footer { margin-top: 0; padding-block: 56px 28px; background: var(--footer-bg); color: rgba(255, 255, 255, .78); }
.site-footer__top { display: grid; gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 380px; }
.site-footer__brand p { margin: 0; font-size: 15px; line-height: 24px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.site-footer__cols h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--on-art); }
.site-footer__cols div { display: flex; flex-direction: column; }
.site-footer__cols a { display: inline-flex; align-items: center; min-height: 36px; color: rgba(255, 255, 255, .72); font-size: 15px; text-decoration: none; transition: color .15s; }
.site-footer__cols a:hover { color: var(--on-art); }
.site-footer a:focus-visible { outline: 2px solid var(--on-art); outline-offset: 2px; border-radius: 4px; }
.site-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.site-footer__pay ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__pay li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: var(--on-art); font-weight: 600; font-size: 13px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 24px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.site-footer__secure { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 900px) {
  .site-footer { padding-block: 80px 32px; }
  .site-footer__top { grid-template-columns: 1.1fr 1.9fr; gap: 64px; }
  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .lp-cat, .lp-tile, .lp-theme, .lp-tile--art img { transition: none; } }
.site-menu summary { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; cursor: pointer; }
.site-menu summary > span { display: inline-flex; }
.site-menu summary .icon { width: 22px; height: 22px; }
.lp-hero__cta .mpd-btn, .lp-final .mpd-btn, .site-footer__brand .mpd-btn { white-space: normal; text-align: center; }
@media (max-width: 520px) { .lp-hero__cta .mpd-btn { width: 100%; } }
.site-menu:not([open]) summary > .site-menu__close, .site-menu[open] summary > .site-menu__open { display: none; }


/* Accueil : téléphone seul, agrandi (sans bloc de couleur derrière) */
.lp-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 16px; }
.lp-stage .phone { width: min(80%, 430px); max-width: none; }
.lp-stage .phone__body { gap: 14px; padding: 18px; }
.lp-stage .float-card--a { left: 0; bottom: 64px; }
.lp-stage .float-card--b { right: 0; top: 120px; }
@media (min-width: 900px) {
  .lp-hero__grid { grid-template-columns: 1fr 1fr; }
  .lp-stage .float-card--a { left: -12px; bottom: 96px; }
  .lp-stage .float-card--b { right: -12px; top: 150px; }
}
@media (max-width: 520px) { .lp-stage .phone { width: 86%; } .lp-stage .float-card { font-size: 12px; padding: 8px 10px; } .lp-stage .float-card .icon { width: 26px; height: 26px; } }

/* Photo de profil */
.pp { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-alt); }
.pp--default { background: var(--brand-subtle); color: var(--brand-text); }
.pp--default .icon { width: 55%; height: 55%; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }

/* Barre de navigation du site : barre arrondie, liens en pilules, profil */
.topbar { position: sticky; top: 0; z-index: 25; padding: 10px 12px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar__in { display: flex; align-items: center; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 8px 8px 8px 18px; border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); box-shadow: 0 6px 24px rgba(30, 15, 28, .06); }
.topbar__logo { display: inline-flex; flex: none; }
.topbar__pills { display: none; align-items: center; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--surface-alt); }
.topbar__pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--ink-muted); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.topbar__pills a:hover { color: var(--ink); }
.topbar__pills a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(30, 15, 28, .12); }
.topbar__pills a:focus-visible, .topbar__round:focus-visible, .topbar__profile summary:focus-visible, .topbar__profile-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar__round { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--hairline); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; transition: background-color .2s; }
.topbar__round:hover { background: var(--surface-alt); }
.topbar__round .icon { width: 20px; height: 20px; }
.topbar__round::-webkit-details-marker { display: none; }
.topbar__profile { position: relative; }
.topbar__profile summary { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 2px 8px 2px 2px; border-radius: 999px; cursor: pointer; list-style: none; color: var(--ink-muted); }
.topbar__profile summary::-webkit-details-marker { display: none; }
.topbar__profile summary:hover { background: var(--surface-alt); }
.topbar__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; width: 280px; padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 20px 50px rgba(30, 15, 28, .16); }
.topbar__who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.topbar__who > span { display: flex; flex-direction: column; min-width: 0; }
.topbar__menu a, .topbar__menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 600 14.5px var(--font-sans); text-decoration: none; cursor: pointer; text-align: left; }
.topbar__menu a:hover, .topbar__menu button:hover { background: var(--surface-alt); }
.topbar__profile-link { display: inline-flex; border-radius: 50%; }
.topbar__profile-link .pp { transition: transform .2s; }
.topbar__profile-link:hover .pp { transform: scale(1.06); }
@media (min-width: 900px) { .topbar { padding: 14px 24px; } .topbar__pills { display: flex; } }
@media (max-width: 640px) { .topbar__cta { display: none; } .topbar__in { padding-left: 14px; } }
@media (max-width: 899px) { .topbar [data-theme-toggle] { display: none; } }

/* =========================  Connexion / inscription : carte à bascule  ========================= */
.ax { --ax-ease: cubic-bezier(.77, 0, .18, 1); --ax-time: .95s; position: relative; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; overflow: hidden; background: radial-gradient(60% 60% at 15% 10%, var(--tone-plum), transparent 70%), radial-gradient(50% 50% at 90% 90%, var(--tone-wine), transparent 70%), var(--on-art-ink); }
.ax__bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02)); pointer-events: none; animation: ax-drift 14s ease-in-out infinite alternate; }
.ax__bubble--1 { width: 180px; height: 180px; top: 6%; left: 4%; }
.ax__bubble--2 { width: 90px; height: 90px; bottom: 10%; left: 18%; animation-duration: 11s; }
.ax__bubble--3 { width: 260px; height: 260px; bottom: -60px; right: 6%; animation-duration: 17s; }
@keyframes ax-drift { from { transform: translate(0, 0); } to { transform: translate(24px, -30px); } }

.ax__card { position: relative; width: min(1120px, 100%); min-height: 680px; border-radius: 36px; overflow: hidden; background: linear-gradient(160deg, var(--tone-plum) 0%, var(--on-art-ink) 70%); box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }

/* Illustration (panneau clair à bord arrondi) */
.ax__art { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 58%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 72px 56px 48px; background: var(--on-art); color: var(--on-art-ink);
  border-radius: 0 46% 38% 0 / 0 56% 44% 0; transition: transform var(--ax-time) var(--ax-ease), border-radius var(--ax-time) var(--ax-ease); will-change: transform; }
.ax[data-mode="register"] .ax__art { transform: translateX(72.414%); border-radius: 46% 0 0 38% / 56% 0 0 44%; }
.ax__logo { position: absolute; top: 32px; left: 40px; display: inline-flex; transition: left var(--ax-time) var(--ax-ease); }
.ax[data-mode="register"] .ax__art .ax__logo { left: calc(100% - 40px - 210px); }
.ax__blob { position: relative; width: 86%; aspect-ratio: 1.25; overflow: hidden; background: var(--art-bg); border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%; box-shadow: 0 30px 60px rgba(30, 15, 28, .22); animation: ax-morph 12s ease-in-out infinite alternate; }
@keyframes ax-morph { 0% { border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%; } 100% { border-radius: 44% 56% 58% 42% / 46% 56% 44% 54%; } }
.ax__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease .25s, transform 1.2s var(--ax-ease); }
.ax__img--register, .ax[data-mode="register"] .ax__img--login { opacity: 0; transform: scale(1.08); }
.ax[data-mode="register"] .ax__img--register { opacity: 1; transform: none; }
.ax__caption { position: relative; width: 80%; min-height: 56px; text-align: center; }
.ax__caption p { position: absolute; inset: 0; margin: 0; font-size: 19px; line-height: 1.4; font-weight: 700; transition: opacity .5s ease .35s, transform .6s ease .35s; }
.ax__caption-register, .ax[data-mode="register"] .ax__caption-login { opacity: 0; transform: translateY(10px); }
.ax[data-mode="register"] .ax__caption-register { opacity: 1; transform: none; }
.ax__dot { position: absolute; border-radius: 50%; background: var(--brand-subtle); animation: mpd-bob 6s ease-in-out infinite; }
.ax__dot--a { width: 64px; height: 64px; top: 16%; right: 16%; }
.ax__dot--b { width: 28px; height: 28px; bottom: 20%; left: 12%; animation-delay: 1s; }
.ax__dot--c { width: 40px; height: 40px; bottom: 12%; right: 26%; animation-delay: 2s; opacity: .7; }
.ax__foot { position: absolute; bottom: 22px; left: 40px; font-size: 12.5px; color: var(--ink-subtle); }

/* Formulaires (panneau sombre) */
.ax__forms { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 42%; display: grid; align-items: center; padding: 48px 52px; color: var(--on-art); transition: transform var(--ax-time) var(--ax-ease); }
.ax[data-mode="register"] .ax__forms { transform: translateX(-138.095%); }
.ax__forms > .alert, .ax__forms > div:not(.ax__form) { grid-area: 1 / 1; align-self: start; position: relative; z-index: 2; }
.ax__form { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; transition: opacity .45s ease, transform .6s var(--ax-ease), visibility 0s linear .6s; }
.ax__form[inert] { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.ax__form:not([inert]) { transition-delay: .4s, .4s, 0s; }
.ax__form h1 { margin: 0; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -1px; color: var(--on-art); }
.ax__intro { margin: -6px 0 6px; color: rgba(255, 255, 255, .7); }
.ax__fields { display: flex; flex-direction: column; gap: 14px; }
.ax .mpd-field__label { color: var(--on-art); }
.ax .mpd-field__input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: var(--on-art); border-radius: 14px; }
.ax .mpd-field__input::placeholder { color: rgba(255, 255, 255, .45); }
.ax .mpd-field__input:focus { outline: none; border-color: var(--on-art); box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.ax select.mpd-field__input option { color: var(--on-art-ink); }
.ax .mpd-field__help { color: rgba(255, 255, 255, .66); }
.ax .mpd-field--error .mpd-field__help { color: var(--art-accent); }
.ax .mpd-field--error .mpd-field__input { border-color: var(--art-accent); }
.ax__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ax__row a, .ax__switch a { color: var(--art-accent-soft); font-weight: 700; }
.ax__check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.ax__check input { width: 18px; height: 18px; accent-color: var(--brand); }
.ax__switch { margin: 4px 0 0; text-align: center; color: rgba(255, 255, 255, .75); }
.ax__switch a { display: inline-flex; align-items: center; min-height: 44px; }
.ax__logo--mobile { display: none; }

@media (max-width: 899px) {
  .ax { padding: 0; place-items: stretch; }
  .ax__bubble { display: none; }
  .ax__card { min-height: 100vh; border-radius: 0; }
  .ax__art { display: none; }
  .ax__forms, .ax[data-mode="register"] .ax__forms { position: relative; width: 100%; transform: none; padding: 32px 20px 40px; align-items: start; }
  .ax__logo--mobile { display: inline-flex; position: static; grid-area: 1 / 1; align-self: start; margin-bottom: 24px; }
  .ax__form { grid-area: 2 / 1; }
  .ax__forms > .alert { grid-area: 1 / 1; margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax *, .ax__art, .ax__forms { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}
.ax__foot { transition: left var(--ax-time) var(--ax-ease); }
.ax[data-mode="register"] .ax__foot { left: calc(100% - 40px - 170px); }

/* =========================  Espace vendeur : cadre sombre + panneau clair  ========================= */
.shell { --frame: var(--on-art-ink); --frame-2: color-mix(in srgb, var(--on-art-ink) 88%, var(--on-art)); --frame-line: rgba(255, 255, 255, .08); --frame-text: rgba(255, 255, 255, .66); background: var(--frame); }
.shell .side { background: var(--frame); border-right: 0; color: var(--on-art); padding: 22px 14px; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.shell .side__group { color: rgba(255, 255, 255, .42); }
.shell .side__link { color: var(--frame-text); border-radius: 12px; }
.shell .side__link:hover { background: var(--frame-line); color: var(--on-art); }
.shell .side__link[aria-current="page"] { background: var(--frame-2); color: var(--on-art); box-shadow: inset 0 0 0 1px var(--frame-line); }
.shell .side__link[aria-current="page"] .icon { color: var(--art-accent); }
.shell .side__close { color: var(--on-art); }
.shell .store-switch summary { background: var(--frame-2); border-color: var(--frame-line); color: var(--on-art); }
.shell .store-switch summary .subtle { color: rgba(255, 255, 255, .5); }
.side__promo { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: linear-gradient(150deg, var(--frame-2), var(--frame)); border: 1px solid var(--frame-line); color: var(--frame-text); font-size: 13.5px; line-height: 19px; }
.side__promo strong { color: var(--on-art); font-size: 15px; }
.side__promo-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--on-brand); }
.side__promo-ic .icon { width: 18px; height: 18px; }
.side__promo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: 4px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; transition: background-color .2s; }
.side__promo-btn:hover { background: var(--brand-hover); }

.shell__right { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.shell__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--frame); border-bottom: 0; color: var(--on-art); }
.shell__toplogo { display: inline-flex; }
.shell__iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--frame-line); border-radius: 50%; background: var(--frame-2); color: var(--on-art); cursor: pointer; text-decoration: none; transition: background-color .2s; }
.shell__iconbtn:hover { background: rgba(255, 255, 255, .12); }
.shell__iconbtn .icon { width: 20px; height: 20px; }
.shell__iconbtn:focus-visible, .shell__profile summary:focus-visible, .shell__storelink:focus-visible { outline: 2px solid var(--on-art); outline-offset: 2px; }
.shell__dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--frame-2); }
.shell__storelink { display: none; align-items: center; gap: 8px; max-width: 320px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--frame-2); border: 1px solid var(--frame-line); color: var(--frame-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.shell__storelink:hover { color: var(--on-art); }
.shell__profile { position: relative; }
.shell__profile summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px 10px 2px 2px; border-radius: 999px; cursor: pointer; list-style: none; color: var(--on-art); }
.shell__profile summary::-webkit-details-marker { display: none; }
.shell__profile summary:hover { background: var(--frame-line); }
.shell__who { display: none; flex-direction: column; min-width: 0; max-width: 160px; line-height: 1.2; }
.shell__who strong { font-size: 14px; }
.shell__who span { font-size: 12.5px; color: var(--frame-text); }
.shell__profile .topbar__menu { color: var(--ink); }
.shell__main { flex: 1; width: auto; max-width: none; margin: 0; padding: 20px 16px 48px; border-radius: 24px 24px 0 0; background: var(--surface); }
@media (min-width: 900px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .shell__top { padding: 16px 24px 16px 8px; }
  .shell__menu, .shell__toplogo { display: none; }
  .shell__storelink { display: inline-flex; }
  .shell__who { display: flex; }
  .shell__main { margin: 0 16px 16px 0; padding: 32px 40px 56px; border-radius: 28px; }
}

/* Indicateurs : pastille d'icône, coins arrondis, premier bloc sombre */
.shell .stat { border-radius: 20px; border-color: var(--hairline); padding: 18px; }
.shell .stat__label .icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--surface-alt); color: var(--ink); }
.shell .stat--accent { background: var(--on-art-ink); border-color: var(--on-art-ink); color: var(--on-art); }
.shell .stat--accent .stat__label .icon { background: var(--brand); color: var(--on-brand); }
.shell .stat__value { font-size: 26px; line-height: 34px; }

/* Courbe du chiffre d'affaires */
.area-chart { position: relative; }
.area-chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.area-chart__grid line { stroke: var(--hairline); stroke-dasharray: 4 4; }
.area-chart__ylab { font-size: 11px; fill: var(--ink-subtle); }
.area-chart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.area-chart__pt { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.area-chart__tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); padding: 6px 10px; border-radius: 10px; background: var(--on-art-ink); color: var(--on-art); font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.area-chart__hit { fill: transparent; cursor: crosshair; }
.area-chart__hit:hover + .area-chart__vline { opacity: 1; }
.area-chart__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-subtle); }
@media (min-width: 900px) {
  .lp-hero__title { font-size: clamp(38px, 3.7vw, 58px); }
  .lp-stage .float-card--a { left: -20px; bottom: 22px; }
}

/* Pages d'accès avec la barre du site au-dessus */
.topbar + .ax { min-height: calc(100vh - 86px); }
.ax--static .ax__card { min-height: 600px; }
.ax--static .ax__forms .alert { margin: 0; }
.ax--static .ax__fields > form, .ax--static .ax__fields .stack { display: flex; flex-direction: column; gap: 14px; }
.ax .ax__fields a:not(.mpd-btn) { color: var(--art-accent-soft); font-weight: 700; }
.ax .ax__fields .muted { color: rgba(255, 255, 255, .72); }
.ax .ax__fields p { color: rgba(255, 255, 255, .8); }
.ax .ax__fields .mpd-btn--outline, .ax .ax__fields .mpd-btn--ghost, .ax .ax__fields .mpd-btn--secondary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: var(--on-art); }
.ax .ax__forms .alert { background: rgba(255, 255, 255, .1); color: var(--on-art); }
@media (max-width: 899px) { .topbar + .ax .ax__card { min-height: calc(100vh - 66px); } .ax--static .ax__form { grid-area: 1 / 1; } }

/* Fenêtre des notifications */
.shell__notif { position: relative; }
.shell__notif summary { list-style: none; }
.shell__notif summary::-webkit-details-marker { display: none; }
.notif-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); max-height: min(520px, 75vh); overflow-y: auto; padding: 8px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: mpd-pop .25s ease both; }
.notif-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 12px; }
.notif-pop__item { display: flex; gap: 12px; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.notif-pop__item:hover { background: var(--surface-alt); }
.notif-pop__item.is-new { background: var(--brand-subtle); }
.notif-pop__ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--surface-alt); color: var(--brand-text); }
.notif-pop__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 19px; }
.notif-pop__body span { color: var(--ink-muted); }
.notif-pop__body small { color: var(--ink-subtle); font-size: 12px; }
.notif-pop__empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 10px; color: var(--ink-muted); }
.notif-pop__all { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 4px; border-top: 1px solid var(--hairline); color: var(--ink); font-weight: 700; text-decoration: none; }
[data-reload].is-spinning .icon { animation: mpd-spin .8s linear infinite; }
@keyframes mpd-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .notif-pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* Boutique des templates : cartes au style des produits */
.tpl-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tpl-card__media { aspect-ratio: 16 / 11; background: var(--surface-alt); }
.tpl-card__media .theme-thumb { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.tpl-card__desc { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tpl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.tpl-card__foot .mk-card__price { margin: 0; }

/* Nom de domaine : enregistrements DNS et partenaires */
.dns-table code { font-size: 13px; overflow-wrap: anywhere; }
.dns-copy { user-select: all; }
.partners { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.partner { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); }
.partner p { margin: 0; flex: 1; color: var(--ink-muted); font-size: 14.5px; line-height: 21px; }
.partner__head { display: flex; align-items: center; gap: 12px; }
.partner__head div { display: flex; flex-direction: column; }
.partner__head span:not(.partner__logo) { font-size: 12.5px; color: var(--ink-subtle); }
.partner__logo { width: 44px; height: 44px; flex: none; padding: 6px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--on-art); object-fit: contain; }
.partner .mpd-btn { white-space: normal; text-align: center; overflow-wrap: anywhere; }

/* Catalogue des offres d'affiliation */
.aff-how { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.aff-how li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--on-art); font-weight: 600; font-size: 14px; }
.aff-how span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); font-weight: 800; font-size: 13px; }
.aff-card { position: relative; }
.aff-card__rate { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.aff-card__title { color: var(--ink); text-decoration: none; }
.aff-card__title:hover { color: var(--brand-text); }
.aff-card__gain { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 10px; align-self: flex-start; border-radius: 10px; background: var(--success-subtle); color: var(--success); font-weight: 700; font-size: 13.5px; }
.aff-card__cta { margin-top: 10px; }

/* ===== Fiche produit en une page ===== */
.pf__h { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 26px; }
.pf__h [hidden] { display: none; }
.pf__step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--brand-subtle); color: var(--brand-text); font-size: 14px; font-weight: 700; flex: none; }
.pf__cover { margin-top: 12px; max-width: 220px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.pf__more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.pf__more > summary::-webkit-details-marker { display: none; }
.pf__more[open] .pf__chev { transform: rotate(180deg); }
.pf__chev { transition: transform .2s var(--ease); color: var(--ink-muted); }
.pf__hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-2) 0; }
.pf__bar { position: sticky; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin: 0 calc(-1 * var(--space-2)); padding: 12px var(--space-4); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.pf__status { margin: 0; flex: 1 1 220px; }
.pf__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pf__btns .mpd-btn { min-height: 44px; }
.pf.is-uploading .pf__status { color: var(--info); }
.pf__delete { display: flex; justify-content: flex-end; margin-top: var(--space-4); }
@media (max-width: 560px) { .pf__btns { width: 100%; } .pf__btns .mpd-btn { flex: 1; } }

/* Éditeur de texte façon traitement de texte */
.rte { border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.rte:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-subtle); }
.rte > textarea.mpd-field__input { border: 0; border-radius: 0; box-shadow: none; }
.rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.rte__bar[hidden] { display: none; }
.rte__bar button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.rte__bar button:hover, .rte__bar button:focus-visible { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); outline: none; }
.rte__bar .icon { width: 18px; height: 18px; }
.rte__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--border); }
.rte__area { min-height: 180px; max-height: 560px; overflow-y: auto; padding: 14px 16px; outline: none; font-size: 16px; line-height: 26px; }
.rte--compact .rte__area { min-height: 110px; }
.rte__area:empty::before { content: attr(data-placeholder); color: var(--ink-subtle); pointer-events: none; }
.rte__area img, .prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.rte__area h2, .prose h2 { font-size: 22px; line-height: 30px; margin: 18px 0 8px; }
.rte__area h3, .prose h3 { font-size: 18px; line-height: 26px; margin: 16px 0 6px; }
.rte__area ul, .rte__area ol, .prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 var(--space-4); }
.rte__area blockquote, .prose blockquote { margin: 0 0 var(--space-4); padding: 6px 14px; border-left: 3px solid var(--brand); color: var(--ink-muted); }
.rte__area a, .prose a { color: var(--brand-text); text-decoration: underline; }
.rte__area hr, .prose hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.rte__area p { margin: 0 0 10px; }
.rte.is-busy { opacity: .6; pointer-events: none; }

/* Envoi de fichiers */
.up__drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-alt); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.up__drop:hover, .up__drop.is-over, .up__drop:focus-within { border-color: var(--brand); background: var(--brand-subtle); }
.up__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.up__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--brand-text); flex: none; box-shadow: var(--shadow-sm); }
.up__text { display: flex; flex-direction: column; gap: 2px; }
.up--video .up__drop { min-height: 64px; padding: 10px 14px; }
.up__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.up__list:empty { display: none; }
.up__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.up__item > .icon { display: none; }
.up__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up__meta { grid-column: 1; font-size: 13px; color: var(--ink-muted); }
.up__bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-alt); overflow: hidden; }
.up__bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s var(--ease); }
.up__x { grid-column: 2; grid-row: 1 / 3; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font-size: 22px; cursor: pointer; }
.up__x:hover { background: var(--surface-alt); color: var(--ink); }
.up__item.is-done .up__bar span { background: var(--success); }
.up__item.is-done .up__meta { color: var(--success); }
.up__item.is-error { border-color: var(--danger); }
.up__item.is-error .up__meta { color: var(--danger); }
.up__item.is-error .up__bar { display: none; }

/* Programme de formation */
.cb-chapters, .cb-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cb-chapter { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-alt); display: grid; gap: 10px; }
.cb-chapter__head, .cb-lesson__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cb-chapter__num { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-text); flex: 0 0 100%; }
.cb-chapter__title { flex: 1 1 220px; font-weight: 600; }
.cb-lesson__head .mpd-field__input { flex: 1 1 200px; }
.cb-tools { display: flex; gap: 2px; }
.cb-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.cb-icon:hover { background: var(--surface); color: var(--ink); }
.cb-icon--danger:hover { color: var(--danger); }
.cb-preview { padding: 4px 0; min-height: 0; }
.cb-lesson { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); display: grid; gap: 10px; }
.cb-lesson__icon { color: var(--ink-subtle); }
.cb-kind { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-kind__opt input { position: absolute; opacity: 0; pointer-events: none; }
.cb-kind__opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 14px; font-weight: 600; cursor: pointer; }
.cb-kind__opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.cb-kind__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus-ring); }
.cb-pane[hidden] { display: none; }
.cb-video { display: flex; gap: 6px; align-items: center; color: var(--success); font-size: 14px; margin: 0; }
.cb-video a { color: var(--brand-text); margin-left: auto; }
.cb-desc > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-muted); min-height: 32px; display: flex; align-items: center; }
.cb-desc[open] > summary { margin-bottom: 8px; }
.cb-add-lesson { justify-self: start; }
.cb-error { color: var(--danger); font-size: 14px; margin: 0; }
.keys { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; }
.keys__row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; }
.keys__row code { flex: 1; overflow-wrap: anywhere; }

/* ===== Espace élève (formation) ===== */
.cp { display: grid; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 20px 16px 48px; }
@media (min-width: 960px) { .cp { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; padding-top: 32px; } .cp__side { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; } }
.cp__side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.cp__course { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); justify-items: start; }
.cp__title { font-size: 18px; line-height: 26px; margin: 0; }
.cp__progress { width: 100%; height: 8px; border-radius: 99px; background: var(--surface-alt); overflow: hidden; }
.cp__progress span { display: block; height: 100%; background: var(--success); }
.cp__toc-sum { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 700; cursor: pointer; }
.cp__toc-sum::-webkit-details-marker { display: none; }
@media (min-width: 960px) { .cp__toc-sum { pointer-events: none; } .cp__toc-sum .icon { display: none; } }
.cp__chapters, .cp__lessons { list-style: none; margin: 0; padding: 0; }
.cp__chapter { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; }
.cp__free { margin-left: 4px; padding: 2px 8px; border-radius: 99px; background: var(--success-subtle); color: var(--success); font-size: 11px; }
.cp__lesson { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
a.cp__lesson:hover { background: var(--surface-alt); }
.cp__lesson.is-current { background: var(--brand-subtle); color: var(--brand-text); font-weight: 600; }
.cp__lesson.is-done .icon { color: var(--success); }
.cp__lesson.is-locked { color: var(--ink-subtle); }
.cp__main { min-width: 0; display: grid; gap: 16px; align-content: start; }
.cp__kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--brand-text); text-transform: uppercase; letter-spacing: .04em; }
.cp__lesson-title { margin: 0; font-size: 26px; line-height: 34px; }
.cp__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.cp__media video, .cp__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp__link { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; }
.cp__link:hover { border-color: var(--brand); }
.cp__text { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.cp__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.cp__buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px; border-radius: var(--radius-lg); background: var(--brand-subtle); }
.cp__buy p { margin: 0; }
.license-key { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-alt); }
.license-key code { flex: 1 1 200px; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pf [data-for][hidden], .pf [data-type-only][hidden] { display: none !important; }
.cb-desc > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.cb-desc[open] > summary::before { content: "−"; }
.pf, .pf .panel, .pf .panel__body, .pf .form-grid > *, .pf .stack > * { min-width: 0; }
.pf .form-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .pf .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pf__bar { padding: 10px; gap: 8px; }
  .pf__status { display: none; }
  .pf.is-uploading .pf__status { display: block; }
  .pf__btns { flex-wrap: nowrap; }
  .pf__btns .mpd-btn { padding-left: 10px; padding-right: 10px; font-size: 15px; }
}

/* Kit d'intégration */
.api-doc h3 { font-size: 17px; line-height: 24px; margin: 10px 0 0; }
.code { margin: 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-inverse); color: var(--on-inverse); font: 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre; max-width: 100%; }
.api-table td:first-child { white-space: nowrap; }
.api-doc, .api-doc > * { min-width: 0; }

/* Licences : choix en cartes, segments, compteur */
.lic__label { font-weight: 700; margin: 0; }
.optc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.optc input { position: absolute; opacity: 0; pointer-events: none; }
.optc__box { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 44px 16px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.optc__box::after { content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.optc input:checked + .optc__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.optc input:checked + .optc__box::after { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--surface); }
.optc input:focus-visible + .optc__box { box-shadow: 0 0 0 3px var(--focus-ring); }
.optc__icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface-alt); margin-bottom: 6px; }
.optc__sample { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-alt); font-size: 13px; overflow-wrap: anywhere; }
.lic__preview { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-alt); }
.lic__preview code { font-size: clamp(18px, 4vw, 26px); font-weight: 800; letter-spacing: .02em; overflow-wrap: anywhere; }
.lic__one { display: flex; gap: 8px; }
.lic__one .mpd-field__input { flex: 1; }
.lic__one .mpd-btn { min-width: 48px; min-height: 48px; }
.lic [data-license-pane][hidden] { display: none !important; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span { display: inline-grid; place-items: center; min-width: 56px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-full); font-weight: 700; cursor: pointer; }
.seg__opt input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus-ring); }
.seg__opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; }
.stepper__btn:hover { background: var(--surface-alt); }
.stepper__input { width: 96px; text-align: center; font-weight: 700; }

/* Contrôle et recadrage des images */
.imgfit { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.imgfit__frame { display: block; width: 120px; max-height: 120px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-alt); }
.imgfit__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgfit__note { flex: 1 1 160px; font-size: 13px; line-height: 18px; }
.imgfit__note--ok { color: var(--success); }
.imgfit__note--risk { color: var(--danger); font-weight: 700; }
.imgfit-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.imgfit-dlg::backdrop { background: rgba(20, 10, 18, .55); }
.imgfit-dlg__body { display: grid; gap: 14px; padding: 24px 20px 20px; }
.imgfit-dlg__body[hidden] { display: none; }
.imgfit-dlg h2 { font-size: 20px; line-height: 28px; margin: 0; padding-right: 36px; }
.imgfit-dlg__row { display: flex; gap: 14px; align-items: flex-start; }
.imgfit-dlg__row img { width: 96px; height: 96px; object-fit: contain; border-radius: var(--radius-md); background: var(--surface-alt); border: 1px solid var(--border); flex: none; }
.imgfit-dlg__issues { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 22px; }
.imgfit-dlg__actions { display: grid; gap: 8px; }
.imgfit-dlg__actions .mpd-btn { width: 100%; min-height: 44px; }
.imgfit-dlg__risk { color: var(--danger); }
.imgfit-dlg__danger { padding: 16px; border-radius: var(--radius-lg); background: var(--danger-subtle); border: 2px solid var(--danger); color: var(--ink); }
.imgfit-dlg__danger h2 { color: var(--danger); }
.imgfit-dlg__danger p { margin: 8px 0 0; font-size: 15px; line-height: 22px; }
.imgfit-dlg__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 26px; color: var(--ink-muted); cursor: pointer; }
.imgfit-dlg__close:hover { background: var(--surface-alt); }
.imgfit-crop { position: relative; width: 100%; max-height: 52vh; overflow: hidden; border-radius: var(--radius-md); background: #111; cursor: grab; touch-action: none; outline-offset: 3px; }
.imgfit-crop:active { cursor: grabbing; }
.imgfit-crop img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; user-select: none; pointer-events: none; }
.imgfit-crop::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.imgfit-zoom { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; }
.imgfit-zoom input { flex: 1; accent-color: var(--brand); min-height: 44px; }
.grant__title, .cp__title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 28px; margin: 0; }
.grant__title img, .cp__title img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.mk-card__media .mk-card__icon { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.imgfit-dlg [hidden] { display: none !important; }
.imgfit-dlg [data-step="warn"] { padding-top: 60px; }
.purchase__head p { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.become-seller { background: var(--brand-subtle); border-color: transparent; }
.become-seller p { margin: 0; }

/* ===== Statistiques ===== */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.kpi { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.kpi__label { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.kpi__value { font-size: 24px; line-height: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi__delta { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-muted); }
.kpi__delta.is-up { color: var(--success); }
.kpi__delta.is-down { color: var(--danger); }
.seg--sm { gap: 4px; }
.seg__link { display: inline-grid; place-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.seg__link[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chart { margin: 0 0 8px; }
.chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart__grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__axis { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__area { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart__hit { fill: transparent; cursor: crosshair; outline: none; }
.chart__hit:hover, .chart__hit:focus-visible { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.chart__axis-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--surface-inverse); color: var(--on-inverse); font-size: 13px; line-height: 18px; box-shadow: var(--shadow-md); }
.hbar { display: grid; gap: 6px; outline: none; border-radius: 8px; }
.hbar:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring); }
.hbar__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hbar__label { font-weight: 600; }
.hbar__text { color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; }
.hbar__track { display: block; height: 10px; border-radius: 99px; background: var(--surface-alt); overflow: hidden; }
.hbar__fill { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.heat { display: grid; grid-template-columns: 36px repeat(8, minmax(0, 1fr)); gap: 3px; font-size: 11px; }
.heat__h, .heat__d { color: var(--ink-muted); display: grid; place-items: center; }
.heat__c { aspect-ratio: 1.4; min-height: 22px; border-radius: 5px; background: color-mix(in srgb, var(--brand) var(--k), var(--surface-alt)); outline: none; }
.heat__c:hover, .heat__c:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.exports { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.export { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; min-height: 44px; }
.export:hover { border-color: var(--brand); background: var(--brand-subtle); }
.export > span { display: grid; gap: 2px; }
.ga4 { padding-top: 14px; border-top: 1px solid var(--border); }
.link-btn { border: 0; background: none; padding: 0; color: var(--danger); text-decoration: underline; cursor: pointer; font: inherit; }

/* Page de retrait */
.wd-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius-xl); background: var(--surface-inverse); color: var(--on-inverse); }
.wd-hero > div { display: grid; gap: 4px; }
.wd-hero__label { font-size: 14px; opacity: .8; font-weight: 600; }
.wd-hero__amount { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.wd-hero__sub { font-size: 13px; opacity: .75; }
.wd-hero__icon { width: 56px; height: 56px; opacity: .35; flex: none; }
.wd-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .wd-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.wd-dest { display: flex; gap: 6px; align-items: center; }
.wd-cta { background: var(--brand-subtle); border-color: transparent; }
.wd-cta p { margin: 0; }
.kyc-files { display: flex; flex-wrap: wrap; gap: 12px; }
.kyc-file { display: grid; gap: 4px; width: 200px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.kyc-file img, .kyc-file__pdf { width: 200px; height: 130px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-alt); display: grid; place-items: center; }

/* Pages légales */
.legal__in { display: grid; gap: 24px; }
@media (min-width: 960px) { .legal__in { grid-template-columns: 240px minmax(0, 1fr); max-width: 1080px; } .legal__nav { position: sticky; top: 90px; align-self: start; } }
.legal__nav { display: grid; gap: 4px; }
.legal__nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.legal__nav a:hover { background: var(--surface-alt); }
.legal__nav a[aria-current="page"] { background: var(--brand-subtle); color: var(--brand-text); }
.legal__text h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 6px; }
.legal__text h2 { font-size: 20px; line-height: 28px; margin: 28px 0 8px; }
.legal__text li { margin-bottom: 6px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer__legal a { color: inherit; opacity: .8; font-size: 13px; }
.ax__legal { font-size: 12px; line-height: 18px; color: var(--ink-muted); text-align: center; margin: 0; }
.ax__legal a { color: inherit; text-decoration: underline; }
