/* Scalon — Auth + espace perso
   Reuses scalon-tokens.css */

html, body { margin: 0; padding: 0; font-family: var(--font-body); color: var(--fg1); background: var(--bg3); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; }

/* Stage : 1440x900 canvas, scaled to fit */
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #0a0908; overflow: hidden; }
.canvas { width: 1440px; height: 900px; background: var(--bg1); position: relative; transform-origin: center center; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.45); }

/* ─── Topbar minimal pour landing/auth ─── */
.topbar { height: 56px; background: var(--ink); color: var(--bg2); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid #2A2724; }
.topbar .brand { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--bg2); }
.topbar .brand .dot { color: var(--accent); }
.topbar .brand-kicker { margin-left: 12px; font-family: var(--font-mono); font-size: 10px; color: #78716C; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.topbar .navlink { font-family: var(--font-heading); font-size: 13px; color: var(--bg2); padding: 7px 14px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-weight: 500; }
.topbar .navlink:hover { background: rgba(255,255,255,0.07); }
.topbar .navlink.primary { background: var(--accent); }
.topbar .navlink.primary:hover { background: var(--accent-dark); }

/* ─── Type helpers (mirroring proto.css) ─── */
.eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.h1 { font-family: var(--font-heading); font-size: 31px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--fg1); }
.h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0; }
.lead { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--fg2); margin: 0; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-body); }
.sg { font-family: var(--font-heading); }

/* ─── Buttons ─── */
.btn { font-family: var(--font-heading); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg1); color: var(--fg1); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bg2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.primary:disabled { background: var(--fg3); border-color: var(--fg3); cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg2); }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn.lg { padding: 13px 20px; font-size: 15px; }
.btn.full { width: 100%; }

