/* À pic · tableau de bord (tableau.html, rendu par tableau.js), version conforme à l'étude du 23/11/2026.
 * Uniquement les variables de la charte (app.css / site.css, charte v4 « Jade et framboise ») : le tableau suit la refonte.
 * Graphique d'activité : barres bleues (entreprises contactées) + ligne jade (rendez-vous), un seul axe ; couleurs validées
 * avec le validateur du skill dataviz (daltonisme et contraste). Les étiquettes restent en encre, jamais en couleur. */
.page-tableau {
  display: block; height: auto; min-height: 100%;
  --viz-1: var(--accent-3, #4F7FE0); --viz-2: var(--accent-deep, #1F9A75);
  --viz-track: color-mix(in srgb, var(--viz-1) 12%, var(--surface));
  --tb-gap: 16px;
}
.page-tableau .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-tableau a { text-decoration: none; }
.tb-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ---------- Coquille : navigation latérale (bureau) ou onglets (mobile) ---------- */
.tb-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.tb-nav { position: sticky; top: 0; align-self: start; padding: 28px 12px 28px 24px; }
.tb-nav__in { display: grid; gap: 4px; }
.tb-nav [role="tab"] { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-2); font: 600 var(--text-sm)/1 var(--font-ui); text-align: left; cursor: pointer; transition: background-color var(--dur-2) var(--ease-standard), color var(--dur-2) var(--ease-standard); }
.tb-nav [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.tb-nav [role="tab"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .tb-nav [role="tab"][aria-selected="false"]:hover { background: var(--surface); color: var(--ink); } }
.tb-nav__n { min-width: 24px; padding: 4px 7px; border-radius: var(--pill); background: var(--accent); color: var(--ink); font: 700 var(--text-2xs)/1 var(--font-ui); text-align: center; font-variant-numeric: tabular-nums; }
.tb { min-width: 0; padding: 28px 24px 64px; outline: none; }
.tb-panel { outline: none; }
.tb-load { color: var(--ink-3); }

/* ---------- En-tête de page ---------- */
.tb-demo { margin: 0 0 20px; padding: 12px 18px; border-radius: var(--r-md); background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--ink); font-size: var(--text-xs); }
.tb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.tb-head h1 { margin: 0; font: 800 clamp(1.9rem, 3.2vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -0.045em; }
.tb-head__sub { margin: 8px 0 0; max-width: 72ch; color: var(--ink-2); font-size: var(--text-sm); }
.tb-head__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Contrôle segmenté (période, vues) : radios natives, pilule */
.tb-seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tb-seg label { position: relative; display: inline-flex; }
.tb-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tb-seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: var(--pill); font: 600 var(--text-2xs)/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; transition: background-color var(--dur-2) var(--ease-standard), color var(--dur-2) var(--ease-standard); }
.tb-seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.tb-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .tb-seg input:not(:checked):hover + span { color: var(--ink); background: var(--bg); } }
.tb-seg--sm span { min-height: 32px; padding: 0 12px; }

/* ---------- Grille de blocs ---------- */
.tb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--tb-gap); align-items: start; }
.tb-b { grid-column: span 12; min-width: 0; padding: 22px 24px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -32px color-mix(in srgb, var(--night) 40%, transparent); }
.tb-b[data-span="7"] { grid-column: span 7; } .tb-b[data-span="6"] { grid-column: span 6; } .tb-b[data-span="5"] { grid-column: span 5; }
.tb-b--nu { padding: 18px; }
.tb-b__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.tb-b__t { margin: 0; font: 750 1.25rem/1.15 var(--font-display); letter-spacing: -0.025em; }
.tb-b__sub { margin: -6px 0 14px; color: var(--ink-3); font-size: var(--text-xs); }
.tb-b__aside { margin: 0; color: var(--ink-3); font-size: var(--text-2xs); }
.tb-vide-txt { margin: 0 0 12px; max-width: 62ch; color: var(--ink-2); font-size: var(--text-sm); }
.tb-lien { padding: 6px 0; border: 0; background: none; color: var(--link); font: 600 var(--text-xs)/1.2 var(--font-ui); cursor: pointer; text-align: left; }
.tb-lien--clair { color: var(--accent-on-night, var(--on-ink)); }
@media (hover: hover) and (pointer: fine) { .tb-lien:hover { color: var(--ink); } .tb-lien--clair:hover { color: var(--on-ink); } }
.tb-lien:focus-visible, .tb-x:focus-visible, .tb-ord:focus-visible, .tb-card__b:focus-visible, .tb-liste__nom:focus-visible, .tb-chart:focus-visible, .tb-table summary:focus-visible, .tb-pipe__t:focus-visible, .tb-pipe__s:focus-visible, .tb-tache__nom:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tb-prov { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--pill); font: 600 0.75rem/1 var(--font-ui); white-space: nowrap; vertical-align: middle; }
.tb-prov--decl { background: var(--paper-2, var(--bg)); color: var(--accent-ink, var(--ink-2)); box-shadow: inset 0 0 0 1px var(--accent-line, var(--line)); }
.tb-prov--calc { background: var(--paper-3, var(--bg)); color: var(--accent-3-ink, var(--ink-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-3, var(--ink)) 30%, transparent); }
.tb-insuff { color: var(--ink-3); font-size: var(--text-2xs); }

