:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --border: #ebebeb;
  --border-strong: #dcdcdc;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --up: #16a34a;
  --down: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-weight: 400; }

/* ---------- Logo & boutons */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo .light { font-weight: 500; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--ink); font: 500 14px Inter, sans-serif; cursor: pointer;
  transition: background .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Site public */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a { white-space: nowrap; }
@media (max-width: 1120px) { .nav-links { display: none; } }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.hero { text-align: center; padding: 88px 0 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--surface); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.hero-title { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.05; margin: 22px auto 18px; max-width: 900px; letter-spacing: -.035em; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--faint); }
.preview { margin: 56px auto 0; max-width: 1080px; border: 1px solid var(--border); border-radius: 18px; padding: 10px; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .08); }
.preview-inner { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: left; }
.engines-strip { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: 13px; align-items: center; }
.engine-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-2); background: var(--bg); }
.engine-chip i, .legend i, .dot-sm { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.step-num { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
.cta-band { margin: 96px 0 0; padding: 56px 24px; border-radius: 20px; background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.cta-band p { color: #a1a1aa; margin: 0 0 24px; font-size: 16px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.footer { padding: 48px 0; margin-top: 64px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Authentification & création */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--surface); }
.auth-card { width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 24px; margin: 20px 0 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 24px; }
.fieldset { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.fieldset-title { font-weight: 600; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 13px; }
.field label span { color: var(--faint); font-weight: 400; }
.input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); font: 14px Inter, sans-serif; color: var(--ink); background: var(--bg); width: 100%; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.alert { padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; margin-bottom: 16px; }
.alert-info { background: var(--surface); border-color: var(--border); color: var(--ink-2); }
.alert-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.creation-steps { list-style: none; padding: 0; margin: 8px 0 24px; }
.creation-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--faint); transition: color .3s; }
.creation-steps li.active, .creation-steps li.done { color: var(--ink); }
.creation-steps .count { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.status { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
li.active .status { border-color: var(--ink); border-top-color: transparent; animation: spin .8s linear infinite; }
li.done .status { background: var(--ink); border-color: var(--ink); }
li.done .status::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .4s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tableau de bord */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar, .main { min-width: 0; }
.sidebar { border-right: 1px solid var(--border); background: var(--surface); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.biz-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); margin: 14px 0 10px; }
.biz-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.biz-card strong { display: block; font-size: 13px; line-height: 1.2; }
.biz-card small { color: var(--muted); font-size: 12px; }
.side-label { font-size: 12px; color: var(--faint); margin: 12px 8px 4px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); }
.side-link svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.side-link:hover { background: var(--surface-2); }
.side-link.active { background: #ececee; color: var(--ink); font-weight: 500; }
.side-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.side-user { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.side-user strong { display: block; color: var(--ink); font-size: 13px; }
.main { padding: 18px 24px 40px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.headline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.headline h1 { font-size: 15px; font-weight: 600; }
.headline .sep { color: var(--faint); }
.headline-stats { margin-left: auto; display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.headline-stats b { color: var(--ink); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-value { font-size: 28px; font-weight: 650; letter-spacing: -.03em; margin-top: 4px; }
.kpi-value small { font-size: 15px; color: var(--muted); font-weight: 500; margin: 0 6px 0 5px; }
.trend { font-size: 12px; font-weight: 500; white-space: nowrap; }
.trend.up { color: var(--up); } .trend.down { color: var(--down); } .trend.flat { color: var(--faint); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 14px 18px 18px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.tab { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 7px; font: 500 13px Inter, sans-serif; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab.active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.chart-box { position: relative; height: 300px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend b { font-weight: 600; }
.chart-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.icon-link { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.icon-link:hover { background: var(--surface-2); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { color: var(--faint); width: 32px; }
.table .you td { background: #f7f8ff; }
.tag-you { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; margin-left: 6px; font-weight: 500; }
.cell-metric { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pill.bar-left { border-left: 3px solid var(--up); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-box { position: relative; width: 180px; height: 180px; flex: none; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center b { font-size: 24px; display: block; letter-spacing: -.03em; }
.donut-center small { color: var(--muted); font-size: 12px; }
.type-list { display: grid; gap: 8px; flex: 1; min-width: 180px; font-size: 13px; }
.type-list div { display: flex; align-items: center; gap: 8px; }
.type-list b { margin-left: auto; font-weight: 600; }
.result { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; }
.result.yes { background: #dcfce7; color: #15803d; }
.result.no { background: var(--surface-2); color: var(--faint); }
.page-title { font-size: 22px; margin: 6px 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 18px; }
.actions-list { display: grid; gap: 12px; }
.action { display: grid; grid-template-columns: auto 1fr; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.action.done { background: var(--surface); }
.action.done h3 { text-decoration: line-through; color: var(--muted); }
.action h3 { font-size: 15px; margin-bottom: 6px; }
.action p { margin: 4px 0 0; color: var(--ink-2); }
.check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--bg); cursor: pointer; display: grid; place-items: center; margin-top: 1px; }
.action.done .check { background: var(--ink); border-color: var(--ink); }
.action.done .check::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.settings { max-width: 640px; }
.scroll-x { overflow-x: auto; }

@media (max-width: 1100px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; }
  .side-label, .side-bottom .side-user { display: none; }
  .side-bottom { margin-top: 6px; display: flex; gap: 4px; }
  .side-link { white-space: nowrap; }
  .main { padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .headline-stats { margin-left: 0; }
}
@media (max-width: 560px) {
  .logo .light { display: none; }
  .nav-inner { gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi-value { font-size: 22px; }
  .nav-hide-mobile { display: none; }
  .auth-card { padding: 24px 18px; }
  .chart-box { height: 240px; }
}

/* ---------- Aperçu flouté avant abonnement */
.locked-wrap { position: relative; }
.locked-content { filter: blur(7px); pointer-events: none; user-select: none; opacity: .85; }
.paywall { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 120px; }
.paywall-card { width: 100%; max-width: 460px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .14); text-align: center; }
.paywall-card h2 { font-size: 24px; margin: 16px 0 10px; }
.paywall-card p { color: var(--muted); margin: 0 0 22px; }
.paywall-note { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* ---------- Écran d'analyse */
.scan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 14px; }
.scan-stats div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.scan-stats b { display: block; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scan-stats span { font-size: 12px; color: var(--muted); }
.console { margin-top: 16px; height: 210px; overflow-y: auto; background: #0a0a0a; color: #d4d4d8; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.console .line { animation: fadein .3s ease; }
.console .line::before { content: "› "; color: #71717a; }
.console .t { color: #71717a; margin-right: 6px; }
.console .ok { color: #4ade80; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; } }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 42px; }
.password-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.password-eye:hover { color: var(--ink); background: var(--surface-2); }

.chart-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: min(92%, 420px); display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 13px; }
.chart-hint[hidden] { display: none; }
.chart-hint p { margin: 4px 0 0; color: var(--muted); }
.chart-hint button { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.chart-hint button:hover { color: var(--ink); }
.console .warn { color: #fbbf24; }
.link-button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.ia-logo { width: 16px; height: 16px; border-radius: 4px; flex: none; display: inline-block; }
@media (max-width: 560px) {
  .nav-actions { gap: 6px; }
  .nav-actions .btn { height: 34px; padding: 0 10px; font-size: 13px; }
}
.nav-only-mobile { display: none; }
@media (max-width: 560px) { .nav-only-mobile { display: inline; } }
.chart-building { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; }
.chart-building p { margin: 3px 0 0; color: var(--muted); }
.cb-steps { display: flex; align-items: center; gap: 4px; flex: none; }
.cb-steps span { width: 14px; height: 6px; border-radius: 3px; background: var(--border); }
.cb-steps span.on { background: var(--ink); }
.cb-steps em { font-style: normal; font-weight: 600; margin-left: 6px; color: var(--ink-2); }
@media (max-width: 560px) { .chart-building { flex-direction: column; align-items: flex-start; } }
/* Accueil : fond quadrillé qui s'estompe autour du titre, aperçu du tableau de bord qui se fond vers le bas. */
.hero { position: relative; isolation: isolate; }
main { overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: 0 -40vw; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 22%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 22%, #000 0%, transparent 75%); }
.preview { position: relative; max-height: 900px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
/* Accueil : l'aperçu reprend l'interface du tableau de bord (menu + vue d'ensemble). */
.preview { max-width: 1180px; padding: 0; background: var(--bg); }
.mock-app { display: grid; grid-template-columns: 210px minmax(0, 1fr); text-align: left; }
.mock-side { border-right: 1px solid var(--border); background: var(--surface); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-side .side-link { cursor: default; }
.mock-side-bottom { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 8px; }
.mock-main { padding: 18px 20px; min-width: 0; }
@media (max-width: 860px) { .mock-app { grid-template-columns: minmax(0, 1fr); } .mock-side { display: none; } }
.preview { max-width: 1240px; }
.mock-main .grid-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
/* Titre d'accueil en deux tons, phrase avec pastilles d'indicateurs (façon Peec). */
.hero-title-soft { color: #8a8a8f; }
.hero-lead { max-width: 860px; line-height: 2; }
.metric-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: .95em; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); vertical-align: middle; }
.metric-chip svg { width: 16px; height: 16px; color: var(--muted); }
/* Pastilles de l'accueil : elles apparaissent l'une après l'autre en se posant, puis l'icône s'anime au survol. */
.hero-lead .metric-chip { opacity: 0; animation: chip-in .6s cubic-bezier(.2, .9, .3, 1.3) forwards; transition: transform .2s ease, box-shadow .2s ease; }
.hero-lead .metric-chip:nth-of-type(1) { animation-delay: .35s; --tilt: -6deg; }
.hero-lead .metric-chip:nth-of-type(2) { animation-delay: .55s; --tilt: 5deg; }
.hero-lead .metric-chip:nth-of-type(3) { animation-delay: .75s; --tilt: -4deg; }
@keyframes chip-in { 0% { opacity: 0; transform: translateY(10px) rotate(var(--tilt)) scale(.9); } 100% { opacity: 1; transform: none; } }
.hero-lead .metric-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.hero-lead .metric-chip svg { transition: transform .3s ease; }
.hero-lead .metric-chip:hover svg { transform: rotate(-12deg) scale(1.15); color: var(--ink); }
/* Barre du haut : plus fine, plus large (logo à gauche, boutons à droite), liens au centre. */
.logo { gap: 0; }
.logo-mark { margin-right: 10px; }
.nav-inner { max-width: 1440px; padding: 9px 32px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
.nav-actions { margin-left: 0; justify-self: end; }
.nav .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
@media (max-width: 1120px) { .nav-inner { grid-template-columns: auto 1fr; } }
@media (max-width: 560px) { .nav-inner { padding: 9px 16px; } }
.logo .light { margin-left: 5px; }
/* Barre du haut alignée sur la largeur de l'aperçu du tableau de bord, comme chez Peec. */
.nav-inner { max-width: 1272px; padding: 9px 16px; }
/* Haut de l'accueil resserré pour que l'aperçu arrive au même niveau que chez Peec. */
.hero { padding-top: 64px; }
.hero-title { font-size: clamp(34px, 5vw, 56px); margin: 18px auto 14px; }
.hero-lead { font-size: 16.5px; line-height: 1.9; max-width: 760px; margin-bottom: 24px; }
.hero-actions .btn svg { width: 12px; height: 12px; fill: currentColor; color: var(--muted); }
.hero-note { margin-top: 10px; }
.preview { margin-top: 36px; }
.hero { padding-top: 56px; }
.hero-lead { font-size: 15.5px; }
.preview { margin-top: 48px; }
@media (max-width: 760px) { .br-wide { display: none; } }
/* Accueil : section « indicateurs » façon Peec (onglets qui défilent, réponse d'IA animée, souris fictive). */
.metrics-showcase .section-head .eyebrow svg { width: 14px; height: 14px; color: var(--muted); }
.metrics-showcase .section-head h2 { margin-top: 16px; max-width: none; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.ms-tabs { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-right: 1px solid var(--border); }
.ms-tab { position: relative; flex: 1; min-height: 210px; text-align: left; border: 0; border-radius: 14px; padding: 36px 32px 36px 48px; background: transparent; font: inherit; color: var(--faint); cursor: pointer; display: flex; flex-direction: column; justify-content: center; transition: background .4s, color .4s, box-shadow .4s; }
.ms-tab strong { display: flex; align-items: center; gap: 9px; font-size: 18px; color: var(--muted); margin-bottom: 10px; transition: color .4s; }
.ms-tab strong svg { width: 19px; height: 19px; }
.ms-text { font-size: 16px; line-height: 1.6; }
.ms-tab.active { background: var(--bg); color: var(--muted); box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 0 0 1px var(--border); }
.ms-tab.active strong { color: var(--ink); }
.ms-bar { position: absolute; left: 28px; top: 36px; bottom: 36px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.ms-bar i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: #dc2626; }
.ms-tab:not(.active) .ms-bar i { animation: none !important; height: 0; }
@keyframes ms-fill { to { height: 100%; } }
.ms-stage { position: relative; padding: 44px 56px 56px; background: var(--bg); min-width: 0; min-height: 700px; overflow: hidden; }
.ms-question { margin-left: auto; width: fit-content; max-width: 80%; padding: 13px 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--surface); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.ms-answer-row { display: flex; gap: 16px; margin-top: 24px; align-items: flex-start; }
.ms-ai { width: 34px; height: 34px; border-radius: 50%; flex: none; opacity: 0; transition: opacity .4s; }
.ms-answer { flex: 1; min-width: 0; min-height: 120px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px 26px 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .08); color: var(--ink-2); font-size: 15px; line-height: 1.75; opacity: 0; transform: translateY(14px) scale(.98); transform-origin: top; transition: opacity .5s, transform .5s; }
.ms-stage.asking .ms-question, .ms-stage.answering .ms-answer, .ms-stage.answering .ms-ai { opacity: 1; transform: none; }
.ms-reveal { opacity: 0; transform: translateY(6px); filter: blur(3px); transition: opacity .6s, transform .6s, filter .6s; }
.ms-reveal.shown { opacity: 1; transform: none; filter: none; }
.ms-intro { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ms-entry { margin-bottom: 18px; }
.ms-entry p { margin: 6px 0 0; }
.ms-name { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.ms-rank { display: inline-grid; place-items: center; width: 0; height: 22px; overflow: hidden; border-radius: 6px; background: var(--surface); border: 1px solid transparent; color: var(--muted); font-size: 12px; font-weight: 600; margin-right: -9px; opacity: 0; transition: width .35s, margin .35s, opacity .35s, border-color .35s; }
.ms-stage.ranked .ms-rank { width: 22px; margin-right: 0; opacity: 1; border-color: var(--border); }
.ms-avatar { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.ms-entry.is-you .ms-avatar { background: #dc2626; }
.ms-you { font-size: 11px; font-weight: 600; color: #b91c1c; background: #fee2e2; border-radius: 5px; padding: 1px 6px; }
/* Surlignages qui se dessinent de gauche à droite pendant l'étape « Sentiment ». */
.ms-hl { background: linear-gradient(transparent, transparent) no-repeat; color: inherit; border-radius: 4px; padding: 0 1px; background-size: 0% 100%; transition: background-size .55s ease, color .3s; }
.ms-hl.good { background-image: linear-gradient(#dcfce7, #dcfce7); }
.ms-hl.bad { background-image: linear-gradient(#fee2e2, #fee2e2); }
.ms-hl.on { background-size: 100% 100%; }
.ms-hl.good.on { color: #166534; }
.ms-hl.bad.on { color: #991b1b; }
/* Bulle noire et souris fictive. */
.ms-pop { position: absolute; z-index: 3; width: max-content; max-width: 320px; background: #0a0a0a; color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; transform: translateY(calc(-100% - 4px)); transition: opacity .3s, transform .3s; }
.ms-pop.on { opacity: 1; transform: translateY(calc(-100% - 12px)); }
.ms-pop-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.ms-pop .ms-avatar { background: #fff; color: #0a0a0a; width: 20px; height: 20px; font-size: 11px; }
.ms-pop-stats { display: flex; gap: 18px; }
.ms-pop-stats > div + div { border-left: 1px solid #333; padding-left: 18px; }
.ms-pop-stats small { display: block; color: #a1a1aa; font-size: 12px; }
.ms-pop-stats b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ms-pop-stats .dot-sm { background: #22c55e; }
.ms-pop-title { color: #a1a1aa; font-size: 12px; margin-bottom: 8px; }
.ms-pop-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; color: #d4d4d8; }
.ms-pop-row > span:first-child { width: 14px; color: #71717a; font-size: 12px; }
.ms-pop-row.me { background: #27272a; color: #fff; font-weight: 600; }
.ms-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 22px; height: 22px; opacity: 0; pointer-events: none; transform: translate(70%, 92%); transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.ms-cursor.on { opacity: 1; }
@media (max-width: 860px) { .ms-grid { grid-template-columns: minmax(0, 1fr); } .ms-tabs { border-right: 0; border-bottom: 1px solid var(--border); } .ms-tab { min-height: 0; padding: 22px 22px 22px 40px; } .ms-bar { left: 22px; top: 22px; bottom: 22px; } .ms-stage { padding: 24px 16px; min-height: 0; } .ms-cursor { display: none; } }
/* Rangs « # 1 » qui s'ouvrent devant les noms ; souris pilotée en JS (pas de transition CSS). */
.ms-rank { width: auto; max-width: 0; padding: 0; white-space: nowrap; transition: max-width .4s, padding .4s, margin .4s, opacity .4s, border-color .4s; }
.ms-stage.ranked .ms-rank { width: auto; max-width: 44px; padding: 0 6px; }
.ms-cursor { transition: opacity .3s; transform: none; }
.ms-hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Plan d'action : cocher avec une date, actions en préparation, impact mesuré des actions réalisées. */
.action-check { position: relative; }
.action-check summary { list-style: none; }
.action-check summary::-webkit-details-marker { display: none; }
.action-check summary:hover { border-color: var(--ink); }
.done-pop { position: absolute; z-index: 5; top: 30px; left: 0; width: 230px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.done-pop label { font-size: 13px; font-weight: 600; }
.action-origin { font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 5px 9px; margin-bottom: 8px; width: fit-content; }
.action-preparing { border-style: dashed; background: var(--surface); }
.action-preparing h3 { color: var(--muted); }
.action-preparing p { color: var(--faint); }
.prep-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--ink); animation: spin 1s linear infinite; display: inline-block; flex: none; }
.prep-spinner.small { width: 12px; height: 12px; border-width: 1.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.prep-lines { display: grid; gap: 6px; margin-top: 10px; }
.prep-lines i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.prep-lines i:last-child { width: 60%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.section-title { font-size: 17px; margin: 32px 0 12px; }
.done-body { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.action.done h3 { margin-bottom: 2px; }
.done-date { font-size: 13px; }
.undo { display: inline; margin-left: 8px; }
.undo button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.impact { display: flex; align-items: center; gap: 18px; }
.impact small { display: block; font-size: 12px; color: var(--muted); }
.impact-val { font-weight: 700; font-size: 16px; }
.impact-val.up { color: var(--up); } .impact-val.down { color: var(--down); } .impact-val.flat { color: var(--muted); }
.impact-note { font-size: 12px; color: var(--faint); align-self: flex-end; }
.measuring { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
/* Colonnes Visibilité / Sentiment alignées d'une action réalisée à l'autre. */
.done-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.impact { display: grid; grid-template-columns: 90px 90px 100px; gap: 0; align-items: end; }
.impact .measuring { grid-column: 1 / -1; justify-self: start; }
.impact-note { text-align: right; }
@media (max-width: 640px) { .done-body { grid-template-columns: minmax(0, 1fr); } }
.impact { grid-template-columns: 90px 90px 140px; } .impact-note { white-space: nowrap; }
.action.done h3 { text-decoration: none; color: var(--ink); }
.page-sub + .section-title { margin-top: 20px; }
.impact-val { font-variant-numeric: tabular-nums; } .sign-pad { visibility: hidden; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; } .btn-danger:hover { background: #b91c1c; }
.danger-zone { border-color: #fecaca; }
.danger-row { display: flex; gap: 10px; flex-wrap: wrap; } .danger-row .input { flex: 1 1 220px; }
/* Suppression du compte : bouton grisé tant que SUPPRIMER n'est pas tapé, écran d'attente, page de confirmation. */
.btn-danger:disabled { background: #fca5a5; border-color: #fca5a5; color: #fff; opacity: 1; cursor: not-allowed; }
.btn-danger:not(:disabled) { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.deleting { position: fixed; inset: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: blur(4px); display: grid; place-items: center; }
.deleting[hidden] { display: none; }
.deleting-card { display: grid; justify-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px 36px; box-shadow: var(--shadow); text-align: center; }
.deleting-card .prep-spinner { width: 28px; height: 28px; border-top-color: #dc2626; }
.deleted-card { text-align: center; }
.deleted-check { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; margin: 22px auto 0; }
.nf-hint { display: block; margin-top: 6px; font-weight: 600; } .nf-hint:empty { display: none; }
/* Cadenas du bouton « Débloquer mon analyse » : l'anse s'ouvre au survol. */
.unlock-btn .padlock { overflow: visible; }
.unlock-btn .shackle { transform-box: view-box; transform-origin: 16.5px 11px; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.unlock-btn:hover .shackle, .unlock-btn:focus-visible .shackle { transform: translateY(-2.5px) rotate(28deg); }
/* Icônes du menu du tableau de bord : une animation propre à chaque icône au clic. */
.side-link svg { transform-origin: center; }
.side-link.ic-play[data-ic="home"] svg { animation: ic-hop .55s cubic-bezier(.3, 1.6, .5, 1); }
.side-link.ic-play[data-ic="users"] svg { animation: ic-wiggle .6s ease; }
.side-link.ic-play[data-ic="globe"] svg { animation: ic-spin .5s cubic-bezier(.4, 0, .2, 1); }
.side-link.ic-play[data-ic="zap"] svg { animation: ic-zap .55s ease; }
.side-link.ic-play[data-ic="settings"] svg { animation: ic-gear .5s cubic-bezier(.4, 0, .2, 1); }
.side-link.ic-play[data-ic="logout"] svg { animation: ic-out .5s ease; }
@keyframes ic-hop { 0% { transform: none; } 40% { transform: translateY(-5px) scale(1.25); } 100% { transform: none; } }
@keyframes ic-wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-18deg) scale(1.25); } 50% { transform: rotate(14deg) scale(1.25); } 75% { transform: rotate(-6deg); } }
@keyframes ic-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes ic-zap { 0%, 100% { transform: none; color: inherit; } 30% { transform: scale(1.3) rotate(-10deg); color: #f59e0b; } 60% { transform: scale(.95) rotate(6deg); } }
@keyframes ic-gear { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@keyframes ic-out { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
.side-link.ic-play svg { color: var(--ink); }
/* Accueil : coins moins arrondis, comme chez Peec. */
.nav .btn, .landing .btn { border-radius: 7px; }
.landing .eyebrow { border-radius: 8px; }
.landing .metric-chip { border-radius: 6px; }
.landing .preview { border-radius: 12px; }
.landing .preview .card, .landing .preview .kpi, .landing .preview .biz-card { border-radius: 8px; }
.landing .preview .tabs, .landing .preview .tab, .landing .preview .side-link, .landing .preview .chip { border-radius: 6px; }
.landing .ms-grid { border-radius: 12px; }
.landing .ms-tab { border-radius: 8px; }
.landing .ms-answer, .landing .ms-question { border-radius: 8px; }
.landing .step, .landing .cta-band { border-radius: 10px; }
/* Accueil : rectangle façon zone de saisie posé sur le bas de l'aperçu, halo translucide comme chez Peec. */
.live-query { position: relative; z-index: 3; width: min(720px, 92%); margin: -95px auto 0; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .12), 0 0 0 1px rgba(255, 255, 255, .6) inset; text-align: left; }
.lq-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px 18px 14px; }
.lq-question { display: flex; align-items: center; margin-bottom: 22px; font-size: 19px; color: var(--faint); letter-spacing: -.01em; }
.lq-window { height: 30px; overflow: hidden; flex: 1; }
.lq-line { height: 30px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--muted); flex: none; margin-right: 2px; animation: lq-blink 1s steps(1) infinite; }
@keyframes lq-blink { 50% { opacity: 0; } }
.lq-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lq-chips { display: flex; gap: 8px; }
.lq-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--muted); background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.lq-chip svg { color: #dc2626; }
.lq-send { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #8a8a8f; color: #fff; }
@media (max-width: 640px) { .live-query { margin-top: -65px; } .lq-question { font-size: 16px; } }
/* Rectangle de l'accueil à la taille de celui de Peec. */
.live-query { width: min(500px, 92%); padding: 7px; border-radius: 13px; }
.lq-card { padding: 13px 14px 11px; border-radius: 9px; }
.lq-question { font-size: 15.5px; margin-bottom: 16px; }
.lq-window, .lq-line { height: 26px; line-height: 26px; }
.lq-chip { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.lq-send { width: 32px; height: 32px; border-radius: 7px; }
.lq-send svg { width: 16px; height: 16px; }
/* Aperçu à bords carrés comme chez Peec ; rectangle posé plus bas. */
.landing .preview { border-radius: 0; }
.live-query { margin-top: -60px; }
@media (max-width: 640px) { .live-query { margin-top: -45px; } }
/* Accueil : à l'ouverture, l'aperçu du tableau de bord apparaît élément par élément, puis le rectangle se pose. */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.landing .preview { animation: rise-in .8s cubic-bezier(.2, .8, .2, 1) .15s both; }
.landing .mock-side > *, .landing .mock-main .headline, .landing .mock-main .kpi, .landing .mock-main .grid-main > * { animation: rise-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.landing .mock-side > :nth-child(1) { animation-delay: .35s; }
.landing .mock-side > :nth-child(2) { animation-delay: .4s; }
.landing .mock-side > :nth-child(3) { animation-delay: .45s; }
.landing .mock-side > :nth-child(4) { animation-delay: .5s; }
.landing .mock-side > :nth-child(5) { animation-delay: .55s; }
.landing .mock-side > :nth-child(6) { animation-delay: .6s; }
.landing .mock-side > :nth-child(7) { animation-delay: .65s; }
.landing .mock-side > :nth-child(n+8) { animation-delay: .7s; }
.landing .mock-main .headline { animation-delay: .45s; }
.landing .mock-main .kpi:nth-child(1) { animation-delay: .55s; }
.landing .mock-main .kpi:nth-child(2) { animation-delay: .65s; }
.landing .mock-main .kpi:nth-child(3) { animation-delay: .75s; }
.landing .mock-main .grid-main > div:nth-of-type(1) { animation-delay: .85s; }
.landing .mock-main .grid-main > div:nth-of-type(2) { animation-delay: 1s; }
.landing .live-query { animation: pop-in .7s cubic-bezier(.2, .9, .3, 1.15) 1.35s both; }
/* Accueil : présentation du plan d'action (inspirée des « Key features » de Peec). */
.plan-showcase .eyebrow svg { width: 14px; height: 14px; color: var(--muted); }
.ps-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 22px 0 32px; }
.ps-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.ps-head p { margin: 0; padding-left: 24px; border-left: 1px solid var(--border); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; color: var(--faint); }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ps-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 32px 32px 0; overflow: hidden; display: flex; flex-direction: column; }
.ps-card h3 { font-size: 20px; margin: 0 0 8px; }
.ps-card > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 470px; }
.ps-visual { position: relative; margin-top: 30px; min-height: 330px; flex: 1; }
.ps-table { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 13px; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%); mask-image: linear-gradient(to bottom, #000 55%, transparent 95%); }
.ps-table-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.ps-table-head svg, .ps-stack-head svg { width: 15px; height: 15px; }
.ps-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); color: var(--ink-2); }
.ps-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-box { width: 15px; height: 15px; border: 1.5px solid var(--border-strong); border-radius: 4px; }
.ps-badge { font-size: 11.5px; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.ps-badge.strong { background: #dcfce7; color: #15803d; }
.ps-float { position: absolute; left: 6%; right: 6%; bottom: 26px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .14); outline: 8px solid rgba(255, 255, 255, .7); }
.ps-float-head { display: flex; justify-content: space-between; font-size: 14.5px; }
.ps-min { color: var(--faint); }
.ps-float-sub { font-size: 12px; color: var(--muted); margin: 3px 0 12px; }
.ps-float-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ps-float-cols > div { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.ps-float-cols b { display: block; font-size: 13px; margin-bottom: 3px; }
.ps-float-cols small { color: var(--muted); font-size: 11.5px; line-height: 1.4; display: block; }
.ps-tilted { perspective: 1200px; }
.ps-stack { position: absolute; left: 6%; top: 10px; width: 125%; transform: rotate(-12deg) skewX(4deg); transform-origin: left top; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .08); -webkit-mask-image: linear-gradient(to right, #000 60%, transparent 100%), linear-gradient(#000, #000); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 55%, transparent 98%); }
.ps-stack-head { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 18px; margin-bottom: 10px; }
.ps-stack-head span { font-size: 13px; }
.ps-done { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }
.ps-check { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); position: relative; }
.ps-check::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ps-done-text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-done-text small { color: var(--muted); font-size: 12px; }
.ps-done-vals { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ps-done-vals .up { color: var(--up); } .ps-done-vals .down { color: var(--down); }
.ps-done-vals small { font-weight: 400; font-size: 11.5px; color: var(--faint); }
@media (max-width: 900px) { .ps-head, .ps-grid { grid-template-columns: minmax(0, 1fr); } .ps-head p { padding-left: 0; border-left: 0; } .ps-card { padding: 22px 18px 0; } .ps-float-cols { grid-template-columns: minmax(0, 1fr); } .ps-visual { min-height: 380px; } }
.ps-stack { top: 70px; left: 4%; width: 112%; transform: rotate(-9deg) skewX(3deg); }
/* Barre du haut : menu « Produit » qui s'ouvre au survol, façon Peec. */
.nav-links { align-items: center; }
.nav-menu { position: relative; }
.nav-menu-trigger { display: inline-block; padding: 6px 10px; margin: -6px -10px; border-radius: 6px; transition: background .2s, color .2s; }
.nav-menu:hover .nav-menu-trigger, .nav-menu:focus-within .nav-menu-trigger { background: var(--surface-2); color: var(--ink); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 680px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .12); z-index: 20; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* pont invisible : le menu reste ouvert en descendant la souris */
.nav-menu:hover .mega, .nav-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; margin: -1px -1px 0; }
.mega-label { font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.mega-item { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 7px; }
.mega-item:hover { background: var(--surface); }
.mega-item strong { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.mega-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.mega-new { font-style: normal; font-size: 11px; color: #15803d; background: #dcfce7; padding: 1px 6px; border-radius: 4px; }
.mega-visual { position: relative; height: 170px; margin-top: 10px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.mega-orbit { position: absolute; left: 50%; top: 100%; width: 210px; height: 210px; transform: translate(-50%, -58%); border: 1px solid var(--border); border-radius: 50%; }
.mega-ai { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); display: grid; place-items: center; }
.mega-ai img { width: 20px; height: 20px; border-radius: 5px; }
.mega-ai-1 { left: 22%; top: 34%; } .mega-ai-2 { left: 50%; top: 12%; transform: translateX(-50%); } .mega-ai-3 { right: 22%; top: 34%; }
.nav-menu:hover .mega-ai { animation: mega-float 2.4s ease-in-out infinite; }
.nav-menu:hover .mega-ai-2 { animation-name: mega-float-mid; animation-delay: .3s; } .nav-menu:hover .mega-ai-3 { animation-delay: .6s; }
@keyframes mega-float { 50% { transform: translateY(-5px); } }
@keyframes mega-float-mid { 0%, 100% { transform: translateX(-50%); } 50% { transform: translate(-50%, -5px); } }
.mega-pill { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 7px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.mega-foot { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; font-size: 13px; color: var(--muted); }
.mega-foot button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.mega-foot button:hover { text-decoration: underline; }
/* Menu Produit : visuel « Analyse quotidienne » façon Peec (arcs, logos des IA, trait bleu qui circule). */
.mega-visual { height: 170px; }
.mega-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mega-arc { fill: none; stroke: var(--border-strong); stroke-width: 1.2; opacity: .7; }
.mega-beam { fill: none; stroke: #3b82f6; stroke-width: 1.6; stroke-linecap: round; }
.mega-beam-out { stroke-dasharray: 70 330; animation: mega-beam-out 3.2s linear infinite; }
.mega-beam-in { stroke-dasharray: 34 217; animation: mega-beam-in 3.2s linear infinite; opacity: .6; }
@keyframes mega-beam-out { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes mega-beam-in { from { stroke-dashoffset: 251; } to { stroke-dashoffset: 0; } }
.mega-ai, .nav-menu:hover .mega-ai { width: 42px; height: 42px; transform: translate(-50%, -50%); animation: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); border: 1px solid var(--border); }
.mega-ai img { width: 22px; height: 22px; border-radius: 6px; }
.mega-ai-1 { left: 16.3%; top: 40.6%; } .mega-ai-2 { left: 50%; top: 23.5%; } .mega-ai-3 { left: 83.7%; top: 40.6%; right: auto; }
.mega-ai { transition: none; }

/* ===================================================================================
   Version téléphone de l'accueil. Tout est dans ce bloc (écrans de moins de 640 px) :
   rien ici ne s'applique sur ordinateur.
   =================================================================================== */
@media (max-width: 640px) {
  .landing .container, .nav-inner { padding-left: 18px; padding-right: 18px; }

  /* Haut de page */
  .hero { padding-top: 40px; }
  .hero-title { font-size: 32px; line-height: 1.04; letter-spacing: -.03em; }
  .hero-title br { display: none; }
  .hero-title-soft { display: block; margin-top: 2px; }
  .hero-lead { font-size: 16px; line-height: 1.85; }
  /* Boutons côte à côte, à leur taille, comme chez Peec */
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { height: 44px; padding: 0 14px; font-size: 14.5px; gap: 7px; }
  .hero-note { font-size: 12px; }

  /* Aperçu du tableau de bord : la version ordinateur en miniature, en entier sur la largeur de l'écran */
  .landing .preview { margin-top: 32px; height: 230px; max-height: none; }
  .landing .mock-app { width: 1180px; grid-template-columns: 210px minmax(0, 1fr); transform: scale(.298); transform-origin: 0 0; }
  .landing .mock-side { display: flex; }
  .landing .mock-side .side-label { display: block; }
  .landing .mock-main .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing .mock-main .kpi-value { font-size: 28px; }
  .landing .mock-main .grid-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .landing .mock-main .chart-box { height: 300px; }
  .live-query { width: calc(100% - 28px); margin-top: -50px; }
  .lq-question { font-size: 14px; }
  .lq-chip { height: 28px; font-size: 12px; }

  /* Section « Comprenez comment l'IA voit votre commerce » : la conversation d'abord, puis les 3 onglets empilés
     en dessous ; seul l'onglet actif montre son texte (comme chez Peec). */
  .metrics-showcase .section-head h2 { font-size: 26px; line-height: 1.1; }
  .metrics-showcase .section-head p { font-size: 15px; }
  /* Comme chez Peec : la conversation d'abord, puis les 3 onglets empilés en dessous. L'onglet en cours
     s'agrandit en douceur pour montrer son texte, les autres se replient sur leur titre. */
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-stage { order: -1; }
  .ms-tabs { flex-direction: column; gap: 6px; padding: 6px; border-right: 0; border-bottom: 0; border-top: 1px solid var(--border); }
  .landing .ms-tabs { border-bottom-color: transparent; }
  .ms-tab { flex: none; min-height: 0; padding: 16px 18px 16px 40px; transition: background .4s, color .4s, box-shadow .4s, padding .5s ease; }
  .ms-tab.active { padding-top: 20px; padding-bottom: 20px; }
  .ms-tab strong { font-size: 16px; margin: 0; }
  .ms-tab strong svg { width: 16px; height: 16px; }
  .ms-text { display: block; font-size: 14px; line-height: 1.4; max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
    transition: max-height .5s ease, opacity .4s ease, margin-top .5s ease; }
  .ms-tab.active .ms-text { max-height: 90px; opacity: 1; margin-top: 8px; }
  .ms-bar { left: 22px; top: 16px; bottom: 16px; }
  .ms-tab.active .ms-bar { top: 20px; bottom: 20px; }
  .ms-stage { padding: 20px 14px 26px; min-height: 620px; }
  .ms-question { font-size: 13.5px; max-width: 92%; }
  .ms-answer-row { gap: 10px; }
  .ms-ai { width: 26px; height: 26px; }
  .ms-answer { padding: 14px 14px 4px; font-size: 13.5px; line-height: 1.6; }
  .ms-pop { max-width: calc(100% - 24px); font-size: 12.5px; }
  .ms-pop-stats { gap: 12px; }
  .ms-pop-stats > div + div { padding-left: 12px; }

  /* Section plan d'action */
  .ps-head { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0 22px; }
  .ps-head h2 { font-size: 26px; line-height: 1.1; }
  .ps-head p { padding-left: 0; border-left: 0; font-size: 15px; }
  .ps-grid { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .ps-card { padding: 26px 20px 0; }
  .ps-card h3 { font-size: 16px; }
  .ps-card > p { font-size: 16px; line-height: 1.45; }
  .ps-visual { min-height: 0; margin-top: 20px; padding-bottom: 18px; }
  .ps-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ps-row .ps-badge:last-child { display: none; }
  .ps-float { position: relative; left: auto; right: auto; bottom: auto; margin: -70px 6px 0; }
  .ps-float-cols { grid-template-columns: minmax(0, 1fr); }
  .ps-tilted { perspective: none; }
  .ps-stack { position: relative; top: auto; left: auto; width: 100%; transform: none; -webkit-mask-image: none; mask-image: none; }
  .ps-stack-head { font-size: 15px; }
  .ps-done { grid-template-columns: auto minmax(0, 1fr); }
  .ps-done-vals { grid-column: 2; }

  /* Bandeau noir et bas de page */
  .cta-band { padding: 28px 24px; text-align: left; }
  .cta-band h2 { font-size: 28px; line-height: 1.1; }
}
@keyframes ms-fill-x { to { width: 100%; } }

/* Accueil : lignes de structure reprises de Peec (mêmes dégradés, mêmes opacités).
   - verticales : une paire par section, aux bords des blocs, plus foncées au milieu et estompées aux extrémités ;
   - horizontales : très larges et centrées, estompées vers les côtés ; une au milieu des boutons du haut,
     puis une au-dessus et une au-dessous de chaque bloc (les blocs n'ont plus leur propre bordure). */
.landing {
  --sl-v: linear-gradient(rgba(32, 32, 32, .04) 0%, rgba(96, 96, 96, .12) 51.1%, rgba(32, 32, 32, .04) 100%);
  --sl-v-soft: linear-gradient(rgba(32, 32, 32, .02) 0%, rgba(96, 96, 96, .06) 51.1%, rgba(32, 32, 32, .02) 100%);
  --sl-h: linear-gradient(90deg, rgba(82, 82, 82, .02) 0%, rgba(82, 82, 82, .09) 48%, rgba(82, 82, 82, .02) 100%);
  --sl-w: 2380px;   /* largeur des horizontales (Peec : 2380 px sur ordinateur, 740 px sur téléphone) */
  --sl-x: 0px;      /* retrait des verticales par rapport au bord de la section */
}
.landing > section { position: relative; background-repeat: no-repeat; background-size: 1px 100%;
  background-image: var(--sl-v), var(--sl-v); background-position: var(--sl-x) 0, calc(100% - var(--sl-x)) 0; }
.landing > .hero { background-image: var(--sl-v-soft), var(--sl-v-soft); }
.landing > .section::before, .landing .hero-actions::before,
.landing .ms-grid::before, .landing .ps-grid::before, .landing .cta-band::before, .landing .cta-band::after {
  content: ""; position: absolute; left: calc(50% - var(--sl-w) / 2); width: var(--sl-w); height: 1px;
  background: var(--sl-h); pointer-events: none; }
.landing > .section::before { top: 0; }                    /* bas du bloc précédent */
.landing .hero-actions { position: relative; }
.landing .hero-actions::before { top: 50%; z-index: -1; }  /* derrière les boutons */
.landing .ms-grid, .landing .ps-grid { position: relative; overflow: visible; border-color: transparent; border-radius: 0; }
.landing .ms-grid::before, .landing .ps-grid::before { top: -1px; }
.landing .ms-tabs { border-right-color: transparent; background: var(--sl-v) right top / 1px 100% no-repeat; }
.landing .cta-band { position: relative; }
.landing .cta-band::before { top: -1px; }
.landing .cta-band::after { bottom: -1px; }
@media (max-width: 860px) { .landing .ms-tabs { background: none; border-bottom-color: var(--border); } }
@media (max-width: 640px) { .landing { --sl-w: 740px; --sl-x: 18px; } }

/* Téléphone : trois barres en haut à droite qui ouvrent le menu (connexion, création de compte, liens). Caché sur ordinateur. */
.nav-burger, .mobile-menu { display: none; }
@media (max-width: 640px) {
  .nav:has(.nav-burger) .nav-actions { display: none; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; justify-self: end; width: 40px; height: 40px;
    padding: 0 10px; margin-right: -8px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { display: flex; flex-direction: column; justify-content: space-between; position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 100%);
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .menu-open { background: var(--bg); backdrop-filter: none; }
  .mm-links { display: flex; flex-direction: column; }
  .mm-links a { padding: 16px 2px; font-size: 18px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }
  .mm-actions { display: flex; flex-direction: column; gap: 10px; }
  .mm-actions .btn { width: 100%; height: 50px; justify-content: center; font-size: 16px; border-radius: 10px; }
  body.no-scroll { overflow: hidden; }
}

/* ===================================================================================
   Version téléphone du tableau de bord (et de la démo). Tout est dans ce bloc :
   rien ici ne s'applique sur ordinateur. Comme les applis : en-tête compact en haut,
   barre de navigation fixe en bas, tableaux transformés en listes.
   =================================================================================== */
.lbl-s, .phone-only { display: none; }
@media (max-width: 640px) {
  .app { display: block; min-height: 100vh; }

  /* En-tête : logo + entreprise */
  .app .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); background: var(--surface); backdrop-filter: none; }
  .app .sidebar .logo { font-size: 16px; }
  .app .biz-card { margin: 0 0 0 auto; padding: 5px 10px 5px 5px; gap: 8px; border-radius: 9px; min-width: 0; max-width: 62%; }
  .app .biz-card .biz-avatar { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; }
  .app .biz-card div { min-width: 0; }
  .app .biz-card strong, .app .biz-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .app .biz-card small { font-size: 11px; }

  /* Barre de navigation en bas : 4 rubriques + Paramètres */
  .app .side-nav, .app .side-bottom { position: fixed; bottom: 0; z-index: 30; display: grid; gap: 0; margin: 0; overflow: visible;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .app .side-nav { left: 0; right: 20%; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-right: 0; }
  .app .side-bottom { right: 0; width: 20%; grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .app .side-label, .app .side-user, .app .side-bottom .side-link[data-ic="logout"], .app .side-admin { display: none; }
  .app .side-nav .side-link, .app .side-bottom .side-link { flex-direction: column; justify-content: center; gap: 3px; height: 50px; padding: 0 2px;
    border-radius: 10px; font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; background: none; }
  .app .side-link svg { width: 21px; height: 21px; color: var(--faint); }
  .app .side-link.active { color: var(--ink); background: none; }
  .app .side-link.active svg { color: var(--ink); }
  .app .side-link .lbl { display: none; }
  .app .side-link .lbl-s { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

  /* Contenu */
  .app .main { padding: 14px 16px calc(86px + env(safe-area-inset-bottom)); }
  .app .topbar { display: none; }
  .app .page-title { font-size: 22px; margin-top: 4px; }
  .app .page-sub { font-size: 14px; }
  .app .card-head { padding: 14px 14px 0; }
  .app .card-body { padding: 12px 14px 14px; }

  /* Vue d'ensemble : phrase d'accroche, 3 chiffres côte à côte */
  .app .headline { display: block; padding: 4px 0 14px; margin-bottom: 14px; }
  .app .headline h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
  .app .headline .sep { display: none; }
  .app .headline .muted { display: block; font-size: 14px; }
  .app .headline-stats { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); }
  .app .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .app .kpi { padding: 11px 10px; }
  .app .kpi-label { font-size: 11.5px; line-height: 1.25; min-height: 2.5em; }
  .app .kpi-value { font-size: 22px; margin-top: 6px; line-height: 1.1; }
  .app .kpi-value small { font-size: 12px; margin: 0 0 0 2px; }
  .app .kpi-value .trend { display: block; font-size: 11.5px; margin-top: 4px; letter-spacing: 0; }

  /* Courbe : onglets sur toute la largeur */
  .app .grid-main { gap: 12px; }
  .app .card-head:has(.tabs) { flex-direction: column; align-items: stretch; gap: 8px; }
  .app .card-head .tabs { display: flex; }
  .app .card-head .tab { flex: 1 1 0; justify-content: center; padding: 0 6px; }
  .app .chart-box { height: 220px; }
  .app .chart-note { font-size: 12.5px; }

  /* Tableaux → listes : le nom sur une ligne, les chiffres en dessous avec leur libellé */
  .app .table thead { display: none; }
  .app .table, .app .table tbody { display: block; }
  .app .table tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 6px; align-items: center;
    padding: 11px 0; border-bottom: 1px solid var(--border); }
  .app .table tr:last-child { border-bottom: 0; }
  .app .table td { padding: 0; border: 0; background: none; min-width: 0; }
  .app .table .num { width: auto; grid-row: span 2; align-self: start; padding-top: 1px; }
  .app .table .you { background: #f7f8ff; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .app .table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--faint); margin-bottom: 3px; }
  .app .table td:nth-child(2) { grid-column: 2 / -1; font-size: 14px; }
  .app .table td:nth-child(3) { grid-column: 2; }
  .app .table td:nth-child(4) { grid-column: 3; justify-self: end; text-align: right; }
  .app .table td:nth-child(4)[data-label]::before { text-align: right; }
  .app .table .cell-metric { gap: 6px; }
  .app .table .bar { width: auto !important; flex: 1; min-width: 0; }
  .app .table td:has(.bar) { grid-column: 2 / -1; justify-self: stretch; text-align: left; }
  .app .table td:has(.bar) .cell-metric { display: flex; }
  .app .scroll-x { overflow: visible; }

  /* Plan d'action */
  .app .action { padding: 14px; gap: 12px; }
  .app .impact { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 22px; }
  .app .impact-note { white-space: normal; }

  /* Paramètres */
  .app .phone-only { display: flex; }
  .app .phone-only.card { display: block; }
  .app .phone-hide { display: none; }
  .app .sources-types { margin-top: 12px; }
  .app .donut-wrap { flex-direction: column; align-items: stretch; gap: 22px; }
  .app .donut-box { width: 200px; height: 200px; margin: 6px auto 0; }
  .app .logout-phone { margin-top: 16px; justify-content: center; gap: 8px; height: 46px; }
  .app .logout-phone svg { width: 16px; height: 16px; }

  /* Écran « Votre analyse est prête » */
  .app .paywall { padding: 70px 4px 0; }
}

/* Accueil, section plan d'action : la souris fictive clique sur une action et sa fiche apparaît (ordinateur et téléphone). */
.ps-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); transition: opacity .3s; }
.ps-cursor.on { opacity: 1; }
.ps-cursor.click { animation: ps-click .3s ease; }
@keyframes ps-click { 50% { scale: .8; } }
.ps-row { transition: background .3s, box-shadow .3s; border-radius: 6px; }
.ps-row.ps-hover { background: var(--surface-2); box-shadow: 0 0 0 6px var(--surface-2); }
.ps-anim .ps-float { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.15); }
.ps-anim.ps-open .ps-float { opacity: 1; transform: none; }

/* Plan d'action : plus d'actions visibles, sans flou ; fiche plus compacte sur téléphone, posée par-dessus la liste. */
.landing .ps-table { -webkit-mask-image: none; mask-image: none; }
.ps-cursor { transform-origin: 3.7px 1.8px; }
@media (max-width: 640px) {
  .landing .ps-visual { position: relative; }
  .landing .ps-row { padding: 8px 0; font-size: 12.5px; }
  .landing .ps-float { position: absolute; left: 8px; right: 8px; bottom: 26px; margin: 0; padding: 12px; }
  .landing .ps-float-head { font-size: 13.5px; }
  .landing .ps-float-sub { font-size: 11px; margin-bottom: 8px; }
  .landing .ps-float-cols { gap: 6px; }
  .landing .ps-float-cols > div { padding: 7px 9px; }
  .landing .ps-float-sub { display: none; }
  .landing .ps-float-head { margin-bottom: 8px; }
  .landing .ps-float-cols b { display: inline; font-size: 12px; margin: 0 4px 0 0; }
  .landing .ps-float-cols small { display: inline; font-size: 11.5px; line-height: 1.4; }
}

/* Page « analyse personnalisée » envoyée aux prospects : titre à leur nom, mise en page du tableau de bord visible
   (données d'exemple marquées « Aperçu ») avec chiffres et noms floutés, puis le bouton d'inscription. */
.analyse { padding-top: 40px; padding-bottom: 60px; }
.an-title { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; text-align: center; }
.an-sub { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 680px; margin: 0 auto 32px; text-align: center; line-height: 1.5; }
.an-wrap { position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; padding: 44px 20px 20px; max-height: 860px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.an-badge { position: absolute; top: 12px; left: 16px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 9px; }
.an-dash { pointer-events: none; user-select: none; }
.analyse .kpi-value, .analyse .table td:not(.num), .an-actions .an-x { filter: blur(6px); }
.an-actions { display: grid; gap: 14px; font-size: 14px; }
.an-actions div { display: flex; align-items: center; gap: 10px; }
.an-cta { text-align: center; margin-top: 28px; }
.an-cta .btn { min-width: 260px; }
.an-note { margin-top: 12px; font-size: 13px; color: var(--faint); }
@media (max-width: 640px) {
  .analyse { padding-top: 26px; }
  .an-sub { margin-bottom: 22px; }
  .an-wrap { padding: 40px 12px 12px; max-height: 760px; }
  .an-cta .btn { width: 100%; }
  .analyse .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .analyse .kpi { padding: 10px; }
  .analyse .kpi-label { font-size: 11px; line-height: 1.25; min-height: 2.5em; }
  .analyse .chart-box { height: 200px; }
}

/* Page privée « Visites » */
.visits { padding-top: 28px; padding-bottom: 60px; max-width: 900px; }
.vt .r { text-align: right; font-variant-numeric: tabular-nums; }
.vt-total td { font-weight: 600; }
@media (max-width: 640px) { .visits .card-body { overflow-x: auto; } .vt { font-size: 12.5px; } }

/* Transition après la création du compte : écran de chargement, puis page d'analyse en fondu. */
.signup-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); animation: fade-in .25s ease; }
.signup-loading[hidden] { display: none; }
.signup-loading-box { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--muted); font-size: 15px; }
.signup-loading-box p { margin: 0; }
.signup-loading-box .prep-spinner { width: 26px; height: 26px; }
.creation-page { animation: fade-in .5s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.vt-sub th { font-size: 12px; color: var(--faint); padding-top: 0; }
.vt-source td { font-weight: 600; background: var(--surface); }
.vt-detail td { color: var(--ink-2); font-size: 12.5px; }
.vt-detail td:first-child { padding-left: 22px; color: var(--muted); }
.vt-note { font-size: 12.5px; margin: 12px 0 0; }
.hero-note strong { color: var(--ink); font-weight: 600; }

/* Bandeau de consentement (Clarity) : toute la largeur, en bas de l'écran */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 28px;
  background: var(--bg); border-top: 1px solid var(--border); padding: 20px 32px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .1); font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--ink-2); line-height: 1.5; max-width: 720px; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-actions .btn { height: 44px; padding: 0 26px; font-size: 15px; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); font-size: 14.5px; }
  .consent-actions .btn { flex: 1; }
  .app .consent { bottom: 0; z-index: 40; }
}