/* ─── Inputs ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg2); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.field-hint { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); margin-top: 2px; }
.input { font-family: var(--font-body); font-size: 14px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg1); color: var(--fg1); width: 100%; outline: none; transition: border-color .12s; }
.input:focus { border-color: var(--accent); }
.input.invalid { border-color: var(--danger); }

/* ─── Auth split layout ─── */
.auth-split { display: grid; grid-template-columns: 1fr 580px; height: 100%; }
.auth-aside { background: var(--ink); color: var(--bg2); padding: 60px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside .brand-lg { font-family: var(--font-heading); font-weight: 700; font-size: 28px; letter-spacing: -0.015em; color: #fff; }
.auth-aside .brand-lg .dot { color: var(--accent); }
.auth-aside .pitch { display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.auth-aside .pitch h2 { font-family: var(--font-heading); font-size: 36px; line-height: 1.18; letter-spacing: -0.018em; color: #fff; font-weight: 700; margin: 0; }
.auth-aside .pitch p { font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: #D6D3D1; margin: 0; }
.auth-aside .quote { font-family: var(--font-body); font-style: italic; font-size: 16px; line-height: 1.55; color: #D6D3D1; border-left: 3px solid var(--accent); padding-left: 16px; }
.auth-aside .quote-attr { font-family: var(--font-mono); font-size: 10px; color: #A8A29E; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 10px; font-weight: 500; }
.auth-aside .footer-meta { font-family: var(--font-mono); font-size: 10px; color: #78716C; letter-spacing: 0.06em; }

.auth-form { padding: 56px 64px; background: var(--bg1); display: flex; flex-direction: column; overflow: auto; }
.auth-form-inner { max-width: 420px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 22px; }

/* ─── Step progress ─── */
.steps-progress { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.steps-progress .step-pill { display: flex; align-items: center; gap: 8px; }
.steps-progress .step-num { width: 22px; height: 22px; border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); color: var(--fg3); background: var(--bg1); }
.steps-progress .step-pill.done .step-num { background: var(--fg1); border-color: var(--fg1); color: #fff; }
.steps-progress .step-pill.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps-progress .step-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.steps-progress .step-pill.active .step-label { color: var(--fg1); }
.steps-progress .step-pill.done .step-label { color: var(--fg2); }
.steps-progress .step-sep { flex: 1; height: 1px; background: var(--border); }
.steps-progress .step-sep.done { background: var(--fg1); }

/* ─── Divider with label ─── */
.divider { display: flex; align-items: center; gap: 12px; color: var(--fg3); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin: 4px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Google btn ─── */
.btn.google { background: var(--bg1); border: 1px solid var(--border-strong); color: var(--fg1); }
.btn.google:hover { background: var(--bg2); border-color: var(--fg3); }
.btn.google svg { width: 18px; height: 18px; }

/* ─── Code input (6 digits) ─── */
.code-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-cell { font-family: var(--font-mono); font-size: 26px; font-weight: 700; text-align: center; padding: 12px 0; border: 1.5px solid var(--border-strong); border-radius: 8px; background: var(--bg1); color: var(--fg1); outline: none; transition: border-color .12s, background .12s; }
.code-cell:focus { border-color: var(--accent); }
.code-cell.filled { background: var(--bg2); border-color: var(--fg3); }

/* ─── Link button ─── */
.linkbtn { background: none; border: none; padding: 0; color: var(--accent); font-family: var(--font-heading); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkbtn:hover { color: var(--accent-dark); }
.linkbtn.muted { color: var(--fg2); text-decoration-color: var(--border-strong); }
.linkbtn.muted:hover { color: var(--fg1); }

/* ─── Landing ─── */
.landing { padding: 64px 80px 56px; height: 100%; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; }
.landing-inner { max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 44px; }

/* Hero v2 — pleine largeur, centré */
.landing-hero-v2 { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.landing-hero-v2 h1 { font-family: var(--font-heading); font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0; color: var(--fg1); }
.landing-hero-v2 h1 em { font-style: normal; color: var(--accent); }
.landing-hero-v2 p { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--fg2); margin: 0; max-width: 640px; }
.landing-hero-v2 .cta-row { display: flex; gap: 12px; align-items: center; }
.landing-hero-v2 .meta-line { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.lhd-left .meta-line { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); display: flex; align-items: center; gap: 14px; margin-top: 4px; }

/* Section title rule */
.landing-obj-head { display: flex; align-items: center; gap: 16px; }
.landing-obj-rule { flex: 1; height: 1px; background: var(--border); }

/* Trois cartes objectifs */
.landing-objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.landing-obj-card {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; padding: 24px;
  background: var(--bg1); border: 1px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.landing-obj-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.landing-obj-card .obj-card-top { display: flex; align-items: center; gap: 10px; }
.landing-obj-card .obj-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.landing-obj-card .obj-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.landing-obj-card .obj-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--fg1); margin-top: 4px; }
.landing-obj-card .obj-lead { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--fg2); }
.landing-obj-card .obj-bullets { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 7px; }
.landing-obj-card .obj-bullets li { position: relative; padding-left: 16px; font-size: 13px; color: var(--fg2); line-height: 1.45; }
.landing-obj-card .obj-bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.landing-obj-card .obj-card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.landing-obj-card .obj-metric { display: flex; flex-direction: column; gap: 2px; }
.landing-obj-card .obj-metric .v { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; line-height: 1; }
.landing-obj-card .obj-metric .u { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; }
.landing-obj-card .obj-cta-link { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--accent); }

/* Bandeau réassurance */
.landing-reassure {
  display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 24px;
  padding: 22px 28px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  align-items: center;
}
.landing-reassure .lr-item { display: flex; flex-direction: column; gap: 4px; }
.landing-reassure .lr-item .num { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--fg1); letter-spacing: -0.015em; line-height: 1; }
.landing-reassure .lr-item .lbl { font-family: var(--font-body); font-size: 12px; color: var(--fg2); line-height: 1.45; }
.landing-reassure .lr-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── Landing v3 — data-first ─── */
.landing-hero-data { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.lhd-left { display: flex; flex-direction: column; gap: 18px; }
.lhd-left h1 { font-family: var(--font-heading); font-size: 50px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0; color: var(--fg1); }
.lhd-left h1 em { font-style: normal; color: var(--accent); }
.lhd-left p { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--fg2); margin: 0; max-width: 560px; }

.lhd-counters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg1);
}
.lhd-counter { padding: 22px 22px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; background: var(--bg1); }
.lhd-counter:nth-child(2n) { border-right: none; }
.lhd-counter:nth-child(n+3) { border-bottom: none; }
.lhd-num { font-family: var(--font-heading); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg1); line-height: 1; font-variant-numeric: tabular-nums; }
.lhd-lbl { font-family: var(--font-body); font-size: 13px; color: var(--fg2); margin-top: 2px; }
.lhd-sub { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-top: 4px; }

/* Pipeline */
.landing-pipeline { display: flex; flex-direction: column; gap: 18px; }
.lp-head { display: flex; align-items: center; gap: 16px; }
.lp-steps { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: stretch; gap: 0; }
.lp-step { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.lp-step-num { font-size: 11px; color: var(--fg3); font-weight: 700; letter-spacing: 0.08em; }
.lp-step-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; }
.lp-step-desc { font-family: var(--font-body); font-size: 13px; color: var(--fg2); line-height: 1.5; }
.lp-step-stat { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--border); }
.lp-step-stat .v { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; line-height: 1; }
.lp-step-stat .u { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; }
.lp-arrow { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 18px; color: var(--fg3); font-weight: 400; }

/* Uses — secondaire */
.landing-uses-head { display: flex; flex-direction: column; gap: 6px; }
.lu-h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin: 0; color: var(--fg1); }
.lu-sub { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--fg2); margin: 0; max-width: 720px; }

.landing-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.landing-use-card {
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; padding: 22px;
  background: var(--bg1); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.landing-use-card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.lu-top { display: flex; align-items: center; gap: 10px; }
.lu-num { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.lu-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.lu-title { font-family: var(--font-heading); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg1); line-height: 1.2; }
.lu-lead { font-family: var(--font-body); font-size: 13px; line-height: 1.55; color: var(--fg2); }

.lu-sample { margin-top: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lu-sample-head { padding: 8px 12px; background: var(--bg3); border-bottom: 1px solid var(--border); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.lu-sample-body { display: flex; flex-direction: column; }
.lu-sample-row { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.lu-sample-row:last-child { border-bottom: none; }
.lu-sample-key { font-family: var(--font-body); font-size: 13px; color: var(--fg1); }
.lu-sample-val { font-size: 12px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Simplified version (used when constellation feeds into uses) */
.landing-use-card.simple { padding: 24px 22px 20px; gap: 8px; min-height: 160px; position: relative; }
.landing-use-card.simple::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px;
  opacity: 0; transition: opacity .25s, height .25s;
}
.landing-use-card.simple:hover::before { opacity: 1; height: 5px; }
.lu-cta { margin-top: auto; padding-top: 10px; font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; }
.lu-cta-arrow { display: inline-block; transition: transform .2s; }
.landing-use-card.simple:hover .lu-cta-arrow { transform: translateX(4px); }

/* Footer méta */
.landing-footnote {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--border); padding-top: 24px;
}
.lfn-item { display: flex; flex-direction: column; gap: 4px; padding-right: 24px; }
.lfn-k { font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.lfn-v { font-family: var(--font-body); font-size: 13px; color: var(--fg2); line-height: 1.5; }

/* ─── Hero v3 — titre serré sur 3 lignes ─── */
.landing-hero-data { grid-template-columns: 1fr; gap: 36px; }
.landing-hero-data.with-live { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 56px; align-items: start; }
.landing-hero-data.with-live .lhd-left h1 { font-size: 50px; }
.landing-hero-data.with-live .lhd-left { max-width: 720px; }
.lhd-left { max-width: 880px; }
.lhd-left h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.025em; }
.lhd-left h1 em { font-style: normal; color: var(--accent); }
.lhd-counters { grid-template-columns: repeat(4, 1fr); }
.lhd-counter:nth-child(2n) { border-right: 1px solid var(--border); }
.lhd-counter:nth-child(4n), .lhd-counter:last-child { border-right: none; }
.lhd-counter:nth-child(n+3) { border-bottom: 1px solid var(--border); }
.lhd-counter:nth-child(n+1) { border-bottom: none; }

/* Live counter widget */
.live-counter {
  margin-top: 8px;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
  justify-self: end;
}
.lc-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg3); }
.lc-tick {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  transition: box-shadow 0.32s ease-out, background 0.32s;
}
.lc-tick.on { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); background: #16a34a; }
.lc-live { font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.lc-sep { color: var(--border-strong); }
.lc-now { color: var(--fg3); font-size: 10.5px; letter-spacing: 0.02em; }
.lc-rows { display: flex; flex-direction: column; gap: 10px; }
.lc-row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.lc-row:last-child { border-bottom: none; padding-bottom: 0; }
.lc-num { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg1); line-height: 1.05; font-variant-numeric: tabular-nums; }
.lc-lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg3); letter-spacing: 0.02em; }

