/* ============================================================
   Klik — design system v3 « juste milieu »
   Fond gris très clair, surfaces blanches, encre ardoise,
   un seul accent cobalt réservé aux actions et à la marque.
   Les démos de cartes utilisent des fonds profonds (contraste).
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #ECEDEF;
  --surface: #FFFFFF;
  --surface-2: #F7F8F9;
  --line: #E2E4E8;
  --line-strong: #CFD3DA;

  --ink: #1D1D1F;
  --ink-2: #5A5F68;
  --ink-3: #8B909A;

  --accent: #47566B;
  --accent-hi: #53647C;
  --accent-lo: #3A4759;
  --accent-soft: #EDF0F4;

  --ok: #178A50;
  --ok-soft: #E8F7EF;
  --err: #C93A34;
  --err-soft: #FDEEED;
  --warn: #B4690E;
  --warn-soft: #FCF3E6;

  --radius: 16px;
  --radius-s: 11px;
  --shadow: 0 1px 2px rgba(23,26,33,.05), 0 8px 24px rgba(23,26,33,.06);
  --shadow-lift: 0 2px 4px rgba(23,26,33,.06), 0 16px 40px rgba(23,26,33,.10);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
.wrap { max-width: 580px; margin: 0 auto; padding: 18px 18px 64px; }

/* ---------- marque ---------- */
.wordmark {
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;         /* centrage vertical fiable : plus de hack de baseline */
  gap: .17em;
  line-height: 1.2;
  padding: .05em 0;            /* évite tout rognage du diamant pivoté */
  overflow: visible;
  text-decoration: none;
}
.wordmark::after {
  content: "";
  flex: none;
  width: .26em; height: .26em;
  margin-top: .12em;           /* aligne optiquement sur la base du texte */
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  transform: rotate(45deg);
  border-radius: 20%;
}
.wordmark.light { color: #fff; }
.brandbar { display: flex; align-items: center; gap: 12px; padding: 16px 2px 18px; }
.brandbar .wordmark { font-size: 1.35rem; }
.brandbar .tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  border-left: 1px solid var(--line-strong);
  padding-left: 12px;
}
.brandbar .spacer { flex: 1; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.card p.sub { margin: 0 0 16px; color: var(--ink-2); font-size: .9rem; }

.hero {
  position: relative; overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  margin: 16px 0;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 55%);
  pointer-events: none;
}
.hero h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; position: relative; }
.hero p { margin: 0; opacity: .88; position: relative; font-size: .95rem; }

