/* ==========================================================================
   Conticar — design system
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Jakarta", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --ink: #0b1020; --ink-2: #1e2538; --muted: #5d6579; --subtle: #8b92a5; --faint: #b8bdcb;
  --line: #e4e7ef; --line-2: #eef0f5; --bg: #f5f6fa; --surface: #ffffff; --surface-2: #fafbfd;

  --brand-50: #eff0ff; --brand-100: #e1e3ff; --brand-200: #c8cbff; --brand-300: #a5a8fb; --brand-400: #8184f6;
  --brand-500: #5b5cf0; --brand-600: #4b45e0; --brand-700: #3f37c2; --brand-800: #332d98;
  --violet-50: #f5f3ff; --violet-100: #ede9fe; --violet-500: #8b5cf6; --violet-700: #6d28d9;
  --mint-50: #ecfdf5; --mint-100: #d1fae5; --mint-200: #a7f3d0; --mint-500: #10b981; --mint-600: #059669; --mint-700: #047857;
  --amber-50: #fffbeb; --amber-100: #fef3c7; --amber-200: #fde68a; --amber-500: #f59e0b; --amber-600: #d97706; --amber-700: #b45309;
  --rose-50: #fff1f2; --rose-100: #ffe4e6; --rose-200: #fecdd3; --rose-500: #f43f5e; --rose-600: #e11d48; --rose-700: #be123c;
  --sky-50: #f0f9ff; --sky-100: #e0f2fe; --sky-500: #0ea5e9; --sky-700: #0369a1;

  --r-xs: 6px; --r-sm: 9px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px -10px rgba(15, 23, 42, .14), 0 2px 6px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28), 0 8px 20px -8px rgba(15, 23, 42, .10);
  --ring: 0 0 0 4px rgba(91, 92, 240, .18);
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--muted); } .subtle { color: var(--subtle); } .ink { color: var(--ink); }
.small { font-size: 13px; } .xsmall { font-size: 12px; } .large { font-size: 17px; }
.bold { font-weight: 600; } .strong { font-weight: 700; color: var(--ink); }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mint { color: var(--mint-600); } .t-rose { color: var(--rose-600); } .t-amber { color: var(--amber-700); } .t-brand { color: var(--brand-600); }
.strike { text-decoration: line-through; text-decoration-color: rgba(225, 29, 72, .6); text-decoration-thickness: 1.5px; color: var(--subtle); }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.only-mobile { display: none !important; }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--surface); --btn-fg: var(--ink-2); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  font: 600 14px/1 var(--font); letter-spacing: -0.005em; color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 10px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s; box-shadow: var(--shadow-xs); }
.btn:hover { --btn-bg: var(--surface-2); --btn-bd: #d6dae5; color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: var(--brand-600);
  background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)); box-shadow: 0 1px 2px rgba(63,55,194,.3), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); color: #fff; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-dark:hover { --btn-bg: #1b2236; --btn-bd: #1b2236; color: #fff; }
.btn-success { --btn-bg: var(--mint-600); --btn-fg: #fff; --btn-bd: var(--mint-600); }
.btn-success:hover { --btn-bg: var(--mint-700); --btn-bd: var(--mint-700); color: #fff; }
.btn-danger { --btn-fg: var(--rose-600); }
.btn-danger:hover { --btn-bg: var(--rose-50); --btn-bd: var(--rose-200); color: var(--rose-700); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; box-shadow: none; --btn-fg: var(--muted); }
.btn-ghost:hover { --btn-bg: var(--line-2); --btn-bd: transparent; color: var(--ink); }
.btn-soft { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); --btn-bd: var(--brand-100); box-shadow: none; }
.btn-soft:hover { --btn-bg: var(--brand-100); --btn-bd: var(--brand-200); color: var(--brand-800); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-xl { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-glass { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(6px); }
.btn-glass:hover { --btn-bg: rgba(255,255,255,.14); --btn-bd: rgba(255,255,255,.3); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; position: relative; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-600); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--brand-700); text-decoration: underline; }
.link-muted { color: var(--muted); font-weight: 500; }
.link-muted:hover { color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label .opt { font-weight: 500; color: var(--subtle); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 13px; font: 500 14.5px/1.3 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid #dadee8; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-xs); appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--faint); font-weight: 400; }
.input:hover, .select:hover, .textarea:hover { border-color: #c9cedb; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.textarea { height: auto; min-height: 96px; padding: 11px 13px; line-height: 1.5; resize: vertical; }
.select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b92a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.input-sm, .select-sm { height: 34px; font-size: 13.5px; border-radius: 8px; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--rose-500); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 42px; }
.input-group .suffix { position: absolute; right: 13px; color: var(--subtle); font-weight: 600; font-size: 13.5px; pointer-events: none; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.hint { font-size: 12.5px; color: var(--subtle); }
.error-text { font-size: 12.5px; color: var(--rose-600); font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid #c7ccd8; border-radius: 5px;
  background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.check input:checked { background: var(--brand-600); border-color: var(--brand-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat; }
.check input:focus-visible { box-shadow: var(--ring); outline: none; }
.check a { font-weight: 600; }
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field + .field { margin-top: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* Segmented control (verdicts) */
.segmented { display: inline-flex; padding: 3px; gap: 3px; background: var(--line-2); border-radius: 11px; border: 1px solid var(--line); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px;
  font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; user-select: none; white-space: nowrap; }
