/* Polices hébergées sur le site (Inter, licence SIL OFL) : aucun appel à un service tiers. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* Budgetscope – système visuel
   Concept : un instrument de veille sobre (fond papier légèrement violacé, encre profonde),
   où la couleur violette ne sert qu'aux actions et aux signaux "actif". */
:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --ink: #1d1830;
  --muted: #5e5873;
  --line: #e3e0ec;
  --accent: #5b3e96;
  --accent-ink: #ffffff;
  --accent-soft: #ece6f7;
  --live: #1f8a5b;
  --live-soft: #e3f4ec;
  --warn: #b5651d;
  --warn-soft: #fbefe2;
  --danger: #b3261e;
  --a: #1f8a5b; --a-soft: #e3f4ec;
  --b: #9a6b00; --b-soft: #fbf1d9;
  --c: #6b6680; --c-soft: #efedf4;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111d; --surface: #1c1828; --ink: #ece9f5; --muted: #a39db8; --line: #2e2940;
    --accent: #a98be6; --accent-ink: #14111d; --accent-soft: #2a2140;
    --live: #4fc28f; --live-soft: #16301f; --warn: #e3a35d; --warn-soft: #33240f; --danger: #f08a82;
    --a: #4fc28f; --a-soft: #16301f; --b: #e0b34c; --b-soft: #31270c; --c: #a39db8; --c-soft: #26222f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.022em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); transition: transform .12s ease, opacity .12s; }
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 6px 11px; font-size: 13px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--c-soft); color: var(--c); white-space: nowrap; }
.pill.live { background: var(--live-soft); color: var(--live); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.prio { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-weight: 700; font-family: var(--display); }
.prio.A { background: var(--a-soft); color: var(--a); }
.prio.B { background: var(--b-soft); color: var(--b); }
.prio.C { background: var(--c-soft); color: var(--c); }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }

/* ---------- landing ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 34em; margin: 18px 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -30px rgba(40, 20, 90, .35); overflow: hidden; }
.preview .bar { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.preview .q { flex: 1; background: var(--bg); border-radius: 6px; padding: 6px 10px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
.preview td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.preview tr:last-child td { border-bottom: 0; }
.preview .who { font-weight: 600; }
.preview .sub { color: var(--muted); font-size: 12px; }
.section { padding-block: 56px; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 22em; }
.section p.intro { color: var(--muted); max-width: 40em; margin: 12px 0 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step h3 { font-size: 18px; margin: 10px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step .k { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.signals div { padding-left: 14px; border-left: 2px solid var(--accent); }
.signals b { display: block; }
.signals span { color: var(--muted); font-size: 14px; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font-family: var(--display); font-size: 32px; font-weight: 700; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); }
.plan li { margin: 4px 0; }
.plan .btn { margin-top: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }
footer { padding-block: 32px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- app ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth h1 { font-size: 26px; margin: 18px 0 6px; }
.auth p { color: var(--muted); margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.input, textarea.input, select.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 12px; }
textarea.input { min-height: 120px; resize: vertical; font-family: inherit; font-size: 14.5px; line-height: 1.55; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; }
.switch { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }
.switch button { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; background: var(--surface); }
.side .brand { margin: 0 6px 18px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; }
.nav:hover { background: var(--bg); }
.nav.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.quota { margin-top: auto; background: var(--bg); border-radius: var(--radius); padding: 14px; font-size: 13px; }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 10px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.main { padding: 28px 32px 60px; min-width: 0; }
.main h1 { font-size: 26px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head p { margin: 6px 0 0; color: var(--muted); }
.banner { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px dashed var(--line); background: none; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.toggle input { margin-top: 4px; accent-color: var(--accent); }
.toggle span { color: var(--muted); font-size: 13px; display: block; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.loading { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { width: auto; padding: 7px 10px; font-size: 14px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.tablebox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table.res { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
table.res th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); white-space: nowrap; }
table.res td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.res tr:last-child td { border-bottom: 0; }
table.res tr.open td { background: var(--bg); }
.who b { display: block; font-weight: 600; }
.who small { color: var(--muted); font-size: 12px; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.links { display: flex; gap: 10px; font-size: 13px; flex-wrap: wrap; }
table.res td:nth-child(6) { min-width: 250px; }
.mail { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.mail small { display: block; font-family: var(--font); color: var(--muted); }
.more { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0; }
.detail { padding: 4px 0 6px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist a { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.hist a:hover { border-color: var(--accent); }
.toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .hero, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .signals { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 10; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.show { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 18px 16px 48px; }
}

/* ================= v2 ================= */
.logo { color: var(--accent); flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: inherit; text-decoration: none; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.btn.big { padding: 13px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: var(--danger); color: #fff; }
.spin.light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.pill.new { background: var(--accent); color: var(--accent-ink); }
.badge { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.toast.ok { background: var(--live); color: #fff; }

/* connexion */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding: 0; }
.auth-side { background: linear-gradient(160deg, #2a1d4d, #5b3e96); color: #fff; padding: 48px max(32px, 6vw); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.auth-side .brand { color: #fff; }
.auth-side .brand .logo { color: #fff; }
.auth-side h2 { font-size: clamp(26px, 3vw, 38px); max-width: 15em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; opacity: .92; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #cdb8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232a1d4d' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.auth-side .fine { color: #e6dafb; }
.auth .card { align-self: center; justify-self: center; margin: 32px 20px; border: 0; background: transparent; }
.auth .card h1 { margin-top: 0; }
.auth .sub, .onboard .sub { color: var(--muted); margin: 6px 0 22px; }
.toggle.small { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* onboarding */
.onboard { max-width: 920px; margin: 0 auto; padding: 40px max(20px, env(safe-area-inset-left)) 80px; }
.onboard .brand { margin-bottom: 40px; }
.onboard h1 { font-size: clamp(28px, 4vw, 40px); }
.step-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svc { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.svc:hover { border-color: var(--accent); transform: translateY(-1px); }
.svc.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.svc b { font-size: 16px; }
.svc span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.onboard-2 { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.onboard-2 h2 { font-size: 22px; margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* recherche */
.why { background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0; }
.scan { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: grid; gap: 10px; }
.scan-step { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.scan-step span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.scan-step.now { color: var(--ink); font-weight: 600; }
.scan-step.now span { border-color: var(--line); border-top-color: var(--accent); animation: sp .8s linear infinite; }
.scan-step.done { color: var(--ink); }
.scan-step.done span { background: var(--live); border-color: var(--live); }

/* résultats */
.hero-res { background: linear-gradient(120deg, var(--accent-soft), transparent); border: 1px solid var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; font-size: 15px; }
.hero-res b { font-family: var(--display); font-size: 18px; display: block; margin-bottom: 2px; }
.hero-res .memo { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.editable { cursor: text; border-radius: 6px; outline-offset: 4px; }
.editable:hover { background: var(--accent-soft); }
.stat.a b { color: var(--a); }
.switchbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.switchbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switchbox span { width: 36px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.switchbox span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switchbox input:checked + span { background: var(--accent); }
.switchbox input:checked + span::after { transform: translateX(16px); }
.switchbox input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
table.res td:nth-child(6) { min-width: 0; }
table.res td.contact { min-width: 240px; }
.who-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who-top b { font-size: 15px; }
.who small { display: block; margin: 3px 0 4px; }
.who small a { color: var(--muted); }
.reasons { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.reasons span { font-size: 11.5px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 7px; }
blockquote { margin: 8px 0 2px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; color: var(--ink); font-size: 13.5px; max-width: 62ch; }
.mail { display: flex; flex-direction: column; margin-bottom: 6px; }
.mail span { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.mail small { color: var(--muted); font-size: 11.5px; }
.mail small a { color: var(--muted); }
.soc { font-size: 12.5px; }
select.status { padding: 5px 8px; font-size: 13px; font-weight: 600; border-radius: 999px; width: auto; }
.s-contacté, .s-relancé { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.s-rdv, .s-client { background: var(--live-soft); color: var(--live); border-color: transparent; }
.s-pas-intéressé { color: var(--muted); }

/* tiroir */
.drawer { position: fixed; inset: 0; background: rgba(20, 12, 40, .35); z-index: 30; display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-in { width: min(560px, 100%); height: 100%; background: var(--surface); padding: 24px max(24px, env(safe-area-inset-right)) 32px 24px; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.18); animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .drawer-in { animation: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.drawer-head h2 { font-size: 22px; margin-top: 4px; }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab[disabled] { opacity: .45; cursor: not-allowed; }
textarea.msg { min-height: 260px; font-family: var(--font); font-size: 14.5px; line-height: 1.6; }
.mono { font-family: var(--mono); font-size: 13px; }

/* formules */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.plans .plan { position: relative; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -24px rgba(91, 62, 150, .5); }
.plan.current { background: var(--bg); }
.ribbon { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel h3 { font-size: 17px; margin-bottom: 14px; }

/* pages légales */
.legal { max-width: 780px; margin: 0 auto; padding: 32px max(20px, env(safe-area-inset-left)) 80px; }
.legal h1 { font-size: 32px; margin: 28px 0 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 18px; }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 20px; }
  .auth-side h2, .ticks { display: none; }
  .row2, .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.topnav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; }
.topnav a:not(.btn):hover { color: var(--ink); }
.msgprev { border-top: 1px solid var(--line); padding: 12px 14px; font-size: 13px; color: var(--ink); background: var(--accent-soft); }
.msgprev .label { display: block; margin-bottom: 4px; }
.logos-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-block: 8px 40px; color: var(--muted); font-size: 14px; }
.logos-row b { color: var(--ink); font-weight: 600; }
.cta-end { text-align: center; padding-block: 64px; border-top: 1px solid var(--line); display: grid; gap: 22px; justify-items: center; }
.cta-end h2 { font-size: clamp(26px, 3.4vw, 38px); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
@media (max-width: 700px) { .topnav a:not(.btn) { display: none; } }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-num { margin-top: 8px; font-size: 14px; }
.q-num b { font-family: var(--display); font-size: 22px; }
.quota small { color: var(--muted); display: block; line-height: 1.4; margin-bottom: 8px; }
.reasons span { background: var(--surface); border: 1px solid var(--line); }
.btn.confirm { background: var(--warn); }
.q-top .link { white-space: nowrap; }

/* ---------- suivi commercial ---------- */
.sec { font-family: var(--display); font-size: 17px; margin: 26px 0 12px; }
.sec .muted { font-weight: 400; font-size: 14px; margin-left: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-top b { font-size: 15px; }
.pc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pc-row .status { flex: 1 1 140px; }
.pc-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-date .input { width: auto; padding: 6px 8px; }
.pc-note { min-height: 64px; font-size: 13.5px; resize: vertical; }
.pcard .actions { margin: 0; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-note { font-family: inherit; }

/* ---------- page d'accueil v2 ---------- */
.topnav .link-login { color: var(--ink); }
.hero2 { align-items: start; padding-top: 36px; }
.hero2 h1 { margin-top: 16px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--live); font-weight: 700; margin-right: 6px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -34px rgba(40, 20, 90, .45); overflow: hidden; scroll-margin-top: 20px; }
.demo-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.demo-head b { font-family: var(--display); font-size: 18px; }
.demo .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo .chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.demo .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.demo-body { min-height: 300px; }
.demo-loading { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 300px; color: var(--muted); font-size: 14px; }
.demo-stats { display: flex; gap: 18px; padding: 10px 18px; font-size: 13px; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.demo-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); animation: fadein .35s ease both; }
.demo-rows li:nth-child(2) { animation-delay: .05s; } .demo-rows li:nth-child(3) { animation-delay: .1s; } .demo-rows li:nth-child(4) { animation-delay: .15s; } .demo-rows li:nth-child(5) { animation-delay: .2s; } .demo-rows li:nth-child(6) { animation-delay: .25s; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-rows li { animation: none; } }
.dr-main { flex: 1; min-width: 0; display: grid; }
.dr-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-lock { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.demo .msgprev { margin: 12px 18px 4px; }
.demo-note { margin: 6px 18px 0; font-size: 12px; color: var(--muted); }
.demo-foot { padding: 14px 18px 16px; display: grid; gap: 6px; text-align: center; }
.demo-foot small { color: var(--muted); font-size: 12px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.vs-col { border-radius: 14px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
.vs-col ul { margin: 12px 0 16px; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.vs-col.bad li::before { content: "✕"; color: var(--danger); margin-right: 8px; font-weight: 700; }
.vs-col.good { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vs-col.good li::before { content: "✓"; color: var(--live); margin-right: 8px; font-weight: 700; }
.vs-time { font-family: var(--display); font-weight: 700; font-size: 17px; }
.vs-col.bad .vs-time { color: var(--muted); }
.roi { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.roi-grid { display: grid; gap: 12px; margin-top: 20px; }
.roi-grid label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.roi-in { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.roi-in .input { width: 110px; text-align: right; }
.roi-out { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 2px; text-align: center; }
.roi-big { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--accent); margin-top: 10px; font-variant-numeric: tabular-nums; }
.roi-plan { margin: 14px 0 8px; font-weight: 600; }
.founder { max-width: 760px; text-align: center; }
.founder p { font-family: var(--display); font-size: 21px; line-height: 1.45; }
.founder span { color: var(--muted); font-size: 14px; }
.cta-end .muted { margin: 8px 0 18px; }
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .vs, .roi { grid-template-columns: 1fr; }
  .topnav a:not(.btn):not(.link-login) { display: none; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 20; }
  body.landing { padding-bottom: 76px; }
  .roi-grid label { font-size: 14px; }
}
.dr-main .fit { color: var(--live); font-weight: 600; }
@media (max-width: 900px) { .topnav a.link-login { display: inline; font-size: 14px; } }

/* ---------- croissance : parrainage, démarrage guidé, relances vers l'abonnement ---------- */
.refbar { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 10px 16px; font-size: 14px; }
.proof { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.proof b { color: var(--ink); font-variant-numeric: tabular-nums; }
.badge.soft { background: var(--live-soft); color: var(--live); }
.banner.up { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-soft); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.banner-actions { display: inline-flex; gap: 8px; }
.startcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.sc-top { display: flex; align-items: center; gap: 14px; }
.sc-top b { white-space: nowrap; }
.sc-top .meter { flex: 1; }
.startcard ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.startcard li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; font-size: 13.5px; }
.startcard li i { font-style: normal; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--accent-soft); color: var(--accent); }
.startcard li.ok i { background: var(--live-soft); color: var(--live); }
.startcard li.ok span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.copyrow { display: flex; gap: 8px; }
.copyrow .input { flex: 1; font-size: 13px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.howref { padding-left: 18px; display: grid; gap: 8px; font-size: 14px; margin: 8px 0 0; }
@media (max-width: 900px) { .startcard ol { grid-template-columns: 1fr 1fr; } }

/* ---------- veille concurrents ---------- */
.spy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.spy-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 28px 0 14px; }
.spy-head h2 { font-family: var(--display); font-size: 22px; margin: 0; }
.spy-sum ul { margin: 6px 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.adcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ad-top { display: flex; align-items: center; gap: 8px; }
.ad-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; }
.ad-meta { font-size: 12.5px; color: var(--muted); }
.ad-body { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-line; max-height: 9.5em; overflow: auto; }
.ad-title { font-size: 12.5px; font-weight: 600; }
.ad-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.ad-foot .link { margin-left: auto; font-size: 13px; }
.bars { display: grid; gap: 8px; max-width: 640px; }
.barrow { display: grid; grid-template-columns: 180px 1fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.bar { height: 8px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.offer { position: fixed; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(40, 20, 90, .5); padding: 18px; display: grid; gap: 8px; z-index: 40; transform: translateY(20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.offer.in { transform: none; opacity: 1; }
.offer b { font-family: var(--display); font-size: 17px; padding-right: 20px; }
.offer p { margin: 0; font-size: 13.5px; color: var(--muted); }
.offer .actions { margin: 4px 0 0; align-items: center; }
.offer-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .offer { transition: none; } }
@media (max-width: 700px) { .barrow { grid-template-columns: 1fr 1fr 40px; } .offer { right: 16px; bottom: 16px; } }
.spy-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.spy-promo .ticks { margin: 16px 0 22px; }
.spy-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -34px rgba(40, 20, 90, .4); padding: 8px 0 16px; }
.sm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sm-row small { grid-column: 2 / 4; color: var(--muted); font-size: 12.5px; }
.sm-bars { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; align-items: center; padding: 16px 18px 0; font-size: 13px; }
.sm-bars i { display: block; height: 8px; background: var(--accent); border-radius: 99px; }
@media (max-width: 900px) { .spy-promo { grid-template-columns: 1fr; } }

/* ---------- activités, envoi, mot de passe ---------- */
.svc-group { margin-top: 22px; }
.svc-group > .label { display: block; margin-bottom: 10px; }
.svc-group .svc-grid { margin-top: 0; }
.send-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sub-actions { margin-top: 10px; gap: 16px; }
.forgot { margin: -4px 0 6px; text-align: right; font-size: 13px; }
.auth.single { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.auth.single .card { width: min(420px, 100%); }
.auth.single .brand { margin-bottom: 18px; }
.demo .chip-more { border: 1px dashed var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; max-width: 100%; }
.demo .chip-more.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); border-style: solid; }
.svc-find { margin-top: 18px; max-width: 520px; }
.svc-group .svc-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.svc-group .svc { padding: 12px 14px; }
.svc-group .svc b { font-size: 14.5px; }
.svc-group .svc span { display: none; }
.svc-group .svc.on span { display: block; margin-top: 6px; }
.svc-group { margin-top: 18px; }
.svc-group .svc-grid { align-items: start; }
