/* =====================================================================
   keurmame — SYSTÈME VISUEL « KEUR MODERNE »
   Couche finale, chargée APRÈS app.css et keurmame.css.

   Base : le template Applab (mise en page aérée, titres très gras,
   boutons pilule, cartes blanches à ombre douce, tuiles d'icônes).
   Couleurs du propriétaire : rouge sombre, noir, vert sombre au besoin.
   Typographie : Circular Std (fournie avec le template), titres en Black.

   Règles : un seul rouge d'action, un seul vert de confirmation, du noir
   pour la structure. Pas de dégradé décoratif, pas de verre dépoli, pas
   d'emoji. Les jetons historiques (--clay, --indigo, --sun, --gold…)
   sont remappés pour que tous les composants existants suivent.
   ===================================================================== */

/* ---------- Polices locales (Circular Std, issues du template) ---------- */
@font-face { font-family: "Circular Std"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/circular-book.woff2") format("woff2"); }
@font-face { font-family: "Circular Std"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/circular-book-italic.woff2") format("woff2"); }
@font-face { font-family: "Circular Std"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/fonts/circular-medium.woff2") format("woff2"); }
@font-face { font-family: "Circular Std"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/circular-bold.woff2") format("woff2"); }
@font-face { font-family: "Circular Std"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/fonts/circular-black.woff2") format("woff2"); }

/* ---------- Jetons ---------- */
:root {
  /* Marque */
  --red: #8a1c1c;
  --red-2: #6d1212;
  --red-3: #a62626;
  --red-soft: #f8eaea;
  --red-line: #e9cbc8;
  --green: #14532d;
  --green-2: #0e3f23;
  --green-3: #1d6a3c;
  --green-soft: #e8f1ea;
  --black: #0c0c0d;
  --black-2: #1a1b1d;
  --black-3: #26272a;

  /* Neutres */
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #eeece7;
  --surface-3: #e5e2db;
  --ink: #161719;
  --ink-2: #45484d;
  --muted: #70747b;
  --line: #e6e3dc;
  --line-2: #d2cec5;
  --paper: var(--bg);
  --paper-2: var(--surface-2);
  --paper-3: var(--surface-3);
  --cream: var(--surface);

  /* Jetons historiques remappés : app.css et keurmame.css suivent. */
  --clay: var(--red);
  --clay-2: var(--red-2);
  --clay-soft: var(--red-soft);
  --indigo: var(--black);
  --indigo-2: var(--black-2);
  --sun: var(--green);
  --sun-soft: var(--green-soft);
  --leaf: var(--green);
  --kaolin: var(--surface);
  --night: var(--black);
  --night-2: var(--black-2);
  --night-deep: #000000;
  --ivory: #ffffff;
  --gold: var(--red);
  --gold-deep: var(--red-2);
  --gold-text: var(--red-2);
  --gold-ink: #ffffff;

  --bub-in: var(--surface);
  --bub-in-ink: var(--ink);
  --bub-out: var(--red);
  --bub-out-ink: #ffffff;
  --bub-agent: var(--green-soft);
  --bub-agent-ink: #123424;
  --bub-sys: var(--surface-2);
  --bub-sys-ink: var(--ink-2);

  --ok: var(--green);
  --danger: #b3261e;
  --focus: var(--red);

  --shadow-1: 0 1px 2px rgba(12, 12, 13, .06);
  --shadow-2: 0 10px 28px rgba(12, 12, 13, .09);
  --shadow-3: 0 32px 80px rgba(12, 12, 13, .28);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-bub: 16px;
  --r-pill: 999px;

  --side-w: 384px;
  --dock-h: calc(64px + var(--safe-b));
  --wall: none;
  --motif: none;

  --font-ui: "Circular Std", "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Circular Std", "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-ui);

  --ease: cubic-bezier(.22, .8, .28, 1);
}

:root[data-theme="dark"] {
  --bg: #101011;
  --surface: #17181a;
  --surface-2: #1e1f22;
  --surface-3: #26272b;
  --ink: #f4f2ee;
  --ink-2: #c9c6c0;
  --muted: #9d9a94;
  --line: #2b2c30;
  --line-2: #3c3e43;
  --paper: var(--bg);
  --paper-2: var(--surface-2);
  --paper-3: var(--surface-3);
  --cream: var(--surface);

  --red-soft: #2a1616;
  --red-line: #4a2422;
  --green-soft: #14261a;
  --black: #000000;
  --black-2: #151517;
  --black-3: #1d1e21;
  --ivory: #f7f4ef;
  --kaolin: var(--surface);

  --bub-in: var(--surface-2);
  --bub-in-ink: var(--ink);
  --bub-out: #7c1717;
  --bub-out-ink: #ffffff;
  --bub-agent: #16301f;
  --bub-agent-ink: #d9e9dd;
  --bub-sys: #232427;
  --bub-sys-ink: var(--ink-2);

  --ok: #6fbd8c;
  --danger: #e0796f;
  --focus: #d3716b;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .55);
  --shadow-3: 0 32px 80px rgba(0, 0, 0, .7);
}

/* ---------- Base ---------- */
html { background: var(--bg); }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: proportional-nums;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(25px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { margin: 0 0 1em; }
a { color: var(--red-2); text-decoration-color: color-mix(in srgb, var(--red) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:root[data-theme="dark"] a { color: #e39a94; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
hr { border: 0; border-top: 1px solid var(--line); }
img { max-width: 100%; }
.muted { color: var(--muted); }

/* Petites capitales de repère */
.j-kicker,
.hm-sec span,
.ht-k,
.dc-rub,
.sheet .sec,
.mecard .sec,
.pg-body > .sec,
.tag,
.seal,
.role-tag,
.dtag,
.ptag,
.dl-cat,
.sc-count,
.jl-kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Chiffres forts */
.dprice b, .fp, .pprice, .wal-amt, .stat .sv, .stile b, .dl-price strong,
.dl-title, .funn, .sr-n b, .vc-p, .jl-price, .jl-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---------- Boutons ---------- */
.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease), box-shadow .15s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 6px 16px color-mix(in srgb, var(--red) 22%, transparent); }
.btn-primary:hover:not([disabled]) { background: var(--red-2); border-color: var(--red-2); box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 28%, transparent); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.btn-gold { background: var(--green); color: #fff; border-color: var(--green); }
.btn-gold:hover:not([disabled]) { background: var(--green-2); border-color: var(--green-2); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-2); border-color: var(--ink-2); color: var(--ink); }
.btn-danger { border-radius: var(--r-pill); background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 38%, transparent); }
.btn-danger:hover:not([disabled]) { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn-light { background: transparent; color: var(--ivory); border: 1px solid color-mix(in srgb, #fff 35%, transparent); }
.btn-light:hover:not([disabled]) { background: color-mix(in srgb, #fff 14%, transparent); color: #fff; }
a.btn-primary, a.btn-primary:visited { color: #fff; }
:root[data-theme="dark"] a.btn-primary { color: #fff; }
.linkbtn { color: var(--red-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .5; box-shadow: none; }

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn.on { color: var(--red); background: var(--red-soft); }
.iconbtn.round { border-radius: 50%; background: var(--surface-2); }
.iconbtn.round.add { background: var(--red); color: #fff; }
.iconbtn.round.add:hover { background: var(--red-2); }
:root[data-theme="dark"] .iconbtn.round.add { background: var(--red); color: #fff; }

/* ---------- Champs ---------- */
.input, .select, .textarea {
  min-height: 46px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 11px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
}
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.switch .track { border-radius: var(--r-pill); background: var(--line-2); width: 46px; height: 26px; }
.switch .track::after { border-radius: 50%; width: 20px; height: 20px; background: #fff; box-shadow: var(--shadow-1); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(20px); }
.search { margin: 12px 16px 10px; }
.search input { border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid transparent; padding-left: 42px; height: 44px; }
.search input:focus { outline: none; background: var(--surface); border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent); }
.search .i { left: 15px; color: var(--muted); }
.seg { border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); padding: 3px; gap: 2px; }
.seg button { border-radius: var(--r-pill); padding: 7px 15px; color: var(--ink-2); font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: none; border: 0; margin: 0; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); border: 0; }
.chip {
  border-radius: var(--r-pill);
  padding: 7px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.chip.on { background: var(--black); color: #fff; border-color: var(--black); }
:root[data-theme="dark"] .chip.on { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.chip .n { opacity: .7; margin-left: 4px; }
details.rescue summary { color: var(--ink-2); }

/* ---------- Étiquettes ---------- */
.tag, .seal, .role-tag, .dtag, .ptag, .dl-tag {
  border-radius: 6px;
  box-shadow: none;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.35;
}
.tag { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.tag.ok { border-color: color-mix(in srgb, var(--green) 35%, transparent); color: var(--green-2); background: var(--green-soft); }
.tag.warn { border-color: color-mix(in srgb, var(--red) 25%, transparent); color: var(--red-2); background: var(--red-soft); }
.tag.off { border-color: var(--line-2); color: var(--muted); background: transparent; }
:root[data-theme="dark"] .tag.ok { color: #9bd6b1; }
:root[data-theme="dark"] .tag.warn { color: #e8a09a; }
.seal { background: var(--green-soft); border: 0; color: var(--green-2); padding: 4px 8px; border-radius: 6px; }
.seal.partner { color: var(--ink-2); background: var(--surface-2); }
.role-tag { background: var(--green-soft); color: var(--green-2); border: 0; }
:root[data-theme="dark"] .role-tag { color: #9bd6b1; }
.ptag { background: var(--red); color: #fff; }
.ptag.out { background: var(--black); color: #fff; }
.dtag.sun { background: var(--red); color: #fff; }
.dtag.leaf { background: var(--green); color: #fff; }
.dl-tag-sun { background: var(--red); color: #fff; }
.dl-tag-leaf { background: var(--green); color: #fff; }
.dtag .i, .ptag .i { width: 12px; height: 12px; }

/* ---------- Avatars ---------- */
.avatar {
  border-radius: 50%;
  background: hsl(var(--hue, 150) 22% 28%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
}
.avatar.group, .avatar.channel, .avatar.shop, .avatar.circle {
  background: var(--surface-3);
  color: var(--ink);
}
.avatar.mame { border-radius: 28%; }
.avatar.shop { background: var(--red); color: #fff; }
.avatar .dot { border-radius: 50%; border-color: var(--surface); background: var(--ok); }

/* ---------- Marque ---------- */
.wm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -.03em;
  color: var(--ink);
}
.wm .wm-r { color: var(--red); }
:root[data-theme="dark"] .wm .wm-r { color: #e6a09a; }
.auth-art .wm .wm-r { color: #e9a09a; }
.side-top .side-install { display: none; }
@media (min-width: 901px) { .side-top .side-install { display: inline-flex; } }
@media (min-width: 901px) { .hm-tools .hm-install { display: none; } }
.logo { width: 34px; height: 34px; border-radius: 11px; }
.motif { display: none; }

/* =====================================================================
   COQUE : rail noir, carnet blanc, volet gris
   ===================================================================== */
.app { background: var(--bg); grid-template-columns: 92px var(--side-w) minmax(0, 1fr); }
.side { background: var(--surface); border-right: 1px solid var(--line); }
.side-top { padding: calc(16px + var(--safe-t)) 16px 8px; border-bottom: 1px solid var(--line); align-items: center; }
.side-top .brand { gap: 11px; align-items: center; }
.side-top .brand .wm { font-size: 23px; }
.side-top .iconbtn { width: 38px; height: 38px; }
.j-issue {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px 4px;
  border-bottom: 0;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.j-issue time { color: var(--ink-2); font-weight: 600; }
.filters { padding: 0 16px 10px; gap: 6px; }
.tlist { padding: 0 8px; }
.titem {
  border-radius: var(--r-md);
  border-bottom: 0;
  padding: 11px 10px;
  gap: 12px;
  margin: 1px 0;
}
.titem:hover { background: var(--surface-2); }
.titem.on { background: var(--red-soft); }
.titem.on::before {
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: var(--r-pill);
  background: var(--red);
}
.tname { font-size: 14.5px; font-weight: 700; }
.ttime { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.tprev { font-size: 13.5px; }
.titem.unread .ttime { color: var(--red-2); }
.tbadge, .dock-badge {
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
}
.tbadge.muted { background: var(--line-2); color: var(--ink-2); }
.tsec {
  padding: 18px 10px 6px;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
}
.tsec.req { color: var(--red-2); }
.titem.req { background: var(--red-soft); }
.fab {
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--red) 32%, transparent);
  width: 54px; height: 54px;
}
.fab:hover { background: var(--red-2); transform: translateY(-2px); }
.side .tlist { padding-bottom: 100px; }
.side .fab { bottom: calc(20px + var(--safe-b)); }

/* Navigation */
.dock {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0 0 var(--safe-b);
  height: var(--dock-h);
  align-items: stretch;
}
.dock-btn {
  border-radius: var(--r-md);
  padding: 7px 2px 6px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  gap: 3px;
  position: relative;
  transition: color .15s, background .15s;
}
.dock-btn:hover { background: transparent; color: var(--ink); }
.dock-btn.on { color: var(--red-2); }
.dock-btn.on::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
}
.dock-btn.on .dock-ic { background: transparent; }
.dock-ic { width: 42px; height: 28px; }
.dock-ic .i { width: 21px; height: 21px; }
.dock-lb { font-size: 10px; letter-spacing: 0; }
.dock-act { margin-top: 0; align-self: center; justify-content: center; color: var(--ink-2); }
.dock-fab {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 30%, transparent);
}
.dock-fab .i { width: 22px; height: 22px; }
.dock-act:hover .dock-fab { background: var(--red-2); transform: translateY(-1px); }
.dock-act .dock-lb { display: none; }

@media (min-width: 901px) {
  .app { grid-template-columns: 92px var(--side-w) minmax(0, 1fr); }
  .dock {
    grid-column: 1;
    height: 100dvh;
    background: var(--black);
    border: 0;
    padding: 20px 10px 18px;
    gap: 4px;
  }
  :root[data-theme="dark"] .dock { background: #000; }
  .dock-btn {
    color: rgba(255, 255, 255, .58);
    padding: 10px 2px 9px;
    border-radius: 14px;
    border-left: 0;
    margin: 1px 0;
    flex: 0 0 auto;
  }
  .dock-btn.on { color: #fff; background: var(--red); }
  .dock-btn.on::before { display: none; }
  .dock-btn:hover { color: #fff; background: rgba(255, 255, 255, .09); }
  .dock-btn.on:hover { background: var(--red-2); }
  .dock-lb { font-size: 9.5px; letter-spacing: .01em; color: inherit; }
  .dock-ic .i { width: 22px; height: 22px; }
  .dock-act { order: 1; margin: 12px 0 0; }
  .dock-act { margin-top: auto; }
  .dock-fab { width: 54px; height: 54px; background: var(--red); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
  .dock-act .dock-lb { display: block; color: rgba(255,255,255,.7); }
  .dock-btn.dock-act:hover { background: transparent; }
  .dock::before { order: -1; }
  .hm-rail-wrap .trail { flex-wrap: wrap; }
  .hm-rail-wrap .tstory { width: 100px; }
  .hm-rail-wrap .tring { width: 100px; height: 70px; }
  .side .tlist { padding-bottom: 84px; }
  .side .fab { bottom: 18px; }
}

/* =====================================================================
   FIL : accueil, cartes, articles
   ===================================================================== */
.hm { background: var(--bg); background-image: none; }
.hm-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: calc(14px + var(--safe-t)) 20px 12px;
  min-height: 70px;
}
.hm-brand { gap: 10px; }
.hm-brand .wm { font-size: 23px; }
.hm-tools { gap: 2px; }
.hm-body { max-width: 880px; padding: 28px 24px calc(var(--dock-h) + 32px); }

/* Héros : carte blanche aérée, photo à droite */
.hm-hero {
  display: block;
  margin: 0 0 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.hm-hero .j-mast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.hm-hero .j-mast-mark {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hm-hero .j-mast-date {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.j-lead-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 30px; align-items: center; }
.j-lead-copy { display: flex; flex-direction: column; align-items: flex-start; }
.j-kicker { display: block; color: var(--red-2); margin: 0 0 10px; }
.j-lead-title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
.j-lead-title em { color: var(--red); font-style: normal; }
.j-standfirst {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
}
.hm-hero .hh-act { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.j-lead-media { margin: 0; }
.j-lead-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.j-lead-media figcaption {
  margin-top: 9px;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.hh-art { display: none; }

@media (max-width: 700px) {
  .hm-body { padding: 18px 14px calc(var(--dock-h) + 28px); }
  .hm-hero { padding: 20px; border-radius: var(--r-lg); }
  .hm-hero .j-mast { padding-bottom: 12px; margin-bottom: 16px; }
  .hm-hero .j-mast-date { font-size: 9px; max-width: 20ch; }
  .j-lead-grid { grid-template-columns: 1fr; gap: 18px; }
  .j-lead-media { order: -1; }
  .j-lead-media img { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
  .j-lead-title { font-size: clamp(30px, 8.6vw, 38px); }
  .hm-hero .hh-act { width: 100%; }
  .hm-hero .hh-act .btn { flex: 1 1 45%; padding: 0 14px; }
  .hm-compose { padding: 10px 12px; }
}

/* Barre de présentation */
.hm-compose {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.cp-main {
  border-radius: var(--r-sm);
  background: transparent;
  padding: 4px 2px;
  min-height: 40px;
  color: var(--muted);
  font-size: 15px;
}
.cp-main:hover { background: transparent; color: var(--ink); }
.cp-main span { font-style: normal; }
.cp-act { gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.cp-b {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.cp-b:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.cp-b .i { width: 15px; height: 15px; color: var(--red); }

/* Rubriques */
.hm-rail-wrap { margin: 0 0 20px; }
.trail { gap: 12px; padding: 2px 0 8px; }
.tstory { width: 96px; gap: 8px; }
.tring {
  width: 96px;
  height: 68px;
  border-radius: 14px;
  padding: 0;
  background: var(--surface-3);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.tring .tpic { border-radius: 0; border: 0; }
.tstory.fol .tring { background: transparent; border-color: var(--line-2); }
.tstory.on .tring { border-color: var(--red); transform: none; }
.tstory .tall { border-radius: 12px; background: var(--red); color: #fff; border: 0; }
.tstory .tname { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); max-width: 96px; }
.tstory.on .tname { color: var(--red-2); font-weight: 700; }

/* Nudge et bandeau de sujet */
.hm-nudge { border-radius: var(--r-lg); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent); padding: 14px 16px; }
.nd-art { border-radius: 12px; background: var(--surface); color: var(--green); width: 40px; height: 40px; }
.nd-txt b { font-size: 15.5px; font-weight: 700; }
.nd-txt span { color: var(--ink-2); }
.hm-topic { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.ht-txt { padding: 22px 24px; }
.ht-k { color: var(--red-2); }
.ht-txt h2 { font-size: 28px; font-weight: 800; }
.ht-txt p { font-size: 14.5px; color: var(--ink-2); }
.ht-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* Onglets de section */
.hm-seg { gap: 6px; margin: 0 0 18px; padding: 0 0 4px; border-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.hm-seg::-webkit-scrollbar { display: none; }
.hm-chip {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  padding: 8px 15px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  white-space: nowrap;
}
.hm-chip:hover { background: var(--surface-2); }
.hm-chip.on { background: var(--black); color: #fff; border-color: var(--black); }
:root[data-theme="dark"] .hm-chip.on { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }

/* Sections */
.hm-sec { margin: 28px 0 12px; border-bottom: 0; padding-bottom: 0; align-items: center; }
.hm-sec h2 { font-size: 24px; font-weight: 800; }
.hm-sec span { color: var(--muted); font-size: 10px; }
.hm-rail { gap: 14px; margin: 0; padding: 0 0 10px; }
.fcard {
  width: 178px;
  padding: 10px;
  gap: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.fmedia { border-radius: 12px; aspect-ratio: 4 / 3; overflow: hidden; }
.ft { font-size: 14.5px; font-weight: 700; padding: 10px 2px 0; line-height: 1.25; }
.fp { font-size: 15px; padding: 3px 2px 0; color: var(--red-2); }
.fp s { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.fshare { padding: 8px 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-2); }
.fshare .i { width: 13px; height: 13px; }

/* Articles du fil */
.hm-feed { gap: 16px; margin-top: 8px; }
.dcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  animation: none;
  padding: 20px 20px 14px;
}
.dcard:first-child { padding-top: 20px; }
.dc-head { padding: 0 0 14px; gap: 12px; }
.dc-who b { font-size: 15px; font-weight: 800; line-height: 1.1; }
.dc-who span { font-size: 11px; letter-spacing: 0; text-transform: none; margin-top: 3px; color: var(--muted); }
.dc-head .avatar { --size: 42px; }
.topic-tag {
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 0;
  padding: 5px 10px 5px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 42%;
}
.topic-tag .tpic { border-radius: 50%; width: 20px; height: 20px; }
.topic-tag:hover { background: var(--surface-3); border-bottom-color: transparent; }
.dc-post {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
  position: relative;
}
.dc-post::before { content: none; }
.dc-media {
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}
.dc-media .dtags { top: 12px; left: 12px; }
.dc-media:hover .dimg { transform: none; }
.dc-body { padding: 14px 2px 4px; gap: 6px; }
.dc-line { align-items: baseline; gap: 12px; }
.dc-line .dc-title { font-size: clamp(22px, 2.6vw, 27px); font-weight: 800; line-height: 1.12; }
.dc-line .dprice { text-align: right; }
.dprice b { font-size: 25px; color: var(--red-2); }
.dprice s { font-size: 13px; color: var(--muted); font-weight: 500; }
.dprice.sm b { font-size: 16px; }
.dc-why { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.dc-why .i { width: 13px; height: 13px; color: var(--green); }
.post .dc-act {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 10px 0 0;
  gap: 6px;
  flex-wrap: wrap;
}
.act-b {
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  border: 1px solid transparent;
  gap: 6px;
}
.act-b:hover { background: var(--surface-2); border-bottom-color: transparent; color: var(--ink); }
.act-b.on { color: var(--red-2); background: var(--red-soft); border-bottom-color: transparent; }
.act-b .i { width: 16px; height: 16px; }
.post .act-order { flex: 0 0 auto; margin-left: auto; min-height: 38px; padding: 0 16px; font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.dsk { height: 300px; border-radius: var(--r-xl); background: var(--surface-2); }

/* Repli d'image */
.dph {
  background: var(--surface-3);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
}
:root[data-theme="dark"] .dph { background: var(--surface-3); color: #e39a94; }
.pimg.ph {
  background: var(--surface-3);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 40px;
}
:root[data-theme="dark"] .pimg.ph { background: var(--surface-3); color: #e39a94; }
.pimg.ph .i { display: none; }

/* Personnes et cercles */
.strip { margin: 26px 0; padding: 0; border-top: 1px solid var(--line); }
.strip .hm-sec { margin-top: 16px; border: 0; }
.pcard, .ccard {
  width: 178px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 12px;
  box-shadow: var(--shadow-1);
}
.pcard { justify-items: start; text-align: left; }
.pc-top { justify-items: start; }
.pc-top b { font-size: 15px; font-weight: 700; }
.ccard b { font-size: 15px; font-weight: 700; }
.cc-m { border-radius: 12px; aspect-ratio: 4 / 3; }

/* État vide */
.hm-empty {
  border-radius: var(--r-xl);
  border: 1px dashed var(--line-2);
  background: var(--surface);
  padding: 44px 24px;
}
.hm-empty-art { border-radius: 18px; background: var(--red-soft); color: var(--red); width: 64px; height: 64px; margin-bottom: 12px; }
.hm-empty b { font-size: 24px; font-weight: 800; }
.hm-empty p { color: var(--ink-2); }
.hm-empty-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* =====================================================================
   CONVERSATIONS
   ===================================================================== */
.pane, .page, .page-pane { background: var(--bg); }
.chat-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: 66px;
  padding: calc(9px + var(--safe-t)) 16px 9px;
}
.htitle { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.hsub { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.hsub.live { color: var(--green-2); }
.stream { background-image: none; background: var(--bg); padding-top: 16px; }
.msgs { max-width: 820px; }
.dayline {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}
.dayline::before, .dayline::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.row { gap: 9px; margin-top: 3px; }
.row .col { max-width: min(76%, 600px); }
.bub {
  border-radius: var(--r-bub);
  background: var(--bub-in);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  padding: 10px 14px 9px;
}
.row.in .bub, .row.in:not(.last) .bub, .row.in:not(.first) .bub { border-radius: var(--r-bub); }
.row.out .bub { background: var(--bub-out); border-color: var(--bub-out); color: var(--bub-out-ink); border-radius: var(--r-bub); }
.row.out:not(.last) .bub, .row.out:not(.first) .bub { border-radius: var(--r-bub); }
.bub.agent { background: var(--bub-agent); border-color: transparent; }
.bub.event { border-left: 3px solid var(--green); }
.bub.system { background: var(--bub-sys); border-color: var(--line); }
.tag-event { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--green-2); }
:root[data-theme="dark"] .tag-event { color: #9bd6b1; }
.sender { font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.meta { font-size: 10px; }
.unreadline { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--red-2); }
.quick { margin-left: 0; }
.qbtn { border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); font-size: 12.5px; font-weight: 600; }
.qbtn:hover, .qbtn.ok { background: var(--black); border-color: var(--black); color: #fff; }
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); }
.cin { max-width: 820px; }
.cbox { border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid transparent; padding: 3px 5px; }
.cbox:focus-within { border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 10%, transparent); }
.send { border-radius: 50%; background: var(--red); color: #fff; box-shadow: var(--shadow-1); width: 44px; height: 44px; }
.send:hover { background: var(--red-2); }
.send.mic { background: var(--green); color: #fff; }
.media { border-radius: var(--r-md); }
.voice .play { border-radius: 50%; background: var(--red); color: #fff; }
.row.out .voice .play { background: #fff; color: var(--red); }
.filecard .fico { border-radius: 10px; }
.att, .rec .pill { border-radius: var(--r-pill); }
.dropveil { border-radius: var(--r-lg); background: color-mix(in srgb, var(--black) 86%, transparent); color: #fff; border: 2px dashed var(--red); }
.jump { border-radius: var(--r-pill); box-shadow: var(--shadow-2); border: 1px solid var(--line); background: var(--surface); }
.emptychat h3, .nochat h2 { font-weight: 800; }
.nochat .card { border-radius: var(--r-xl); }
.typing-txt { color: var(--red-2); }
.dealmsg { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.dm-m { border-radius: 0; }
.dm-i b { font-weight: 800; }
.row.out .dealmsg { background: #fff; }
.row.out .dealmsg .dprice b { color: var(--red-2); }

/* =====================================================================
   PAGES : boutique, profil, découverte, portefeuille
   ===================================================================== */
.page { background: var(--bg); }
.pg-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: 68px;
  padding: calc(10px + var(--safe-t)) 20px 10px;
}
.pg-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pg-body { max-width: 1000px; padding: 24px 24px calc(34px + var(--safe-b)); }
@media (max-width: 900px) { .pg-body { padding: 18px 16px calc(30px + var(--safe-b)); } }
.pg-search { margin: 0 0 16px; }
.pg-chips { padding: 0 0 16px; gap: 6px; flex-wrap: wrap; }

/* Boutique */
.pgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 10px;
  transition: transform .15s var(--ease), box-shadow .15s, border-color .15s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.pimg-wrap { border-radius: 12px; aspect-ratio: 1 / 1; background: var(--surface-3); overflow: hidden; }
.pimg.big { border-radius: var(--r-lg); }
.pbody2 { padding: 12px 4px 2px; gap: 6px; }
.pname { font-size: 15.5px; font-weight: 700; line-height: 1.25; min-height: 0; }
.pprice { font-size: 17px; color: var(--red-2); }
.pprice.big { font-size: 32px; }
.seal { align-self: flex-start; }
.ptag { top: 8px; left: 8px; }
.pact { gap: 4px; }
.prow { flex-wrap: wrap; row-gap: 6px; align-items: center; }
.prow .pprice { min-width: 0; overflow-wrap: anywhere; }
.prow .pact { margin-left: auto; }
.iconbtn.round { width: 36px; height: 36px; border-radius: 50%; }
.pdetail { gap: 24px; }
@media (min-width: 640px) { .pdetail { grid-template-columns: 280px 1fr; } }
.pdesc { color: var(--ink-2); }
.callout { border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--green) 24%, transparent); background: var(--green-soft); color: var(--ink-2); }
.callout.soft { background: var(--surface-2); border-color: var(--line); }
.qty { border-radius: var(--r-pill); background: var(--surface-2); }
.qty .iconbtn { border-radius: 50%; background: var(--surface); }
.cline { border-bottom: 1px solid var(--line); }
.csum { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.payopt { border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); }
.payopt.on { border-color: var(--green); background: var(--green-soft); }
.ocard { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.step i { border-radius: 50%; }
.sicon { border-radius: 12px; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox .input { flex: 1; min-width: 0; }
.promo { border-radius: var(--r-lg); }

/* Moi */
.mecard {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 22px;
  margin-bottom: 16px;
}
.mecard.col { gap: 12px; }
.mecard.role { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; border-top: 1px solid var(--line); }
.mecard.role:hover { border-color: var(--red-line); }
.mecard .mn { font-size: 20px; font-weight: 800; }
.mecard .ms { font-size: 13.5px; color: var(--ink-2); }
.mecard .sec, .sechead .sec { color: var(--red-2); margin-bottom: 6px; }
.ricon { border-radius: 12px; background: var(--red-soft); color: var(--red); border: 0; width: 44px; height: 44px; }
.frow { border-bottom: 1px solid var(--line); }
.fmain b { font-weight: 700; }
.lrow { border-radius: var(--r-md); border-bottom: 1px solid var(--line); padding: 15px 12px; font-weight: 700; }
.lrow:hover { background: var(--surface-2); color: var(--red-2); }
.kind { border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); }
.kind:hover:not([disabled]) { border-color: var(--green); background: var(--green-soft); }
.kind .kic { border-radius: 10px; background: var(--green-soft); color: var(--green); border: 0; }
.startcard { border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--line); background: var(--surface); }
.sc-title { font-weight: 700; }
.sc-bar { border-radius: var(--r-pill); background: var(--surface-3); }
.sc-bar i { border-radius: var(--r-pill); background: var(--red); }
.sc-ck { border-radius: 6px; }
.sc-row.done .sc-ck { background: var(--green); border-color: var(--green); }
.prof-name { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.prof-sub { font-size: 11.5px; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.chips .tag { background: var(--surface-2); }
.chips .tag { border: 0; }
.cinfo-head { flex-wrap: wrap; }
.cform-top { grid-template-columns: 72px 1fr; }
.emoji-in { font-size: 20px; }
.avatar.circle { border-radius: 50%; }

/* Découverte, sujets, intérêts */
.tgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tcard { text-align: left; gap: 8px; border-radius: var(--r-lg); }
.tcard .tpic { border-radius: 12px; }
.tcard span { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ints { gap: 10px; }
.int { border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); }
.int .tpic { border-radius: 8px; }
.int.on { border-color: var(--red); background: var(--red-soft); }
.int-ck { border-radius: 50%; background: var(--red); }
.chip-topic { border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); }
.chip-topic .tpic { border-radius: 50%; }
.mini-deal { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.md-m { border-radius: 10px; }
.crow .cmain b { font-size: 16px; font-weight: 700; }
.qrbox { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }

/* Portefeuille et espaces */
.wal-card {
  border-radius: var(--r-xl);
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow-2);
  padding: 30px 28px;
}
.wal-card::after { display: none; }
.wal-lb { letter-spacing: .14em; font-size: 10px; color: rgba(255,255,255,.62); }
.wal-amt { font-size: 48px; color: #fff; }
.wal-ph { font-family: var(--font-ui); font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.7); }
.wal-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.wal-actions .btn-ghost:hover { background: rgba(255,255,255,.1); }
.wal-card .dot { background: var(--green); }
.hrow { border-bottom: 1px solid var(--line); }
.hic { border-radius: 10px; }
.reassure { border-radius: var(--r-lg); background: var(--green); color: #fff; }
.reassure b { font-weight: 800; font-size: 20px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
  box-shadow: var(--shadow-1);
}
.stat .sv { font-size: 28px; overflow-wrap: anywhere; }
.stat .sl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat.gold { border-top-color: var(--line); }
.stat.gold .sv { color: var(--green-2); }
.stat.ok .sv { color: var(--green-2); }
.plist2, .feed { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.prow2, .frow2 { border-bottom: 1px solid var(--line); }
.photo-btn { border-radius: 50%; background: transparent; }

/* Mes partages */
.st { gap: 18px; }
.st-card { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); padding: 22px; box-shadow: var(--shadow-1); }
.st-hero { background: var(--black); color: #fff; border: 0; padding: 28px; }
.st-hero h2 { color: #fff; }
.st-tiles { gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stile { border-radius: 14px; background: var(--surface-2); border-left: 0; padding: 16px; display: grid; gap: 3px; }
.stile b { font-size: 34px; }
.stile span { font-size: 12px; color: var(--muted); }
.stile.clay { background: var(--red-soft); }
.stile.clay b { color: var(--red-2); }
.stile.leaf { background: var(--green-soft); }
.stile.leaf b { color: var(--green-2); }
.st-hero .stile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.st-hero .stile.clay, .st-hero .stile.leaf { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.st-hero .stile b { color: #fff; font-size: 38px; }
.st-hero .stile span { color: rgba(255,255,255,.66); }
.st-spark, .spark { color: rgba(255,255,255,.4); }
.spark rect { fill: rgba(255,255,255,.18); }
.spark rect.on { fill: var(--red); }
.strow { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); padding: 12px; margin-bottom: 8px; }
.sr-m { border-radius: 10px; }
.sr-i b { font-weight: 700; font-size: 16px; }
.shr-bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr-chart .shr-col b.o { font-size: 9px; }
.shr-chart.dense .shr-col b.o { display: none; }
.st-h2 { font-size: 24px; font-weight: 800; margin-top: 6px; }

/* =====================================================================
   ADMIN / ÉQUIPE
   ===================================================================== */
.veil { background: rgba(12, 12, 13, .58); }
.sheet {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  background: var(--surface);
  animation: rise .22s var(--ease);
}
.sheet.wide { max-width: 1040px; max-height: min(90dvh, 860px); }
.sheet-head {
  border-bottom: 1px solid var(--line);
  padding: 20px 16px 16px 26px;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.sheet-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.sheet-head .iconbtn { width: 36px; height: 36px; }
.sheet-body { overflow-x: hidden; padding: 20px 26px 28px; }
.sheet-foot { border-top: 1px solid var(--line); padding: 14px 26px calc(16px + var(--safe-b)); background: var(--surface); }
.sheet .sec { letter-spacing: .11em; color: var(--red-2); margin: 26px 0 8px; }
.team-tabs {
  gap: 6px;
  border-bottom: 0;
  padding: 0 0 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
  background: transparent;
  border: 0;
}
.team-tabs::-webkit-scrollbar { display: none; }
.team-tabs button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  background: var(--surface);
}
.team-tabs button:hover { background: var(--surface-2); }
.team-tabs button.on { color: #fff; background: var(--black); border-color: var(--black); box-shadow: none; }
:root[data-theme="dark"] .team-tabs button.on { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.team-tabs .n { margin-left: 6px; background: var(--red); color: #fff; border-radius: var(--r-pill); padding: 1px 7px; font-size: 11px; font-weight: 700; }
.seg { max-width: 100%; overflow-x: auto; }
.mcard {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-1);
}
.mcard .mname, .mcard .msub, .mcard .mtags, .mcard .inline-actions { min-width: 0; overflow-wrap: anywhere; }
.mcard .mname { font-size: 18px; font-weight: 800; }
.mcard .msub { font-size: 12.5px; color: var(--muted); }
.mcard .inline-actions { margin-top: 8px; }
.mcard .avatar { --size: 48px; }
.acard { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 16px; margin-bottom: 8px; box-shadow: var(--shadow-1); }
.ahead { flex-wrap: wrap; gap: 10px; }
.ahead > div { min-width: 0; }
.ahead > .tag { flex: none; max-width: 100%; }
.amsg, .xrow b, .xrow span, .statusline span, .aentry .ab, .snap span, .shr-ins span, .hint { overflow-wrap: anywhere; }
.amsg { font-style: normal; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 12px; }
.xtra .xrow { flex-wrap: wrap; }
.xrow span { min-width: 96px; }
.xtra .xrow b { min-width: 0; }
.statusline { align-items: flex-start; flex-wrap: wrap; }
.statusline .dot { margin-top: 5px; flex: none; }
.statusline span:not(.dot) { min-width: 0; }
.snaplist { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.snap { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.snap:last-child { border-bottom: 0; }
.snap span { min-width: 0; }
.snap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aentry { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.aentry .at { font-size: 10px; letter-spacing: .02em; color: var(--muted); }
.aentry .ab { min-width: 0; }
.goalbar { border-radius: var(--r-pill); background: var(--surface-3); }
.goalbar i { border-radius: var(--r-pill); background: var(--red); }
.advgrid { gap: 0 16px; }
.funrow { grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto; }
.funbar { border-radius: var(--r-pill); background: var(--surface-3); }
.funbar i { border-radius: var(--r-pill); background: var(--red); }
.funn { font-size: 20px; }
.snap.shr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.shr-bar { grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) auto; }
.shr-ins { border-radius: var(--r-md); background: var(--surface-2); }
.shr-ins .i { color: var(--green); }
.shr-ins.warn { background: var(--red-soft); }
.shr-ins.ok { background: var(--green-soft); }
.shr-periods { display: flex; gap: 6px; flex-wrap: wrap; }
.spark rect { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.spark rect.on { fill: var(--red); }
@media (max-width: 560px) {
  .shr-bar { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .funrow { grid-template-columns: minmax(0, 1fr) auto; }
}

/* =====================================================================
   ACCUEIL VISITEUR : une page d'atterrissage à la Applab
   ===================================================================== */
.wl.jl { background: var(--bg); color: var(--ink); font-family: var(--font-ui); }
.jl-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.jl-top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.jl-top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 72px; }
.jl-brand { display: inline-flex; align-items: center; gap: 0; text-decoration: none; color: var(--ink); }
.jl-brand .wm { font-size: 22px; color: var(--ink); }
.jl-top-right { display: flex; align-items: center; gap: 10px; }
.jl-install {
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.jl-install .i { width: 16px; height: 16px; }
.jl-install:hover { background: var(--surface-2); border-color: var(--ink-2); }
.jl-date { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jl-login {
  font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface);
  white-space: nowrap;
}
.jl-login:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-2); }

.jl-hero { padding: clamp(34px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); }
.jl-mast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.jl-mast .jl-kicker { color: var(--red-2); margin: 0; }
.jl-dateline { display: none; }
.jl-mast-note {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
}

.jl-lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); margin-top: 36px; align-items: center; }
.jl-lead-media { margin: 0; display: flex; flex-direction: column; order: 2; }
.jl-lead-media img {
  display: block; width: 100%; height: 100%; min-height: 380px;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-xl); background: var(--surface-3);
  box-shadow: var(--shadow-2);
}
.jl-lead-media figcaption { flex: none; margin-top: 9px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jl-lead-copy { padding-top: 0; order: 1; }
.jl-title {
  margin: 0;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.01;
  letter-spacing: -.035em;
  font-weight: 800;
}
.jl-title em { color: var(--red); font-style: normal; }
:root[data-theme="dark"] .jl-title em { color: #e6a09a; }
.jl-standfirst { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
.jl-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.jl-cta .btn { min-height: 50px; padding: 0 26px; font-size: 15px; }
.jl-note { margin: 16px 0 0; font-size: 11.5px; letter-spacing: 0; color: var(--muted); }
.jl-panel {
  margin-top: 18px; border: 1px solid var(--line); background: var(--surface);
  padding: 16px; border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.jl-panel-top { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.jl-panel-top b { color: var(--red-2); font-weight: 700; }
.jl-panel-by { display: flex; align-items: center; gap: 9px; padding: 10px 0; }
.jl-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.jl-panel-by b { font-size: 14px; font-weight: 700; display: block; line-height: 1.1; }
.jl-panel-by span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jl-panel-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-3); }
.jl-panel-q { margin: 12px 0 10px; font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.jl-panel-prod { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.jl-panel-prod b { font-size: 14px; font-weight: 700; }
.jl-price { font-size: 15px; color: var(--red-2); }
:root[data-theme="dark"] .jl-panel-top b,
:root[data-theme="dark"] .jl-price { color: #e6a09a; }
.jl-panel-act { display: flex; gap: 6px; margin-top: 10px; }
.jl-panel-act span { flex: 1; text-align: center; padding: 8px 0; font-size: 10px; letter-spacing: .02em; text-transform: none; font-weight: 700; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.jl-panel-act span:first-child { background: var(--red); border-color: var(--red); color: #fff; }

/* Aperçu de l'application : carte large sous le hero sur grand écran */
@media (min-width: 901px) {
  .jl-panel {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-areas: "img top" "img by" "img q" "img prod" "img act";
    column-gap: clamp(22px, 3vw, 36px);
    row-gap: 0;
    align-items: start;
    margin-top: clamp(34px, 4vw, 52px);
    padding: 16px;
  }
  .jl-panel-top { grid-area: top; }
  .jl-panel-by { grid-area: by; }
  .jl-panel-img { grid-area: img; align-self: stretch; width: 100%; height: 100%; min-height: 260px; aspect-ratio: auto; }
  .jl-panel-q { grid-area: q; max-width: 52ch; font-size: 17px; }
  .jl-panel-prod { grid-area: prod; max-width: 560px; }
  .jl-panel-act { grid-area: act; max-width: 420px; }
}

/* Sommaire */
.jl-sommaire { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.jl-sommaire-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jl-som { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 18px 16px 18px 0; border-right: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.jl-som:last-child { border-right: 0; }
.jl-som-n { font-size: 12px; font-weight: 800; color: var(--red); background: var(--red-soft); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.jl-som b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.jl-som span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.jl-som:hover b { color: var(--red-2); }

/* Sections */
.jl-section { padding: clamp(46px, 7vw, 84px) 0; border-bottom: 1px solid var(--line); }
.jl-section:nth-of-type(even) { background: var(--surface); }
.jl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }
.jl-h2 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.jl-section-head p { margin: 0; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); max-width: 36ch; text-align: right; }
.jl-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
.jl-topic { text-decoration: none; color: var(--ink); display: grid; gap: 9px; }
.jl-topic img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); background: var(--surface-3); }
.jl-topic b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.jl-topic span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.jl-topic:hover img { visibility: visible; }
.jl-topic:hover b { color: var(--red-2); }

.jl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jl-step { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.jl-step + .jl-step { padding-left: 24px; }
.jl-step:last-child { border-right: 1px solid var(--line); padding-right: 24px; }
.jl-num { font-size: 34px; color: var(--red); line-height: 1; display: block; margin-bottom: 14px; width: 54px; height: 54px; border-radius: 16px; background: var(--red-soft); display: grid; place-items: center; }
.jl-step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.jl-step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.jl-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.jl-who > div { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.jl-who > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.jl-who h3 { margin: 0 0 8px; color: var(--red-2); font-size: 19px; font-weight: 800; }
.jl-who p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.jl-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jl-trust > div { padding: 22px; border-radius: var(--r-lg); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 16%, transparent); }
.jl-trust h3 { margin: 0 0 7px; font-size: 17px; font-weight: 800; color: var(--green-2); }
.jl-trust p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.jl-band { background: var(--black); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.jl-band .jl-wrap { display: grid; gap: 14px; justify-items: start; }
.jl-band h2 { margin: 0; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; color: #fff; letter-spacing: -.035em; }
.jl-band h2 em { color: #e9a09a; font-style: normal; }
.jl-band p { margin: 0; max-width: 42ch; color: rgba(255,255,255,.72); font-size: 16px; }
.jl-band .btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.jl-band .btn-primary:hover { background: var(--red-3); border-color: var(--red-3); }
.jl-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.jl-band .btn-ghost:hover { background: rgba(255,255,255,.1); }
.jl-band .jl-cta { margin-top: 8px; }

.jl-foot { background: var(--black); color: rgba(255,255,255,.6); padding: 28px 0 36px; font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.1); }
.jl-foot .jl-wrap { display: flex; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; }
.jl-foot b { color: #fff; font-size: 15px; font-weight: 800; }
.jl-foot .linkbtn { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .jl-date { display: none; }
  .jl-mast-note { display: none; }
  .jl-lead { grid-template-columns: 1fr; }
  .jl-lead-media { order: -1; }
  .jl-lead-media img { min-height: 0; aspect-ratio: 4 / 3; }
  .jl-sommaire-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-som:nth-child(2n) { border-right: 0; }
  .jl-som { border-bottom: 1px solid var(--line); }
  .jl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-steps { grid-template-columns: 1fr; }
  .jl-step, .jl-step + .jl-step { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .jl-step:last-child { border-bottom: 1px solid var(--line); }
  .jl-who { grid-template-columns: 1fr; }
  .jl-who > div, .jl-who > div + div { padding: 20px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .jl-trust { grid-template-columns: 1fr; }
  .jl-section-head { display: block; }
  .jl-section-head p { text-align: left; margin-top: 8px; max-width: none; }
}
@media (max-width: 520px) {
  .jl-top-in { height: 64px; }
  .jl-cta .btn { flex: 1 1 100%; }
  .jl-sommaire-in { grid-template-columns: 1fr; }
  .jl-som { border-right: 0; }
  .jl-title { font-size: clamp(38px, 11vw, 48px); }
}
@media (max-width: 600px) {
  .jl-install { width: 44px; padding: 0; justify-content: center; }
  .jl-install span { display: none; }
}
@media (max-width: 360px) {
  .jl-top-in { gap: 8px; }
  .jl-top-right { gap: 6px; }
  .jl-brand .wm { font-size: 19px; }
  .jl-login { padding: 9px 12px; font-size: 12px; }
  .jl-install { width: 40px; }
}

/* =====================================================================
   PAGES PUBLIQUES : /d/{code}, /v/{refcode}
   ===================================================================== */
.pub { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 16px; }
.pub-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.pub-top::after { display: none; }
.pub-brand { font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.pub-mark { border-radius: 10px; }
.pub-open { border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; padding: 9px 16px; background: var(--surface); }
.pub-open:hover { background: var(--surface-2); }
.pub-wrap { max-width: 1080px; }
.pub-foot { background: var(--black); color: rgba(255,255,255,.62); border-top: 0; }
.pub-foot b { font-size: 16px; font-weight: 800; }
.pub-empty h1 { font-weight: 800; }
.pav { border-radius: 50%; background: hsl(var(--hue, 150) 22% 28%); font-weight: 700; }
.pbtn { border-radius: var(--r-pill); font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none; }
.pbtn small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.pbtn-clay { background: var(--red); color: #fff; }
.pbtn-clay:hover { background: var(--red-2); }
.pbtn-line { border-color: var(--line-2); color: var(--ink); }
.pbtn-line:hover { background: var(--surface-2); }
.pbtn-ghost { background: transparent; border-color: var(--line-2); }
.pbtn-ghost:hover { border-color: var(--ink); }
.dl { gap: 0; }
@media (min-width: 900px) { .dl { gap: clamp(28px, 4vw, 56px); } }
.dl-media { border-radius: var(--r-xl); background: var(--surface-3); overflow: hidden; }
.dl-badges { top: 12px; left: 12px; }
.dl-ph { background: var(--surface-3); color: var(--red); font-weight: 800; }
.dl-info { padding: 28px 0 8px; gap: 16px; }
.dl-from { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dl-from b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.dl-from small { font-size: 10px; letter-spacing: .04em; }
.dl-note {
  margin: 0;
  padding: 16px 18px;
  border-left: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
}
.dl-title { font-size: clamp(36px, 5.6vw, 52px); letter-spacing: -.035em; font-weight: 800; }
.dl-cat { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.dl-price strong { font-size: clamp(36px, 5.4vw, 50px); color: var(--red-2); }
.dl-price s { font-size: 15px; color: var(--muted); font-weight: 500; }
.dl-desc { color: var(--ink-2); line-height: 1.65; }
.dl-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-1); }
.dl-cta .btn { border-radius: var(--r-pill); }
.dl-trust li { color: var(--ink-2); }
.dl-trust li::before { border-color: var(--green); }
.dl-share { border-radius: var(--r-lg); background: var(--surface-2); border: 0; padding: 18px; }
.dl-share-t { font-weight: 800; font-size: 18px; }
.vt { padding-top: 34px; }
.vt-head { gap: 20px; }
.vt-head h1 { font-weight: 800; letter-spacing: -.03em; }
.vt-role { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.vt-bio, .vt-city { color: var(--ink-2); }
.vt-h2 { font-size: 26px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 16px; }
.vt-grid { gap: 18px 16px; }
.vc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 10px; box-shadow: var(--shadow-1); }
.vc:hover { transform: translateY(-2px); border-color: var(--line-2); }
.vc-media { border-radius: 12px; aspect-ratio: 1; }
.vc-t { font-size: 14.5px; font-weight: 700; padding: 8px 4px 0; }
.vc-p { font-size: 16px; padding: 0 4px; color: var(--red-2); }
.vt-none { border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--ink-2); }

/* =====================================================================
   ACCÈS : connexion, inscription, invitation
   ===================================================================== */
.auth { background: var(--surface); }
.auth-art {
  background: var(--black) url("/img/photos/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.auth-art::before { display: none; }
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(12, 12, 13, .78) 0%, rgba(109, 18, 18, .55) 46%, rgba(12, 12, 13, .92) 100%);
  pointer-events: none;
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art .wm { color: #fff; font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.auth-quote { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.03em; }
.auth-quote em { color: #efb0aa; font-style: normal; }
.auth-foot { color: rgba(255,255,255,.72); font-size: 12.5px; letter-spacing: .01em; }
.auth-panel { background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-weight: 800; font-size: 38px; line-height: 1.02; letter-spacing: -.03em; }
.auth-card p.lead { color: var(--ink-2); }
.auth-alt { color: var(--ink-2); }
.btn-telegram { background: var(--green); border-color: var(--green); border-radius: var(--r-pill); }
.btn-telegram:hover { background: var(--green-2); border-color: var(--green-2); }
.auth-card .field { margin-bottom: 2px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-card .brandline { gap: 10px; }

/* =====================================================================
   DIVERS
   ===================================================================== */
.toast { border-radius: var(--r-pill); background: var(--black); color: #fff; box-shadow: var(--shadow-2); font-weight: 600; }
.toast.bad { background: var(--danger); }
.banner { border-radius: var(--r-pill); background: var(--black); color: #fff; box-shadow: var(--shadow-2); }
.lightbox img { border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
.empty b { font-weight: 800; font-size: 20px; }
.skel { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sr-only, .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; text-align: left; }
.pick:hover { border-color: var(--red); }
.pick-m { border-radius: 0; aspect-ratio: 4 / 3; }
.pick-t { display: block; padding: 8px 10px 0; font-weight: 700; font-size: 13px; }
.pick-p { display: block; padding: 2px 10px 10px; color: var(--red-2); font-weight: 700; font-size: 13px; }
.sh-preview { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.sh-pm { width: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.sh-pi b { font-weight: 700; }
.sh-link { color: var(--muted); font-size: 12px; }
.note-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.note-chip { border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); padding: 6px 12px; font-size: 12.5px; color: var(--ink-2); }
.note-chip:hover { border-color: var(--red); color: var(--red-2); }
.sh-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.sbtn { border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); padding: 9px 14px; font-weight: 600; font-size: 13px; }
.sbtn:hover { border-color: var(--ink-2); }
.sbtn.whatsapp { color: var(--green-2); }
.sbtn.telegram, .sbtn.facebook { color: var(--red-2); }
/* Les couleurs de plateforme restent dans l'icône et le libellé : fond neutre,
   contraste lisible (le bleu Facebook sur texte rouge était illisible). */
.sbtn.whatsapp, .sbtn.facebook, .sbtn.telegram { background: var(--surface); border: 1px solid var(--line-2); }
.sbtn.whatsapp:hover, .sbtn.facebook:hover, .sbtn.telegram:hover { background: var(--surface-2); }

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

/* Impression */
@media print {
  .pub-top, .pub-foot, .dl-cta, .dl-share, .jl-top { display: none !important; }
  .pub, .dl, .dl-info { background: #fff; color: #000; }
  .dl { display: block; }
  .dl-media { max-width: 60%; margin: 0 auto; }
  .dl-title, .dl-price strong { color: #000; }
}

/* Mobile : le dock porte déjà « Partager », le bouton flottant du carnet ferait doublon. */
@media (max-width: 900px) {
  .side .fab { display: none; }
  .side .tlist { padding-bottom: 96px; }
}

/* Boutons de retour : contraste plein sur les en-têtes blancs. */
.chat-head .back, .pg-head .back { color: var(--ink); }
.chat-head .back:hover, .pg-head .back:hover { background: var(--surface-2); }

@media (max-width: 600px) {
  .team-tabs { flex-wrap: wrap; overflow-x: visible; }
  .team-tabs button { flex: 0 0 auto; }
}

@media (max-width: 700px) {
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero { padding: 20px; }
  .st-card { padding: 18px; }
}

/* ---------- Thème sombre : textes d'accent lisibles ---------- */
:root[data-theme="dark"] .j-kicker,
:root[data-theme="dark"] .titem.unread .ttime,
:root[data-theme="dark"] .mecard .sec,
:root[data-theme="dark"] .sechead .sec,
:root[data-theme="dark"] .sheet .sec,
:root[data-theme="dark"] .fp,
:root[data-theme="dark"] .pprice,
:root[data-theme="dark"] .dprice b,
:root[data-theme="dark"] .dl-price strong,
:root[data-theme="dark"] .stile.clay b,
:root[data-theme="dark"] .jl-who h3,
:root[data-theme="dark"] .jl-kicker { color: #e6a09a; }
:root[data-theme="dark"] .fshare,
:root[data-theme="dark"] .dc-why,
:root[data-theme="dark"] .hsub.live,
:root[data-theme="dark"] .stile.leaf b,
:root[data-theme="dark"] .stat.gold .sv,
:root[data-theme="dark"] .stat.ok .sv,
:root[data-theme="dark"] .tag-event { color: #9ed6b4; }

/* Étiquettes compactes : une seule ligne dans les cartes produit. */
.seal, .ptag, .dtag, .role-tag { letter-spacing: .05em; }
.seal { font-size: 9.5px; }

/* Appel à l'action de la page publique : dans le flux, jamais par-dessus le titre. */
.dl-cta { position: static; bottom: auto; padding: 18px; }

/* Pages publiques : pied de page collé en bas même quand le contenu est court. */
body.pub { min-height: 100dvh; display: flex; flex-direction: column; }
body.pub > .pub-wrap { flex: 1 0 auto; width: 100%; }
body.pub > .pub-top, body.pub > .pub-foot { flex: none; }

/* Desktop : « Nouvelle conversation » devient un bouton pleine largeur sous la liste,
   pour ne plus flotter au-dessus des dernières conversations. */
@media (min-width: 901px) {
  .side .fab {
    position: static;
    width: auto;
    height: 46px;
    border-radius: var(--r-pill);
    margin: 8px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-1);
    order: 2;
  }
  .side .fab::after { content: "Nouvelle conversation"; font-size: 13px; font-weight: 700; }
  .side .tlist { padding-bottom: 8px; }
}

/* =====================================================================
   ERGONOMIE — passe du 2026-11-22
   Cibles tactiles, confort de saisie mobile, défilement, bas de page.
   ===================================================================== */

/* Nom de conversation : pleine largeur et aligné à gauche. La règle du rail
   de sujets (.tstory .tname) ne doit plus s'appliquer ici. */
.titem .tname { max-width: none; text-align: left; letter-spacing: 0; text-transform: none; }

/* Étiquette de certification : sa taille réelle, pas une bande pleine largeur
   quand elle est posée dans une grille (fiche produit). */
.seal { justify-self: start; }

/* Zone de frappe élargie sans modifier la densité visuelle : 48 px pour un
   bouton icône de 40 px, sans casser l'alignement de l'en-tête. */
.iconbtn::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; }
.hm-tools { gap: 4px; }

/* Retour visuel au toucher, sans halo système ni effets de survol collants. */
.titem, .dock-btn, .chip, .hm-chip, .cp-b, .act-b, .fcard, .pcard, .pick, .jl-topic { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .titem:active, .dock-btn:active, .chip:active, .hm-chip:active, .cp-b:active,
  .act-b:active, .fcard:active, .pcard:active, .sbtn:active { background: var(--surface-2); }
  .titem:hover, .fcard:hover, .pcard:hover, .vc:hover, .kind:hover:not([disabled]) { transform: none; }
}

/* Mobile / tablette : cibles de 40-44 px, champs à 16 px (pas de zoom iOS),
   et bas des pages dégagé sous le dock. */
@media (max-width: 900px) {
  .act-b { min-height: 40px; min-width: 44px; padding: 9px 12px; }
  .post .act-order { min-height: 44px; }
  .topic-tag { min-height: 36px; }
  .note-chip { min-height: 40px; display: inline-flex; align-items: center; }
  .cp-b { min-height: 40px; }
  .chip, .hm-chip { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .seg button { min-height: 40px; }
  .team-tabs button { min-height: 40px; }
  .btn-sm { min-height: 40px; }
  .sheet-head .iconbtn { width: 44px; height: 44px; }
  .sheet-foot { gap: 8px; }
  .sheet-foot > .btn { flex: 1 1 auto; }
  .pg-body { padding-bottom: calc(var(--dock-h) + 24px); }

  .input, .select, .textarea, .search input, .cbox textarea, .tg-code { font-size: 16px; }
  .search input { height: 46px; }

  /* Le guide de démarrage tient sur l'action suivante : les étapes faites
     restent annoncées par « 3 étapes sur 4 » et la barre de progression. */
  .startcard { padding: 14px 14px 12px; }
  .startcard .sc-row.done { display: none; }
  .startcard .sc-title { font-size: 17px; }
  .startcard .sc-x { width: 40px; height: 40px; }
}

/* Le fil est une grille : une colonne ne doit jamais s'élargir à cause d'un
   bandeau horizontal (personnes, cercles), sinon les cartes débordent. */
.hm-feed { grid-template-columns: minmax(0, 1fr); }
.hm-feed > * { min-width: 0; }
.strip { min-width: 0; }

/* Rails et filtres : défilement horizontal net, sans rebond de page. */
.hm-seg, .hm-rail, .trail, .pg-chips, .team-tabs, .filters {
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 16px;
}
.hm-seg > *, .hm-rail > *, .trail > *, .pg-chips > *, .team-tabs > *, .filters > * { scroll-snap-align: start; }
.hm-seg, .hm-rail, .trail { padding-right: 16px; }

/* Dock mobile : libellés lisibles sur fond blanc. Sur desktop, le rail est noir
   et garde ses libellés clairs. */
@media (max-width: 900px) { .dock-btn { color: var(--ink-2); } }
.dock-lb { font-size: 10.5px; }

/* « Derniers messages » : au-dessus de la zone de saisie, jamais derrière. */
.jump { bottom: calc(var(--composer-h, 72px) + 12px); }

/* Zone de saisie : la barre de défilement native (Windows) volait 17 px et
   dessinait des flèches dans un champ d'une ligne. On la masque, le défilement
   reste possible au clavier et au doigt. */
.cbox textarea { scrollbar-width: none; }
.cbox textarea::-webkit-scrollbar { width: 0; height: 0; }

/* Les messages éphémères ne recouvrent pas le dock mobile. */
@media (max-width: 900px) {
  .toasts { bottom: calc(var(--dock-h) + 12px); }
  .qty .iconbtn { width: 40px; height: 40px; }
}

/* Connexion visiteur : cible de 44 px. */
.jl-login { min-height: 44px; display: inline-flex; align-items: center; }

/* En-tête public : le bouton reste sur une ligne, même à 320 px. */
.pub-open { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 360px) { .pub-open { padding: 8px 12px; font-size: 11.5px; } }

/* Aucune photo produit : une initiale lisible, jamais un bloc vide. */
.pimg.ph {
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pimg.thumb.ph { font-size: 20px; }
:root[data-theme="dark"] .pimg.ph { background: var(--red-soft); color: #e6a09a; }

/* Boutique mobile : une seule rangée de filtres qui défile, pas quatre lignes. */
@media (max-width: 900px) {
  .pg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .pg-chips::-webkit-scrollbar { display: none; }
}

/* Boutique mobile : deux produits par ligne, comme prévu par la grille de base. */
@media (max-width: 520px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 8px; }
  .pbody2 { padding: 9px 2px 2px; gap: 4px; }
  .pname { font-size: 13.5px; width: 100%; text-align: left; display: flex; align-items: center; min-height: 32px; }
  .pprice { font-size: 15px; }
  .seal { font-size: 8.5px; padding: 3px 6px; }
}

/* Vitrine publique : deux produits par ligne, avatar aligné en haut. */
@media (max-width: 520px) {
  .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vc { padding: 8px 8px 10px; border-radius: 16px; }
  .vc-t { font-size: 13px; padding-top: 6px; }
  .vc-p { font-size: 14px; }
  .vt-head { align-items: flex-start; gap: 14px; }
  .pav-lg { width: 56px; height: 56px; font-size: 22px; }
}

/* Téléphones : l'étiquette de sujet passe sous le nom au lieu de comprimer
   « Prénom Nom · rôle » sur deux lignes. */
@media (max-width: 420px) {
  .dc-head { flex-wrap: wrap; row-gap: 6px; }
  .dc-head .topic-tag { flex: 0 0 auto; margin-left: 54px; max-width: none; }
  .dc-head .dc-who { min-width: 118px; }
  /* Le titre garde deux lignes lisibles à côté du prix. */
  .dc-line .dc-title { font-size: 19px; }
  .dc-line .dprice b { font-size: 21px; }
  /* Le sous-titre de section passe sous le titre au lieu de l'écraser. */
  .hm-sec { flex-wrap: wrap; row-gap: 2px; }
  .hm-sec h2 { font-size: 21px; }
  .hm-sec span { flex: 1 1 100%; text-align: left; }
}

/* Très petits écrans : l'action d'en-tête reste icône seule pour laisser
   sa place au titre de page. */
@media (max-width: 340px) {
  .pg-head .btn-sm { font-size: 0; gap: 0; padding: 0 12px; min-width: 44px; }
  .pg-head .btn-sm .i { width: 18px; height: 18px; }
}

/* Carte « Moi » : sur mobile, le texte respire et l'action passe sous la fiche. */
@media (max-width: 600px) {
  .mecard:not(.col) { flex-wrap: wrap; align-items: flex-start; }
  .mecard:not(.col) .memain { flex: 1 1 calc(100% - 72px); }
  .mecard:not(.col) > .btn { flex: 1 1 100%; justify-content: center; }
  .mecard.role .memain { flex: 1 1 calc(100% - 60px); }
  .mecard .chips .tag { font-size: 10.5px; }
}

/* Accueil visiteur : sur mobile, le message et l'action avant la photo. */
@media (max-width: 900px) {
  .jl-lead-copy { order: 1; }
  .jl-lead-media { order: 2; }
  .jl-lead-media img { aspect-ratio: 16 / 10; }
  .wl { scroll-padding-top: 84px; }
}

/* Desktop : le fil a un en-tête nommé (la marque reste dans le volet gauche). */
.hm-ctx { display: none; }
@media (min-width: 901px) {
  .hm-brand { display: none; }
  .hm-ctx { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
}

/* Très petits écrans : la marque ne pousse pas les actions hors de l'écran. */
.hm-brand { overflow: hidden; }
.hm-brand .wm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { .hm-brand .wm { font-size: 17px; } .hm-tools .hm-team { display: none; } }

/* Discussions : accès direct à « Nouvelle conversation » aussi sur mobile. */
.side-top .brand { overflow: hidden; }
.side-top .brand .wm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 901px) { .side-new { display: none; } }
@media (max-width: 339px) { .side-top .brand .wm { font-size: 17px; } }

/* Commentaires sur les publications du fil. */
.cmt-list { display: flex; flex-direction: column; gap: 14px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cmt-head b { font-size: 14px; color: var(--ink); }
.cmt-head span { font-size: 12px; color: var(--muted); }
.cmt-main p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-main p.cmt-gone { color: var(--muted); font-style: italic; }
.cmt-acts { display: flex; gap: 14px; margin-top: 4px; font-size: 13px; }
.cmt-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cmt-empty { margin: 0; color: var(--muted); font-size: 14px; }
.cmt-compose { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cmt-compose .btn { align-self: flex-end; }
.cmt-reply { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* Portefeuille — présentation alignée sur node0 (theme-v2 : crème, encre, or, filets fins, rayons 12/16).
   Jetons repris de node0 (--df-*) et limités à la page .wallet-v2 : le reste de keurmame ne change pas. */
.wallet-v2 {
  --w-cream: #faf7f2; --w-card: #ffffff; --w-ink: #2e2118; --w-muted: #6b5d52;
  --w-line: #e7e1d8; --w-primary: #1e293b; --w-primary-deep: #0f1623; --w-gold: #c9942f; --w-gold-soft: #f6ecd6;
  --w-ok: #17653a; --w-ok-soft: #e6f1ea;
  background: var(--w-cream); color: var(--w-ink); border-radius: 16px; padding: 4px 0 24px;
}
:root[data-theme="dark"] .wallet-v2 {
  --w-cream: #17171a; --w-card: #1f1f23; --w-ink: #f1ece4; --w-muted: #a89f93;
  --w-line: #34343a; --w-primary: #0f1623; --w-primary-deep: #080c14; --w-gold-soft: #3a3020;
  --w-ok: #6fcf97; --w-ok-soft: #1d3326;
}
.wallet-v2 .pg-body { display: grid; gap: 16px; }
.wallet-v2 .wal-card {
  background: var(--w-primary); border-radius: 16px; padding: 24px 22px 20px;
  border: 1px solid var(--w-primary-deep); border-top: 3px solid var(--w-gold);
  box-shadow: 0 14px 34px rgba(38, 28, 20, .14);
}
.wallet-v2 .wal-lb { font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.66); }
.wallet-v2 .wal-amt { font-family: var(--df-serif, Georgia, 'Times New Roman', serif); font-size: 46px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.wallet-v2 .wal-amt small { font-family: inherit; font-size: 17px; color: var(--w-gold); opacity: 1; }
.wallet-v2 .wal-ph { font-size: 12.5px; color: rgba(255,255,255,.72); }
/* Actions : quatre pastilles à portée de pouce (icône au-dessus du libellé), cible ≥ 56 px. */
.wallet-v2 .wal-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.wallet-v2 .wal-actions .btn { flex-direction: column; gap: 4px; min-height: 56px; padding: 8px 4px; font-size: 12.5px; font-weight: 600; border-radius: 12px; justify-content: center; }
.wallet-v2 .wal-actions .btn-gold { background: var(--w-gold); color: #1b130a; border-color: var(--w-gold); }
.wallet-v2 .wal-actions .btn-gold:hover:not([disabled]) { background: #d6a43f; }
.wallet-v2 .wal-actions .btn-light { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.wallet-v2 .wal-actions .btn-light:hover:not([disabled]) { background: rgba(255,255,255,.16); }
.wallet-v2 .wal-actions .btn:focus-visible { outline: 2px solid var(--w-gold); outline-offset: 2px; }
.wallet-v2 .callout { background: var(--w-gold-soft); border: 1px solid color-mix(in srgb, var(--w-gold) 40%, transparent); color: var(--w-ink); border-radius: 12px; }
.wallet-v2 .callout.soft { background: var(--w-card); border-color: var(--w-line); color: var(--w-muted); }
.wallet-v2 .stats { margin: 0; }
.wallet-v2 .stat { background: var(--w-card); border: 1px solid var(--w-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(38, 28, 20, .05); }
.wallet-v2 .stat .sl { color: var(--w-muted); }
.wallet-v2 .stat .sv { font-variant-numeric: tabular-nums; color: var(--w-ink); }
.wallet-v2 .stat.ok .sv { color: var(--w-ok); }
.wallet-v2 .sec { color: var(--w-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin: 4px 2px -4px; }
.wallet-v2 .chip { border-radius: 999px; background: var(--w-card); border: 1px solid var(--w-line); color: var(--w-ink); min-height: 40px; }
.wallet-v2 .chip.on { background: var(--w-primary); border-color: var(--w-primary); color: #fff; }
.wallet-v2 .hist, .wallet-v2 .plist2, .wallet-v2 .feed { background: var(--w-card); border: 1px solid var(--w-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(38, 28, 20, .05); padding: 0 14px; gap: 0; }
.wallet-v2 .hrow, .wallet-v2 .prow2, .wallet-v2 .frow2 { border-bottom: 1px solid var(--w-line); padding: 14px 0; min-height: 56px; }
.wallet-v2 .hrow:last-child, .wallet-v2 .prow2:last-child, .wallet-v2 .frow2:last-child { border-bottom: 0; }
.wallet-v2 .hic { background: var(--w-cream); border: 1px solid var(--w-line); color: var(--w-muted); }
.wallet-v2 .hic.in { background: var(--w-ok-soft); border-color: transparent; color: var(--w-ok); }
.wallet-v2 .hmain2 span { color: var(--w-muted); }
.wallet-v2 .hamt { font-variant-numeric: tabular-nums; font-weight: 700; }
.wallet-v2 .hamt.in { color: var(--w-ok); }
.wallet-v2 .btn-primary { background: var(--w-primary); border-color: var(--w-primary); color: #fff; border-radius: 12px; }
.wallet-v2 .btn-ghost { border-radius: 12px; border-color: var(--w-line); color: var(--w-ink); }
.wallet-v2 .wal-lock { background: var(--w-card); border: 1px solid var(--w-line); border-radius: 16px; }
.wallet-v2 .wal-lock h3 { font-family: var(--df-serif, Georgia, serif); color: var(--w-ink); }
.wallet-v2 .wal-lock p { color: var(--w-muted); }
@media (max-width: 360px) { .wallet-v2 .wal-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wallet-v2 .wal-amt { font-size: 38px; } }
/* Accueil d un nouveau membre : cercles cochables, étapes. */
.onb-head small { color: var(--muted, #6b6b6b); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.onb-head h3 { margin: 2px 0 0; font-size: 18px; }
.onb-foot { display: flex; gap: 8px; justify-content: space-between; width: 100%; }
.onb-circle { position: relative; width: 100%; text-align: left; background: none; border: 1px solid var(--line, #e6e0d6); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.onb-circle.on { border-color: var(--red); }
.onb-circle .int-ck { position: static; display: none; place-items: center; width: 22px; height: 22px; color: #fff; margin-left: auto; }
.onb-circle.on .int-ck { display: grid; }