.segmented label:hover { color: var(--ink); }
.segmented input:focus-visible + label { box-shadow: var(--ring); }
.segmented input:checked + label { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input[value="justifie"]:checked + label { color: var(--mint-700); }
.segmented input[value="a_reduire"]:checked + label { color: var(--amber-700); }
.segmented input[value="contestable"]:checked + label { color: var(--rose-600); }
.segmented .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head .sub { font-size: 13px; color: var(--subtle); margin-top: 2px; }
.card-body { padding: 20px 24px; }
.card-foot { padding: 14px 24px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 16px; }
.card-muted { background: var(--surface-2); }
.card-hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-hover:hover { border-color: #d5d9e4; box-shadow: var(--shadow); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 32px 0 14px; }
.section-title h2 { margin: 0; font-size: 18px; }
.section-title .sub { color: var(--subtle); font-size: 13.5px; }

/* ---------- Pills & chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--muted); border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.no-dot::before { display: none; }
.pill-gray { background: #f0f1f5; color: #5d6579; border-color: #e6e8ef; }
.pill-sky { background: var(--sky-50); color: var(--sky-700); border-color: var(--sky-100); }
.pill-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.pill-violet { background: var(--violet-50); color: var(--violet-700); border-color: var(--violet-100); }
.pill-amber { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-100); }
.pill-mint { background: var(--mint-50); color: var(--mint-700); border-color: var(--mint-100); }
.pill-rose { background: var(--rose-50); color: var(--rose-700); border-color: var(--rose-100); }
.pill-lg { height: 30px; padding: 0 12px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; font-size: 11px;
  background: var(--line-2); color: var(--muted); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--brand-600); color: #fff; }
.badge-soft { background: var(--line-2); color: var(--muted); }
.badge-amber { background: var(--amber-500); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: var(--line-2); color: var(--muted); }
.tag-best { background: var(--mint-500); color: #fff; }

/* Plaque d'immatriculation */
.plate { display: inline-flex; align-items: stretch; height: 30px; border-radius: 6px; overflow: hidden; border: 1.5px solid #1c2233;
  background: #fff; font: 700 14px/1 var(--font-mono); letter-spacing: .06em; color: #111; box-shadow: var(--shadow-xs); white-space: nowrap; }
.plate .eu { display: grid; place-items: end center; width: 18px; background: #1f4fc4; color: #fff; font: 700 9px/1 var(--font); padding-bottom: 4px; letter-spacing: 0; }
.plate .num { display: grid; place-items: center; padding: 0 9px; }
.plate-sm { height: 24px; font-size: 12px; } .plate-sm .eu { width: 14px; font-size: 8px; padding-bottom: 3px; } .plate-sm .num { padding: 0 7px; }

/* Avatar */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 12.5px; font-weight: 700;
  color: var(--brand-700); background: linear-gradient(135deg, var(--brand-100), var(--violet-100)); }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.avatar-expert { color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--violet-500)); }

/* ---------- Alerts / callouts ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.callout .icon { margin-top: 2px; }
.callout-info { background: var(--sky-50); border-color: var(--sky-100); color: #0c4a6e; }
.callout-info .icon { color: var(--sky-500); }
.callout-warn { background: var(--amber-50); border-color: var(--amber-100); color: #78350f; }
.callout-warn .icon { color: var(--amber-500); }
.callout-danger { background: var(--rose-50); border-color: var(--rose-100); color: #881337; }
.callout-danger .icon { color: var(--rose-500); }
.callout-success { background: var(--mint-50); border-color: var(--mint-100); color: #064e3b; }
.callout-success .icon { color: var(--mint-500); }
.callout-brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.callout-brand .icon { color: var(--brand-500); }
.callout strong { color: inherit; }
.callout p:last-child { margin-bottom: 0; }

/* Toasts */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #e8eaf2; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast .icon { margin-top: 2px; }
.toast-success .icon { color: #34d399; } .toast-error .icon { color: #fb7185; } .toast-info .icon { color: #7dd3fc; } .toast-warning .icon { color: #fbbf24; }
.toast .grow { line-height: 1.45; }
.toast button { background: none; border: 0; color: #8b92a5; cursor: pointer; padding: 2px; border-radius: 6px; }
.toast button:hover { color: #fff; }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table-hover tbody tr:hover { background: #fafbff; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; color: var(--ink); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 0; }
.table-compact td { padding: 10px 14px; }
.table-compact th { padding: 8px 14px; }
.row-link { cursor: pointer; }
.row-link td:first-child { position: relative; }
.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12.5px; color: var(--subtle); margin-top: 2px; }

/* ==========================================================================
   Public site
   ========================================================================== */
.site-nav { position: sticky; top: 0; z-index: 40; transition: background .2s, box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-nav .container { display: flex; align-items: center; height: 72px; gap: 28px; }
.site-nav.is-dark { background: rgba(9, 12, 26, .72); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255,255,255,.06); }
.site-nav.is-light { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.is-dark .nav-links a { color: #b9bfd3; }
.is-dark .nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.is-dark .link-muted { color: #c9cee0; } .is-dark .link-muted:hover { color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 19px/1 var(--font-display); letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; filter: drop-shadow(0 4px 10px rgba(91, 92, 240, .35)); }
.is-dark .brand, .brand-light { color: #fff; }
.is-dark .brand:hover { color: #fff; }

/* Hero */
.hero { position: relative; margin-top: -73px; padding: 150px 0 110px; color: #c9cee0; background: #080b18; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 500px at 78% 18%, rgba(91, 92, 240, .40), transparent 60%),
              radial-gradient(700px 480px at 12% 90%, rgba(139, 92, 246, .22), transparent 60%),
              radial-gradient(520px 320px at 60% 110%, rgba(16, 185, 129, .16), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #dfe2ff; background: rgba(91, 92, 240, .16); border: 1px solid rgba(129, 132, 246, .35); }
.eyebrow-pill .icon { color: #a5a8fb; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 20px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(92deg, #a5a8fb 0%, #c4b5fd 45%, #6ee7b7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; line-height: 1.6; color: #b4bbd0; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; color: #aab1c7; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .icon { color: #6ee7b7; }

/* Mock (hero visual) */
.hero-visual { position: relative; }
.mock { position: relative; background: rgba(255,255,255,.98); color: var(--ink-2); border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transform-origin: left center; }
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.mock-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.mock-title { font: 700 17px/1.3 var(--font-display); color: var(--ink); margin-top: 3px; }
.mock-lines { list-style: none; margin: 6px 0 0; padding: 0; }
.mock-lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 2px; border-bottom: 1px dashed var(--line); align-items: center; }
.mock-lines li:last-child { border-bottom: 0; }
.mock-loc { font-weight: 600; font-size: 14px; color: var(--ink); }
.mock-why { grid-column: 1; font-size: 12.5px; color: var(--subtle); }
.mock-amt { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.mock-amt .pill { margin-top: 6px; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.mock-foot span { display: block; font-size: 12px; color: var(--subtle); }
.mock-foot strong { font: 800 20px/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-foot .arrow { color: var(--faint); }
.mock-badge { position: absolute; right: -18px; bottom: -22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--mint-500); color: #fff; font: 700 15px/1 var(--font-display); box-shadow: 0 18px 40px -12px rgba(16,185,129,.7); transform: rotate(-2deg); }
.mock-float { position: absolute; left: -44px; top: -50px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; color: var(--ink); transform: rotate(-3deg); max-width: 250px; line-height: 1.35; }
.mock-float .ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--rose-50); color: var(--rose-600); flex: none; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; margin: 12px 0 14px; font-weight: 800; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }

.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; padding: 28px 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .icon { color: var(--brand-500); }

.feature-card { padding: 26px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8dcea; }
.feature-card h3 { font-size: 17px; margin: 16px 0 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feature-card .example { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.ficon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; }
.ficon-brand { background: var(--brand-50); color: var(--brand-600); }
.ficon-rose { background: var(--rose-50); color: var(--rose-600); }
.ficon-amber { background: var(--amber-50); color: var(--amber-600); }
.ficon-mint { background: var(--mint-50); color: var(--mint-600); }
.ficon-violet { background: var(--violet-50); color: var(--violet-700); }
.ficon-sky { background: var(--sky-50); color: var(--sky-700); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 24px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font: 800 15px/1 var(--font-display); color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--violet-500)); box-shadow: 0 8px 18px -8px rgba(91,92,240,.7); }
.step h3 { margin: 16px 0 6px; font-size: 16.5px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.step .price-tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 700; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-2xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.price-card.featured { border-color: var(--brand-300); box-shadow: 0 0 0 4px var(--brand-50), var(--shadow); }
.price-card .ribbon { position: absolute; top: -12px; left: 28px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand-600); }
.price-card h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 12px; font-family: var(--font); letter-spacing: 0; }
.price { font: 800 44px/1 var(--font-display); color: var(--ink); letter-spacing: -0.04em; }
.price small { font-size: 15px; font-weight: 600; color: var(--subtle); letter-spacing: 0; margin-left: 4px; }
.price-desc { color: var(--muted); font-size: 14.5px; margin: 12px 0 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; font-size: 14px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list .icon { color: var(--mint-500); margin-top: 2px; }
.price-card .when { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--subtle); }

.simulator { margin-top: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; padding: 28px; border-radius: var(--r-2xl); background: var(--ink); color: #c9cee0; position: relative; overflow: hidden; }
.simulator::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(91, 92, 240, .35), transparent 60%); pointer-events: none; }
.simulator > * { position: relative; }
.simulator h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.sim-row { margin-top: 22px; }
.sim-row label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: #b4bbd0; margin-bottom: 10px; }
.sim-row output { font: 700 16px/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.range { width: 100%; appearance: none; height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--brand-500); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--brand-500); }
.range:focus-visible { box-shadow: 0 0 0 4px rgba(129,132,246,.35); }
.sim-savings { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.sim-savings strong { font: 800 24px/1 var(--font-display); color: #6ee7b7; font-variant-numeric: tabular-nums; }
.sim-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.sim-card { position: relative; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all .2s; }
.sim-card.is-best { background: #fff; color: var(--ink-2); border-color: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); }
.sim-name { font: 700 16px/1.2 var(--font-display); color: #fff; }
.sim-card.is-best .sim-name { color: var(--ink); }
.sim-sub { font-size: 12.5px; color: #8e96ad; margin-top: 4px; }
.sim-card.is-best .sim-sub { color: var(--subtle); }
.sim-line { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13.5px; }
.sim-line strong { font-variant-numeric: tabular-nums; color: #fff; }
.sim-card.is-best .sim-line strong { color: var(--ink); }
.sim-net { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.sim-card.is-best .sim-net { border-top-color: var(--line); }
.sim-net span { font-size: 12.5px; color: #8e96ad; display: block; }
.sim-net strong { font: 800 26px/1.15 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.sim-card.is-best .sim-net strong { color: var(--mint-600); }
.sim-best { position: absolute; top: -11px; right: 14px; display: none; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: var(--mint-500); color: #fff; }
.sim-card.is-best .sim-best { display: inline-block; }
.sim-note { grid-column: 1 / -1; font-size: 12.5px; color: #8e96ad; margin: 0; }

/* Why us */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; }
.checklist .ci { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--mint-50); color: var(--mint-600); }
.checklist strong { display: block; color: var(--ink); font-size: 15px; }
.checklist span { color: var(--muted); font-size: 14px; }
.stat-panel { padding: 32px; border-radius: var(--r-2xl); background: linear-gradient(160deg, #fff, var(--brand-50)); border: 1px solid var(--brand-100); }
.stat-panel .quote { font: 600 19px/1.5 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.stat-panel .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #d9ddea; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--subtle); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--muted); margin: -4px 0 20px; font-size: 14.5px; }

/* CTA band + footer */
.cta-band { position: relative; overflow: hidden; padding: 56px; border-radius: 28px; background: linear-gradient(120deg, #4b45e0, #7c4ded 55%, #8b5cf6); color: #e9e7ff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: 0 30px 60px -24px rgba(75, 69, 224, .6); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; letter-spacing: -0.03em; }
.cta-band p { margin: 0; font-size: 16px; opacity: .9; }
.cta-band .btn { position: relative; z-index: 1; }
.footer { padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin-bottom: 12px; font-family: var(--font); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); } .footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--subtle); }

.legal-page { padding: 56px 0 80px; }
.legal-page .card { padding: 40px; }
.legal-page h1 { font-size: 32px; }
.legal-page h2 { font-size: 19px; margin-top: 28px; }
.legal-page p, .legal-page li { color: var(--muted); }
.placeholder { background: var(--amber-50); border-bottom: 1px dashed var(--amber-500); color: var(--amber-700); padding: 0 3px; border-radius: 3px; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; color: #c9cee0; background: #080b18; isolation: isolate; }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 400px at 20% 10%, rgba(91, 92, 240, .45), transparent 60%), radial-gradient(500px 400px at 90% 90%, rgba(139, 92, 246, .3), transparent 60%); }
.auth-aside h2 { color: #fff; font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; margin: auto 0 18px; max-width: 460px; font-weight: 800; }
.auth-aside .lead { color: #aab1c7; font-size: 16px; max-width: 440px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.auth-points .ci { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(110, 231, 183, .12); color: #6ee7b7; flex: none; }
.auth-aside .foot { margin-top: auto; padding-top: 40px; font-size: 13px; color: #6f7790; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 28px; }
.auth-box .alt { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.demo-box { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.demo-box code { color: var(--ink); }

/* ==========================================================================
   Application shell
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, #fff calc(var(--sidebar-w) - 1px), var(--line) calc(var(--sidebar-w) - 1px), var(--line) var(--sidebar-w), var(--bg) var(--sidebar-w)); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); z-index: 30; }
.sidebar .brand { padding: 4px 10px 22px; }
.nav-section { margin-top: 18px; padding: 0 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nav { display: grid; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: background .12s, color .12s; }
.nav-link:hover { background: var(--line-2); color: var(--ink); }
.nav-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav-link.active .icon { color: var(--brand-600); }
.nav-link .badge { margin-left: auto; }
.nav-cta { margin: 6px 0 4px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.user-card .name { font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.user-card .role { font-size: 12px; color: var(--subtle); }
.help-card { margin: 0 0 14px; padding: 14px; border-radius: 14px; background: linear-gradient(150deg, var(--brand-50), var(--violet-50)); border: 1px solid var(--brand-100); font-size: 13px; color: var(--muted); }
.help-card strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 4px; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: rgba(245, 246, 250, .85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--subtle); min-width: 0; }
.crumbs a { color: var(--muted); font-weight: 500; } .crumbs a:hover { color: var(--ink); }
.crumbs .current { color: var(--ink); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.page { padding: 8px 32px 64px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 8px 0 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.backdrop { display: none; }

/* Notifications dropdown */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; animation: pop .16s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.dropdown-head strong { font-size: 14px; color: var(--ink); }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); color: var(--ink); }
.notif .dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand-500); }
.notif.read .dot { background: transparent; }
.notif.read { color: var(--muted); }
.notif time { display: block; font-size: 12px; color: var(--subtle); margin-top: 3px; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--subtle); font-size: 13.5px; }
.bell-dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--rose-500); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.kpi-label .ki { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--line-2); color: var(--muted); }
.kpi-value { margin-top: 12px; font: 700 26px/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-hint { margin-top: 6px; font-size: 12.5px; color: var(--subtle); }
.kpi-mint .ki { background: var(--mint-50); color: var(--mint-600); }
.kpi-brand .ki { background: var(--brand-50); color: var(--brand-600); }
.kpi-amber .ki { background: var(--amber-50); color: var(--amber-600); }
.kpi-violet .ki { background: var(--violet-50); color: var(--violet-700); }
.kpi-sky .ki { background: var(--sky-50); color: var(--sky-700); }
.kpi-hero { background: linear-gradient(150deg, #0b1020, #1c1f4a); border-color: transparent; color: #b8bed3; }
.kpi-hero .kpi-label { color: #aab1c7; }
.kpi-hero .ki { background: rgba(110, 231, 183, .14); color: #6ee7b7; }
.kpi-hero .kpi-value { color: #fff; }
.kpi-hero .kpi-hint { color: #8e96ad; }
.kpi-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(91,92,240,.45), transparent 70%); }

/* ---------- Meters & segmented bars ---------- */
.meter { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--brand-500); }
.meter-amber { background: var(--amber-100); } .meter-amber > span { background: var(--amber-500); }
.meter-rose { background: var(--rose-100); } .meter-rose > span { background: var(--rose-500); }
.meter-mint { background: var(--mint-100); } .meter-mint > span { background: var(--mint-500); }
.segbar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.segbar > span { display: block; height: 100%; min-width: 0; }
.seg-kept { background: var(--mint-500); } .seg-reduced { background: var(--amber-500); } .seg-contested { background: var(--rose-500); } .seg-pending { background: #cfd4df; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Dossier list ---------- */
.dossier-list { display: grid; }
.dossier-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 150px 20px; align-items: center; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); transition: background .12s; }
.dossier-row:last-child { border-bottom: 0; }
.dossier-row:hover { background: #fafbff; color: var(--ink-2); }
.dossier-row .vehicle { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vehicle-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--line-2); color: var(--muted); }
.dossier-row .title { font-weight: 600; color: var(--ink); }
.dossier-row .meta { font-size: 12.5px; color: var(--subtle); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dossier-row .amount { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.dossier-row .amount small { display: block; font-size: 12px; font-weight: 500; color: var(--subtle); }
.dossier-row .chev { color: var(--faint); }
.dossier-row .when { display: block; margin-top: 5px; font-size: 12px; color: var(--subtle); }
.list-head { display: grid; grid-template-columns: minmax(0, 1fr) 190px 150px 20px; gap: 16px; padding: 10px 22px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle); background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.list-head .r { text-align: right; }

.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs-pill { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs-pill a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tabs-pill a:hover { color: var(--ink); background: var(--line-2); }
.tabs-pill a.active { background: var(--ink); color: #fff; }
.tabs-pill a.active .count { background: rgba(255,255,255,.18); color: #fff; }
.tabs-pill .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; background: var(--line-2); color: var(--muted); }
.search { position: relative; min-width: 260px; flex: 1; max-width: 360px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search .input { padding-left: 38px; height: 42px; }

/* Empty state */
.empty { text-align: center; padding: 56px 24px; }
.empty .ei { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; }

/* Action items */
.action-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.action-item:hover { border-color: var(--amber-200); box-shadow: var(--shadow); }
.action-item .ai { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--amber-50); color: var(--amber-600); }
.action-item .grow strong { display: block; color: var(--ink); font-size: 14.5px; }
.action-item .grow span { font-size: 13px; color: var(--muted); }

/* ---------- Dropzone ---------- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 48px 24px; border-radius: 22px; border: 2px dashed #cdd2f5; background: linear-gradient(180deg, #fbfbff, #f5f6ff); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-400); background: linear-gradient(180deg, #f7f7ff, #eef0ff); }
.dropzone.is-over { transform: scale(1.01); }
.dropzone .dz-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--brand-600); box-shadow: var(--shadow); margin-bottom: 6px; }
.dropzone h3 { font-size: 19px; margin: 0; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }
.dropzone .formats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-files { border-style: solid; border-color: var(--mint-200); background: linear-gradient(180deg, #fbfffd, #f1fcf7); }
.dz-files { display: grid; gap: 8px; margin-top: 16px; }
.dz-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.dz-file .fi { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); }
.dz-file.ok .fi { background: var(--mint-50); color: var(--mint-600); }
.dz-file.warn .fi { background: var(--amber-50); color: var(--amber-600); }
.progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: 16px; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-500), var(--violet-500)); transition: width .2s; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.howto div { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.howto b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; margin-bottom: 8px; }
.howto kbd { font-family: var(--font-mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: var(--line-2); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Dossier page ---------- */
.dossier-head { padding: 24px 26px 0; }
.dossier-head .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dossier-head h1 { font-size: 26px; margin: 10px 0 6px; letter-spacing: -0.03em; }
.dossier-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.dossier-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.dossier-head .meta .icon { color: var(--subtle); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; border-top: 1px solid var(--line-2); }
.figure { padding: 18px 0 18px; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line-2); }
.figure .fl { font-size: 12.5px; color: var(--subtle); font-weight: 500; }
.figure .fv { font: 700 24px/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.figure .fs { font-size: 12.5px; color: var(--subtle); margin-top: 2px; }
.figure.good .fv { color: var(--mint-600); }

.stepper { display: flex; gap: 0; padding: 16px 0 22px; border-top: 1px solid var(--line-2); }
.step-item { flex: 1; position: relative; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--subtle); }
.step-item .bar { height: 4px; border-radius: 999px; background: var(--line-2); margin-right: 6px; overflow: hidden; }
.step-item.done .bar { background: var(--mint-500); }
.step-item.current .bar { background: linear-gradient(90deg, var(--brand-500) 50%, var(--line-2) 50%); }
.step-item.done { color: var(--mint-700); }
.step-item.current { color: var(--brand-700); }
.step-item .lbl { display: flex; align-items: center; gap: 6px; }

.action-panel { margin-top: 20px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.action-panel .ap-head { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.action-panel .ap-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); }
.action-panel h2 { font-size: 18px; margin: 0 0 4px; }
.action-panel .ap-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.action-panel.tone-amber { border-color: var(--amber-200); box-shadow: 0 0 0 4px var(--amber-50), var(--shadow-sm); }
.action-panel.tone-amber .ap-icon { background: var(--amber-50); color: var(--amber-600); }
.action-panel.tone-mint .ap-icon { background: var(--mint-50); color: var(--mint-600); }
.action-panel.tone-violet .ap-icon { background: var(--violet-50); color: var(--violet-700); }
.action-panel .ap-body { padding: 0 24px 24px; }

.expert-quote { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.expert-quote .who { font-size: 12.5px; color: var(--subtle); margin-bottom: 4px; }
.expert-quote .who strong { color: var(--ink); }
.expert-quote p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.formula-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.formula { position: relative; display: block; padding: 18px 18px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.formula:hover { border-color: #cfd4e2; }
.formula input { position: absolute; opacity: 0; pointer-events: none; }
.formula .fh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.formula .fname { font: 700 16px/1.2 var(--font-display); color: var(--ink); display: flex; align-items: center; gap: 10px; }
.formula .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c7ccd8; display: grid; place-items: center; flex: none; transition: all .15s; }
.formula .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.formula.is-checked { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.formula.is-checked .radio { border-color: var(--brand-600); background: var(--brand-600); }
.formula.is-checked .radio::after { transform: scale(1); }
.formula .fprice { margin-top: 12px; font: 800 26px/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.formula .fprice small { font-size: 13px; color: var(--subtle); font-weight: 600; letter-spacing: 0; }
.formula .fdesc { margin-top: 6px; font-size: 13px; color: var(--muted); }
.formula .fnet { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.formula .fnet strong { font: 700 17px/1 var(--font-display); color: var(--mint-600); font-variant-numeric: tabular-nums; }
.formula .tag-best { position: absolute; top: -10px; right: 14px; }
.decision-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin: 28px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: 0; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand-700); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand-600); }
.tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; background: var(--line-2); color: var(--muted); }
.tab-panel:focus { outline: none; }

/* Lines (analysis) */
.line-row td { vertical-align: top; }
.line-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.line-title { font-weight: 600; color: var(--ink); }
.line-sub { font-size: 12.5px; color: var(--subtle); margin-top: 2px; }
.line-why { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.line-why .icon { color: var(--subtle); margin-top: 2px; }

/* Teaser */
.teaser { position: relative; overflow: hidden; }
.teaser-big { font: 800 40px/1 var(--font-display); color: var(--ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.teaser-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.teaser-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.teaser-list .blur { flex: 1; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #dfe3ec, #eef0f5); filter: blur(1.5px); }
.teaser-list .blur.short { max-width: 40%; }
.lock-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Order card */
.order-card { position: sticky; top: 84px; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 16px 0; }
.order-total .p { font: 800 30px/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.order-total .p small { font-size: 13px; color: var(--subtle); font-weight: 600; letter-spacing: 0; }
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.included li { display: flex; gap: 10px; align-items: flex-start; }
.included .icon { color: var(--mint-500); margin-top: 3px; }

/* Vehicle facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.fact { background: #fff; padding: 14px 16px; }
.fact .fl { font-size: 12px; color: var(--subtle); display: flex; align-items: center; gap: 6px; }
.fact .fv { margin-top: 4px; font-weight: 600; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }

/* Tires (meter list) */
.tires { display: grid; gap: 12px; }
.tire { display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px; align-items: center; gap: 14px; font-size: 13.5px; }
.tire .pos { font-weight: 700; color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.tire .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.tire .val small { display: block; font-size: 11.5px; font-weight: 500; color: var(--subtle); }

/* Photos */
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb { position: relative; width: 56px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); cursor: zoom-in; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-broken, .photo.is-broken { display: grid; place-items: center; cursor: default; }
.thumb.is-broken img, .photo.is-broken img { display: none; }
.thumb.is-broken::after { content: ""; width: 16px; height: 16px; opacity: .35; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center/contain no-repeat; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); cursor: zoom-in; padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption, .photo .cap { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(11, 16, 32, .65); backdrop-filter: blur(4px); }
.photo.is-broken::before { content: "Photo non fournie"; font-size: 12px; color: var(--subtle); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 11, 24, .9); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.2); }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close { right: 16px; top: 16px; }
.lightbox .lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c9cee0; font-size: 13.5px; }

.original-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

/* Messages */
.thread { display: grid; gap: 14px; padding: 6px 0 8px; }
.msg { display: flex; gap: 12px; max-width: 82%; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.bubble { padding: 12px 15px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.msg.mine .bubble { background: var(--brand-600); border-color: var(--brand-600); color: #fff; border-bottom-right-radius: 6px; }
.msg:not(.mine) .bubble { border-bottom-left-radius: 6px; }
.msg.internal .bubble { background: var(--amber-50); border-color: var(--amber-200); color: #78350f; }
.msg .by { font-size: 12px; color: var(--subtle); margin-bottom: 4px; }
.msg.mine .by { text-align: right; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.composer .textarea { border: 0; box-shadow: none; min-height: 44px; padding: 10px 6px; resize: none; }
.composer .textarea:focus { box-shadow: none; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; display: flex; gap: 16px; padding: 8px 0 14px; }
.tl-dot { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.tl-item.k-paiement .tl-dot { border-color: var(--mint-200); color: var(--mint-600); }
.tl-item.k-etude .tl-dot { border-color: var(--brand-200); color: var(--brand-600); }
.tl-item.k-resultat .tl-dot, .tl-item.k-cloture .tl-dot { border-color: var(--mint-200); color: var(--mint-600); background: var(--mint-50); }
.tl-item.k-envoi .tl-dot, .tl-item.k-formule .tl-dot { border-color: var(--violet-100); color: var(--violet-700); }
.tl-body { padding-top: 5px; }
.tl-body strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.tl-body time { font-size: 12.5px; color: var(--subtle); }

/* Documents */
.doc-list { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.doc .di { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); }
.doc .name { font-weight: 600; color: var(--ink); font-size: 14px; }
.doc .meta { font-size: 12.5px; color: var(--subtle); }

/* ==========================================================================
   Expert workspace
   ========================================================================== */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.summary-card { position: sticky; top: 84px; }
.summary-rows { display: grid; gap: 10px; font-size: 14px; }
.summary-rows .r { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows .r span { color: var(--muted); }
.summary-rows .r strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.summary-big { margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--mint-50); border: 1px solid var(--mint-100); }
.summary-big span { font-size: 12.5px; color: var(--mint-700); font-weight: 600; }
.summary-big strong { display: block; font: 800 28px/1.1 var(--font-display); color: var(--mint-700); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fee-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fee-compare div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; color: var(--subtle); }
.fee-compare strong { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.fee-compare .is-best { border-color: var(--mint-200); background: var(--mint-50); }

.analysis-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #0b1020, #1d2150); color: #c9cee0; margin-bottom: 16px; }
.analysis-bar .ab-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(129,132,246,.2); color: #c7cbff; flex: none; }
.analysis-bar strong { color: #fff; }
.analysis-bar .grow span { font-size: 13px; color: #9aa2ba; }
.analysis-bar .btn { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.16); box-shadow: none; }
.analysis-bar .btn:hover { --btn-bg: rgba(255,255,255,.16); }

.line-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.line-card + .line-card { margin-top: 12px; }
.line-card.v-justifie { border-left: 4px solid var(--mint-500); }
.line-card.v-a_reduire { border-left: 4px solid var(--amber-500); }
.line-card.v-contestable { border-left: 4px solid var(--rose-500); }
.line-card.v-a_etudier { border-left: 4px solid #cfd4df; }
.lc-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px 12px; }
.lc-head .grow .t { font-weight: 600; color: var(--ink); font-size: 15px; }
.lc-head .grow .s { font-size: 13px; color: var(--subtle); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.lc-amount { text-align: right; font: 700 17px/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-amount small { display: block; font: 500 12px/1.4 var(--font); color: var(--subtle); }
.lc-flags { padding: 0 18px 4px; display: grid; gap: 8px; }
.flag { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.flag .icon { margin-top: 2px; }
.flag strong { color: inherit; }
.flag p { margin: 2px 0 0; }
.flag-alerte { background: var(--rose-50); color: #881337; } .flag-alerte .icon { color: var(--rose-500); }
.flag-attention { background: var(--amber-50); color: #78350f; } .flag-attention .icon { color: var(--amber-500); }
.flag-info { background: var(--sky-50); color: #0c4a6e; } .flag-info .icon { color: var(--sky-500); }
.flag .btn { margin-left: auto; flex: none; }
.lc-edit { display: grid; grid-template-columns: auto 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 18px 16px; border-top: 1px solid var(--line-2); margin-top: 10px; background: var(--surface-2); border-radius: 0 0 16px 16px; }
.lc-edit .lc-comment { grid-column: 1 / -1; }
.lc-edit .textarea { min-height: 44px; height: 44px; padding: 10px 12px; font-size: 13.5px; }
.lc-edit .input[readonly] { background: var(--line-2); color: var(--muted); }

.contest-steps { display: grid; gap: 14px; }
.contest-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.contest-step .cs-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--line-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.contest-step.done .cs-n { background: var(--mint-50); color: var(--mint-600); }
.contest-step .grow > strong { display: block; color: var(--ink); margin-bottom: 4px; }

.queue-urgent { color: var(--rose-600); font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }
.feed .fi { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); margin-top: 7px; }
.feed time { display: block; font-size: 12px; color: var(--subtle); }

.settings-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.settings-nav a:hover { background: var(--line-2); color: var(--ink); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }

/* Checkout (demo) */
.checkout { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(800px 400px at 50% -10%, var(--brand-100), transparent 70%), var(--bg); }
.checkout-card { width: 100%; max-width: 480px; }
.demo-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--amber-50); border: 1px solid var(--amber-200); color: #78350f; font-size: 13px; margin-bottom: 18px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--subtle); }

/* Printable documents (invoice, letter) */
.paper-wrap { padding: 32px 16px 64px; background: var(--bg); min-height: 100vh; }
.paper-toolbar { max-width: 820px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.paper { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 56px 60px; font-size: 14px; color: var(--ink-2); }
.paper h1 { font-size: 26px; margin: 0; }
.paper .paper-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 40px; }
.paper .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.paper .party { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.6; }
.paper .party .lbl { font-size: 11.5px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.paper .totals { margin-left: auto; width: 300px; margin-top: 20px; display: grid; gap: 8px; font-size: 14px; }
.paper .totals div { display: flex; justify-content: space-between; }
.paper .totals .grand { padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 17px; color: var(--ink); }
.paper .legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--subtle); line-height: 1.6; }
.paper .stamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--mint-500); color: var(--mint-700); font-weight: 700; font-size: 13px; transform: rotate(-3deg); }
.letter p { line-height: 1.7; }
.letter .editable { outline: none; border-radius: 6px; transition: background .15s; }
.letter .editable:hover { background: #fffdf3; }
.letter .editable:focus { background: #fffbeb; box-shadow: 0 0 0 3px var(--amber-100); }

/* Error page */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-code { font: 800 96px/1 var(--font-display); letter-spacing: -0.05em; background: linear-gradient(135deg, var(--brand-500), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { transform: none; }
  .mock-float { left: 12px; top: -30px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .simulator { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(11, 16, 32, .4); z-index: 25; }
  .only-mobile { display: inline-grid !important; }
  .hide-mobile { display: none !important; }
  .topbar, .page { padding-left: 18px; padding-right: 18px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .nav-links { display: none; }
  .dossier-row, .list-head { grid-template-columns: minmax(0, 1fr) auto; }
  .dossier-row > :nth-child(2), .list-head > :nth-child(2), .list-head > :nth-child(4), .dossier-row .chev { display: none; }
  .formula-grid, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .figures { grid-template-columns: 1fr; }
  .figure + .figure { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .figure { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; }
  .figure .fv { font-size: 20px; margin-top: 0; }
  .figure .fs { display: none; }
  .lc-edit { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .paper { padding: 32px 24px; }
  .paper .parties { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .hero { padding: 120px 0 80px; }
  .section { padding: 72px 0; }
  .steps, .grid-3, .grid-4, .kpis, .sim-results { grid-template-columns: 1fr; }
  .mock-badge { right: 8px; }
  .mock-float { display: none; }
  .search { min-width: 0; max-width: none; }
  .stepper { overflow-x: auto; }
  .step-item { min-width: 86px; }
  .msg { max-width: 100%; }
}

/* Print */
@media print {
  body { background: #fff; }
  .no-print, .paper-toolbar, .toasts { display: none !important; }
  .paper-wrap { padding: 0; background: #fff; }
  .paper { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .letter .editable:hover, .letter .editable:focus { background: none; box-shadow: none; }
  a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.step-item.skip { color: var(--faint); }
.step-item.skip .bar { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.line-card.is-flash { animation: flash 1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--brand-100); } 100% { box-shadow: none; } }
