/* OG Prospection — la feuille de l'app, dans la DA d'OG Bank (Théo, 09/10/2026 : « plus sobre, plus pro, enlève les
   barres du fond »). Les couleurs viennent de tokens.css. Téléphone d'abord (une colonne, barre d'onglets en bas),
   ordinateur à partir de 1024 px (rail latéral et tableaux). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.42; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: 'tnum' 1;
}
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: var(--amb); z-index: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.loading { color: var(--muted); padding: 40px; text-align: center; }
.svg-ic { flex: none; }

/* ───── Le verre ───── */
.glass {
  position: relative; border-radius: var(--r-card); background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shade);
}
/* Les lignes de liste : pas de flou (des centaines à l'écran), un fond plat. Rapide sur téléphone. */
.glass--flat { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-plat); box-shadow: inset 0 1px 0 var(--glass-top); }
.card { padding: 16px 18px; }
.card--tight { padding: 12px 14px; }
a.glass, button.glass { transition: transform var(--dur) var(--ease), background var(--dur); }
a.glass:active, button.glass:active { transform: scale(.99); }
@media (hover: hover) { a.glass:hover { background: var(--veil-2); } }

/* ───── La coque ───── */
.shell { position: relative; z-index: 1; display: flex; min-height: 100dvh; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; }
.view { max-width: 520px; width: 100%; margin: 0 auto; overflow-x: clip; padding: calc(env(safe-area-inset-top) + 16px) 16px calc(var(--tab-h) + env(safe-area-inset-bottom) + 40px); display: flex; flex-direction: column; gap: 14px; transition: opacity var(--dur); }
.view--plein { max-width: none; padding: 0; min-height: 100dvh; }
.view.is-loading { opacity: .5; pointer-events: none; }
/* La barre d'onglets du téléphone : une pilule de verre en bas, comme OG Bank. */
.tabbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 12px);
  display: flex; gap: 2px; padding: 6px; border-radius: 30px; width: max-content; max-width: calc(100vw - 20px);
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shade);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 66px; height: 52px; border-radius: 24px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.tabbar a.on { color: var(--text); background: var(--veil-2); }
.tabbar a.add { background: var(--ink); color: var(--on-ink); }
.tabbar a.add.on { box-shadow: 0 0 0 2px var(--glass-line); }
@media (min-width: 1024px) {
  .sidebar {
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--side-w); margin: 16px 0 16px 16px; padding: 16px 0;
    position: sticky; top: 16px; height: calc(100dvh - 32px); border-radius: var(--r-big);
    background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shade);
  }
  .sidebar .logo { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; display: block; }
  .rail__item { width: 70px; height: 56px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; transition: background var(--dur), color var(--dur); }
  .rail__item:hover { background: var(--veil); color: var(--text); }
  .rail__item.on { background: var(--veil-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
  .rail__item.add { background: var(--ink); color: var(--on-ink); }
  .rail__item.add:hover { opacity: .9; background: var(--ink); color: var(--on-ink); }
  .rail__item.add.on { box-shadow: 0 0 0 2px var(--glass-line); }
  .rail__spacer { flex: 1; }
  .tabbar { display: none !important; }
  .view { max-width: var(--content-max); padding: 24px 28px 48px 22px; gap: 16px; }
  .view--etroit { max-width: 680px; margin: 0; }
  .bureau { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .bureau > * { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important; }
  .toast { bottom: 28px !important; }
}

/* ───── Texte ───── */
.kicker { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.num { font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.big { font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.mu { color: var(--muted); } .t2 { color: var(--text-2); }
.b { font-weight: 650; } .small { font-size: 13px; } .tiny { font-size: 12px; } .center { text-align: center; }
.lead-txt { font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.ok { color: var(--up); } .danger { color: var(--down); } .warn { color: var(--st-warm); } .info { color: var(--on-accent-soft); }
.lien { color: var(--on-accent-soft); font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }

/* ───── Pièces ───── */
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.sep { height: 1px; background: var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grow { flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--veil); color: var(--text-2); border: 0; line-height: 1.2; }
.chip--cold { color: var(--st-cold); background: var(--st-cold-bg); }
.chip--warm { color: var(--st-warm); background: var(--st-warm-bg); }
.chip--hot { color: var(--st-hot); background: var(--st-hot-bg); }
.chip--tiede { color: var(--st-tiede); background: var(--st-tiede-bg); }
.chip--ok { color: var(--st-ok); background: var(--st-ok-bg); }
.chip--wine { color: var(--st-sign); background: var(--st-sign-bg); }
.chip--no { color: var(--st-no); background: var(--st-no-bg); }
.chip--dim { color: var(--st-dim); background: var(--st-dim-bg); }
.chip--gold, .chip--accent { color: var(--on-accent-soft); background: var(--accent-soft); }
.chip--hero { background: var(--veil-2); color: var(--text); }
.chip.b { color: var(--text); background: var(--veil-2); }
/* Les chips qu'on touche (filtres, onglets, liens) : 40 px de haut ; la sélection est PLEINE (encre), on ne la rate pas. */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--tap .chip { min-height: 38px; padding: 0 14px; font-size: 13px; background: var(--veil); color: var(--text-2); }
.chips--tap .chip.on { background: var(--ink); color: var(--on-ink); }
.chips--tap .chip .n { opacity: .65; font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 650; color: var(--text); background: var(--mono-bg); border: 1px solid var(--mono-line); }
.avatar--s { width: 26px; height: 26px; font-size: 10px; }
.avatar--l { width: 56px; height: 56px; font-size: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: var(--r-btn); border: 0; font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; width: 100%; color: var(--on-ink); background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--sec { color: var(--text); background: var(--veil-2); }
.btn--ghost { color: var(--text-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--danger { color: var(--down); background: var(--st-no-bg); }
.btn--accent { color: #fff; background: var(--accent); }
.btn--s { min-height: 42px; font-size: 14px; border-radius: 12px; width: auto; padding: 0 14px; }
.btn--xs { min-height: 38px; font-size: 13px; border-radius: 11px; width: auto; padding: 0 12px; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; color: var(--text); background: var(--veil); flex: none; }
.ibtn--s { width: 38px; height: 38px; }
.back { display: inline-flex; align-items: center; gap: 2px; height: 40px; font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: -6px; }
/* Le contrôle segmenté : la case choisie est PLEINE (encre sur fond), impossible de ne pas la voir (Théo, 09/10). */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); }
.seg button { text-align: center; font-size: 13px; font-weight: 600; padding: 10px 6px; min-height: 42px; border: 0; border-radius: 10px; color: var(--text-2); background: transparent; transition: background var(--dur), color var(--dur); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button:hover { background: var(--veil); }
.seg button.on { background: var(--ink); color: var(--on-ink); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.seg--multi button.on::before { content: '✓ '; font-weight: 700; }
.seg--xs { padding: 3px; }
.seg--xs button { font-size: 12px; padding: 6px 8px; min-height: 34px; }
.field { display: flex; align-items: center; gap: 10px; min-height: 50px; min-width: 0; padding: 0 14px; border-radius: var(--r-field); background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); }
.field input, .field select, .field textarea { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 500; font-size: 16px; outline: none; color: var(--text); }   /* 16 px : Safari ne zoome pas */
.field select { appearance: none; -webkit-appearance: none; padding-right: 4px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field--area { align-items: stretch; padding: 10px 14px; }
.field--area textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.field__lab { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.lab { display: grid; gap: 6px; }
.toggle { width: 52px; height: 32px; border-radius: 16px; background: var(--up); position: relative; flex: none; border: 0; padding: 0; transition: background var(--dur); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 23px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left var(--dur) var(--ease); }
.toggle[aria-checked='false'] { background: var(--veil-2); }
.toggle[aria-checked='false']::after { left: 3px; }
.progress { height: 6px; border-radius: 999px; background: var(--veil-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width var(--dur); }
.liste { display: flex; flex-direction: column; gap: 8px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty b { display: block; font-size: 17px; font-weight: 650; color: var(--text); margin-bottom: 6px; }
.note-info { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.note-info b { color: var(--text); }

/* ───── La feuille (sheet) et le toast ───── */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: var(--backdrop); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--dur); touch-action: none; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; border-radius: 26px 26px 0 0; padding: 10px 18px calc(env(safe-area-inset-bottom) + 20px); display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--glass-line); box-shadow: 0 -10px 40px rgba(0,0,0,.4); animation: monte .3s var(--ease); }
.sheet .grip { width: 38px; height: 4px; border-radius: 2px; background: var(--veil-2); margin: 0 auto 2px; }
@media (min-width: 1024px) { .sheet-bg { align-items: center; } .sheet { border-radius: 26px; padding: 22px 24px; } }
@keyframes monte { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px); transform: translateX(-50%) translateY(10px); z-index: 70; padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity var(--dur), transform var(--dur); max-width: min(92vw, 440px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ───── Les niches et l'entonnoir ───── */
.funnel { display: grid; gap: 7px; }
.funnel__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.funnel__head .k { flex: 1 1 140px; }
.funnel__row { display: grid; grid-template-columns: 82px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.funnel__bar { height: 10px; border-radius: 5px; background: var(--accent); min-width: 3px; opacity: .9; transition: width .5s var(--ease); }
.funnel__row .num { text-align: right; color: var(--text); }
.niche { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; }
.niche__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--mono-bg); border: 1px solid var(--mono-line); }
.niche b { font-size: 14.5px; font-weight: 600; display: block; line-height: 1.2; }
.niche small { font-size: 12px; color: var(--muted); }
.niche__score { text-align: right; }
.niche__score .num { font-size: 18px; display: block; line-height: 1; }
.niche__score small { font-size: 11px; color: var(--muted); }
.niche--top { box-shadow: inset 0 0 0 1px var(--accent), inset 0 1px 0 var(--glass-top); }

/* ───── Les leads : carte (téléphone) ───── */
.lead-wrap { position: relative; }
.lead { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; }
.lead__corps { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.lead__haut { display: flex; align-items: flex-start; gap: 8px; }
.lead__nom { font-size: 16px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.lead__sous { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lead__etat { margin-top: 7px; }
/* LA raison d'appeler : une seule, en couleur (grave, à creuser, détail). */
.lead__raison { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; font-size: 14px; font-weight: 600; line-height: 1.3; background: var(--st-dim-bg); color: var(--text-2); }
.lead__raison--fort { background: var(--st-no-bg); color: var(--st-no); }
.lead__raison--moyen { background: var(--st-warm-bg); color: var(--st-warm); }
.lead__raison .dot { transform: none; }
.lead__faits { font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.lead__act { display: flex; gap: 8px; }
.lead__appel { flex: 1; min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; background: var(--ink); color: var(--on-ink); font-size: 16px; font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lead__appel--vide { background: var(--veil-2); color: var(--text); font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
.lead__fiche { flex: none; width: 46px; min-height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--veil); color: var(--text-2); }
.lead__appel:active, .lead__fiche:active { opacity: .75; }
/* Le tableau (ordinateur) garde ses pastilles et sa liste de problèmes. */
.lead__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.lead__pb { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.lead__pb span { display: flex; gap: 7px; align-items: baseline; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; transform: translateY(-1px); }
.dot--fort { background: var(--st-no); } .dot--moyen { background: var(--st-warm); } .dot--faible { background: var(--st-dim); }
.score { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 13px; background: var(--ink); color: var(--on-ink); flex: none; line-height: 1; }
.score b { font-size: 16px; font-weight: 700; }
.score small { font-size: 8.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; opacity: .8; }
.score--moyen { background: var(--veil-2); color: var(--text); }
.score--faible { background: var(--veil); color: var(--muted); }
.score--mini { min-width: 38px; height: 30px; border-radius: 9px; }
.score--mini b { font-size: 14px; }

/* ───── Les leads : tableau (ordinateur) ───── */
.tl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tl th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tl tbody tr { cursor: pointer; transition: background var(--dur); }
.tl tbody tr:hover { background: var(--veil); }
.tl .tl__nom { font-weight: 650; font-size: 14px; line-height: 1.25; }
.tl .tl__sous { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl .tl__tel { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.tl .tl__tel:hover { color: var(--on-accent-soft); }
.tl .num { white-space: nowrap; }
.tl-wrap { overflow: auto; border-radius: var(--r-card); }
.tl .lead__pb { font-size: 12px; min-width: 200px; }

/* ───── La carte du lead ───── */
.hero { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.hero h2 { font-size: 26px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.hero small { font-size: 13px; color: var(--muted); }
.hero__tel { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border: 0; border-radius: 12px; font-size: 20px; font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--text); background: var(--veil-2); }
.hero .chips { margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { padding: 12px 14px; border-radius: 16px; background: var(--glass-plat); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.fact .v { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }
.fact .v--txt { font-size: 15px; }
.fact small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.signal { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); font-size: 14px; color: var(--text-2); line-height: 1.45; }
.signal i { font-style: normal; font-size: 18px; line-height: 1.2; }
.signal b { color: var(--text); display: block; }
.diag { display: flex; flex-direction: column; }
.diag__item { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.diag__item:first-child { border-top: 0; padding-top: 4px; }
.diag__item .dot { margin-top: 6px; }
.diag__titre { font-weight: 600; font-size: 14px; }
.diag__detail { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.diag__arg { font-size: 13px; color: var(--text-2); margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--accent); line-height: 1.4; }
.jauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.jauge { padding: 10px; border-radius: 14px; background: var(--glass-plat); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.jauge .num { font-size: 22px; display: block; }
.jauge .k { font-size: 10px; }
.jauge--ko .num { color: var(--st-no); } .jauge--moy .num { color: var(--st-warm); } .jauge--ok .num { color: var(--up); }
.history { display: grid; gap: 0; }
.history > div { display: grid; grid-template-columns: 14px 1fr; gap: 8px; font-size: 13px; color: var(--text-2); padding: 6px 0; line-height: 1.4; }
.history > div::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--veil-2); margin-top: 6px; }
.history small { color: var(--muted); display: block; font-size: 11.5px; }
.history .hist--appel::before { background: var(--accent); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.res { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--veil); font-size: 14.5px; font-weight: 600; color: var(--text-2); border: 0; text-align: left; transition: background var(--dur), color var(--dur); }
.res i { font-style: normal; font-size: 18px; }
.res.on { background: var(--ink); color: var(--on-ink); }

/* ───── Le suivi ───── */
.day { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.day--late { color: var(--st-no); }
.todo { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 64px 12px 14px; border-radius: 16px; min-height: 64px; }
.todo .h { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.day--late + .liste .todo .h { color: var(--st-no); }
.todo b { font-size: 14.5px; font-weight: 600; display: block; line-height: 1.25; }
.todo small { font-size: 12.5px; color: var(--muted); }
.call { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-ink); background: var(--ink); }
.lead-wrap .todo ~ .call { top: 50%; transform: translateY(-50%); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 6px; }
.kpis .num { font-size: 26px; display: block; line-height: 1; }
.kpis .k { margin-top: 6px; }

/* ───── Les tableaux ───── */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 9px 8px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; white-space: normal; }
.table th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.table tbody tr:hover { background: var(--veil); }
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 100px; }
.bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.bars i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--accent); min-height: 2px; }
.bars small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }

/* ───── Le chercheur de niches ───── */
.trouve { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.trouve__haut { display: flex; align-items: center; gap: 12px; }
.trouve__score { margin-left: auto; text-align: right; }
.trouve__score .num { font-size: 22px; display: block; line-height: 1; }
.trouve__barres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.trouve__barres div { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.trouve__barres i { display: block; height: 5px; border-radius: 3px; background: var(--veil-2); overflow: hidden; }
.trouve__barres i b { display: block; height: 100%; background: var(--accent); }
.trouve__pourquoi { font-size: 13px; color: var(--text-2); line-height: 1.45; }

/* ───── Connexion ───── */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.login__card { width: 100%; max-width: 380px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.login__logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 4px; display: block; }
.login .h1 { text-align: center; }