/* ---------- Signature : « À faire aujourd'hui » sur fond nuit, par canal, à la taille de son contenu ---------- */
.tb-b--afaire { background: var(--night); color: var(--on-ink); box-shadow: none; }
.tb-b--afaire .tb-b__t { color: var(--on-ink); font-size: 1.5rem; }
.tb-date { font: 500 var(--text-2xs)/1 var(--font-data); color: var(--on-night-2); text-transform: capitalize; }
.tb-groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.tb-groupes[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.tb-groupe { padding: 14px 16px 10px; border-radius: var(--r-md); background: var(--night-2); }
.tb-groupe--retard { box-shadow: inset 3px 0 0 var(--accent-2-on-night, var(--accent)); }
.tb-groupe__t { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 700 var(--text-sm)/1.2 var(--font-ui); color: var(--on-ink); }
.tb-groupe__n { min-width: 22px; padding: 3px 7px; border-radius: var(--pill); background: color-mix(in srgb, var(--on-ink) 14%, transparent); font: 700 var(--text-2xs)/1 var(--font-ui); text-align: center; }
.tb-taches { list-style: none; margin: 0; padding: 0; }
.tb-tache { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 12%, transparent); }
.tb-tache:first-child { border-top: 0; }
.tb-tache .tb-chip { grid-column: 1 / -1; }
.tb-tache__t p { margin: 0; }
.tb-tache__nom { padding: 0; border: 0; background: none; color: var(--on-ink); font: 400 var(--text-sm)/1.35 var(--font-ui); text-align: left; cursor: pointer; border-radius: var(--r-xs); }
.tb-tache__nom b { font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .tb-tache__nom:hover b { color: var(--accent-on-night, var(--on-ink)); } }
.tb-tache__c { margin-top: 3px !important; color: var(--on-night-2); font-size: var(--text-2xs); }
.tb-tache__a { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tb-chip { justify-self: start; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--pill); font: 600 var(--text-2xs)/1 var(--font-ui); white-space: nowrap; }
.tb-chip--retard { background: var(--accent-2-on-night, var(--accent)); color: var(--ink); }
.tb-b--afaire .btn { min-height: 36px; padding: 0 14px; }
.tb-btn-clair { background: transparent; color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 35%, transparent); }
.tb-btn-fait { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tb-btn-clair:hover { border-color: var(--on-ink); } .tb-btn-fait:hover { background: var(--accent-on-night, var(--accent-deep)); border-color: var(--accent-on-night, var(--accent-deep)); } }
.tb-b--afaire .btn:focus-visible, .tb-b--afaire .tb-lien:focus-visible, .tb-b--afaire .tb-tache__nom:focus-visible { outline: 2px solid var(--accent-on-night, var(--on-ink)); outline-offset: 2px; }
.tb-afaire__pied { margin: 10px 0 0; }
.tb-calme { padding: 2px 0; }
.tb-calme__t { margin: 0 0 6px; font: 700 1.15rem/1.3 var(--font-display); color: var(--on-ink); }
.tb-calme p { margin: 0 0 6px; color: var(--on-night-2); font-size: var(--text-sm); max-width: 66ch; }
.tb-calme__l { margin: 0; padding-left: 18px; color: var(--on-night-2); font-size: var(--text-sm); }
.tb-calme__l li { padding: 2px 0; }

