/* =====================================================================
   keurmame — système de design
   Rouge, vert, noir sur fond blanc, avec une police simple et légère (Roboto).
   Chargé APRÈS app.css : redéfinit les jetons (toute l'application se
   réhabille d'un coup) puis ajoute le fil d'accueil, le partage, les
   statistiques et les pages publiques.
   Règles : surfaces plates, aucune ombre décorative ni dégradé, aucun
   verre dépoli ; le motif ne sert qu'en filet et en fond de page.
   Les noms de jetons historiques (clay, indigo, sun, kaolin) désignent
   désormais : rouge, noir, vert, blanc.
   ===================================================================== */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("/fonts/roboto-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("/fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-ui: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;   /* le nom historique désigne la police d'affichage : la même, en graisse plus légère */
  --font-display: var(--font-serif);

  --clay: #9e1b1b;
  --clay-2: #7d1414;
  --clay-soft: #f8e6e5;
  --indigo: #141414;
  --indigo-2: #2b2b2b;
  --sun: #34a853;
  --sun-soft: #e6f4ea;
  --leaf: #188038;
  --kaolin: #ffffff;

  /* jetons historiques → nouvelle identité */
  --night: var(--indigo);
  --night-2: var(--indigo-2);
  --night-deep: #0d0d0d;
  --ivory: var(--kaolin);
  --gold: var(--sun);
  --gold-deep: #188038;
  --gold-text: #137333;
  --gold-ink: #ffffff;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f4;
  --surface-3: #e8eaed;
  --ink: #1f1f1f;
  --ink-2: #3c4043;
  --muted: #5f6368;
  --line: #e3e5e8;
  --line-2: #d0d3d7;

  --bub-in: #ffffff;
  --bub-in-ink: #1f1f1f;
  --bub-out: var(--indigo);
  --bub-out-ink: #ffffff;
  --bub-agent: #f8e6e5;
  --bub-agent-ink: #4a0f10;
  --bub-sys: #e6f4ea;
  --bub-sys-ink: #0d3b1e;

  --ok: #188038;
  --danger: #b71c1c;
  --focus: #2b2b2b;

  --shadow-1: 0 1px 0 rgba(33, 26, 20, .05);
  --shadow-2: 0 10px 28px rgba(33, 26, 20, .14);
  --shadow-3: 0 28px 70px rgba(19, 27, 62, .34);

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-bub: 20px;
  --side-w: 380px;
  --dock-h: calc(68px + var(--safe-b));
  --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%239e1b1b' fill-opacity='.05'%3E%3Cpath d='M58 52h4v6h6v4h-6v6h-4v-6h-6v-4h6z'/%3E%3Cpath d='M18 12h10v3H18zM92 90h10v3H92z'/%3E%3Cpath d='M96 20l4 4-4 4-4-4zM22 96l4 4-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath fill='%239e1b1b' d='M0 0h12v12H0z'/%3E%3Cpath fill='%23141414' d='M12 0h12v12H12z'/%3E%3Cpath fill='%2334a853' d='M24 0h12v12H24z'/%3E%3Cpath fill='%23ffffff' d='M6 6l3-3 3 3-3 3zM18 6l3-3 3 3-3 3zM30 6l3-3 3 3-3 3z'/%3E%3Cpath fill='%239e1b1b' d='M36 0h12v12H36z'/%3E%3Cpath fill='%23ffffff' d='M42 3v6M39 6h6' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] {
  --gold-text: #34a853;
  --bg: #0f0f10;
  --surface: #1a1a1c;
  --surface-2: #222225;
  --surface-3: #2c2c30;
  --ink: #ececec;
  --ink-2: #c4c7c5;
  --muted: #9aa0a6;
  --line: #2f2f33;
  --line-2: #3c3c41;
  --bub-in: #202023;
  --bub-in-ink: #ececec;
  --bub-out: #3a3a3f;
  --bub-out-ink: #f5f5f5;
  --bub-agent: #3a1416;
  --bub-agent-ink: #f5d0d0;
  --bub-sys: #17331f;
  --bub-sys-ink: #c4eed0;
  --clay-soft: #3a1416;
  --sun-soft: #17331f;
  --focus: #34a853;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
  --shadow-2: 0 10px 28px rgba(0, 0, 0, .5);
  --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.035'%3E%3Cpath d='M58 52h4v6h6v4h-6v6h-4v-6h-6v-4h6z'/%3E%3Cpath d='M18 12h10v3H18zM92 90h10v3H92z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base typographique ---------- */
body { font-family: var(--font-ui); font-size: 15.5px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.005em; }
a { color: var(--clay-2); }
:root[data-theme="dark"] a { color: #ef8a8a; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.motif { height: 10px; background: var(--motif) 0 0 / 40px 10px repeat-x; }

/* Marque */
.wm { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.logo { width: 36px; height: 36px; border-radius: 10px; }
.avatar.mame { border-radius: 26%; }

/* ---------- Boutons, champs, puces ---------- */
.btn { min-height: 46px; border-radius: 14px; font-weight: 500; letter-spacing: -.005em; }
a.btn { text-decoration: none; }
a.btn-primary { color: #fff; }
a.btn-ghost { color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 16px; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: none; }
.btn-primary:hover:not([disabled]) { background: var(--clay-2); box-shadow: none; }
:root[data-theme="dark"] .btn-primary { background: var(--clay); }
.btn-gold { background: var(--sun); color: var(--gold-ink); }
.btn-gold:hover:not([disabled]) { background: #46b862; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-2); border-color: var(--ink-2); }
.btn-sm { min-height: 38px; border-radius: 12px; }
.iconbtn:hover { background: var(--surface-3); }
.input, .select, .textarea { border-radius: 14px; background: var(--surface); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--indigo-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo-2) 22%, transparent); }
.chip { border-radius: 999px; background: transparent; border: 1.5px solid var(--line-2); font-weight: 500; }
.chip.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
:root[data-theme="dark"] .chip.on { background: var(--indigo-2); border-color: var(--indigo-2); }
.switch input:checked + .track { background: var(--clay); }
.tbadge, .dock-badge { background: var(--clay); color: #fff; }
.tbadge.muted { background: var(--line-2); color: var(--ink-2); }
.titem.on { background: color-mix(in srgb, var(--clay) 9%, var(--surface)); }
.titem.on::before { background: var(--clay); }
.titem.unread .ttime { color: var(--clay-2); }
:root[data-theme="dark"] .titem.unread .ttime { color: #ef8a8a; }
.fab { background: var(--clay); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--clay) 38%, transparent); }
.fab:hover { background: var(--clay-2); }
:root[data-theme="dark"] .fab { background: var(--clay); }
.avatar { background: hsl(var(--hue, 150) 34% 34%); }
.avatar.group { background: var(--indigo-2); }
.avatar.shop { background: var(--sun); color: var(--gold-ink); }
.tag.warn { color: var(--gold-text); }
.seal { color: var(--gold-text); }
.reassure { background: var(--indigo); }
.mecard.role { background: var(--sun-soft); border-color: color-mix(in srgb, var(--sun) 50%, var(--line)); }
.stat.gold { background: var(--sun-soft); }
.pprice { color: var(--clay-2); }
:root[data-theme="dark"] .pprice { color: #ef8a8a; }
.ptag { background: var(--sun); }
.sheet { border-radius: 26px; }
.sheet-head h2 { font-weight: 600; letter-spacing: -.005em; }

/* =====================================================================
   Coque : barre de navigation globale (mobile : en bas ; bureau : à gauche)
   ===================================================================== */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--dock-h);
  display: flex; align-items: flex-end; border-top: 1px solid var(--line); background: var(--surface);
  padding: 6px 6px calc(8px + var(--safe-b));
}
.app[data-nav="hide"] .dock { display: none; }
.dock-btn { flex: 1; gap: 3px; padding: 4px 2px; color: var(--muted); font-size: 11.5px; letter-spacing: .005em; border-radius: 14px; }
.dock-btn:hover { background: transparent; color: var(--ink); }
.dock-btn.on { color: var(--clay-2); }
:root[data-theme="dark"] .dock-btn.on { color: #ef8a8a; }
.dock-ic { width: 48px; height: 30px; }
.dock-btn.on .dock-ic { background: var(--clay-soft); }
.dock-badge { box-shadow: 0 0 0 2px var(--surface); }
.dock-act { align-self: flex-start; margin-top: -20px; color: var(--ink-2); }
.dock-fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--clay) 40%, transparent), 0 0 0 6px var(--surface); transition: transform .18s var(--ease), background .15s; }
.dock-fab .i { width: 26px; height: 26px; stroke-width: 2.2; }
.dock-act:hover .dock-fab { background: var(--clay-2); transform: translateY(-2px); }
.dock-act:active .dock-fab { transform: scale(.94); }
.side .tlist { padding-bottom: calc(var(--dock-h) + 90px); }
.side .fab { bottom: calc(var(--dock-h) + 16px); }
.pg-body { padding-bottom: calc(var(--dock-h) + 28px); }
.app[data-nav="hide"] .pg-body { padding-bottom: calc(28px + var(--safe-b)); }
.app[data-root="1"] .pg-head .back { display: none; }