/* ─── Section eyebrow + variant switch ─── */
.lp-eyebrow { font-size: 11px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.lp-head { display: flex; align-items: center; gap: 16px; }
.luh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

.vswitch { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vswitch-label { font-size: 9px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.vswitch-segs { display: inline-flex; padding: 3px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; gap: 2px; }
.vswitch-seg { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: none; background: transparent; border-radius: 5px; cursor: pointer; font-family: var(--font-heading); font-size: 12px; font-weight: 500; color: var(--fg2); transition: background .12s, color .12s; }
.vswitch-seg:hover { color: var(--fg1); }
.vswitch-seg.active { background: var(--bg1); color: var(--fg1); box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-weight: 600; }
.vswitch-seg-key { font-size: 9px; padding: 1px 4px; border-radius: 3px; background: var(--border); color: var(--fg2); font-weight: 700; letter-spacing: 0.04em; }
.vswitch-seg.active .vswitch-seg-key { background: var(--accent); color: #fff; }

/* ─── Pipeline · Variante B (funnel) ─── */
.lp-funnel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 28px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; }
.lp-funnel-viz { display: flex; flex-direction: column; gap: 16px; }
.lpf-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lpf-bar { height: 56px; background: var(--bg1); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; position: relative; }
.lpf-fill { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 65%, transparent) 100%); }
.lpf-1 .lpf-fill { background: var(--ink); }
.lpf-2 .lpf-fill { background: color-mix(in oklab, var(--ink) 80%, var(--accent) 20%); }
.lpf-3 .lpf-fill { background: color-mix(in oklab, var(--ink) 40%, var(--accent) 60%); }
.lpf-4 .lpf-fill { background: var(--accent); }
.lpf-meta { display: grid; grid-template-columns: 140px 1fr auto; gap: 14px; align-items: baseline; padding: 0 4px; }
.lpf-step { font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.lpf-num { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--fg1); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lpf-u { font-size: 11px; color: var(--fg2); text-align: right; line-height: 1.4; }

.lp-funnel-side { background: var(--bg1); border: 1px solid var(--border); border-radius: 10px; padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.lpf-side-eyebrow { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.lpf-side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lpf-side-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.lpf-side-list li:last-child { border-bottom: none; }
.lpf-side-list .k { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--fg1); }
.lpf-side-list .v { font-family: var(--font-body); font-size: 13px; color: var(--fg2); line-height: 1.45; }

/* ─── Pipeline · Variante C (trace) ─── */
.lp-trace { background: var(--ink); border-radius: 12px; overflow: hidden; border: 1px solid #2A2724; }
.lp-trace-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #15110F; border-bottom: 1px solid #2A2724; }
.lp-trace-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-trace-head .dot.r { background: #F87171; } .lp-trace-head .dot.y { background: #FBBF24; } .lp-trace-head .dot.g { background: #34D399; }
.lp-trace-title { color: #D6D3D1; font-size: 11px; margin-left: 6px; }
.lp-trace-time { margin-left: auto; color: #78716C; font-size: 10px; }
.lp-trace-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.lp-trace-row { display: grid; grid-template-columns: 42px 1fr 140px; gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #2A2724; }
.lp-trace-row:last-child { border-bottom: none; }
.lp-trace-row .t { color: #78716C; font-size: 11px; font-weight: 600; }
.lp-trace-row.done .t { color: var(--accent); }
.lp-trace-call { color: #D6D3D1; font-size: 12px; line-height: 1.5; }
.lp-trace-call .fn { color: #FBBF24; }
.lp-trace-call .arg { color: #A8A29E; }
.lp-trace-call .ar { color: #78716C; margin: 0 4px; }
.lp-trace-out { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.lp-trace-num { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-trace-row.done .lp-trace-num { color: var(--accent); }
.lp-trace-u { font-size: 10px; color: #A8A29E; }
.lp-trace-bar { height: 4px; background: #2A2724; border-radius: 2px; overflow: hidden; }
.lp-trace-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), #FBBF24); }
.lp-trace-bar.ok > div { background: var(--accent); }

/* ─── Uses · Variante B (tabs + mini dashboard) ─── */
.landing-uses-tabs { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg1); }
.lut-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); background: var(--bg2); }
.lut-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px; border: none; border-right: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; transition: background .12s; position: relative; }
.lut-tab:last-child { border-right: none; }
.lut-tab:hover { background: var(--bg3); }
.lut-tab.active { background: var(--bg1); }
.lut-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.lut-tab-num { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.lut-tab.active .lut-tab-num { color: var(--accent); }
.lut-tab:not(.active) .lut-tab-num { color: var(--fg3); }
.lut-tab-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.lut-tab-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; line-height: 1.2; }

.lut-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; }
.lut-panel-left { padding: 28px 32px 28px 32px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--border); }
.lut-panel-lead { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--fg1); margin: 0; }
.lut-panel-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lut-panel-bullets li { position: relative; padding-left: 16px; font-family: var(--font-body); font-size: 13px; color: var(--fg2); line-height: 1.5; }
.lut-panel-bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lut-panel-metric { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; margin-top: 4px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.lut-panel-metric .v { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lut-panel-metric .u { font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.lut-panel-right { padding: 28px 32px; background: var(--bg3); display: flex; align-items: stretch; }
.lut-mini-dash { flex: 1; background: var(--bg1); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.lutmd-head { display: flex; align-items: baseline; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg2); font-size: 10px; color: var(--fg2); }
.lutmd-head .dim { color: var(--fg3); }
.lutmd-table { flex: 1; display: flex; flex-direction: column; }
.lutmd-thead { display: grid; grid-template-columns: 1fr 60px; padding: 8px 14px; font-size: 9px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; border-bottom: 1px dashed var(--border); }
.lutmd-thead .r { text-align: right; }
.lutmd-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lutmd-row:last-child { border-bottom: none; }
.lutmd-row .k { font-family: var(--font-body); font-size: 13px; color: var(--fg1); }
.lutmd-row .bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.lutmd-row .fill { height: 100%; background: var(--accent); }
.lutmd-row .v { font-size: 12px; color: var(--accent); font-weight: 600; text-align: right; }
.lutmd-foot { padding: 8px 14px; background: var(--bg2); border-top: 1px solid var(--border); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ─── Uses · Variante C (asymétrique) ─── */
.landing-uses-asym { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: stretch; }
.lua-hero { text-align: left; padding: 28px 30px; background: var(--ink); color: var(--bg2); border: 1px solid var(--ink); border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 14px; transition: transform .15s; font-family: var(--font-body); }
.lua-hero:hover { transform: translateY(-2px); }
.lua-hero-tag { display: flex; align-items: center; gap: 10px; }
.lua-hero-num { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.lua-hero-kicker { font-size: 11px; color: #A8A29E; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.lua-hero-spacer { flex: 1; }
.lua-hero-cta { font-family: var(--font-heading); font-size: 12px; color: var(--accent); font-weight: 600; }
.lua-hero-title { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.lua-hero-lead { font-family: var(--font-body); font-size: 15px; color: #D6D3D1; line-height: 1.55; max-width: 520px; }
.lua-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.lua-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.lua-bullets li { position: relative; padding-left: 16px; font-family: var(--font-body); font-size: 13px; color: #D6D3D1; line-height: 1.5; }
.lua-bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lua-metric { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; margin-top: 4px; border-top: 1px solid #2A2724; }
.lua-metric .v { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.lua-metric .u { font-family: var(--font-mono); font-size: 10px; color: #A8A29E; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.lua-table { background: rgba(255,255,255,0.04); border: 1px solid #2A2724; border-radius: 8px; overflow: hidden; }
.lua-table-head { padding: 8px 12px; background: rgba(255,255,255,0.03); border-bottom: 1px solid #2A2724; font-size: 10px; color: #A8A29E; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.lua-table-row { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #2A2724; }
.lua-table-row:last-child { border-bottom: none; }
.lua-table-row .k { font-family: var(--font-body); font-size: 13px; color: #E7E5E4; }
.lua-table-row .v { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }

.lua-side { display: flex; flex-direction: column; gap: 16px; }
.lua-mini { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--bg1); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; font-family: var(--font-body); }
.lua-mini:hover { border-color: var(--accent); transform: translateY(-2px); }
.lua-mini-top { display: flex; align-items: center; gap: 8px; }
.lua-mini-num { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.lua-mini-kicker { font-size: 10px; color: var(--fg2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.lua-mini-title { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; line-height: 1.2; }
.lua-mini-lead { font-family: var(--font-body); font-size: 13px; color: var(--fg2); line-height: 1.5; flex: 1; }
.lua-mini-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--border); }
.lua-mini-metric { font-size: 11px; color: var(--fg2); }
.lua-mini-metric b { color: var(--accent); font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-right: 6px; letter-spacing: -0.01em; }
.lua-mini-cta { font-family: var(--font-heading); font-size: 16px; color: var(--accent); font-weight: 600; }

/* ─── Espace perso ─── */
.app-shell { height: 100%; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 22px 16px; gap: 6px; }
.sidebar .brand-row { font-family: var(--font-heading); font-weight: 700; font-size: 18px; padding: 4px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.sidebar .brand-row .dot { color: var(--accent); }
.sidebar .nav-section-title { font-family: var(--font-mono); font-size: 9px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: 12px 10px 6px; }
.sidebar .nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-family: var(--font-heading); font-size: 13.5px; color: var(--fg2); border: none; background: transparent; text-align: left; cursor: pointer; font-weight: 500; transition: background .12s, color .12s; }
.sidebar .nav-item:hover { background: var(--bg3); color: var(--fg1); }
.sidebar .nav-item.active { background: var(--bg1); color: var(--fg1); font-weight: 600; box-shadow: var(--shadow-sm); }
.sidebar .nav-item .icon { width: 16px; height: 16px; color: currentColor; opacity: 0.75; }
.sidebar .user-card { margin-top: auto; padding: 12px; background: var(--bg1); border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; gap: 10px; }
.sidebar .user-card .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 13px; }
.sidebar .user-card .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sidebar .user-card .name { font-family: var(--font-heading); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user-card .mail { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.appcontent { overflow: auto; padding: 36px 48px 48px; background: var(--bg1); }
.appcontent .page-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.appcontent .page-head h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 6px; }
.appcontent .page-head p { font-family: var(--font-body); font-size: 14px; color: var(--fg2); margin: 0; max-width: 580px; }

/* Profile sections */
.profile-section { padding: 22px 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg1); margin-bottom: 18px; }
.profile-section h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.profile-grid.full { grid-template-columns: 1fr; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; margin-top: 18px; border-top: 1px dashed var(--border); }

/* Avatar block */
.avatar-block { display: flex; align-items: center; gap: 18px; }
.avatar-block .av-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 24px; flex-shrink: 0; }
.avatar-block .meta { flex: 1; }
.avatar-block .meta .n { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
.avatar-block .meta .e { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); margin-top: 2px; }
.avatar-block .meta .verified { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--success); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* Exports table */
.exports-table { background: var(--bg1); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.exports-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg2); }
.exports-toolbar .search { flex: 1; max-width: 320px; }
.exports-toolbar .filter-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg1); font-family: var(--font-heading); font-size: 12px; font-weight: 500; color: var(--fg2); cursor: pointer; }
.exports-toolbar .filter-chip.active { background: var(--fg1); color: var(--bg1); border-color: var(--fg1); }
.exports-toolbar .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg3); }

.exports-row { display: grid; grid-template-columns: 36px 1.6fr 88px 0.9fr 110px 130px; gap: 16px; padding: 14px 18px; align-items: center; border-bottom: 1px solid var(--border); transition: background .1s; }
.exports-row:last-child { border-bottom: none; }
.exports-row:hover { background: var(--bg2); }
.exports-row.head { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 9px 18px; }
.exports-row.head > div { font-family: var(--font-mono); font-size: 9px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.exports-row .ftype { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }
.exports-row .ftype.pdf { background: var(--accent-light); color: var(--accent-dark); }
.exports-row .ftype.csv { background: #E5E7EB; color: #4B5563; }
.exports-row .ftype.link { background: #DBEAFE; color: #1D4ED8; }
.exports-row .title { font-family: var(--font-heading); font-size: 14px; font-weight: 600; line-height: 1.3; }
.exports-row .subtitle { font-family: var(--font-body); font-size: 12px; color: var(--fg3); margin-top: 2px; line-height: 1.3; }
.exports-row .type-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; }
.exports-row .type-pdf { background: var(--accent-light); color: var(--accent-dark); }
.exports-row .type-csv { background: #F3F4F6; color: #374151; }
.exports-row .type-link { background: #DBEAFE; color: #1D4ED8; }
.exports-row .objective { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); }
.exports-row .objective .obj-tag { display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--bg2); border: 1px solid var(--border); margin-right: 4px; font-weight: 500; }
.exports-row .date { font-family: var(--font-mono); font-size: 11px; color: var(--fg2); }
.exports-row .actions { display: flex; gap: 4px; justify-content: flex-end; }
.exports-row .iconbtn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg1); color: var(--fg2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .12s; }
.exports-row .iconbtn:hover { background: var(--bg2); color: var(--fg1); border-color: var(--border-strong); }
.exports-row .iconbtn svg { width: 14px; height: 14px; }

/* Confirmation banner */
.banner { padding: 12px 16px; border-radius: 8px; font-family: var(--font-mono); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.banner.info { background: var(--bg2); color: var(--fg2); border: 1px solid var(--border); }
.banner.success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.banner.danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* Scrollbar subtle */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--fg3); }