/* ---------- Indicateurs clés ---------- */
.tb-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tb-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border-radius: var(--r-md); background: var(--bg); }
.tb-kpi--cle { background: var(--accent-wash); }
.tb-kpi__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tb-kpi__l { margin: 0; font-size: var(--text-xs); font-weight: 650; color: var(--ink); }
.tb-kpi__v { margin: 4px 0 0; font: 750 2.1rem/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }
.tb-kpi__v.is-petit { font: 700 1.05rem/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink-2); padding: 6px 0 4px; }
.tb-kpi__p { margin: 0; font-size: var(--text-2xs); color: var(--ink-3); }
.tb-kpi__d { margin: 0; font-size: var(--text-2xs); color: var(--ink-2); }
.tb-kpi .tb-lien { margin-top: auto; padding-top: 6px; }

/* ---------- Pipeline condensé ---------- */
.tb-pipe { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tb-pipe__t { position: relative; display: grid; gap: 6px; width: 100%; height: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-md); background: var(--bg); color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: background-color var(--dur-2) var(--ease-standard); }
.tb-pipe__t::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--viz-1); opacity: 0.7; }
.tb-pipe__l { font-size: var(--text-2xs); font-weight: 600; color: var(--ink-2); }
.tb-pipe__t b { font: 750 1.6rem/1 var(--font-display); letter-spacing: -0.03em; }
.tb-pipe__b { font-size: 0.75rem; color: var(--warn); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .tb-pipe__t:hover { background: var(--paper-3, var(--bg)); } .tb-pipe__s:hover { border-color: var(--ink-3); } }
.tb-pipe__sorties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-2xs); color: var(--ink-3); }
.tb-pipe__sorties > span { font-weight: 600; margin-right: 4px; }
.tb-pipe__s { min-height: 34px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: var(--pill); background: var(--surface); color: var(--ink-2); font: 600 var(--text-2xs)/1 var(--font-ui); cursor: pointer; }
.tb-pipe__s b { color: var(--ink); margin-left: 4px; }