/* ---------- formulaires ---------- */
label { display: block; font-size: .84rem; font-weight: 600; margin: 14px 0 6px; color: var(--ink-2); }
input[type=email], input[type=text], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 13px 14px; font-size: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(71, 86, 107, .15);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; min-height: 78px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 16px; padding: 14px 18px;
  font-size: .98rem; font-weight: 700; letter-spacing: -.01em;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff;
  text-decoration: none; text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px rgba(71,86,107,.22);
  transition: transform .1s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: var(--accent-hi); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--accent); margin-top: 8px; box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { background: var(--err); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.wallet { background: #000; color: #fff; box-shadow: none; }
.btn.wallet:hover { background: #1a1a1a; }
.btn.wallet.google { background: #202124; }

/* ---------- feedback ---------- */
.hint { font-size: .82rem; color: var(--ink-3); margin-top: 12px; }
.msg { padding: 12px 14px; border-radius: var(--radius-s); font-size: .9rem; margin-top: 14px; border: 1px solid transparent; }
.msg.ok   { background: var(--ok-soft);   color: var(--ok);   border-color: #BFE8D2; }
.msg.err  { background: var(--err-soft);  color: var(--err);  border-color: #F5C9C6; }
.msg.warn { background: var(--warn-soft); color: var(--warn); border-color: #F0DBBB; }
.hidden { display: none !important; }
.center { text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: .9rem; z-index: 50;
  box-shadow: 0 10px 30px rgba(23,26,33,.35);
}
.spin {
  width: 26px; height: 26px; margin: 30px auto;
  border: 2.5px solid var(--line-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- stats ---------- */
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
}
.stat .v { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .l { font-size: .76rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- QR ---------- */
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qrbox .qrframe { background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: 14px; line-height: 0; }
.qrbox img { image-rendering: pixelated; display: block; }
.linkline {
  width: 100%; display: flex; gap: 8px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 9px 12px;
}
.linkline code { flex: 1; font-size: .78rem; overflow-wrap: anywhere; color: var(--ink-2); }

/* ---------- réglages ---------- */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; outline: 2px solid var(--line-strong);
  transition: transform .1s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.sel { outline: 3px solid var(--accent); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.mode {
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface);
  padding: 13px 14px; cursor: pointer; text-align: left;
  font-family: inherit;
}
.mode .t { font-weight: 700; font-size: .92rem; color: var(--ink); }
.mode .d { font-size: .76rem; color: var(--ink-2); margin-top: 2px; }
.mode.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---------- tableau clients ---------- */
table.clients { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.clients th {
  text-align: left; color: var(--ink-3); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 6px; border-bottom: 1px solid var(--line-strong);
}
table.clients td { padding: 10px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; color: var(--ink-2); }
table.clients td:first-child { color: var(--ink); }

#reader { width: 100%; border-radius: var(--radius-s); overflow: hidden; }
.rowline { display: flex; gap: 10px; }
.rowline > * { flex: 1; }
details.settings summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
details.settings summary::marker { color: var(--accent); }

.logorow { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.logorow .preview {
  width: 56px; height: 56px; border-radius: 12px; flex: none;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.logorow .preview img { width: 100%; height: 100%; object-fit: contain; }
.logorow .preview.banner { width: 120px; height: 40px; border-radius: 8px; }
.logorow .preview.banner img { object-fit: cover; }
.logorow .preview span { color: var(--ink-3); font-size: .7rem; }

footer.klik { text-align: center; color: var(--ink-3); font-size: .78rem; margin-top: 34px; }
footer.klik .wordmark { font-size: .9rem; }

/* ============================================================
   Dashboard v2 — shell applicatif (rail + topbar + vues)
   ============================================================ */
.appbody { background: var(--bg); }

/* ---------- écrans d'auth ---------- */
.authwrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 18px 40px; }
.authcard {
  width: 100%; max-width: 430px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 26px;
  box-shadow: var(--shadow-lift);
}
.authcard h1 { font-size: 1.35rem; letter-spacing: -.02em; margin: 14px 0 4px; }
.authcard .sub { color: var(--ink-2); font-size: .9rem; margin: 0 0 18px; }
.btn.gbtn {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn.gbtn:hover { background: var(--surface-2); }
.ordiv { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--ink-3); font-size: .78rem; }
.ordiv::before, .ordiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; background: var(--bg); border-radius: 11px; padding: 4px; }
.atab {
  border: 0; background: transparent; padding: 9px; border-radius: 8px;
  font-weight: 600; font-size: .88rem; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.atab.sel { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.linkalt { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.linkalt summary { cursor: pointer; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.linkalt summary::marker { color: var(--accent); }

/* ---------- shell ---------- */
.appshell { display: grid; grid-template-columns: 78px 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px;
}
.railtop { margin-bottom: 14px; }
.raillogo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.ritem {
  width: 54px; padding: 9px 0 7px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-3); text-decoration: none;
  transition: background .15s, color .15s;
}
.ritem svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ritem span { font-size: .6rem; font-weight: 600; }
.ritem:hover { color: var(--ink); background: var(--surface-2); }
.ritem.active { color: var(--accent); background: var(--accent-soft); }

.main { min-width: 0; padding: 0 26px 90px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(236, 237, 239, .85); backdrop-filter: blur(12px);
  margin: 0 -26px; padding: 14px 26px;
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: .88rem; color: var(--ink-3); }
.crumb span { margin: 0 6px; }
.crumb b { color: var(--ink); font-weight: 700; }
.bell {
  position: relative; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
}
.bell svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; }
.bell i {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--err); color: #fff; border-radius: 999px;
  font-size: .66rem; font-weight: 800; font-style: normal;
  display: grid; place-items: center;
}

.view { max-width: 860px; margin: 0 auto; }
.vtitle { font-size: 1.45rem; letter-spacing: -.02em; margin: 22px 0 16px; }

/* ---------- tuiles stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.tile .tl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tile .tv { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tile .ts { font-size: .76rem; color: var(--ink-2); }

.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.cardhead h2 { margin: 0; }
.trend { font-size: .8rem; font-weight: 700; color: var(--ok); }
.quota { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ---------- clients ---------- */
.searchbar { margin-bottom: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  color: #fff; font-size: .72rem; font-weight: 800;
  display: inline-grid; place-items: center;
}
.clientcell { display: flex; align-items: center; gap: 10px; }
.cname { font-weight: 600; color: var(--ink); font-size: .9rem; }
.cmail { font-size: .74rem; color: var(--ink-3); overflow-wrap: anywhere; }
td.num { font-variant-numeric: tabular-nums; }
.bestrow { display: flex; gap: 18px; flex-wrap: wrap; }
.bestitem { display: flex; align-items: center; gap: 10px; }
.bestitem .cpts { color: var(--accent); font-weight: 700; font-size: .82rem; }

/* ---------- campagnes ---------- */
.phistory { display: grid; gap: 10px; }
.pitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pitem .pic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.pitem .pic svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.pitem .ptext { font-weight: 600; font-size: .9rem; }
.pitem .pmeta { font-size: .76rem; color: var(--ink-3); margin-top: 2px; }

/* ---------- galerie d'icônes de tampon (vignettes = vrai rendu carte) ----------
   Tuiles à taille FIXE (jamais étirées), badge de sélection à l'intérieur. */
.icongrid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.iconopt {
  position: relative; width: 74px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer; font-family: inherit;
  padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.iconopt:hover { border-color: var(--ink-3); }
.iconopt img { width: 42px; height: 42px; border-radius: 9px; display: block; }
.iconopt .lbl { font-size: .62rem; font-weight: 600; color: var(--ink-2); line-height: 1.1; }
.iconopt .selbadge {
  position: absolute; top: 3px; right: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid #fff;
  display: none; place-items: center;
}
.iconopt .selbadge svg { width: 9px; height: 9px; }
.iconopt.sel {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(71, 86, 107, .18);
}
.iconopt.sel .selbadge { display: grid; }
.iconopt.sel .lbl { color: var(--accent); font-weight: 700; }

/* ---------- impression de la fiche ---------- */
.printcard {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding: 16px;
  background: var(--accent-soft); border: 1px solid #C9D2DE; border-radius: 14px;
}
.printtxt .pt { font-weight: 700; font-size: .96rem; }
.printtxt .pd { font-size: .8rem; color: var(--ink-2); margin-top: 3px; }
.printbtn {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 12px; cursor: pointer; font-family: inherit;
  border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: .98rem;
  box-shadow: 0 6px 16px rgba(71, 86, 107, .28);
  transition: background .15s, transform .1s;
}
.printbtn:hover { background: var(--accent-hi); }
.printbtn:active { transform: translateY(1px); }
.printbtn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.printbtn.busy { opacity: .55; pointer-events: none; }
@media (max-width: 560px) {
  .printcard { flex-direction: column; align-items: stretch; }
  .printbtn { justify-content: center; }
}

/* ---------- compte ---------- */
.acctrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.acctlabel { color: var(--ink-3); font-weight: 600; }

/* ---------- barre d'onglets mobile ---------- */
.tabbar { display: none; }

@media (max-width: 820px) {
  .appshell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 0 16px 96px; }
  .topbar { margin: 0 -16px; padding: 12px 16px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: .62rem; font-weight: 600; color: var(--ink-3); text-decoration: none;
    padding: 4px 0;
  }
  .tabbar a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--accent); }
  .tabbar .scanfab {
    width: 46px; height: 46px; border-radius: 50%; margin-top: -22px;
    background: var(--accent); display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(71,86,107,.35);
  }
  .tabbar .scanfab svg { stroke: #fff; }
}

/* ============================================================
   Composants du site marketing (index)
   ============================================================ */
.mwrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 0;
}
.nav .wordmark { font-size: 1.45rem; }
.nav .links { flex: 1; display: flex; gap: 20px; justify-content: flex-end; align-items: center; }
.nav a.nlink { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav a.nlink:hover { color: var(--ink); }
.nav .cta {
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .92rem;
  padding: 10px 18px; border-radius: 10px;
}
.nav .cta:hover { background: var(--accent-hi); }

.mhero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 54px 0 30px; }
.mhero h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
.mhero h1 .accent { color: var(--accent); }
.mhero p.lead { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 26px; max-width: 46ch; }
.mhero .actions { display: flex; gap: 12px; align-items: center; }
.mhero .actions .btn { width: auto; margin: 0; padding: 14px 26px; }
.mhero .actions .ghostlink { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: .95rem; }
.mhero .actions .ghostlink:hover { color: var(--accent); }
.trustline { margin-top: 22px; font-size: .82rem; color: var(--ink-3); }

/* démo de cartes wallet animées */
.demozone { position: relative; min-height: 420px; }
.democard {
  position: absolute; width: 320px;
  border-radius: 18px; padding: 20px 20px 16px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(23,26,33,.28);
  transform-style: preserve-3d;
  transition: transform .25s ease;
  will-change: transform;
}
.democard .dtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.democard .dlogo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .95rem; }
.democard .dlogo .dot { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.democard .dcount { font-variant-numeric: tabular-nums; font-weight: 800; font-size: .95rem; opacity: .95; }
.democard .dlabel { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin: 12px 0 8px; }
.democard .dgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 4px 2px 6px; }
.democard .dstamp {
  aspect-ratio: 1; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  position: relative;
}
.democard .dstamp.on { border-color: transparent; background: #fff; }
.democard .dstamp.on::after {
  content: ""; position: absolute; inset: 30%;
  border-radius: 50%; background: rgba(0,0,0,.16);
}
.democard .dmeta { display: flex; justify-content: space-between; margin-top: 10px; font-size: .8rem; }
.democard .dmeta .l { opacity: .65; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.democard .dbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; margin: 8px 2px 4px; }
.democard .dbar i { display: block; height: 100%; width: 30%; border-radius: 999px; background: #fff; animation: barfill 6s ease-in-out infinite; }
@keyframes barfill { 0%, 12% { width: 22%; } 46%, 60% { width: 78%; } 94%, 100% { width: 22%; } }
.democard .dqr {
  margin: 12px auto 2px; width: 74px; height: 74px; border-radius: 10px;
  background:
    conic-gradient(#111 25%, transparent 0 50%, #111 0 75%, transparent 0) 0 0/18px 18px,
    #fff;
  border: 5px solid #fff;
}
/* remplissage séquentiel des tampons */
@keyframes stampin {
  0%, 4% { background: transparent; border-color: rgba(255,255,255,.35); transform: scale(1); }
  6% { transform: scale(1.25); }
  8%, 82% { background: #fff; border-color: transparent; transform: scale(1); }
  90%, 100% { background: transparent; border-color: rgba(255,255,255,.35); }
}
.democard .dgrid.animate .dstamp { animation: stampin 7.5s infinite; }

.msection { padding: 46px 0; }
.msection h2 { font-size: 1.7rem; letter-spacing: -.025em; margin: 0 0 8px; }
.msection p.msub { color: var(--ink-2); margin: 0 0 28px; max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.step .n {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: .9rem;
}
.step .t { font-weight: 700; margin-bottom: 4px; }
.step .d { color: var(--ink-2); font-size: .9rem; }

.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.fcard .t { font-weight: 700; font-size: .95rem; margin: 10px 0 3px; }
.fcard .d { color: var(--ink-2); font-size: .87rem; }
.fcard .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1rem; }

.pricing {
  max-width: 430px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px; text-align: center;
  box-shadow: var(--shadow-lift);
  border-top: 3px solid var(--accent);
}
.pricing .price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; }
.pricing .price small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.pricing ul { list-style: none; margin: 18px 0 6px; padding: 0; text-align: left; }
.pricing li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); font-size: .92rem; }
.pricing li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }

.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.faq p { color: var(--ink-2); font-size: .9rem; margin: 10px 0 2px; }

.mfooter { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.vis { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .mhero { grid-template-columns: 1fr; padding-top: 30px; }
  .demozone { min-height: 400px; margin-top: 8px; }
  .steps, .fgrid { grid-template-columns: 1fr; }
  .mhero h1 { font-size: 2rem; }
  .nav .links a.nlink { display: none; }
}