@media (min-width: 901px) {
  .app { grid-template-columns: 96px var(--side-w) minmax(0, 1fr); }
  .dock {
    position: relative; grid-column: 1; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    border: 0; background: var(--indigo); padding: 20px 10px 14px;
  }
  .app[data-nav="hide"] .dock { display: flex; }
  :root[data-theme="dark"] .dock { background: #0d0d0d; }
  .dock-btn { color: rgba(255, 255, 255, .66); padding: 10px 2px 8px; }
  .dock-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .dock-btn.on { color: #fff; background: rgba(255, 255, 255, .13); }
  .dock-btn.on .dock-ic { background: transparent; }
  .dock-ic { width: 40px; }
  .dock-badge { box-shadow: 0 0 0 2px var(--indigo); }
  .dock-act { order: -1; align-self: stretch; margin: 0 0 14px; color: rgba(255, 255, 255, .9); }
  .dock-fab { box-shadow: none; width: 52px; height: 52px; border-radius: 18px; }
  .side .tlist { padding-bottom: 96px; }
  .side .fab { bottom: 18px; }
  .pg-body { padding-bottom: 28px; }
}
@media (max-width: 900px) {
  .app[data-view="chat"] .side { transform: none; }
}

/* =====================================================================
   Accueil : le fil des bonnes affaires
   ===================================================================== */
.hm { background: var(--bg); background-image: var(--wall); background-size: 120px; }
.hm-top { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.hm-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.hm-tools { display: flex; align-items: center; gap: 2px; }
.hm-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px calc(var(--dock-h) + 24px); width: 100%; max-width: 720px; margin: 0 auto; }
.hm-hello h1 { margin: 0; font-size: clamp(30px, 6.6vw, 44px); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; }
.hm-hello h1 em { font-style: normal; color: var(--clay); }
.hm-hello p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.hm-seg { display: flex; gap: 8px; margin: 18px -16px 6px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.hm-seg::-webkit-scrollbar { display: none; }
.hm-chip { padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 14.5px; border: 1.5px solid var(--line-2); color: var(--ink-2); white-space: nowrap; background: var(--surface); }
.hm-chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.hm-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.hm-sec h2 { margin: 0; font-size: 20px; font-weight: 600; }
.hm-sec span { font-size: 13px; color: var(--muted); }
.hm-rail { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.hm-rail::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 168px; scroll-snap-align: start; text-align: left; display: grid; gap: 6px; padding: 8px 8px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .18s var(--ease), border-color .15s; }
.fcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.fmedia { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.fmedia .dimg, .fmedia .dph { width: 100%; height: 100%; }
.ft { font-weight: 500; font-size: 14px; line-height: 1.25; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.fp { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--clay-2); padding: 0 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.fp s { font-family: var(--font-ui); font-weight: 500; font-size: 12px; color: var(--muted); }
.fshare { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fshare .i { width: 15px; height: 15px; }

/* Étiquettes et visuels d'une bonne affaire */
.dimg, .dph { display: block; width: 100%; height: 100%; object-fit: cover; }
.dph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 64px; color: hsl(var(--hue, 30) 38% 32% / .55); background: hsl(var(--hue, 30) 45% 90%); }
:root[data-theme="dark"] .dph { background: hsl(var(--hue, 30) 24% 22%); color: hsl(var(--hue, 30) 50% 80% / .6); }
.dtags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.dtag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.dtag .i { width: 13px; height: 13px; }
.dtag.sun { background: var(--sun); color: var(--gold-ink); }
.dtag.leaf { background: var(--leaf); color: #fff; }
.dprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dprice b { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.01em; color: var(--clay-2); line-height: 1; }
:root[data-theme="dark"] .dprice b { color: #ef8a8a; }
.dprice s { color: var(--muted); font-size: 15px; }
.dprice.sm b { font-size: 19px; }
.dprice.sm s { font-size: 13px; }

/* Carte d'une bonne affaire */
.hm-feed { display: grid; gap: 18px; margin-top: 8px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; animation: dc-in .5s var(--ease) both; }
.dcard:nth-child(2) { animation-delay: .06s; } .dcard:nth-child(3) { animation-delay: .12s; } .dcard:nth-child(n+4) { animation-delay: .16s; }
@keyframes dc-in { from { opacity: 0; transform: translateY(14px); } }
.dc-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px 16px; }
.dc-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.dc-who b { font-weight: 600; }
.dc-who span { font-size: 13px; color: var(--muted); }
.dc-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--surface-3); overflow: hidden; }
.dc-media .dimg, .dc-media .dph { transition: transform .5s var(--ease); }
.dc-media:hover .dimg { transform: scale(1.03); }
.dc-media .dtags { top: 14px; left: 14px; }
.dc-body { padding: 16px 18px 6px; display: grid; gap: 10px; }
.dc-note { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--clay); font-size: 17px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.dc-title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.15; }
.dc-act { display: flex; gap: 8px; align-items: center; padding: 12px 16px 16px; }
.dc-act .btn-primary { flex: 1; }

.hm-empty { text-align: center; padding: 34px 18px 28px; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 26px; }
.hm-empty-art { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay); }
.hm-empty-art .i { width: 30px; height: 30px; }
.hm-empty b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.hm-empty p { margin: 6px auto 16px; max-width: 30em; color: var(--ink-2); }
.hm-empty-act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dsk { height: 360px; border-radius: 26px; margin: 0; }
@media (min-width: 901px) { .hm-body { padding: 34px 28px 40px; } .dcard { border-radius: 28px; } .hm-brand { visibility: hidden; } }

/* =====================================================================
   Partager (feuille) et sélecteurs
   ===================================================================== */
.sh-preview { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.sh-pm { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; background: var(--surface-3); }
.sh-pi { min-width: 0; display: grid; gap: 4px; }
.sh-pi b { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.15; }
.sh-link { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; }
.note-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.note-chip { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px dashed var(--line-2); color: var(--ink-2); }
.note-chip:hover { background: var(--clay-soft); border-color: var(--clay); color: var(--clay-2); }
.sh-sec { margin: 20px 0 8px; font-family: var(--font-display); font-size: 17px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.sh-sec small { font-family: var(--font-ui); font-weight: 400; font-size: 13px; color: var(--muted); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sbtn { border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); min-height: 48px; }
.sbtn:hover { border-color: var(--ink-2); }
.sbtn.whatsapp { background: #1fa855; color: #fff; border-color: transparent; }
.sbtn.facebook { background: #1877f2; color: #fff; border-color: transparent; }
.sbtn.telegram { background: #229ed9; color: #fff; border-color: transparent; }
.sbtn[disabled] { opacity: .55; }
.sh-foot-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding: 12px 14px; border-radius: 16px; background: var(--sun-soft); font-size: 13.5px; color: var(--ink-2); }
.sh-foot-note .i { width: 18px; height: 18px; color: var(--clay); flex: none; }
.linkbtn { color: var(--clay-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 12px; }
.pick { display: grid; gap: 4px; text-align: left; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s var(--ease); }
.pick:hover { border-color: var(--clay); transform: translateY(-2px); }
.pick-m { aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--surface-3); display: block; }
.pick-t { font-weight: 500; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-p { font-family: var(--font-display); font-weight: 600; color: var(--clay-2); font-size: 14px; }
.pick-threads { max-height: 52dvh; margin-top: 8px; padding: 0; }

/* =====================================================================
   Mes partages : ce que ça rapporte
   ===================================================================== */
.st { display: grid; gap: 14px; align-content: start; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.st-card h2, .st-h2 { margin: 0 0 12px; font-size: 19px; font-weight: 600; }
.st-h2 { margin: 10px 0 0; }
.st-hero { background: var(--indigo); border: 0; color: var(--kaolin); }
.st-hero h2 { color: var(--kaolin); }
.st-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stile { padding: 14px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 2px; }
.stile b { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.stile span { font-size: 13px; color: var(--muted); }
.stile.clay { background: var(--clay-soft); } .stile.clay b { color: var(--clay-2); }
.stile.leaf { background: color-mix(in srgb, var(--leaf) 14%, var(--surface)); } .stile.leaf b { color: var(--leaf); }
.st-hero .stile { background: rgba(255, 255, 255, .08); } .st-hero .stile b { color: var(--kaolin); } .st-hero .stile span { color: rgba(255, 255, 255, .75); }
.st-hero .stile.clay { background: var(--clay); } .st-hero .stile.clay span { color: rgba(255, 255, 255, .85); }
.st-hero .stile.leaf { background: rgba(24, 128, 56, .55); }
.st-spark { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; }
.st-spark span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.spark { width: 100%; max-width: 320px; height: 56px; }
.spark rect { fill: rgba(255, 255, 255, .22); } .spark rect.on { fill: var(--sun); }
.st-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.st-card .linkbox { margin: 12px 0; }
.st-list { display: grid; gap: 10px; }
.strow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.strow.off { opacity: .55; }
.sr-m { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.sr-i { display: grid; gap: 2px; min-width: 0; }
.sr-i b { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-p { font-size: 13px; color: var(--muted); }
.sr-n { display: flex; gap: 10px 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.sr-n b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.sr-a { display: grid; gap: 4px; }
@media (max-width: 520px) { .strow { grid-template-columns: 60px minmax(0, 1fr); } .sr-m { width: 60px; height: 60px; } .sr-a { grid-column: 1 / -1; display: flex; justify-content: flex-end; } }

/* =====================================================================
   Une bonne affaire dans une conversation
   ===================================================================== */
.bub.dealbub { padding: 6px 6px 8px; min-width: min(300px, 78vw); }
.dealmsg { display: grid; gap: 8px; }
.dm-main { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; text-align: left; align-items: center; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.row.out .dm-main { background: rgba(255, 255, 255, .12); }
.dm-m { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; display: block; background: var(--surface-3); }
.dm-m .dtag { position: absolute; top: 5px; left: 5px; padding: 1px 7px; font-size: 11px; }
.dm-i { display: grid; gap: 3px; min-width: 0; }
.dm-i b { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.15; }
.dm-c { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--leaf); }
.dm-c .i { width: 12px; height: 12px; }
.dm-a { display: flex; gap: 8px; padding: 0 4px; }
.dm-a .btn { flex: 1; min-height: 38px; }
.row.out .dealmsg .dprice b { color: var(--sun); }
.row.out .dm-a .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }

/* =====================================================================
   Accueil du visiteur (keurmame.space)
   ===================================================================== */
.wl { height: 100dvh; overflow-y: auto; overflow-x: hidden; background: var(--kaolin); color: #1f1f1f; scroll-behavior: smooth; font-family: var(--font-ui); }
.wl-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.wl-top { position: sticky; top: 0; z-index: 5; background: var(--kaolin); }
.wl-top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wl-brand { display: flex; align-items: center; gap: 10px; }
.wl .wm { color: #1f1f1f; font-size: 24px; }
.wl-login { font-weight: 600; color: #1f1f1f; padding: 8px 14px; border-radius: 12px; text-decoration: none; border: 1.5px solid #d0d3d7; }
.wl-login:hover { background: #f6f7f9; }
.wl-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); }
.wl-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.wl-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7d1414; display: flex; align-items: center; gap: 12px; }
.wl-kicker::before { content: ""; width: 28px; height: 3px; background: var(--sun); border-radius: 3px; }
.wl-h1 { margin: 0; font-size: clamp(54px, 11.5vw, 124px); line-height: .92; font-weight: 600; letter-spacing: -.01em; color: #1f1f1f; }
.wl-h1 em { font-style: normal; color: var(--clay); }
.wl-sub { margin: 22px 0 0; max-width: 33em; font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; color: #3c4043; }
.wl-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.wl-cta .btn-ghost { color: #1f1f1f; border-color: #b8bcc1; }
.wl-note { margin: 14px 0 0; font-size: 14px; color: #5f6368; }

/* Aperçu d'écran */
.wl-dev { position: relative; justify-self: center; width: min(340px, 82vw); }
.wl-ex { position: absolute; top: -12px; right: 8px; z-index: 3; padding: 4px 12px; border-radius: 999px; background: var(--sun); color: var(--gold-ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transform: rotate(4deg); }
.wl-scr { background: var(--surface); border: 8px solid #1f1f1f; border-radius: 40px; overflow: hidden; height: 600px; padding: 16px 14px 0; position: relative; box-shadow: 14px 14px 0 var(--clay-soft); }
.wl-scr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wl-scr-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.wl-scr-brand .logo { width: 26px; height: 26px; border-radius: 8px; }
.wl-scr-hi { margin: 4px 0 10px; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.05; }
.wl-scr-hi em { font-style: normal; color: var(--clay); }
.wl-scr-chips { display: flex; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 500; }
.wl-scr-chips b, .wl-scr-chips span { padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--line-2); }
.wl-scr-chips b { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.wl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.wl-card-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.wl-card-h b { display: block; font-size: 13px; } .wl-card-h small { font-size: 11px; color: var(--muted); }
.wl-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: hsl(150 34% 34%); color: #fff; font-weight: 600; font-size: 13px; }
.wl-card-m { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.wl-card-m img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-card-m i { position: absolute; top: 8px; left: 8px; background: var(--sun); color: var(--gold-ink); font-style: normal; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.wl-card-q { margin: 8px 12px 0; padding-left: 8px; border-left: 3px solid var(--clay); font-size: 12.5px; line-height: 1.35; font-weight: 500; }
.wl-card-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px 0; }
.wl-card-t b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.wl-card-t span { font-family: var(--font-display); font-weight: 600; color: var(--clay-2); font-size: 14px; }
.wl-card-t s { margin-left: 6px; font-family: var(--font-ui); font-weight: 400; font-size: 11px; color: var(--muted); }
.wl-card-a { display: flex; gap: 6px; padding: 10px 12px 12px; }
.wl-b1, .wl-b2 { flex: 1; text-align: center; padding: 8px 0; border-radius: 11px; font-size: 12px; font-weight: 600; }
.wl-b1 { background: var(--clay); color: #fff; } .wl-b2 { border: 1.5px solid var(--line-2); }
.wl-card-2 { margin-top: 12px; }
.wl-scr-dock { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 10px 6px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.wl-scr-dock span { color: var(--muted); display: grid; place-items: center; width: 40px; height: 32px; }
.wl-scr-dock span .i { width: 21px; height: 21px; }
.wl-scr-dock .on { color: var(--clay-2); background: var(--clay-soft); border-radius: 999px; }
.wl-scr-dock .fab { position: static; width: 46px; height: 46px; margin-top: -26px; background: var(--clay); color: #fff; border-radius: 50%; box-shadow: 0 0 0 5px var(--surface); }

/* Sections */
.wl-steps { background: #1f1f1f; color: var(--kaolin); padding: clamp(48px, 8vw, 96px) 0; }
.wl-steps .wl-kicker { color: var(--sun); }
.wl-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.wl-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 20px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.wl-num { font-family: var(--font-display); font-size: 56px; font-weight: 600; letter-spacing: -.01em; color: var(--sun); line-height: 1; }
.wl-list h3 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.01em; }
.wl-list p { margin: 0; max-width: 40em; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.wl-who { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 5vw, 48px); }
.wl-h2 { margin: 0 0 28px; font-size: clamp(32px, 5.2vw, 56px); font-weight: 600; letter-spacing: -.01em; line-height: 1; color: #1f1f1f; }
.wl-who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #1f1f1f; }
.wl-who-i { padding: 22px 24px 8px 0; }
.wl-who-i + .wl-who-i { padding-left: 24px; border-left: 1px solid #d0d3d7; }
.wl-who-i h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--clay-2); }
.wl-who-i p { margin: 0; color: #3c4043; line-height: 1.55; }
.wl-who-note { margin: 22px 0 0; color: #5f6368; font-size: 14.5px; }
.wl-trust { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 8vw, 96px); }
.wl-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wl-trust h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: #1f1f1f; }
.wl-trust p { margin: 0; color: #3c4043; line-height: 1.55; }
.wl-band { background: var(--clay); color: #fff; padding: clamp(48px, 8vw, 88px) 0; }
.wl-band-in { display: grid; gap: 14px; justify-items: start; }
.wl-band-h { margin: 0; font-size: clamp(40px, 7vw, 84px); font-weight: 600; letter-spacing: -.01em; line-height: .98; }
.wl-band-h em { font-style: normal; color: var(--indigo); }
.wl-band p { margin: 0; font-size: 18px; max-width: 30em; opacity: .95; }
.wl-band .btn-primary { background: var(--indigo); } .wl-band .btn-primary:hover { background: #0d0d0d; }
.wl-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); } .wl-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.wl-foot { background: #1f1f1f; color: rgba(255, 255, 255, .75); padding: 26px 0 36px; font-size: 14px; }
.wl-foot-in { display: flex; gap: 12px 32px; justify-content: space-between; flex-wrap: wrap; }
.wl-foot b { color: var(--kaolin); }
.wl-js .wl-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.wl-js .wl-rv.in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .wl-hero-in { grid-template-columns: 1fr; }
  .wl-dev { margin-top: 8px; }
  .wl-who-grid, .wl-trust-grid { grid-template-columns: 1fr; }
  .wl-who-i, .wl-who-i + .wl-who-i { padding: 20px 0; border-left: 0; border-bottom: 1px solid #d0d3d7; }
  .wl-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .wl-num { font-size: 38px; }
}
@media (max-width: 520px) { .wl-cta .btn { flex: 1 1 100%; } .wl-scr { height: 560px; } }

/* Écrans d'accès (connexion / inscription / invitation) */
.auth { background: var(--surface); }
.auth-art { background: var(--indigo); }
.auth-art::before { background-image: var(--motif); background-size: 48px 12px; background-repeat: repeat-x; background-position: 0 0; filter: none; mix-blend-mode: normal; opacity: 1; inset: 0 0 auto 0; height: 12px; }
.auth-art .wm { color: var(--kaolin); font-size: 32px; }
.auth-quote { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.02; font-size: clamp(34px, 4vw, 56px); }
.auth-quote em { font-style: normal; color: var(--sun); }
.auth-card h1 { font-weight: 600; letter-spacing: -.01em; }

/* =====================================================================
   Pages publiques : bonne affaire partagée, vitrine
   ===================================================================== */
.pub { color-scheme: light; margin: 0; min-height: 100dvh; background: var(--kaolin); color: #1f1f1f; font-family: var(--font-ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.pub *, .pub *::before, .pub *::after { box-sizing: border-box; }
.pub a { color: inherit; }
.pub img { max-width: 100%; }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 40px); background: var(--kaolin); position: sticky; top: 0; z-index: 10; }
.pub-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--motif) 0 0 / 40px 10px repeat-x; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -.01em; }
.pub-mark { width: 34px; height: 34px; border-radius: 10px; }
.pub-open { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1.5px solid #d0d3d7; border-radius: 12px; }
.pub-open:hover { background: #f6f7f9; }
.pub-wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.pub-foot { margin-top: 56px; padding: 26px clamp(16px, 4vw, 40px) 40px; background: #1f1f1f; color: rgba(255, 255, 255, .75); font-size: 14px; text-align: center; }
.pub-foot b { color: var(--kaolin); }
.pub-empty { padding-top: 80px; text-align: center; min-height: 50dvh; }
.pub-empty h1 { font-family: var(--font-display); font-size: 56px; letter-spacing: -.01em; margin: 0 0 8px; }

.pav { --hue: 150; width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: hsl(var(--hue) 34% 34%); color: #fff; font-weight: 600; font-size: 16px; }
.pav-lg { width: 72px; height: 72px; font-size: 28px; }
.pbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; text-align: center; transition: background .15s, transform .15s; }
.pbtn:active { transform: scale(.98); }
.pbtn small { font-weight: 500; font-size: 12.5px; opacity: .9; }
.pbtn-clay { background: var(--clay); color: #fff; }
.pbtn-clay:hover { background: var(--clay-2); }
.pbtn-line { background: transparent; border-color: #b8bcc1; color: #1f1f1f; }
.pbtn-line:hover { background: #f6f7f9; }
.pbtn-ghost { background: #ffffff; border-color: #d8dbdf; color: #1f1f1f; min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.pbtn-ghost:hover { border-color: #1f1f1f; }
.pbtn-lg { min-height: 60px; font-size: 18px; border-radius: 16px; }
.pbtn[hidden] { display: none; }

.dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
.dl-media { position: relative; margin: 0 calc(clamp(16px, 4vw, 40px) * -1); background: #e8eaed; aspect-ratio: 1 / 1; overflow: hidden; }
.dl-img, .dl-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-ph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 160px; color: rgba(217, 48, 37, .35); background: #f8e6e5; }
.dl-badges { position: absolute; top: 14px; left: clamp(16px, 4vw, 40px); display: flex; gap: 8px; flex-wrap: wrap; }
.dl-tag { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; font-style: normal; }
.dl-tag-sun { background: var(--sun); color: #ffffff; }
.dl-tag-leaf { background: var(--leaf); color: #fff; }
.dl-info { padding: 22px 0 8px; display: grid; gap: 14px; align-content: start; }
.dl-from { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 16px; }
.dl-from span:last-child { display: grid; line-height: 1.25; }
.dl-from small { color: #5f6368; font-size: 13.5px; }
.dl-note { margin: 0; padding: 2px 0 2px 16px; border-left: 4px solid var(--clay); font-size: 21px; line-height: 1.35; font-weight: 500; font-family: var(--font-display); letter-spacing: -.01em; }
.dl-title { margin: 0; font-size: clamp(32px, 6vw, 52px); font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.dl-cat { margin: -6px 0 0; color: #5f6368; font-size: 14.5px; }
.dl-price { margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dl-price strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 7vw, 58px); letter-spacing: -.01em; color: var(--clay-2); line-height: 1; }
.dl-price s { color: #6b7075; font-size: 20px; }
.dl-desc { margin: 0; color: #3c4043; max-width: 36em; }
.dl-cta { display: grid; gap: 10px; position: sticky; bottom: 0; z-index: 5; background: var(--kaolin); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); margin: 0; }
.dl-trust { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: #3c4043; }
.dl-trust li { padding-left: 24px; position: relative; }
.dl-trust li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }
.dl-share { margin-top: 10px; padding: 18px; border-radius: 22px; background: #ffffff; border: 1px solid #e3e5e8; }
.dl-share-t { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.dl-share-b { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 36px; align-items: start; }
  .dl-media { margin: 0; border-radius: 32px; position: sticky; top: 90px; }
  .dl-badges { left: 18px; }
  .dl-info { padding-top: 8px; }
  .dl-cta { position: static; padding: 4px 0; }
}

/* Vitrine d'un membre */
.vt { padding-top: 28px; }
.vt-head { display: flex; align-items: center; gap: 18px; }
.vt-head h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.vt-role { margin: 6px 0 0; font-weight: 600; color: var(--clay-2); }
.vt-bio { margin: 8px 0 0; color: #3c4043; max-width: 36em; }
.vt-city { margin: 4px 0 0; color: #5f6368; font-size: 14.5px; }
.vt-cta { margin: 20px 0 6px; }
.vt-h2 { margin: 34px 0 14px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.vc { display: grid; gap: 6px; text-decoration: none; padding: 8px 8px 14px; border-radius: 22px; background: #ffffff; border: 1px solid #e3e5e8; transition: transform .18s, border-color .15s; }
.vc:hover { transform: translateY(-3px); border-color: #b8bcc1; }
.vc-media { position: relative; display: block; aspect-ratio: 1; border-radius: 15px; overflow: hidden; background: #e8eaed; }
.vc-media img, .vc-ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.vc-ph { font-family: var(--font-display); font-weight: 600; font-size: 56px; color: rgba(217, 48, 37, .4); background: #f8e6e5; }
.vc-media .dl-tag { position: absolute; top: 8px; left: 8px; font-size: 12px; padding: 2px 9px; }
.vc-t { font-weight: 500; padding: 0 4px; line-height: 1.25; }
.vc-p { padding: 0 4px; font-family: var(--font-display); font-weight: 600; color: var(--clay-2); font-size: 18px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vc-p s { font-family: var(--font-ui); font-weight: 400; font-size: 13px; color: #6b7075; }
.vt-none { padding: 28px; border: 1.5px dashed #b8bcc1; border-radius: 22px; color: #3c4043; }

@media (prefers-reduced-motion: reduce) {
  .dcard, .wl-js .wl-rv { animation: none; transition: none; opacity: 1; transform: none; }
}

/* Boutons de partage : texte sur deux lignes sans écraser l'icône */
.sh-grid .sbtn { text-align: center; line-height: 1.2; padding: 8px 12px; }
.sh-grid .sbtn .i { flex: none; }

/* Commandes passées grâce à un partage */
.st-rev { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.st-rev b { color: var(--sun); font-family: var(--font-display); font-size: 17px; }
.sr-ord b { color: var(--clay-2); }

/* Pilotage des partages (Équipe › Partages) */
.funnel { display: grid; gap: 10px; margin-top: 4px; }
.funrow { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.funlab { display: grid; gap: 1px; font-size: 14px; } .funlab span { font-size: 12px; color: var(--muted); }
.funbar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.funbar i { display: block; height: 100%; border-radius: 999px; background: var(--clay); }
.funrow:nth-child(2) .funbar i { background: var(--sun); } .funrow:nth-child(3) .funbar i { background: var(--leaf); }
.funn { font-family: var(--font-display); font-weight: 600; font-size: 18px; min-width: 44px; text-align: right; }
.snap.shr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; } .snap.shr i { color: var(--muted); font-style: normal; }
@media (max-width: 640px) { .funrow { grid-template-columns: 1fr auto; } .funbar { grid-column: 1 / -1; grid-row: 2; } .snap.shr { grid-template-columns: 1fr; gap: 2px; } .snap.shr span:last-child { text-align: left; } }

/* Typographie « Google » : titres et chiffres en graisse moyenne, jamais en gras lourd. */
h1, h2, h3, h4, .wm, .pub-brand span, .dl-title { font-weight: 500; }
.stile b, .stat .sv, .pprice, .dl-price strong, .funn { font-weight: 500; }

/* =====================================================================
   keurmame, communauté : fil façon réseau social, sujets illustrés, recommandations
   ===================================================================== */
.tpic { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.tpic.ph { display: grid; place-items: center; color: var(--muted); }
.tpic.sm { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.dimg.tpic { background: var(--clay-soft); }

/* Bandeau d'accueil */
.hm-body { max-width: 760px; }
.hm-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 12px; margin: 0 0 14px; padding: 22px 8px 22px 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.hh-hi { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--clay-2); }
.hm-hero h1 { margin: 6px 0 8px; font-size: clamp(24px, 5.2vw, 34px); font-weight: 600; line-height: 1.08; letter-spacing: -.012em; }
.hm-hero p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.hh-act { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-art { width: 100%; height: auto; align-self: end; border-radius: 18px; }
@media (max-width: 560px) { .hm-hero { grid-template-columns: 1fr; padding: 18px 16px 0; } .hh-art { margin: 6px -16px 0; width: calc(100% + 32px); border-radius: 0; } }

/* Zone de publication */
.hm-compose { margin: 0 0 12px; padding: 10px 12px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.cp-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); text-align: left; color: var(--muted); font-size: 15px; min-height: 48px; }
.cp-main:hover { background: var(--surface-3); }
.cp-main span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-act { display: flex; gap: 4px; margin-top: 6px; }
.cp-b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.cp-b .i { width: 18px; height: 18px; color: var(--clay); }
.cp-b:hover { background: var(--surface-2); }
@media (max-width: 420px) { .cp-b { font-size: 12.5px; padding: 9px 2px; } }

/* Sujets façon « stories » */
.hm-rail-wrap { margin: 0 -16px 8px; }
.trail { display: flex; gap: 14px; padding: 6px 16px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.trail::-webkit-scrollbar { display: none; }
.tstory { flex: none; width: 72px; display: grid; gap: 6px; justify-items: center; scroll-snap-align: start; }
.tring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: var(--line-2); display: grid; place-items: stretch; overflow: hidden; transition: transform .18s var(--ease); }
.tring .tpic { border-radius: 50%; border: 3px solid var(--surface); box-sizing: border-box; }
.tstory.fol .tring { background: conic-gradient(var(--clay), var(--leaf), var(--clay)); }
.tstory.on .tring { background: var(--ink); transform: scale(1.06); }
.tstory .tall { display: grid; place-items: center; border-radius: 50%; background: var(--clay); color: #fff; border: 3px solid var(--surface); box-sizing: border-box; width: 100%; height: 100%; }
.tstory .tall .i { width: 26px; height: 26px; }
.tstory .tname { font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.2; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstory.on .tname { color: var(--ink); font-weight: 600; }

.hm-nudge { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; padding: 12px 14px; border-radius: 18px; background: var(--clay-soft); }
.hm-nudge[hidden] { display: none; }
.nd-art { width: 40px; height: 40px; border-radius: 12px; background: var(--clay); color: #fff; display: grid; place-items: center; flex: none; }
.nd-art .i { width: 22px; height: 22px; }
.nd-txt { flex: 1; min-width: 0; display: grid; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.nd-txt b { font-size: 15px; color: var(--ink); }

/* Publications */
.post .dc-head { padding-bottom: 8px; }
.role-tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--sun-soft); color: var(--leaf); vertical-align: middle; }
.topic-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--ink-2); max-width: 46%; }
.topic-tag .tpic { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.topic-tag:hover { background: var(--surface-3); }
.dc-post { margin: 0; padding: 0 16px 12px; font-size: 16px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.post .dc-media { aspect-ratio: 4 / 3; }
.post .dc-body { gap: 6px; padding: 12px 16px 2px; }
.dc-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dc-line .dc-title { font-size: 18px; flex: 1; min-width: 0; }
.dc-line .dprice { text-align: right; flex: none; display: grid; justify-items: end; gap: 0; }
.dc-why { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dc-why .i { width: 14px; height: 14px; color: var(--clay); }
.post .dc-act { padding: 8px 12px 12px; gap: 2px; border-top: 1px solid var(--line); margin-top: 10px; }
.act-b { display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.act-b .i { width: 19px; height: 19px; }
.act-b:hover { background: var(--surface-2); }
.act-b.on { color: var(--clay); } .act-b.on .i { fill: currentColor; }
.post .act-order { flex: none; margin-left: auto; }
@media (max-width: 420px) { .act-b span { display: none; } .act-b { padding: 9px 12px; } }

/* Personnes et cercles à connaître */
.strip { margin: 6px 0; padding: 4px 0 2px; }
.strip .hm-sec { margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; }
.pcard { flex: none; width: 168px; scroll-snap-align: start; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px 10px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pc-top { display: grid; gap: 4px; justify-items: center; }
.pc-top b { font-weight: 600; font-size: 15px; max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-top span { font-size: 12px; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.pc-topics { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.ccard { flex: none; width: 188px; scroll-snap-align: start; display: grid; gap: 6px; padding: 8px 8px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cc-m { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.ccard b { padding: 0 4px; font-weight: 600; font-size: 15px; } .ccard span { padding: 0 4px; font-size: 12.5px; color: var(--muted); }

/* Choisir ses centres d'intérêt */
.ints { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.ints-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; } .ints-count { font-size: 13px; color: var(--muted); }
.int { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; }
.int .tpic { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.int-t { display: grid; gap: 2px; min-width: 0; } .int-t b { font-weight: 600; font-size: 14.5px; } .int-t small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.int-ck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--clay); color: #fff; display: none; place-items: center; }
.int-ck .i { width: 14px; height: 14px; }
.int.on { border-color: var(--clay); background: var(--clay-soft); } .int.on .int-ck { display: grid; }
.chip-topic { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; }
.chip-topic .tpic { width: 28px; height: 28px; border-radius: 50%; }
.chip-topic.static { cursor: default; }
.need-topics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.need-deals { display: grid; gap: 8px; }
.mini-deal { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; }
.md-m { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; }
.md-i { display: grid; gap: 2px; min-width: 0; } .md-i b { font-weight: 600; } .md-i span { font-size: 13px; color: var(--muted); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.tcard { display: grid; gap: 6px; text-align: center; }
.tcard .tpic { aspect-ratio: 4 / 3; height: auto; border-radius: 14px; }
.tcard span { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.avatar.circle.topic { padding: 0; overflow: hidden; background: var(--surface-2); }
.avatar.circle.topic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pilotage des partages : période, courbe, sujets, constats */
.shr-periods { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; }
.shr-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 6px 0; }
.shr-col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.shr-col i { display: block; flex: 1; border-radius: 3px 3px 0 0; max-width: 14px; }
.shr-col i.v, .shr-legend i.v { background: var(--ink); opacity: .85; } .shr-col i.c, .shr-legend i.c { background: var(--sun); }
.shr-col b.o { position: absolute; top: 0; font-size: 10px; font-weight: 600; color: #fff; background: var(--clay); border-radius: 999px; padding: 0 5px; line-height: 16px; }
.shr-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.shr-legend span { display: inline-flex; align-items: center; gap: 6px; } .shr-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .shr-legend i.o { background: var(--clay); border-radius: 50%; }
.shr-bars { display: grid; gap: 8px; } .shr-bar { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 14px; } .shr-bar b { min-width: 36px; text-align: right; }
.shr-topics { display: grid; gap: 10px; } .shr-topic { display: flex; gap: 12px; align-items: center; } .st-main { flex: 1; min-width: 0; display: grid; gap: 4px; } .st-main span { font-size: 12.5px; color: var(--muted); }
.shr-insights { gap: 8px; } .shr-ins { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.4; }
.shr-ins .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.shr-ins.warn { background: var(--clay-soft); } .shr-ins.warn .i { color: var(--clay); } .shr-ins.ok { background: var(--sun-soft); } .shr-ins.ok .i { color: var(--leaf); }
@media (max-width: 560px) { .shr-bar { grid-template-columns: 96px 1fr auto; } }
@media (prefers-reduced-motion: reduce) { .tring { transition: none; } }

/* Accueil visiteur : ce qu'on trouve sur keurmame (sujets illustrés) */
.wl-topics { background: var(--surface); padding: clamp(44px, 7vw, 84px) 0; border-bottom: 1px solid var(--line); }
.wl-topics .wl-kicker { color: var(--clay-2); }
.wl-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.wl-tcard { display: grid; gap: 8px; text-align: center; }
.wl-tcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.wl-tcard span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 520px) { .wl-tgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Photos réelles (Wikimedia Commons) : bandeau d'accueil, bandeau de sujet, crédits */
.hh-art { object-fit: cover; aspect-ratio: 4 / 3; height: auto; border-radius: 20px; box-shadow: 0 10px 28px rgba(20, 20, 20, .14); }
.hh-art.svg { object-fit: contain; aspect-ratio: auto; box-shadow: none; }
@media (max-width: 560px) { .hh-art { aspect-ratio: 16 / 10; box-shadow: none; } }
.hm-hero { padding-right: 22px; }
@media (max-width: 560px) { .hm-hero { padding-right: 16px; padding-bottom: 16px; } .hh-art { margin: 6px 0 0; width: 100%; border-radius: 16px; } .hh-art.svg { margin: 6px -16px 0; width: calc(100% + 32px); border-radius: 0; } }
.hm-topic { display: grid; grid-template-columns: minmax(0, 40%) 1fr; margin: 0 0 12px; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.hm-topic[hidden] { display: none; }
.hm-topic .ht-img { height: 100%; min-height: 170px; }
.ht-txt { padding: 16px 18px; display: grid; align-content: center; gap: 6px; }
.ht-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-2); }
.ht-txt h2 { margin: 0; font-size: 22px; font-weight: 600; }
.ht-txt p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ht-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
@media (max-width: 560px) { .hm-topic { grid-template-columns: 1fr; } .hm-topic .ht-img { height: 150px; min-height: 0; } }
.credit { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.credit b { font-weight: 600; } .credit span { color: var(--muted); } .credit a { color: var(--clay-2); font-weight: 600; }
.wl-tcard img { object-fit: cover; }
.wl-foot .linkbtn { margin-left: 8px; color: inherit; opacity: .85; text-decoration: underline; }

/* Accueil visiteur : mosaïque de photos */
.wl-collage { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-top: 24px; height: clamp(220px, 38vw, 300px); max-width: 560px; }
.wl-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; background: var(--surface-2); }
.wl-collage img:first-child { grid-row: 1 / span 2; }
.wl-tcard { position: relative; }
.wl-tcard span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(20, 20, 20, .62); color: #fff; font-weight: 500; font-size: 13.5px; text-align: left; }
.hm-topic .ht-img { object-fit: cover; }

/* --- Écrans d'accès : même identité que l'accueil (photo, rouge sombre, pas d'aplat noir) --- */
.auth-art { background: #2a0d0d url("/img/photos/hero.jpg") center / cover no-repeat; color: #fff; justify-content: space-between; padding: 44px 48px 40px; }
.auth-art::before { z-index: 2; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,8,8,.55) 0%, rgba(20,8,8,.35) 38%, rgba(40,10,10,.86) 100%); pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .wm { color: #fff; font-weight: 600; }
.auth-quote { color: #fff; font-weight: 500; max-width: 11em; text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.auth-quote em { color: #ffd2cf; font-style: normal; }
.auth-foot { color: rgba(255,255,255,.86); font-size: 15px; }
.auth-panel { background: var(--surface); }
:root[data-theme="dark"] .auth-panel { background: var(--surface); }