/* ---------- Graphiques ---------- */
.tb-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--text-2xs); color: var(--ink-2); }
.tb-leg li { display: inline-flex; align-items: center; gap: 7px; }
.tb-key { display: inline-block; flex: none; }
.tb-key--barre { width: 10px; height: 12px; border-radius: 3px 3px 0 0; background: var(--viz-1); }
.tb-key--ligne { width: 16px; height: 3px; border-radius: 2px; background: var(--viz-2); }
.tb-chart { position: relative; border-radius: var(--r-sm); }
.tb-chart svg { display: block; overflow: visible; }
.tb-grid-l { stroke: var(--line); stroke-width: 1; }
.tb-axe { font: 500 11px var(--font-data); fill: var(--ink-3); }
.tb-bar { fill: var(--viz-1); transform-box: fill-box; transform-origin: center bottom; }
.tb-line { fill: none; stroke: var(--viz-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tb-dot { fill: var(--viz-2); stroke: var(--surface); stroke-width: 2; }
.tb-hl { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.tb-hit { fill: transparent; }
.tb-tip { position: absolute; left: 0; top: 0; z-index: 2; min-width: 200px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 28px -12px color-mix(in srgb, var(--night) 35%, transparent); pointer-events: none; font-size: var(--text-2xs); }
.tb-tip p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tb-tip p + p { margin-top: 5px; }
.tb-tip b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-tip__t { margin-bottom: 7px !important; color: var(--ink) !important; font-weight: 700; }
.tb-table { margin-top: 12px; font-size: var(--text-2xs); }
.tb-table summary { display: inline-flex; align-items: center; min-height: 32px; color: var(--link); font-weight: 600; cursor: pointer; border-radius: var(--r-xs); }
.tb-table__in { overflow-x: auto; margin-top: 6px; }
.tb-table table, .tb-stab { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tb-table th, .tb-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb-table th:first-child { text-align: left; }
.tb-table thead th, .tb-stab thead th { color: var(--ink-3); font-weight: 600; }
.tb-stab { font-size: var(--text-xs); }
.tb-stab th, .tb-stab td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tb-stab thead th { font-size: var(--text-2xs); }
.tb-stab tbody th { font-weight: 600; }
.tb-stab small { color: var(--ink-3); margin-left: 4px; }
.tb-sig { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ink-3); vertical-align: 1px; flex: none; }
.tb-sig--creation { background: var(--signal-creation, var(--accent)); } .tb-sig--nouvel_etab { background: var(--accent-ink, var(--accent)); }
.tb-sig--bodacc { background: var(--signal-bodacc, var(--ink-2)); } .tb-sig--boamp { background: var(--signal-boamp, var(--ink-2)); } .tb-sig--site { background: var(--signal-web, var(--ink-2)); }

/* Barres horizontales, entonnoir */
.tb-hbars { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.tb-hbars li { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr) minmax(64px, auto); align-items: center; gap: 12px; }
.tb-hbars__l { display: flex; align-items: center; font-size: var(--text-xs); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-hbars__track, .tb-funnel__track { height: 12px; border-radius: 4px; background: var(--viz-track); }
.tb-hbars__track i, .tb-funnel__track i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--viz-1); transform-origin: left center; }
.tb-hbars__v { display: grid; text-align: right; font-size: var(--text-xs); }
.tb-hbars__v b { font-variant-numeric: tabular-nums; }
.tb-hbars__v small { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }
.tb-funnel { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.tb-funnel li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "l p" "t p"; gap: 6px 10px; align-items: center; }
.tb-funnel__l { grid-area: l; display: flex; justify-content: space-between; gap: 8px; font-size: var(--text-xs); color: var(--ink-2); }
.tb-funnel__l b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-funnel__track { grid-area: t; }
.tb-funnel__p { grid-area: p; align-self: end; text-align: right; font: 600 var(--text-2xs)/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tb-hero { margin: 0 0 14px; display: grid; gap: 6px; }
.tb-hero b { font: 800 2.4rem/1 var(--font-display); letter-spacing: -0.04em; }
.tb-hero span { color: var(--ink-2); font-size: var(--text-xs); }
.tb-motifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-motifs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg); font-size: var(--text-xs); }

/* ---------- Objectifs ---------- */
.tb-objs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tb-obj__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.tb-obj__l { margin: 0; font-size: var(--text-xs); font-weight: 600; }
.tb-obj__v { margin: 0; font: 750 1.3rem/1 var(--font-display); white-space: nowrap; }
.tb-obj__v span { font: 500 var(--text-xs)/1 var(--font-ui); color: var(--ink-3); }
.tb-objs .note { margin-top: 6px; }
.tb-meter { height: 8px; border-radius: var(--pill); background: var(--viz-track); overflow: hidden; }
.tb-meter i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: var(--pill); background: var(--viz-1); transform-origin: left center; }
.tb-meter--fin { height: 6px; }
.tb-regul { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tb-regul__t { margin: 0 0 10px; font-size: var(--text-xs); color: var(--ink-2); }
.tb-regul__s { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tb-regul__s li { display: grid; justify-items: center; gap: 4px; }
.tb-regul__c { width: 100%; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.tb-regul__s li.is-ok .tb-regul__c { background: var(--viz-2); box-shadow: none; }
.tb-regul__d { font: 500 0.6875rem/1 var(--font-data); color: var(--ink-3); }

/* ---------- Accès rapides, offre ---------- */
.tb-acces__l { margin: 0 0 6px; font-size: var(--text-2xs); font-weight: 600; color: var(--ink-3); }
.tb-acces__r { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.tb-acces__r li { display: flex; justify-content: space-between; gap: 10px; font-size: var(--text-xs); }
.tb-acces__r a { color: var(--link); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-acces__r span { color: var(--ink-3); font-size: var(--text-2xs); white-space: nowrap; }
.tb-acces__b { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tb-acces__o { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--text-2xs); color: var(--ink-3); }
.tb-acces__o a { color: var(--link); font-weight: 600; }
.tb-quota { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tb-quota__l { margin: 0 0 4px; font-size: var(--text-xs); color: var(--ink-2); font-weight: 600; }
.tb-quota__v { margin: 0 0 8px; font-size: var(--text-xs); color: var(--ink-3); }
.tb-quota__v b { font: 750 1.4rem/1 var(--font-display); color: var(--ink); margin-right: 2px; }
.tb-quota .note { margin-top: 8px; }

/* ---------- Bienvenue (compte neuf) ---------- */
.tb-hello { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.tb-hello__t .tb-b__t { font-size: 1.6rem; margin-bottom: 10px; }
.tb-hello__t p { margin: 0 0 18px; color: var(--ink-2); max-width: 52ch; }
.tb-hello__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-hello__steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); }
.tb-hello__steps li.is-next { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tb-hello__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); font: 700 var(--text-2xs)/1 var(--font-ui); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tb-hello__steps li.is-fait .tb-hello__n { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.tb-hello__s { margin: 4px 0 0; font-weight: 700; font-size: var(--text-sm); }
.tb-hello__steps li.is-fait .tb-hello__s { color: var(--ink-3); }
.tb-hello__etat { margin-left: 6px; font: 500 var(--text-2xs)/1 var(--font-ui); color: var(--ink-3); }
.tb-hello__d { margin: 4px 0 0; font-size: var(--text-xs); color: var(--ink-2); }
.card-tb { max-width: 620px; padding: 32px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.card-tb h1 { margin: 0 0 10px; font: 750 1.6rem/1.2 var(--font-display); letter-spacing: -0.03em; }
.card-tb p { margin: 0 0 20px; color: var(--ink-2); }
.tb-porte__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Mes prospects : colonnes et liste ---------- */
.tb-kanban { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.tb-kanban__sep { display: grid; place-items: center; flex: 0 0 24px; }
.tb-kanban__sep span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 var(--text-2xs)/1 var(--font-ui); color: var(--ink-3); letter-spacing: 0.04em; }
.tb-kanban > .tb-col { flex: 1 0 200px; }
.tb-col { display: flex; flex-direction: column; min-height: 240px; padding: 10px; border-radius: var(--r-md); background: var(--bg); scroll-snap-align: start; transition: background-color var(--dur-2) var(--ease-standard), box-shadow var(--dur-2) var(--ease-standard); }
.tb-col.is-over { background: var(--accent-wash); box-shadow: inset 0 0 0 2px var(--accent-deep); }
.tb-col--fin { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tb-col__t { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 4px 10px; font: 700 var(--text-xs)/1.2 var(--font-ui); }
.tb-col__n { min-width: 24px; padding: 3px 7px; border-radius: var(--pill); background: var(--surface); font: 650 var(--text-2xs)/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: center; }
.tb-col__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; flex: 1; }
.tb-col__vide { padding: 14px 10px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--ink-3); font-size: var(--text-2xs); text-align: center; }
.tb-col__plus { width: 100%; min-height: 40px; border: 1px dashed var(--line-strong); border-radius: var(--pill); background: transparent; font: 600 var(--text-2xs)/1 var(--font-ui); color: var(--ink-2); cursor: pointer; }
.tb-col__plus:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tb-card { position: relative; border-radius: var(--r-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px color-mix(in srgb, var(--night) 6%, transparent); cursor: grab; transition: box-shadow var(--dur-2) var(--ease-standard), opacity var(--dur-2) var(--ease-standard); }
.tb-card.is-drag { opacity: 0.5; cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .tb-card:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 8px 18px -12px color-mix(in srgb, var(--night) 35%, transparent); } .tb-col__plus:hover { border-color: var(--ink-3); color: var(--ink); } }
.tb-card__b { display: grid; gap: 3px; width: 100%; padding: 11px 12px 8px; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: var(--r-sm); }
.tb-card__n { font-weight: 700; font-size: var(--text-xs); line-height: 1.25; }
.tb-card__m { font-size: 0.75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-card__s { margin-top: 3px; font-size: 0.75rem; color: var(--ink-2); font-weight: 600; }
.tb-card__s.is-retard, .tb-liste td.is-retard { color: var(--warn); }
.tb-card__move { display: block; padding: 0 8px 8px; }
.tb-card__sel, .tb-liste__sel, .tb-filtre select, .tb-filtre input, .tb-step input, .tb-input { width: 100%; min-height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' fill='none' stroke='%235D6678' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center / 10px; font: 500 var(--text-2xs)/1 var(--font-ui); color: var(--ink-2); appearance: none; cursor: pointer; }
.tb-card__sel:focus-visible, .tb-liste__sel:focus-visible, .tb-filtre select:focus-visible, .tb-filtre input:focus-visible, .tb-step input:focus-visible, .tb-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tb-pipe-vide__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.tb-pipe-vide__cols span { padding: 10px; min-height: 72px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); font-size: var(--text-2xs); font-weight: 600; color: var(--ink-3); }
.tb-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.tb-filtre { display: grid; gap: 5px; font-size: var(--text-2xs); font-weight: 600; color: var(--ink-2); }
.tb-filtre input { width: min(280px, 100%); min-height: 40px; background-image: none; padding-right: 12px; font-size: var(--text-base); cursor: text; }
.tb-filtre select { min-height: 40px; min-width: 190px; font-size: var(--text-xs); }
.tb-filtres__n { margin: 0 0 10px auto; font-size: var(--text-2xs); color: var(--ink-3); }
.tb-liste { overflow-x: auto; }
.tb-liste table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.tb-liste th, .tb-liste td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb-liste thead th { padding: 0 4px; font-size: var(--text-2xs); color: var(--ink-3); white-space: nowrap; }
.tb-liste thead button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 8px; border: 0; background: none; border-radius: var(--r-xs); font: 600 var(--text-2xs)/1 var(--font-ui); color: inherit; cursor: pointer; }
.tb-liste thead button svg { width: 9px; height: 9px; fill: currentColor; opacity: 0.7; }
.tb-liste thead th[aria-sort="ascending"] button, .tb-liste thead th[aria-sort="descending"] button { color: var(--ink); }
.tb-liste thead button:focus-visible { outline: 2px solid var(--focus); }
.tb-liste__nom { padding: 4px 0; border: 0; background: none; font: 700 var(--text-xs)/1.3 var(--font-ui); color: var(--ink); text-align: left; cursor: pointer; border-radius: var(--r-xs); }
@media (hover: hover) and (pointer: fine) { .tb-liste__nom:hover { color: var(--link); } .tb-liste tbody tr:hover { background: var(--hover-surface); } }
.tb-liste__sel { width: auto; min-width: 160px; }
.tb-liste__vide { padding: 22px 12px !important; color: var(--ink-3); text-align: center !important; }

/* ---------- Relances : liste chronologique ---------- */
.tb-relg + .tb-relg { margin-top: 20px; }
.tb-relg__t { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 1rem/1.2 var(--font-display); }
.tb-relg__t span { min-width: 22px; padding: 3px 7px; border-radius: var(--pill); background: var(--bg); font: 650 var(--text-2xs)/1 var(--font-ui); text-align: center; }
.tb-rels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-rel { display: grid; grid-template-columns: 200px 170px minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--bg); font-size: var(--text-xs); }
.tb-rel.is-retard { box-shadow: inset 3px 0 0 var(--accent-2, var(--warn)); }
.tb-rel__d { font-weight: 650; text-transform: capitalize; }
.tb-rel__d small { display: block; font-weight: 600; color: var(--accent-2-ink, var(--warn)); text-transform: none; }
.tb-rel__c { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.tb-canal { width: 10px; height: 10px; border-radius: 3px; background: var(--ink-3); }
.tb-canal--appel { background: var(--accent-3, var(--ink-2)); } .tb-canal--linkedin { background: var(--signal-bodacc, var(--ink-2)); } .tb-canal--mail2 { background: var(--accent, var(--ink-2)); } .tb-canal--reprise { background: var(--warn-line, var(--ink-2)); }
.tb-rel__e { display: grid; min-width: 0; }
.tb-rel__e small { color: var(--ink-3); font-size: var(--text-2xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-rel__a { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tb-rel-notes { margin: 16px 0 0; padding-left: 18px; font-size: var(--text-xs); color: var(--ink-2); }
.tb-rel-notes:empty { display: none; }

/* ---------- Réglages ---------- */
.tb-field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.tb-field__l { display: block; margin: 0 0 8px; font-weight: 650; font-size: var(--text-xs); }
.tb-step { display: flex; align-items: center; gap: 8px; }
.tb-step input { width: 90px; min-height: 44px; padding: 0 12px; text-align: center; background-image: none; font: 700 var(--text-base)/1 var(--font-ui); color: var(--ink); cursor: text; }
.tb-step .btn { width: 44px; padding: 0; font-size: 1.2rem; }
.tb-input { max-width: 200px; min-height: 44px; padding: 0 12px; background-image: none; font: 600 var(--text-base)/1 var(--font-ui); color: var(--ink); cursor: text; }
.tb-blocs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-blocs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; border-radius: var(--r-sm); background: var(--bg); }
.tb-blocs__c { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: var(--text-xs); cursor: pointer; }
.tb-blocs__c input, .tb-switch input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.tb-blocs__o { display: inline-flex; gap: 4px; }
.tb-ord { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.tb-ord:disabled { opacity: 0.35; cursor: not-allowed; }
.tb-x svg, .tb-ord svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 9px; border-radius: var(--pill); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); font: 600 0.75rem/1 var(--font-ui); vertical-align: middle; }
.tb-switch { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; font-size: var(--text-xs); color: var(--ink-2); cursor: pointer; }

/* ---------- Fiche d'une entreprise (panneau latéral) ---------- */
.tb-dlg { padding: 0; border: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-modal); }
.tb-dlg::backdrop { background: var(--scrim); }
.tb-dlg--side { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(500px, 100vw); max-width: none; height: 100dvh; max-height: none; border-radius: var(--r-lg) 0 0 var(--r-lg); overflow-y: auto; overscroll-behavior: contain; }
.tb-dlg__in { padding: 24px 24px 32px; }
.tb-dlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tb-dlg h2 { margin: 0; font: 750 1.4rem/1.15 var(--font-display); letter-spacing: -0.03em; }
.tb-dlg h3 { margin: 0 0 10px; font: 700 1.0625rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.tb-x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.tb-fiche .tb-b__sub { margin: 6px 0 0; }
.tb-fiche .etape-box { margin-top: 0; padding-top: 0; border-top: 0; }
.tb-fiche__s { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tb-fiche__etat { margin: 0 0 10px; font-size: var(--text-xs); color: var(--ink-2); }
.tb-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-plan li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-xs); font-weight: 600; }
.tb-plan li.is-retard { box-shadow: inset 0 0 0 1px var(--warn-line); }
.tb-plan li.is-retard .tb-plan__ok span { color: var(--warn); font-weight: 600; }
.tb-plan__j { font: 600 var(--text-2xs)/1 var(--font-data); color: var(--ink-3); }
.tb-plan__d, .tb-plan__ok span { font-size: 0.8rem; color: var(--ink-3); font-weight: 500; }
.tb-plan__a { display: inline-flex; align-items: center; gap: 10px; }
.tb-plan__ok { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tb-plan__ok input { width: 18px; height: 18px; accent-color: var(--ink); }
.tb-fiche .draft { min-height: 170px; }
.tb-fiche__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.tb-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 8px; font-size: var(--text-xs); }
.tb-dl dt { color: var(--ink-3); } .tb-dl dd { margin: 0; display: flex; align-items: center; }
.tb-fiche__liens { margin: 12px 0 0; } .tb-fiche__liens a { color: var(--link); font-weight: 600; font-size: var(--text-xs); }
.tb-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--text-xs); }
.tb-hist li { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: baseline; }
.tb-hist__d { font: 500 var(--text-2xs)/1.5 var(--font-data); color: var(--ink-3); }

/* ---------- Mouvement : une entrée à l'ouverture d'un onglet, rien sur les actions répétées ---------- */
.tb-dlg--side[open] { animation: tb-tiroir var(--dur-4) var(--ease-drawer); }
.tb-dlg[open]::backdrop { animation: tb-voile var(--dur-3) var(--ease-out); }
.tb-panel.is-intro .tb-b { animation: tb-monte 420ms var(--ease-out) both; }
.tb-panel.is-intro .tb-b:nth-child(2) { animation-delay: 40ms; } .tb-panel.is-intro .tb-b:nth-child(3) { animation-delay: 80ms; } .tb-panel.is-intro .tb-b:nth-child(n+4) { animation-delay: 120ms; }
.tb-panel.is-intro .tb-hbars__track i, .tb-panel.is-intro .tb-funnel__track i, .tb-panel.is-intro .tb-meter i { animation: tb-pousse-x 640ms var(--ease-out) 200ms both; }
.tb-panel.is-intro .tb-bar { animation: tb-pousse-y 560ms var(--ease-out) both; animation-delay: calc(200ms + var(--i, 0) * 30ms); }
.tb-panel.is-intro .tb-line { stroke-dasharray: 1; animation: tb-trace 900ms var(--ease-out) 300ms both; }
@keyframes tb-monte { from { opacity: 0; transform: translateY(10px); } }
@keyframes tb-pousse-x { from { transform: scaleX(0); } }
@keyframes tb-pousse-y { from { transform: scaleY(0); } }
@keyframes tb-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tb-tiroir { from { transform: translateX(32px); opacity: 0; } }
@keyframes tb-voile { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tb-panel.is-intro .tb-b, .tb-panel.is-intro .tb-hbars__track i, .tb-panel.is-intro .tb-funnel__track i, .tb-panel.is-intro .tb-meter i, .tb-panel.is-intro .tb-bar, .tb-panel.is-intro .tb-line { animation: none; }
  .tb-dlg--side[open] { animation: tb-voile var(--dur-2) linear; }
  .tb-seg span, .tb-card, .tb-col, .tb-nav [role="tab"], .tb-pipe__t { transition: none; }
}
@media (forced-colors: active) { .tb-meter i, .tb-funnel__track i, .tb-hbars__track i, .tb-bar { background: CanvasText; fill: CanvasText; } .tb-line { stroke: CanvasText; } .tb-regul__s li.is-ok .tb-regul__c { background: CanvasText; } }

/* ---------- Tailles d'écran ---------- */
@media (max-width: 1240px) { .tb-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .tb-shell { grid-template-columns: minmax(0, 1fr); }
  .tb-nav { position: sticky; top: 0; z-index: 20; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); }
  .tb-nav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .tb-nav [role="tab"] { flex: none; min-height: 40px; }
  .tb-b[data-span="7"], .tb-b[data-span="5"], .tb-b[data-span="6"] { grid-column: span 12; }
  .tb-pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-hello { grid-template-columns: 1fr; gap: 20px; }
  .tb-rel { grid-template-columns: 160px minmax(0, 1fr) auto; } .tb-rel__c { grid-column: 1; grid-row: 2; }
}
@media (max-width: 700px) {
  .tb { padding: 20px 16px 48px; }
  .tb-nav { padding: 8px 16px; }
  .page-tableau .top .btn--primary { display: none; }
  .tb-head__ctl { width: 100%; justify-content: space-between; }
  .tb-b { padding: 18px 16px 20px; border-radius: var(--r-md); }
  .tb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tb-kpi { padding: 12px; }
  .tb-kpi:first-child { grid-column: 1 / -1; }
  .tb-kpi__v { font-size: 1.7rem; }
  .tb-kpi__h { flex-direction: column; gap: 6px; }
  .tb-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-quota { grid-template-columns: 1fr; gap: 18px; }
  .tb-groupes { grid-template-columns: minmax(0, 1fr); }
  .tb-hbars li { grid-template-columns: minmax(0, 1fr) minmax(64px, auto); grid-template-areas: "l v" "t t"; gap: 4px 10px; }
  .tb-hbars__l { grid-area: l; } .tb-hbars__track { grid-area: t; height: 10px; } .tb-hbars__v { grid-area: v; }
  .tb-kanban > .tb-col { flex-basis: 78%; }
  .tb-pipe-vide__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-filtre, .tb-filtre input, .tb-filtre select { width: 100%; min-width: 0; }
  .tb-filtres__n { margin-left: 0; }
  .tb-rel { grid-template-columns: minmax(0, 1fr); gap: 6px; } .tb-rel__c { grid-column: auto; grid-row: auto; } .tb-rel__a { justify-content: flex-start; }
  .tb-regul__s { gap: 4px; }
  /* Liste en cartes : chaque ligne devient un bloc, les intitulés viennent de data-l */
  .tb-liste table, .tb-liste tbody, .tb-liste tr, .tb-liste th, .tb-liste td, .tb-liste thead { display: block; }
  .tb-liste thead tr { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
  .tb-liste thead th { border: 0; padding: 0; }
  .tb-liste tbody tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tb-liste tbody th, .tb-liste tbody td { border: 0; padding: 3px 0; }
  .tb-liste tbody td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: center; }
  .tb-liste tbody td::before { content: attr(data-l); color: var(--ink-3); font-size: var(--text-2xs); }
  .tb-liste tbody td.tb-liste__vide { display: block; } .tb-liste tbody td.tb-liste__vide::before { content: none; }
  .tb-stab th, .tb-stab td { padding: 8px 6px; }
  .tb-dlg--side { width: 100vw; border-radius: 0; }
  .tb-dlg__in { padding: 20px 16px 28px; }
  .tb-dl { grid-template-columns: 96px 1fr; }
}
.tb-shell:has(> .tb-nav[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 1320px; }
@media (max-width: 700px) { .tb-tache { grid-template-columns: minmax(0, 1fr); } .tb-tache__a { justify-content: flex-start; } }
