/* HELIX — une seule feuille, d'après la charte de Mercury (awesome-design-md, design-md/mercury) adaptée à un outil de travail.
   Barre de nuit violet-encre, fond presque blanc, texte encre-prune, cartes lavande sans ombre, coins arrondis,
   une seule action indigo pleine par écran, le reste en capsules translucides, graisses légères (jamais au-delà de 500).
   La couleur va aux données (barres, médianes, verdicts), pas au décor. Police Inter (équivalent libre de celle de Mercury). */

/* ------------------------------------------------------------------ jetons */
:root {
  color-scheme: light;
  --bg: #f5f5f9; --layer: #ffffff; --layer-2: #f3f2f9; --layer-hover: #f0eff8; --selected: #edecfb; --tint: #fbfbff;
  --border: #e7e6ef; --border-strong: #c3c3cc; --text: #28253b; --text-2: #554e7b; --text-3: #7a7591;
  --interactive: #5266eb; --interactive-hover: #4356d6; --focus: #5266eb; --indigo-10: rgba(82, 102, 235, .10); --indigo-18: rgba(82, 102, 235, .18);
  --glass: rgba(112, 115, 147, .10); --glass-2: rgba(112, 115, 147, .18);
  --shell: #171721; --shell-raised: #1e1e2a; --shell-text: #ededf3; --fog: #c3c3cc;
  --green: #2f7d5b; --green-bg: #e6f2ec; --blue-bg: #eef0fd; --purple: #8a7fd6; --purple-bg: #f1effb;
  --red: #b42318; --red-bg: #fdecea; --yellow: #8a6a12; --yellow-bg: #f6efd9; --teal: #2c7a7b; --teal-bg: #e3f3f2;
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 40px;
  --sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: var(--sans);
  --field: var(--layer); --field-hover: var(--tint); --accent: var(--text-3);
  --c-preuves: #28253b; --c-levees: #5266eb; --c-score: #8a7fd6; --c-capital: #2c7a7b; --c-finances: #2f7d5b;
  --c-similaires: #b0558f; --c-presse: #3a4bc2; --c-site: #7a7591; --c-notes: #a07a1c; --c-dossier: #c26a3a; --c-identite: #28253b;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--interactive); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
b, strong { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 480; letter-spacing: .01em; text-wrap: balance; }
.lede, p { text-wrap: pretty; }
.muted { color: var(--text-2); }
.mono { font-size: 12px; font-variant-numeric: tabular-nums; }
.num, td.num, th.num, .kpi dd, .vc-out dd, .mini td { font-variant-numeric: tabular-nums; }
[id] { scroll-margin-top: 72px; }

/* accessibilité : focus visible partout, zoom tactile sans délai */
.skip { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--layer); color: var(--text); padding: 8px 14px; border-radius: var(--r-pill); border: 2px solid var(--focus); }
.skip:focus { top: 8px; }
a:focus-visible, button:focus-visible, .pill:focus-visible, .icon-btn:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
#main:focus { outline: none; }
a, button, input, select, textarea, label, .pill { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ------------------------------------------------------------------ barre de nuit */
.shell { position: sticky; top: 0; z-index: 50; height: 56px; background: var(--shell); color: var(--shell-text); display: flex; align-items: center; padding: 0 20px; gap: 20px; }
.brand { color: var(--shell-text); font-weight: 500; font-size: 14px; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand:hover { text-decoration: none; }
#nav { display: flex; align-items: center; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
#nav a { color: var(--shell-text); opacity: .78; height: 34px; padding: 0 13px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-weight: 420; white-space: nowrap; }
#nav a:hover { background: rgba(175, 178, 206, .14); opacity: 1; text-decoration: none; }
#nav a[aria-current] { background: rgba(175, 178, 206, .22); opacity: 1; }
.nav-count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 6px; background: var(--interactive); color: #fff; font-size: 11px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.shell-right { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 12px; white-space: nowrap; }
.shell-right .muted { color: var(--fog); }
.me { height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(175, 178, 206, .18); color: var(--shell-text); display: inline-flex; align-items: center; }
.me:hover { background: rgba(175, 178, 206, .28); text-decoration: none; }
.me:empty { display: none; }
.lang-btn { height: 30px; min-width: 38px; padding: 0 10px; background: transparent; color: var(--shell-text); border: 1px solid rgba(175, 178, 206, .36); border-radius: var(--r-pill);
  font: 500 12px var(--sans); letter-spacing: .04em; cursor: pointer; }
.lang-btn:hover { background: rgba(175, 178, 206, .14); }
.auth-links { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.auth-links a:not(.btn) { color: var(--fog); }
.auth-links a:not(.btn):hover { color: #fff; text-decoration: none; }
.auth-links .btn { color: #fff; text-decoration: none; }

/* ------------------------------------------------------------------ boutons : une action pleine, le reste en capsules */
.btn { height: 34px; padding: 0 16px; border: 0; border-radius: 32px; background: var(--interactive); color: #fff; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-weight: 420; text-decoration: none; transition: background-color .15s ease; }
.btn:hover { background: var(--interactive-hover); text-decoration: none; }
.btn.secondary { background: var(--indigo-10); color: var(--text); }
.btn.secondary:hover { background: var(--indigo-18); }
.btn.ghost { background: var(--glass); color: var(--text); }
.btn.ghost:hover { background: var(--glass-2); }
.btn.tertiary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn.tertiary:hover { background: var(--glass); }
.btn.small { height: 28px; padding: 0 12px; font-size: 13px; }
.btn.big { height: 46px; padding: 0 24px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--glass); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* champs */
.input, .select { height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); padding: 0 12px; width: 100%; color: var(--text); }
.input:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .select:focus { border-color: var(--interactive); outline: none; box-shadow: 0 0 0 3px var(--indigo-18); }
.select { padding-right: 30px; appearance: none; background-color: var(--field);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { margin-bottom: 12px; }
.label { display: block; font-size: 12px; color: var(--text-2); margin: 0 0 6px; }
.check { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--interactive); margin: 0; }

/* étiquettes, avis, chargement */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; font-size: 12px; font-weight: 450; background: var(--selected); color: var(--text-2);
  border-radius: 11px; gap: 4px; white-space: nowrap; }
.tag.blue { background: var(--indigo-10); color: #3a4bc2; } .tag.green { background: var(--green-bg); color: var(--green); }
.tag.purple { background: var(--purple-bg); color: #5b4fb0; } .tag.teal { background: var(--teal-bg); color: var(--teal); }
.tag.red { background: var(--red-bg); color: var(--red); } .tag.yellow { background: var(--yellow-bg); color: var(--yellow); }
.tag button { border: 0; background: none; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; color: inherit; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--shell); color: var(--shell-text); padding: 12px 18px;
  border-radius: var(--r-md); z-index: 100; font-size: 13px; box-shadow: 0 8px 24px rgba(23, 23, 33, .18); }
.notice { padding: 12px 16px; background: var(--indigo-10); border-radius: var(--r-md); margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
.notice.warn { background: var(--yellow-bg); }
.notice.error { background: var(--red-bg); color: var(--red); }
.empty { padding: 48px 16px; text-align: center; color: var(--text-2); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--interactive); border-radius: 50%;
  animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: inline-flex; background: var(--glass); border-radius: 20px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 26px; padding: 0 12px; border-radius: 14px; cursor: pointer; font-size: 13px; font-weight: 420; color: var(--text-2); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--layer); color: var(--text); box-shadow: 0 1px 2px rgba(40, 37, 59, .14); }

/* ------------------------------------------------------------------ recherche : filtres | résultats | aperçu */
.search-page { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.search-page.peek { grid-template-columns: 252px minmax(0, 1fr) 400px; }
.filters { background: var(--tint); border-right: 1px solid var(--border); padding: 0; overflow-y: auto; height: calc(100vh - 56px); position: sticky; top: 56px; }
.fhead { padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.fhead b { font-size: 14px; }
.fsec { border-top: 1px solid var(--border); }
.fsec > button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 14px 18px; cursor: pointer;
  font-weight: 500; font-size: 13px; text-align: left; color: var(--text); }
.fsec > button:hover { background: var(--layer-hover); }
.fsec > button:focus:not(:focus-visible) { outline: none; }
.fsec > button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.fsec > button .count { background: var(--interactive); color: #fff; font-size: 11px; font-weight: 500; min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.fsec > button .chev { margin-left: auto; transition: transform .15s ease; color: var(--text-2); font-size: 12px; }
.fsec[data-open="true"] > button .chev { transform: rotate(180deg); }
.fsec .fbody { padding: 0 18px 18px; display: none; }
.fsec[data-open="true"] .fbody { display: block; }
.flabel { font-size: 12px; color: var(--text-2); margin: 14px 0 7px; }
.flabel:first-child { margin-top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 30px; padding: 5px 12px; border: 0; background: var(--glass); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 420;
  border-radius: var(--r-pill); white-space: normal; text-align: left; max-width: 100%; line-height: 1.3; transition: background-color .15s ease; }
.pill:hover { background: var(--glass-2); }
.pill[aria-pressed="true"] { background: var(--text); color: #fff; }
.range { display: grid; grid-template-columns: 1fr 12px 1fr 28px; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2); }
.range span { text-align: center; }
.results { padding: 20px 28px 48px; min-width: 0; }
.searchbar { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; background: var(--layer); border: 1px solid var(--border); border-radius: 32px; padding: 5px 5px 5px 18px; }
.searchbar:focus-within { border-color: var(--interactive); box-shadow: 0 0 0 3px var(--indigo-18); }
.searchbar .input { height: 38px; font-size: 15px; padding: 0; border: 0; background: none; box-shadow: none; }
.searchbar .input:focus { box-shadow: none; }
.searchbar .btn { height: 36px; }
.hint { font-size: 12px; color: var(--text-2); margin: 0 0 12px 18px; }
.hint kbd { font: 500 11px var(--sans); background: var(--layer); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; align-items: center; }
.chips .tag { height: 28px; padding: 0 6px 0 12px; border-radius: 14px; font-size: 13px; }
.chips .tag button { width: 18px; height: 18px; border-radius: 50%; background: rgba(82, 102, 235, .14); font-size: 12px; }
.scope-line { font-size: 13px; color: var(--text-2); margin: 4px 0 8px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.result-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sortbox { display: flex; align-items: center; gap: 8px; }
.sortbox .select { width: auto; height: 30px; border-radius: var(--r-pill); border: 0; background-color: var(--glass); font-size: 13px; }
.al-form { display: flex; gap: 6px; align-items: center; } .al-form .input { height: 30px; width: 240px; font-size: 13px; }

/* tableau dense : des règles et de l'alignement, pas de bandeau d'en-tête */
table.grid { width: 100%; border-collapse: collapse; background: var(--layer); font-size: 13px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
table.grid th { text-align: left; font-weight: 500; color: var(--text-2); height: 38px; padding: 0 12px; white-space: nowrap; font-size: 12px; border-bottom: 1px solid var(--border); background: var(--layer); }
table.grid th.sortable { cursor: pointer; }
table.grid th.sortable:hover { color: var(--text); }
table.grid td { padding: 12px; border-top: 1px solid var(--border); vertical-align: top; }
table.grid tbody tr:first-child td { border-top: 0; }
table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { background: var(--tint); }
table.grid tbody tr[aria-selected="true"] td { background: var(--selected); }
table.grid tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 var(--interactive); }
.cmpcol { width: 32px; padding-right: 0 !important; }
.cmpbox { accent-color: var(--interactive); width: 16px; height: 16px; cursor: pointer; }
.co-name { font-weight: 500; }
.co-desc { color: var(--text-2); font-size: 12px; line-height: 1.4; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.reason { font-size: 12px; color: var(--green); margin-top: 4px; }
.badge-new { display: inline-block; font-size: 11px; font-weight: 500; color: #3a4bc2; background: var(--indigo-10); padding: 1px 7px; border-radius: 8px; margin-left: 6px; vertical-align: 1px; }
.co-links { display: inline-flex; gap: 6px; margin-left: 8px; font-size: 11px; font-weight: 400; }
.co-links a { color: var(--text-3); background: var(--glass); padding: 0 7px; line-height: 18px; border-radius: 9px; text-decoration: none; }
.co-links a:hover { color: var(--interactive); background: var(--indigo-10); }
.dossier-cell { font-size: 12px; white-space: nowrap; }
.bar { display: inline-block; height: 4px; border-radius: 2px; background: var(--interactive); vertical-align: middle; margin-right: 6px; }
.bar.tech { background: var(--purple); }
td.meter { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.meter .track { display: inline-block; width: 40px; height: 4px; border-radius: 2px; background: var(--layer-2); margin-right: 8px; vertical-align: middle; line-height: 0; }
td.meter .bar { margin-right: 0; }
.reg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; font-size: 12px; }
.reg-line .tag { height: 20px; font-size: 11px; cursor: help; }
.valo-line { font-size: 12px; color: #3a4bc2; margin-top: 3px; }
.reading { font-size: 12px; margin-top: 6px; line-height: 1.5; }

/* aperçu */
.peek-panel { background: var(--layer); border-left: 1px solid var(--border); height: calc(100vh - 56px); position: sticky; top: 56px; overflow-y: auto; padding: 20px 22px 32px; }
.peek-panel h2 { font-size: 24px; margin: 4px 0 6px; }
.peek-actions { display: flex; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border-radius: var(--r-md); overflow: hidden; margin: 14px 0; }
.facts div { background: var(--tint); padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--text-2); }
.facts dd { margin: 2px 0 0; font-size: 14px; }
.sec { font-size: 12px; font-weight: 500; color: var(--text-2); text-transform: uppercase; letter-spacing: .28px; margin: 20px 0 8px; }

/* ------------------------------------------------------------------ espace de travail (fiche) */
.ws-head { background: var(--layer); border-bottom: 1px solid var(--border); padding: 18px 24px 0; position: sticky; top: 56px; z-index: 20; }
.ws-top { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.ws-top > div:not(.ws-tools) { flex: 1; min-width: 0; }
.ws-top h1 { font-size: 26px; line-height: 1.15; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-top .sub { margin-top: 2px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex: none; }
.mono-mark { width: 42px; height: 42px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 500; font-size: 18px; }
.kpis { display: flex; margin: 16px -24px 0; border-top: 1px solid var(--border); overflow-x: auto; }
.kpi { padding: 12px 24px; border-right: 1px solid var(--border); min-width: 110px; margin: 0; }
.kpi dt { font-size: 12px; color: var(--text-2); }
.kpi dd { margin: 3px 0 0; font-size: 16px; white-space: nowrap; }
.kpi dd.big { font-size: 22px; font-weight: 450; }
.kpi .of { font-size: 13px; color: var(--text-3); margin-left: 2px; }
.kpi .mini-bar { height: 4px; border-radius: 2px; background: var(--layer-2); margin-top: 6px; width: 72px; overflow: hidden; }
.kpi .mini-bar i { display: block; height: 100%; background: var(--interactive); }
.kpi .mini-bar i.tech { background: var(--purple); }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 36px; background: var(--layer); border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px;
  box-shadow: 0 8px 24px rgba(40, 37, 59, .12); min-width: 240px; z-index: 30; }
.menu-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; }
.menu-list button:hover { background: var(--layer-hover); }
.menu-list button:disabled { color: var(--text-3); cursor: default; background: none; }

/* panneaux : cartes plates, coins de 12 px, un point de couleur pour les reconnaître */
.ws-grid { padding: 12px 16px 48px; }
.grid-stack-item-content.panel { background: var(--layer); border: 1px solid var(--border); border-radius: var(--r-md); display: flex; flex-direction: column; overflow: hidden; inset: 5px !important; }
.ui-draggable-dragging .grid-stack-item-content.panel { box-shadow: 0 12px 32px rgba(40, 37, 59, .18); }
.grid-stack-item[data-pin] .panel { border-color: var(--interactive); box-shadow: 0 0 0 1px var(--interactive); }
.panel-head { height: 42px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; border-bottom: 1px solid var(--border); cursor: move; user-select: none; background: var(--layer); }
.panel-head::before { content: ""; order: -2; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 4px 0 2px; flex: none; }
.panel-head .grip { order: -1; color: var(--text-3); font-size: 12px; letter-spacing: -2px; opacity: 0; transition: opacity .15s ease; }
.panel:hover .panel-head .grip { opacity: .7; }
.panel-head h4 { margin: 0; font-size: 13px; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-btn[aria-pressed="true"] { color: var(--interactive); background: var(--indigo-10); }
.pin-name { font-weight: 400; color: var(--interactive); }
.panel-body { flex: 1; overflow: auto; padding: 16px; font-size: 13px; }
.grid-stack-item.collapsed .panel-body { display: none; }
.grid-stack > .grid-stack-item > .ui-resizable-se { background: none; }
.grid-stack-placeholder > .placeholder-content { background: var(--indigo-10) !important; border: 1px dashed var(--interactive); border-radius: var(--r-md); }
[data-pid="levees"] { --accent: var(--c-levees); } [data-pid="score"] { --accent: var(--c-score); } [data-pid="capital"] { --accent: var(--c-capital); }
[data-pid="finances"] { --accent: var(--c-finances); } [data-pid="similaires"] { --accent: var(--c-similaires); } [data-pid="presse"] { --accent: var(--c-presse); }
[data-pid="site"] { --accent: var(--c-site); } [data-pid="notes"] { --accent: var(--c-notes); } [data-pid="dossier"] { --accent: var(--c-dossier); }
[data-pid="frise"] { --accent: var(--c-preuves); } [data-pid="identite"] { --accent: var(--c-identite); } [data-pid="valo"] { --accent: var(--interactive); }

/* contenus des panneaux */
.lede { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; font-size: 13px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.src { font-size: 11px; color: var(--text-3); }
.sgroup { font-size: 12px; font-weight: 500; color: var(--text-2); text-transform: uppercase; letter-spacing: .28px; margin: 16px 0 6px; }
.sgroup:first-child { margin-top: 0; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12px; }
table.mini th { text-align: left; color: var(--text-2); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--border); }
table.mini td { padding: 7px 6px; border-bottom: 1px solid var(--border); }
table.mini td.num { white-space: nowrap; }
.mini tr.via td:first-child { padding-left: 16px; }
.act-line { font-size: 12px; padding: 3px 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.sim { padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: var(--r-sm); }
.sim:hover { background: var(--layer-hover); }
a.sim { display: block; color: inherit; text-decoration: none; }

/* levées en cartes */
.rcard { background: var(--tint); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; }
.rcard .top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rcard .amt { font-size: 26px; font-weight: 480; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rcard .meta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.rcard .lead { margin-top: 10px; font-size: 13px; }
.rcard .k { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .28px; display: block; margin-bottom: 2px; }
.rcard .inv { margin-top: 10px; }
.rcard .use { margin-top: 10px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 8px; }

/* frise des preuves */
.tl-year { font-size: 12px; font-weight: 500; color: var(--text-2); margin: 16px 0 4px 30px; }
.tl-year:first-child { margin-top: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 22px 58px 1fr; gap: 8px; padding: 6px 0; }
.tl-item::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-item .mk { width: 9px; height: 9px; border-radius: 50%; margin: 5px 0 0 3px; background: var(--text-3); position: relative; z-index: 1; }
.tl-item .mk.levee { background: var(--text); } .tl-item .mk.presse { background: var(--interactive); } .tl-item .mk.tech { background: var(--purple); }
.tl-item .mk.equipe { background: var(--teal); } .tl-item .mk.creation { background: var(--layer); box-shadow: inset 0 0 0 1.5px var(--text); }
.tl-item .d { font-size: 12px; color: var(--text-2); padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-new { font-size: 11px; font-weight: 500; color: #3a4bc2; background: var(--indigo-10); padding: 0 7px; border-radius: 8px; margin-left: 6px; }

/* score */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.gauges div { background: var(--tint); padding: 10px 12px; }
.gauges span { font-size: 12px; color: var(--text-2); }
.gauges b { display: block; font-size: 24px; font-weight: 450; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gauges i { display: block; height: 4px; border-radius: 2px; background: var(--layer-2); margin-top: 6px; overflow: hidden; }
.gauges i u { display: block; height: 100%; background: var(--interactive); text-decoration: none; }
.gauges i u.tech { background: var(--purple); }
.sline { display: grid; grid-template-columns: 40px 56px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.sline .p { text-align: right; font-variant-numeric: tabular-nums; }
.sline .p.neg { color: var(--red); }
.sline .b { height: 6px; border-radius: 3px; background: var(--layer-2); overflow: hidden; }
.sline .b u { display: block; height: 100%; background: var(--interactive); text-decoration: none; }
.sline .b u.tech { background: var(--purple); } .sline .b u.neg { background: var(--red); } .sline .b u.contexte { background: var(--text-3); }
.sline.zero { color: var(--text-3); }
.score-line { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.score-line .p { text-align: right; font-variant-numeric: tabular-nums; }
.score-line .p.neg { color: var(--red); }

/* bloc-notes */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin: -16px -16px 14px; padding: 0 8px; }
.tabs button { border: 0; background: none; padding: 11px 12px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 420; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--interactive); }
.memo-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.memo-empty { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 14px; text-align: center; color: var(--text-2); margin-bottom: 8px; font-size: 13px; }
#memo { min-height: 200px; font-size: 14px; }
.note { padding: 9px 0; border-bottom: 1px solid var(--border); }
.note .who { font-size: 12px; color: var(--text-2); }
.note .txt { white-space: pre-wrap; margin-top: 2px; }
.note.fresh { animation: flash 2s ease-out; }
@keyframes flash { from { background: var(--indigo-10); } to { background: transparent; } }

/* ------------------------------------------------------------------ pages (activité, équipe, compte, alertes, investisseurs) */
.page { max-width: 960px; margin: 0 auto; padding: 28px 24px 48px; }
.page.wide { max-width: 1400px; }
.page h1 { font-size: 30px; margin: 0 0 16px; }
.event { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.card { background: var(--layer); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 16px; }
.card h2 { font-size: 17px; font-weight: 480; margin: 0 0 12px; }
.inv-form { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; }
.alert-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.alert-card h2 { font-size: 18px; margin: 0 0 8px; } .alert-main { min-width: 0; }
.alert-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.alert-new { display: flex; flex-direction: column; align-items: flex-end; color: var(--text-3); text-decoration: none; }
.alert-new b { font-size: 28px; font-weight: 480; line-height: 1.1; font-variant-numeric: tabular-nums; } .alert-new span { font-size: 12px; }
.alert-new.on { color: var(--interactive); } .alert-new:hover { text-decoration: none; }
a.inv-link { text-decoration: none; } a.inv-link:hover { background: var(--indigo-10); color: #3a4bc2; }
.inv-search { max-width: 480px; margin: 0 0 16px; } .inv-search .input { height: 42px; border-radius: 22px; padding: 0 18px; }
#invs tbody tr { cursor: pointer; }
.inv-kpis { margin: 8px 0 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--layer); overflow: hidden; }
.inv-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.inv-grid .card { margin-bottom: 16px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.hbar i { height: 6px; border-radius: 3px; background: var(--layer-2); overflow: hidden; } .hbar u { display: block; height: 100%; background: var(--interactive); }
.hbar b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.legal p { line-height: 1.6; margin: 0 0 8px; } .legal-kv { grid-template-columns: 200px 1fr; row-gap: 12px; } .legal-kv dd { line-height: 1.55; }

/* comparaison */
.cmpbar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--shell); color: var(--shell-text); padding: 8px 8px 8px 16px; border-radius: var(--r-pill);
  display: flex; gap: 8px; align-items: center; z-index: 60; box-shadow: 0 8px 24px rgba(23, 23, 33, .25); font-size: 13px; }
.cmpbar .tag { background: rgba(175, 178, 206, .2); color: var(--shell-text); }
.cmpbar .btn.ghost { color: var(--shell-text); background: rgba(175, 178, 206, .14); }
.cmp { display: grid; background: var(--border); gap: 1px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.cmp > div { background: var(--layer); padding: 12px 16px; }
.cmp-head { display: flex; gap: 12px; align-items: center; position: sticky; top: 56px; z-index: 5; box-shadow: 0 1px 0 var(--border); }
.cmp-head .icon-btn { margin-left: auto; }
.cmp-name { font-size: 18px; color: var(--text); }
.cmp-label { font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--tint) !important; }
.cmp-num { font-size: 22px; font-weight: 450; font-variant-numeric: tabular-nums; }
.cmp .win, .cmp-num.win { color: var(--green); }
.cmp .k { font-size: 12px; color: var(--text-2); }
.gbar { height: 4px; border-radius: 2px; background: var(--layer-2); margin-top: 6px; max-width: 160px; overflow: hidden; }
.gbar u { display: block; height: 100%; background: var(--interactive); }
.gbar u.tech { background: var(--purple); }

/* connexion */
.auth { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: var(--layer); width: 100%; max-width: 420px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.auth-brand { letter-spacing: .3em; font-weight: 500; font-size: 13px; color: var(--interactive); }
.auth-brand:hover { text-decoration: none; }
.auth-card h1 { font-size: 28px; margin: 8px 0 24px; }
.auth-err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* ------------------------------------------------------------------ valorisations */
.vc-crit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.vc-crit .select { width: auto; height: 30px; border-radius: var(--r-pill); border: 0; background-color: var(--glass); }
.vc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 10px 0; }
.vc-out > div { padding: 10px 12px 10px 0; margin: 0; }
.vc-out > div + div { padding-left: 14px; border-left: 1px solid var(--border); }
.vc-out dt { font-size: 12px; color: var(--text-2); }
.vc-out dd { margin: 3px 0 0; font-size: 18px; font-weight: 450; }
#vc-out .vc-out { background: var(--shell); border: 0; border-radius: var(--r-md); padding: 4px 16px; color: var(--shell-text); }
#vc-out .vc-out > div + div { border-left-color: rgba(195, 195, 204, .18); }
#vc-out .vc-out dt { color: var(--fog); }
.vc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.vc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-2); }
.vc-in { display: flex; align-items: center; gap: 6px; }
.vc-in em { font-style: normal; font-size: 12px; color: var(--text-2); min-width: 22px; }
.vc-cmp { font-size: 13px; padding: 10px 12px; background: var(--indigo-10); border-radius: var(--r-md); line-height: 1.5; }
.vc-cmp.warn { background: var(--yellow-bg); color: var(--yellow); }
.vc-actions { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.valo-change { background: var(--indigo-10); border-radius: var(--r-md); padding: 12px 14px; margin: 10px 0; font-size: 13px; line-height: 1.55; }
.valo-change .btn { margin-top: 8px; }
.val-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 18px; }
.val-filters .select { width: auto; height: 30px; border-radius: var(--r-pill); border: 0; background-color: var(--glass); font-size: 13px; }
.val-filters .check { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.val-stats { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--layer); padding: 6px 22px; margin-bottom: 16px; }
.val-row { display: grid; grid-template-columns: 150px 1fr 280px; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.val-row.val-scale { border-bottom: 0; padding-top: 4px; }
.val-lab { display: flex; flex-direction: column; font-size: 13px; }
.val-lab b { font-weight: 500; }
.val-lab .muted { font-size: 12px; }
.val-axis { position: relative; height: 6px; border-radius: 3px; background: var(--layer-2); overflow: visible; }
.val-axis.bare { background: none; height: 16px; }
.val-axis.bare span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--text-2); }
.val-num { font-size: 13px; }
.val-num b { font-size: 18px; font-weight: 480; }
.val-scale .muted { font-size: 12px; }
.val-row[data-st] { transition: opacity .3s ease; }
.val-row[data-on="0"] { opacity: .35; }
.val-iqr-w, .val-med-w { position: absolute; inset: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.val-iqr-w { transform: translateX(var(--a, 0%)); }
.val-med-w { transform: translateX(var(--m, 0%)); }
.val-iqr { position: absolute; top: -5px; bottom: -5px; left: 0; width: 100%; border-radius: 8px; background: var(--indigo-18); transform-origin: left center;
  transform: scaleX(var(--w, 0)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.val-med { position: absolute; top: -9px; bottom: -9px; left: -1px; width: 3px; border-radius: 2px; background: var(--interactive); }
.val-row[data-on="0"] .val-iqr, .val-row[data-on="0"] .val-med { opacity: 0; }
.val-table { transition: opacity .2s ease; }
.val-table.is-loading { opacity: .45; }
.val-num, .val-lab, .map-kpi, .map-deps b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .val-row { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------------ carte */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.map-stage { position: relative; background: var(--layer); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; }
.map-stage .map { width: 100%; height: min(72vh, 700px); display: block; }
.map .deps path { fill: var(--tint); stroke: var(--border-strong); stroke-width: calc(.6 * var(--z, 1)); transition: fill-opacity .2s ease; cursor: pointer; }
.map .deps path.has { fill: var(--interactive); fill-opacity: var(--d); }
.map .deps path:hover, .map .deps path.on { fill-opacity: calc(var(--d) + .15); }
.map .deps path:not(.has):hover { fill: var(--layer-hover); }
.map .pts circle { r: calc(var(--r) * var(--z, 1) * 1.8px); fill: var(--interactive); fill-opacity: .9; stroke: var(--layer); stroke-width: calc(1.2 * var(--z, 1)); cursor: pointer;
  animation: pt-in .4s ease both; }
.map .pts circle:hover { fill: var(--shell); fill-opacity: 1; }
@keyframes pt-in { from { opacity: 0; } to { opacity: 1; } }
.map-ring { fill: var(--interactive); fill-opacity: .05; stroke: var(--interactive); stroke-width: calc(1 * var(--z, 1)); }
.map-centre { fill: var(--text); }
.map-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--shell); color: var(--shell-text); border-radius: var(--r-sm); padding: 8px 11px; font-size: 12px;
  box-shadow: 0 8px 24px rgba(23, 23, 33, .2); max-width: 220px; z-index: 2; }
.map-tip .muted { color: var(--fog); }
.map-tip b { font-size: 13px; font-weight: 500; }
.map-reset { position: absolute; top: 14px; left: 14px; }
.map-side { position: sticky; top: 72px; }
.map-kpi { font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.map-kpi b { font-size: 22px; font-weight: 480; }
.map-deps { display: flex; flex-direction: column; margin-top: 4px; }
.map-deps button { display: grid; grid-template-columns: 1fr 64px 36px; gap: 8px; align-items: center; border: 0; background: none; padding: 7px 8px; border-radius: var(--r-sm);
  text-align: left; font-size: 13px; cursor: pointer; color: var(--text); }
.map-deps button:hover, .map-deps button.on { background: var(--layer-hover); }
.map-deps i { height: 6px; border-radius: 3px; background: var(--layer-2); display: block; overflow: hidden; }
.map-deps u { display: block; height: 100%; background: var(--interactive); transform-origin: left center; }
.map-deps b { text-align: right; font-weight: 500; }
.map-note { font-size: 12px; margin-top: 12px; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } .map-side { position: static; } .map-stage .map { height: auto; } }

/* ------------------------------------------------------------------ site public : pages claires encadrées par la nuit */
.landing { background: var(--bg); }
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #edecfb 0%, #f3f2fb 55%, var(--bg) 100%); color: var(--text); padding: 104px 32px 96px; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.25) 50%, #000 85%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.25) 50%, #000 85%); }
.hero-in { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .28px; text-transform: uppercase; color: var(--interactive); margin-bottom: 20px; }
.hero h1 { font-size: 54px; line-height: 1.08; font-weight: 480; margin: 0 0 24px; letter-spacing: .005em; }
.hero-sub { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 720px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.tertiary { color: var(--text); background: var(--glass); box-shadow: none; }
.hero .btn.tertiary:hover { background: var(--glass-2); }
.hero-note { font-size: 13px; color: var(--text-3); margin-top: 16px; }
.figures { max-width: 1104px; margin: -40px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; position: relative; z-index: 2; }
.figures div { background: var(--layer); padding: 24px; }
.figures b { display: block; font-size: 36px; font-weight: 480; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures span { display: block; font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.4; }
.live { max-width: 1104px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 13px; overflow: hidden; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(47,125,91,.5); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(47,125,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,125,91,0); } }
.live-label { font-weight: 500; white-space: nowrap; }
.live-time { color: var(--text-3); white-space: nowrap; font-size: 12px; }
.feed { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.feed-track { display: inline-flex; gap: 32px; white-space: nowrap; animation: feed 60s linear infinite; }
.feed:hover .feed-track { animation-play-state: paused; }
@keyframes feed { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.feed-item { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
a.feed-item:hover { color: var(--interactive); text-decoration: underline; }
.feed-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--interactive); display: inline-block; }
.feed-item em { font-style: normal; color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.how { max-width: 1104px; margin: 0 auto; padding: 80px 32px 24px; }
.how.alt { padding-top: 40px; }
.how h2, .honest h2, .proof h2, .demos h2 { font-size: 30px; margin: 0 0 28px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols3 > div { min-width: 0; background: var(--selected); border-radius: var(--r-md); padding: 24px; }
.cols3 h3 { font-size: 17px; font-weight: 480; margin: 0 0 8px; }
.cols3 p { margin: 0; color: var(--text-2); line-height: 1.6; font-size: 15px; }
.how.alt .cols3 > div { background: var(--layer); border: 1px solid var(--border); }
.honest { max-width: 1040px; margin: 48px auto 0; padding: 36px 40px; background: var(--yellow-bg); border-radius: var(--r-md); }
.honest p { font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 760px; margin: 0 0 24px; }
.proof { background: var(--layer); margin-top: 80px; padding: 72px 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-in { max-width: 1040px; margin: 0 auto; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.proof-stats { margin: 0; display: grid; gap: 24px; }
.proof-stats div { border-top: 1px solid var(--border); padding-top: 12px; }
.proof-stats dt { font-size: 32px; font-weight: 480; line-height: 1.15; font-variant-numeric: tabular-nums; }
.proof-stats dd { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.case-card { background: var(--selected); border-radius: var(--r-md); padding: 28px 32px 32px; }
.case-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid rgba(82, 102, 235, .16); }
.case-top h3 { font-size: 24px; margin: 0; }
.case-tag { flex-basis: 100%; font-size: 12px; font-weight: 500; letter-spacing: .28px; text-transform: uppercase; color: var(--interactive); }
.case-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; position: relative; }
.case-track .node { position: relative; padding-top: 28px; }
.case-track .node::before { content: ""; position: absolute; top: 4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--interactive); }
.case-track .node.press::before { background: var(--text); }
.case-track .link { position: absolute; top: 0; left: 20px; right: calc(50% - 8px); height: 20px; }
.case-track .link::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; border-top: 2px dashed rgba(82, 102, 235, .4); }
.case-track .link span { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); background: var(--selected); padding: 0 10px; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--interactive); }
.case-track time { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.case-track b { display: block; font-weight: 500; font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.case-track a { font-size: 13px; }
.demos { max-width: 1104px; margin: 0 auto; padding: 80px 32px 8px; }
.demos h3 { font-size: 17px; font-weight: 480; margin: 16px 0 6px; }
.demos p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.demo { height: 230px; max-width: 100%; background: var(--selected); border-radius: var(--r-md); padding: 14px; overflow: hidden; position: relative; font-size: 12px; }
.pop { animation: pop .45s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.d-bar { display: flex; align-items: center; background: var(--layer); border-radius: 18px; height: 34px; padding: 3px 3px 3px 12px; gap: 2px; }
.d-q { white-space: nowrap; overflow: hidden; font-size: 12px; min-width: 0; flex: 0 1 auto; }
.d-caret { width: 1px; height: 14px; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.d-btn { margin-left: auto; background: var(--interactive); color: #fff; height: 100%; border-radius: 14px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; white-space: nowrap; }
.d-chips { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; min-height: 24px; }
.d-chips .tag { height: 20px; font-size: 10px; background: var(--indigo-10); color: #3a4bc2; }
.d-row { background: var(--layer); border-radius: var(--r-sm); padding: 6px 9px; margin-bottom: 4px; display: grid; gap: 1px; }
.d-row span { color: var(--text-2); font-size: 11px; } .d-row em { font-style: normal; color: var(--green); font-size: 11px; }
.d-grid { position: relative; height: 100%; }
.d-panel { position: absolute; width: 50%; height: 50%; padding: 4px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.d-panel > * { background: var(--layer); }
.d-ph { height: 24px; display: flex; align-items: center; gap: 6px; padding-left: 8px; font-weight: 500; font-size: 10px; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.d-ph::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.d-pb { height: calc(100% - 24px); padding: 8px; display: grid; gap: 6px; align-content: start; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.d-pb i { height: 6px; border-radius: 3px; background: var(--layer-2); display: block; }
.d-panel.lift { z-index: 2; } .d-panel.lift > * { box-shadow: 0 8px 20px rgba(40, 37, 59, .16); }
.d-cursor { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-left: 2px solid var(--text); border-top: 2px solid var(--text);
  transform: translate(20%, 8%) rotate(-10deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 3; }
.d-memo { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.d-note { background: var(--layer); border-radius: var(--r-sm); padding: 6px 9px; margin-bottom: 4px; }
.d-note .who { color: var(--text-2); font-size: 11px; }
.d-typing { display: flex; gap: 3px; position: absolute; bottom: 12px; left: 14px; }
.d-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.d-typing i:nth-child(2) { animation-delay: .2s; } .d-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal .cols3 > div { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in .cols3 > div { opacity: 1; transform: none; }
.reveal.in .cols3 > div:nth-child(2) { transition-delay: .12s; } .reveal.in .cols3 > div:nth-child(3) { transition-delay: .24s; }
/* pied de page de nuit, comme chez Mercury */
.foot { max-width: none; margin: 72px 0 0; padding: 40px max(32px, calc((100% - 1104px) / 2)) 48px; background: var(--shell); font-size: 12px; color: var(--fog); line-height: 1.6; }
.foot a { color: var(--shell-text); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(195, 195, 204, .18); font-size: 13px; color: var(--shell-text); }

/* ------------------------------------------------------------------ petits écrans, mouvement réduit */
@media (max-width: 860px) {
  .hero { padding: 64px 20px 80px; } .hero h1 { font-size: 36px; }
  .figures { grid-template-columns: 1fr 1fr; margin: -32px 16px 0; } .cols3 { grid-template-columns: 1fr; }
  .how { padding: 48px 20px 16px; } .honest { margin: 32px 16px 0; padding: 24px; } .auth-links { gap: 12px; font-size: 13px; }
  .proof { margin-top: 48px; padding: 48px 16px; } .proof-grid { grid-template-columns: 1fr; gap: 32px; } .case-card { padding: 20px; }
  .case-track { grid-template-columns: 1fr; } .case-track .node { padding: 0 0 0 28px; } .case-track .node::before { top: 2px; }
  .case-track .link { position: relative; left: 0; right: auto; height: 56px; } .case-track .link::before { top: 0; bottom: 0; left: 5px; right: auto; border-top: 0; border-left: 2px dashed rgba(82, 102, 235, .4); }
  .case-track .link span { top: 50%; left: 28px; transform: translateY(-50%); padding: 0; }
  .demos { padding: 48px 20px 8px; } .live { padding: 12px 16px; } .live-time { display: none; }
  .hero-net { -webkit-mask-image: none; mask-image: none; opacity: .4; }
  .inv-grid { grid-template-columns: 1fr; } .alert-card { flex-direction: column; align-items: stretch; gap: 12px; }
  .alert-side { flex-direction: row; align-items: center; justify-content: space-between; } .alert-new { flex-direction: row; align-items: baseline; gap: 8px; }
  .foot { padding: 32px 20px 40px; }
}
@media (max-width: 640px) { .legal-kv { grid-template-columns: 1fr; row-gap: 4px; } .legal-kv dd { margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .feed-track { animation: none; } .reveal, .reveal .cols3 > div { opacity: 1; transform: none; transition: none; }
  .val-iqr-w, .val-med-w, .val-iqr, .val-row[data-st], .val-table, .map .deps path, .btn, .pill { transition: none; }
  .map .pts circle { animation: none; }
}

/* composants planche DA : pastilles de preuve, parcours de capital, jauge de valorisation */
.pr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; flex: none; }
.pr-dot.sure { background: var(--indigo, #5266eb); }
.pr-dot.part { background: linear-gradient(90deg, var(--indigo, #5266eb) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--indigo, #5266eb); }
.pr-dot.est { border: 1.5px dashed var(--indigo, #5266eb); }
.arc { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 8px; }
.arc a { width: 8px; height: 20px; border-radius: 2px; background: #cfccdc; animation: arcup .4s backwards; }
.arc a:hover, .arc a:focus-visible { outline: 2px solid var(--ink, #28253b); outline-offset: 1px; }
.arc .arc-f, .arc-leg .arc-f { background: #5266eb; } .arc .arc-a, .arc-leg .arc-a { background: #8c99f3; }
.arc .arc-r, .arc-leg .arc-r { background: #c3cafa; } .arc .arc-x, .arc-leg .arc-x { background: #d9534f; }
.arc .arc-dim, .arc-leg .arc-dim { background: repeating-linear-gradient(135deg, #5266eb 0 2px, #c3cafa 2px 4px); }
.arc-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted, #6b6880); margin-bottom: 14px; }
.arc-leg i { display: inline-block; width: 7px; height: 11px; border-radius: 2px; background: #cfccdc; margin-right: 5px; vertical-align: -1px; }
@keyframes arcup { from { transform: scaleY(.2); opacity: 0; } }
.vgauge { position: relative; height: 46px; margin: 34px 0 4px; }
.vg-ticks { position: absolute; inset: 18px 0 auto; height: 8px; background: repeating-linear-gradient(90deg, #e1dfeb 0 2px, transparent 2px 6px); }
.vg-band { position: absolute; top: 18px; height: 8px; background: #c3cafa; border-radius: 2px; }
.vg-dots i { position: absolute; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: #28253b; opacity: .3; transform: translateX(-50%); }
.vg-med { position: absolute; top: 10px; width: 1px; height: 24px; background: #28253b; }
.vg-med em { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font: 10px ui-monospace, Consolas, monospace; color: #6b6880; font-style: normal; }
.vg-cur { position: absolute; top: -8px; transform: translateX(-50%); }
.vg-cur span { display: block; background: #5266eb; color: #fff; font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vg-cur::after { content: ""; display: block; width: 2px; height: 16px; background: #5266eb; margin: 0 auto; }
.vgauge > * { transition: left .6s cubic-bezier(.2,.8,.2,1), width .6s cubic-bezier(.2,.8,.2,1); }
.vg-axis { display: flex; justify-content: space-between; font: 11px ui-monospace, Consolas, monospace; color: #6b6880; margin: 14px 0 16px; }
@media (prefers-reduced-motion: reduce) { .arc a { animation: none; } .vgauge > * { transition: none; } }
