/* ═══════════════════════════════════════════════════════════════════════════
   Fynomia — identité visuelle

   Parti pris : un instrument de mesure, pas une brochure. Encre presque noire
   sur papier froid, un seul bleu électrique qui ne sert qu'au signal, des
   chiffres en caractères à chasse fixe pour qu'ils s'alignent au pixel, des
   filets épais plutôt que des ombres, et des titres en grotesque serrée qui
   assument le ton.

   La couleur ne décore jamais : vert et rouge veulent dire gagné et perdu,
   le bleu veut dire « ici », l'ambre veut dire « regardez ça ».
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* Papier et encre.
     Le crème remplace le gris froid : il réchauffe la page sans la décorer,
     et fait tenir le noir profond sans le contraste violent d'un blanc pur. */
  --paper:      #F2F0E8;
  --surface:    #FFFFFF;
  --surface-2:  #FAF8F2;
  --ink:        #0E0F0C;
  --ink-2:      #24261F;
  --ink-3:      #4C4F45;
  --ink-4:      #7C7F72;
  --ink-5:      #A9ACA0;
  --rule:       #DCD9CD;
  --rule-strong:#0E0F0C;

  /* L'accent : un vert acide, emprunté au balisage de chantier.
     Il ne veut pas dire « bien », il veut dire « ici ». Il ne sert qu'à
     l'action en cours, au module ouvert et au bouton qui fait avancer. */
  --accent:     #B9F510;
  --accent-ink: #0E0F0C;
  --accent-dim: #A6DC0E;
  --accent-wash:#F1FCD3;

  /* Signal secondaire : le bleu ne décore plus, il relie les renvois. */
  /* Le « signal » était un bleu électrique, hors de la maison (fil 7f3fcc83,
     2 octobre) : liens, interrupteurs, repères actifs passent à l'encre, et
     leurs fonds clairs au vert lavé. */
  --signal:     #0E0F0C;
  --signal-ink: #0E0F0C;
  --signal-wash:#F1FCD3;

  /* Ce qui se travaille : le jaune, presque effacé.
     Une quatrième teinte avait été essayée — une prune — pour distinguer les
     réglages à affiner. Elle apportait un hue de plus à une palette qui en
     vivait très bien avec trois, et elle sortait du tableau. On garde donc les
     couleurs de la maison : le noir pour ce qui est actif, et le même jaune
     que partout ailleurs, dilué à quelques pour cent, pour teinter un fond
     sans jamais le colorer. */
  --tune:       var(--ink);
  --tune-ink:   var(--ink);
  --tune-wash:  rgba(185, 245, 16, .16);
  --tune-rule:  var(--rule);

  /* Sémantique : gagné, perdu, à surveiller */
  --gain:       #4A7300;
  --gain-wash:  #EEFBC6;
  --loss:       #B80F33;
  --loss-wash:  #FCE1E8;
  --warn:       #8A5A00;
  --warn-wash:  #F7EBCF;

  --display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* L'échelle des titres : un rôle, une valeur, partout.
     Il y en avait sept pour la même chose — un titre de bloc mesurait 15 px
     dans l'acquisition, 16 dans une carte, 17 dans la paie, 18 dans une liste,
     19 dans le tableau de bord, 21 dans l'analyse, 24 dans l'écran de
     validation. On lisait donc sept niveaux de hiérarchie là où il n'y a
     qu'une seule sorte de chose. Ces trois jetons sont désormais les seuls
     endroits où ces valeurs existent. */
  --t-block: 17px;      /* le titre d'un bloc : carte, panneau, section */
  --t-block-sub: 13px; /* la ligne qui l'explique, juste dessous */
  --t-row: 15px;      /* le titre d'une ligne à l'intérieur d'un bloc */

  /* Une application de travail, pas une affiche.
     L'interface avait été dessinée comme une page de présentation : un titre
     de module à 46 px, des onglets de 40 px, des cartes de 20 px de marge
     intérieure, des blocs séparés de 22 à 44 px. Sur un portable, on voyait
     un titre, trois onglets et le début d'une carte. Les tailles et les pas
     qui suivent sont les seuls à exister ; les composants les lisent. */
  --t-page: 36px;       /* le titre d'une page (H1) */
  --t-section: 22px;    /* le titre d'une section de page (H2) */
  --t-meta: 12px;     /* étiquettes, métadonnées, légendes */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --h-tab: 34px;        /* une barre d'onglets */
  --h-control: 36px;    /* un champ, un bouton courant */

  /* Largeurs : la page de travail d'abord. */
  --page-x: 28px;       /* marge latérale de la page */
  --page-top: 20px;     /* sous la barre du haut */
  --page-max: 1180px;   /* largeur utile */

  --rail-w: 204px;
  --live-w: 250px;
  --header-h: 48px;
  --impact-h: 62px;
  --space: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Pour ce qui prend de la place à l'écran : le mouvement s'amorce doucement,
     prend de la vitesse, puis se pose. C'est la courbe d'une porte lestée —
     rien ne jaillit, rien ne claque. */
  --ease-soft: cubic-bezier(.62, .02, .34, 1);
}

/* Trois paliers d'écran de bureau, pas un seul.
   Portable compact (jusqu'à 1440 px) : la barre latérale et les marges se
   resserrent, le titre de page descend d'un cran. Grand écran : la page
   s'élargit au lieu de flotter au milieu de deux bandes vides. */
@media (max-width: 1440px) {
  :root { --rail-w: 190px; --page-x: 24px; --page-top: 16px; --t-page: 30px; --space: 18px; }
}
@media (min-width: 1680px) {
  :root { --page-max: 1280px; --t-page: 38px; }
}
@media (min-width: 2200px) {
  :root { --page-max: 1440px; --page-x: 40px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4 {
  margin: 0; color: var(--ink);
  font-family: var(--display);
  font-weight: 700; letter-spacing: -.021em; line-height: 1.14;
}
h1 { font-size: 30px; letter-spacing: -.028em; }
h2 { font-size: var(--t-block); }
h3 { font-size: 15px; }
h4 { font-size: 13px; }
p { margin: 0 0 10px; }
a { color: var(--signal-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

/* Chiffres : chasse fixe partout où ils doivent s'aligner ou se comparer */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* Étiquette d'instrument : petite, écrite comme une phrase, sans espacement.
   Aucun libellé en capitales espacées (tests/ui/41-typographie.mjs). */
.eyebrow, .rail-section, table.data thead th {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
}

.muted { color: var(--ink-4); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.pos { color: var(--gain); }
.neg { color: var(--loss); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }

/* ───────────────────────────── Charpente ─────────────────────────────── */
#app { min-height: 100dvh; }
/* Deux colonnes : la navigation, et la page. */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100dvh; }

.rail {
  color: var(--ink-5);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh;
  overflow-y: auto;
}
.rail-brand { align-items: center; }
.rail-section { color: #5D6871; padding: 14px 14px 4px; }
.rail-link .ico { width: 16px; text-align: center; flex: none; font-size: 13px; opacity: .8; }
.rail-link .badge-dot { margin-left: auto; flex: none; }
.rail-foot { padding-top: 14px; }

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--header-h); flex: none;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  display: flex; align-items: center; padding: 0 var(--space);
  position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar > div { min-width: 0; }
/* L'espace de test se signale dans la barre du haut, sur toutes les pages. */
.topbar-essai {
  flex: none; margin-left: 10px; padding: 3px 9px; border-radius: 999px; cursor: help; white-space: nowrap;
  background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-dim);
  font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink);
}
.crumb {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.content {
  width: 100%; margin: 0 auto; flex: 1;
}
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--ink-3); margin: 8px 0 0; font-size: 14px; }

/* ───────────────────────────── Panneaux ──────────────────────────────── */
/* Pas d'ombre, pas de coin arrondi : un filet noir en tête suffit à dire
   « bloc ». La hiérarchie vient de l'épaisseur du filet, pas de la boîte. */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
  min-width: 0;
}
.card-head, .panel-head {
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.panel-head { display: block; }
.panel-sub { margin: 3px 0 0; }
.card-body, .panel-body { padding: 14px; }
.card-body.tight { padding: 12px 14px; }
.card.quiet, .panel.quiet { border-top-color: var(--rule); }

.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ───────────────────────────── Commandes ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--ink); background: var(--surface);
  color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer;
  transition: background .12s, color .12s, transform .06s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--accent-ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-quiet { border-color: var(--rule); color: var(--ink-3); background: var(--surface); font-size: 12px; }
.btn-quiet:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-danger { border-color: var(--loss); color: var(--loss); }
.btn-danger:hover { background: var(--loss); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0; background: var(--ink); color: #fff;
}
.chip-brand { background: var(--signal); }
.chip-pos { background: var(--gain); }
.chip-warn { background: var(--warn); }
.chip-neg { background: var(--loss); }
.chip-quiet { background: var(--rule); color: var(--ink-3); }

/* Segments (niveaux, onglets) */
.levels { display: inline-flex; border: 1px solid var(--ink); background: var(--surface); }
.level-btn {
  border: 0; background: none; padding: 6px 13px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--ink-3); cursor: pointer; transition: background .12s, color .12s;
  border-right: 1px solid var(--rule);
}
.level-btn:last-child { border-right: 0; }
.level-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ─────────────────────────────── Champs ──────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label {
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  display: flex; align-items: center; gap: 5px;
}
.field-hint { font-size: 12px; color: var(--ink-4); line-height: 1.45; }
.control {
  display: flex; align-items: center;
  border: 1px solid var(--rule); background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
.control input, .control select, .control textarea {
  border: 0; outline: 0; background: none; padding: 8px 10px; width: 100%; min-width: 0;
  font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
}
.control input[type=text] { font-family: var(--sans); font-size: 14px; }
.control select { cursor: pointer; font-family: var(--sans); appearance: none; padding-right: 6px; }
.control .affix {
  padding: 0 9px; font-family: var(--sans); font-size: 12px; color: var(--ink-4);
  background: var(--surface-2); align-self: stretch; display: flex; align-items: center;
  flex: none; border-left: 1px solid var(--rule); letter-spacing: 0;
}
.control .affix-pre { border-left: 0; border-right: 1px solid var(--rule); }
.control.invalid { border-color: var(--loss); }
/* Les chevrons ±1 : deux petits boutons empilés, juste à droite du chiffre.
   Discrets au repos, à l'encre au survol, comme les autres commandes. */
.pas { flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 5px 0 2px; }
.pas-btn {
  display: grid; place-items: center; width: 18px; height: 13px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: var(--ink-5); cursor: pointer; touch-action: manipulation;
  transition: background-color .12s var(--ease-soft), color .12s var(--ease-soft), transform .06s;
}
.pas-btn svg { width: 9px; height: 6px; display: block; }
.pas-btn:hover { background: var(--ink); color: var(--accent); }
.pas-btn:active { transform: scale(.9); }
.control:focus-within .pas-btn, .control:hover .pas-btn { color: var(--ink-3); }
.control:focus-within .pas-btn:hover, .control:hover .pas-btn:hover { color: var(--accent); }
/* Hors d'un champ encadré (charges, achats, avantages, trésorerie), les
   chevrons se centrent sur la ligne ; dans le parcours, ils suivent la taille
   de la réponse. */
.cost-amount .pas, .cost-extra .pas, .perk-box .pas, .source-money .pas { align-self: center; padding: 0; }
.setup-field .pas { align-self: center; gap: 3px; padding: 0; }
.setup-field .pas-btn { width: 30px; height: 22px; border-radius: 6px; color: var(--ink-4); }
.setup-field .pas-btn svg { width: 13px; height: 8px; }
input[type=checkbox] { accent-color: var(--signal); width: 15px; height: 15px; cursor: pointer; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 34px; height: 18px; background: var(--ink-5); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; transition: transform .15s var(--ease); }
.switch input:checked + .track { background: var(--signal); }
.switch input:checked + .track::after { transform: translateX(16px); }

.help {
  width: 14px; height: 14px; border: 1px solid var(--ink-5); flex: none;
  background: none; color: var(--ink-4); font-family: var(--mono);
  font-size: 10px; cursor: pointer; display: inline-grid; place-items: center; padding: 0; line-height: 1;
}
.help:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─────────────────────────────── Tableaux ────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
/* ─── Un tableau financier qui ne ressemble pas à un tableur ─── */
/* Le quadrillage, les en-têtes gris et la ligne de total sur fond gris
   donnaient un export Excel. Ce qui fait lire un bilan, c'est la hiérarchie :
   des libellés qui respirent, des chiffres alignés à la virgule, un filet
   seulement là où une somme se ferme, et le total en gros, sans fond. */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td {
  text-align: right; white-space: nowrap; border-bottom: 0;
}
table.data tbody td { border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
table.data td:not(:first-child) {
  font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
table.data th:first-child, table.data td:first-child {
  text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1;
  font-family: var(--sans); color: var(--ink-3);
}
table.data thead th {
  color: var(--ink-5); background: var(--surface); border-bottom: 1px solid var(--ink);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  font-weight: 500; padding-bottom: 8px;
}
table.data tbody tr:hover td, table.data tbody tr:hover td:first-child { background: var(--surface-2); }
/* Un intertitre n'est pas une ligne de données : il ne prend pas de fond noir,
   il prend de l'air. */
table.data tr.section td, table.data tr.section td:first-child {
  background: none; color: var(--ink-4); font-family: var(--sans); font-size: 12px;
  letter-spacing: 0; border-bottom: 0;
  padding-top: 22px; padding-bottom: 4px;
}
table.data tr.total td, table.data tr.total td:first-child {
  font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0;
  background: none; color: var(--ink); font-size: 15px; padding-top: 13px;
}
table.data tr.total td:first-child { font-family: var(--display); letter-spacing: -.01em; }
table.data tr.highlight td, table.data tr.highlight td:first-child {
  background: var(--tune-wash); font-weight: 600; color: var(--tune-ink);
}
/* Une précision sous une ligne (« dont … ») : elle ne s'additionne pas. */
table.data tr.dont td, table.data tr.dont td:first-child { color: var(--ink-4); font-size: 12px; font-style: italic; padding-top: 2px; border-bottom: 0; }
table.data tr.dont td:first-child { padding-left: 18px; }
.plan-note { margin: 8px 2px 0; }
table.data td.pct { color: var(--ink-5); font-size: 12px; }
table.data .rowlabel { display: flex; align-items: center; gap: 6px; }

/* ──────────────────────── Indicateurs et mesures ─────────────────────── */
.kpi {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong); padding: 13px 15px; min-width: 0;
}
.kpi-label { color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.kpi-value {
  font-family: var(--mono); font-weight: 600;
  letter-spacing: -.04em; margin-top: 7px; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.kpi-sub { margin-top: 4px; }
.kpi.pos { border-top-color: var(--gain); }
.kpi.neg { border-top-color: var(--loss); }
.kpi.warn { border-top-color: var(--warn); }
.kpi-accent { display: none; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }

/* Valeur qui vient de changer : brève surbrillance, jamais de mouvement */
@keyframes flash {
  0%   { background: var(--signal); color: #fff; }
  100% { background: transparent; color: inherit; }
}

/* ────────────────────────────── Leviers ──────────────────────────────── */
.levers { display: flex; flex-direction: column; }
.lever { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.lever:last-child { border-bottom: 0; }

.lever-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: grab; }
.lever-range:active { cursor: grabbing; }
.lever-range::-webkit-slider-runnable-track { height: 3px; background: var(--rule); }
.lever-range::-moz-range-track { height: 3px; background: var(--rule); }
.lever-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; background: var(--ink); border: 0; margin-top: -6.5px;
  border-radius: 50%; box-shadow: 0 0 0 3px var(--accent-wash);
  transition: transform .1s, box-shadow .12s;
}
.lever-range::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 0; border-radius: 50%; }
.lever-range:hover::-webkit-slider-thumb { transform: scale(1.15); }
.lever-range:active::-webkit-slider-thumb { transform: scale(1.3); box-shadow: 0 0 0 5px var(--accent); }

/* ─────────────────────────── Rail d'impact ───────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ────────────────────────────── Verdicts ─────────────────────────────── */
/* Le ton de l'outil : une phrase qui tranche, puis l'explication. */
.verdict {
  border-left: 3px solid var(--ink);
  padding: 14px 16px;
}

.verdict.good { border-left-color: var(--gain); }
.verdict.bad { border-left-color: var(--loss); }
.verdict.watch { border-left-color: var(--warn); }

.note {
  padding: 12px 14px; font-size: 13px; line-height: 1.55;
  background: var(--signal-wash); border: 1px solid rgba(184, 207, 42, .55); color: var(--ink-2);
}
.note-title { font-weight: 600; color: var(--ink); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.note.warn { background: var(--warn-wash); border-color: #EBD3A8; }
.note.danger { background: var(--loss-wash); border-color: #F5B5C4; }
.note.ok { background: var(--gain-wash); border-color: #D3F57A; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; }
.demo-banner > p { margin: 0; }
.demo-banner-acts { display: flex; gap: 8px; flex: none; }
.note.plain { background: var(--surface-2); border-color: var(--rule); }
.fin-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-2); padding: 8px 12px; border-radius: 10px; background: var(--surface-2);
  font-size: 13px; color: var(--ink-3);
}
.fin-total strong { font: 600 14px/1.2 var(--mono); color: var(--ink); }

/* ──────────────────────────── Listes d'objets ────────────────────────── */
.item {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong); margin-bottom: 10px;
}
.item:hover { border-color: var(--ink-5); }
.item-head { padding: 9px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.item-head:hover { background: var(--surface-2); }
.item-title { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.015em; }
.item-meta { font-size: 12px; color: var(--ink-4); }
/* Une seule ligne : le nom, ce qui le décrit, puis le chiffre et son libellé. */
/* Trop étroit pour tout dire sur une ligne, la description passe dessous :
   elle ne se coupe jamais en « … ». */
.item-head > .spacer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.item-head > .spacer > .item-title { flex: none; white-space: nowrap; }
.item-head > .spacer > .item-meta { min-width: 0; }
.item-head > .right { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.item-body { padding: 4px 14px 16px; border-top: 1px solid var(--rule); }
/* La ligne d'une liste plie comme tout le reste.
   Elle portait un chevron typographique nu — un « › » de onze pixels, sans
   rond, sans cadre — pendant que les volets voisins montraient le signe rond
   de l'application. Deux affordances pour un même geste sur le même écran.
   C'est le même signe partout, maintenant, et il tourne dans le même sens. */
.item.open .item-head > .foldsign {
  transform: rotate(180deg); border-color: var(--ink); color: var(--ink);
}
.item-head:hover > .foldsign { border-color: var(--ink-5); }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-4); }
.empty-icon { font-size: 30px; margin-bottom: 10px; }

/* ──────────────────────── Tiroir, modale, alertes ────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(11,14,16,.55); z-index: 90; opacity: 0; animation: fade .16s forwards; }
@keyframes fade { to { opacity: 1 } }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100vw);
  background: var(--surface); z-index: 91; border-left: 2px solid var(--ink);
  display: flex; flex-direction: column; transform: translateX(100%);
  animation: slide-in .24s var(--ease) forwards;
}
@keyframes slide-in { to { transform: translateX(0) } }
.drawer-head { padding: 16px 18px; border-bottom: 2px solid var(--ink); display: flex; align-items: flex-start; gap: 10px; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-body h4 { margin: 18px 0 5px; color: var(--ink-4); font-family: var(--sans); font-size: 12px; letter-spacing: 0; font-weight: 500; }
.drawer-body h4:first-child { margin-top: 0; }
.drawer-body p { line-height: 1.62; color: var(--ink-2); }

.formula { font-family: var(--mono); font-size: 12px; background: var(--ink); color: #E6EAED; padding: 11px 13px; line-height: 1.6; overflow-x: auto; }

.modal-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px; }
.modal {
  background: var(--surface); border: 2px solid var(--ink); width: min(600px, 100%);
  max-height: 88dvh; display: flex; flex-direction: column; opacity: 0; animation: pop .18s var(--ease) forwards;
}
@keyframes pop { to { opacity: 1 } }
.modal-head { padding: 20px 22px 0; }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 9px; justify-content: flex-end; border-top: 1px solid var(--rule); margin-top: auto; }

.toasts { position: fixed; bottom: calc(var(--impact-h) + 16px); left: 50%; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
/* Dans le parcours des questions, « Continuer » remonte au bas de l'écran :
   les messages passent dans le coin, pour ne jamais le recouvrir. */
body:has(.setup) .toasts { left: auto; right: 24px; transform: none; bottom: 24px; align-items: flex-end; }
.toast { background: var(--ink); color: #fff; padding: 9px 16px; font-size: 13px; font-weight: 450; animation: rise .2s var(--ease); max-width: 90vw; border-left: 3px solid var(--signal); }
@keyframes rise { from { transform: translateY(10px); opacity: 0 } }
.toast.ok { border-left-color: var(--gain); }
.toast.err { border-left-color: var(--loss); }

/* ───────────────────────────── Graphiques ────────────────────────────── */
.chart { width: 100%; max-width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-family: var(--sans); font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .swatch { border-radius: 2px; }
.swatch { width: 9px; height: 9px; flex: none; }
.spark { flex: none; width: 120px; }
.meter { height: 4px; background: var(--rule); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--signal); transition: width .3s var(--ease); }

/* Barre d'onglets mobile */

.mobile-only { display: none; }

/* ────────────────────────────── Adaptatif ────────────────────────────── */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --space: 14px; --header-h: 54px; --impact-h: 56px; }
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .rail.open { display: flex; position: fixed; inset: 0 auto 0 0; width: 262px; z-index: 92; animation: slide-left .22s var(--ease); }
  @keyframes slide-left { from { transform: translateX(-100%) } }
  .mobile-only { display: inline-flex; }
      .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
    .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.kpis .kpi { padding: 11px 12px; }
  .grid.kpis .kpi-value { font-size: 17px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .topbar { padding: 0 12px; }
  .topbar .crumb { display: none; }
  .topbar h1 { font-size: 15px; }
  .desktop-only { display: none !important; }
  .topbar .levels { flex: none; }
  .topbar .level-btn { padding: 6px 9px; font-size: 10px; }

  
  
  
  
  

  .drawer { width: 100vw; top: 8vh; border-left: 0; border-top: 2px solid var(--ink); animation: slide-up .24s var(--ease) forwards; transform: translateY(100%); }
  @keyframes slide-up { to { transform: translateY(0) } }
  table.data th, table.data td { font-size: 13px; }
  .toasts { bottom: calc(var(--impact-h) + 66px); }
  }

@media (max-width: 420px) {
  .content .levels { width: 100%; }
  .content .level-btn { flex: 1; padding: 7px 6px; }
  .topbar .levels { width: auto; }
  .topbar .level-btn { flex: none; }
}

@media print {
  .rail, .topbar, .btn, .help { display: none !important; }
    .card, .panel { break-inside: avoid; }
  }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }

/* ─────────────────── Revenu du dirigeant : le chiffre final ─────────────── */

/* Cascade : chaque marche est un prélèvement nommé */
.flow { display: flex; flex-direction: column; }
.flow-step { padding: 9px 16px; border-bottom: 1px solid var(--rule); }
.flow-step:last-child { border-bottom: 0; }
.flow-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.flow-label { font-size: 13px; color: var(--ink-2); }
.flow-value { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-note { font-size: 12px; color: var(--ink-4); margin-top: 3px; }
.flow-start { background: var(--surface-2); }
.flow-start .flow-label, .flow-start .flow-value { font-weight: 600; }
.flow-info .flow-label, .flow-info .flow-value { color: var(--ink-4); font-size: 13px; }
.flow-cost .flow-value { color: var(--loss); }
.flow-gain .flow-value { color: var(--gain); }
.flow-subtotal { background: var(--surface-2); border-top: 1px solid var(--rule); }
.flow-subtotal .flow-label, .flow-subtotal .flow-value { font-weight: 600; }
.flow-total { background: var(--ink); }
.flow-total .flow-label { color: #fff; font-weight: 600; }
.flow-total .flow-value { color: #fff; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }

/* ══════════════════════ Métier : choix, repères, pièges ══════════════════
   Le nudge a son propre registre visuel : pas une carte de plus, mais une
   marge d'annotation — comme une note portée à côté d'un chiffre par
   quelqu'un qui connaît le métier. */

/* ─── Choix du métier ─── */
.family { margin-bottom: 26px; }

/* ─── Alertes contextuelles ─── */
.nudges { border-top: 2px solid var(--rule-strong); background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--rule-strong); }
.nudges-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-4);
}
.nudge {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--rule); position: relative;
}
.nudge:last-child { border-bottom: 0; }
/* Le trait de gauche porte la gravité : c'est la seule couleur du bloc. */
.nudge::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--ink-5); }
.nudge-bad::before { background: var(--loss); }
.nudge-watch::before { background: var(--warn); }
.nudge-info::before { background: var(--signal); }
.nudge-title { grid-column: 1; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -.014em; }
.nudge-body { grid-column: 1; margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.52; }
/* La colonne doit être nommée : un élément placé par sa seule ligne bascule
   dans la passe d'auto-placement et vient se ranger devant le titre. */
.nudge .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* ─── Pièges du métier ─── */
.traps { display: flex; flex-direction: column; }

/* Numérotation : il y a bien une séquence, du plus fréquent au plus subtil. */

/* ─── Cadre réglementaire ─── */
.regime { display: flex; flex-direction: column; }
.regime-row { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.regime-row:last-child { border-bottom: 0; }
.regime-row .eyebrow { color: var(--ink-4); padding-top: 3px; }
.regime-row strong { font-size: 14px; color: var(--ink); }
.regime-note { margin: 5px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 860px) {
      .nudge { grid-template-columns: 1fr; }
  .nudge .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .regime-row { grid-template-columns: 1fr; gap: 5px; }
}

/* ══════════════════════════ Tableau de bord ═══════════════════════════════
   Une seule chose domine l'écran : le verdict. Tout le reste lui est
   subordonné, et le détail chiffré se mérite — il est replié. */

.content-wide { display: flex; flex-direction: column; gap: var(--s-3); }
/* Dans une page en colonne, l'écart vient de la colonne : l'en-tête et la
   barre d'onglets n'y ajoutent pas leur propre marge. */
.content-wide > .module, .content-wide > .module-nav { margin-bottom: 0; }

/* ─── Verdict ─── */
.hero {
  display: grid; grid-template-columns: 1fr minmax(240px, 340px);
  background: var(--ink); color: #fff; border: 0;
}

/* ─── Le film ─── */

.story { padding: 4px 6px 0; }

/* ─── Actions chiffrées ─── */
.actions-panel { border-top-color: var(--rule-strong); }
.actions { display: flex; flex-direction: column; }
.action {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 8px 14px; border-bottom: 1px solid var(--rule);
}
.action:last-child { border-bottom: 0; }
.action:hover { background: var(--surface-2); }
.action-rank {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--surface); border-radius: 50%;
  background: var(--ink); width: 22px; height: 22px; display: grid; place-items: center; flex: none;
}
.action-main { min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.action-label {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -.015em; color: var(--ink); margin: 0;
}
.action-detail { font-family: var(--sans); font-size: 12px; color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.action-gains { display: flex; gap: 14px; align-items: baseline; flex: none; }
.gain { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.gain-label {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.gain-value { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: -.03em; text-align: right; }
.gain-good .gain-value { color: var(--gain); }
.gain-bad .gain-value { color: var(--loss); }

/* ─── Position dans le métier ─── */
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.gauge { padding: 16px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gauge:last-child { border-right: 0; }
.gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gauge-label { font-size: 13px; color: var(--ink-3); }
.gauge-value { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.gauge-track { position: relative; height: 6px; background: #E6E9E6; }
/* La bande claire est la fourchette du métier ; l'aiguille, votre position. */
.gauge-band { position: absolute; top: 0; bottom: 0; background: var(--ink-5); opacity: .45; }
.gauge-needle { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); transform: translateX(-1.5px); }
.gauge-ok .gauge-needle { background: var(--gain); }
.gauge-low .gauge-needle { background: var(--warn); }
.gauge-high .gauge-needle { background: var(--loss); }
.gauge-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 8px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.gauge-ok .gauge-verdict { color: var(--gain); }
.gauge-low .gauge-verdict { color: var(--warn); }
.gauge-high .gauge-verdict { color: var(--loss); }

/* ─── Le détail, replié ─── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
        .action { grid-template-columns: auto 1fr; gap: 12px; }
  .action-gains { grid-column: 2; align-items: flex-start; margin-top: 8px; }
  .gain-value { min-width: 0; text-align: left; }
  .action .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
  .gauges { grid-template-columns: 1fr; }
  .gauge { border-right: 0; }
  .content-wide { gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LE PARCOURS

   Le reste de Fynomia est un instrument de mesure : sobre, dense, sans effet.
   Cette page-ci a un autre travail — donner envie de continuer. Elle s'autorise
   donc ce que les autres refusent : une surface sombre, une lueur, un anneau
   qui se remplit, des ronds qui s'allument. L'audace est bornée à l'accueil ;
   les pages de saisie restent des pages de saisie.
   ═══════════════════════════════════════════════════════════════════════════ */

.journey { max-width: 1180px; }

/* ─── Les ronds reliés par des flèches ─── */

.node {
  position: relative; width: 100%; border: 0; background: none; cursor: pointer;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 18px; text-align: left; font: inherit;
  transition: background .13s;
}
.node:hover { background: var(--surface-2); }

/* La flèche qui relie un rond au suivant.
   Un trait seul se lit comme une bordure ; une pointe se lit comme un sens de
   lecture. C'est ce qui transforme une liste en parcours. */
.node::before {
  content: ''; position: absolute; left: 34px; top: -11px; height: 13px; width: 2px;
  background: var(--ink-5); z-index: 0;
}
.node::after {
  content: ''; position: absolute; left: 30.5px; top: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--ink-5); z-index: 0;
}
.node.is-current::before { background: var(--signal); }
.node.is-current::after { border-top-color: var(--signal); }

/* L'étape courante : la seule chose qui bouge sur la page. */
.node.is-current { background: var(--signal-wash); }
@keyframes node-pulse {
  0%   { transform: scale(.85); opacity: .9 }
  70%  { transform: scale(1.35); opacity: 0 }
  100% { transform: scale(1.35); opacity: 0 }
}

/* ─── L'aperçu du verdict ─── */
.snapshot { margin-bottom: 14px; }

/* ─── Les trophées (grille, conservée pour d'autres usages) ─── */

/* ─── Les leviers rapides ─── */
.win {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--rule);
}
.win:last-child { border-bottom: 0; }

/* ════════════════ L'avancement, au tout premier pixel de l'écran ═══════════
   Deux choses, au même endroit et à demeure : un trait qui court sur l'arête
   haute de la fenêtre, et dix-neuf encoches qui disent lesquelles des lignes
   du dossier sont posées. Une barre lisse aurait dit « 42 % » sans jamais
   dire de quoi ; les encoches montrent le chemin fait et celui qui reste,
   et chacune emmène au champ d'un clic.
   ═══════════════════════════════════════════════════════════════════════════ */
.topline {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rule); overflow: hidden; pointer-events: none;
}
.topline > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent-dim) 62%, var(--accent) 100%);
  transition: width .7s var(--ease-soft);
}

.topprog { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }

/* Les encoches : un palier par groupe, un cran par ligne. */
.topprog-steps { display: flex; align-items: center; gap: 6px; }
.topprog-tier { display: flex; align-items: center; gap: 3px; }
.topprog-step {
  width: 4px; height: 13px; padding: 0; border: 0; border-radius: 2px;
  background: var(--rule); cursor: pointer; flex: none;
  transition: background .3s var(--ease-soft), transform .2s var(--ease-soft), height .2s var(--ease-soft);
}
.topprog-step:hover { transform: scaleY(1.24); background: var(--ink-4); }
.topprog-step:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.topprog-tier.is-fondation .topprog-step.is-done { background: var(--ink); }
.topprog-tier.is-credibilite .topprog-step.is-done { background: var(--accent-dim); }
.topprog-tier.is-finition .topprog-step.is-done { background: var(--ink-5); }
/* Reporté : le cran reste, en creux. Il n'a pas disparu, il attend son tour. */
.topprog-step.is-later {
  background: repeating-linear-gradient(180deg, var(--ink-5) 0 2px, transparent 2px 4px);
  opacity: .75;
}

.topprog-score {
  display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 9px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font: inherit; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: border-color .16s var(--ease-soft), background .16s;
}
.topprog-score:hover { border-color: var(--ink); background: var(--surface-2); }
.topprog-done { font-size: 13px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.topprog-of { font-size: 11px; color: var(--ink-5); }
.topprog-pct {
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  padding-left: 7px; margin-left: 4px; border-left: 1px solid var(--rule);
}
.topprog.is-full .topprog-done { color: var(--gain); }
.topprog.is-full .topprog-score { border-color: var(--gain); }

@media (max-width: 1080px) {
  .topprog-steps { gap: 5px; }
  .topprog-step { width: 4px; }
}
@media (max-width: 860px) {
  .topprog { gap: 8px; }
  .topprog-pct { display: none; }
}
/* Sur un téléphone, le fil d'ariane a déjà disparu : la place libérée revient
   aux encoches, qui sont justement ce qu'on vient chercher. */
@media (max-width: 520px) {
  .topprog-steps { gap: 5px; }
  .topprog-tier { gap: 2px; }
  .topprog-step { width: 4px; height: 14px; }
  .topprog-score { padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .topline > i, .topprog-step { transition: none; }
}

/* ═══════════════════ Bandeau d'étape et micro-tutos ═══════════════════════ */

/* Le bandeau d'étape : une seule ligne. Dire où l'on est, et rien d'autre.
   Il portait un encart « ça débloque » et deux boutons de navigation ; la barre
   de guidage fait déjà la navigation, et la promesse n'était jamais lue. */
.step-line {
  align-items: center; gap: 12px;
  margin-bottom: 18px;
  border-left: 3px solid var(--signal);
}
.step-line.done { border-left-color: var(--gain); }
.step-line-q { font-family: var(--display); letter-spacing: -.016em; }
.step-line-done {
  margin-left: auto;
}

/* ══════════════════════ La page « Mon modèle » ════════════════════════════ */

.engine {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 18px 18px 20px; border: 0; border-right: 1px solid var(--rule);
  background: var(--surface); cursor: pointer; font: inherit; text-align: left;
  transition: background .14s, box-shadow .14s;
}
.engine:last-child { border-right: 0; }
.engine:hover { background: var(--surface-2); }
.engine.active { background: var(--ink); box-shadow: inset 0 3px 0 var(--signal); }

/* ─────────────────────────────── Adaptatif ───────────────────────────────── */

@media (max-width: 860px) {
  .engine { border-right: 0; border-bottom: 1px solid var(--rule); }
  .engine:last-child { border-bottom: 0; }
  .win { grid-template-columns: 1fr; gap: 8px; }
    }

/* ═══════════════════════════════════════════════════════════════════════════
   LE COMPTE

   Un logiciel se reconnaît à ce qu'il dit de son propre état : qui vous êtes,
   où sont vos données, si elles sont à l'abri. Trois réponses, rien de plus.
   ═══════════════════════════════════════════════════════════════════════════ */

.content.narrow { max-width: 860px; }

/* Le pied du rail : l'état de sauvegarde, en permanence sous les yeux. */
.rail-account {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  border: 0; background: none; cursor: pointer; font: inherit; text-align: left;
  padding: 10px 10px 2px; color: #B9C1C7;
  transition: color .12s;
}
.rail-account:hover { color: #fff; }
.rail-account-name {
  font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-account-sync {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: #5D6871;
}
.rail-account-sync.live { color: #B9F510; }
.sync-dot {
  width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor;
  animation: sync-breathe 3.2s ease-in-out infinite;
}
@keyframes sync-breathe { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.account-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
}
.account-card.is-online { border-top-color: var(--gain); }
.account-id {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; border-bottom: 1px solid var(--rule);
}
.account-avatar {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 20px;
}
.account-card.is-online .account-avatar { background: var(--gain); }
.account-who { min-width: 0; }
.account-name {
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink);
  letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-mail {
  font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-badge {
  margin-left: auto; flex: none;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  padding: 3px 8px; border: 1px solid var(--rule); color: var(--ink-4);
}
.account-badge.ok { border-color: var(--gain); color: var(--gain); }

.account-rows { display: flex; flex-direction: column; }
.account-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 11px 20px; border-bottom: 1px solid var(--rule); font-size: 13px;
}
.account-row:last-child { border-bottom: 0; }
.account-row-label {
  flex: none; width: 128px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.account-row-value { color: var(--ink-2); }
.account-row-value.ok { color: var(--gain); }
.account-note {
  margin: 0; padding: 14px 20px; border-top: 1px solid var(--rule);
  background: var(--surface-2); font-size: 13px; color: var(--ink-3); line-height: 1.55;
}

/* La liste des plans : une ligne par plan, ouvrable d'un clic. */
.plan-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.plan-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  border-bottom: 1px solid var(--rule);
}
.plan-row.current { background: var(--signal-wash); }
.plan-open {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  border: 0; background: none; cursor: pointer; font: inherit; text-align: left; padding: 0;
}
.plan-name {
  font-size: 14px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-open:hover .plan-name { color: var(--signal-ink); }
.plan-meta { font-size: 12px; color: var(--ink-4); }
.plan-pct {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  padding: 2px 7px; border: 1px solid var(--rule); white-space: nowrap;
}

@media (max-width: 720px) {
  .plan-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .plan-row .btn { grid-column: span 1; }
  .account-row { flex-direction: column; gap: 3px; }
  .account-row-label { width: auto; }
}

/* ─── Trois lecteurs, trois grilles ─── */
/* Le même prévisionnel n'est pas jugé de la même façon selon qui l'ouvre. */

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }

/* ═══════════════════════════════════════════════════════════════════════════
   L'ACCUEIL ET LE PARCOURS GUIDÉ

   Deux écrans qui n'appartiennent pas à l'application : ils la précèdent. Pas
   de rail, pas d'onglets, pas d'indicateurs. Une question, un champ, un bouton.
   Tout ce qui n'aide pas à répondre à la question en cours est retiré.
   ═══════════════════════════════════════════════════════════════════════════ */

.landing {
  min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
}

/* Le panneau noir : ce que fait l'outil. Un quart de cercle acide en signature,
   le même que le bloc de synthèse des modules. */
.landing-brand {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 6vw, 72px);
}
.landing-arc {
  position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px;
  border-radius: 50%; background: var(--accent); pointer-events: none;
}
.landing-mark {
  position: relative; width: 42px; height: 42px; margin-bottom: 28px;
  display: grid; place-items: center; background: var(--accent); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 22px;
}
.landing-title {
  position: relative; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.045em;
  line-height: 1; margin: 0 0 16px; color: #fff;
}
.landing-line {
  position: relative; font-size: 15px; color: #B7BAAE; line-height: 1.6;
 margin: 0 0 30px;
}
.landing-facts {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.landing-facts li {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: #8A8D82; padding-left: 16px; position: relative;
}
.landing-facts li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 7px; height: 1px; background: var(--accent);
}

/* Le panneau clair : ce qu'on peut faire, tout de suite. */
.landing-act { display: grid; place-items: center; padding: clamp(28px, 5vw, 56px); }
.landing-act-inner { width: 100%; max-width: 360px; }
.landing-kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-bottom: 10px;
}
.landing-sub { margin: 0 0 22px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.landing-go { width: 100%; justify-content: center; }
/* L'exemple : présent, mais visiblement secondaire. */
.landing-example {
  display: block; margin-top: 14px; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--ink-4); text-decoration: underline;
  text-underline-offset: 3px; padding: 2px 0;
}
.landing-example:hover { color: var(--ink); }

.landing-resume { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); }
.landing-resume-tag {
  display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-bottom: 6px;
}
.landing-resume-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: none;
  cursor: pointer; font: inherit; text-align: left; padding: 8px 2px; color: var(--ink-2);
}
.landing-resume-item:last-child { border-bottom: 0; }
.landing-resume-item:hover { color: var(--signal-ink); }
.landing-resume-when { font-family: var(--mono); font-size: 11px; color: var(--ink-5); flex: none; }
.landing-foot { margin: 26px 0 0; font-size: 12px; color: var(--ink-5); line-height: 1.5; }

@media (max-width: 860px) {
  .landing { grid-template-columns: 1fr; min-height: 0; }
  .landing-brand { padding: 30px 20px 34px; }
  /* Le quartier de cercle reste dans l'angle : à taille de bureau, il remontait
     jusqu'au texte et le rendait illisible. */
  .landing-arc { width: 190px; height: 190px; right: -108px; bottom: -108px; }
  .landing-title { font-size: clamp(30px, 8vw, 40px); max-width: none; }
  .landing-line { margin-bottom: 20px; }
  .landing-facts { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .landing-act { padding: 26px 20px 40px; justify-items: stretch; }
  .landing-act-inner { max-width: none; }
}

/* ───────────────────────────── Le parcours guidé ─────────────────────────── */

/* L'en-tête du parcours et des écrans de compte : celui du site.
   On y arrive par « Commencer » : le même logo, à la même place, dit qu'on n'a
   pas quitté Fynomia, et il ramène au site. Fixé en haut, verre dépoli. */
.parcours-tete {
  position: sticky; top: 0; z-index: 40; flex: none;
  background: rgba(242, 240, 232, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.parcours-tete-in {
  height: var(--parcours-tete); max-width: 1344px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 18px;
}
.parcours-tete a { border-bottom: 0; }
.parcours-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; border-radius: 10px; }
.parcours-logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--accent); font: 800 17px/1 var(--display);
}
.parcours-logo-mot { font: 800 16px/1 var(--display); letter-spacing: .04em; }
.parcours-fil {
  padding-left: 18px; border-left: 1px solid var(--rule);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.parcours-retour {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color .15s, background-color .15s;
}
.parcours-retour::before { content: '\2190'; transition: transform .2s var(--ease); }
.parcours-retour:hover { color: var(--ink); background: rgba(14, 15, 12, .05); }
.parcours-retour:hover::before { transform: translateX(-3px); }

/* L'avancement du parcours : un segment par question (js/ui/butin.js).
   Encre : répondu. Vert : la question en cours. Hachures : passée à plus tard.
   Le segment qu'on vient de gagner se remplit d'un geste élastique, en vert,
   puis se pose à l'encre ; un reflet le traverse. */
.pp { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pp + .parcours-retour { margin-left: 10px; }
.pp-segs { display: flex; gap: 4px; width: clamp(220px, 26vw, 340px); }
.pp-seg { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(14, 15, 12, .09); overflow: hidden; }
.pp-seg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
}
.pp-seg.is-fait::after { transform: none; }
.pp-seg.is-ici::after { transform: scaleX(.34); background: var(--accent); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .12); }
.pp-seg.is-passe { background: repeating-linear-gradient(135deg, rgba(14, 15, 12, .28) 0 2px, rgba(14, 15, 12, .06) 2px 4px); }
.pp-seg.is-fait.is-neuf::after { animation: pp-remplit .62s cubic-bezier(.3, 1.45, .5, 1) both, pp-pose .9s ease .5s both; }
.pp-seg.is-fait.is-neuf::before {
  content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 12px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  animation: pp-reflet .55s ease-out .38s both;
}
.pp-seg.is-passe.is-neuf { animation: pp-apparait .4s ease both; }
@keyframes pp-remplit { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pp-pose { from { background: var(--accent); } to { background: var(--ink); } }
@keyframes pp-reflet { from { transform: translateX(-14px); opacity: 1; } to { transform: translateX(34px); opacity: 0; } }
@keyframes pp-apparait { from { opacity: .2; } to { opacity: 1; } }
.pp-compte { font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-compte b { display: inline-block; font-weight: 600; color: var(--ink); }
.pp-compte b.is-monte { animation: pp-monte .5s cubic-bezier(.2, .8, .2, 1) .3s both; }
@keyframes pp-monte { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }

/* La pastille de la question gagnée, dans la liste : elle saute et s'entoure. */
.setup-step.is-gagnee .setup-step-dot { animation: pastille-saute .56s cubic-bezier(.3, 1.5, .5, 1) .12s both, pastille-onde .8s ease-out .2s both; }
@keyframes pastille-saute { 0% { transform: scale(.55); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pastille-onde { from { box-shadow: 0 0 0 0 rgba(185, 245, 16, .95); } to { box-shadow: 0 0 0 9px rgba(185, 245, 16, 0); } }

/* La pastille du déblocage : ce que la réponse vient d'apporter au modèle,
   sur une ligne, à la place de « Question 02 / 12 ». */
.butin {
  position: fixed; z-index: 70;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 28px; padding: 0 5px 0 4px; border-radius: 999px; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1;
  box-shadow: 0 12px 28px -16px rgba(14, 15, 12, .6);
}
.butin-ico {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font: 800 11px/1 var(--display);
}
.butin-titre { flex: none; font: 600 12.5px/1 var(--sans); }
.butin-texte { min-width: 0; color: rgba(242, 240, 232, .72); }
.butin.is-court .butin-texte { display: none; }
.butin-tag {
  flex: none; margin-left: 2px; padding: 4px 7px; border-radius: 999px; font-style: normal;
  font-family: var(--sans); font-size: 12px; line-height: 1; letter-spacing: 0;
  color: var(--accent); box-shadow: inset 0 0 0 1px rgba(185, 245, 16, .35);
}
.butin.is-plus-tard { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 12px 28px -18px rgba(14, 15, 12, .45); }
.butin.is-plus-tard .butin-ico { background: repeating-linear-gradient(135deg, rgba(14, 15, 12, .16) 0 3px, rgba(14, 15, 12, .05) 3px 6px); color: var(--ink-3); }
.butin.is-plus-tard .butin-texte { color: var(--ink-4); }
.butin.is-plus-tard .butin-tag { color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--rule); }

/* Les éclats : de petits losanges verts et encre, jetés depuis le segment. */
.eclats { position: fixed; inset: 0; z-index: 69; pointer-events: none; overflow: hidden; }
.eclat { position: absolute; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); box-shadow: 0 0 0 1px rgba(14, 15, 12, .12); }
.eclat.is-encre { width: 4px; height: 4px; background: var(--ink); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .pp-seg.is-neuf::after, .pp-seg.is-neuf::before, .pp-compte b.is-monte, .setup-step.is-gagnee .setup-step-dot { animation: none; }
  .pp-seg.is-neuf::before { display: none; }
}
.setup, .auth-page { --parcours-tete: 64px; }
.auth-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.auth-page .auth { flex: 1; min-height: 0; }
@media (max-width: 1080px) { .parcours-fil { display: none; } }
@media (max-width: 760px) {
  .setup, .auth-page { --parcours-tete: 56px; }
  .parcours-tete-in { padding: 0 16px; }
  .parcours-retour { padding: 8px 4px; font-size: 13.5px; }
  .avec-progres .parcours-tete-in { flex-wrap: wrap; height: auto; min-height: var(--parcours-tete); row-gap: 0; padding-top: 10px; padding-bottom: 12px; }
  .avec-progres .pp { order: 3; flex: 1 0 100%; margin: 10px 0 0; }
  .avec-progres .pp + .parcours-retour { margin-left: auto; }
  .avec-progres .pp-segs { flex: 1; width: auto; }
  .butin-tag { display: none; }
}

.setup { min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }

/* La charpente : les questions à gauche, la question en cours au centre. */
.setup-shell {
  flex: 1; display: grid; grid-template-columns: 252px minmax(0, 1fr);
  max-width: 1280px; width: 100%; margin: 0 auto; gap: 0;
}

.setup-steps {
  border-right: 1px solid var(--rule); padding: 18px 0 40px;
  display: flex; flex-direction: column; position: sticky; top: calc(var(--parcours-tete) + 2px); align-self: start;
}
.setup-steps-head { padding: 0 20px 14px; }
.setup-steps-title {
  display: block; font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--ink); letter-spacing: -.015em;
}
.setup-steps-sub {
  display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-5); margin-top: 3px;
}
.setup-step {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: none; cursor: pointer; font: inherit; text-align: left;
  padding: 7px 20px; color: var(--ink-4); transition: color .12s, background .12s;
}
.setup-step:hover { background: var(--surface-2); color: var(--ink-2); }
.setup-step-dot {
  width: 21px; height: 21px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  font-family: var(--mono); font-size: 10px; color: var(--ink-5); background: var(--surface);
}
.setup-step-label { font-size: 13px; line-height: 1.3; }
.setup-step.done .setup-step-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.setup-step.done { color: var(--ink-3); }
.setup-step.current { background: var(--accent-wash); color: var(--ink); }
.setup-step.current .setup-step-dot { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.setup-step.current .setup-step-label { font-weight: 600; }
/* Ce qu'on n'a pas encore atteint ne se clique pas.
   Les numéros faisaient office de raccourci : on arrivait au résultat sans
   avoir répondu, avec un modèle entièrement fabriqué par le métier. Ils
   redeviennent ce qu'ils étaient — un repère, et un retour en arrière. */
.setup-step.is-shut { color: var(--ink-5); cursor: default; opacity: .5; }
.setup-step.is-shut:hover { background: none; color: var(--ink-5); }
.setup-step.is-shut .setup-step-dot { border-style: dashed; }
.setup-steps-exit {
  margin: 18px 20px 0; padding: 8px 0 0; border: 0; border-top: 1px solid var(--rule);
  background: none; cursor: pointer; font: inherit; text-align: left;
  font-size: 12px; color: var(--ink-4);
}
.setup-steps-exit:hover { color: var(--signal-ink); }

/* Une seule colonne : le récapitulatif de droite a été retiré, la place qu'il
   réservait aussi. Le parcours tient dans la hauteur de l'écran. */
/* L'écran de question occupait le coin haut-gauche d'une page vide.
   La carte faisait trois cent quarante pixels dans une fenêtre de neuf
   cents : quatre cent trente pixels de blanc dessous, sans raison lisible.
   Le contenu se centre donc dans la hauteur disponible et s'élargit : le vide
   se répartit au lieu de tomber d'un bloc, et les réponses se rangent sur
   deux colonnes au lieu d'une file. */
/* La question se pose en haut de l'écran.
   Centrer verticalement paraissait élégant : ça répartissait le vide au lieu
   de le laisser tomber d'un bloc. Mais sur l'écran du métier, qui est le plus
   haut du parcours, ça poussait la question deux cents pixels vers le bas — un
   trou franc au-dessus du titre, avant même d'avoir lu quoi que ce soit. Le
   contenu remonte donc, et le vide reste là où il ne gêne personne : dessous. */
.setup-main {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 20px 40px 40px;
}
/* Un peu plus large (fil 78b0270a, 12 octobre : « beaucoup d'espace à droite et
   à gauche… pas aller jusqu'au bout, mais de la marge il en existe un chouia ») :
   la charpente passe de 1160 à 1280 px, alignée sur l'en-tête, et la question
   de 860 à 948 px. */
.setup-card { max-width: 948px; width: 100%; }

/* « Question 01 / 12 » est parti : la barre de l'en-tête compte déjà les
   questions (fil 7ac54fc5). Une question facultative le dit à la fin de son
   aide, d'une étiquette. */
.setup-facultatif {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  border: 1px solid var(--rule); font-size: 11.5px; line-height: 1.5; color: var(--ink-4);
}
/* « Plus tard » est la façon d'aller vite, maintenant que les numéros ne
   sautent plus. Un lien souligné se lisait comme une note de bas de page : il
   prend la forme d'un bouton, à côté de celui qui avance. */
.setup-later {
  border: 1px dashed var(--rule-2, var(--rule)); background: none; cursor: pointer; font: inherit;
  font-size: 14px; color: var(--ink-4); border-radius: 999px; padding: 10px 18px;
  transition: color .16s var(--ease-soft), border-color .16s var(--ease-soft);
}
.setup-later:hover { color: var(--ink); border-color: var(--ink-4); }
/* En attente d'une réponse : le bouton doit se lire comme inerte, pas comme
   une action en attente de clic. */
.btn.is-waiting {
  background: var(--surface); border-color: var(--rule); color: var(--ink-5);
  font-weight: 500; cursor: not-allowed;
}

.setup-q {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -.045em; line-height: 1.02;
  margin-bottom: 8px; white-space: nowrap;
}
/* Une question tient sur une ligne : le script réduit son corps jusqu'à ce
   qu'elle tienne (fil 998b06df). Trop longue même ainsi, elle se replie. */
.setup-q.is-replie { white-space: normal; text-wrap: balance; }
.setup-help {
  font-size: 14px; color: var(--ink-3); line-height: 1.55; margin-bottom: 14px;
}
.setup-body { margin-bottom: 16px; }
.setup-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-4); line-height: 1.5; }

.setup-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.setup-reassure { margin: 12px 0 0; font-size: 12px; color: var(--ink-5); }

/* Le champ : grand, seul, déjà au focus. */
.setup-field { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); }
.setup-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 6px 0 10px;
  font-family: var(--display); font-size: clamp(28px, 5vw, 40px); font-weight: 700;
  letter-spacing: -.035em; color: var(--ink);
}
.setup-input::placeholder { color: var(--ink-5); font-weight: 600; }
.setup-suffix {
  flex: none; font-family: var(--mono); font-size: 13px; color: var(--ink-4); white-space: nowrap;
}
/* L'unité d'un abonnement (fil 797dd587, 14 octobre 2026) : à la place du
   suffixe, les boutons d'unité des offres, par mois, par semaine ou par an. */
.setup-unites { flex: none; align-self: center; display: inline-flex; gap: 2px; }
.setup-unite {
  border: 0; background: none; cursor: pointer; border-radius: 8px; padding: 5px 9px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-5); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.setup-unite:hover { color: var(--ink); }
.setup-unite.is-on { background: var(--ink); color: #fff; }
.setup-modes .setup-unite { font-size: 11px; padding: 3px 6px; }

/* Les choix : deux ou trois cartes, jamais une liste déroulante. */
/* ─── Où en est le projet ───
   Chaque carte portait cinq éléments : titre, précision, étiquette en
   capitales, conséquence et paragraphe. Quatre cartes comme ça font un mur.
   Il reste ce qui fait choisir — le stade, et ce vers quoi il emmène — et le
   reste se lit au survol. */
.setup-stages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-bottom: 18px; max-width: 620px;
}
@media (max-width: 560px) { .setup-stages { grid-template-columns: 1fr; } }
.stagepick {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface);
  padding: 15px 16px; font: inherit;
  transition: border-color .18s var(--ease-soft), background .18s var(--ease-soft);
}
.stagepick:hover { border-color: var(--ink-4); }
.stagepick-head { display: flex; align-items: flex-start; gap: 10px; }
.stagepick-label {
  font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2;
  letter-spacing: -.02em; color: var(--ink); flex: 1;
}
.stagepick-mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule); font-size: 10px; color: transparent; background: var(--paper);
}
.stagepick-then { font-size: 13px; color: var(--ink-4); line-height: 1.45; }

.stagepick.active { background: var(--ink); border-color: var(--ink); }
.stagepick.active .stagepick-label { color: #fff; }
.stagepick.active .stagepick-then { color: var(--accent); }
.stagepick.active .stagepick-mark { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.setup-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 18px; }
.setup-choice {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--rule); background: var(--surface);
  cursor: pointer; font: inherit; text-align: left; transition: border-color .12s, background .12s;
}
.setup-choice:hover { border-color: var(--ink-5); }
.setup-choice-label { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.setup-choice-note { font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.setup-choice.active { border-color: var(--ink); background: var(--ink); }
.setup-choice.active .setup-choice-label { color: #fff; }
.setup-choice.active .setup-choice-note { color: #A8B1B8; }
/* En savoir plus : un « i » dans le coin, la note au clic (fil d8c204d8). */
.setup-choices { position: relative; }
.setup-choice.has-info { position: relative; }
.setup-choice.has-info .setup-choice-label { padding-right: 22px; }
.setup-choice-info { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--ink-4); cursor: help; transition: color .15s, background-color .15s; }
.setup-choice-info svg { display: block; width: 15px; height: 15px; }
.setup-choice-info:hover, .setup-choice-info.is-on { color: var(--ink); background: rgba(185, 245, 16, .35); }
.setup-choice.active .setup-choice-info { color: #A8B1B8; }
.setup-choice.active .setup-choice-info:hover, .setup-choice.active .setup-choice-info.is-on { color: var(--ink); background: var(--accent); }
.setup-note-pop {
  position: absolute; z-index: 30; width: min(320px, 100%); padding: 12px 14px; border-radius: 14px;
  background: var(--surface, #fff); color: var(--ink-2); font: 400 13px/1.5 var(--sans); text-align: left;
  box-shadow: 0 0 0 1px rgba(14, 15, 12, .07), 0 18px 40px -18px rgba(14, 15, 12, .45), 0 4px 10px -6px rgba(14, 15, 12, .2);
}
.setup-note-pop strong { display: block; margin-bottom: 3px; font: 700 13.5px/1.3 var(--display); color: var(--ink); }
/* Une rangée trop serrée pour un « i » par carte : un « i » à côté de sa légende. */
.setup-a-note { position: relative; }
.setup-info-rangee { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -3px 0 -3px 6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-4); vertical-align: middle; cursor: help; transition: color .15s, background-color .15s; }
.setup-info-rangee svg { display: block; width: 15px; height: 15px; }
.setup-info-rangee:hover, .setup-info-rangee.is-on { color: var(--ink); background: rgba(185, 245, 16, .35); }
.setup-info-rangee:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.setup-note-pop.is-rangee { width: min(360px, 100%); }
.setup-note-pop dl { display: grid; gap: 1px; margin: 8px 0 0; }
.setup-note-pop dt { font-weight: 650; color: var(--ink); }
.setup-note-pop dd { margin: 0 0 8px; }
.setup-note-pop dd:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .setup-note-pop { animation: setup-note-pop .22s cubic-bezier(.2, .8, .2, 1) both; }
  .setup-note-pop.is-dessus { animation-name: setup-note-pop-dessus; }
  @keyframes setup-note-pop { from { opacity: 0; transform: translateY(-4px); } }
  @keyframes setup-note-pop-dessus { from { opacity: 0; transform: translateY(4px); } }
}

/* Le choix du métier : quinze pastilles, lisibles d'un coup d'œil. */
.setup-sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 7px; }
.setup-sector {
  gap: 9px;
  padding: 10px 12px; border: 1px solid var(--rule); background: var(--surface);
  cursor: pointer; font: inherit; text-align: left; transition: border-color .12s, background .12s;
  min-height: 44px;
}
.setup-sector:hover { border-color: var(--ink-5); }
.setup-sector-glyph { font-size: 15px; color: var(--ink-5); line-height: 1; flex: none; }
/* Un libellé tronqué oblige à deviner : ils passent à la ligne. */
.setup-sector-name {
  font-size: 13px; color: var(--ink-2); line-height: 1.3;
  overflow-wrap: anywhere; hyphens: auto;
}
.setup-sector.active { border-color: var(--ink); background: var(--ink); }
.setup-sector.active .setup-sector-name { color: #fff; }
.setup-sector.active .setup-sector-glyph { color: var(--accent); }

/* ─── Le choix du métier : une recherche, puis deux temps ─── */
/* La carte porte deux lignes : le métier, et d'où il vient. En boîte flexible
   les trois enfants se rangeaient côte à côte et le compte poussait le nom à
   la ligne ; une grille à deux colonnes remet le glyphe à gauche et empile le
   reste — sans créer de ligne vide quand il n'y a pas de seconde ligne. */
.setup-sector {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px; row-gap: 2px; align-items: start; align-content: start;
}
.setup-sector-glyph { margin-top: 2px; grid-column: 1; grid-row: 1; }
.setup-sector-name { grid-column: 2; grid-row: 1; }
.setup-sector-note {
  grid-column: 2; font-size: 11px; color: var(--ink-5); line-height: 1.3;
}
.setup-sector.active .setup-sector-note { color: #8A8D82; }

.setup-pick { display: flex; flex-direction: column; gap: 12px; }
.setup-trail:empty { display: none; }
.setup-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
  padding: 0 14px; transition: border-color .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}
.setup-search:focus-within { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.setup-search-icon { color: var(--ink-5); font-size: 15px; line-height: 1; flex: none; }
.setup-search-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: 13px 0; font-size: 15px; color: var(--ink);
}
.setup-search-input::placeholder { color: var(--ink-5); font-style: italic; }
.setup-search-clear {
  border: 0; background: none; cursor: pointer; color: var(--ink-4);
  font-size: 13px; padding: 4px 2px; flex: none; transition: color .16s;
}
.setup-search-clear:hover { color: var(--ink); }
.setup-search-none {
  grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; color: var(--ink-4); line-height: 1.5;
}
/* Le retour aux familles : un fil, pas un bouton — on ne remonte pas d'un
   niveau avec la même insistance qu'on descend. */
.setup-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--ink-4); transition: color .16s var(--ease-soft);
}
.setup-back:hover { color: var(--ink); }
.setup-back b {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--ink); background: var(--accent); border-radius: 999px; padding: 3px 9px; font-weight: 600;
}

/* Les frais : une grille de cases, chacune un libellé et un montant modifiable. */
.setup-costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.setup-cost {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  border: 1px solid var(--rule); padding: 3px 10px 3px 6px; background: var(--surface);
}
.setup-cost.on { border-color: var(--ink); }
@media (max-width: 560px) { .setup-costs { grid-template-columns: 1fr; } }
/* Un écran qui tient en une ligne : le titre, puis l'aide. */
.setup-cost-toggle {
  display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0;
  border: 0; background: none; cursor: pointer; font: inherit; text-align: left; padding: 9px 2px;
}
.setup-cost-box {
  width: 19px; height: 19px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--rule); color: #fff; font-size: 11px;
}
.setup-cost.on .setup-cost-box { background: var(--ink); border-color: var(--ink); }
.setup-cost-label { font-size: 14px; color: var(--ink-3); }
.setup-cost.on .setup-cost-label { color: var(--ink); font-weight: 500; }
.setup-cost-amount {
  width: 92px; flex: none; border: 1px solid var(--rule); background: var(--surface);
  padding: 6px 8px; text-align: right; font-size: 13px; outline: 0;
}
.setup-cost-amount:focus { border-color: var(--signal); }
.setup-cost-hint { flex: none; font-size: 12px; color: var(--ink-5); padding-right: 9px; }

/* L'écran final. */
.setup-card.is-last { max-width: 660px; }

/* Les prochaines étapes : trois gestes numérotés, pas une liste à puces de
   fonctionnalités. On dit quoi faire, dans l'ordre. */
.setup-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.setup-next-item { display: flex; align-items: flex-start; gap: 11px; }
.setup-next-no {
  flex: none; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; background: var(--ink); color: var(--accent);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.setup-next-title { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.setup-next-body { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

@media (max-width: 860px) {
  /* Sur téléphone, la liste des questions devient une frise horizontale :
     elle situe sans occuper la moitié de l'écran. */
  /* Les deux rangées étaient « auto » dans une grille plus haute que son
     contenu : le navigateur les étirait à parts égales, et la frise des
     questions poussait la question elle-même à deux cents pixels du haut.
     La première rangée prend sa hauteur, la seconde prend le reste. */
  /* minmax(0, 1fr) et non 1fr : la frise défile dans sa colonne au lieu
     d'élargir la page de sa propre largeur. */
  .setup-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .setup-steps {
    min-width: 0; position: static; border-right: 0; border-bottom: 1px solid var(--rule);
    flex-direction: row; align-items: center; gap: 2px; overflow-x: auto;
    padding: 10px 14px; scrollbar-width: none;
  }
  .setup-steps::-webkit-scrollbar { display: none; }
  .setup-steps-head, .setup-steps-exit { display: none; }
  .setup-step { width: auto; flex: none; padding: 5px 8px; }
  .setup-step-label { display: none; }
  .setup-step.current .setup-step-label { display: inline; }
  .setup-main { padding: 20px 18px 44px; min-height: 0; justify-content: flex-start; }
    }

/* La suggestion : présente, annoncée, remplaçable d'une touche. */
.setup-suggested {
  margin: 9px 0 0; font-size: 12px; color: var(--ink-4);
  display: flex; align-items: center; gap: 6px;
}
.setup-suggested::before {
  content: ''; width: 5px; height: 5px; flex: none; background: var(--signal);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LA BARRE DE GUIDAGE

   Le logiciel complet reste le logiciel complet — c'est ce qui rassure sur la
   profondeur. Cette barre lui rend ce qu'un tableur n'a pas : un fil. Elle dit
   où l'on est, ce que la page sert à faire, et ce qui vient après. Elle se
   replie, et ce choix est retenu.
   ═══════════════════════════════════════════════════════════════════════════ */

.guide {
  position: sticky; top: 0; align-self: start; height: 100dvh;
  width: 252px; flex: none;
  border-left: 1px solid var(--rule); background: var(--surface);
  display: flex; transition: width .22s var(--ease);
}
.guide.is-closed { width: 34px; }

/* Sous 1240 px la barre mangerait la page : elle disparaît, le parcours et la
   barre d'onglets prennent le relais. La borne basse est indispensable — sans
   elle, cette règle écraserait la mise en page mobile déclarée plus haut. */
@media (min-width: 861px) and (max-width: 1240px) {
  .guide { display: none; }
  .shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .guide { display: none; }
}

/* ─────────────────────── « Votre plan », qui se remplit ──────────────────── */
/* Ce ne sont pas des indicateurs : ce sont les lignes du modèle. Elles
   commencent vides — un tiret, jamais un zéro, qui serait un mensonge — et
   chaque réponse en fait apparaître une. */

.plan {
  position: sticky; top: 24px;
  border: 1px solid var(--rule); border-top: 2px solid var(--rule-strong);
  background: var(--surface);
}

.plan-row {
  display: flex; align-items: baseline; gap: 8px; padding: 3px 0;
  font-size: 13px; color: var(--ink-2);
}
.plan-row.sub { color: var(--ink-4); }
.plan-row.is-empty { color: var(--ink-5); font-style: italic; font-weight: 400; }

@media (max-width: 1040px) {
  .plan { position: static; }
}

/* ─────────────────────── L'interrupteur d'une ligne ──────────────────────── */
/* Mettre en pause plutôt que supprimer : on teste une hypothèse sans rien
   perdre. Il vit dans l'en-tête et n'ouvre pas la ligne. */
.onoff {
  flex: none; width: 34px; height: 19px; padding: 0; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface-2);
  position: relative;
}
.onoff > i {
  position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  background: var(--ink-5);
  display: block;
}
.onoff.on { background: var(--ink); border-color: var(--ink); }
.onoff.on > i { transform: translateX(15px); background: #fff; }
.onoff:hover { border-color: var(--ink); }
.item.is-off .item-title { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Le passage de main : ce que le logiciel complet ajoute, dit simplement. */
.setup-unlocked {
  border: 1px solid var(--rule); border-left: 3px solid var(--gain);
  padding: 14px 16px; margin: 20px 0;
}
.setup-unlocked-title {
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink);
  margin-bottom: 8px;
}

/* Le statut du dirigeant : rappelé en une ligne, pas redemandé. */
.setup-status.is-line { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.setup-status.is-line b { color: var(--ink); font-weight: 600; }
.setup-status-why { color: var(--ink-4); }

/* Les montants de la rémunération, côte à côte : coût pour l'entreprise,
   brut, net, après impôt. Un coup d'œil, et l'écran tient sans défiler. */
.ladder.is-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px;
  margin-top: 12px;
}
.ladder-col {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.ladder-label { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.ladder-note { font-size: 11.5px; color: var(--ink-4); line-height: 1.35; }
.ladder-month { font-size: 17px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.ladder-col.top .ladder-month { color: var(--loss); }
.ladder-col.bottom { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ladder-col.bottom .ladder-label { color: var(--ink); font-weight: 600; }
.ladder-col.bottom .ladder-month { color: var(--gain); }
.ladder-col.is-tax .ladder-month { color: var(--ink-3); }
.setup-note.is-ratio { margin-top: 8px; }

/* ─────────────────────────── Les blocs de saisie ─────────────────────────── */
/* Quatre sujets dans une offre : l'identité, le prix, les volumes, les délais.
   Les enchaîner sous de simples titres en faisait un formulaire. Chacun a
   maintenant sa surface — on voit qu'il y en a quatre, et on peut n'en traiter
   qu'un. */

.slice { border-top: 1px solid var(--rule); }
.slice:first-child { border-top: 0; }

/* ────────────────────────── Les charges, sur une ligne ───────────────────── */
/* Une charge, c'est un nom et un montant. Le reste — mode de calcul, dates,
   R&D — se déplie à la demande : dix postes doivent tenir sur un écran. */

.cost-row { border-bottom: 1px solid var(--rule); background: var(--surface); }
.cost-row:first-of-type { border-top: 1px solid var(--rule); }
.cost-row.is-off { opacity: .5; }
.cost-line { display: flex; align-items: center; gap: 10px; padding: 7px 12px; }
.cost-label {
  flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 4px 2px;
  font: inherit; font-size: 13px; color: var(--ink); border-bottom: 1px solid transparent; text-overflow: clip;
}
.cost-label:focus { border-bottom-color: var(--ink); }
.cost-amount { display: flex; align-items: center; gap: 6px; flex: none; }
.cost-amount input {
  width: 86px; border: 1px solid var(--rule); background: var(--surface); outline: 0;
  padding: 5px 8px; text-align: right; font-size: 13px;
}
.cost-amount input:focus { border-color: var(--ink); }
/* Le montant et ses chevrons, dans le même cadre : ils disent le même chiffre. */
.cost-box { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--rule); background: var(--surface); padding-right: 3px; }
.cost-box:focus-within { border-color: var(--ink); }
.cost-line .cost-box > input, .cost-line .cost-box > input:focus { border: 0; background: none; }
/* L'unité d'un montant réglé ailleurs (une campagne, dans Acquisition). */
.cost-unit {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--ink-4); background: none;
  border: 1px solid var(--rule); border-radius: 4px; padding: 3px 6px; cursor: pointer; flex: none; white-space: nowrap;
}
.cost-unit:hover { border-color: var(--ink); color: var(--ink); }
.cost-unit.is-static { cursor: default; border-color: transparent; }
.cost-unit.is-static:hover { color: var(--ink-4); }
/* Le coût de revient d'une offre, en tête des charges par vente. */
.cost-row.is-revient { background: var(--surface-2); }
.cost-revient-tag {
  flex: none; font: 600 12px/1.3 var(--sans); letter-spacing: 0;
  color: var(--ink-3); padding: 3px 7px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
}
.cost-label.is-fixe { display: block; padding: 4px 2px; overflow-wrap: anywhere; }
/* Une campagne marketing : lue avec les charges, réglée dans Acquisition. */
.cost-row.is-campagne { background: var(--surface-2); }
.cost-fige { font-size: 14px; color: var(--ink); padding: 0 4px; }
.cost-lien { flex: none; border: 0; background: none; padding: 0; cursor: pointer; font: 600 13px/1.3 var(--sans); color: var(--signal-ink); white-space: nowrap; }
.cost-lien:hover { text-decoration: underline; }
.cost-mode { flex: none; }
.cost-mode select {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 6px;
  padding: 5px 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; max-width: 128px;
}
.cost-mode select:focus { border-color: var(--signal); outline: 0; }
.cost-extra { display: flex; align-items: center; gap: 5px; flex: none; }
.cost-extra input {
  width: 58px; border: 1px solid var(--rule); background: var(--surface); outline: 0;
  padding: 5px 7px; text-align: right; font-size: 13px;
}
.cost-extra input:focus { border-color: var(--ink); }
.cost-extra > span { font-family: var(--sans); font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
/* L'offre sur laquelle la charge est indexée. */
.cost-drop:hover { border-color: var(--loss); color: var(--loss); }
.cost-year {
  flex: none; width: 80px; text-align: right; font-size: 12px; color: var(--ink-4);
}
.cost-more {
  flex: none; width: 26px; height: 26px; border: 1px solid transparent; background: none;
  cursor: pointer; color: var(--ink-4); font-size: 14px; line-height: 1;
}
.cost-more:hover { border-color: var(--rule); color: var(--ink); }
.cost-row.open .cost-more { border-color: var(--ink); color: var(--ink); }
.cost-detail { padding: 4px 12px 14px 56px; border-top: 1px solid var(--rule); background: var(--surface-2); }

/* Sur un écran moyen, une ligne trop longue (un achat par vente, ses offres,
   son montant et ses chevrons) passe à la ligne plutôt que de déborder. */
@media (max-width: 1100px) {
  .cost-line { flex-wrap: wrap; row-gap: 6px; }
  .cost-label { flex: 1 1 160px; }
}
@media (max-width: 720px) {
  .cost-line { flex-wrap: wrap; }
  .cost-label { flex: 1 1 100%; order: -1; }
  /* Un achat ponctuel : montant, unité et mois ne tiennent pas sur 390 px ;
     le mois passe dessous plutôt que de faire déborder la page. */
  .cost-amount { flex-wrap: wrap; row-gap: 6px; max-width: 100%; min-width: 0; }
  .cost-year { display: none; }
  .cost-mode select { max-width: 106px; }
  .cost-detail { padding-left: 12px; }
}

/* ──────────── De ce que paie l'entreprise à ce que touche le dirigeant ───── */
/* Quatre marches, dans l'ordre où l'argent descend, chacune expliquant ce qui
   la sépare de la précédente. Le détail exhaustif vient après, pas avant. */

.pay { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--signal); }
.pay-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--rule);
}
.pay-year {
  margin-left: auto; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.pay-steps { display: flex; flex-direction: column; }
.pay-step { padding: 13px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.pay-step:last-child { border-bottom: 0; }
.pay-step::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rule);
}
.pay-step.cost::before { background: var(--loss); }
.pay-step.final { background: var(--ink); }
.pay-step.final::before { background: var(--gain); }
.pay-step-main { display: flex; align-items: baseline; gap: 14px; }
.pay-step-k { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.pay-step-v { margin-left: auto; font-size: 22px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.pay-step.cost .pay-step-v { color: var(--loss); }
.pay-step.final .pay-step-k { color: #fff; }
.pay-step.final .pay-step-v { color: #B9F510; font-size: 26px; }
.pay-step-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-4); line-height: 1.5; }
.pay-step.final .pay-step-note { color: #AEB9C9; }
.pay-foot {
  margin: 0; padding: 12px 18px; border-top: 1px solid var(--rule); background: var(--surface-2);
  font-size: 13px; color: var(--ink-3);
}

/* La liste des plans, repliée : on l'ouvre quand on en change. */
.plans-fold > summary { list-style: none; cursor: pointer; position: relative; padding-right: 40px; }
.plans-fold > summary::-webkit-details-marker { display: none; }
.plans-fold > summary:hover { background: var(--surface-2); }
.plans-chevron {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); font-size: 15px; transition: transform .18s var(--ease);
}
.plans-fold[open] .plans-chevron { transform: translateY(-50%) rotate(90deg); }

/* ────────────────── Les six chiffres qu'on vient chercher ────────────────── */
/* Ils étaient rangés dans un pli. Ce sont pourtant ceux qu'un fondateur cite
   quand on lui demande où il en est : ils vivent dehors, sur une ligne. */

.figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  background: var(--surface); margin-bottom: 16px;
}
.figure {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 13px 14px; border-right: 1px solid var(--rule);
  border-bottom: 2px solid transparent;
  background: none; cursor: pointer; font: inherit; text-align: left; min-width: 0;
  transition: background .12s, border-color .12s;
}
.figure:last-child { border-right: 0; }
.figure:hover { background: var(--surface-2); border-bottom-color: var(--ink); }

@media (max-width: 1240px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Le total du coût de revient, sous sa décomposition. */
.cost-sum { margin-top: 14px; border-top: 2px solid var(--rule-strong); }
.cost-sum-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-3);
}
.cost-sum-line:last-child { border-bottom: 0; }
.cost-sum-line .num { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.cost-sum-line.strong { color: var(--ink); }
.cost-sum-line.strong .num { color: var(--gain); font-size: 20px; }
.cost-sum-line.bad .num { color: var(--loss); }

/* Une page fusionnée dans une autre : elle perd ses marges de page. */
.merged { margin-top: 30px; padding-top: 26px; border-top: 2px solid var(--rule-strong); }
.merged .content { padding: 0; max-width: none; }

/* ───────────────────────── L'équipe, ce sont des gens ────────────────────── */
/* Une liste de lignes de texte fait oublier qu'embaucher est la décision la
   plus lourde d'un business plan. La couleur porte le statut. */
.who {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-5);
  border: 1px solid var(--rule);
}
.who svg { display: block; margin-top: 2px; }
.who-cdi, .who-cdd { color: var(--signal); background: var(--signal-wash); border-color: transparent; }
.who-dirigeant { color: #fff; background: var(--ink); border-color: var(--ink); }
.who-tns { color: #fff; background: var(--gain); border-color: var(--gain); }
.who-alternance, .who-stage { color: var(--warn); background: var(--warn-wash); border-color: transparent; }
.who-freelance { color: var(--ink-4); background: var(--surface); border-style: dashed; }
.who-count {
  position: absolute; right: -4px; bottom: -3px; min-width: 15px; height: 15px; padding: 0 3px;
  display: grid; place-items: center; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 600;
}
.item.is-off .who { filter: grayscale(1); }

/* ─────────────────── Avantages salariés (mode expert) ─────────────────── */
.perks { margin-top: 18px; border: 1px solid var(--rule); }
.perk { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.perk:last-child { border-bottom: 0; }
.perk .onoff { flex: none; margin-top: 2px; }
.perk-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.perk-help { font-size: 12px; color: var(--ink-4); line-height: 1.5; margin-top: 3px; }
.perk:not(.on) .perk-help { display: none; }
.perk:not(.on) { background: var(--surface-2); }
.perk.on { background: var(--surface); }
.perk.on.is-legal { box-shadow: inset 3px 0 0 var(--signal); }
.perk-amount { flex: none; }
.perk-box {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--rule-strong); border-radius: 8px; padding: 4px 8px; background: var(--surface);
}
.perk-box:focus-within { border-color: var(--ink); }
.perk-input { width: 62px; border: 0; background: none; text-align: right; font-size: 14px; font-weight: 600; color: var(--ink); }
.perk-input:focus { outline: none; }
.perk-input::-webkit-outer-spin-button, .perk-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perk-total {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 14px; background: var(--surface-2); border-top: 1px solid var(--rule-strong); font-size: 13px;
}
.perk-total .num { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
/* La mutuelle estimée (audit, ANO-10) : dite comme telle, à confirmer d'un clic. */
.perk-estime { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 6px; }
/* La convention collective (audit ANO-20) : un champ, et le lien qui aide à la trouver. */
.convention { max-width: 520px; }
/* Une association face à la franchise des impôts commerciaux (Réglages, ANO-22). */
.assoc-annees { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.assoc-annees ul { margin: 6px 0 0; padding-left: 18px; }
.assoc-annees li { margin: 2px 0; }
.convention-lien { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.perk-confirmer {
  border: 0; background: none; padding: 0; font: inherit; color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
@media (max-width: 720px) {
  .perk { flex-wrap: wrap; }
  .perk-amount { margin-left: 46px; }
}

/* ─────────── En-tête du tableau de bord et verdict de côté ─────────── */
/* Le verdict : une pastille, un mot, une ligne. Le raisonnement se déplie. */
.verdict {
  flex: 0 1 340px; min-width: 250px; align-self: flex-end;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden;
}

.verdict .spacer { min-width: 0; }

/* Deux graphiques côte à côte. */
.board-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.board-pair > .panel { margin-bottom: 0; }
.chart-note {
  margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3);
  border-left: 2px solid var(--signal); padding-left: 10px;
}
@media (max-width: 980px) { .board-pair { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .verdict { flex: 1 1 100%; }
}

/* ───────── Le niveau de détail, rendu visible par la couleur ───────── */
.shell { --level: var(--ink); --level-wash: var(--surface-2); }
.shell[data-level="easy"] { --level: var(--gain); --level-wash: var(--gain-wash); }
.shell[data-level="intermediate"] { --level: var(--signal); --level-wash: var(--signal-wash); }
.shell[data-level="advanced"] { --level: #7C3AED; --level-wash: #EEE5FF; }

.levels { border-color: var(--level); }
.level-btn.active { background: var(--level); color: #fff; }
.rail-link.active { border-left-color: var(--level); }

/* Un bloc débloqué par la profondeur choisie. */
.lv {
  position: relative; margin: 20px 0 0; padding-left: 15px;
  border-left: 3px solid var(--lv-color);
}
.lv .perks, .lv .card { margin-top: 0; }

.ueco-sum {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start;
  margin-top: 14px; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--rule);
}
.ueco-sum-label { font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); }
.ueco-sum-value { font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin-top: 2px; }
.ueco-sum-note { flex: 1 1 260px; margin: 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }

/* ───────────────── Offre : la frise des encaissements ───────────────── */
.tline { margin-top: 16px; }
.tline-track { position: relative; height: 66px; margin: 0 4px; }
.tline-rule { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--rule); }
.tline-gap {
  position: absolute; top: 5px; height: 10px; border-radius: 5px;
  background: repeating-linear-gradient(45deg, var(--warn-wash), var(--warn-wash) 4px, transparent 4px, transparent 8px);
  border: 1px solid var(--warn-wash);
}
.tline-point { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.tline-point > i {
  display: block; width: 11px; height: 11px; margin: 4px auto 0; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink-5);
}
.tline-point.paid > i { background: var(--ink); border-color: var(--ink); }
.tline-label { display: block; margin-top: 6px; white-space: nowrap; font-size: 11px; color: var(--ink-4); }
.tline-label b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
/* Les libellés des extrémités s'alignent sur le point plutôt que de déborder. */
.tline-point[data-side="start"] .tline-label { transform: translateX(50%); }
.tline-point[data-side="end"] .tline-label { transform: translateX(-50%); }
.tline-note { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.tline-split { display: block; font-weight: 600; color: var(--ink); margin-bottom: 3px; }

/* ───────────────── Offre : les volumes, en courbe et en barres ───────────── */
.vol { border: 1px solid var(--rule); background: var(--surface); margin-top: 16px; }
/* La saisonnalité : un profil, puis douze mois qui se règlent un à un. */
.saison { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.saison-titre { font: 700 15px/1.3 var(--display); color: var(--ink); }
.saison-sous { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.saison-profils { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.saison-profil { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 13px/1.2 var(--sans); color: var(--ink-2); }
.saison-profil:hover { border-color: var(--ink); color: var(--ink); }
.saison-profil.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.saison-dit { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.saison-mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.saison-m { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.saison-barre { display: flex; align-items: flex-end; width: 100%; height: 56px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.saison-barre i { display: block; width: 100%; background: var(--ink); border-radius: 4px 4px 0 0; transition: height .2s; }
.saison-m.is-debut .saison-nom { color: var(--ink); font-weight: 700; }
.saison-nom { font: 600 11px/1.2 var(--mono); color: var(--ink-4); }
.saison-champ { display: inline-flex; align-items: baseline; gap: 2px; }
.saison-champ input { width: 44px; padding: 3px 4px; border: 1px solid var(--rule); border-radius: 6px; text-align: right; font-size: 12px; background: var(--surface); color: var(--ink); }
.saison-champ small { font-size: 11px; color: var(--ink-4); }
@media (max-width: 640px) { .saison-mois { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vol-head {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--rule); background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.vol .chart { padding: 8px 6px 0; }
.vol-years {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule); background: var(--surface-2);
}
.vol-year { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px; border-right: 1px solid var(--rule); }
.vol-year:last-child { border-right: 0; }
.vol-year-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--ink-4); }
.vol-year-bar { width: 22px; height: 38px; display: flex; align-items: flex-end; background: var(--rule); border-radius: 2px; overflow: hidden; }
.vol-year-bar > i { display: block; width: 100%; background: var(--gain); }
.vol-year-units { font-size: 14px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.vol-year-rev { font-size: 11px; color: var(--ink-4); }
.vol-note { margin: 0; padding: 11px 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) {
  .ueco-sum { gap: 16px; }
  .tline-label { font-size: 10px; }
}

/* Pas de délai du tout : une ligne suffit, un axe de longueur nulle n'a rien à dire. */
.tline-flat {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 16px;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--gain-wash);
}
.tline-flat-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gain); flex: none; margin-top: 3px; }
.tline-flat-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.tline-flat-note { font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }

/* Sélecteur segmenté générique — distinct du sélecteur de profondeur. */
.seg { display: inline-flex; border: 1px solid var(--rule-strong); background: var(--surface); }
.seg-btn {
  border: 0; background: none; padding: 7px 14px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--ink-3); border-right: 1px solid var(--rule); transition: background .12s, color .12s;
}
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { background: var(--surface-2); color: var(--ink); }
.seg-btn.active { background: var(--ink); color: #fff; }

/* ─────────────── Acquisition en mode simple : deux nombres ─────────────── */
/* Une carte basse : le titre et sa phrase sur une ligne, deux champs, une
   ligne qui dit le budget, deux barres fines. Plus de grosses tuiles. */
.acq-macro { padding: 16px 18px 14px; }
.acq-macro-tete { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.acq-macro-tete h2 { margin: 0; font-size: 17px; }
.acq-macro-sous { font-size: 13px; color: var(--ink-4); }
.acq-ligne {
  margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px;
}
.acq-ligne b { color: var(--ink); font-weight: 600; }
.acq-ligne-sep { color: var(--ink-5); margin: 0 4px; }

.acq-scale { margin-top: 14px; max-width: 640px; }
.acq-scale-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.acq-scale-tag {
  flex: none; width: 64px; font-family: var(--sans); font-size: 12px;
  letter-spacing: 0; color: var(--ink-4);
}
.acq-scale-bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.acq-scale-bar > i { display: block; height: 100%; border-radius: 999px; }
.acq-scale-bar > i.gain { background: var(--gain); }
.acq-scale-bar > i.loss { background: var(--loss); }
.acq-scale-num { flex: none; width: 84px; text-align: right; font-size: 13px; font-weight: 600; color: var(--ink); }
.acq-scale-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* Ce que produit le budget d'une campagne : une ligne, sans fond de couleur. */
.acq-entonnoir {
  margin: 14px 0 0; padding: 9px 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  font-size: 13px; color: var(--ink-3); background: var(--surface-2); border-radius: 8px;
}
.acq-entonnoir-titre { color: var(--ink-4); margin-right: 2px; }
.acq-entonnoir-etape { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.acq-entonnoir-fleche { color: var(--ink-5); }
.acq-entonnoir-cac { margin-left: auto; }
.acq-entonnoir-cac b { color: var(--ink); }
@media (max-width: 640px) {
  .acq-scale-tag { width: 58px; }
  .acq-scale-num { width: 76px; }
  .acq-entonnoir-cac { margin-left: 0; }
}

/* ─────────── Listes : l'action d'ajout en tête, pas tout en bas ─────────── */
.item-act {
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-4);
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer; flex: none;
  font-size: 12px; margin-right: 8px; transition: border-color .12s, color .12s;
}
.item-act:hover { border-color: var(--ink); color: var(--ink); }

/* ─── Le cadre d'un mode de revenu ───
   « Vente à l'unité » et « Abonnement » étaient deux blocs qu'on ajoutait et
   retirait, avec leur en-tête et leur croix. Ce sont désormais trois modes
   exclusifs choisis en haut : il ne reste du bloc que son cadre. */
.part { border: 1px solid var(--rule); padding: 14px; margin-bottom: 12px; background: var(--surface); }

/* ─────────── Financement : une grille de sources, pas une pile ─────────── */
/* Des tuiles bordées, pas un damier : la grille tramée laissait des cases
   grises là où la dernière ligne n'était pas remplie. */
.sources {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 8px; background: none;
}
.source {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 13px; background: var(--surface); cursor: pointer;
  border: 1px solid var(--rule); border-radius: 11px;
  font: inherit; text-align: left; min-width: 0;
  transition: background .12s, border-color .12s;
}
.source:hover { background: var(--surface-2); border-color: var(--ink-5); }
.source.is-open { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
/* L'icône de la source, à côté de son titre : grise tant qu'elle ne sert pas. */
.source-tete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.source-icone {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface-2); color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--rule);
  transition: background .14s var(--ease-soft), color .14s var(--ease-soft);
}
.source-icone svg { display: block; }
.source.is-on .source-icone { background: var(--ink); color: var(--accent); box-shadow: none; }
.source-cash .source-icone { background: var(--surface); color: var(--ink); }
/* Sous la rangée des sources, de l'air avant ce que le banquier vérifie. */
.view > .sources { margin-bottom: var(--s-5); }
.source-name { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.source-value { font-size: 17px; font-weight: 600; letter-spacing: -.035em; color: var(--ink-5); margin-top: 2px; }
.source.is-on .source-value { color: var(--ink); }
.source-count { font-size: 11px; color: var(--ink-4); }
/* Une source en pause : son montant, barré d'un trait fin, reste lisible. */
.source-value.is-pause { color: var(--ink-4); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-5); }
.source-cash { background: var(--surface-2); cursor: default; }
.source-money {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
  border: 1px solid var(--rule-strong); border-radius: 6px; padding: 2px 7px; background: var(--surface);
}
.source-money:focus-within { border-color: var(--signal); }
.source-input { width: 78px; border: 0; background: none; outline: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.source-line { border: 1px solid var(--rule); padding: 12px; background: var(--surface-2); }
/* En grille, « repeat(auto-fit, …) auto » est une déclaration invalide : une
   piste intrinsèque ne peut pas voisiner une répétition automatique. Le
   navigateur jetait la règle entière et empilait les champs sur toute la
   largeur, un par ligne. En flex, ils tiennent sur une seule ligne. */
.source-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.source-fields > .field { flex: 1 1 150px; min-width: 132px; }
.source-fields > .btn { flex: none; }
/* Toutes les sources sur une ligne.
   La grille à remplissage automatique posait six tuiles puis renvoyait
   « Avance remboursable » seule à la ligne suivante : une rangée et demie
   pour sept choix de même rang. Sur un écran assez large, elles se
   partagent la largeur en parts égales ; en dessous, la grille reprend. */
@media (min-width: 1100px) {
  .sources { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .source { padding: 11px 11px; }
  .source-money { max-width: 100%; }
  .source-input { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-fields > .field { flex: 1 1 calc(50% - 5px); }
}

/* ═══════════════════ Le poste de pilotage du tableau de bord ═══════════════ */
.cockpit {
  display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.5fr) minmax(210px, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-top: 2px solid var(--level, var(--rule-strong));
}
.cockpit > * { background: var(--surface); padding: 14px 16px; min-width: 0; }
.cockpit-score { display: flex; align-items: center; gap: 14px; }
.cockpit-ring { position: relative; width: 64px; height: 64px; flex: none; }
.cockpit-ring svg { display: block; }
.cockpit-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 17px; font-weight: 600; letter-spacing: -.04em; color: var(--ink);
}
.cockpit-rank { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: var(--ink); }
.cockpit-sub { font-size: 12px; color: var(--ink-4); line-height: 1.45; margin-top: 3px; }

.cockpit-badges { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px 3px 7px;
  font-size: 12px; color: var(--ink-5); background: var(--surface-2);
  transition: border-color .12s, color .12s, background .12s;
}
.badge-glyph { font-size: 11px; opacity: .55; }
.badge.is-won { color: var(--ink); background: var(--gain-wash); border-color: transparent; }
.badge.is-won .badge-glyph { color: var(--gain); opacity: 1; }
.badge-value { font-size: 11px; color: var(--gain); font-weight: 600; }

.cockpit-next { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.cockpit-next-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.cockpit-next-label { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.cockpit-next-hint { font-size: 12px; color: var(--ink-4); line-height: 1.45; }
.cockpit-next .btn { align-self: flex-start; }

/* Les manettes */
.deck {
  border: 1px solid var(--rule); border-top: 2px solid var(--rule-strong);
}
@media (max-width: 980px) {
  .cockpit { grid-template-columns: 1fr; }
    }

/* ─────────────── Les conseils, en onglets plutôt qu'empilés ─────────────── */
.advice { background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--rule-strong); }

/* ═══════════════════════════════════════════════════════════════════════════
   PASSE DE FORME — 2027

   Le fond ne bouge pas : même encre, même bleu de signal, mêmes chiffres à
   chasse fixe. Ce qui change, c'est la matière. Les angles vifs et les filets
   pleins donnaient un outil juste mais sec ; un rayon constant, une ombre
   basse et des séparateurs plus clairs rendent la densité supportable sans
   rien retirer au sérieux. Rien ici ne modifie une valeur ni une hiérarchie.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --lift: 0 1px 2px rgba(11, 14, 16, .04), 0 10px 30px -18px rgba(11, 14, 16, .22);
}

.card,
.panel,
.item,
.advice,
.deck,
.cockpit,
.figures,
.nudges,
.perks,
.vol,
.ueco-sum,
.sources {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--lift);
}
.kpi, .part, .source-line, .note, .gauge { border-radius: var(--r-md); }
.gauge { box-shadow: none; }
.btn { border-radius: var(--r-sm); }
.btn-lg { border-radius: var(--r-md); }
.control { border-radius: var(--r-sm); }
.levels, .seg { border-radius: var(--r-sm); overflow: hidden; }
.chip { border-radius: 999px; }
.help { border-radius: 5px; }
.modal { border-radius: var(--r-lg); }
.drawer { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.toast { border-radius: var(--r-sm); }
.setup-sector, .setup-choice, .setup-cost { border-radius: var(--r-md); }
.empty-icon { opacity: .2; }

/* Les filets internes s'allègent : la séparation suffit, l'insistance non. */
.card-head, .panel-head, .item-body, .cost-row, .lever, .gauge,
table.data th, table.data td { border-color: var(--rule); }
.card, .panel, .item, .advice, .deck, .figures, .nudges {
  border-top-width: 1px;
}
/* Sauf l'accent de tête, qui devient un liseré de couleur au lieu d'un trait noir. */
.card, .panel, .item, .advice, .deck, .figures, .nudges {
  border-top-color: var(--rule);
}
.figures { box-shadow: var(--lift), inset 0 2px 0 var(--level, var(--ink)); }
.cockpit { box-shadow: var(--lift), inset 0 2px 0 var(--level, var(--ink)); border-top-color: var(--rule); }

/* Le rail : moins de contraste brut, plus de profondeur. */
.rail-link { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Les entrées de tableau respirent d'un point de plus. */
table.data th, table.data td { padding: 9px 12px; }

@media (max-width: 860px) {
  .card,
.panel,
.item,
.advice,
.deck,
.cockpit,
.figures,
.nudges,
.perks,
.vol,
.sources { border-radius: var(--r-md); }
  .drawer { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ═══════════════ Navigation horizontale et volets ═══════════════════════ */
/* Une page de saisie n'est plus une pile : ses sujets tiennent sur une ligne,
   et l'on n'affiche que celui qu'on regarde. Le défilement devient l'exception. */

/* Le bandeau de section n'est plus un titre : le module en porte déjà un, et
   deux titres empilés repoussaient les chiffres d'un demi-écran. Il reste une
   ligne — ce qu'on regarde, son ordre de grandeur, et l'action pour ajouter. */
.pagebar {
  display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--rule);
}
.pagebar-id { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pagebar-title {
  font-family: var(--display); font-size: var(--t-block); font-weight: 700;
  letter-spacing: -.024em; color: var(--ink); margin: 0; line-height: 1.2;
}
.pagebar-sub { font-size: var(--t-block-sub); color: var(--ink-4); margin-top: 0; }

.hnav {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--rule); margin-bottom: var(--s-3);
}
.hnav::-webkit-scrollbar { display: none; }
.hnav-tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: var(--h-tab);
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--ink-4); padding: 6px 12px; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease);
}
.hnav-tab:hover { color: var(--ink); background: var(--surface-2); }
.hnav-tab.active { font-weight: 600; }
.hnav-count {
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  background: var(--surface-2); border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.hnav-tab.active .hnav-count { background: var(--level, var(--ink)); color: #fff; }

/* Le panneau n'est plus animé à chaque rendu.
   Cette règle rejouait un fondu à chaque reconstruction de la vue — y compris
   quand on cochait une simple case : tout le bloc des charges clignotait pour
   un interrupteur. L'entrée appartient à un changement d'onglet délibéré,
   pas à un recalcul ; elle est portée par la transition de vue, plus bas. */
.view-intro {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin: 0 0 12px; font-size: 13px; color: var(--ink-4); line-height: 1.55;
}
.view-foot { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Un volet */
.volet { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); margin-top: 12px; }

/* Montant avec unité commutable */
.unit-control { padding-right: 4px; }
.unit-switch { display: inline-flex; gap: 2px; flex: none; padding: 3px; }
.unit-btn {
  border: 0; background: none; cursor: pointer; border-radius: 6px; padding: 4px 7px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-5); white-space: nowrap;
  transition: background .12s, color .12s;
}
.unit-btn:hover { color: var(--ink); }
.unit-btn.active { background: var(--ink); color: #fff; }

/* La carte de lecture d'un salaire */
.paycard-note { font-size: 12px; color: var(--ink-4); }

/* La politique d'avantages, au niveau de l'entreprise */
.policy-top {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 26px; align-items: start;
  padding: 16px 0 18px; border-bottom: 1px solid var(--rule); margin-bottom: 4px;
}
.policy-figure { font-size: 26px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.policy-label {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-top: 5px;
}
.policy-note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
@media (max-width: 760px) {
  .policy-top { grid-template-columns: 1fr 1fr; gap: 16px; }
  .policy-note { grid-column: 1 / -1; }
}

/* Les charges qu'on oublie : des pastilles, pas une liste de boutons. */
.suggest {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule);
}
.suggest-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-right: 3px;
}
.suggest-chip {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: var(--ink-3); cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.suggest-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.suggest-texte { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ─────── Changer de profondeur : une continuité, pas une rupture ───────── */
/* Le bouton dit ce qu'il ajoute avant qu'on clique. */
.levels { position: relative; }
.level-btn { position: relative; }
.level-btn::after {
  content: attr(data-preview);
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 60;
  width: max-content; max-width: 320px; text-align: left;
  background: var(--ink); color: #E6EAED; font-family: var(--sans);
  font-size: 12px; line-height: 1.5; letter-spacing: 0; text-transform: none;
  padding: 8px 11px; border-radius: var(--r-sm);
  opacity: 0; transform: translateY(-3px); pointer-events: none;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
  box-shadow: 0 12px 30px -14px rgba(11, 14, 16, .5);
}
.level-btn:hover::after, .level-btn:focus-visible::after { opacity: 1; transform: translateY(0); }
.level-btn.active::after { display: none; }

/* Les blocs qui viennent d'apparaître se posent, ils ne surgissent pas. */
.shell[data-shift="up"] .view,
.shell[data-shift="up"] .lv,
.shell[data-shift="up"] .hnav-tab,
.shell[data-shift="up"] .card,
.shell[data-shift="up"] .item { animation: settle .38s var(--ease) both; }
.shell[data-shift="up"] .hnav-tab:nth-child(2) { animation-delay: .04s; }
.shell[data-shift="up"] .hnav-tab:nth-child(3) { animation-delay: .08s; }
.shell[data-shift="up"] .hnav-tab:nth-child(4) { animation-delay: .12s; }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .shell[data-shift] * { animation: none !important; }
}

/* ═══════════════ Le seuil : combien de clients pour vivre ══════════════════ */
/* ─── Le seuil, écrit comme une division ─── */
.seuil {
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface);
  overflow: hidden;
}
.seuil-eq {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; gap: 0;
}
.seuil-term { padding: 20px 22px; min-width: 0; }
.seuil-term-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.seuil-term-value {
  font-size: 30px; font-weight: 600; letter-spacing: -.045em;
  color: var(--ink); margin-top: 8px; line-height: 1;
}
.seuil-term-note { margin-top: 9px; }
/* Le résultat est le seul terme sur fond d'encre : c'est lui qu'on retient. */
.seuil-term.is-result { background: var(--ink); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.seuil-term.is-result .seuil-term-tag { color: var(--accent); }
.seuil-term.is-result .seuil-term-value { color: #fff; font-family: var(--display); font-weight: 800; font-size: 44px; }
.seuil-term.is-result .seuil-term-note { color: #8A8D82; }
.seuil-op {
  font-family: var(--mono); font-size: 20px; color: var(--ink-5);
  padding: 0 6px; align-self: center;
}
.seuil-where { padding: 0 22px 20px; }
.seuil-meter { height: 5px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.seuil-meter > i { display: block; height: 100%; background: var(--ink); transition: width .4s var(--ease); }
.seuil.is-ok .seuil-meter > i { background: var(--gain); }
.seuil-line { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 860px) {
  .seuil-eq { grid-template-columns: 1fr; }
  .seuil-op { padding: 0 22px 6px; }
  .seuil-term.is-result { padding: 18px 22px; }
}

/* Les curseurs du modèle */
.knobs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0;
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--lift); margin-bottom: 18px;
}
.knob { border-right: 1px solid var(--rule); }
.knob:last-child { border-right: 0; }
.knob-range { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: none; cursor: grab; }
.knob-range:active { cursor: grabbing; }
.knob-range::-webkit-slider-runnable-track { height: 3px; background: var(--rule); border-radius: 2px; }
.knob-range::-moz-range-track { height: 3px; background: var(--rule); border-radius: 2px; }
.knob-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--level, var(--signal)); border: 0; margin-top: -6.5px; transition: transform .1s;
}
.knob-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--level, var(--signal)); border: 0; }
.knob-range:hover::-webkit-slider-thumb { transform: scale(1.18); }

/* La sensibilité */
.sens { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--lift); }
.sens-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 14px; align-items: baseline;
  padding: 13px 16px; border-bottom: 1px solid var(--rule);
}
.sens-row:last-child { border-bottom: 0; }
.sens-label { font-size: 14px; color: var(--ink-2); }
.sens-value { font-size: 15px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.sens-delta { text-align: right; font-size: 13px; color: var(--ink-4); }
.sens-row.is-good .sens-delta { color: var(--gain); font-weight: 600; }
.sens-row.is-bad .sens-delta { color: var(--loss); font-weight: 600; }

.model-sector {
  margin: 18px 0 0; font-size: 12px; color: var(--ink-4); line-height: 1.6;
  border-left: 2px solid var(--rule); padding-left: 12px;
}

@media (max-width: 900px) {
  .seuil { grid-template-columns: 1fr; }
    .knob { border-right: 0; }
  .sens-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sens-delta { grid-column: 2; text-align: right; }
}

/* Le rappel d'étape : une ligne, un chevron. */
.step-line { box-shadow: none; }
.step-line-head {
  align-items: center; cursor: pointer; list-style: none;
  background: var(--surface);
  border: 1px solid var(--rule); user-select: none;
}
.step-line-head::-webkit-details-marker { display: none; }
.step-line-head:hover { border-color: var(--ink-5); }
.step-line-no {
  flex: none; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-4); border: 1px solid var(--rule);
}
.step-line.done .step-line-no { background: var(--gain); color: #fff; border-color: transparent; }
.step-line-q { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.step-line-done {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--gain); flex: none;
}
.step-line-chev { color: var(--ink-5); font-size: 13px; flex: none; transition: transform .38s var(--ease-soft); }
.step-line[open] .step-line-chev { transform: rotate(90deg); }
.step-line-why {
  margin: 8px 0 0; padding: 0 12px 0 44px; font-size: 13px; line-height: 1.6; color: var(--ink-3);
}

/* ═══════════════════════ L'infobulle des graphiques ════════════════════════ */
/* Elle répond tout de suite, dans la langue du reste : un titre, une ligne par
   série, la pastille de couleur qui la relie au dessin. */
.ctip {
  position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
  min-width: 152px; max-width: 280px;
  background: var(--ink); color: #E6EAED; border-radius: var(--r-sm);
  padding: 9px 11px; box-shadow: 0 18px 40px -18px rgba(11, 14, 16, .65);
  opacity: 0; transition: opacity .1s var(--ease);
}
.ctip.is-on { opacity: 1; }
.ctip-head {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: #8E99A2; margin-bottom: 7px;
}
.ctip-row { display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.7; }
.ctip-row.is-strong { border-top: 1px solid #2A3238; margin-top: 4px; padding-top: 5px; }
.ctip-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ctip-label { color: #B9C1C7; flex: 1; min-width: 0; }
.ctip-row.is-strong .ctip-label { color: #fff; }
.ctip-value { color: #fff; font-weight: 600; white-space: nowrap; }
.chart-hot { cursor: crosshair; }
.donut .chart-hot, svg .chart-hot[stroke] { cursor: pointer; }

/* Le « i » d'une tuile : posé dans l'angle, discret jusqu'au survol. */
.figure { position: relative; }

/* ═════════ Le papier change de teinte avec la profondeur ═══════════════════ */
/* Trois univers, trois papiers. L'écart est volontairement faible — deux ou
   trois points de saturation — mais il suffit à faire sentir qu'on a changé
   d'espace, là où un simple bouton actif ne le disait qu'à qui le cherchait.
   L'encre, elle, ne bouge jamais : la lisibilité n'est pas négociable. */
.shell {
  background: var(--paper);
  transition: background .45s var(--ease);
}
.shell[data-level="easy"] { --paper: #F0F4F1; }
.shell[data-level="intermediate"] { --paper: #F0F2F7; }
.shell[data-level="advanced"] { --paper: #F3F0F7; }
.shell[data-level="easy"] { --surface-2: #F8FAF8; }
.shell[data-level="intermediate"] { --surface-2: #F8F9FC; }
.shell[data-level="advanced"] { --surface-2: #FAF8FC; }

/* La barre du haut suit le papier, sinon elle flotte au-dessus d'un autre fond. */
.topbar { background: color-mix(in srgb, var(--paper) 88%, transparent); transition: background .45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .shell, .topbar { transition: none; }
}

/* Le guide d'une partie : trois colonnes courtes, dépliées à la demande. */
.step-guide .step-line-why { padding: 0; margin: 0 0 12px; }
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; padding-top: 12px; border-top: 1px solid var(--rule);
}
.guide-cell p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.guide-cell-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-bottom: 5px;
}
.step-line.todo .step-line-no,
.step-line .step-line-no:not(.num) { font-family: var(--mono); font-style: italic; }

/* Le rappel « à quoi sert cette partie » n'est pas un panneau : c'est une
   pastille posée sous le chapô, qu'on ouvre si on en a besoin. Avant, un
   encadré blanc dans un encadré blanc occupait une bande entière pour une
   ligne de texte. */
.step-line {
  display: block; padding: 0; margin: -12px 0 20px;
  background: none; border: 0;
}
.step-line-head {
  display: inline-flex; width: auto; gap: 8px; padding: 5px 12px 5px 6px;
  border-radius: 999px; border-color: var(--rule); color: var(--ink-3);
}
.step-line-head .step-line-q { flex: none; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.step-line-head:hover .step-line-q { color: var(--ink); }
.step-line-no { width: 18px; height: 18px; font-size: 10px; border-radius: 999px; }
.step-line[open] .step-line-head { border-color: var(--ink); }
.step-guide { padding: 12px 0 0 2px; }
@media (max-width: 720px) {
  .step-guide { padding-left: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRUT — la couche éditoriale

   Le logiciel cesse de ressembler à un formulaire bien élevé. Titres de
   poster, libellés en capitales étroites, cartes blanches sur crème, un seul
   vert acide pour dire « ici ». La densité vient de la typographie, pas de
   l'accumulation de blocs. Ce qui précède reste en place : cette couche ne
   remplace pas le système, elle lui donne une voix.
   ═══════════════════════════════════════════════════════════════════════════ */

body { background: var(--paper); }

/* ─── Le rail : neuf modules numérotés, rien d'autre ─── */
.rail {
  background: var(--ink);
  padding: 14px 0 10px;
  gap: 0;
  --rail-dim: #83857A;
}
.rail-mark {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border-radius: 5px; padding: 5px 9px;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -.035em;
}
.rail-year {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  border: 1px solid #34362E; border-radius: 4px; padding: 3px 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--rail-dim);
}

.rail-link {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px;
  padding: 7px 14px; border: 0; background: none; width: 100%; text-align: left;
  color: #C3C5BA; font-weight: 500; font-size: 13px; cursor: pointer;
  border-left: 0; position: relative;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.rail-no {
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--rail-dim);
}
.rail-link:hover { background: #191B15; color: #fff; }
.rail-link.active { background: var(--accent); color: var(--ink); font-weight: 700; }
.rail-link.active .rail-no { color: var(--ink); opacity: .6; }
.rail-link .badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.rail-tick { font-size: 11px; color: #5E6156; }
.rail-link.done .rail-tick { color: var(--accent); }
.rail-link.active .rail-tick { color: var(--ink); opacity: .55; }
.rail-foot { margin-top: auto; padding: 8px 14px 0; border-top: 1px solid #22241D; }
.rail-foot .rail-link { padding-left: 0; padding-right: 0; grid-template-columns: 20px 1fr; }

/* ─── La barre du haut : un fil d'ariane, deux actions ─── */
.topbar { border-bottom: 1px solid var(--rule); gap: 14px; }
.crumb {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.topbar h1 { display: none; }

/* ─── Le titre de module : un poster, pas un en-tête de formulaire ─── */
.module-bar { width: 22px; height: 5px; background: var(--accent); border-radius: 2px; flex: none; }
/* Le tiret jaune précède le titre, sur sa ligne. */
.module-title .module-bar { display: inline-block; vertical-align: middle; position: relative; top: -.1em; width: .6em; height: .14em; margin-right: .32em; border-radius: 2px; }
.module-title {
}
/* ─── Les cartes de saisie ─── */
.slab {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 14px 18px 16px; margin-bottom: var(--s-3);
}
.slab-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--s-3); }
.slab-title { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: var(--ink); }
.slab-sub { font-size: 13px; color: var(--ink-4); margin-top: 3px; line-height: 1.5; }

/* Les choix en pavés : un intitulé, une glose */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 9px; }
/* Trois choix courts, toujours sur une ligne. */
.picks.is-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick {
  text-align: left; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  padding: 11px 13px; cursor: pointer; font: inherit;
  transition: border-color .12s, background .12s, color .12s, transform .08s;
}
.pick:hover { border-color: var(--ink-4); }
.pick:active { transform: translateY(1px); }
.pick-name { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.pick-note { font-size: 11px; color: var(--ink-4); margin-top: 3px; line-height: 1.4; }
.pick.active { background: var(--ink); border-color: var(--ink); }
.pick.active .pick-name { color: #fff; }
.pick.active .pick-note { color: #9EA196; }

/* Le bouton qui fait avancer */
.btn-go {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-weight: 600; padding: 9px 18px;
}
.btn-go.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-go:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--accent-ink); }
.btn-pill { border-radius: 999px; }

/* ─── Le bandeau de droite a été retiré : ses styles restent pour l'export. ─── */
.live {
  width: var(--live-w); flex: none; padding: 26px 18px 26px 0;
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: var(--header-h); align-self: start;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; scrollbar-width: thin;
}
@keyframes live-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

@media (max-width: 1180px) {
  .live { display: none; }
}

/* ─── « + Affiner » : la profondeur, là où elle sert ─── */
.refine { margin-top: 14px; border-top: 1px dashed var(--rule); }
.refine-head {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 11px 0 0; user-select: none; color: var(--ink-3);
  font-size: 13px; transition: color .12s;
}
.refine-head::-webkit-details-marker { display: none; }
.refine-head:hover { color: var(--ink); }
/* Un seul signe de pli dans toute l'application : un chevron dans un rond,
   qui se retourne. Il y en avait trois — un chevron, un « + » devenant croix,
   un bouton portant le mot « Déplier » — et la croix, qui veut dire
   « annuler » partout ailleurs, faisait craindre de perdre quelque chose. */
.foldsign {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-4);
  flex: none; line-height: 0; padding: 0;
  transition: transform .42s var(--ease-soft), background .2s var(--ease), color .2s, border-color .2s;
}
.foldsign svg { width: 13px; height: 13px; display: block; }
.refine-head:hover .foldsign { border-color: var(--ink); color: var(--ink); }
details[open] > .refine-head .foldsign {
  transform: rotate(180deg); border-color: var(--ink); color: var(--ink);
}
.refine-label { font-weight: 500; }
.refine[open] .refine-label { color: var(--ink); font-weight: 600; }
/* Aucune animation ici.
   Elle rejouait à chaque rendu, pour chaque volet ouvert de la page : ouvrir
   une famille de métiers refondait les trois volets du module. Le geste
   d'ouverture est déjà animé par `installMotion`, qui, lui, n'agit que sur un
   vrai clic. */
.refine-body { padding-top: 14px; }
.refine-body > .grid + .grid { margin-top: 12px; }
/* Le résumé, aligné à droite : ce que le volet contient sans l'ouvrir. */
.refine-sum { margin-left: auto; padding-left: 16px; font-size: 12px; color: var(--ink-4); }
.refine-head:has(.refine-sum) { display: flex; width: 100%; }
/* Un volet qui porte une section entière, et non trois champs de réglage,
   garde un peu plus d'air autour de lui. */
.refine-block { margin-top: 18px; }
.refine-block > .refine-body { padding-top: 16px; }

/* Le métier une fois choisi : un état, pas une grille de seize cartes. */
.picked {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; background: var(--surface-2);
}
.picked .btn { margin-left: auto; }

/* La complétude : des lignes cliquables, pas des boutons de formulaire. */
.item-act.is-drop:hover { border-color: var(--loss); color: var(--loss); }

/* ─── L'en-tête d'un module ─── */
.module-title {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-page); line-height: 1.04; letter-spacing: -.035em;
  color: var(--ink); margin: 0;
}

/* ═══════════ Ce qui manque, avant ce qu'on a trouvé ═════════════════════
   Au sortir du parcours, l'écran donne des chiffres nets, avec l'autorité
   d'un résultat — alors que la moitié des lignes vient encore des repères du
   métier. Ce bandeau le dit avant tout le reste. Il emprunte au bloc noir sa
   force : c'est la seule chose de la page qui parle plus fort que le verdict,
   et c'est voulu tant que le dossier n'est pas fini. */

/* ─── Le chiffre à retenir ─── */
.keystone {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 22px 24px; margin: 16px 0;
}
/* Un quart de cercle, pas une pastille : le disque est ancré dans l'angle et
   n'en laisse voir qu'un quartier. */
.keystone-arc {
  position: absolute; right: -96px; bottom: -96px; width: 250px; height: 250px;
  border-radius: 50%; background: var(--accent); pointer-events: none;
}
.keystone-tag {
  position: relative; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--accent);
}
.keystone-value {
  position: relative; font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.04em; line-height: 1.05; margin-top: 6px;
}
.keystone-note {
  position: relative; margin: 8px 0 0; font-size: 13px; line-height: 1.6;
  color: #B7BAAE;
}

/* ─── Deux colonnes de cartes, quand elles se lisent ensemble ─── */
.slab-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Deux blocs côte à côte partent du même trait.
   La règle qui espace deux blocs empilés — « .slab + .slab » — s'appliquait
   aussi au second d'une paire, bien qu'il ne soit pas dessous mais à côté :
   il descendait de dix-huit pixels, et la grille, qui étire ses cases sur
   toute la hauteur, lui reprenait ces dix-huit pixels en bas. Les deux
   boîtes commençaient donc à des hauteurs différentes pour finir ensemble.
   Dans une paire, l'écart est celui de la grille, et rien d'autre. */
.slab-pair > .slab { margin-bottom: 0; }
.slab-pair > .slab + .slab { margin-top: 0; }

/* Chaque source de financement s'ajoute et se retire depuis sa tuile. */
.source { position: relative; padding-bottom: 34px; }
.source-acts { position: absolute; left: 12px; bottom: 9px; display: flex; gap: 5px; }
.source-act {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-4); cursor: pointer;
  font-size: 13px;
  transition: border-color .12s, color .12s, background .12s;
}
.source-act.is-on { border-color: var(--ink); color: var(--ink); }
.source-act.is-on:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.source-act.is-off:hover { border-color: var(--loss); color: var(--loss); background: var(--loss-wash); }
.source-cash { padding-bottom: 14px; }

/* ─── Ce qui reste à affiner ─── */
/* Ce bloc ne demande rien : il propose.
   Un halo jaune autour faisait une tache et criait plus fort que la page. Ce
   qui le distingue maintenant, c'est sa matière : un fond prune très clair, un
   filet vertical plein à gauche, et un titre de la même couleur. Il se
   reconnaît d'un coup d'œil parmi les cartes blanches sans rien éclairer. */
.affine {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4);
  padding: 8px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--ink);
}
.affine-title { margin-right: 4px; font: 600 13px/1.2 var(--sans); color: var(--ink-3); white-space: nowrap; }
.affine-item {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit;
  padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-2);
  transition: border-color .14s var(--ease-soft), background .14s var(--ease-soft);
}
.affine-item:hover { border-color: var(--ink); background: var(--surface); }
.affine-item-label { font: 600 13px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.affine-item-go { font-size: 12px; color: var(--ink-4); }
.affine-item:hover .affine-item-go { color: var(--ink); }

/* ─── L'anneau qui dit « c'est ici » ─── */
/* Trois secondes, deux respirations, aucune secousse : l'attention se conduit,
   elle ne s'arrache pas. La couleur d'accent dit « ici » partout ailleurs dans
   l'interface ; elle le dit aussi ici. */
@keyframes spotlit-ring {
  0%   { box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); }
  12%  { box-shadow: 0 0 0 5px rgba(185, 245, 16, .55); }
  46%  { box-shadow: 0 0 0 2px rgba(185, 245, 16, .28); }
  62%  { box-shadow: 0 0 0 5px rgba(185, 245, 16, .48); }
  100% { box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); }
}
.spotlit {
  animation: spotlit-ring 3.2s var(--ease) 1;
  border-radius: 12px; scroll-margin-top: 90px;
}
/* Le reflet de l'arrivée : une lumière qui traverse la zone, de gauche à
   droite, en une seconde. Elle se pose par-dessus, sans rien déplacer. */
.is-shine { position: relative; }
.is-shine::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(185, 245, 16, .42) 50%, rgba(255, 255, 255, .5) 53%, transparent 64%, transparent 100%);
  background-size: 260% 100%; background-repeat: no-repeat;
  animation: shine-sweep 1s cubic-bezier(.45, .05, .3, 1) both;
}
@keyframes shine-sweep {
  from { background-position: 120% 0; opacity: 1; }
  85%  { opacity: 1; }
  to   { background-position: -20% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlit { animation: none; box-shadow: 0 0 0 3px rgba(185, 245, 16, .5); }
}

/* ─── Ce qu'il te reste, net de tout ─── */
.netsum {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 22px 24px; margin-bottom: 18px;
  display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: center;
}
/* Le quartier d'accent reste dans l'angle : plus large, il passait sous les
   chiffres de droite et les rendait illisibles. */
.netsum-arc {
  position: absolute; right: -150px; top: -150px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--accent); pointer-events: none;
}
.netsum-main { position: relative; min-width: 0; }
.netsum-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--accent);
}
.netsum-value {
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -.045em; line-height: 1.02; margin-top: 6px;
}
.netsum-month { font-size: 13px; color: #B7BAAE; margin-top: 4px; }
.netsum-month.num { font-family: var(--sans); letter-spacing: 0; }
.netsum-what { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: #B7BAAE; }
.netsum-split {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; border-left: 1px solid #2A3228;
}
.netsum-cell { padding: 2px 16px; border-right: 1px solid #2A3228; min-width: 0; }
.netsum-cell:last-child { border-right: 0; }
.netsum-cell-label {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: #8A8D82;
}
.netsum-cell-value { font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin-top: 5px; color: #fff; }
.netsum-cell.is-out .netsum-cell-value { color: #FF6F8E; }
.netsum-cell-note { margin-top: 4px; }
.netsum.is-empty { grid-template-columns: 1fr; }
.netsum-note { position: relative; margin: 8px 0 0; font-size: 13px; color: #B7BAAE; line-height: 1.6; }

@media (max-width: 900px) {
  .netsum { grid-template-columns: 1fr; gap: 16px; }
  .netsum-split { border-left: 0; border-top: 1px solid #2A3228; padding-top: 14px; grid-template-columns: 1fr; gap: 12px; }
  .netsum-cell { border-right: 0; padding: 0; }
}

/* ═══════════════════════ Le calme : hiérarchie et densité ══════════════════
   Trois reproches, un seul remède.

   « Trop chargé » : chaque carte portait un filet noir de deux pixels en tête.
   Six cartes sur une page, six barres noires, et l'œil ne sait plus laquelle
   compte. Le filet lourd est désormais réservé aux blocs qui décident.

   « Des textes plus gros que des titres » : les tailles s'étaient accumulées au
   fil des pages. Une seule échelle, appliquée partout, remet l'ordre.

   « Un chiffre énorme et dessous une note qu'on ne comprend pas » : la note
   sous un nombre est une phrase, pas une étiquette — elle a droit à la même
   lisibilité que le reste du texte.
   ═══════════════════════════════════════════════════════════════════════════ */

.card, .panel { border-top-color: var(--rule); }
/* Le filet d'encre ne reste que là où il désigne : le bloc qui porte la
   décision de la page. */
.panel.is-key, .card.is-key { border-top: 2px solid var(--rule-strong); }

/* L'échelle des titres. Un seul niveau par rôle, la même valeur partout. */
.card-head h2, .panel-head h2, .panel h2 {
  font-family: var(--display); font-size: var(--t-block); font-weight: 700;
  letter-spacing: -.024em; line-height: 1.2; color: var(--ink);
}
.card-head .tiny.muted, .panel-head .tiny.muted, .panel-sub {
  font-size: var(--t-block-sub); color: var(--ink-4); line-height: 1.5; margin-top: 3px;
}

/* L'échelle des nombres : trois marches, pas sept.
   22 px pour une cellule, 28 px pour un terme d'opération, 38 px et plus pour
   le seul chiffre que la page veut faire retenir. */
.kpi-value { font-size: 22px; }

/* La note sous un nombre se lit comme une phrase. */
.kpi-sub, .sim-fig-gap, .seuil-term-note, .netsum-cell-note {
  font-size: 12px; line-height: 1.5; color: var(--ink-4);
}

/* De l'air entre les blocs : la densité venait autant des marges que du
   contenu. */
.board-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.view > .card + .card, .view > .panel + .panel { margin-top: 14px; }

/* ═══════════════════════════════ La présentation ═══════════════════════════
   Quinze écrans plein cadre. Une idée par écran, un chiffre par idée, et rien
   autour : ni rail, ni fil d'Ariane, ni bouton qu'on n'utilisera pas pendant
   qu'on parle. Le fond d'encre marque les quatre moments qui décident.
   ═══════════════════════════════════════════════════════════════════════════ */
.deck {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  display: flex; flex-direction: column; outline: 0;
}
.deck-bar {
  display: flex; align-items: center; gap: 20px; flex: none;
  padding: 14px 24px; border-bottom: 1px solid var(--rule);
}
.deck-exit {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--ink-4); padding: 4px 2px; transition: color .2s var(--ease-soft);
}
.deck-exit:hover { color: var(--ink); }
.deck-dots { display: flex; gap: 5px; flex: 1; justify-content: center; flex-wrap: wrap; }
.deck-dot {
  width: 22px; height: 4px; border: 0; border-radius: 3px; padding: 0;
  background: var(--rule); cursor: pointer;
  transition: background .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.deck-dot.seen { background: var(--ink-5); }
.deck-dot.active { background: var(--ink); transform: scaleY(1.8); }
.deck-dot:hover { background: var(--ink-4); }
.deck-count { font-size: 12px; color: var(--ink-4); flex: none; }

.deck-stage { flex: 1; display: grid; place-items: center; padding: 3vh 5vw; overflow-y: auto; min-height: 0; }

.slide {
  width: 100%; max-width: 1000px;
  animation: slide-in .5s var(--ease-soft) both;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.slide-inner {
  border: 1px solid var(--rule); border-radius: 22px; background: var(--surface);
  padding: clamp(26px, 4vw, 52px);
}
.slide.is-dark .slide-inner { background: var(--ink); border-color: var(--ink); color: #fff; }
.slide-kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-bottom: 14px;
}
.slide.is-dark .slide-kicker { color: var(--accent); }
.slide-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.4vw, 52px); line-height: .98; letter-spacing: -.045em;
  color: var(--ink); margin: 0;
}
.slide.is-dark .slide-title { color: #fff; }
.slide-lead {
  font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; color: var(--ink-3);
  margin: 16px 0 0;
}
.slide.is-dark .slide-lead { color: #B7BAAE; }
.slide-body { margin-top: 28px; }
.slide-foot {
  margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 13px; line-height: 1.6; color: var(--ink-4);
}
.slide.is-dark .slide-foot { border-top-color: #2A3228; color: #8A8D82; }

.slide-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; }
.slide-fact-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.slide.is-dark .slide-fact-tag { color: #8A8D82; }
.slide-fact-value {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.04em;
  color: var(--ink); margin-top: 8px; line-height: 1.1;
}
.slide.is-dark .slide-fact-value { color: #fff; }
.slide-fact-note { font-size: 12px; color: var(--ink-4); margin-top: 5px; line-height: 1.45; }
.slide.is-dark .slide-fact-note { color: #8A8D82; }

.slide-headline { margin-bottom: 24px; }
.slide-headline-value {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 86px); line-height: .94; letter-spacing: -.05em; color: var(--ink);
}
.slide.is-dark .slide-headline-value { color: var(--accent); }
.slide-headline-note {
  margin: 12px 0 0; font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-3);
  line-height: 1.5;
}
.slide.is-dark .slide-headline-note { color: #B7BAAE; }

/* La barre prix / coût / marge, en une ligne. */
.slide-bar {
  display: flex; height: 26px; border-radius: 8px; overflow: hidden;
  background: var(--gain); margin-bottom: 26px;
}
.slide-bar-cost { background: var(--ink); }
.slide-bar-margin { flex: 1; }

.slide-table { overflow-x: auto; }
.slide-table table.data { font-size: 14px; }
.slide-table table.data td, .slide-table table.data th { padding: 11px 14px; }

.deck-nav {
  position: fixed; right: 24px; bottom: 26px; display: flex; gap: 8px; z-index: 72;
}
.deck-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: 17px;
  box-shadow: var(--lift); transition: background .24s var(--ease-soft), transform .24s var(--ease-soft), opacity .2s;
}
.deck-arrow:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.deck-arrow:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.deck-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rule); z-index: 72; }
.deck-progress > i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease-soft); }

@media (max-width: 760px) {
  .deck-bar { padding: 10px 14px; gap: 12px; }
  .deck-dots { display: none; }
  .deck-stage { padding: 2vh 14px 70px; }
  .slide-inner { padding: 22px 18px; border-radius: 16px; }
  .deck-nav { right: 14px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .slide { animation: none; } }

/* ══════════════════════════════ La conversation ════════════════════════════
   Les mêmes questions que le parcours, posées autrement. Une colonne étroite,
   des bulles, et une seule chose à faire en bas de l'écran.
   ═══════════════════════════════════════════════════════════════════════════ */
.chat {
  min-height: 100dvh; background: var(--paper);
  max-width: 660px; margin: 0 auto; padding: 26px 22px 40px;
  display: flex; flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 22px;
}
.chat-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
}
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.chat-exit {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--ink-4); text-decoration: underline; text-underline-offset: 3px;
}
.chat-exit:hover { color: var(--ink); }

.chat-thread { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chat-line { display: flex; animation: chat-in .42s var(--ease-soft) both; }
@keyframes chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.chat-line.is-me { justify-content: flex-end; }
.chat-bubble {
  max-width: 86%; padding: 12px 15px; border-radius: 16px;
  font-size: 14px; line-height: 1.55; background: var(--surface);
  border: 1px solid var(--rule); color: var(--ink-2);
}
.chat-line.is-me .chat-bubble {
  background: var(--ink); border-color: var(--ink); color: #fff; border-bottom-right-radius: 5px;
}
.chat-line.is-app .chat-bubble { border-bottom-left-radius: 5px; }

.chat-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chat-choice {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
  padding: 10px 14px; cursor: pointer; font: inherit; text-align: left;
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.chat-choice:hover { border-color: var(--ink); transform: translateY(-1px); }
.chat-choice-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.chat-choice-note { font-size: 12px; color: var(--ink-4); line-height: 1.4; }

.chat-composer { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.chat-field {
  display: flex; align-items: baseline; gap: 10px; flex: 1 1 240px; min-width: 0;
  border: 1px solid var(--ink); border-radius: 14px; background: var(--surface); padding: 10px 15px;
  transition: box-shadow .2s var(--ease-soft);
}
.chat-field:focus-within { box-shadow: 0 0 0 3px var(--accent-wash); }
.chat-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.chat-suffix { font-family: var(--mono); font-size: 12px; color: var(--ink-4); flex: none; }
.chat-send { flex: none; border-radius: 999px; }
.chat-skip {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--ink-4); text-decoration: underline; text-underline-offset: 3px;
}
.chat-skip:hover { color: var(--ink); }
.chat-end { margin-top: 10px; }
.chat-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.chat-foot { margin: 26px 0 0; font-size: 12px; color: var(--ink-5); line-height: 1.5; }
.landing-talk { width: 100%; justify-content: center; margin-top: 10px; }

/* ═════════════════════════════════ Le guide ════════════════════════════════
   Une seule chose à faire, posée en bas à droite, à demeure. Pas une fenêtre
   qu'on ferme pour continuer : un repère qu'on regarde quand on ne sait plus.
   ═══════════════════════════════════════════════════════════════════════════ */
/* Le guide se posait au-dessus d'une barre qui n'existe plus.
   `--impact-h` reserve soixante-deux pixels pour un bandeau d'impact retire
   depuis : la carte flottait donc a mi-hauteur du champ qu'on remplissait.
   Elle descend au ras du bas de fenetre. La pastille fermee, elle, garde sa
   hauteur : c'est la qu'on la cherche du regard. */
.nextstep {
  position: fixed; right: 18px; bottom: 14px; z-index: 60;
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 10px 12px 10px 10px; max-width: min(360px, calc(100vw - 32px));
  box-shadow: 0 2px 6px rgba(11, 14, 16, .12), 0 18px 46px -18px rgba(11, 14, 16, .5);
}
/* L'entrée n'appartient qu'à une nouvelle ligne à poser. Sans cette condition,
   le guide remontait et se refondait à chaque rendu — donc à chaque case
   cochée — pour dire exactement la même chose. */
.nextstep.is-fresh { animation: nextstep-in .52s var(--ease-soft) both; }
.nextstep-tab.is-fresh { animation: nextstep-in .4s var(--ease-soft) both; }
@keyframes nextstep-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
/* La mascotte, ouverte : assise sur le bord haut de la carte, à gauche, la
   tête qui dépasse. La part posée l'accompagne, comme une fois repliée. */
.nextstep { padding-left: 88px; }
.nextstep-mascotte {
  position: absolute; left: 8px; top: -30px; width: 72px; height: 72px; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(11, 14, 16, .28));
}
.nextstep-mascotte img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.nextstep-mascotte-pct {
  position: absolute; right: -4px; bottom: -2px;
  font: 600 10px/1 var(--mono); letter-spacing: -.01em; white-space: nowrap;
  color: var(--accent); background: var(--ink); padding: 3px 6px; border-radius: 999px;
  box-shadow: 0 0 0 2px #2A3228;
}
.nextstep.is-fresh .nextstep-mascotte { animation: nextstep-coucou .7s var(--ease-soft) .12s both; }
@keyframes nextstep-coucou {
  from { transform: translateY(14px) rotate(-8deg); opacity: 0; }
  60%  { transform: translateY(-3px) rotate(3deg); opacity: 1; }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .nextstep.is-fresh .nextstep-mascotte { animation: none; } }
.nextstep-body { min-width: 0; flex: 1; }
.nextstep-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--accent);
}
.nextstep-do { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.35; margin-top: 2px; }
.nextstep-unlock { font-size: 12px; color: #8A8D82; margin-top: 2px; line-height: 1.4; }
.nextstep-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.nextstep-go { flex: none; border-radius: 999px; padding: 5px 14px; font-size: 13px; }
/* « Plus tard » ne se déguise pas en bouton principal : c'est une porte de
   sortie, pas une proposition concurrente. */
.nextstep-later {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 12px; color: #8A8D82; padding: 5px 10px; border-radius: 999px;
  transition: color .18s var(--ease-soft), background .18s var(--ease-soft);
}
.nextstep-later:hover { color: #fff; background: rgba(255, 255, 255, .08); }
/* Le rappel de ce qui attend : il ne culpabilise pas, il propose de reprendre. */
.nextstep-back {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-top: 10px; padding: 7px 0 0; border: 0; border-top: 1px solid #2A3228;
  background: none; cursor: pointer; font: inherit;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: #6D7268; transition: color .18s var(--ease-soft);
}
.nextstep-back:hover { color: var(--accent); }
.nextstep-back-do { margin-left: auto; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.nextstep-tag.is-again { color: #8A8D82; }
.nextstep-close {
  position: absolute; top: 6px; right: 8px; border: 0; background: none; cursor: pointer;
  color: #6D7268; font-size: 15px; line-height: 1; padding: 2px 4px;
  transition: color .16s var(--ease-soft);
}
.nextstep-close:hover { color: #fff; }
/* Refermé : la mascotte, qu'on touche pour rouvrir le guide. Assez grande
   pour qu'on la reconnaisse du coin de l'œil, assez petite pour ne jamais
   couvrir un chiffre. La part posée l'accompagne, en petit. Elle se tient
   dans le coin même où la carte s'ouvre : l'une se change en l'autre. */
.nextstep-tab {
  position: fixed; right: 16px; bottom: 14px; z-index: 60;
  width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(11, 14, 16, .16));
  transition: transform .24s var(--ease-soft), filter .24s var(--ease-soft);
}
.nextstep-tab:hover { transform: translateY(-3px) rotate(-5deg) scale(1.05); filter: drop-shadow(0 12px 20px rgba(11, 14, 16, .22)); }
.nextstep-tab:active { transform: scale(.96); }
.nextstep-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nextstep-tab-mascotte { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.nextstep-tab-pct {
  position: absolute; right: -2px; bottom: 4px;
  font: 600 10px/1 var(--mono); letter-spacing: -.01em; white-space: nowrap;
  color: var(--accent); background: var(--ink); padding: 3px 6px; border-radius: 999px;
  box-shadow: 0 0 0 2px var(--paper);
}

@media (max-width: 860px) {
  .nextstep-tab { right: 12px; bottom: 12px; width: 60px; height: 60px; }
  .nextstep { right: 12px; left: 12px; bottom: 66px; }
  .nextstep { max-width: none; }
  .nextstep-tab { left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nextstep, .nextstep-tab { animation: none; }
  .nextstep-tab:hover, .nextstep-tab:active { transform: none; }
}

/* ═══════════════════════════ L'air entre les blocs ═════════════════════════
   Sur un écran d'ordinateur portable, tout se touchait. Les marges sont
   reprises en une seule échelle : 14 px entre deux blocs d'un même sujet,
   34 px quand le sujet change. Le bandeau de droite retiré, la page a la
   largeur qu'il faut pour que cet air se voie.
   ═══════════════════════════════════════════════════════════════════════════ */
/* Le guide flotte a dix-huit pixels du bas et mesure cent vingt-huit de haut.
   Avec quatre-vingt-seize pixels de marge basse, il recouvrait le dernier
   bouton de la page — « Continuer », « Aller voir ». La page lui laisse sa
   place : cent soixante pixels, mesures a l'appui. */
.content { padding: var(--page-top) var(--page-x) 128px; max-width: calc(var(--page-max) + 2 * var(--page-x)); }
.slab + .slab, .slab-pair + .slab, .slab + .slab-pair { margin-top: 18px; }
.slab-pair { gap: 18px; }
.view > .card, .view > .panel { margin-bottom: 14px; }

@media (max-width: 1080px) {
  .content { padding: 24px 22px calc(var(--impact-h) + 30px); }
}

/* ─── Le prix des années suivantes ─── */
/* Une case vide n'est pas une case sans valeur : elle reconduit l'année
   précédente. Le gris le dit, le noir dit qu'on a forcé. */
.control.is-inherited input { color: var(--ink-5); }
.control.is-inherited { background: var(--surface-2); }
.control.is-inherited:focus-within { background: var(--surface); }
.control.is-inherited:focus-within input { color: var(--ink); }

.byyear { margin-top: 16px; }
.byyear-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 7px; border-bottom: 1px solid var(--rule); margin-bottom: 12px;
}
.byyear-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.byyear-base { font-size: 12px; color: var(--ink-4); }
.byyear-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.byyear-cell { position: relative; min-width: 0; }
.byyear-cell.is-forced .control { border-color: var(--ink); }
.byyear-clear {
  position: absolute; top: 0; right: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--ink-5);
}
.byyear-clear:hover { color: var(--loss); }
@media (max-width: 760px) { .byyear-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─── Les cinq exercices ─── */
.years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.year {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--surface); font: inherit; text-align: left;
}

.year.active { background: var(--ink); border-color: var(--ink); }

/* ─── L'opération : ce qui entre, ce qui sort, ce qui reste ─── */
.eq { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); overflow: hidden; }

@media (max-width: 980px) {
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  
}

/* ─── Le bac à sable ─── */
.sim { display: flex; flex-direction: column; gap: 16px; }
.sim-flag {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px dashed var(--ink-5); border-radius: 12px; background: var(--surface-2);
  padding: 12px 15px; font-size: 13px; color: var(--ink-3); line-height: 1.5;
}
.sim-flag strong { color: var(--ink); }
.sim-flag-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  flex: none; margin-top: 5px; box-shadow: 0 0 0 3px var(--accent-wash);
}
.sim-body { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sim-knobs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--header-h) + 14px); }
.sim-knobs .refine { margin-top: 0; }
.sim-levers { flex-direction: column; }
.knob { border-bottom: 1px solid var(--rule); }
.knob:last-child { border-bottom: 0; padding-bottom: 0; }
.knob-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.knob-label { color: var(--ink-2); }
.knob-readout { display: flex; align-items: baseline; gap: 7px; flex: none; }
.knob-value { font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.knob-shift { font-size: 11px; }
.knob-shift.up { color: var(--gain); }
.knob-shift.down { color: var(--loss); }

.sim-view { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sim-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sim-fig {
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
  padding: 12px 13px; min-width: 0;
}
.sim-fig-label {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); line-height: 1.35;
}
.sim-fig-value { font-size: 20px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); margin-top: 7px; }
.sim-fig-gap { font-size: 12px; color: var(--ink-5); margin-top: 3px; }
.sim-fig.up { border-color: var(--gain); }
.sim-fig.up .sim-fig-gap { color: var(--gain); }
.sim-fig.down { border-color: var(--loss); }
.sim-fig.down .sim-fig-gap { color: var(--loss); }

.sim-pending { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sim-pending-note { font-size: 12px; color: var(--ink-4); flex: 1 1 260px; min-width: 0; }

@media (max-width: 1080px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-knobs { position: static; }
  .sim-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── L'écran de validation ─── */
.apply { max-width: 720px; }
.apply-head p { margin: 6px 0 20px; color: var(--ink-3); font-size: 14px; }
.apply-mod { margin-bottom: 20px; }
.apply-mod-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 2px; flex-wrap: wrap;
}
.apply-mod-name { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.apply-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--rule);
  cursor: pointer; font-size: 14px;
}
.apply-row:hover { background: var(--surface-2); }
.apply-row-label { color: var(--ink-2); }
.apply-row-before { color: var(--ink-5); text-decoration: line-through; }
.apply-row-arrow, .apply-effect-arrow { color: var(--ink-5); }
.apply-row-after { font-weight: 600; color: var(--ink); }
.apply-effects-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--ink-4); margin-bottom: 8px;
}
.apply-effects {
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); margin-bottom: 22px;
}
.apply-effect {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: baseline; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.apply-effect:last-child { border-bottom: 0; }
.apply-effect-label { color: var(--ink-3); }
.apply-effect-before { color: var(--ink-5); }
.apply-effect-after { font-weight: 600; color: var(--ink); }
.apply-effect-after.pos { color: var(--gain); }
.apply-effect-after.neg { color: var(--loss); }
.apply-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
      .apply-row { grid-template-columns: auto minmax(0, 1fr); }
  .apply-row-before, .apply-row-arrow, .apply-row-after { grid-column: 2; }
}

/* ─── Le changement d'onglet ─── */
/* La vue ne glisse que lorsqu'on vient de cliquer un onglet : la même animation
   posée sans condition rejouerait à chaque frappe, puisque la page se
   reconstruit à chaque touche. */
/* Changer d'onglet : le contenu se découvre, il ne se fond pas.
   Le fondu était doublé d'un fondu de toute la page, et les deux se
   superposaient : rien n'avait de contour, tout tremblait un peu — c'est ce
   qui donnait la nausée. Un seul mouvement le remplace, et sans opacité : un
   masque descend sur chaque bloc, qui monte de huit pixels en arrivant. Le
   bord est net, la direction est lisible, et ça dure un tiers de seconde. */
/* Rien ne bouge du tout à l'entrée d'une vue.
   Trois tentatives successives ont été retirées ici : l'entrée en cascade des
   blocs, l'animation de hauteur du cadre, puis le glissement latéral de toute
   l'image. Chacune corrigeait la précédente et produisait la même plainte —
   ça bouge. Changer d'onglet n'est pas un déplacement : on ne quitte pas la
   page, on remplace le contenu d'un panneau. Le remplacement est donc sec, et
   la structure autour ne bronche pas. */

/* ─── La ligne qu'on est en train de remplir ─── */
/* Aucune classe à poser, aucun état à retenir : le navigateur sait déjà où est
   le curseur. La ligne s'éclaire, son filet gauche s'épaissit, et tout revient
   en place dès qu'on la quitte. */
.cost-row, .source-line, .item, .part, .setup-cost, .affine-item, .slab {
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.cost-row:focus-within, .source-line:focus-within, .part:focus-within {
  background: var(--accent-wash); border-color: var(--ink);
}
.item:focus-within, .slab:focus-within {
  border-color: var(--ink); box-shadow: -3px 0 0 0 var(--accent);
}
.setup-cost:focus-within { background: var(--accent-wash); }
/* Le champ actif lui-même : un trait d'accent sous le contrôle, rien de plus. */
.control:focus-within { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ═══════════════════ Les suggestions du métier ═════════════════════════════
   Ce bloc ne montre pas des données : il propose. Il ne doit donc pas
   ressembler à une carte de saisie de plus — un filet tireté, un fond à peine
   teinté, et le glyphe du métier en tête pour dire d'où ça vient. Il disparaît
   quand il n'a plus rien à proposer.
   ═══════════════════════════════════════════════════════════════════════════ */
/* ─── Les suggestions du métier : une rangée de pastilles ─── */
/* Un titre, un compteur, trois pastilles blanches — puis « +3 ». Le « + »
   est un rond jaune : c'est le geste, et la seule couleur du bloc. Le montant
   est dans l'infobulle ; la pastille ne porte que le nom. */
/* Une seule ligne : le titre, le compteur, puis les pastilles ; « Voir
   toutes les suggestions » au bout. */
.tradetip { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) 10px; margin: 0 0 var(--s-4); }
.tradetip-head { display: contents; }
.tradetip-items { order: 2; min-width: 0; }
.tradetip-all { order: 3; }
.tradetip-title { margin: 0; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.tradetip-all {
  margin-left: auto; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: 600 13px/1.3 var(--sans); color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  transition: color .14s var(--ease-soft), text-decoration-color .14s var(--ease-soft);
}
.tradetip-all:hover { color: var(--ink); text-decoration-color: var(--ink); }
.tradetip-items { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-left: 4px; }
.tradetip-item {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  max-width: 100%; min-width: 0; text-align: left;
  padding: 4px 14px 4px 4px; border-radius: 999px; font: inherit;
  border: 1px solid var(--rule); background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 14, 16, .05);
  transition: border-color .14s var(--ease-soft), transform .14s var(--ease-soft), box-shadow .14s var(--ease-soft);
}
.tradetip-item:hover {
  border-color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(11, 14, 16, .5);
}
.tradetip-item:active { transform: translateY(0); }
.tradetip-item.is-extra { display: none; }
.tradetip.is-all .tradetip-item.is-extra { display: inline-flex; animation: pop .18s var(--ease) both; }
.tradetip.is-all .tradetip-more { display: none; }
.tradetip-plus {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .06);
  transition: background .14s var(--ease-soft), color .14s var(--ease-soft), transform .2s var(--ease-soft);
}
.tradetip-item:hover .tradetip-plus { background: var(--ink); color: var(--accent); transform: rotate(90deg); }
.tradetip-label {
  font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
  /* Une pastille ne doit jamais pousser la page : « Assurance responsabilité
     civile professionnelle » mesure cinq cents pixels et le téléphone en fait
     trois cent quatre-vingt-dix. Elle se rétrécit, et sur mobile elle revient
     à la ligne plutôt que de couper le mot. */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.tradetip-more {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--ink-5); background: transparent;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3);
  transition: border-color .14s var(--ease-soft), color .14s var(--ease-soft);
}
.tradetip-more:hover { border-color: var(--ink); border-style: solid; color: var(--ink); }
@media (max-width: 760px) {
  .tradetip-all { margin-left: 0; flex-basis: 100%; text-align: left; }
  .tradetip-label { white-space: normal; }
  .tradetip-item { border-radius: 16px; }
}

/* ═════════════════ La tête de module : une seule, pas cinq ════════════════
   Il y avait le titre, une question repliée, une barre qui répétait le sujet
   avec un chiffre, les onglets, puis le bouton d'ajout. Sur un portable, la
   première donnée commençait sous la ligne de flottaison. Tout tient en trois
   lignes : le titre, le lede avec son chiffre, la barre de navigation.
   ═══════════════════════════════════════════════════════════════════════════ */
/* Le titre, la note et le chiffre sur une seule ligne.
   Le lede vivait dans un cadre à lui, sous le titre, avec un « + » qui le
   dépliait en poussant la page. Il tient maintenant au bout du titre, en
   gris, et son contenu part dans le tiroir latéral. */
.module {
  margin-bottom: var(--s-3);
}
.module-top {
  display: flex; gap: 6px 14px;
  flex-wrap: wrap; margin-top: 2px;
}
.module-top .module-title { margin: 0; }

/* Le chiffre du module : au bout de la ligne, poussé à droite quand il y a la
   place — c'est là qu'on comprend à quoi il se rapporte. */
.module-figure {
  flex: none; margin-left: auto; display: inline-flex; align-items: baseline; gap: 7px;
  padding: 3px 11px; border-radius: 999px; background: var(--ink); max-width: 100%;
}
.module-figure-value {
  font-size: 15px; font-weight: 600; letter-spacing: -.03em; color: #fff; white-space: nowrap;
}
.module-figure-note { font-size: 11px; color: #A9ACA0; line-height: 1.35; }

/* La barre de navigation porte aussi l'action : elle appartient à l'onglet
   ouvert, pas à un bandeau séparé au-dessus. */
.module-nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  border-bottom: 1px solid var(--rule); flex-wrap: wrap;
}
.module-nav .hnav { border-bottom: 0; margin-bottom: -1px; flex: 1; min-width: 0; }
.module-acts { display: flex; gap: 8px; flex: none; align-self: center; }
/* Les chiffres à vérifier, à droite des onglets : une pastille ; ouverte, le
   détail tombe sous la ligne, calé à droite, par-dessus la page. */
.module-acts .garde.is-onglets { position: relative; margin: 0; }
.module-acts .garde.is-onglets .garde-pill { padding: 4px 10px 4px 5px; font-size: 12px; gap: 7px; }
.module-acts .garde.is-onglets .garde-sign { width: 18px; height: 18px; }
.module-acts .garde.is-onglets .garde-sign::before { top: 4px; height: 6px; }
.module-acts .garde.is-onglets .garde-sign::after { top: 11.5px; }
.module-acts .garde.is-onglets .garde-body {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(520px, calc(100vw - 32px)); margin: 0; z-index: 150;
  box-shadow: inset 3px 0 0 var(--warn), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45);
}
.module-acts .garde.is-onglets.is-alerte .garde-body { box-shadow: inset 3px 0 0 var(--loss), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45); }

@media (max-width: 760px) {
  .module-top { gap: 5px 10px; }
    .module-figure { margin-left: 0; padding: 3px 9px; }
  .module-figure-value { font-size: 14px; }
  .module-nav { gap: 8px; }
  .module-acts { width: 100%; padding-bottom: 10px; }
  .module-acts .btn { width: 100%; justify-content: center; }
}

/* ─── L'encoche dit ce qu'elle est, au survol ─── */
/* L'infobulle du système arrive après une seconde et se pose n'importe où.
   Celle-ci suit l'encoche, apparaît en deux dixièmes et n'attend personne.
   Elle ne naît qu'au survol : cachée, elle comptait quand même dans la
   largeur de la page, et l'étiquette longue d'une question d'association
   faisait déborder la tablette de 21 px (14 octobre). Les encoches sont au
   bord droit de l'écran : l'étiquette part vers la gauche, et passe à la
   ligne au-delà de 300 px. */
.topprog-steps { position: relative; }
.topprog-step::after {
  content: none;
  position: absolute; top: calc(100% + 9px); left: auto; right: -4px;
  transform: translate(0, -4px);
  width: max-content; max-width: min(300px, 70vw);
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; line-height: 1.3; white-space: normal; text-align: left;
  opacity: 0; pointer-events: none; z-index: 60;
  box-shadow: 0 8px 24px -12px rgba(11, 14, 16, .6);
  transition: opacity .18s var(--ease-soft), transform .18s var(--ease-soft);
}
.topprog-step:hover::after, .topprog-step:focus-visible::after {
  content: attr(data-label); opacity: 1; transform: translate(0, 0);
}
@starting-style {
  .topprog-step:hover::after, .topprog-step:focus-visible::after { opacity: 0; transform: translate(0, -4px); }
}

@media (prefers-reduced-motion: reduce) {
  .topprog-step::after { transition: none; }
}

/* ══════════════════ Le voyage d'un espace à l'autre ════════════════════════
   Trois distances, trois mouvements.

   PAGE   on quitte un module pour un autre. L'ancienne page s'éloigne vers le
          fond et se voile ; la nouvelle monte du bas, encore floue, et se pose.
          C'est un changement de lieu, pas un remplacement d'image.

   VUE    on passe d'un onglet au suivant dans le même module. On ne bouge pas
          de place : le contenu coulisse latéralement, plus court, plus sec.

   MUET   un interrupteur, une case. Le fondu n'a aucune expression — son seul
          rôle est d'empêcher la page de sauter d'une image à l'autre pendant
          que le modèle se recalcule.

   Le rail et la barre du haut sont nommés : ils gardent leur identité d'une
   page à l'autre, donc ils ne bougent jamais. On ne déménage pas la
   navigation à chaque pas.
   ═══════════════════════════════════════════════════════════════════════════ */
.rail { view-transition-name: rail; }
.topbar { view-transition-name: topbar; }

.nextstep, .nextstep-tab { view-transition-name: guide; }
/* La charpente ne voyage pas : elle bascule.
   « animation: none » sur les deux images ne suffisait pas. L'ancienne reste
   alors posée sur la nouvelle pendant toute la transition, et le rail gardait
   son surlignage précédent une seconde entière : on cliquait sur « Équipe »,
   le menu continuait d'indiquer « Projet ». On efface l'ancienne dès la
   première image et on montre la nouvelle : le menu répond au clic comme
   avant, pendant que le contenu, lui, fait le voyage. */
::view-transition-group(rail), ::view-transition-group(topbar),
::view-transition-group(tabbar), ::view-transition-group(guide) { animation: none; }
::view-transition-old(rail), ::view-transition-old(topbar),
::view-transition-old(tabbar), ::view-transition-old(guide) {
  animation: none; opacity: 0; mix-blend-mode: normal;
}
::view-transition-new(rail), ::view-transition-new(topbar),
::view-transition-new(tabbar), ::view-transition-new(guide) {
  animation: none; opacity: 1; mix-blend-mode: normal;
}

/* ─── Changer de module ─── */
/* Un changement de module doit se sentir. À quatre dixièmes de seconde on ne
   voyait rien passer : l'écran était déjà l'autre avant que l'œil n'ait noté
   qu'il avait changé, et on se demandait si le clic avait pris. La sortie
   s'éloigne et se floute, l'arrivée revient de plus loin et prend son temps :
   c'est la durée qui fait le voyage, pas l'effet. */
.is-move-page::view-transition-old(root) { animation: page-out .58s cubic-bezier(.5, 0, .9, .3) both; }
.is-move-page::view-transition-new(root) { animation: page-in 1.05s var(--ease-soft) both; }
/* Ce qu'on quitte s'éloigne : il recule, monte un peu et perd sa netteté. */
@keyframes page-out {
  from { opacity: 1; transform: none; filter: blur(0); }
  to   { opacity: 0; transform: translateY(-5%) scale(.88); filter: blur(16px); }
}
/* Ce qu'on rejoint vient de plus loin, et met une seconde à se poser : c'est
   la durée qui fait le voyage. En dessous d'une demi-seconde on ne voit rien
   passer et on doute d'avoir cliqué. */
@keyframes page-in {
  0%   { opacity: 0; transform: translateY(8%) scale(.93); filter: blur(14px); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ─── Basculer un interrupteur ─── */
.is-move-quiet::view-transition-old(root) { animation: quiet-out .16s linear both; }
.is-move-quiet::view-transition-new(root) { animation: quiet-in .22s linear both; }
@keyframes quiet-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes quiet-in { from { opacity: 0 } to { opacity: 1 } }

/* Pendant le voyage, le curseur dit qu'on est en route. Rien de plus : bloquer
   les clics laisserait l'outil inutilisable si la classe restait accrochée. */
.is-move-page { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ─── L'interrupteur : une vraie bascule, pas un rechargement ─── */
/* La pastille glisse, la piste change de couleur, la ligne s'éteint — le tout
   sur la même durée, pour que ce soit un seul mouvement et pas trois.
   Trois dixièmes : le mouvement se voit sans se faire attendre. Ce n'est plus
   lui qui retardait le chiffre — la valeur est validée au clic, et c'est le
   glissement qui traverse le rendu, pas l'inverse. */
.onoff { transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft); }
.onoff > i { transition: transform .3s var(--ease-soft), background .3s var(--ease-soft); }
.onoff.is-switching { box-shadow: 0 0 0 4px var(--accent-wash); }
.onoff:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Ce qui est mis en pause s'estompe au lieu de clignoter. */
.item, .card, .opex-line { transition: opacity .2s var(--ease-soft); }
.item.is-off, .card.is-off, .opex-line.is-off { opacity: .48; }

@media (prefers-reduced-motion: reduce) {
  .onoff, .onoff > i, .item, .card, .opex-line { transition: none; }
}

/* ─── Le verdict prend toute la largeur, en tête du pilotage ─── */
/* Coincé à droite d'un titre, il valait une carte de 340 pixels pour un vide
   de mille. C'est la seule phrase qui compte sur cette page. */
.board-stack > .verdict {
  /* La règle d'origine donnait `flex: 0 1 340px` pour une carte posée dans une
     ligne. Dans cette pile verticale, 340 px devient une hauteur : le verdict
     réservait une bande vide sous ses deux lignes de texte. */
  flex: none; align-self: stretch; min-width: 0; height: auto;
  width: 100%; border: 1px solid var(--rule); border-left: 4px solid var(--ink);
  border-radius: 16px; background: var(--surface); padding: 0; overflow: hidden;
}

/* ─── Le reste de la liste, à la demande ─── */

/* Ne rien se verser est un choix — il a donc un bouton, pas un champ vide. */
.setup-skip {
  display: block; margin-top: 18px; border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--ink-4);
  border-bottom: 1px solid var(--rule); transition: color .18s var(--ease-soft), border-color .18s;
}
.setup-skip:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ═══════════════════ La page d'avant la première question ══════════════
   Une ouverture, pas une question. Le titre porte la seule chose qui débloque
   un fondateur — il n'a pas à savoir —, le rendu 3D lui donne l'échelle d'une
   page d'accueil, et les trois lignes du bas répondent aux trois objections.

   Le `ch` se mesure sur la police de l'élément : posé sur le conteneur, qui
   hérite du corps de texte, il donnait une colonne de cent cinquante pixels et
   cassait le titre mot par mot. La largeur se borne sur le titre lui-même.
   ════════════════════════════════════════════════════════════════════════ */
.setup-card.is-bare { background: transparent; border: 0; box-shadow: none; padding: 0; }

.welcome { display: flex; flex-direction: column; gap: clamp(26px, 5vh, 48px); padding: 2vh 0 1vh; }
.welcome-hero { display: flex; align-items: center; gap: 28px; }
.welcome-say { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.welcome-kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 9px;
  animation: welcome-rise .66s var(--ease-soft) both;
}
.welcome-kicker::before { content: ''; width: 26px; height: 2px; background: var(--accent); display: block; }
.welcome-big {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; letter-spacing: -.032em;
  color: var(--ink-4);
  animation: welcome-rise .7s .06s var(--ease-soft) both;
}
.welcome-big b { color: var(--ink); font-weight: 800; }
.welcome-lede {
  margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3);
  animation: welcome-rise .7s .14s var(--ease-soft) both;
}
/* La petite note : la dernière objection levée juste avant le bouton. Elle se
   lit après la promesse, pas avec elle — d'où le corps plus petit et le filet
   qui la détache. */
.welcome-note {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-4);
  padding-left: 13px; border-left: 2px solid var(--rule);
  animation: welcome-rise .7s .18s var(--ease-soft) both;
}
.welcome-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: welcome-rise .7s .22s var(--ease-soft) both;
}
.welcome-go { border-radius: 999px; padding: 15px 38px; font-size: 15px; }
.welcome-meta {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-5);
}
.welcome-livrable {
  margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3);
  animation: welcome-rise .7s .26s var(--ease-soft) both;
}

/* Le rendu 3D donne l'échelle. Il ne dit rien que le texte ne dise — c'est
   exactement son rôle : occuper l'œil pendant que la phrase se lit. */
.welcome-art {
  flex: 0 0 auto; width: clamp(110px, 16vw, 180px); line-height: 0;
  animation: welcome-float 6s ease-in-out .9s infinite, welcome-pop .9s .18s var(--ease-soft) both;
}
.welcome-art-img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 22px 34px rgba(11, 14, 16, .22));
}
@keyframes welcome-pop {
  from { opacity: 0; transform: translateY(24px) scale(.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes welcome-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* Les trois objections, et leur réponse. Une ligne chacune : ce n'est pas un
   choix à faire, donc ça ne doit pas ressembler à des cartes cliquables. */
.welcome-points {
  list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--rule);
  display: grid; gap: 20px 26px; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .welcome-points { grid-template-columns: 1fr; gap: 18px; }
    }
/* L'icône au-dessus du titre, pas à côté : posée à gauche, elle poussait le
   titre à la ligne et la colonne se lisait en escalier. Au-dessus, chaque
   réponse tient en un bloc — un objet, une affirmation, une explication. */
.welcome-point {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0;
  animation: welcome-rise .7s var(--d, .3s) var(--ease-soft) both;
}
.welcome-point-ico { width: 38px; height: 38px; flex: none; line-height: 0; }
.welcome-point b {
  display: block; font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: -.015em; color: var(--ink); margin-bottom: 2px;
}
.welcome-point span { display: block; font-size: 13px; line-height: 1.5; color: var(--ink-4); }

/* Plus court (fil 8ee7c9e6) : moins d'air, et les trois atouts en une ligne de mots. */
.welcome.is-court { gap: clamp(18px, 3.5vh, 32px); padding-top: 1vh; }
.welcome.is-court .welcome-say { gap: 16px; }
.welcome.is-court .welcome-points { padding-top: clamp(14px, 2.5vh, 22px); }
/* Une ligne par atout, l'icône devant : le titre est court, il ne passe plus à la ligne. */
.welcome.is-court .welcome-point { flex-direction: row; align-items: center; gap: 10px; }
.welcome.is-court .welcome-point-ico { width: 26px; height: 26px; }
.welcome.is-court .welcome-point b { margin: 0; font-size: 14px; }
@media (max-width: 760px) {
  .welcome.is-court .welcome-points { gap: 10px; }
  .welcome.is-court .welcome-art { width: 72px; }
}
@keyframes welcome-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .welcome-hero { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .welcome-art { width: 96px; align-self: flex-start; }
  .welcome-big, .welcome-lede, .welcome-note, .welcome-livrable { max-width: none; }
}
@media (max-width: 700px) {
  .welcome-go { width: 100%; justify-content: center; }
  .welcome-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-kicker, .welcome-big, .welcome-lede, .welcome-note, .welcome-cta, .welcome-livrable, .welcome-art, .welcome-point { animation: none; }
}

/* ═══════════════ La simulation : chaque ligne du plan a son curseur ════════
   Un fondateur qui a trois offres et onze charges ne cherche pas « le prix » :
   il cherche le prix du menu du midi. Chaque ligne porte donc son nom, et la
   valeur de son plan reste écrite en gris à côté de la valeur simulée.
   ═══════════════════════════════════════════════════════════════════════════ */
.sim-lines { display: flex; flex-direction: column; gap: 4px; }
.sim-line { border-bottom: 1px solid var(--rule); }
.sim-line:last-child { border-bottom: 0; }
.sim-line-name {
  font-family: var(--sans); letter-spacing: 0; color: var(--ink-4); margin-bottom: 8px;
}
.sim-levers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* La valeur du plan, posée sur la piste plutôt qu'écrite dessous.
   Un trait pointillé à sa place exacte, le chiffre en dessous : on voit
   l'écart au lieu de le calculer. Cliquable, pour y revenir d'un geste. */
.knob-track { position: relative; padding-bottom: 15px; }
.knob-track .lever-range { position: relative; z-index: 1; }
.knob-mark {
  position: absolute; top: 0; bottom: 0; transform: translateX(-50%);
  border: 0; background: none; padding: 0 5px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.knob-mark i {
  display: block; width: 0; height: 13px; margin-top: 3px;
  border-left: 1px dashed var(--ink-5); transition: border-color .18s;
}
.knob-mark b {
  font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--ink-5);
  white-space: nowrap; transition: color .18s;
}
.knob-mark:hover i { border-left-color: var(--ink); }
.knob-mark:hover b { color: var(--ink); }
.knob-why { font-size: 11px; color: var(--ink-5); line-height: 1.45; display: block; margin-top: 2px; }
/* Ce qui a bougé se voit sans lire le chiffre d'origine. */
.knob-value.is-moved { color: var(--signal-ink); }

@media (max-width: 700px) {
  .sim-levers { grid-template-columns: 1fr; }
}

/* ─── Un onglet dit s'il se remplit ou s'il se lit ─── */
/* On cliquait sur « Masse salariale » en croyant y saisir quelque chose, on
   n'y trouvait qu'un tableau, et on repartait. Le point plein dit qu'on écrit
   ici ; le cercle creux dit qu'on y lit ce que le modèle a calculé. */
.hnav-tab { position: relative; }

/* ─── « Affiner mon dossier » se referme ─── */
/* Le même rond que partout ailleurs, et rien d'écrit dedans : un bouton qui
   dit « Déplier » explique ce qu'un chevron montre déjà. */

@media (prefers-reduced-motion: reduce) {
  .foldsign, .refine-body { transition: none; animation: none; }
}

/* ─── Les charges, en deux natures ─── */
/* Le loyer tombe qu'on vende ou non ; une commission n'existe que s'il y a une
   vente. La première fixe le seuil, la seconde rogne la marge — deux questions
   différentes, donc deux blocs. */
.costblock { margin-bottom: 18px; }
.costblock-head {
  display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap;
  padding: 0 2px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 10px;
}
.costblock + .costblock { margin-top: 26px; }
/* Deux vrais titres, de la même encre : on voit d'un coup d'œil qu'il y a
   deux familles de charges, et laquelle on lit. Le tiret néon est celui des
   titres de page. */
.costblock-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -.028em; color: var(--ink); flex: none;
}
.costblock-title::before { content: ''; width: 14px; height: 4px; border-radius: 2px; background: var(--accent); flex: none; }
.costblock-note { font-size: 12px; color: var(--ink-4); line-height: 1.5; flex: 1 1 320px; min-width: 0; }
.costblock-count {
  font-family: var(--mono); font-size: 10px; color: var(--ink-4); flex: none;
  border: 1px solid var(--rule); border-radius: 999px; padding: 2px 8px;
}
.costblock.is-variable .costblock-note { color: var(--ink-3); }

@media (max-width: 700px) { .costblock-note { flex-basis: 100%; } }

/* ═══════════════════ Les icônes de métier ══════════════════════════════════
   Dessinées en SVG, pas prises dans une police : un registre isométrique, une
   plaque au sol, une face claire et une face d'ombre, et toujours la même
   lumière venue d'en haut à gauche. Elles prennent les couleurs du thème, donc
   elles suivent la charte sans qu'on les retouche.
   ═══════════════════════════════════════════════════════════════════════════ */
.ico3 {
  width: 100%; height: 100%; display: block;
  --ico-hi: #2C3128;
  --ico-lo: #0E0F0C;
  --ico-face: var(--accent);
  --ico-hole: #F2F0E8;
  --ico-line: var(--accent-dim);
  --ico-base: #0E0F0C;
  transition: transform .42s var(--ease-soft), filter .42s var(--ease-soft);
}
.setup-sector-icon {
  width: 34px; height: 34px; flex: none; display: block;
}
.setup-sector-icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
/* Le relief se réveille au survol : l'objet se soulève d'un demi-pixel. */
.setup-sector:hover .ico3 { transform: translateY(-2px) scale(1.04); filter: drop-shadow(0 6px 10px rgba(11, 14, 16, .18)); }
.setup-sector.active .ico3 { --ico-hi: #FFFFFF; --ico-lo: #D6D3C6; --ico-face: var(--accent); --ico-hole: #0E0F0C; --ico-line: var(--accent); --ico-base: #FFFFFF; }

@media (prefers-reduced-motion: reduce) { .ico3 { transition: none; } }

/* ─── Les vrais rendus, quand il en existe un ───
   Une image, pas un tracé : la matière et la lumière d'un moteur 3D, qu'un
   vectoriel ne sait pas produire. Le dessin ci-dessus reste le repli. */
.ico3d {
  width: 100%; height: 100%; display: block; object-fit: contain;
  transition: transform .42s var(--ease-soft), filter .42s var(--ease-soft);
}
.setup-sector:hover .ico3d { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 8px 14px rgba(11, 14, 16, .22)); }
.setup-sector.active .ico3d { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
@media (prefers-reduced-motion: reduce) { .ico3d { transition: none; } }

/* ═══════════════════════════════ La synthèse ════════════════════════════
   Trois cartes, trois réponses. C'est la seule page de l'outil où la phrase
   passe avant le chiffre : le graphique n'y est qu'une silhouette, sans axe
   ni graduation, parce qu'il ne sert qu'à confirmer d'un coup d'œil ce que
   la phrase vient de dire. Le ton — vert, ambre, rouge — est porté par un
   filet haut, jamais par un fond : un fond coloré crie, un filet informe. */
.plain { display: flex; flex-direction: column; gap: 18px; }

.plaincard {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 3px solid var(--ink-5);
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.plaincard.is-good  { border-top-color: var(--gain); }
.plaincard.is-watch { border-top-color: var(--warn); }
.plaincard.is-bad   { border-top-color: var(--loss); }

.plaincard-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.plaincard-ico { width: 44px; height: 44px; flex: none; display: block; }
.plaincard-kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); margin-bottom: 4px;
}
.plaincard-title {
  margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700;
  letter-spacing: -.024em; line-height: 1.2; color: var(--ink);
}
.plaincard-body {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); flex: 1 1 auto;
}

/* Le chiffre de la carte : une seule ligne, l'étiquette à gauche, la valeur
   au bout. Un seul nombre par carte — tout le reste est dans la phrase. */
.plaincard-figure {
  display: flex; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--rule); padding-top: 10px; margin-top: auto;
}
.plaincard-figure-label { font-size: 12px; color: var(--ink-4); flex: 1 1 auto; min-width: 0; }
.plaincard-figure-value { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.plaincard-figure-value.pos { color: var(--gain); }
.plaincard-figure-value.neg { color: var(--loss); }

/* Cinq barres, une par année : ça part du rouge, ça passe au vert. */
.plainbars { display: flex; align-items: flex-end; gap: 8px; }
.plainbar { flex: 1 1 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.plainbar-track { height: 48px; position: relative; }
.plainbar-track i {
  position: absolute; left: 0; right: 0; bottom: 0; display: block; border-radius: 1px;
  transform-origin: bottom;
}
.plainbars.is-fresh .plainbar-track i { animation: plainbar-rise .52s var(--ease-soft) both; }
.plainbar-track i.is-pos { background: var(--gain); }
.plainbar-track i.is-neg { background: var(--loss); }
.plainbar-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-5);
  text-align: center; letter-spacing: .04em;
}
@keyframes plainbar-rise { from { transform: scaleY(.04); transform-origin: bottom; } to { transform: scaleY(1); } }

/* La courbe de trésorerie, réduite à sa forme et à son passage sous zéro. */
.plainline { display: flex; flex-direction: column; gap: 5px; }
.plainline svg { width: 100%; height: 56px; display: block; overflow: visible; }
.plainline-zero { stroke: var(--ink-5); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.plainline-path {
  fill: none; stroke: var(--signal); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.plainline-note { font-size: 11px; color: var(--ink-5); }

/* ─── Acquisition : une campagne naît à zéro, les repères se demandent ─── */
.seed-row {
  border: 1px dashed var(--rule-strong);
}

/* La commission, lue à voix haute : montant × part = ce qui entre. */
.pmode-read { margin-top: 14px; padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--rule); }
.pmode-read.is-empty { font-size: 13px; color: var(--ink-4); line-height: 1.55; }
.pmode-read p { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.pmode-read-line {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 15px; color: var(--ink-3);
}
.pmode-read-line strong { font-size: 20px; color: var(--gain); letter-spacing: -.02em; }
.pmode-read-op { color: var(--ink-5); }

/* ═══════════ Un seul jeu de signes, centré par construction ═══════════════
   Les « ＋ », « − » et « × » typographiques ne se centrent pas : leur boîte
   dépend de la police, et dans un bouton rond ou carré ils flottent toujours
   d'un pixel ou deux — visible dès qu'on en aligne plusieurs. Les mêmes
   signes dessinés en SVG sont au milieu à toutes les tailles. */
.item-act, .source-act, .byyear-clear, .tradetip-plus, .btn-sign {
  display: inline-grid; place-items: center; line-height: 0;
  /* Le dessin était juste, la boîte ne l'était pas. Un bouton garde le
     remplissage que le navigateur lui donne — 1px sur 6px — et la largeur
     fixée de 22 pixels ne laissait alors que 8 pixels utiles pour un signe
     qui en fait 14. Ce qui déborde d'une grille part vers la droite : le
     « + » se posait trois pixels trop loin. On remet la boîte à zéro. */
  padding: 0;
}
.item-act svg, .source-act svg, .byyear-clear svg, .tradetip-plus svg, .btn-sign svg {
  width: 14px; height: 14px; display: block;
}
.tradetip-plus svg { width: 12px; height: 12px; }
.byyear-clear { width: 18px; height: 18px; padding: 0; }
.btn-sign { padding-left: 10px; padding-right: 10px; }

/* ═══════════ Ce qui s'écrit, et ce qui se lit ══════════════════════════════
   « Équipe » se remplit ; « Masse salariale » se lit. Les deux étaient des
   onglets identiques, et on cliquait sur le second en cherchant un champ à
   modifier. Un « i » d'infobulle aurait ajouté une chose à survoler ; ici le
   signe est dans l'onglet lui-même : un filet vert vif sur ce qui se modifie,
   un filet gris et le mot « lecture » sur ce qui ne fait que montrer. Ça se
   voit sans qu'on ait rien à faire. */
/* Un crayon sur ce qui se remplit, un œil sur ce qui se lit. Le mot
   « lecture » demandait d'être lu ; ces deux-là se reconnaissent. */
.hnav-sign {
  display: inline-grid; place-items: center; width: 15px; height: 15px; flex: none;
  color: var(--ink-5); transition: color .2s var(--ease-soft);
}
.hnav-sign svg { width: 13px; height: 13px; display: block; }
.hnav-tab.is-read { font-weight: 450; color: var(--ink-4); }
.hnav-tab:not(.is-read) { font-weight: 600; }

/* L'onglet ouvert porte un fond clair : le trait seul, sous la ligne, se
   perdait dès qu'il y avait plus de trois onglets. */
.hnav-tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule), inset 0 -1px 0 var(--surface);
}
.hnav-tab.is-read.active { background: var(--surface-2); }
.hnav-tab.active:hover { background: var(--surface); }

/* ════════════ Le seuil et la courbe, dans un seul cadre ═══════════════════
   Séparés, on lisait « il t'en faut 294 par mois », puis, après une
   respiration, un graphique intitulé « Glaces par mois » qu'on prenait pour
   un autre sujet. C'est la même phrase, en deux temps : le nombre, puis où
   l'on en est. Un filet les sépare, pas un blanc. */

/* Le tableau de bord n'a plus de rattrapage local.
   Il en avait un — une règle qui ramenait ses titres à dix-neuf pixels — parce
   que le reste de l'application en affichait cinq autres valeurs. C'est
   maintenant l'échelle de tout le monde, posée en jetons plus haut ; le
   rattrapage a disparu avec la raison qui l'avait fait naître. */

/* ─── Une offre ajoutée : une ligne qui emmène à ses coûts ───
   Le coût d'une vente ne se lit plus sur la carte. Seule l'offre qu'on vient
   d'ajouter y garde une ligne : elle emmène à la question posée dans les
   charges par vente. */
.costlink {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: var(--s-3);
  padding: 8px 12px; font: inherit; text-align: left;
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: 12px;
}
.costlink-text { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.costlink-go {
  border: 0; background: none; cursor: pointer; padding: 4px 2px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--signal-ink); flex: none;
}
.costlink-go:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Les charges par vente : achats et charges, sur la même ligne ─── */
/* Un achat se lit comme une commission : la place du « ⋯ » reste vide. */
.cost-more.is-vide { visibility: hidden; }
/* Une offre ajoutée : quelles lignes la concernent ? Une question, une rangée de cases. */
.cost-question {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px;
  border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.cost-question-titre { margin: 0; font-size: 14px; color: var(--ink-2); }
.cost-question-titre b { color: var(--ink); font-weight: 700; }
.cost-question-lignes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cost-q-ligne {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); font: 600 13px/1.2 var(--sans); color: var(--ink-3);
  transition: border-color .14s var(--ease-soft), color .14s var(--ease-soft), background .14s var(--ease-soft);
}
.cost-q-ligne:hover { border-color: var(--ink); color: var(--ink); }
.cost-q-case { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--ink-5); font-size: 10px; color: var(--accent); }
.cost-q-ligne.is-on { border-color: var(--ink); color: var(--ink); }
.cost-q-ligne.is-on .cost-q-case { background: var(--ink); border-color: var(--ink); }
.cost-q-ajout, .cost-ajout-ligne { border: 0; background: none; cursor: pointer; padding: 4px 2px; font: 600 13px/1.3 var(--sans); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cost-q-ajout:hover, .cost-ajout-ligne:hover { color: var(--ink); text-decoration-color: var(--ink); }
.cost-q-fin { margin-left: 4px; padding: 5px 13px; border-radius: 999px; border: 0; cursor: pointer; background: var(--ink); color: #fff; font: 600 13px/1.2 var(--sans); }
.cost-q-fin:hover { background: var(--ink-2); }
.cost-ajout-ligne { display: block; margin: 8px 12px 2px; }

/* ═══════════ Les familles de métiers, en grille ═══════════════════════════
   Douze volets empilés faisaient une colonne de trois écrans qu'on parcourait
   au pouce pour trouver la sienne. En grille elles tiennent toutes à l'œil ;
   on en ouvre une, et les métiers prennent la place. */
.famgrid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.famcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  padding: 13px 14px; cursor: pointer; font: inherit; text-align: left; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  transition: border-color .18s, transform .22s var(--ease-soft), box-shadow .22s var(--ease-soft);
}
.famcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 14, 16, .07); }
.famcard.is-here { border-color: var(--ink); border-width: 2px; padding: 12px 13px; }
.famcard-icon { width: 32px; height: 32px; flex: none; line-height: 0; }
.famcard-name {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: -.015em; color: var(--ink); line-height: 1.25;
}
.famcard-note { font-size: 12px; color: var(--ink-4); }

/* Mon projet : les familles en cartes basses, sans icône (la page n'en
   porte plus), cinq par ligne quand la carte a la place, quatre sinon.
   Trois colonnes de cartes hautes faisaient cinq lignes, plus haut que
   l'écran ; c'est la largeur de la carte qui décide, pas celle de l'écran. */
.projet .legalopen { container-type: inline-size; }
.projet .famgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.projet .famcard { gap: 2px; justify-content: center; padding: 9px 10px; min-height: 58px; }
.projet .famcard.is-here { padding: 8px 9px; }
.projet .famcard-icon { display: none; }
.projet .famcard-name { font-size: 12.5px; line-height: 1.2; }
.projet .famcard-note { font-size: 11px; line-height: 1.2; }
@container (max-width: 559px) { .projet .famgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 429px) { .projet .famgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 339px) { .projet .famgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Une famille ouverte : son nom en tête, ses métiers dessous. L'icône ne se
   répète pas sur chaque ligne — douze fois le même objet ne distingue rien. */
.famopen { display: flex; flex-direction: column; gap: 12px; }
.famopen-back {
  align-self: flex-start; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 12px; color: var(--ink-4); padding: 0;
  border-bottom: 1px solid transparent; transition: color .14s, border-color .14s;
}
.famopen-back:hover { color: var(--ink); border-bottom-color: var(--ink); }
.famopen-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: -.018em; color: var(--ink);
}
.famopen-icon { width: 30px; height: 30px; flex: none; line-height: 0; }

/* Une carte sans icône : dans une famille ouverte, le même objet répété seize
   fois ne distingue rien — il prend seulement la place du nom. */
.setup-sector.is-bare { grid-template-columns: minmax(0, 1fr); }
.setup-sector.is-bare .setup-sector-name,
.setup-sector.is-bare .setup-sector-note { grid-column: 1; }

/* ═══════════ La barre d'onglets : un trait qui glisse, deux groupes ═══════
   Le trait actif renaissait sous l'onglet d'arrivée sans l'avoir traversé :
   le changement se lisait comme un saut. Il se déplace maintenant, et c'est
   lui seul qui bouge — plus de soulignement par onglet. */
.hnav { position: relative; }
.hnav-tab.active { border-bottom-color: transparent; }
.hnav-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--ink); border-radius: 2px; pointer-events: none;
  transition: transform .34s var(--ease-soft), width .34s var(--ease-soft), background .2s;
}
.hnav-tab.is-read.active ~ .hnav-ink { background: var(--ink-5); }
/* Repositionné sans transition le temps d'une image : c'est ce qui permet de
   partir d'où il était avant que la barre ne soit refabriquée. */
.hnav-ink.is-jumping { transition: none; }

/* Ce qui se remplit, et ce qui se lit : deux groupes, un filet entre eux.
   Un mot sous le libellé ne suffisait pas — on cliquait sur « Masse
   salariale » en cherchant un champ. La coupure se voit avant la lecture. */
.hnav-split {
  width: 1px; align-self: center; height: 18px; margin: 0 10px;
  background: var(--rule); flex: none;
}
.hnav-label { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .hnav-ink { transition: none; }
}

/* ═══════════ La présentation, dans le tableau de bord ═════════════════════
   Elle vivait derrière un bouton, en plein écran, dans un autre module :
   la plupart ne savaient pas qu'elle existait. C'est pourtant la même
   lecture que l'analyse, faite pour être montrée à quelqu'un d'autre. */

/* Les flèches ne bougent pas d'un écran à l'autre.
   Centrées sur la diapositive, elles montaient et descendaient à chaque
   changement puisque les quinze écrans n'ont pas la même hauteur : on visait
   « suivant » et le bouton s'était déplacé. Elles se posent donc en haut, à
   distance fixe du cadre, et la scène garde une hauteur minimale pour que le
   cadre lui-même cesse de respirer. */

/* Le même écran que le plein écran, en plus sobre : pas de rebond à l'entrée
   ni de marge de scène, il est déjà dans un cadre. */

@keyframes deckin-slide {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════ Les six chiffres, chacun repliable sur ce qu'il veut dire ════
   C'étaient des tuiles qui emmenaient ailleurs d'un clic : on quittait la
   page sans savoir ce qu'on allait y faire, et qui ne connaît pas le mot
   « EBITDA » n'avait qu'un « ? » à survoler. Un clic déplie la définition ;
   le déplacement vient après, par un bouton qui dit où il mène. */

/* Les cases ne s'étirent pas sur la hauteur de la plus haute : un chiffre
   déplié fait quatre cents pixels, et ses deux voisines devenaient deux
   grandes cartes blanches vides. Chacune prend sa taille ; le vide qui reste
   est du fond, pas une carte. */

/* ═══════════ Ce qui se clique, et ce qui se lit ═══════════════════════════
   Les cinq exercices sont des boutons ; l'opération juste dessous ne l'est
   pas, et les deux avaient la même carte blanche. On soulève ce qui répond
   au clic, et on pose l'autre à plat sur le papier. */
.year { cursor: pointer; transition: transform .2s var(--ease-soft), border-color .16s, box-shadow .2s var(--ease-soft); }
.year:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 16px rgba(11, 14, 16, .08); }
.years::before {
  content: 'Choisis l’exercice';
  grid-column: 1 / -1; font-family: var(--sans); font-size: 12px;
  letter-spacing: 0; color: var(--ink-5); margin-bottom: 2px;
}
.eq { box-shadow: none; }

/* ─── Sur 100 € facturés : une barre en parts, pas un camembert ─── */
.plainsplit { display: flex; flex-direction: column; gap: 8px; }
.plainsplit-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--rule); }
.plainsplit-bar i { display: block; min-width: 2px; }
.plainsplit-bar i.is-buys { background: var(--ink-3); }
.plainsplit-bar i.is-team { background: var(--ink-5); }
.plainsplit-bar i.is-other { background: var(--rule-strong); opacity: .35; }
.plainsplit-bar i.is-left { background: var(--gain); }
.plainsplit-bar i.is-bad { background: var(--loss); }
.plainsplit-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.plainsplit-key { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-4); }
.plainsplit-key i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.plainsplit-key.is-buys i { background: var(--ink-3); }
.plainsplit-key.is-team i { background: var(--ink-5); }
.plainsplit-key.is-other i { background: var(--rule-strong); opacity: .35; }
.plainsplit-key.is-left i { background: var(--gain); }
.plainsplit-key.is-bad i { background: var(--loss); }

/* ─── Une jauge : où l'on en est d'un seuil ─── */
.plainmeter { display: flex; flex-direction: column; gap: 6px; }
.plainmeter-track { position: relative; height: 8px; background: var(--rule); border-radius: 4px; }
.plainmeter-track > i {
  display: block; height: 100%; background: var(--warn); border-radius: 4px;
  transition: width .5s var(--ease-soft);
}
.plainmeter-track > i.is-ok { background: var(--gain); }
/* Le trait du seuil : à cent pour cent, quoi qu'il arrive. */
.plainmeter-mark {
  position: absolute; left: calc(100% / 1.4); top: -3px; bottom: -3px;
  width: 2px; background: var(--ink); border-radius: 1px;
}
.plainmeter-label { font-size: 11px; color: var(--ink-5); }

/* ─── La simulation tient dans moins de place ───
   Trente curseurs déroulés d'emblée, chacun dans un pavé de cent pixels :
   on cherchait le sien au pouce avant d'avoir décidé de quoi parler. Tout
   est replié, et ce qui s'ouvre est plus serré. */
.sim-knobs .refine-block { margin-top: 10px; }
.sim-line { padding: 10px 0; }
.sim-line-name { font-size: 12px; }
.knob { padding: 9px 0; }
.knob-top { margin-bottom: 3px; }
.knob-label { font-size: 12px; }
.knob-value { font-size: 14px; }
.sim-levers { gap: 4px 18px; }

/* ═══════════ Le socle de l'analyse détaillée ═════════════════════════════
   Un volet ordinaire — un chevron et six mots en gris — se lisait comme une
   note de bas de page. Ce qu'il ouvre est la moitié du tableau de bord : il
   lui faut la taille de ce qu'il contient. */

/* Le signe d'un volet a deux tailles, et deux seulement : vingt-deux quand il
   plie quelque chose à l'intérieur d'un bloc, vingt-huit quand il plie le bloc
   entier. Au-delà, on lisait des signes différents pour un geste identique. */

/* ═══════════ Ce qui reste à l'écran : la barre d'onglets ════════════════
   L'en-tête entier se collait sous la barre du haut et se resserrait en
   route. Mesurée, la bascule se faisait à trente pixels de défilement et
   revenait à vingt-neuf : aucune zone morte. Un geste de trackpad près du
   haut de la page faisait claquer le titre de quarante-six à vingt-deux
   pixels, plusieurs fois par seconde — le clignotement.

   On ne règle pas une bascule qui clignote, on la supprime. L'affiche du
   module défile comme le reste et ne change jamais de taille. Seule la barre
   d'onglets reste : elle a une hauteur fixe, donc rien à resserrer, rien à
   compenser, rien qui puisse clignoter. Le nom du module est déjà dans le fil
   d'Ariane de la barre du haut, qui ne quitte jamais l'écran. */
.module-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--paper); margin-bottom: var(--s-4); padding-top: var(--s-1);
}
@media (max-width: 760px) { .module-nav { margin-bottom: var(--s-3); } }

/* ═══════════ Le pas d'une question à l'autre ═════════════════════════════
   Douze écrans se succédaient sans qu'on sente avancer : la question changeait
   au même endroit, sans mouvement. Elle glisse maintenant dans le sens du
   pas — de la droite quand on avance, de la gauche quand on revient. Le
   mouvement est court : il dit la direction, il ne fait pas attendre. */
.setup-card.is-in-fwd { animation: setup-step-fwd .38s var(--ease-soft) both; }
.setup-card.is-in-back { animation: setup-step-back .38s var(--ease-soft) both; }
@keyframes setup-step-fwd {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes setup-step-back {
  from { opacity: 0; transform: translateX(-26px); }
  to   { opacity: 1; transform: none; }
}
/* La frise des questions suit le même pas : la pastille courante se pose. */
.setup-step.current { transition: background .3s var(--ease-soft), color .3s var(--ease-soft); }
@media (prefers-reduced-motion: reduce) {
  .setup-card.is-in-fwd, .setup-card.is-in-back { animation: none; }
}

/* ─── Un montant ne se coupe pas à deux pixels près ───
   « 90 168 € » dépassait de deux pixels sa cellule sur un téléphone : le
   bloc d'indicateurs, autrefois derrière un volet, est désormais toujours
   visible dans l'analyse, et le défaut s'est vu. Le chiffre se réduit
   plutôt que de perdre son dernier caractère. */
@media (max-width: 760px) {
  .kpi-value { font-size: clamp(15px, 5.2vw, 20px); letter-spacing: -.045em; }
  
}

/* ═══════════ La page d'accueil du site ═══════════════════════════════════
   L'adresse racine tombait dans la première question du parcours : efficace
   pour qui sait ce qu'il vient chercher, muet pour tous les autres. Cette
   page dit à qui ça s'adresse, ce que ça produit et ce que ça coûte en
   temps — puis elle laisse entrer. Le logo ramène toujours dans l'outil. */
.home { min-height: 100dvh; background: var(--paper); }
.home > * { max-width: 1180px; margin: 0 auto; padding-inline: clamp(18px, 5vw, 48px); }

.home-bar { display: flex; align-items: center; gap: 12px; padding-block: 18px 0; }
.home-logo {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; background: none; padding: 6px 8px 6px 6px; margin-left: -6px; border-radius: 10px;
  transition: background .16s var(--ease-soft);
}
.home-logo:hover { background: rgba(14,15,12,.05); }
.home-logo-mark {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: var(--ink); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: 17px;
}
.home-logo-name { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--ink); font-weight: 600; }
.home-logo-year {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--ink-5);
  border-left: 1px solid var(--rule); padding-left: 9px;
}
.home-enter { border-radius: 999px; }

.home-hero { display: flex; align-items: center; gap: 36px; padding-block: clamp(34px, 7vw, 76px) clamp(28px, 5vw, 56px); }
.home-say { flex: 1 1 auto; min-width: 0; }
.home-kicker {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: var(--ink-4); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.home-kicker::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.home-big {
  margin: 0 0 16px; font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.038em;
  color: var(--ink-4);
}
.home-big b { color: var(--ink); font-weight: 800; }
.home-lede { margin: 0 0 24px; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: var(--ink-3); }
.home-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.home-go { border-radius: 999px; padding: 15px 32px; font-size: 15px; }
.home-demo { border-radius: 999px; padding: 15px 28px; }
.home-meta { margin: 0; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-5); }
.home-art { flex: none; width: clamp(150px, 20vw, 250px); }
.home-art-img { width: 100%; height: auto; display: block; }

.home-proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding-block: clamp(28px, 5vw, 48px); border-top: 1px solid var(--rule);
}
.home-proof-item { min-width: 0; }
.home-proof-no { font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--ink-5); display: block; }
.home-proof-ico { display: block; width: 44px; margin: 10px 0 12px; }
.home-proof-ico img { width: 100%; height: auto; display: block; }
.home-proof-item h2 { font-size: 17px; letter-spacing: -.022em; margin-bottom: 7px; }
.home-proof-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

.home-out {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px;
  background: var(--ink); color: #fff; border-radius: var(--r-lg, 16px);
  padding: clamp(26px, 4vw, 40px); margin-block: clamp(20px, 4vw, 36px);
  max-width: min(1180px, calc(100% - 2 * clamp(18px, 5vw, 48px)));
}
.home-out-kicker { font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--accent); margin-bottom: 12px; }
.home-out-say h2 { color: #fff; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.028em; line-height: 1.16; margin-bottom: 10px; }
.home-out-say p { margin: 0; font-size: 14px; line-height: 1.62; color: #B9C1C7; }
.home-out-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-self: center; }
.home-out-list li {
  font-size: 14px; color: #E6EAED; padding-left: 26px; position: relative; line-height: 1.45;
}
.home-out-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 13px; font-weight: 700;
}

.home-foot { text-align: center; padding-block: clamp(28px, 5vw, 56px); border-top: 1px solid var(--rule); }
.home-foot .btn { border-radius: 999px; padding: 15px 34px; font-size: 15px; }
.home-foot p { margin: 16px auto 0; font-size: 12px; color: var(--ink-5); line-height: 1.6; }

@media (max-width: 860px) {
  .home-hero { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .home-art { width: 120px; }
  .home-proof { grid-template-columns: 1fr; gap: 26px; }
  .home-out { grid-template-columns: 1fr; gap: 20px; }
  .home-cta { width: 100%; }
  .home-cta .btn { flex: 1 1 100%; justify-content: center; }
  .home-bar .home-enter { display: none; }
}

/* Le logo du rail est devenu un bouton : il doit s'en tenir aux styles du
   rail, pas à ceux des boutons. */
.rail-brand {
  border: 0; background: none; padding: 2px 14px 12px; width: 100%; text-align: left;
  cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit;
  border-radius: 8px; transition: background .16s var(--ease-soft);
}
.rail-brand:hover { background: rgba(255,255,255,.05); }

/* ═══════════ La synthèse se lit en trois actes ═══════════════════════════
   Les six cartes disaient quatre fois la même chose : le résultat net, le
   seuil non atteint, les dépenses pour cent euros facturés et la rémunération
   incluse dans la perte énoncent tous « tu perds de l'argent ». Un tableau de
   bord doit répondre à « qu'est-ce que je dois traiter ». L'ordre porte donc
   la question de chaque groupe — est-ce que ça tient, d'où ça vient, où agir
   — et le titre d'acte est la seule chose à lire pour s'orienter. */

/* ═══════════ La fiche d'un poste : une ligne, puis ce qu'il coûte ════════
   L'intitulé, le contrat, le statut et le salaire décrivent le poste : ils
   tiennent sur une ligne. Ce qu'il coûte à l'entreprise en découle, et se lit
   dessous — c'est une conséquence, pas une quatrième saisie. */
/* Cinq cellules, larges comme ce qu'elles portent.
   « Type de contrat » et « Statut » affichent deux mots : ils n'ont pas à
   occuper un quart de ligne. La place rendue accueille le résultat, qui
   cesse d'être un bandeau séparé. */
.postline {
  display: grid; gap: 14px; align-items: end;
  /* La colonne du coût garde de quoi écrire « Net avant impôt 126 545 € / an »
     sur une ligne : à 1 366 px, elle en manquait de quelques pixels. */
  grid-template-columns: 1.3fr .8fr .8fr 1.55fr minmax(196px, .95fr);
}
.postline.is-short { grid-template-columns: 1.4fr .9fr 1.65fr minmax(196px, 1fr); }
@media (max-width: 1240px) {
  .postline, .postline.is-short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .postline, .postline.is-short { grid-template-columns: 1fr; }
}
.postresult {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 6px 14px; border-left: 2px solid var(--ink); min-width: 0;
}
.postresult-label {
  font-size: 12px; letter-spacing: 0; color: var(--ink-5);
}
.postresult > .num {
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
  white-space: nowrap;
}
/* Le net tient sur une ligne, sous le coût : en plus petit, l’unité hors du
   chiffre. Sur un portable, la cellule fait moins de deux cents pixels. La
   phrase d'un micro-entrepreneur, elle, passe à la ligne. */
.postresult-net { font-size: 11px; color: var(--ink-5); line-height: 1.4; white-space: nowrap; }
.postresult-net.is-phrase { white-space: normal; }
.postresult-net .num { font-size: 11px; font-weight: 600; color: var(--gain); }
/* La mutuelle du dirigeant (ANO-34) : un interrupteur sous la ligne du poste, détaché du coût. */
.poste-mutuelle { margin-top: 14px; }
@media (max-width: 1240px) {
  .postresult { border-left: 0; border-top: 1px solid var(--rule); padding: 10px 0 0; }
}
.postline + .field-hint { margin-top: 8px; }

/* ═══════════ Un choix fait tient sur une ligne ═══════════════════════════
   Trois cartes de type de client et sept formes juridiques restaient
   dépliées longtemps après qu'on avait tranché : la moitié de l'écran pour
   répéter une décision prise. Le choix posé se résume, et « Modifier »
   rouvre la grille. */
.pickdone {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--surface-2);
}
.pickdone-mark {
  flex: none; width: 19px; height: 19px; border-radius: 50%; align-self: center;
  display: grid; place-items: center; background: var(--ink); color: var(--accent); font-size: 10px;
}
.pickdone-name {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: -.018em; color: var(--ink);
}
.pickdone-note { font-size: 13px; color: var(--ink-4); line-height: 1.45; min-width: 0; }
.pickdone-edit {
  flex: none; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--signal-ink); padding: 3px 0;
  border-bottom: 1px solid currentColor; align-self: center;
}
.pickdone-edit:hover { color: var(--ink); }
@media (max-width: 560px) {
  .pickdone { gap: 6px 10px; }
  .pickdone-note { flex: 1 1 100%; }
}

/* ─── Le calcul a échoué : on ne laisse pas croire que les chiffres suivent ─── */
/* Un écran qui ne bouge plus pendant qu'on saisit est le pire signal qu'un
   outil de calcul puisse donner. S'il ne calcule plus, il le dit. */
.calcfail {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 14px 18px;
  background: var(--loss-wash); border: 1px solid var(--loss);
  border-left: 4px solid var(--loss);
}
.calcfail strong {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--loss); letter-spacing: -0.01em;
}
.calcfail span { flex: 1 1 380px; font-size: 13px; line-height: 1.55; color: var(--ink); }
.calcfail .btn { flex: none; }

/* ─── Le cadre juridique : une ligne, à côté du nom et de la date ─── */
/* Sept cartes dépliées en bas de page pour une réponse qui tient en quatre
   lettres. La réponse remonte ; la grille attend qu'on la demande. */
.control-bare { padding: 0; border: 0; background: none; }
.legalline {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 4px 11px 5px; min-height: 43px; cursor: pointer; text-align: left;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface);
  font: inherit; color: var(--ink);
  transition: border-color .16s var(--ease-soft), background .16s var(--ease-soft);
}
/* Le libellé dans le cadre, comme les champs voisins ; la réponse dessous. */
.legalline-corps { display: grid; gap: 1px; min-width: 0; flex: 0 1 auto; }
.legalline-label { margin: 0; font: 500 11px/1.25 var(--sans); color: var(--ink-4); letter-spacing: .005em; cursor: pointer; }
.legalline-valeur { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legalline .valider-chip { flex: none; }
.legalline:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.legalline:hover { border-color: var(--ink); }
.legalline.is-open { border-color: var(--ink); background: var(--surface-2); }
.legalline-name {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em; flex: none;
}
.legalline-note {
  font-size: 12px; color: var(--ink-5); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.legalline-edit {
  flex: none; font-size: 12px; letter-spacing: 0;
  color: var(--ink-5); border-bottom: 1px solid var(--rule); padding-bottom: 1px;
}
.legalline:hover .legalline-edit { color: var(--ink); border-color: var(--ink); }
.legalline.is-empty .legalline-name { color: var(--ink-5); font-weight: 400; }
.legalopen { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
/* Le métier, lu comme la forme juridique : l'icône de sa famille, le métier
   en clair, ce qu'il implique. Un nom de métier peut être long : c'est la
   note qui cède la place la première, jamais le métier. */
.legalline-icon { width: 22px; height: 22px; flex: none; line-height: 0; }
.legalline-icon svg, .legalline-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.legalline.is-activity .legalline-name {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.legalline.is-activity .legalline-note { flex: 0 100 auto; }

/* ─── Acquisition : le gros trait avant l'entonnoir ─── */
/* La carte porte les deux nombres qui décident ; le détail par campagne vit
   dans un volet, sous elle. Les quatre tuiles qui coiffaient la page disaient
   la même chose sans la commenter. */
.acq-macro { margin-bottom: 18px; }
.seed-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 2px 0 4px; padding: 10px 14px;
  background: var(--surface-2); border-left: 2px solid var(--rule);
}
.seed-row p { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 1.5; color: var(--ink-5); }
.seed-row .btn { flex: none; }

/* ─── Une rangée de champs aligne ses cadres, pas ses cellules ─── */
/* Un champ qui porte une aide sous son cadre est plus haut que ses voisins.
   Aligné par le bas, c'est son cadre qui remontait ; aligné par le haut, un
   libellé sur deux lignes le ferait descendre. Les cellules s'étirent donc à
   la même hauteur et le champ devient une grille de trois rangées — libellé,
   cadre, aide — dont la dernière absorbe ce qui dépasse. Les cadres se posent
   alors sur la même ligne, avec ou sans aide. */
.grid-fields > .field {
  display: grid; grid-template-rows: auto auto 1fr; gap: 5px; align-self: stretch;
}

/* L'interrupteur prend la forme d'un champ : libellé au-dessus, bascule à la
   place du cadre, état écrit à côté. */
.field-switch .switch-name {
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  display: flex; align-items: center; gap: 5px;
}
/* Trente-huit pixels : la hauteur exacte d'un cadre de saisie. C'est ce qui
   met la bascule et le champ voisin sur le même axe, au pixel. */
.field-switch .switch { display: flex; align-items: center; gap: 9px; min-height: 38px; }
.switch-state {
  font-size: 13px; color: var(--ink-4); font-variant-numeric: tabular-nums;
}
.field-switch input:checked ~ .switch-state { color: var(--ink); font-weight: 600; }
/* Ce qui se stocke (audit, ANO-38) : une bascule par offre et par charge par
   vente, sous la durée du stock, sur toute la largeur du réglage. */
.stock-lignes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.stock-lignes > .field-hint { grid-column: 1 / -1; margin: 0 0 4px; }
@media (max-width: 760px) { .stock-lignes { grid-template-columns: 1fr; } }
/* Un bouton rangé comme un champ prend la hauteur d'un cadre : sans quoi il
   flotte quatre pixels au-dessus de ses voisins. */
.grid-fields > .field > .btn { min-height: 38px; }
/* Ce que les campagnes détaillées ajoutent, dit sans qu'on ait à les ouvrir. */
.acq-plus { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-4); }
.acq-plus .num { color: var(--ink); font-weight: 600; }
/* La ligne d'impôt ferme l'échelle : même grille, dernier barreau. */

/* ─── La fin du parcours : un moment, pas un bulletin ─── */
/* Les chiffres rejoignent le bloc noir, sur une ligne : ils restent exacts
   mais cessent d'être le sujet. Le sujet, c'est qu'un modèle complet existe
   et qu'il y a trois gestes à faire ensuite. */
.done-hero { padding: 24px 26px 20px; }
.done-hero .keystone-value { font-size: clamp(24px, 2.8vw, 32px); }
.done-strip {
  position: relative; display: grid; gap: 1px; margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14);
}
.done-fig { background: var(--ink); padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.done-fig-label {
  font-size: 12px; letter-spacing: 0; color: #8E9184;
  line-height: 1.35;
}
.done-fig-value {
  font-size: 17px; font-weight: 600; letter-spacing: -.03em; color: #fff; white-space: nowrap;
}
.done-next { margin-top: 18px; }
.done-next .setup-next { gap: 10px; }
@media (max-width: 720px) {
  .done-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .done-strip { grid-template-columns: 1fr; }
}
/* « Je ne sais pas encore » : une issue, pas une réponse. Elle se distingue
   des choix — trait interrompu — pour qu'on ne la coche pas par erreur. */
.setup-choice.is-unsure {
  border-style: dashed; background: none;
}
.setup-choice.is-unsure .setup-choice-label { color: var(--ink-3); font-weight: 600; }
.setup-choice.is-unsure:hover { border-color: var(--ink-3); background: var(--surface-2); }

/* ─── Un réglage d'offre qu'on allume ─── */
/* Replié, un volet gardait ses valeurs actives sans le dire. L'interrupteur
   tranche : éteint, le bloc ne compte pas et le corps disparaît. */
.tuneblock { border: 1px solid var(--rule); margin-bottom: 10px; background: var(--surface); }
.tuneblock.is-on { border-color: var(--ink); }
.tuneblock-head { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; }
.tuneblock-title {
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink);
  letter-spacing: -.01em;
}
.tuneblock-sub { font-size: 12px; color: var(--ink-4); line-height: 1.45; margin-top: 2px; }
.tuneblock-off { font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: 4px; font-weight: 500; }
/* « Je n'en ai pas besoin » : sous un interrupteur éteint, dire la décision
   sans rien saisir. Une fois dite, une ligne la rappelle. */
.pas-besoin { display: inline-flex; align-items: center; margin-top: 8px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); font: 600 12.5px/1.2 var(--sans); color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease; }
.pas-besoin:hover, .pas-besoin:focus-visible { background: var(--ink); color: var(--accent); }
.pas-besoin-note { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.tuneblock-body { padding: 0 16px 16px; border-top: 1px solid var(--rule); padding-top: 14px; }
.grid.grid-4.offerline { grid-template-columns: 1.3fr .9fr 1fr 1.1fr; gap: 14px; }
@media (max-width: 1100px) { .grid.grid-4.offerline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.grid-4.offerline { grid-template-columns: 1fr; } }

/* ─── Le « + » qui éclate au clic ─── */
/* Un clic qui change de page sans rien confirmer laisse douter qu'il a été
   pris. Ce signe monte de l'élément cliqué et s'efface en un tiers de seconde,
   là où le doigt était. Il vit sur la page, hors de tout parent, pour qu'aucun
   bloc à débordement caché ne le tronque. */
.gappop {
  position: fixed; z-index: 200; pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--tune); text-shadow: 0 1px 0 #fff, 0 0 10px var(--tune-wash);
  animation: gappop .62s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes gappop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  22%  { opacity: 1; transform: translate(-50%, -132%) scale(1.25); }
  55%  { opacity: 1; transform: translate(-50%, -178%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -240%) scale(.92); }
}
@media (prefers-reduced-motion: reduce) { .gappop { display: none; } }

/* ─── Une suggestion acceptée : l'éclat, le trajet, l'arrivée ─── */
/* Des icônes jaillissent de la pastille dans les couleurs de la maison, une
   copie cochée de la pastille vole jusqu'à la ligne créée, et la ligne entre
   en glissant sous la même lumière que la carte qu'on travaille. */
.burst-bit {
  position: fixed; z-index: 260; pointer-events: none; line-height: 0;
  transform: translate(-50%, -50%);
  animation: burst-bit .82s cubic-bezier(.16, .84, .3, 1) both;
}
.burst-bit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.burst-bit.is-lime { color: var(--accent); filter: drop-shadow(0 0 0.6px var(--ink)) drop-shadow(0 2px 6px rgba(184, 207, 42, .6)); }
.burst-bit.is-dim { color: var(--accent-dim); }
.burst-bit.is-ink { color: var(--ink); }
.burst-bit.is-blue { color: var(--signal); }
@keyframes burst-bit {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0deg); }
  18%  { opacity: 1; }
  70%  { opacity: 1; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 1.15), calc(-50% + var(--dy) * 1.15 + 18px)) scale(.6) rotate(var(--rot)); }
}
.burst-wave {
  position: fixed; z-index: 259; pointer-events: none; width: 20px; height: 20px; border-radius: 50%;
  transform: translate(-50%, -50%); border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(185, 245, 16, .35);
  animation: burst-wave .7s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes burst-wave {
  from { opacity: 1; width: 20px; height: 20px; }
  to   { opacity: 0; width: 150px; height: 150px; border-width: 1px; }
}
.burst-ghost {
  position: fixed; z-index: 258; pointer-events: none; transform-origin: 16px 50%;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--ink); max-width: 340px;
  font: 700 13px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--ink), 0 14px 30px -12px rgba(14, 15, 12, .55), 0 0 24px rgba(185, 245, 16, .7);
}
.burst-ghost > i {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.burst-ghost > i svg { width: 14px; height: 14px; }
.burst-ghost > b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }

.is-just-added { position: relative; z-index: 2; animation: just-added 2.1s cubic-bezier(.2, .8, .3, 1) both !important; }
@keyframes just-added {
  0%   { transform: translateX(-18px); opacity: .2; box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); }
  14%  { transform: none; opacity: 1; box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgba(185, 245, 16, .85), 0 16px 40px -14px rgba(14, 15, 12, .45); }
  60%  { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(185, 245, 16, .55), 0 16px 40px -18px rgba(14, 15, 12, .3); }
  100% { transform: none; opacity: 1; box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .burst-bit, .burst-wave, .burst-ghost { display: none; }
  .is-just-added { animation: none !important; box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgba(185, 245, 16, .7); }
}

/* ─── La ligne ouverte se voit : on sait où l'on travaille ─── */
/* Elle se soulève. Le fond jaune salissait les champs et se lisait comme une
   alerte ; les ombres colorées qui tournaient autour faisaient halo, pas
   relief. La carte qu'on travaille garde son blanc, prend un trait d'encre
   net et monte de quelques pixels au-dessus des autres, portée par trois
   ombres neutres : une serrée qui dessine le bord, une moyenne qui la
   décolle, une large et douce qui la pose loin du fond. Le mouvement se joue
   une fois, à l'ouverture — rien ne bouge pendant qu'on saisit. */
.item.open {
  position: relative; z-index: 1;
  border-color: var(--ink); border-top-color: var(--ink);
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(14, 15, 12, .12),
    0 14px 28px -12px rgba(14, 15, 12, .30),
    0 44px 80px -34px rgba(14, 15, 12, .50);
  animation: card-lift .42s cubic-bezier(.2, .8, .25, 1) both;
}
.item.open > .item-head:hover { background: var(--surface-2); }
.item.open .foldsign { border-color: var(--ink); color: var(--ink); }
@keyframes card-lift {
  from {
    transform: none;
    box-shadow: 0 0 0 rgba(14, 15, 12, 0), 0 0 0 rgba(14, 15, 12, 0), 0 0 0 rgba(14, 15, 12, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .item.open { animation: none; }
}

/* ─── Sur quelles offres porte une charge indexée ─── */
/* Une pastille par offre mangeait la ligne dès qu'il y en avait trois. Un
   bouton dit l'état en trois mots et ouvre la liste à cocher ; le menu ne se
   referme pas entre deux cases, puisque c'est tout l'intérêt. */
.scopepick { position: relative; min-width: max-content; }
.scopepick-sum {
  display: flex; align-items: center; gap: 5px; cursor: pointer; list-style: none;
  padding: 4px 8px; border-radius: 999px; max-width: 168px;
  border: 1px solid var(--rule); background: var(--surface);
  font-family: var(--sans); font-size: 12px; color: var(--ink-3);
  transition: border-color .12s, color .12s; font-variant-numeric: tabular-nums; }
.scopepick-sum::-webkit-details-marker { display: none; }
.scopepick-sum:hover { border-color: var(--tune); color: var(--tune-ink); }
.scopepick[open] .scopepick-sum { border-color: var(--tune); color: var(--tune-ink); }
.scopepick-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.scopepick-chev { flex: none; transition: transform .16s var(--ease-soft); }
.scopepick[open] .scopepick-chev { transform: rotate(90deg); }
.scopepick-menu {
  position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--tune-rule); border-radius: 10px;
  padding: 5px; box-shadow: 0 14px 34px -16px rgba(11, 14, 16, .5);
}
.scopepick-row {
  display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer;
  padding: 6px 8px; border: 0; border-radius: 7px; background: none; font: inherit;
  font-size: 13px; color: var(--ink-3); text-align: left;
}
.scopepick-row:hover { background: var(--tune-wash); color: var(--tune-ink); }
.scopepick-row.on { color: var(--tune-ink); font-weight: 600; }
.scopepick-box {
  width: 15px; height: 15px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 4px; font-size: 10px; line-height: 1;
}
.scopepick-row.on .scopepick-box { background: var(--tune); border-color: var(--tune); color: #fff; }
.scopepick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════ Synthèse — essai : le même récit, dans plus d'air ═══════════
   Le fond est celui de la synthèse — avancement, verdict, trois actes, six
   chiffres, analyse — et la forme change : une seule surface noire, pas de
   cartes encadrées, des colonnes séparées par un filet, la chasse fixe pour
   tout ce qui se compte, et beaucoup d'espace entre les idées. */

.sy { display: flex; flex-direction: column; gap: var(--s-7); padding-bottom: var(--s-5); }

/* Commun : surtitres, boutons, liens. */
.sy-kicker {
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0; color: var(--ink-5);
}
.sy-kicker.is-accent { color: var(--accent); }
.sy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--sans); letter-spacing: -.005em; cursor: pointer;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft), background .18s var(--ease-soft), border-color .18s;
}
.sy-btn:hover { transform: translateY(-1px); }
.sy-btn:active { transform: translateY(0); }
.sy-btn.is-sm { padding: 8px 14px; font-size: 13px; }
.sy-btn.is-accent { background: var(--accent); color: var(--ink); }
.sy-btn.is-accent:hover { box-shadow: 0 10px 24px -14px rgba(184, 207, 42, .9); }
.sy-btn.is-ghost { background: transparent; color: #E9EBE3; border-color: rgba(255, 255, 255, .22); }
.sy-btn.is-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.sy-btn.is-ink { background: var(--ink); color: var(--paper); }
.sy-btn.is-line { background: transparent; color: var(--ink); border-color: var(--rule); }
.sy-btn.is-line:hover { border-color: var(--ink); }
.sy-link {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font: 600 13px/1.4 var(--sans); color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--rule); text-underline-offset: 4px;
  transition: text-decoration-color .16s;
}
.sy-link:hover { text-decoration-color: var(--ink); }

/* Le dépliage sur place : une rangée de grille qui passe de 0 à sa hauteur.
   Le contenu glisse au lieu d'apparaître, sans mesurer quoi que ce soit. */
.sy-unfold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-soft); }
.sy-unfold > div { overflow: hidden; min-height: 0; }
.is-open > .sy-unfold { grid-template-rows: 1fr; }

/* ─── 1. Le dossier : deux tiers de noir, un tiers de file ─── */
.sy-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.sy-ink {
  position: relative; overflow: hidden; background: var(--ink); color: #E9EBE3;
  border-radius: 16px; padding: 20px 24px 20px; display: flex; flex-direction: column;
}
.sy-ink::after {
  content: ''; position: absolute; right: -120px; top: -140px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(185, 245, 16, .16), transparent 65%);
  pointer-events: none;
}
.sy-ink-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sy-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  color: #C9CCC1; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 5px 10px;
}
.sy-live > i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: sy-pulse 2.4s ease-in-out infinite; }
@keyframes sy-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 245, 16, .55); } 60% { box-shadow: 0 0 0 6px rgba(185, 245, 16, 0); } }
.sy-ink-title {
  margin: 0; font-family: var(--display); font-weight: 800; color: #fff;
  font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -.025em;
}
.sy-ink-title.is-small { font-size: clamp(17px, 1.5vw, 21px); }
.sy-ink-word {
  font-family: var(--display); font-weight: 800; color: #fff; line-height: .95;
  font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.04em; margin-bottom: 8px;
}
.sy-ink.is-good .sy-ink-word { color: var(--accent); }
.sy-ink-text { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #B9BCB1; }

/* Une case par ligne du dossier — et chaque case est un bouton : elle se
   survole (ce qu'elle est, pourquoi elle compte) et se clique (on y va). La
   zone cliquable est plus haute que le trait, pour que le doigt la trouve. */
.sy-cells { display: flex; gap: 12px; margin-top: 16px; }
.sy-cells-axe { flex: 1 1 0; min-width: 104px; display: flex; flex-direction: column; gap: 6px; }
.sy-cells-row { display: flex; gap: 3px; }
.sy-cells-cap {
  display: block; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--mono); font-size: 11px; color: #8E9186;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sy-cells-cap b { color: #E9EBE3; font-weight: 600; }
.sy-cell {
  flex: 1; min-width: 0; height: 22px; padding: 7px 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center;
}
.sy-cell > i {
  display: block; width: 100%; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .12);
  transition: transform .16s var(--ease-soft), background .16s, box-shadow .16s;
}
.sy-cell.is-done > i { background: var(--accent); }
.sy-cell.is-next > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); animation: sy-next 1.8s ease-in-out infinite; }
.sy-cell:hover > i, .sy-cell:focus-visible > i { transform: scaleY(1.9); background: rgba(255, 255, 255, .42); }
.sy-cell.is-done:hover > i, .sy-cell.is-done:focus-visible > i { background: #CEF858; box-shadow: 0 0 12px rgba(185, 245, 16, .7); }
.sy-cell:focus-visible { outline: none; }
@keyframes sy-next { 50% { box-shadow: inset 0 0 0 1.5px rgba(185, 245, 16, .35); } }
.sy-ink-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sy-ink-meter { display: none; }

/* La file : ce qui vient d'être posé, puis ce qui vient. */
.sy-next {
  background: var(--surface); border-radius: 16px; padding: 18px 20px 16px;
  display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -36px rgba(14, 15, 12, .35);
}
.sy-nextstep {
  margin-top: 8px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px 11px;
  box-shadow: 0 1px 0 rgba(14, 15, 12, .04);
  transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft), border-color .2s;
}
.sy-nextstep:hover, .sy-nextstep:focus-visible {
  outline: none; transform: translateY(-2px); border-color: var(--ink);
  box-shadow: 0 2px 0 rgba(14, 15, 12, .06), 0 18px 34px -22px rgba(14, 15, 12, .5);
}
.sy-nextstep-label { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.sy-nextstep-where {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font-family: var(--mono); font-size: 11px; line-height: 1.45; color: var(--ink-3);
  background: var(--surface-2); border-radius: 6px; padding: 4px 8px;
}
.sy-nextstep-why { font-size: 13px; line-height: 1.5; color: var(--ink-4); }
.sy-nextstep-go { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sy-nextstep:hover .sy-nextstep-go { text-decoration: underline; text-underline-offset: 4px; }
.sy-axe-bar { display: block; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.sy-axe-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .5s var(--ease-soft); }
.sy-dossier-col.is-complete .sy-axe-bar > i { background: var(--gain); }
.sy-next > .sy-link { margin-top: 14px; padding-left: 10px; }
.sy-side-num {
  margin-top: 14px; font-family: var(--mono); font-weight: 600; font-size: 36px;
  letter-spacing: -.03em; color: var(--ink); line-height: 1;
}
.sy-side-when { margin-top: 10px; font-size: 13px; color: var(--ink-4); line-height: 1.5; }
.sy-next > .spacer { flex: 1; min-height: 18px; }

.sy-fig-chev {
  width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .28s var(--ease-soft); flex: none;
}
.is-open > .sy-fig-head .sy-fig-chev, .sy-deep.is-open .sy-deep-head .sy-fig-chev {
  transform: rotate(-135deg) translate(-2px, -1px);
}

/* ─── 2 bis. Ce qui est fait, ce qui reste — une colonne par page ─── */
.sy-dossier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-3); align-items: start; }
/* Réduit : chaque page garde son nom, son avancement et ce qu'il y reste,
   sur une ligne ; les listes se rangent. Ouvert (par défaut) : tout. */
.sy-dossier:not(.is-open) .sy-dossier-bloc, .sy-dossier:not(.is-open) .sy-dossier-col > .sy-dossier-ok, .sy-dossier:not(.is-open) .sy-paliers { display: none; }
.sy-dossier-mini { display: none; margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.sy-dossier-mini.is-ok { color: var(--gain); font-weight: 600; }
.sy-dossier:not(.is-open) .sy-dossier-mini { display: block; }
.sy-dossier:not(.is-open) .sy-dossier-col { padding: 10px 16px 12px; }
.sy-dossier:not(.is-open) .sy-dossier-col > .sy-axe-bar { margin: 8px 0 7px; }
.sy-dossier-toggle {
  width: 100%; display: flex; align-items: baseline; gap: 12px; cursor: pointer; text-align: left; font: inherit;
  padding: 11px 16px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
}
.sy-dossier-toggle:hover { box-shadow: inset 0 0 0 1px var(--ink-5); }
.sy-dossier-toggle-titre { font: 700 var(--t-block)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.sy-dossier-toggle-say { font-size: 13px; color: var(--ink-4); }
.sy-dossier-toggle .sy-fig-chev { margin-left: auto; align-self: center; }
.sy-dossier.is-open .sy-dossier-toggle .sy-fig-chev { transform: rotate(-135deg) translate(-2px, -1px); }
/* Un seul cadre, ouvert ou réduit : les pages en colonnes séparées d'un
   filet, sans cinq cartes et leurs ombres. */
.sy-dossier { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.sy-dossier .sy-dossier-toggle { box-shadow: none; background: none; border-radius: 0; }
.sy-dossier .sy-dossier-grid { gap: 1px; margin-top: 0; background: var(--rule); border-top: 1px solid var(--rule); align-items: stretch; }
.sy-dossier-col { background: var(--surface); padding: 14px 16px 14px; }
.sy-dossier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sy-dossier-nom { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: -.015em; color: var(--ink); line-height: 1.2; }
.sy-dossier-num { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.sy-dossier-col.is-complete .sy-dossier-num { color: var(--gain); }
.sy-dossier-col > .sy-axe-bar { height: 3px; margin: 10px 0 12px; }
.sy-dossier-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4);
  margin-bottom: 4px;
}
/* En tête, ce qui est fait ; en dessous, séparé d'un filet, ce qui reste. */
.sy-dossier-bloc.is-todo, .sy-dossier-col > .sy-dossier-ok { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.sy-dossier-bloc.is-done > .sy-dossier-tag { color: var(--gain); font-weight: 600; }
.sy-dossier-bloc.is-todo > .sy-dossier-tag { color: var(--ink-2); font-weight: 600; }
.sy-dossier-faits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 6px; }
.sy-dossier-faits > .sy-dossier-more, .sy-dossier-faits > .sy-dossier-less { grid-column: 1 / -1; justify-self: start; }
.sy-dossier-vide { margin: 0; padding: 9px 10px; border-radius: 10px; border: 1px dashed var(--rule); font-size: 12px; color: var(--ink-4); }
/* Ce qui reste : un rond vide, là où ce qui est fait porte sa coche — les
   deux s'alignent, colonne par colonne. */
.sy-todo {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 9px; row-gap: 2px; align-items: start;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  width: 100%; margin: 0; padding: 7px 10px; background: none; border: 0; border-radius: 10px;
  transition: background .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}
.sy-todo > i { grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-5); }
.sy-todo:hover, .sy-todo:focus-visible { outline: none; background: var(--surface-2); }
.sy-todo:hover > i, .sy-todo:focus-visible > i { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
/* Plus fin et plus petit (fil 9ea5187d, 2 octobre) : la liste se lit, elle
   ne crie pas. Le gras reste aux titres de colonne. */
.sy-todo-label { font-size: 12.5px; font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.sy-todo-where { font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.sy-todo:hover .sy-todo-where { color: var(--ink-3); }
.sy-todo.is-next > i { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sy-todo.is-option > i { box-shadow: none; border: 1.5px dashed var(--ink-5); }
/* Le palier d'une ligne (fil 7dcbddd6) : un rond d'autant plus marqué que la
   ligne compte. Fondations à l'encre, crédibilité en gris moyen, finition en
   gris clair ; la prochaine étape garde son vert-jaune. */
.sy-todo.is-t-fondation > i { box-shadow: inset 0 0 0 2px var(--ink); }
.sy-todo.is-t-credibilite > i { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sy-todo.is-t-finition > i { box-shadow: inset 0 0 0 1.5px var(--ink-5); }
.sy-todo.is-option.is-t-finition > i, .sy-todo.is-option.is-t-credibilite > i { box-shadow: none; }
.sy-todo.is-next.is-t-fondation > i, .sy-todo.is-next.is-t-credibilite > i, .sy-todo.is-next.is-t-finition > i { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sy-palier-sous {
  display: flex; align-items: center; gap: 7px; margin: 8px 10px 2px;
  font: 600 11.5px/1.3 var(--sans); color: var(--ink-3);
}
.sy-palier-sous:first-child { margin-top: 2px; }
.sy-palier-sous::before { content: ''; flex: none; width: 10px; height: 3px; border-radius: 2px; background: var(--ink-5); }
.sy-palier-sous.is-t-fondation::before { background: var(--ink); }
.sy-palier-sous.is-t-credibilite::before { background: var(--ink-3); }
/* Les trois paliers, sous le titre du dossier : ce qu'ils disent, où ils en
   sont. Un clic ne garde que leurs lignes. */
.sy-paliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.sy-palier {
  display: grid; gap: 4px; align-content: start; text-align: left; cursor: pointer;
  margin: 0; padding: 10px 16px 11px; border: 0; border-radius: 0; background: var(--surface); font: inherit; color: inherit;
  transition: background .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}
.sy-palier:hover, .sy-palier:focus-visible { outline: none; background: var(--surface-2); }
.sy-palier.is-on { background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--ink); }
.sy-palier-tete { display: flex; align-items: center; gap: 8px; }
.sy-palier-marque { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-5); }
.sy-palier.is-t-fondation .sy-palier-marque { box-shadow: inset 0 0 0 2px var(--ink); }
.sy-palier.is-t-credibilite .sy-palier-marque { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sy-palier-nom { font: 700 13.5px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.sy-palier-num { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.sy-palier.is-plein .sy-palier-num { color: var(--gain); }
.sy-palier-note { font-size: 12px; line-height: 1.35; color: var(--ink-4); }
.sy-palier-bar { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.sy-palier-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .5s var(--ease-soft); }
.sy-palier.is-plein .sy-palier-bar > i { background: var(--gain); }
.sy-todo.is-next .sy-todo-label::after {
  content: 'Prochaine'; margin-left: 8px; vertical-align: 1px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0;
  color: var(--ink-2); background: var(--accent-wash); border-radius: 999px; padding: 2px 7px;
}
/* Ce qui est fait se voit : une pastille verte, cochée, qu'on peut rouvrir. */
.sy-done {
  display: flex; align-items: flex-start; gap: 9px; width: 100%; min-width: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--ink-2);
  background: var(--gain-wash); border: 0; border-radius: 10px; padding: 9px 10px;
  box-shadow: inset 0 0 0 1px rgba(74, 115, 0, .14);
  transition: box-shadow .16s var(--ease-soft), background-color .16s var(--ease-soft);
}
.sy-done > span { min-width: 0; overflow-wrap: anywhere; }
.sy-done:hover, .sy-done:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--gain); }
.sy-done > i {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 700; background: var(--gain); color: #fff;
}
.sy-done.is-na { background: var(--surface-2); color: var(--ink-3); font-weight: 400; box-shadow: inset 0 0 0 1px var(--rule); }
.sy-done.is-na:hover, .sy-done.is-na:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-5); }
.sy-done.is-na > i { background: var(--surface); color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--rule); }
.sy-done em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink-4); }
.sy-dossier-more {
  text-decoration-color: var(--rule); text-underline-offset: 4px;
}
.sy-dossier-more:hover { text-decoration-color: var(--ink); }
.sy-dossier-ok { margin: 0; font-size: 13px; color: var(--gain); font-weight: 600; }
.sy-watch:not(.is-seen) .sy-dossier-col { opacity: 0; }
.is-play .sy-dossier-col { animation: sy-rise .55s var(--ease-soft) both; animation-delay: calc(.08s + var(--i) * .07s); }
.sy-watch:not(.is-seen) .sy-dossier-col > .sy-axe-bar > i { transform: scaleX(0); }
.is-play .sy-dossier-col > .sy-axe-bar > i { animation: sy-widen .7s var(--ease-soft) both; animation-delay: calc(.35s + var(--i) * .07s); transform-origin: left; }

/* ─── 3. Les actes : trois formes, une même hiérarchie ─── */
/* Ce que l'on mesure, combien, ce qu'il faut en retenir, le détail. Chaque
   acte prend la forme de ce qu'il dit : des cartes de mesure, une image au
   centre avec des faits à côté, une bande en travers de la page. */
.sy-act-head { max-width: none; }
.sy-act-no {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-4);
}
.sy-act-no > b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.sy-act-no > span { font-weight: 600; }
.sy-act-no > em { font-style: normal; color: var(--ink-5); margin-left: auto; }
.sy-act-no::after { content: none; }
.sy-act { padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.sy-act-title {
  margin: 10px 0 0; font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.12;
}
.sy-act-say { margin: 8px 0 0; line-height: 1.5; color: var(--ink-3); }

/* Forme 1 — des cartes de mesure, sur surface blanche. */
.sy-cards { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.sy-cards.is-1 { grid-template-columns: minmax(0, 1fr); }
.sy-cards.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sy-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sy-card {
  display: flex; flex-direction: column; padding: 16px 18px 18px; background: var(--surface);
  border-radius: 14px; box-shadow: 0 1px 0 var(--rule), 0 26px 50px -40px rgba(14, 15, 12, .45);
  transition: transform .22s var(--ease-soft), box-shadow .22s var(--ease-soft);
}
.sy-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--rule), 0 30px 56px -38px rgba(14, 15, 12, .55); }
.sy-card-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px;
}
.sy-card-kicker > i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-5); flex: none; }
.is-good > .sy-card-kicker > i, .is-good > .sy-band-say > .sy-card-kicker > i { background: var(--gain); }
.is-watch > .sy-card-kicker > i, .is-watch > .sy-band-say > .sy-card-kicker > i { background: #D09A2A; }
.is-bad > .sy-card-kicker > i, .is-bad > .sy-band-say > .sy-card-kicker > i { background: var(--loss); }

.sy-big { display: flex; flex-direction: column; gap: 4px; }
.sy-big-val {
  font-family: var(--mono);
  color: var(--ink); justify-self: start; align-self: flex-start;
  padding: 0 3px; margin-left: -3px;
}
.sy-big-val.is-pos { color: var(--gain); }
.sy-big-val.is-neg { color: var(--loss); }
.sy-big-cap { font-size: 12px; color: var(--ink-4); }
.sy-card-title {
  margin: 20px 0 0; font-family: var(--display); font-weight: 700;
  line-height: 1.28; letter-spacing: -.015em; color: var(--ink);
}
.sy-card-body { margin: 8px 0 0; font-size: 13px; line-height: 1.62; color: var(--ink-4); }

/* Forme 2 — une image au centre, des faits à côté, sans carte. */
.sy-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; margin-top: 30px; align-items: start; }
.sy-feature-main {
  padding: 28px 30px 30px; border-radius: 20px; background: var(--surface);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -44px rgba(14, 15, 12, .5);
}
.sy-feature-title {
  margin: 14px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12; letter-spacing: -.03em; color: var(--ink);
}
.sy-feature-fig {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-4);
}
.sy-feature-fig b { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.sy-feature-fig b.is-pos { color: var(--gain); }
.sy-feature-fig b.is-neg { color: var(--loss); }
.sy-facts { display: flex; flex-direction: column; }
.sy-fact { padding: 20px 0 22px; border-top: 1px solid var(--ink); }
.sy-fact + .sy-fact { border-top-color: var(--rule); }
.sy-fact-val { margin-top: 10px; font-family: var(--mono); font-weight: 600; font-size: 26px; letter-spacing: -.03em; line-height: 1; }
.sy-fact-val.is-pos { color: var(--gain); }
.sy-fact-val.is-neg { color: var(--loss); }
.sy-fact-title { margin: 10px 0 0; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.sy-fact .sy-split { margin-top: 14px; }

.sy-hundred { margin-top: 24px; }
.sy-hundred-bar { display: flex; height: 48px; border-radius: 12px; overflow: hidden; background: var(--rule); cursor: default; }
.sy-hundred-bar > i {
  display: flex; align-items: center; justify-content: center; min-width: 3px;
  border-right: 2px solid var(--surface); font-style: normal;
}
.sy-hundred-bar > i:last-child { border-right: 0; }
.sy-hundred-bar > i > span { font-family: var(--mono); font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.sy-hundred-bar > i.is-left > span, .sy-hundred-bar > i.is-other > span { color: var(--ink); }
.sy-hundred-bar > i.is-team, .sy-hundred-key.is-team > i { background: var(--ink); }
.sy-hundred-bar > i.is-buys, .sy-hundred-key.is-buys > i { background: #6E7166; }
.sy-hundred-bar > i.is-other, .sy-hundred-key.is-other > i { background: #C9CBC1; }
.sy-hundred-bar > i.is-left, .sy-hundred-key.is-left > i { background: var(--accent); }
.sy-hundred-bar > i.is-bad, .sy-hundred-key.is-bad > i { background: var(--loss); }
.sy-hundred-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 14px; }
.sy-hundred-key {
  display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-3);
}
.sy-hundred-key > i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sy-hundred-key > b { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.sy-hundred-key.is-left > b { color: var(--gain); }

/* Forme 3 — une bande en travers, le seuil sur une règle. */
.sy-bandwrap { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.sy-band-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sy-band-row > .sy-levers { margin-top: 0; padding: 24px 26px; border-top: 0; border-radius: 18px; background: var(--ink); color: #E9EBE3; }
.sy-band-row > .sy-levers .sy-kicker { color: var(--accent); }
.sy-band-row > .sy-levers .sy-levers-title { color: #fff; }
.sy-band-row > .sy-levers .sy-levers-rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sy-band-row > .sy-levers .sy-lever { background: rgba(255, 255, 255, .06); box-shadow: none; }
.sy-band-row > .sy-levers .sy-lever:hover { background: rgba(255, 255, 255, .1); transform: none; }
.sy-band-row > .sy-levers .sy-lever-no { background: var(--accent); color: var(--ink); }
.sy-band-row > .sy-levers .sy-lever-label { color: #fff; }
.sy-band-row > .sy-levers .sy-lever-detail { color: #9EA196; }
.sy-band-row > .sy-levers .sy-lever-gain b { color: var(--accent); }
.sy-band-row > .sy-levers .sy-lever-gain span { color: #9EA196; }
.sy-levers-head { display: flex; flex-direction: column; gap: 6px; }
.sy-levers-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.sy-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 44px; align-items: center;
  padding: 30px 32px; border-radius: 20px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.sy-band-viz { min-width: 0; }
.sy-rule { padding-top: 6px; }
.sy-rule-track { position: relative; height: 18px; border-radius: 9px; background: var(--rule); }
.sy-rule-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; background: var(--ink); transition: width .5s var(--ease-soft); }
.sy-rule.is-ok .sy-rule-fill { background: var(--gain); }
.sy-rule-mark { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface-2); }
.sy-rule-labels { position: relative; height: 44px; margin-top: 10px; }
.sy-rule-labels > span {
  position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.sy-rule-labels > span > b { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-4); }
.sy-rule-prevu { top: 0; }
.sy-rule-seuil { top: 0; }
.sy-rule-labels > span:last-child:nth-child(2) { top: 0; }
.sy-rule .sy-gauge-label { margin-top: 4px; }
.sy-mini.is-grand { height: 150px; margin-top: 0; }
.sy-mini-val {
  position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.sy-mini-track > i.is-neg .sy-mini-val { bottom: auto; top: calc(100% + 5px); color: var(--loss); }
.sy-mini.is-grand .sy-mini-track > i { left: 22%; right: 22%; }

/* Un chiffre qui vient de changer bat une fois : l'œil sait où regarder. */
.sy .is-fresh { animation: sy-fresh 1.1s var(--ease-soft); border-radius: 4px; }
@keyframes sy-fresh { 0% { background: rgba(185, 245, 16, .7); } 100% { background: transparent; } }

/* Les petites images des lectures. */
.sy-mini { position: relative; display: flex; gap: 10px; height: 86px; margin-top: 22px; }
.sy-mini-zero {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); opacity: .22;
  top: calc((100% - 18px) * var(--zero)); pointer-events: none;
}
.sy-mini-col { position: relative; flex: 1; display: flex; flex-direction: column; cursor: default; }
.sy-mini-track { position: relative; flex: 1; border-radius: 3px; transition: background .14s; }
.sy-mini-col:hover .sy-mini-track { background: rgba(14, 15, 12, .04); }
.sy-mini-track > i { position: absolute; left: 18%; right: 18%; min-height: 2px; border-radius: 2px; }
.sy-mini-track > i.is-pos { background: var(--ink); }
.sy-mini-track > i.is-neg { background: var(--loss); opacity: .85; }
.sy-mini-label { height: 18px; padding-top: 5px; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink-5); }

.sy-split { margin-top: 22px; }
.sy-split-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--rule); cursor: default; }
.sy-split-bar > i { display: block; min-width: 2px; border-right: 2px solid var(--paper); }
.sy-split-bar > i:last-child { border-right: 0; }
.sy-split-bar > i.is-team, .sy-split-key.is-team > i { background: var(--ink); }
.sy-split-bar > i.is-buys, .sy-split-key.is-buys > i { background: #6E7166; }
.sy-split-bar > i.is-other, .sy-split-key.is-other > i { background: #B4B7AC; }
.sy-split-bar > i.is-left, .sy-split-key.is-left > i { background: var(--accent); }
.sy-split-bar > i.is-bad, .sy-split-key.is-bad > i { background: var(--loss); }
.sy-split-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.sy-split-key { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); background: none; }
.sy-split-key > i { width: 8px; height: 8px; border-radius: 2px; }
.sy-split-key b { color: var(--ink); font-weight: 600; }

.sy-gauge { margin-top: 22px; }
.sy-gauge-track { position: relative; height: 8px; background: var(--rule); border-radius: 4px; }
.sy-gauge-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); transition: width .5s var(--ease-soft); }
.sy-gauge-track > i.is-ok { background: var(--gain); }
.sy-gauge-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.sy-gauge-label { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }

.sy-curve { margin-top: 22px; }
.sy-curve-wrap { position: relative; }
.sy-curve-svg svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sy-curve-zero { stroke: rgba(14, 15, 12, .28); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.sy-curve-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sy-curve-hit { position: absolute; inset: 0; cursor: crosshair; }
.sy-curve-rule { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ink); opacity: 0; transition: opacity .12s; pointer-events: none; }
.sy-curve-dot {
  position: absolute; top: 0; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--ink); opacity: 0; transition: opacity .12s; pointer-events: none;
}
.sy-curve-dot.is-neg { background: var(--loss); }
.sy-curve-hit.is-on .sy-curve-rule, .sy-curve-hit.is-on .sy-curve-dot { opacity: 1; }
.sy-curve-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-5); }
.sy-curve-legend { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-5); }

/* Les trois gestes chiffrés, qui ferment le dernier acte. */
.sy-levers { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.sy-levers-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.sy-lever {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px;
  padding: 16px 18px; background: var(--surface); border-radius: 14px;
  box-shadow: 0 1px 0 var(--rule); transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.sy-lever:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--rule), 0 18px 34px -26px rgba(14, 15, 12, .45); }
.sy-lever-no {
  grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.sy-lever-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sy-lever-label { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
.sy-lever-detail { font-family: var(--mono); font-size: 11px; color: var(--ink-4); line-height: 1.45; }
.sy-lever-gain { display: flex; align-items: baseline; gap: 6px; }
.sy-lever-gain b { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--gain); }
.sy-lever-gain span { font-size: 12px; color: var(--ink-4); }

.sy-foot {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 22px 0 0; border-top: 1px solid var(--rule); margin-top: -24px;
}
.sy-foot p { flex: 1; min-width: 280px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.sy-foot-go { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── 4. Les six chiffres ─── */
.sy-sec-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sy-sec-head > div:first-child { flex: 1; min-width: 260px; }
/* Les hypothèses du plan : ce qui est retenu, et ce qui le fonde. */
.sy-hyp .table-wrap { margin-top: 18px; }
table.data.sy-hyp-table th, table.data.sy-hyp-table td { text-align: left; }
table.data.sy-hyp-table td { vertical-align: top; line-height: 1.5; font-family: var(--sans); font-size: 14px; }
table.data.sy-hyp-table td.num { font-family: var(--sans); font-size: 13px; font-variant-numeric: tabular-nums; }
.sy-hyp-table td:first-child { min-width: 180px; white-space: normal; }
.sy-hyp-table td:nth-child(2) { white-space: nowrap; }
.sy-hyp-table td:last-child { white-space: normal; min-width: 280px; color: var(--ink-2); }
.sy-hyp-etat { display: inline-block; margin-right: 4px; padding: 2px 7px; border-radius: 999px; font: 600 11px/1.4 var(--sans); background: var(--surface-2); color: var(--ink-3); }
.sy-hyp-etat.is-ok { background: var(--gain-wash); color: var(--gain); }
.sy-hyp-etat.is-watch { background: var(--warn-wash, #FFF3D6); color: var(--warn, #8A6100); }
.sy-hyp .sy-btn { margin-top: 14px; }
.sy-sec-title {
  display: block; margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -.03em; color: var(--ink);
}
.sy-sec-say { display: block; margin: 6px 0 0; font-size: 14px; color: var(--ink-4); line-height: 1.5; }
.sy-years { flex: none; display: inline-flex; gap: 3px; padding: 3px; background: var(--surface); border-radius: 999px; box-shadow: 0 1px 0 var(--rule); }
.sy-year {
  font-family: var(--mono); font-size: 11px; padding: 7px 12px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-4); cursor: pointer; transition: background .18s var(--ease-soft), color .18s;
}
.sy-year:hover { color: var(--ink); }
.sy-year.is-on { background: var(--ink); color: var(--accent); font-weight: 600; }

.sy-figs-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; margin-top: 26px;
  align-items: start; border-top: 1px solid var(--ink);
}
.sy-figs-col { display: flex; flex-direction: column; }
.sy-fig { border-bottom: 1px solid var(--rule); }
.sy-fig-head {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'label chev' 'val spark' 'note spark';
  align-items: center; gap: 4px 12px; background: none; border: 0; cursor: pointer;
  text-align: left; font: inherit; color: inherit; transition: background .16s var(--ease-soft);
}
.sy-fig-head:hover .sy-fig-label { color: var(--ink); }
.sy-fig-head:hover .sy-fig-chev { color: var(--ink); }
.sy-fig-label { grid-area: label; font-family: var(--mono); font-size: 10px; }
.sy-fig-val { grid-area: val; font-family: var(--mono); color: var(--ink); justify-self: start; padding: 0 2px; margin-left: -2px; }
.sy-fig.is-pos .sy-fig-val { color: var(--gain); }
.sy-fig.is-neg .sy-fig-val { color: var(--loss); }
.sy-fig.is-warn .sy-fig-val { color: var(--warn); }
.sy-fig-note { grid-area: note; font-size: 12px; color: var(--ink-4); }
.sy-fig-chev { grid-area: chev; justify-self: end; color: var(--ink-5); }
.sy-spark { grid-area: spark; justify-self: end; align-self: end; line-height: 0; }
.sy-fig-body { padding: 0 0 22px; }
.sy-fig-body p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.sy-fig-body .sy-fig-what { color: var(--ink-2); }
.sy-fig-body b { color: var(--ink); }

/* ─── 5. L'analyse détaillée ─── */
.sy-deep { border-top: 1px solid var(--ink); }
.sy-deep-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0 22px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink-4);
}
.sy-deep-head:hover { color: var(--ink); }
.sy-deep-body { display: flex; flex-direction: column; gap: 56px; padding-top: 12px; animation: sy-rise .4s var(--ease-soft) both; }
.sy-deep-go { display: flex; gap: 10px; flex-wrap: wrap; }

.sy-ex { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sy-ex-year {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid transparent; border-radius: 14px; box-shadow: 0 1px 0 var(--rule);
  font: inherit; color: inherit; transition: border-color .18s, transform .18s var(--ease-soft);
}
.sy-ex-year:hover { transform: translateY(-1px); }
.sy-ex-year.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sy-ex-no { font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); }
.sy-ex-ca { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--ink); }
.sy-ex-net { font-family: var(--mono); font-size: 11px; }
.sy-ex-net.is-pos { color: var(--gain); }
.sy-ex-net.is-neg { color: var(--loss); }

.sy-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; }
.sy-eq-term { display: flex; flex-direction: column; gap: 6px; }
.sy-eq-tag { font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-4); }
.sy-eq-val { font-family: var(--mono); font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.sy-eq-note { font-size: 12px; color: var(--ink-4); }
.sy-eq-term.is-result .sy-eq-val { color: var(--gain); }
.sy-eq-term.is-result.is-loss .sy-eq-val { color: var(--loss); }
.sy-eq-op { font-family: var(--mono); font-size: 26px; color: var(--ink-5); }

.sy-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; }
.sy-block-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sy-block-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.sy-block-meta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-5); }
.sy-note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.sy-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.sy-keys.is-below { margin: 12px 0 0; }
.sy-key { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.sy-key > i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.sy-key.is-ebitda > i { background: #6E7166; }
.sy-key.is-net > i { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.sy-key.is-seuil > i { height: 0; border-top: 2px dashed var(--loss); background: none; border-radius: 0; }

.sy-perf { position: relative; height: 240px; display: flex; gap: 4px; }
.sy-perf-zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); opacity: .28; top: calc((100% - 24px) * var(--zero)); pointer-events: none; z-index: 1; }
.sy-perf-col { position: relative; flex: 1; cursor: pointer; border-radius: 6px; transition: background .16s var(--ease-soft); }
.sy-perf-col:hover { background: rgba(14, 15, 12, .04); }
.sy-perf-col.is-on { background: rgba(185, 245, 16, .22); }
.sy-perf-col:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sy-perf-bars { position: absolute; top: 0; left: 0; right: 0; bottom: 24px; display: flex; padding: 0 8%; }
.sy-perf-slot { position: relative; flex: 1; }
.sy-perf-bar { position: absolute; left: 12%; right: 12%; min-height: 1px; display: block; border-radius: 2px 2px 0 0; }
.sy-perf-bar.is-down { border-radius: 0 0 2px 2px; }
.sy-perf-bar.is-ca { background: var(--ink); }
.sy-perf-bar.is-ebitda { background: #6E7166; }
.sy-perf-bar.is-net { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.sy-perf-bar.is-down { background: var(--loss); box-shadow: none; opacity: .88; }
.sy-perf-seuil { position: absolute; left: 4%; right: 4%; height: 0; border-top: 2px dashed var(--loss); opacity: .75; pointer-events: none; }
.sy-perf-year {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24px; padding-top: 7px; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-5); border-top: 1px solid var(--rule);
}
.is-on > .sy-perf-year { color: var(--ink); font-weight: 600; border-top-color: var(--ink); }

.sy-ladder { display: flex; flex-direction: column; }
.sy-rung {
  display: grid; grid-template-columns: minmax(110px, 1fr) minmax(80px, 1.6fr) 76px; align-items: center; gap: 14px;
  padding: 7px 0; border-bottom: 1px solid var(--rule); cursor: default; transition: background .14s;
}
.sy-rung:hover { background: rgba(255, 255, 255, .5); }
.sy-rung:last-child { border-bottom: 0; }
.sy-rung-nom { font-size: 13px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-rung.is-out .sy-rung-nom::before { content: '\2212\00a0'; font-family: var(--mono); color: var(--ink-5); }
.sy-rung.is-solde .sy-rung-nom, .sy-rung.is-lead .sy-rung-nom { font-weight: 700; color: var(--ink); }
.sy-rung-bar { display: block; height: 7px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.sy-rung-bar > i { display: block; height: 100%; border-radius: 4px; background: #A2A598; transition: width .4s var(--ease-soft); }
.sy-rung.is-solde .sy-rung-bar > i, .sy-rung.is-lead .sy-rung-bar > i { background: var(--ink); }
.sy-rung.is-out .sy-rung-bar > i { background: #D5A9A6; }
.sy-rung.is-last .sy-rung-bar > i { background: var(--accent); }
.sy-rung-val { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--ink); }
.sy-rung.is-solde .sy-rung-val { font-weight: 700; }

.sy-stack { display: flex; gap: 14px; height: 200px; }
.sy-stack-col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 24px; border-radius: 6px; cursor: default; }
.sy-stack-col:hover { background: rgba(14, 15, 12, .04); }
.sy-stack-bar { display: flex; flex-direction: column-reverse; margin: 0 18%; border-radius: 3px 3px 0 0; overflow: hidden; }
.sy-stack-bar > i { display: block; min-height: 1px; border-top: 1px solid var(--paper); }
.sy-stack-bar > i.is-a, .sy-key.is-st-a > i { background: #B4B7AC; }
.sy-stack-bar > i.is-b, .sy-key.is-st-b > i { background: #8E9186; }
.sy-stack-bar > i.is-c, .sy-key.is-st-c > i { background: var(--ink); }
.sy-stack-bar > i.is-d, .sy-key.is-st-d > i { background: #62655A; }
.sy-stack-bar > i.is-e, .sy-key.is-st-e > i { background: #D8DACF; }

.sy-ratios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.sy-ratio { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 15px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.sy-ratio:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.sy-ratio-nom { font-size: 12px; font-weight: 600; color: var(--ink); }
.sy-ratio-val { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.sy-ratio-dit { font-size: 11px; color: var(--ink-5); line-height: 1.4; }

/* ─── Ce qui bouge ─── */
/* L'écran se monte en séquence à l'arrivée ; les images se tracent — barres
   qui poussent depuis leur zéro, répartitions qui se déroulent, courbes qui
   se dessinent. Rien de cela ne se rejoue pendant qu'on travaille. */
@keyframes sy-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sy-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sy-widen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sy-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes sy-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes sy-fade { from { opacity: 0; } to { opacity: 1; } }

/* Tout se joue au défilement : un bloc guetté se trace la première fois
   qu'il entre dans la fenêtre (.is-play), puis reste tel quel (.is-seen).
   Tant qu'il n'a pas été vu, ses images attendent à leur point de départ —
   sans quoi on les verrait posées, puis disparaître, puis se tracer. */
.sy-watch:not(.is-seen) { opacity: 0; transform: translateY(18px); }
.sy-watch.is-play { animation: sy-rise .6s var(--ease-soft) both; }

.sy-watch:not(.is-seen) .sy-cell > i { opacity: 0; }
.is-play .sy-cell > i { animation: sy-fade .3s var(--ease-soft) both; animation-delay: calc(.15s + var(--i) * .02s); }
.is-play .sy-cell.is-next > i { animation: sy-fade .3s var(--ease-soft) both, sy-next 1.8s ease-in-out infinite; animation-delay: calc(.15s + var(--i) * .02s), 1s; }

.sy-watch:not(.is-seen) .sy-card, .sy-watch:not(.is-seen) .sy-fact,
.sy-watch:not(.is-seen) .sy-feature-main, .sy-watch:not(.is-seen) .sy-band,
.sy-watch:not(.is-seen) .sy-lever, .sy-watch:not(.is-seen) .sy-fig,
.sy-watch:not(.is-seen) .sy-ratio { opacity: 0; }
.is-play .sy-card, .is-play .sy-fact, .is-play .sy-lever, .is-play .sy-fig, .is-play .sy-ratio {
  animation: sy-rise .55s var(--ease-soft) both; animation-delay: calc(.12s + var(--i, 0) * .09s);
}
.is-play .sy-feature-main, .is-play .sy-band { animation: sy-rise .6s var(--ease-soft) both; animation-delay: .1s; }

.sy-vis:not(.is-seen) .sy-mini-track > i, .sy-vis:not(.is-seen) .sy-perf-bar,
.sy-vis:not(.is-seen) .sy-stack-bar { transform: scaleY(0); }
.sy-vis.is-play .sy-mini-track > i.is-pos, .sy-vis.is-play .sy-perf-bar { animation: sy-grow .7s var(--ease-soft) both; animation-delay: calc(.35s + var(--i) * .06s); transform-origin: bottom; }
.sy-vis.is-play .sy-mini-track > i.is-neg, .sy-vis.is-play .sy-perf-bar.is-down { animation: sy-grow .7s var(--ease-soft) both; animation-delay: calc(.35s + var(--i) * .06s); transform-origin: top; }
.sy-vis.is-play .sy-stack-bar { animation: sy-grow .7s var(--ease-soft) both; animation-delay: calc(.25s + var(--i) * .07s); transform-origin: bottom; }
.sy-vis.is-play .sy-mini-val { animation: sy-fade .4s var(--ease-soft) both; animation-delay: calc(.9s + var(--i) * .06s); }

.sy-vis:not(.is-seen) .sy-split-bar, .sy-vis:not(.is-seen) .sy-gauge-track,
.sy-vis:not(.is-seen) .sy-hundred-bar, .sy-vis:not(.is-seen) .sy-rule-fill { clip-path: inset(0 100% 0 0); }
.sy-vis.is-play .sy-split-bar, .sy-vis.is-play .sy-gauge-track, .sy-vis.is-play .sy-hundred-bar, .sy-vis.is-play .sy-rule-fill {
  animation: sy-wipe .9s var(--ease-soft) both; animation-delay: .35s;
}
.sy-vis.is-play .sy-rule-mark, .sy-vis.is-play .sy-rule-labels { animation: sy-fade .5s var(--ease-soft) both; animation-delay: .9s; }

.sy-vis:not(.is-seen) .sy-rung-bar > i { transform: scaleX(0); }
.sy-vis.is-play .sy-rung-bar > i { animation: sy-widen .7s var(--ease-soft) both; animation-delay: calc(.2s + var(--i) * .045s); transform-origin: left; }

.sy-vis:not(.is-seen) .sy-curve-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sy-vis.is-play .sy-curve-line { animation: sy-draw 1.3s var(--ease-soft) both; animation-delay: .3s; }
.sy-vis:not(.is-seen) .sy-curve-fill { opacity: 0; }
.sy-vis.is-play .sy-curve-fill { animation: sy-fade .7s var(--ease-soft) both; animation-delay: 1.1s; }
.sy-vis.is-play .sy-spark polyline, .sy-vis.is-play.sy-spark polyline { animation: sy-draw 1s var(--ease-soft) both; animation-delay: .5s; }

/* ─── Petits écrans ─── */
@media (max-width: 1240px) {
  .sy-dossier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* La dernière page occupe la place qui reste : pas de case vide en bout de grille. */
  .sy-dossier-col:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .sy-dossier-col:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (max-width: 980px) {
  .sy-hero { grid-template-columns: minmax(0, 1fr); }
  .sy-dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-dossier-col:last-child:nth-child(3n + 1), .sy-dossier-col:last-child:nth-child(3n + 2) { grid-column: auto; }
  .sy-dossier-col:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sy-cards.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-cards.is-3 > .sy-card:nth-child(3) { grid-column: 1 / -1; }
  .sy-feature, .sy-band, .sy-band-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sy-levers-rows { grid-template-columns: minmax(0, 1fr); }
  .sy-figs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-figs-col { display: contents; }
  .sy-ratios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-ratio:nth-child(4n + 1) { border-left: 1px solid var(--rule); padding-left: 16px; }
  .sy-ratio:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .sy { gap: var(--s-6); }
  .sy-ink { padding: 18px 16px 16px; }
  .sy-ink-acts .sy-btn { width: 100%; }
  .sy-cells { flex-wrap: wrap; gap: 12px 10px; }
  .sy-cells-axe { flex-basis: calc(50% - 5px); }
  .sy-dossier-grid { grid-template-columns: minmax(0, 1fr); }
  .sy-paliers { grid-template-columns: minmax(0, 1fr); }
  .sy-dossier-col:last-child:nth-child(odd) { grid-column: auto; }
  .sy-cards.is-2, .sy-cards.is-3 { grid-template-columns: minmax(0, 1fr); }
  .sy-cards.is-3 > .sy-card:nth-child(3) { grid-column: auto; }
  .sy-card, .sy-feature-main { padding: 20px 18px 22px; }
  .sy-band { padding: 22px 18px; }
  .sy-hundred-bar { height: 40px; }
  .sy-hundred-keys { grid-template-columns: minmax(0, 1fr); }
  .sy-hundred-bar > i > span { font-size: 11px; }
  .sy-figs-grid { grid-template-columns: minmax(0, 1fr); }
  .sy-ex { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .sy-eq { grid-template-columns: 1fr; gap: 10px; }
  .sy-eq-op { display: none; }
  .sy-pair { grid-template-columns: minmax(0, 1fr); }
  .sy-rung { grid-template-columns: minmax(90px, 1fr) minmax(50px, 1fr) 68px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sy *, .sy.is-enter > * { animation: none !important; transition: none !important; }
}

/* ─── Le dépliage d'une carte : posé, pas claqué ─── */
/* En deux temps. La carte s'agrandit en douceur jusqu'à sa hauteur, puis son
   contenu se pose, rangée après rangée, en montant de quelques pixels. Une
   demi-seconde en tout : l'œil suit le geste sans l'attendre. */
:root { interpolate-size: allow-keywords; }
.item.open > .item-body { overflow: clip; animation: item-grandit .46s cubic-bezier(.22, .9, .24, 1) both; }
.item.open > .item-body > * { animation: item-pose .42s cubic-bezier(.22, .9, .24, 1) both; animation-delay: .1s; }
.item.open > .item-body > * + * { animation-delay: .16s; }
.item.open > .item-body > * + * + * { animation-delay: .22s; }
@keyframes item-grandit { from { height: 0; padding-top: 0; padding-bottom: 0; opacity: .4; } to { opacity: 1; } }
@keyframes item-pose { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes item-unfold {
  from { opacity: 0; transform: translateY(-8px) scaleY(.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .item.open > .item-body, .item.open > .item-body > * { animation: none; } }
/* Déjà ouverte au rendu précédent : la carte reste posée, rien ne rejoue. */
.is-deja, .is-deja > .item-body, .is-deja > .item-body > *, .is-deja > .card-body, .is-deja > .cost-detail { animation: none !important; }

/* ─── Un investissement qu'on retient, ou qu'on écarte ─── */
/* Une liste de matériel déjà cochée engage la trésorerie de quelqu'un qui n'a
   rien décidé. Éteint, l'investissement tient sur une ligne et ne compte pas. */
.capexcard { transition: border-color .16s var(--ease-soft), opacity .16s var(--ease-soft); }
.capexcard:not(.is-on) { opacity: .62; }
.capexcard.is-on { border-top: 2px solid var(--ink); }
.capexcard-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.capexcard-name {
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink);
  letter-spacing: -.01em;
}
.capexcard-sub { font-family: var(--sans); font-size: 12px; color: var(--ink-4); margin-top: 2px; font-variant-numeric: tabular-nums; }
.capexcard.is-on > .card-body { border-top: 1px solid var(--rule); animation: item-unfold .26s var(--ease-soft) both; }

/* ═══════════════════ Le bilan, remis en ordre hiérarchique ═══════════════ */
/* Dix-sept lignes de même poids ne forment pas un bilan : elles forment une
   liste. Le bilan a une structure — deux côtés, trois masses par côté, des
   postes sous chaque masse — et cette structure est la moitié de l'information.
   Elle est rendue ici par la taille, par le retrait et par la part occupée,
   jamais par la couleur seule. */

.bil-years { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.bil-year {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 5px 11px; border: 1px solid var(--rule); background: none; color: var(--ink-4);
  border-radius: 999px; cursor: pointer; transition: all .16s var(--ease-soft);
}
.bil-year:hover { border-color: var(--ink-4); color: var(--ink); }
.bil-year.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.bil-years-dit { margin-left: auto; font-family: var(--sans); font-size: 12px; color: var(--ink-5); font-variant-numeric: tabular-nums; }

.bil-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .bil-cols { grid-template-columns: 1fr; gap: 32px; } }

/* Le total du côté, d'abord : c'est le chiffre qu'on cherche en premier. */
.bil-side-head { padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.bil-side-kicker {
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0; color: var(--ink-5);
}
.bil-side-total {
  margin-top: 5px; font-family: var(--mono); font-size: 30px; font-weight: 600;
  letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.05;
}
.bil-side-dit { margin-top: 3px; font-size: 12px; color: var(--ink-4); }

/* Une masse : son nom, son total, sa part du bilan, puis ses postes. */
.bil-mass { padding: 14px 0 13px; border-bottom: 1px solid var(--rule); }
.bil-mass:last-child { border-bottom: 0; }
.bil-mass-head { display: flex; align-items: flex-start; gap: 14px; }
.bil-mass-nom {
  font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}
.bil-mass-dit { margin-top: 2px; font-size: 11px; color: var(--ink-5); line-height: 1.35; }
.bil-mass-fig { flex: none; text-align: right; }
.bil-mass-val {
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bil-mass-val.is-neg { color: #B80F33; }
.bil-mass-pct { font-family: var(--mono); font-size: 10px; color: var(--ink-5); margin-top: 1px; }
.bil-mass-bar {
  height: 4px; margin-top: 9px; background: var(--rule); border-radius: 2px; overflow: hidden;
}
.bil-mass-bar > i { display: block; height: 100%; background: #9B9E93; transition: width .4s var(--ease-soft); }
.bil-mass.is-key .bil-mass-bar > i { background: var(--ink); }
.bil-mass.is-key .bil-mass-nom { border-left: 3px solid var(--accent); padding-left: 8px; margin-left: -11px; }

/* Les postes : en retrait, plus petits, jamais confondus avec leur masse. */
.bil-lines { margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--rule); }
.bil-line {
  display: flex; align-items: baseline; gap: 10px; padding: 3px 0;
}
.bil-line-nom { font-size: 12px; color: var(--ink-4); }
.bil-line-val {
  margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.bil-line.is-neg .bil-line-val { color: #8A8D82; }

.bil-check {
  margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 12px; color: var(--ink-5); font-variant-numeric: tabular-nums; }

/* Le tableau complet ne disparaît pas : il attend d'être demandé. */
.bil-full { border-top: 1px solid var(--rule); }
.bil-full > summary {
  cursor: pointer; padding: 13px 20px; font-size: 13px; font-weight: 600; color: var(--ink-4);
  list-style: none;
}
.bil-full > summary::-webkit-details-marker { display: none; }
.bil-full > summary::before { content: '+ '; font-family: var(--mono); color: var(--ink-5); }
.bil-full[open] > summary::before { content: '− '; }
.bil-full > summary:hover { color: var(--ink); }
.bil-mass.is-empty { opacity: .5; }
.bil-mass.is-empty .bil-mass-bar { background: transparent; border-top: 1px dashed var(--rule); height: 0; margin-top: 12px; }

/* ─── Les garde-fous : un chiffre hors de proportion avec le métier ─── */
/* Une pastille sur une ligne, qui se déplie. Le ton d'un associé qui relit :
   un signe, le nombre de chiffres qui étonnent, et au clic l'écart dit en
   toutes lettres avec le bouton qui mène au champ. */
.garde { margin: 0; }
.garde.is-page { margin: 0 0 16px; }
.garde.sy-garde, .garde.is-act { margin: 14px 0 0; }
.garde-pill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; user-select: none;
  padding: 6px 12px 6px 7px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--warn-wash), 0 1px 0 var(--rule);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: box-shadow .16s var(--ease-soft);
}
.garde-pill::-webkit-details-marker { display: none; }
.garde.is-alerte .garde-pill { box-shadow: inset 0 0 0 1px var(--loss-wash), 0 1px 0 var(--rule); }
.garde-pill:hover { box-shadow: inset 0 0 0 1px var(--warn), 0 4px 12px -8px rgba(14, 15, 12, .4); }
.garde.is-alerte .garde-pill:hover { box-shadow: inset 0 0 0 1px var(--loss), 0 4px 12px -8px rgba(14, 15, 12, .4); }
.garde-pill-more { font-weight: 500; font-size: 12px; color: var(--ink-4); }
.garde-pill-more::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease-soft); }
.garde[open] .garde-pill-more::after { transform: rotate(-135deg) translate(-1px, -1px); }
.garde[open] .garde-pill-more { font-size: 0; }
.garde[open] .garde-pill-more::after { margin-left: 0; }
.garde-sign {
  flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%;
  background: var(--warn); color: #fff;
}
.garde.is-alerte .garde-sign { background: var(--loss); }
.garde-sign::before, .garde-sign::after { content: ''; position: absolute; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px; background: #fff; }
.garde-sign::before { top: 4.5px; height: 7px; }
.garde-sign::after { top: 13px; height: 2px; }
/* Le panneau déplié se lit d'un coup d'œil : texte de note, lignes serrées,
   largeur d'un paragraphe. Il ne doit jamais ressembler à une page zoomée. */
.garde-body {
  margin-top: 8px; background: var(--surface); border-radius: 12px; padding: 10px 14px 2px;
  box-shadow: inset 3px 0 0 var(--warn), 0 1px 0 var(--rule), 0 18px 36px -30px rgba(14, 15, 12, .45);
  animation: item-unfold .24s var(--ease-soft) both;
}
.garde.is-alerte .garde-body { box-shadow: inset 3px 0 0 var(--loss), 0 1px 0 var(--rule), 0 18px 36px -30px rgba(14, 15, 12, .45); }
.garde-say { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-4); }
.garde-list { list-style: none; margin: 6px 0 0; padding: 0; }
.garde-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 7px 0; border-top: 1px solid var(--rule);
}
.garde-item-txt b { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.garde-item-txt b::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.garde-item.is-alerte .garde-item-txt b::before { background: var(--loss); }
.garde-item-txt span { display: block; margin-top: 2px; padding-left: 14px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.garde-go {
  white-space: nowrap; cursor: pointer; border: 0; border-radius: 999px; padding: 6px 11px;
  background: var(--ink); color: #fff; font: 600 11.5px/1 var(--sans);
  transition: transform .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}
.garde-go:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(14, 15, 12, .6); }
@media (max-width: 720px) {
  .garde-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .garde-go { justify-self: start; margin-left: 15px; }
  .garde-pill-more { display: none; }
}

/* Sous le champ : la même lecture, pendant qu'on tape. */
.field-garde {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 7px;
  font-size: 12px; line-height: 1.45; color: var(--ink-2);
}
.field-garde[hidden] { display: none; }
.field-garde > i {
  flex: none; position: relative; width: 15px; height: 15px; border-radius: 50%; margin-top: 1px;
  background: var(--warn);
}
.field-garde.is-alerte > i { background: var(--loss); }
.field-garde > i::before, .field-garde > i::after { content: ''; position: absolute; left: 50%; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; }
.field-garde > i::before { top: 3.5px; height: 5px; }
.field-garde > i::after { top: 9.5px; height: 2px; }
.control.is-odd { border-color: var(--warn); }
.control.is-odd-alerte { border-color: var(--loss); }

/* ─── Les graphiques entrent en scène, comme dans la synthèse ─── */
/* Les barres poussent depuis leur ligne de base, les courbes se tracent, les
   anneaux se remplissent ; les valeurs arrivent en dernier. Une fois par
   visite de page (voir charts.js), et jamais pour qui a demandé moins de
   mouvement. Au survol, l'exercice interrogé reste allumé, les autres
   s'effacent derrière lui. */
.chart .ch-num { font-family: var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ch-bar, .ch-col { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .18s var(--ease-soft); }
.ch-bar.is-neg { transform-origin: 50% 0; }
.ch-val, .ch-dot, .ch-leg { transition: opacity .18s var(--ease-soft); }
.ch-arc { transition: opacity .18s var(--ease-soft); }
.ch .is-dim { opacity: .26; }
.ch-hl { fill: #0E0F0C; opacity: 0; transition: opacity .18s var(--ease-soft); pointer-events: none; }
.ch-hl.is-on { opacity: .045; }

.ch-watch:not(.is-seen) .ch-bar, .ch-watch:not(.is-seen) .ch-col { transform: scaleY(0); }
.ch-watch:not(.is-seen) .ch-line, .ch-watch:not(.is-seen) .ch-arc,
.ch-watch.ch-line:not(.is-seen) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ch-watch:not(.is-seen) .ch-fill, .ch-watch:not(.is-seen) .ch-val, .ch-watch:not(.is-seen) .ch-dot,
.ch-watch:not(.is-seen) .ch-ref, .ch-watch:not(.is-seen) .ch-fade, .ch-watch:not(.is-seen) .ch-leg { opacity: 0; }

.ch.is-play .ch-bar, .ch.is-play .ch-col { animation: ch-grow .72s var(--ease-soft) both; animation-delay: calc(.08s + var(--i, 0) * .05s); }
.ch.is-play .ch-line { stroke-dasharray: 1; animation: ch-draw 1.2s var(--ease-soft) both; animation-delay: .12s; }
.ch.is-play .ch-arc { stroke-dasharray: 1; animation: ch-draw .8s var(--ease-soft) both; animation-delay: calc(.08s + var(--i, 0) * .11s); }
.ch.is-play .ch-fill, .ch.is-play .ch-ref { animation: ch-fade .8s var(--ease-soft) both; animation-delay: .7s; }
.ch.is-play .ch-val, .ch.is-play .ch-dot, .ch.is-play .ch-fade { animation: ch-fade .45s var(--ease-soft) both; animation-delay: calc(.55s + var(--i, 0) * .05s); }
.ch.is-play .ch-leg { animation: ch-fade .4s var(--ease-soft) both; animation-delay: calc(.2s + var(--i, 0) * .08s); }
@keyframes ch-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ch-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ch-fade { from { opacity: 0; } to { opacity: 1; } }
.ch-donut .ch-leg { cursor: default; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .ch *, .ch { animation: none !important; }
}

@media print {
  .ch-watch:not(.is-seen) .ch-bar, .ch-watch:not(.is-seen) .ch-col { transform: none !important; }
  .ch-watch:not(.is-seen) * { opacity: 1 !important; stroke-dashoffset: 0 !important; }
}

/* ─── Le style de la synthèse essai, pour tout le logiciel (sections.js) ─── */
/* Des parties numérotées dont le nom dit la question ; des cartes où le
   montant s'écrit en grand, sa valeur exacte dessous ; des barres qui
   poussent quand on arrive. Les mêmes briques aux états financiers et dans
   les pages de saisie. */
.sx { margin-top: var(--s-6); }
.sx:first-of-type { margin-top: var(--s-4); }
.sx-no {
  padding-top: var(--s-3); border-top: 1px solid var(--rule);
}
.sx-no > b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.sx-no > span { color: var(--ink); font-weight: 600; }
.sx-right { margin-left: auto; text-transform: none; letter-spacing: 0; }
.sx-title {
  margin: var(--s-2) 0 0; font-family: var(--display); font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.1;
}
.sx-say { margin: 6px 0 0; line-height: 1.5; color: var(--ink-3); }
.sx.rv-watch:not(.is-seen) > :not(.sx-head) { opacity: 0; transform: translateY(14px); }
.sx.rv.is-play > :not(.sx-head) { animation: sy-rise .6s var(--ease-soft) both; animation-delay: .08s; }

.sx-years { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sx-year {
  border: 0; background: none; cursor: pointer; border-radius: 999px; padding: 4px 9px;
  font: 600 11px/1 var(--mono); color: var(--ink-4); transition: background .16s, color .16s;
}
.sx-year:hover { color: var(--ink); }
.sx-year.is-on { background: var(--ink); color: var(--accent); }

.sx-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-cards.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-cards.is-1 { grid-template-columns: minmax(0, 1fr); }
.sx-card {
  display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 14px; background: var(--surface);
  border-radius: 14px; box-shadow: 0 1px 0 var(--rule), 0 26px 50px -40px rgba(14, 15, 12, .45);
  transition: transform .22s var(--ease-soft), box-shadow .22s var(--ease-soft);
}
.sx-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--rule), 0 30px 56px -38px rgba(14, 15, 12, .55); }
.sx-card-kicker {
  display: flex; gap: 8px;
  font-family: var(--mono); font-size: 10px;
}
.sx-card-kicker > i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-5); flex: none; }
.sx-card.is-good .sx-card-kicker > i { background: var(--gain); }
.sx-card.is-bad .sx-card-kicker > i { background: var(--loss); }
.sx-card.is-watch .sx-card-kicker > i { background: #D09A2A; }
.sx-big { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sx-big-val {
  font-family: var(--mono);
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sx-card.is-good .sx-big-val { color: var(--gain); }
.sx-card.is-bad .sx-big-val { color: var(--loss); }
.sx-big-val.is-fresh { animation: sy-fresh .9s var(--ease-soft); }
.sx-big-cap { color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-delta { margin-top: 8px; align-self: flex-start; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-4); background: var(--surface-2); border-radius: 6px; padding: 3px 7px; font-variant-numeric: tabular-nums; }
.sx-delta.is-up { color: var(--gain); }
.sx-delta.is-down { color: var(--loss); }
.sx-bars { position: relative; display: flex; gap: 6px; height: 64px; margin-top: var(--s-3); padding-bottom: 18px; }
.sx-bars-zero { position: absolute; left: 0; right: 0; top: calc((100% - 18px) * var(--zero)); height: 1px; background: var(--ink); opacity: .22; pointer-events: none; }
.sx-bar { position: relative; flex: 1; min-width: 0; border: 0; background: none; padding: 0; cursor: pointer; height: 100%; }
.sx-bar > i { position: absolute; left: 12%; right: 12%; border-radius: 3px; background: var(--ink-5); opacity: .5; transition: opacity .16s, background .16s; }
.sx-bar > i[style*="top"] { border-radius: 0 0 3px 3px; }
.sx-bar:hover > i { opacity: .85; }
.sx-bar.is-on > i { background: var(--ink); opacity: 1; }
.sx-card.is-good .sx-bar.is-on > i { background: var(--gain); }
.sx-card.is-bad .sx-bar.is-on > i { background: var(--loss); }
.sx-bar-year { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font: 500 10px/1 var(--mono); color: var(--ink-5); }
.sx-bar.is-on .sx-bar-year { color: var(--ink); font-weight: 600; }
.sx-card-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-4); }

/* L'exercice lu se retrouve dans les colonnes des tableaux. */
.fin-an table.data:not(.is-monthly) tr > :is(td, th) { transition: background .2s; }
.fin-an-0 table.data:not(.is-monthly) tr > :nth-child(2),
.fin-an-1 table.data:not(.is-monthly) tr > :nth-child(3),
.fin-an-2 table.data:not(.is-monthly) tr > :nth-child(4),
.fin-an-3 table.data:not(.is-monthly) tr > :nth-child(5),
.fin-an-4 table.data:not(.is-monthly) tr > :nth-child(6) { background: rgba(185, 245, 16, .16); }
.fin table.data tbody tr:hover > td { background: var(--surface-2); }

@media (max-width: 1100px) {
  .sx-cards, .sx-cards.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sx { margin-top: 34px; }
  .sx-no { row-gap: 10px; }
  .sx-right { margin-left: 0; width: 100%; }
  .sx-cards, .sx-cards.is-3, .sx-cards.is-2 { grid-template-columns: minmax(0, 1fr); }
}

/* La tête seule d'une partie, posée au-dessus d'une zone de travail. */
.sx-solo { margin: var(--s-6) 0 var(--s-3); }
.sx-solo:first-child { margin-top: var(--s-4); }

/* Mon projet : ses blocs sont numérotés, comme les parties de la synthèse. */
.content:has(.slab) { counter-reset: slab; }
.slab-title::before {
  counter-increment: slab; content: counter(slab, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; vertical-align: 1px;
  border-radius: 50%; background: var(--ink); color: var(--accent);
  font: 600 11px/1 var(--mono); letter-spacing: 0;
}

/* ─── Cartes de chiffres : pied, zoom mois par mois, pourquoi ─── */
.sx-bars-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; margin-top: 6px;
  font-family: var(--sans); font-size: 12px; color: var(--ink-5); font-variant-numeric: tabular-nums; }
.sx-unzoom {
  border: 0; background: var(--surface-2); border-radius: 999px; padding: 3px 8px; cursor: pointer;
  font: 600 10px/1 var(--mono); color: var(--ink-3);
}
.sx-unzoom:hover { background: var(--ink); color: var(--accent); }
.sx-bars.is-zoom { gap: 3px; }
.sx-bars.is-zoom .sx-bar { cursor: default; }
.sx-bars.is-zoom .sx-bar > i { background: var(--ink); opacity: .82; }
.sx-card.is-good .sx-bars.is-zoom .sx-bar > i { background: var(--gain); }
.sx-card.is-bad .sx-bars.is-zoom .sx-bar > i { background: var(--loss); }
.sx-bars.is-zoom { animation: sx-zoom .38s var(--ease-soft) both; transform-origin: var(--ox) 100%; }
@keyframes sx-zoom { from { transform: scaleX(.22); opacity: .2; } to { transform: none; opacity: 1; } }
.sx-bars:not(.is-zoom) .sx-bar:hover .sx-bar-year { color: var(--ink); }
.sx-why {
  display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: auto; border-radius: 50%;
  border: 1px solid var(--rule); font: 600 10px/1 var(--mono); color: var(--ink-4); text-transform: none; cursor: help;
}
.sx-why:hover { border-color: var(--ink); color: var(--ink); }

/* La version des pages de saisie : les chiffres sont là, la place reste aux champs. */
.sx.is-compact { margin-top: 26px; }
.sx.is-compact .sx-head { margin-bottom: 12px; }
.sx.is-compact .sx-say { font-size: 14px; }
.sx-cards.is-compact { gap: 10px; }
.sx-card.is-compact { padding: 13px 15px 11px; border-radius: 14px; }
.sx-card.is-compact .sx-big { margin-top: 8px; }
.sx-card.is-compact .sx-big-cap { font-size: 11px; }
.sx-card.is-compact .sx-delta { margin-top: 6px; font-size: 10px; padding: 2px 6px; }
.sx-card.is-compact .sx-bars { height: 46px; margin-top: 10px; padding-bottom: 14px; gap: 4px; }
.sx-card.is-compact .sx-bars-zero { top: calc((100% - 14px) * var(--zero)); }
.sx-card.is-compact .sx-bar-year { bottom: -14px; font-size: 10px; }
.sx-card.is-compact .sx-bars-foot { margin-top: 3px; }

/* Les chiffres clés et le détail des comptes : numérotés comme les actes, et
   ce qu'on peut ouvrir le dit en toutes lettres. */
.sy-figs.sy-act .sy-sec-head { margin-top: 0; align-items: flex-end; }
.sy-fig-more {
  grid-area: chev; display: inline-flex; align-items: center; gap: 8px; justify-self: end;
  font-size: 12px; font-weight: 600; color: var(--ink-4); white-space: nowrap;
}
.sy-fig-more-c { display: none; }
.sy-fig.is-open .sy-fig-more-o { display: none; }
.sy-fig.is-open .sy-fig-more-c { display: inline; }
.sy-fig-head:hover .sy-fig-more { color: var(--ink); }
.sy-deep.sy-act { border-top: 1px solid var(--rule); }
.sy-deep .sy-deep-head {
  margin-top: 20px; padding: 16px 20px; border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 0 var(--rule), 0 20px 40px -34px rgba(14, 15, 12, .45); color: var(--ink-3);
  transition: box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.sy-deep .sy-deep-head:hover { transform: translateY(-1px); box-shadow: 0 1px 0 var(--rule), 0 24px 46px -32px rgba(14, 15, 12, .55); }
.sy-deep-list { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sy-deep-list > span { font-family: var(--sans); font-size: 12px; color: var(--ink-4); background: var(--surface-2); border-radius: 999px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.sy-deep-open {
  flex: none; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 9px 16px;
  background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 600;
}

/* ─── Pitch investisseur ─── */
.pitch { display: flex; flex-direction: column; }
.pitch-cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 40px; align-items: end; }
.pitch-cover > .sy-ink-top, .pitch-cover > .sy-ink-title, .pitch-cover > .pitch-phrase, .pitch-cover > .pitch-manque, .pitch-cover > .pitch-meta { grid-column: 1; }
.pitch-phrase { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: #E9EBE3; }
.pitch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pitch-meta > span { font-family: var(--sans); font-size: 12px; color: #C9CCC1; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.pitch-ask { grid-column: 2; grid-row: 1 / span 5; align-self: center; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 16px; background: rgba(255, 255, 255, .06); min-width: 220px; }
.pitch-ask > span { font-family: var(--mono); color: var(--accent); }
.pitch-ask > b { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; color: #fff; line-height: 1; }
.pitch-ask > small { font-size: 13px; color: #B9BCB1; line-height: 1.45; }
.pitch-manque {
  margin-top: 14px; justify-self: start; text-align: left; cursor: pointer; border: 0; border-radius: 12px; padding: 10px 14px;
  background: rgba(185, 245, 16, .12); color: var(--accent); font: 600 13px/1.45 var(--sans);
}
.pitch .pitch-manque:not(.pitch-cover .pitch-manque) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.pitch > .garde.is-page { margin: 16px 0 0; }
.pitch-offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pitch-client, .pitch-offre { background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -36px rgba(14, 15, 12, .45); }
.pitch-client { background: var(--ink); color: #E9EBE3; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.pitch-client > span { font-family: var(--mono); font-size: 10px; }
.pitch-client > b { font-family: var(--display); font-size: 17px; font-weight: 700; color: #fff; line-height: 1.25; }
.pitch-offre-nom { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.pitch-offre-prix { margin-top: 6px; font-family: var(--mono); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.pitch-offre-prix > span { font-size: 11px; color: var(--ink-4); }
.pitch-offre-part { margin-top: 12px; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.pitch-offre-part > i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.pitch-offre-note { margin-top: 6px; font-size: 12px; color: var(--ink-4); }
.pitch-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pitch-fait { background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -36px rgba(14, 15, 12, .45); display: flex; flex-direction: column; gap: 6px; }
.pitch-fait-label { font-family: var(--mono); font-size: 10px; }
.pitch-fait-val { font-family: var(--mono); color: var(--ink); line-height: 1.1; }
.pitch-fait.is-good .pitch-fait-val { color: var(--gain); }
.pitch-fait.is-bad .pitch-fait-val { color: var(--loss); }
.pitch-fait-dit { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.pitch-usage { margin-top: 16px; background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 0 var(--rule); }
.pitch-usage-head { font-family: var(--mono); font-size: 10px; }
.pitch-usage-bar { display: flex; gap: 3px; height: 14px; margin-top: 12px; }
.pitch-usage-bar > i { border-radius: 4px; min-width: 4px; }
.pitch-usage-bar > .is-0, .pitch-usage-keys > .is-0 > i { background: var(--ink); }
.pitch-usage-bar > .is-1, .pitch-usage-keys > .is-1 > i { background: #6E7166; }
.pitch-usage-bar > .is-2, .pitch-usage-keys > .is-2 > i { background: var(--ink-5); }
.pitch-usage-bar > .is-3, .pitch-usage-keys > .is-3 > i { background: var(--accent); }
.pitch-usage-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.pitch-usage-keys > span { display: inline-flex; align-items: center; gap: 7px; }
.pitch-usage-keys > span > i { width: 9px; height: 9px; border-radius: 2px; }
.pitch-equipe { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border-radius: 14px; overflow: hidden; }
.pitch-poste { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 16px; background: var(--surface); }
.pitch-poste > b { font-weight: 600; color: var(--ink); }
.pitch-poste > span { font-size: 13px; color: var(--ink-4); }
.pitch-poste-cout { font-family: var(--mono); color: var(--ink-3) !important; }
.pitch-equipe-total { margin: 0; padding: 12px 16px; background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
/* Deux familles (fil fe7c07ce) : les chiffres du plan, puis les pièges du métier à anticiper. */
.pitch-risques-familles { display: flex; flex-direction: column; gap: 16px; }
.pitch-risques-famille { display: flex; flex-direction: column; gap: 8px; }
.pitch-risques-titre { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .02em; color: var(--ink-3); }
.pitch-risques { margin: 0; padding: 0; list-style: none; counter-reset: risque; display: flex; flex-direction: column; gap: 10px; }
.pitch-risques > li { counter-increment: risque; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 0 var(--rule); }
.pitch-risques > li::before { content: counter(risque, decimal-leading-zero); grid-row: span 2; font: 600 11px/26px var(--mono); color: var(--ink-4); }
.pitch-risques b { font-weight: 600; color: var(--ink); }
.pitch-risques span { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.pitch-ratios { display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: 0 1px 0 var(--rule); overflow: hidden; }
.pitch-ratio { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.4fr); gap: 20px; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--rule); }
.pitch-ratio:first-child { border-top: 0; }
.pitch-ratio-l { font-size: 14px; font-weight: 600; color: var(--ink); }
.pitch-ratio-v { font-family: var(--mono); font-weight: 600; color: var(--ink); text-align: right; }
.pitch-ratio-d { font-size: 13px; color: var(--ink-4); }
.pitch-vide { margin: 0; font-size: 14px; color: var(--ink-3); }
.pitch-foot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.pitch-foot p { margin: 0; font-size: 13px; color: var(--ink-4); }
.pitch-foot-go { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .pitch-cover { grid-template-columns: minmax(0, 1fr); }
  .pitch-ask { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .pitch-poste { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pitch-ratio { grid-template-columns: minmax(0, 1fr) auto; }
  .pitch-ratio-d { grid-column: 1 / -1; }
}
/* L'avis de Fynomia : la note d'un consultant, sous chaque partie du pitch. */
.pitch-avis {
  align-items: start;
}
.pitch-avis-sign {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font: 800 15px/1 var(--display);
}
.pitch-avis b { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--accent); font-weight: 500; }
.pitch-avis p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: #E9EBE3; }
.rv-watch:not(.is-seen) .pitch-avis { opacity: 0; transform: translateY(8px); }
.rv.is-play .pitch-avis { animation: sy-rise .55s var(--ease-soft) both; animation-delay: .45s; }
.pitch-dossier { display: flex; flex-direction: column; gap: 28px; margin-bottom: 34px; }

/* Les phrases d'une partie courent sur toute la largeur : une phrase coupée
   en trois lignes étroites faisait défiler pour rien. */
.sx-say, .sy-act-say, .sy-sec-say, .sy-note, .garde-say, .view-intro, .pitch-foot p, .pitch-phrase { max-width: none; }
.sx-say { font-size: 14px; }
.sy-act-say { font-size: 15px; }

/* ─── Les chiffres d'une page de saisie, sans repousser les champs ─── */
/* L'avertissement se pose sur la ligne de l'exercice et s'ouvre par-dessus. */
.sx-right-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sx-right-row .garde { position: relative; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.sx-right-row .garde-pill { padding: 4px 10px 4px 5px; font-size: 12px; }
.sx-right-row .garde-sign { width: 18px; height: 18px; }
.sx-right-row .garde-sign::before { top: 4px; height: 6px; }
.sx-right-row .garde-sign::after { top: 11.5px; }
.sx-right-row .garde-body {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(520px, calc(100vw - 32px)); margin: 0;
  box-shadow: inset 3px 0 0 var(--warn), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45);
}
.sx-right-row .garde.is-alerte .garde-body { box-shadow: inset 3px 0 0 var(--loss), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45); }
.sy-act-no .sx-right-row { margin-left: auto; }
.sy-act-no .sx-right-row + em { margin-left: 12px; }
.sy-act-no .garde.sy-garde { margin: 0; }
.sy-act-no .garde-pill-more { display: none; }

/* Sous le champ : une ligne ; le texte entier au survol, déplié au clic. */
.field-garde { cursor: pointer; min-width: 0; }
.field-garde > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-garde.is-open > span { white-space: normal; }

/* Les chiffres d'une page de saisie : une ligne, le titre à gauche.
   Grille à trois colonnes — le nom, les chiffres, les commandes — pour que
   tout s'aligne d'une page à l'autre et que rien ne s'empile. */
.sx.is-bandeau, .sx.is-bandeau:first-of-type { margin: 0 0 var(--s-4); }
.sx-ribbon {
  display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: center;
  column-gap: 12px; background: var(--surface); border-radius: 12px; padding: 6px 10px 6px 16px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 36px -32px rgba(14, 15, 12, .45);
}
.sx-ribbon-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sx-ribbon-head .info-point { width: 20px; height: 20px; font-size: 12px; }
.sx-ribbon-title { flex: 0 1 auto; margin: 0; font: 700 14px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.sx-ribbon-items { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); min-width: 0; }
/* Deux lignes, jamais trois : l'intitulé tient sur la sienne, la colonne
   prend la largeur qu'il lui faut, les chiffres restent alignés dessous. */
.sx-ribbon-item { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; padding: 1px 12px; border-left: 1px solid var(--rule); min-width: 0; cursor: help; align-self: stretch; }
.sx-ribbon-label { font: 500 12px/1.25 var(--sans); color: var(--ink-4); white-space: nowrap; }
.sx-ribbon-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.sx-ribbon-val { font: 600 14px/1.25 var(--mono); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.sx-ribbon-val.is-good { color: var(--gain); }
.sx-ribbon-val.is-bad { color: var(--loss); }
.sx-ribbon-delta { font: 600 11px/1 var(--mono); color: var(--ink-4); white-space: nowrap; }
.sx-ribbon-delta.is-up { color: var(--gain); }
.sx-ribbon-delta.is-down { color: var(--loss); }
.sx-ribbon-ctrl { display: flex; align-items: center; gap: 8px; }
.sx-ribbon-ctrl .sx-year { padding: 4px 8px; }
.sx-ribbon-ctrl .garde { position: relative; }
.sx-ribbon-ctrl .garde-body {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(520px, calc(100vw - 32px)); margin: 0;
  box-shadow: inset 3px 0 0 var(--warn), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45);
}
.sx-ribbon-ctrl .garde.is-alerte .garde-body { box-shadow: inset 3px 0 0 var(--loss), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45); }
.sx-ribbon-more {
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
  background: var(--surface-2); font: 600 12px/1 var(--sans); color: var(--ink-3);
}
.sx-ribbon-more::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease-soft); }
.sx-ribbon-more[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
.sx-ribbon-more:hover { background: var(--ink); color: var(--accent); }
/* L'écart au-dessus des cartes vit dans le pli, ouvert ou non : le replier
   ne fait plus sauter la page de 10 px avant de glisser. */
.sx.is-bandeau .sx-pli .sx-cards { margin-top: 10px; }
/* « Détail » glisse au lieu de surgir : la rangée passe de 0 à sa hauteur
   pendant que le contenu fond et descend de quelques pixels. Replié, le
   contenu remonte et s'efface d'abord, la rangée se referme ensuite. Posé,
   il déborde librement pour ses ombres et ses infobulles. */
.sx-pli { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease-soft); }
.sx-pli > div { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .3s var(--ease-soft); }
.sx.is-bandeau.is-open > .sx-pli { grid-template-rows: 1fr; }
.sx.is-bandeau.is-open > .sx-pli > div { opacity: 1; transform: none; transition: opacity .32s ease .08s, transform .42s var(--ease-soft); }
.sx.is-bandeau.is-pose > .sx-pli > div { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .sx-pli, .sx-pli > div, .sx.is-bandeau.is-open > .sx-pli > div { transition: none; }
}
@media (max-width: 1180px) {
  .sx-ribbon { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .sx-ribbon-items { grid-column: 1 / -1; grid-row: 2; }
  .sx-ribbon-item:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .sx-ribbon { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .sx-ribbon-ctrl { flex-wrap: wrap; }
  .sx-ribbon-items { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; grid-row: auto; }
  .sx-ribbon-item { border-left: 0; padding: 0; }
}

/* L'avertissement court : un signe et un nombre, sur la ligne des chiffres. */
.garde.is-court .garde-pill { padding: 4px 10px 4px 5px; font-size: 12px; gap: 7px; }
.garde.is-court .garde-sign { width: 18px; height: 18px; }
.garde.is-court .garde-sign::before { top: 4px; height: 6px; }
.garde.is-court .garde-sign::after { top: 11.5px; }
.garde.is-court.is-page { margin: 0; }

/* « Je valide » : le chiffre est voulu, on n'en parle plus. */
.garde-acts { display: flex; align-items: center; gap: 8px; justify-self: end; }
.garde-ok {
  border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; white-space: nowrap;
  background: none; box-shadow: inset 0 0 0 1px var(--rule-strong, var(--ink)); font: 600 11.5px/1 var(--sans); color: var(--ink);
  transition: background .16s, color .16s;
}
.garde-ok:hover { background: var(--ink); color: var(--accent); }
.garde-ligne {
  display: flex; align-items: center; gap: 10px; margin: 0 14px 10px 50px; padding: 8px 10px 8px 8px;
  border-radius: 10px; background: var(--warn-wash, #FBF3DF); font-size: 13px; line-height: 1.45; color: var(--ink-2);
}
.garde-ligne.is-alerte { background: var(--loss-wash); }
.garde-ligne .garde-sign { flex: none; width: 18px; height: 18px; }
.garde-ligne .garde-sign::before { top: 4px; height: 6px; }
.garde-ligne .garde-sign::after { top: 11.5px; }
.garde-ligne.is-alerte .garde-sign { background: var(--loss); }
.garde-ligne-txt { flex: 1; min-width: 0; }
@media (max-width: 720px) { .garde-ligne { margin-left: 14px; flex-wrap: wrap; } }

/* Le « i » : un point bleu qui se voit, la phrase en bulle au survol. */
.info-point {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--signal-wash); color: var(--signal-ink);
  font: italic 700 13px/1 Georgia, 'Times New Roman', serif; transition: background .16s, color .16s, transform .16s;
}
.info-point:hover, .info-point:focus-visible, .info-point.is-open { background: var(--signal); color: #fff; }
.info-point:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.info-point::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 9px); z-index: 60;
  width: max-content; max-width: min(340px, 80vw); padding: 9px 12px; border-radius: 10px;
  background: var(--ink); color: #F2F0E8; font: 400 13px/1.5 var(--sans); font-style: normal; text-align: left; white-space: normal;
  box-shadow: 0 18px 40px -18px rgba(14, 15, 12, .6);
  opacity: 0; transform: translate(-50%, -4px); pointer-events: none; transition: opacity .16s, transform .16s;
}
.info-point:hover::after, .info-point:focus-visible::after, .info-point.is-open::after { opacity: 1; transform: translate(-50%, 0); }
.module-top { align-items: center; }

/* ═══════════ Une seule typographie : celle du tableau de bord ═══════════
   Les titres de partie étaient en petites capitales à chasse fixe, les
   libellés des cartes aussi, sous des chiffres trois fois plus grands. Les
   titres reprennent la Bricolage des blocs du tableau de bord, en minuscules,
   et un libellé n'est jamais plus petit que le chiffre qu'il nomme. */
.sx-no {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-4);
}
.sx-no > .sx-name, .sx-no > span:not([class]) {
  flex: none; font: 700 var(--t-block)/1.2 var(--display); letter-spacing: -.024em; color: var(--ink);
}
.sx-no > .sx-say { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-4); }
.sx-no > .sx-right { flex: none; margin-left: auto; }
.sx-head { margin-bottom: var(--s-3); }
.sx-title { margin-top: var(--s-2); font-size: var(--t-section); }

.sx-card-kicker {
  font: 700 17px/1.2 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--ink);
  align-items: baseline;
}
.sx-card-kicker > i { align-self: center; }
.sx-big { margin-top: 6px; }
.sx-big-val { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sx-big-cap { font-size: 12px; }
.sx-card.is-compact .sx-card-kicker { font-size: 15px; }
.sx-card.is-compact .sx-big-val { font-size: 15px; }

.sy-act-no { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.sy-act-no > span { font: 700 var(--t-block)/1.2 var(--display); letter-spacing: -.024em; color: var(--ink); }
.sy-card-kicker, .sy-fig-label {
  font: 700 17px/1.2 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--ink);
}
.sy-big { margin-top: 8px; }
.sy-big-val { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sy-card-title { margin-top: 12px; font-size: 15px; }
.sy-fig-val { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sy-fig-head { padding: 16px 0; }
@media (max-width: 760px) {
  .sx-no > .sx-say { flex-basis: 100%; }
}

/* Le dossier par page : les cinq colonnes partagent leurs lignes (grille
   imbriquée), si bien que « À faire » et « Fait » commencent à la même
   hauteur partout, même quand un nom de page tient sur deux lignes. */
@supports (grid-template-rows: subgrid) {
  .sy-dossier-col { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .sy-dossier-col > .sy-dossier-bloc, .sy-dossier-col > .sy-dossier-ok { align-self: start; }
}
.sy-dossier-head { align-items: flex-start; }
.sy-dossier-more, .sy-dossier-less {
  margin-top: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 0; cursor: pointer;
  font: 600 12px/1.2 var(--sans); color: var(--ink-3); text-decoration: none;
}
.sy-dossier-more:hover, .sy-dossier-less:hover { background: var(--ink); color: var(--accent); }
.sy-dossier-less { background: none; box-shadow: inset 0 0 0 1px var(--rule); }
.sy-todo-where > b { font-weight: 600; color: var(--ink-2); }
/* « À valider », « À relire » : un mot, à côté du libellé, comme « Prochaine ». */
.sy-todo-tag {
  display: inline-block; margin-left: 8px; vertical-align: 1px; padding: 2px 7px; border-radius: 999px;
  font: 500 10.5px/1.2 var(--sans); letter-spacing: 0; color: var(--ink-3); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.sy-todo.is-option .sy-todo-label { color: var(--ink-3); font-weight: 400; }
.sy-todo.is-option .sy-todo-where > b { color: var(--ink-4); }
.nextstep-tag.is-relire { color: var(--accent); }

/* ═══════════ Ton business prend forme — vue une seule fois ═══════════ */
.rvl {
  /* clip, pas hidden : la lueur reste coupée sans faire de .rvl un conteneur
     de défilement, et le bouton du bas peut rester collé à l'écran. */
  position: relative; min-height: 100vh; overflow: hidden; overflow: clip; background: var(--ink); color: #F2F0E8;
  font-family: var(--sans);
}
.rvl-glow {
  position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(185, 245, 16, .16), rgba(185, 245, 16, 0) 70%);
  animation: rvl-glow 6s ease-in-out infinite alternate;
}
@keyframes rvl-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 4vw) scale(1.08); } }
.rvl-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 48px); }
.rvl-brand { font: 800 17px/1 var(--display); letter-spacing: -.02em; color: #fff; }
.rvl-skip { border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--sans); color: #A9ACA0; }
.rvl-skip:hover { color: var(--accent); }
/* Tout tient sur un écran de portable (fil 68b752e6, 11 octobre 2026 : « éviter
   de scroller pour cliquer sur Continuer à structurer ») : un nom moins haut,
   des courbes plus basses, des marges serrées ; et le bouton reste collé en
   bas de l'écran quand la fenêtre est plus basse que la page. */
.rvl-main { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 8px; }
.rvl-kicker, .rvl-name > span, .rvl-phrase, .rvl-chart, .rvl-pourquoi, .rvl-fig, .rvl-dossier-t, .rvl-piece, .rvl-go {
  opacity: 0; animation: rvl-rise .7s var(--ease-soft) both; animation-delay: var(--d, 0s);
}
@keyframes rvl-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rvl-kicker { margin: 0; font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--accent); }
.rvl-name { margin: 10px 0 0; font: 800 clamp(38px, 5.2vw, 72px)/.95 var(--display); letter-spacing: -.045em; color: #fff; }
.rvl-name > span { display: inline-block; margin-right: .22em; }
.rvl-name > span:last-child { margin-right: 0; }
.rvl-phrase { margin: 16px 0 0; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.45; color: #D9DBD2; }
.rvl-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.rvl-chart { margin: 0; padding: 14px 16px 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rvl-chart figcaption { font-size: 14px; color: #A9ACA0; }
.rvl-chart figcaption b { font: 700 15px/1.2 var(--display); color: #fff; letter-spacing: -.02em; }
.rvl-svg { display: block; width: 100%; height: auto; max-height: 172px; margin-top: 6px; overflow: visible; }
/* Pourquoi la trésorerie ralentit en A2 (fil f5b36d84) : une phrase sous les courbes. */
.rvl-pourquoi { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #A9ACA0; }
.rvl-pourquoi b { font-weight: 600; color: #fff; }
.rvl-axis { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.rvl-bar { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0);
  animation: rvl-grow .8s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(1.5s + var(--i) * .16s); }
@keyframes rvl-grow { to { transform: scaleY(1); } }
.rvl-bar-v { fill: #fff; font: 600 12px var(--mono); opacity: 0; animation: rvl-fade .4s ease both; animation-delay: calc(2s + var(--i) * .16s); }
.rvl-bar-y { fill: #7C7F72; font: 500 11px var(--mono); }
@keyframes rvl-fade { to { opacity: 1; } }
.rvl-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: rvl-draw 1.8s ease-in-out 1.9s both; }
@keyframes rvl-draw { to { stroke-dashoffset: 0; } }
.rvl-area { fill: rgba(185, 245, 16, .12); opacity: 0; animation: rvl-fade .8s ease 3s both; }
.rvl-low { opacity: 0; animation: rvl-fade .5s ease 3.3s both; }
.rvl-low circle { fill: var(--loss); stroke: var(--ink); stroke-width: 3; }
.rvl-low-t { fill: #FAB1C2; font: 600 12px var(--sans); }
.rvl-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.rvl-fig { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rvl-fig-l { font: 700 15px/1.25 var(--display); letter-spacing: -.02em; color: #fff; }
.rvl-fig-v { font: 600 15px/1.25 var(--mono); color: var(--accent); letter-spacing: -.02em; }
.rvl-dossier { margin-top: 18px; }
.rvl-dossier-t { margin: 0 0 8px; font: 700 17px/1.2 var(--display); color: #fff; letter-spacing: -.02em; }
.rvl-pieces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rvl-piece { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.rvl-piece-ring { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--part) * 360deg), rgba(255, 255, 255, .12) 0); display: grid; place-items: center; }
.rvl-piece-ring > i { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.rvl-piece.is-full .rvl-piece-ring > i::after { content: '✓'; display: grid; place-items: center; height: 100%; font-style: normal; font-weight: 700; color: var(--accent); }
.rvl-piece-nom { font: 700 15px/1.2 var(--display); color: #fff; }
.rvl-piece-num { font: 600 12px/1.2 var(--mono); color: #A9ACA0; }
.rvl-go { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; padding: 12px 0 18px;
  background: linear-gradient(to bottom, rgba(14, 15, 12, 0), var(--ink) 42%); }
.rvl-cta {
  border: 0; border-radius: 999px; padding: 16px 26px; cursor: pointer; background: var(--accent); color: var(--ink);
  font: 700 15px/1 var(--sans); box-shadow: 0 0 0 0 rgba(185, 245, 16, .5); animation: rvl-pulse 2.2s ease-in-out 5s infinite;
  transition: transform .16s var(--ease-soft);
}
.rvl-cta:hover { transform: translateY(-2px); }
@keyframes rvl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 245, 16, .45); } 60% { box-shadow: 0 0 0 14px rgba(185, 245, 16, 0); } }
@media (max-width: 900px) {
  .rvl-charts { grid-template-columns: minmax(0, 1fr); }
  .rvl-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rvl-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .rvl *, .rvl *::after { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* ═══════════ Pitch investisseur : trois mises en page à l'essai ═══════════ */
.pitch-mises { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 var(--s-3); }
.pitch-mises-l { font: 600 12px/1.2 var(--sans); color: var(--ink-4); }
.pitch-mises-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); flex-wrap: wrap; }
.pitch-mise {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; cursor: pointer; text-align: left;
  padding: 5px 12px; border-radius: 7px; background: none; font: inherit; color: var(--ink-3); transition: background .16s, color .16s;
}
.pitch-mise > b { font: 600 13px/1.2 var(--sans); color: inherit; }
.pitch-mise > span { font-size: 12px; color: var(--ink-4); }
.pitch-mise:hover { background: var(--surface-2); color: var(--ink); }
.pitch-mise.is-on { background: var(--ink); color: #fff; }
.pitch-mise.is-on > span { color: #B9BCB1; }
/* Le PowerPoint, juste après les diapos qu'il emporte. */
.pitch-pptx {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-align: left; font: inherit;
  padding: 3px 12px 3px 3px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink); transition: box-shadow .16s, transform .16s var(--ease-soft);
}
.pitch-pptx:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-1px); }
.pitch-pptx-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--sans); }
.pitch-pptx > span:last-child { display: flex; align-items: baseline; gap: 5px; }
.pitch-pptx > span:last-child > b { font: 600 13px/1.2 var(--sans); }
.pitch-pptx > span:last-child > span { font: 500 11px/1 var(--mono); color: var(--ink-4); }
.pitch-pptx.is-busy { opacity: .6; cursor: progress; }

/* Les faits et les ratios : le libellé au moins aussi grand que le chiffre. */
.pitch-fait-label { font: 700 15px/1.25 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.pitch-fait-val { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.pitch-usage-head { font: 700 15px/1.25 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.pitch-ratio-l { font: 700 14px/1.3 var(--display); letter-spacing: -.015em; }
.pitch-ratio-v { font-size: 14px; }
.pitch-client > span { font: 700 14px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--accent); }
.pitch-offre-prix { font-size: 15px; }
.pitch-ask > span { font: 700 15px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; }
.pitch-chart { background: var(--surface); border-radius: 16px; padding: 14px 16px 8px; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -36px rgba(14, 15, 12, .45); }
.pitch-chart .chart, .pitch-chart svg { width: 100%; height: auto; display: block; }
.pitch-traj { display: flex; flex-direction: column; gap: 12px; }
.pitch-traj-dit { margin: 0; padding: 12px 16px; border-left: 3px solid var(--signal); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pitch-croiss { display: flex; flex-direction: column; gap: 12px; }

/* L'avis : à côté (bloc final d'une ligne) ou en pied de tuile. */
.pitch-avis.is-cote { align-self: stretch; flex-direction: column; justify-content: flex-start; }
.pitch-avis.is-cote .pitch-avis-sign { margin-bottom: 6px; }
.pitch-avis.is-court { margin: 12px 0 0; border-radius: 12px; }
.pitch-avis.is-court p { font-size: 13px; }
.pitch-avis.is-court .pitch-avis-sign { width: 22px; height: 22px; font-size: 11px; }

/* A · Récit — le titre et sa phrase sur une ligne, l'avis à droite. */
.pitch-recit .sx.pitch-ligne { margin-top: 34px; }
.pitch-ligne-corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pitch-ligne-corps > .pitch-avis { position: sticky; top: calc(var(--header-h) + 64px); }
@media (max-width: 1100px) { .pitch-ligne-corps { grid-template-columns: minmax(0, 1fr); } .pitch-ligne-corps > .pitch-avis { position: static; } }

/* B · Tableau — douze colonnes, chaque tuile choisit sa place. */

.pitch-tuile-droite { margin-left: auto; }

/* C · Diapos — une idée par diapositive, qu'on fait défiler de côté. */
.pitch-deck { margin-top: 22px; }
.pitch-piste {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; border-radius: 22px; scrollbar-width: none; outline: none;
}
.pitch-piste::-webkit-scrollbar { display: none; }
.pitch-piste:focus-visible { box-shadow: 0 0 0 2px var(--signal); }
.pitch-diapo {
  scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; min-height: 520px;
  padding: 28px 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 22px;
}
.pitch-diapo-main { min-width: 0; display: flex; flex-direction: column; }
.pitch-diapo-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pitch-diapo-no { font: 600 12px/1 var(--mono); color: var(--ink-4); }
.pitch-diapo-head > h3 { margin: 0; font: 800 clamp(24px, 2.6vw, 32px)/1.08 var(--display); letter-spacing: -.035em; color: var(--ink); }
.pitch-diapo-dit { margin: 8px 0 18px; font-size: 14px; color: var(--ink-3); }
.pitch-diapo-corps { flex: 1; min-width: 0; }
.pitch-diapo > .pitch-avis { margin: 0; }
.pitch-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.pitch-fleche { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: var(--accent); font-size: 17px; transition: transform .16s; }
.pitch-fleche:hover { transform: scale(1.06); }
.pitch-points { display: flex; gap: 6px; }
.pitch-point { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--rule); transition: width .2s, background .2s; }
.pitch-point.is-on { width: 26px; border-radius: 5px; background: var(--ink); }
.pitch-compteur { font: 600 12px/1 var(--mono); color: var(--ink-4); min-width: 44px; text-align: center; }
@media (max-width: 900px) { .pitch-diapo { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 20px; } }
.pitch-ligne-corps > .pitch-avis { align-self: start; }
.pitch-ask > span { font-size: 17px; }
.pitch-ask > b { font-size: 17px; }
/* La bulle du « i » n'existe que lorsqu'on la demande : cachée, elle
   élargissait la page sur un téléphone. Sur petit écran, elle se pose en
   bas, sur toute la largeur. */
.info-point:not(:hover):not(:focus-visible):not(.is-open)::after { display: none; }
@media (max-width: 720px) {
  .info-point::after {
    position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-width: none; transform: none !important;
  }
}

/* « Valider » : une valeur posée par défaut, confirmée d'un clic. */
.valider-chip {
  margin-left: 10px; padding: 3px 9px; border: 0; border-radius: 999px; cursor: pointer; vertical-align: 1px;
  background: var(--signal-wash); color: var(--signal-ink); font: 600 12px/1.3 var(--sans); letter-spacing: 0; text-transform: none;
  transition: background .16s, color .16s;
}
.valider-chip:hover { background: var(--signal); color: #fff; }
.valider-coche { display: inline-block; }
.valider-chip.is-valide, .valider-chip.is-valide:hover { background: var(--ink); color: var(--accent); pointer-events: none; }
.setup-libelle { margin: 14px 0 6px; font: 600 14px/1.3 var(--sans); color: var(--ink-2); }

/* ═══════════ Pitch : la synthèse sur fond noir ═══════════
   L'identité du projet, le chiffre d'affaires année par année, la
   trésorerie mois par mois, le montant demandé, quatre repères. Première
   scène du récit : elle tient dans un écran de portable. */
.pitch-cover.pitch-hero {
  display: block; position: relative; overflow: hidden; margin-top: 0; padding: var(--s-4) var(--s-5) var(--s-4);
  border-radius: 18px; background: var(--ink); color: #F2F0E8;
}
.pitch-hero > * { position: relative; }
.pitch-hero .rvl-glow { position: absolute; inset: -40% -20% auto auto; width: 60%; height: 140%; }
.pitch-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pitch-hero .rvl-kicker { font-size: 11px; }
.pitch-hero .sy-live { padding: 3px 8px; font-size: 10px; }
.pitch-hero .rvl-name { margin-top: 4px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.02; }
.pitch-hero .pitch-phrase { max-width: none; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.pitch-hero .pitch-manque { display: block; width: fit-content; max-width: 100%; text-align: left; font: 600 13px/1.4 var(--sans); padding: 7px 12px; margin-top: 10px; border-radius: 10px; }
.pitch-hero .pitch-meta { margin-top: 10px; gap: 6px; }
.pitch-hero .pitch-meta > span { font-size: 10px; padding: 3px 9px; }
.pitch-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(200px, 240px); gap: var(--s-3); margin-top: var(--s-3); align-items: stretch; }
.pitch-hero .rvl-chart { padding: 12px 14px 6px; border-radius: 14px; }
.pitch-hero .rvl-chart figcaption { font-size: 13px; }
.pitch-hero .rvl-chart figcaption b { font-size: 14px; }
.pitch-hero .rvl-svg { max-height: 140px; }
.pitch-hero .pitch-ask {
  grid-column: auto; grid-row: auto; align-self: stretch; justify-content: center; min-width: 0; gap: 4px; padding: 14px 18px; border-radius: 14px;
  background: rgba(185, 245, 16, .08); box-shadow: inset 0 0 0 1px rgba(185, 245, 16, .28);
}
.pitch-hero .pitch-ask > span { color: var(--accent); font-size: 14px; }
.pitch-hero .pitch-ask > b { font-size: 22px; }
.pitch-hero .pitch-ask > small { font-size: 13px; max-width: none; }
.pitch-hero .rvl-figs { margin-top: var(--s-3); gap: var(--s-3); }
.pitch-hero .rvl-fig { gap: 4px; padding: 10px 14px; border-radius: 12px; }
.pitch-hero .rvl-fig-l { font-size: 14px; }
.pitch-hero .rvl-fig-v { font-size: 15px; }
@media (max-width: 1100px) { .pitch-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pitch-hero .pitch-ask { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pitch-hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .pitch-hero .rvl-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Dans le récit, la synthèse est une scène : une colonne, pas deux. */
.as-scene.as-ouverture { grid-template-columns: minmax(0, 1fr); }

/* Hors de la page de révélation, la couverture ne se joue qu'à l'arrivée :
   figée tant qu'on ne l'a pas vue, jouée une fois, puis immobile. */
.pitch-hero .rvl-kicker, .pitch-hero .rvl-name > span, .pitch-hero .rvl-phrase, .pitch-hero .rvl-chart, .pitch-hero .rvl-fig,
.pitch-hero .rvl-bar, .pitch-hero .rvl-bar-v, .pitch-hero .rvl-line, .pitch-hero .rvl-area, .pitch-hero .rvl-low {
  animation: none; opacity: 1; transform: none; stroke-dashoffset: 0;
}
.pitch-hero.rv-watch:not(.is-seen) :is(.rvl-kicker, .rvl-name > span, .rvl-phrase, .rvl-chart, .rvl-fig, .rvl-bar-v, .rvl-area, .rvl-low) { opacity: 0; }
.pitch-hero.rv-watch:not(.is-seen) .rvl-bar { transform: scaleY(0); }
.pitch-hero.rv-watch:not(.is-seen) .rvl-line { stroke-dashoffset: 1; }
.pitch-hero.is-play :is(.rvl-kicker, .rvl-name > span, .rvl-phrase, .rvl-chart, .rvl-fig) { opacity: 0; animation: rvl-rise .65s var(--ease-soft) both; animation-delay: var(--d, 0s); }
.pitch-hero.is-play .rvl-bar { transform: scaleY(0); animation: rvl-grow .8s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(.8s + var(--i) * .12s); }
.pitch-hero.is-play .rvl-bar-v { opacity: 0; animation: rvl-fade .4s ease both; animation-delay: calc(1.2s + var(--i) * .12s); }
.pitch-hero.is-play .rvl-line { stroke-dashoffset: 1; animation: rvl-draw 1.6s ease-in-out 1s both; }
.pitch-hero.is-play .rvl-area { opacity: 0; animation: rvl-fade .8s ease 2s both; }
.pitch-hero.is-play .rvl-low { opacity: 0; animation: rvl-fade .5s ease 2.3s both; }

/* ═══════════ L'avis de Fynomia : une note d'associé ═══════════ */
.pitch-avis {
  display: flex; flex-direction: column; gap: 0; margin-top: 16px; padding: 16px 18px 16px; border-radius: 16px;
  background: var(--surface); color: var(--ink-2); grid-template-columns: none;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -36px rgba(14, 15, 12, .5), inset 0 3px 0 var(--avis-ton, var(--gain));
}
.pitch-avis.is-good { --avis-ton: var(--gain); }
.pitch-avis.is-watch { --avis-ton: #D09A2A; }
.pitch-avis.is-bad { --avis-ton: var(--loss); }
.avis-tete { display: flex; align-items: center; gap: 9px; }
.avis-mono {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: var(--accent); font: 800 13px/1 var(--display);
}
.avis-qui { font: 600 12px/1.2 var(--sans); color: var(--ink-3); white-space: nowrap; }
.avis-ton {
  margin-left: auto; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.3 var(--sans); white-space: nowrap;
  color: var(--avis-ton); background: color-mix(in srgb, var(--avis-ton) 12%, transparent);
}
.pitch-avis .avis-titre { margin: 12px 0 0; font: 700 17px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.avis-points { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.avis-points li { position: relative; padding-left: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.avis-points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--avis-ton); }
.avis-points li > b { display: inline; font: 600 13px/1.5 var(--mono); letter-spacing: -.02em; color: var(--ink); text-transform: none; white-space: nowrap; }
.avis-question { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #F4F3EE); }
.avis-question > span { display: block; font: 600 12px/1.2 var(--sans); color: var(--ink-4); }
.pitch-avis .avis-question > p { margin: 5px 0 0; font: italic 500 14px/1.5 Georgia, 'Times New Roman', serif; color: var(--ink); }
.avis-action {
  align-self: flex-start; margin-top: 12px; padding: 8px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--accent); font: 600 13px/1 var(--sans); transition: transform .16s var(--ease-soft);
}
.avis-action:hover { transform: translateY(-1px); }
.pitch-avis.is-court { padding: 12px 14px; margin-top: 12px; }
.pitch-avis.is-court .avis-titre { font-size: 15px; margin-top: 9px; }
.pitch-avis.is-court .avis-points { margin-top: 8px; gap: 6px; }
.pitch-avis.is-court .avis-question { margin-top: 10px; }
.pitch-avis.is-court .avis-question > p { font-size: 13px; }
.pitch-avis.is-cote { margin: 0; }
.pitch-diapo > .pitch-avis { align-self: start; }

/* Pilotage : chaque palier s'ouvre seul. */

/* ═══════════ « En clair » : ce que l'acte veut dire, sans un mot de compta ═══════════ */
.sy-clair {
  margin-top: 16px; padding: 14px 18px 14px; border-radius: 14px; background: var(--surface);
  box-shadow: inset 3px 0 0 var(--signal), 0 1px 0 var(--rule);
}
.sy-clair-tag { display: inline-block; font: 700 12px/1 var(--sans); color: var(--signal-ink); background: var(--signal-wash); padding: 4px 9px; border-radius: 999px; }
.sy-clair ul { margin: 10px 0 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.sy-clair li { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sy-clair-gestes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sy-clair-go { border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; background: var(--ink); color: var(--accent); font: 600 13px/1 var(--sans); transition: transform .16s var(--ease-soft); }
.sy-clair-go:hover { transform: translateY(-1px); }

/* ═══════════ Le sélecteur : quatre façons de lire le même pitch ═══════════ */
.pitch-mises { position: sticky; top: calc(var(--header-h) + var(--h-tab) + 5px); z-index: 15; padding: 6px 0; background: var(--paper); }
/* Au téléphone, le sélecteur tient sur une ligne et ne colle plus : il
   occupait un tiers de l'écran au-dessus de chaque scène du récit. Le
   PowerPoint s'y réduit à sa flèche. */
/* L'avertissement du plan, à côté du PowerPoint : une pastille ; ouvert, il
   se pose sous la ligne, aligné sur le contenu, par-dessus la page. */
.garde.is-mises { margin: 0; min-width: 0; }
.garde.is-mises .garde-pill { max-width: 100%; padding: 4px 10px 4px 5px; font-size: 13px; }
.garde.is-mises .garde-pill-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garde.is-mises .garde-sign { width: 18px; height: 18px; }
.garde.is-mises .garde-sign::before { top: 4px; height: 6px; }
.garde.is-mises .garde-sign::after { top: 11.5px; }
.garde.is-mises .garde-body {
  position: absolute; left: 0; top: calc(100% + 4px); width: min(520px, 100%); margin: 0; z-index: 20;
  box-shadow: inset 3px 0 0 var(--warn), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45);
}
.garde.is-mises.is-alerte .garde-body { box-shadow: inset 3px 0 0 var(--loss), 0 1px 0 var(--rule), 0 26px 50px -20px rgba(14, 15, 12, .45); }
@media (max-width: 760px) {
  .pitch-mises { position: relative; flex-wrap: nowrap; gap: 8px; }
  .garde.is-mises { flex: 0 1 auto; }
  .garde.is-mises .garde-pill-more { display: none; }
  .pitch-mises-l, .pitch-mise > span, .pitch-pptx > span:last-child { display: none; }
  .pitch-mises-seg { flex: 1; flex-wrap: nowrap; min-width: 0; }
  .pitch-mise { flex: 1; align-items: center; padding: 9px 6px; }
  .pitch-pptx { padding: 5px; flex: none; }
  /* Deux PowerPoint (fil 2c98c4aa) : sur un téléphone, chacun garde son nom court, « Diapos » ou « Synthèse ». */
  .pitch-pptx[data-pptx] { padding: 5px 9px 5px 5px; }
  .pitch-pptx[data-pptx] > span:last-child { display: flex; }
  .pitch-pptx[data-pptx] > span:last-child > b { display: none; }
}
.pitch.is-detail > .sy { margin-top: 8px; }
html.is-bascule::view-transition-old(root) { animation: pz-sort .22s ease both; }
html.is-bascule::view-transition-new(root) { animation: pz-entre .32s var(--ease-soft) both; }
@keyframes pz-sort { to { opacity: 0; transform: translateY(-6px); } }
@keyframes pz-entre { from { opacity: 0; transform: translateY(10px); } }

/* ═══════════ A · Récit — un texte qu'on lit ═══════════ */
.pitch-chapeau {
  margin: 0 0 16px; font: 500 clamp(18px, 1.7vw, 21px)/1.5 var(--display); letter-spacing: -.012em; color: var(--ink);
 text-wrap: pretty;
}
.pitch.is-recit .sx.pitch-ligne .sx-no > b { width: 36px; height: 36px; font-size: 13px; }

/* ═══════════ B · Tableau — un cockpit, tout sur un écran ═══════════ */

  

 

.pz-mini { display: block; width: 100%; height: 56px; }
.pz-mini rect { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; animation: rvl-grow .7s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--i) * .07s); }
.pz-mini rect.is-neg { fill: #F58CA4; }
.pz-mini .pz-zero { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.pz-mini .pz-trait { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rvl-draw 1.2s ease-in-out .2s forwards; }
  
.pz-jauge { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 18px; }
.pz-jauge > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); animation: sy-widen .8s var(--ease-soft) both; transform-origin: left; }
.pz-jauge-rep { position: absolute; top: -2px; bottom: -2px; background: rgba(255, 255, 255, .22); border-radius: 3px; }
.pz-parts { display: flex; gap: 3px; height: 12px; margin-top: 18px; }
.pz-parts > i { border-radius: 4px; min-width: 6px; background: var(--accent); }
.pz-parts > i.is-1 { background: #9FB42A; } .pz-parts > i.is-2 { background: #6E7B1F; } .pz-parts > i.is-3 { background: #454D17; }
.pz-points { display: flex; gap: 6px; margin-top: 18px; }
.pz-points > i { width: 12px; height: 12px; border-radius: 50%; background: #F2C46B; }

/* La fiche d'une tuile : métrique, valeur exacte, période ou base de calcul. */
.pz-fiche { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 7px; }
.pz-fiche-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.pz-fiche dt { font-size: 13px; color: var(--ink-3); min-width: 0; }
.pz-fiche dd { margin: 0; text-align: right; min-width: 0; }
.pz-fiche dd b { font: 600 13px/1.3 var(--mono); color: var(--ink); white-space: nowrap; }
.pz-fiche dd small { display: block; font-size: 11px; line-height: 1.35; color: var(--ink-4); }

/* ═══════════ C · Diapos — le deck qu'on présentera ═══════════ */
.pitch-deck { position: relative; }
.pz-progres { height: 4px; border-radius: 2px; background: var(--rule); margin-bottom: 10px; overflow: hidden; }
.pz-progres > i { display: block; height: 100%; background: var(--ink); transition: width .35s var(--ease-soft); }
.pitch-deck .pitch-diapo {
  display: flex; flex-direction: column; aspect-ratio: 16 / 9; min-height: 0; padding: clamp(18px, 3vw, 40px);
  border-radius: 22px; overflow: hidden; gap: 14px;
}
.pitch-diapo.is-sombre { background: var(--ink); color: #F2F0E8; box-shadow: none; }
.pitch-diapo.is-clair { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.pz-diapo-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pitch-diapo.is-sombre .pitch-diapo-no { color: var(--accent); }
.pz-diapo-grille { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
.pz-diapo-texte h3 { margin: 0; font: 800 clamp(26px, 3.2vw, 44px)/1.04 var(--display); letter-spacing: -.04em; color: inherit; }
.pz-diapo-recit { margin: 14px 0 0; font: 500 clamp(15px, 1.4vw, 19px)/1.5 var(--display); letter-spacing: -.01em; opacity: .88; }
.pz-diapo-chiffre { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.pz-diapo-chiffre > b { font: 700 clamp(26px, 3.2vw, 44px)/1.04 var(--mono); letter-spacing: -.04em; }
.pitch-diapo.is-sombre .pz-diapo-chiffre > b { color: var(--accent); }
.pz-diapo-chiffre > b.is-bad { color: var(--loss) !important; }
.pz-diapo-chiffre > span { font-size: 13px; opacity: .7; }
.pz-diapo-visuel { min-width: 0; max-height: 100%; overflow: auto; scrollbar-width: none; border-radius: 16px; }
.pz-diapo-visuel::-webkit-scrollbar { display: none; }
.pitch-diapo.is-sombre .pz-diapo-visuel { background: var(--paper); color: var(--ink); padding: 12px; }
.pz-note { display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 18%, transparent); }
.pz-note b { display: block; font: 600 12px/1.3 var(--sans); opacity: .7; }
.pz-note p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.pz-note p.pz-note-q { font-size: 13px; opacity: .8; }
.pitch-diapo.is-sombre .pz-note .avis-mono { background: var(--accent); color: var(--ink); }
.pz-plein { margin-left: 8px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; background: var(--surface-2); font: 600 12px/1 var(--sans); color: var(--ink-3); }
.pz-plein:hover { background: var(--ink); color: var(--accent); }
.pitch-deck:fullscreen { background: var(--ink); padding: 3vh 3vw; display: flex; flex-direction: column; justify-content: center; }
.pitch-deck:fullscreen .pitch-piste { flex: none; }
@media (max-width: 900px) {
  .pitch-deck .pitch-diapo { aspect-ratio: auto; }
  .pz-diapo-grille { grid-template-columns: minmax(0, 1fr); }
  .pz-diapo-visuel { max-height: none; }
}

.pz-barres { display: flex; align-items: flex-end; gap: 8px; height: 56px; }
.pz-barres > i { flex: 1; max-width: 64px; border-radius: 5px 5px 2px 2px; background: var(--accent); opacity: .9; transform-origin: 50% 100%; animation: rvl-grow .7s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--i) * .07s); }
.pz-barres > i.is-neg { background: #F58CA4; }

/* ═══════════════════ Ce que ton banquier va vérifier ═══════════════════
   Cinq lignes, un état chacune. L'état se lit d'abord — une étiquette à
   gauche, dans la couleur de la maison : vert validé, ambre juste, rouge à
   revoir —, puis le chiffre, puis ce qu'on attend et quoi faire. */
.bk { display: grid; gap: 14px; }
.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bk-titre { margin: 0; font-family: var(--display); font-size: var(--t-block); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bk-bilan { font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); color: var(--ink-3); }
.bk-bilan.is-ok { color: var(--gain); background: var(--gain-wash); border-color: transparent; }
.bk-bilan.is-juste { color: var(--warn); background: var(--warn-wash); border-color: transparent; }
.bk-bilan.is-revoir { color: var(--loss); background: var(--loss-wash); border-color: transparent; }
.bk-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.bk-ligne { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.bk-etat { font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 5px 8px; border-radius: 6px; text-align: center; background: var(--surface-2); color: var(--ink-4); }
.bk-ligne.is-ok .bk-etat { background: var(--gain-wash); color: var(--gain); }
.bk-ligne.is-juste .bk-etat { background: var(--warn-wash); color: var(--warn); }
.bk-ligne.is-revoir .bk-etat { background: var(--loss-wash); color: var(--loss); }
.bk-ligne.is-na { opacity: .72; }
.bk-ligne-tete { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.bk-ligne-titre { font-size: var(--t-row); font-weight: 600; color: var(--ink); }
.bk-valeur { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.bk-ligne.is-revoir .bk-valeur { color: var(--loss); }
.bk-lu, .bk-attendu, .bk-faire { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.bk-attendu span { font-weight: 700; color: var(--ink-4); font-size: 12px; letter-spacing: 0; margin-right: 4px; }
.bk-faire { color: var(--ink-2); font-weight: 500; }
.bk-faire::before { content: '\2192\00a0'; color: var(--ink-4); }
.bk.is-court .bk-ligne { padding: 9px 0; }
.bk-table td:first-child { white-space: normal; min-width: 220px; }
@media (max-width: 640px) {
  .bk-ligne { grid-template-columns: 1fr; gap: 6px; }
  .bk-etat { justify-self: start; }
}

/* ═══════════════════ L'effet d'une saisie, sous le champ ═══════════════════
   Une pastille discrète, posée juste sous la case qu'on vient de toucher :
   ce que le chiffre a déplacé, en euros, dans la couleur du sens. */
.effet {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  animation: effet-in .28s cubic-bezier(.2, .8, .2, 1);
}
.effet::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.effet.is-bon { background: var(--gain-wash); color: var(--gain); }
.effet.is-mauvais { background: var(--loss-wash); color: var(--loss); }
/* Dans une tuile étroite — la trésorerie de départ —, la pastille passe à la ligne. */
.source .effet { white-space: normal; max-width: 100%; border-radius: 8px; align-items: baseline; }
@keyframes effet-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .effet { animation: none; } }

/* ═══════════════════════════════ Méthode ═══════════════════════════════
   Une page de lecture : des blocs numérotés, chacun avec son titre et sa
   phrase, puis le contenu. Pas de carte sur carte : des filets. */
.mt-lede { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.mt-bloc { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--rule); }
.mt-bloc-tete { display: contents; }
.mt-no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-4); padding-top: 5px; }
.mt-bloc-titre { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.mt-bloc-dit { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.mt-bloc-corps { grid-column: 2; margin-top: 14px; }
.mt-table { width: 100%; border-collapse: collapse; }
.mt-table th { text-align: left; font-size: 12px; letter-spacing: 0; color: var(--ink-4); font-weight: 600; padding: 0 16px 9px 0; border-bottom: 1.5px solid var(--ink); }
.mt-table td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; white-space: normal; }
.mt-table td b { display: block; font-size: 14px; color: var(--ink); }
.mt-lecture { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-4); }
.mt-range { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap !important; }
.mt-calcul { font-size: 13px; color: var(--ink-3); }
.mt-etapes, .mt-liste { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.mt-p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.mt-maj { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.mt-maj-titre { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
/* Décision 9 : le plan chiffré avec d'autres règles, une ligne discrète. */
.mt-regles-plan { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
/* Avis de mise à jour des règles, en haut de Mon projet. */
.regles-maj { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 14px; border-radius: 10px; }
.regles-maj-texte { flex: 1 1 360px; min-width: 0; }
.regles-maj-texte p { margin: 0; }
.regles-maj-acts { display: flex; gap: 8px; flex: none; }
.mt-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mt-sources li { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.mt-source-tete { font-size: 14px; color: var(--ink); }
.mt-annee { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.mt-source-apporte { margin: 4px 0; font-size: 13px; color: var(--ink-3); }
.mt-lien { font-size: 13px; color: var(--signal-ink); word-break: break-all; }
@media (max-width: 640px) {
  .mt-bloc { grid-template-columns: 1fr; }
  .mt-bloc-corps { grid-column: 1; }
}

/* La source d'un repère, à côté du repère. */
.repere-src { font-size: 12px; color: var(--ink-4); text-decoration: none; border-bottom: 1px dotted var(--ink-5); white-space: nowrap; }
.repere-src:hover { color: var(--signal-ink); border-bottom-color: currentColor; }

/* ═══════════ Pilotage : trois paliers, titres en grand, ouverts en entier ═══════════
   Le titre du palier n'est plus une étiquette en capitales de neuf pixels :
   c'est un titre, dans la police des titres, précédé de sa couleur. Fermé,
   le palier ne montre que ce titre, sa phrase et son compte ; ouvert, toutes
   ses lignes. */

@keyframes palier-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.pilote-dossier { margin-bottom: 0; gap: var(--s-3); }

/* ═══════════════════ Pitch · Récit : neuf scènes ═══════════════════
   Une scène à la fois, comme une présentation. En haut, la barre des neuf
   étapes ; à gauche, sur un panneau blanc, la question, le grand chiffre,
   la conclusion, trois repères et les deux gestes ; à droite, le dessin sur
   un panneau sombre, où seul le vert acide de la maison porte les données.
   « Comprendre ce chiffre » ouvre un tiroir sur le côté ; « Voir les
   données » pose l'état financier par-dessus la page, fond flouté. */
.as-recit { display: grid; gap: var(--s-3); margin-top: 0; min-width: 0; scroll-margin-top: calc(var(--header-h) + var(--h-tab) + 5px); }

/* Les étapes : la forme du sommaire d'« En détail ». Elles suivent la page,
   collées juste sous la barre d'onglets : on ne perd jamais le fil, et rien
   ne passe entre les onglets et elles. Un fond plein et une jupe de la
   couleur du papier cachent ce qui défile dessous. */
.as-progres {
  position: sticky; top: calc(var(--header-h) + var(--h-tab) + 5px); z-index: 15;
  display: flex; justify-content: space-between; gap: 3px; overflow-x: auto; scrollbar-width: none; min-width: 0;
  padding: 5px 6px; border-radius: 14px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule), 0 -6px 0 0 var(--paper), 0 10px 30px -24px rgba(14, 15, 12, .5);
}
.as-progres::-webkit-scrollbar { display: none; }

.as-etape {
  flex: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  padding: 5px 10px; border: 0; border-radius: 999px; background: var(--surface-2);
  font: 600 13px/1.2 var(--sans); color: var(--ink-2); transition: background .16s var(--ease-soft), color .16s var(--ease-soft);
}
.as-etape.is-fait { color: var(--ink-3); }
.as-etape:hover, .as-etape.is-on { background: var(--ink); color: #fff; }

/* Le cadre des scènes : la piste, et les chevrons posés de part et d'autre. */
.as-cadre { position: relative; min-width: 0; }
.as-piste { min-width: 0; display: flex; flex-direction: column; }
.as-piste > .as-scene.is-on { flex: 1 0 auto; }
.as-scene { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-3); min-width: 0; }
.as-scene.is-on { display: grid; }
.as-scene.is-entree .as-scene-texte { animation: as-scene-in .42s var(--ease-soft) both; }
.as-scene.is-entree .as-scene-dessin { animation: as-scene-in .42s var(--ease-soft) .06s both; }
@keyframes as-scene-in { from { opacity: 0; transform: translateY(10px); } }

.as-scene-texte {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 18px 22px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(14, 15, 12, .04), 0 22px 44px -34px rgba(14, 15, 12, .4);
}
/* Le chapitre : son numéro et son terme, en tête, discrets — l'accroche porte la scène. */
.as-tete { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 600 14px/1.2 var(--sans); letter-spacing: .005em; color: var(--ink-3); }
.as-tete .as-no { font: 600 12px/1 var(--mono); letter-spacing: 0; color: var(--ink-4); }
.as-tete .as-no::after { content: '.'; }
/* L'accroche : une phrase, son chiffre en gras — ce qu'on retient de la scène. */
.as-accroche {
  margin: 2px 0 0; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.18;
  letter-spacing: -.02em; color: var(--ink);
}
.as-accroche b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-accroche b.is-bad { color: var(--loss); }
.as-accroche b.is-good { color: var(--gain); }
.as-conclusion { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
/* La suite : deux lignes, puis un fondu ; elle se lit en entier dans le tiroir. */
.as-suite {
  position: relative; margin: -4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); cursor: pointer;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.as-suite::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 45%; height: 1.6em; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--surface) 85%);
}
.as-suite:hover { color: var(--ink-2); }

/* Le lexique : le terme surligné une fois dans le texte, rappelé en puce. */
.as-lex { cursor: help; }
.as-lex.is-texte {
  color: inherit; border-radius: 2px; outline-offset: 2px;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 55%, transparent) 36%, transparent 36%);
  transition: background-color .15s var(--ease-soft);
}
.as-lex.is-texte:hover, .as-lex.is-texte:focus-visible { background-color: color-mix(in srgb, var(--accent) 22%, transparent); }
/* Les chiffres qui comptent (fil 811bf1a5) : le même trait que le lexique,
   sans gras ni curseur — on les lit, on ne les ouvre pas. */
mark.as-cle {
  color: inherit; font-weight: inherit; white-space: nowrap; border-radius: 2px;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 55%, transparent) 36%, transparent 36%);
}
.as-lexique { display: flex; flex-wrap: wrap; gap: 6px; }
.as-lex.is-puce {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface-2); font: 600 12px/1 var(--sans); letter-spacing: 0; color: var(--ink-3);
  transition: border-color .15s var(--ease-soft), color .15s var(--ease-soft);
}
.as-lex.is-puce::after { content: '?'; color: var(--ink-4); }
.as-lex.is-puce:hover, .as-lex.is-puce:focus-visible { border-color: var(--ink); color: var(--ink); }
.as-bulle {
  position: fixed; z-index: 1000; left: 0; top: 0; max-width: 300px; padding: 11px 13px 12px; border-radius: 12px;
  background: #0E0F0C; color: rgba(242, 240, 232, .88); font-size: 13px; line-height: 1.5;
  box-shadow: 0 18px 40px -18px rgba(14, 15, 12, .6); opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .14s var(--ease-soft), transform .14s var(--ease-soft), visibility 0s linear .14s;
}
.as-bulle.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .14s var(--ease-soft), transform .14s var(--ease-soft); }
.as-bulle b { display: block; margin-bottom: 4px; font: 700 12px/1.3 var(--sans); letter-spacing: 0; color: var(--accent); }
/* Dans le tiroir : les mots du chapitre, définis. */
.as-mots { margin: 0; display: grid; gap: 10px; }
.as-mot { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.as-mot dt { font: 700 12px/1.4 var(--sans); letter-spacing: 0; color: var(--ink); }
.as-mot dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.as-scene-gestes { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: 4px; }
.as-geste {
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--sans);
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
  transition: background .15s var(--ease-soft), border-color .15s var(--ease-soft), color .15s var(--ease-soft);
}
.as-geste:hover { border-color: var(--ink); }
.as-geste:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.as-geste:first-child:hover { background: var(--ink-2); }

.as-scene-dessin {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; min-height: 300px;
  padding: 18px 20px; border-radius: 16px; background: #0E0F0C; color: #F2F0E8; overflow: hidden;
}
.as-scene-dessin > * { min-width: 0; }
.as-scene-vide { margin: 0; text-align: center; font-size: 14px; color: rgba(242, 240, 232, .6); }

/* Les dessins, sur le panneau sombre : l'encre devient clarté, le vert reste. */
.as-scene-dessin .chart text { fill: rgba(242, 240, 232, .55); }
.as-scene-dessin .chart .ch-val { fill: #F2F0E8; }
.as-scene-dessin .chart line { stroke: rgba(242, 240, 232, .12); }
.as-scene-dessin .ch-hl { fill: #F2F0E8; }
.as-scene-dessin .ch-hl.is-on { opacity: .07; }
.as-scene-dessin .chart-legend { color: rgba(242, 240, 232, .7); }
.as-scene-dessin .as-barres, .as-scene-dessin .as-cascade, .as-scene-dessin .as-equation { max-width: none; }
.as-scene-dessin .as-barre-nom { color: #F2F0E8; }
.as-scene-dessin .as-barre-val, .as-scene-dessin .as-barre-sous { color: rgba(242, 240, 232, .6); }
.as-scene-dessin .as-barre-piste { background: rgba(242, 240, 232, .08); box-shadow: none; }
.as-scene-dessin .as-barre-piste i { background: var(--accent); }
.as-scene-dessin .as-barre.is-neg .as-barre-piste i { background: rgba(242, 240, 232, .45); }
.as-scene-dessin .as-barre:hover { background: rgba(242, 240, 232, .06); box-shadow: 0 0 0 5px rgba(242, 240, 232, .06); }
.as-scene-dessin .as-barre.is-alerte .as-barre-piste i { background: #E0153F; }
.as-scene-dessin .as-barre.is-alerte .as-barre-val, .as-scene-dessin .as-barre.is-alerte .as-barre-nom { color: #FF6F8E; }
.as-scene-dessin .as-cascade-nom { color: rgba(242, 240, 232, .85); }
.as-scene-dessin .as-cascade-val { color: #F2F0E8; }
.as-scene-dessin .as-cascade-l:hover { background: rgba(242, 240, 232, .06); }
.as-scene-dessin .as-cascade-zero { background: rgba(242, 240, 232, .3); }
.as-scene-dessin .as-cascade-l.is-total i { background: var(--accent); }
.as-scene-dessin .as-cascade-l.is-sous i { background: rgba(242, 240, 232, .55); }
.as-scene-dessin .as-cascade-l.is-moins i { background: #E0153F; opacity: .8; }
.as-scene-dessin .as-cascade-l.is-plus i, .as-scene-dessin .as-cascade-l.is-couvre i { background: #B9F510; }
.as-scene-dessin .as-cascade-l.is-manque i { background: #E0153F; }
.as-scene-dessin .as-cascade-l.is-manque .as-cascade-val, .as-scene-dessin .as-cascade-l.is-manque .as-cascade-nom { color: #FF6F8E; }
.as-scene-dessin .as-cascade-l.is-total .as-cascade-nom, .as-scene-dessin .as-cascade-l.is-sous .as-cascade-nom { color: #fff; }
.as-scene-dessin .as-cascade-l.is-sous, .as-scene-dessin .as-cascade-l:last-child:not(:first-child) { box-shadow: inset 0 1px 0 rgba(242, 240, 232, .14); }
.as-scene-dessin .as-eq-bloc { background: rgba(242, 240, 232, .05); border-color: rgba(242, 240, 232, .14); }
.as-scene-dessin .as-eq-bloc span, .as-scene-dessin .as-eq-bloc small { color: rgba(242, 240, 232, .6); }
.as-scene-dessin .as-eq-bloc b { color: #fff; }
.as-scene-dessin .as-eq-bloc.is-cout b { color: #FF6F8E; }
.as-scene-dessin .as-eq-bloc.is-marge { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.as-scene-dessin .as-eq-op { color: rgba(242, 240, 232, .45); }
.as-scene-dessin .as-eq-barre { background: rgba(242, 240, 232, .08); }
.as-scene-dessin .as-eq-barre i.is-cout { background: #E0153F; opacity: .7; }
.as-scene-dessin .as-eq-barre i.is-marge { background: var(--accent); }
.as-scene-dessin .as-j-zero { stroke: rgba(242, 240, 232, .3); }
.as-scene-dessin .as-j-aire { opacity: .32; }
.as-scene-dessin .as-j-neg { opacity: .35; }
.as-scene-dessin .as-j-trait { stroke: var(--accent); }
.as-scene-dessin .as-j-y, .as-scene-dessin .as-j-x { fill: rgba(242, 240, 232, .55); }
.as-scene-dessin .as-j-bas text, .as-scene-dessin .as-j-haut text { fill: #F2F0E8; }
.as-scene-dessin .as-j-bas circle, .as-scene-dessin .as-j-haut circle { stroke: #0E0F0C; }
.as-scene-dessin .as-j-repere { fill: #0E0F0C; stroke: var(--accent); }
.as-scene-dessin .as-figure figcaption { color: rgba(242, 240, 232, .55); }

.as-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.as-nav-btn {
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--sans);
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  transition: background .15s var(--ease-soft), border-color .15s var(--ease-soft), color .15s var(--ease-soft), opacity .15s;
}
.as-nav-btn:hover:not(:disabled) { border-color: var(--ink); }
.as-nav-btn.is-suiv { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.as-nav-btn.is-suiv:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.as-nav-btn:disabled { opacity: .35; cursor: default; }
.as-nav-compteur { font: 600 12px/1 var(--mono); letter-spacing: 0; color: var(--ink-4); }

/* Le tiroir et la surimpression. */
.as-voile { position: fixed; inset: 0; z-index: 90; background: rgba(14, 15, 12, .3); opacity: 0; transition: opacity .22s var(--ease-soft); }
.as-voile.is-donnees { background: rgba(242, 240, 232, .42); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.as-voile.is-on { opacity: 1; }
.as-couche {
  position: fixed; z-index: 91; display: flex; flex-direction: column; outline: none; background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(14, 15, 12, .55), 0 0 0 1px rgba(14, 15, 12, .06);
}
.as-couche.is-tiroir { top: 0; right: 0; bottom: 0; width: min(540px, 100vw); border-radius: 22px 0 0 22px; transform: translateX(104%); transition: transform .32s var(--ease); }
.as-couche.is-tiroir.is-on { transform: none; }
.as-couche.is-donnees {
  top: 50%; left: 50%; width: min(1000px, calc(100vw - 32px)); max-height: min(86dvh, 900px); border-radius: 22px;
  opacity: 0; transform: translate(-50%, -48%) scale(.98); transition: transform .26s var(--ease), opacity .2s var(--ease-soft);
}
.as-couche.is-donnees.is-on { opacity: 1; transform: translate(-50%, -50%); }
.as-couche-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 26px 0; }
.as-couche-kicker { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-4); }
.as-couche-fermer {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-3); font-size: 13px;
}
.as-couche-fermer:hover { border-color: var(--ink); color: var(--ink); }
.as-couche-corps { flex: 1; display: grid; gap: 22px; align-content: start; min-height: 0; padding: 10px 26px 26px; overflow-y: auto; overscroll-behavior: contain; }
.as-couche-titre { margin: 4px 0 0; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.12; letter-spacing: -.018em; color: var(--ink); }
.as-couche.is-donnees .as-couche-titre { font-size: 22px; }
.as-couche-lede { margin: -12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.as-couche-bloc { display: grid; gap: 10px; min-width: 0; }
.as-couche-bloc > h3 {
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-4);
}
.as-couche-pied { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid var(--rule); }
.as-couche-btn {
  padding: 12px 18px; border-radius: 999px; cursor: pointer; font: 600 14px/1 var(--sans);
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  transition: background .15s var(--ease-soft), border-color .15s var(--ease-soft), color .15s var(--ease-soft);
}
.as-couche-btn.is-ghost:hover { border-color: var(--ink); }
.as-couche-btn.is-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.as-couche-btn.is-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.as-couche-bloc .as-table { font-size: 13px; }
.as-couche-bloc .as-table th, .as-couche-bloc .as-table td { padding-left: 6px; padding-right: 6px; }
.as-couche-bloc .as-table td:not(:first-child) { white-space: nowrap; }
.as-tuiles { display: grid; gap: 8px; }
.as-tuiles .as-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 0; }
.as-tuiles .as-chiffre, .as-tuiles .as-chiffre:last-child { margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface-2); }
.as-tuiles .as-chiffre-v { font-size: 22px; }
.as-etat tr.is-fort td { font-weight: 600; }
.as-etat tr.is-total td { font-weight: 600; border-top: 1.5px solid var(--ink); }
.as-etat tr.is-vise td { background: var(--accent-wash); }
.as-etat tr.is-vise td:first-child { box-shadow: inset 3px 0 0 var(--accent-dim); }

/* Les pièces communes au récit et au détail. */
.as-repere { font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-4); }
.as-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); border-top: 1.5px solid var(--ink); }
.as-chiffre { display: grid; gap: 5px; align-content: start; padding: 12px 18px 2px 0; margin-right: 18px; border-right: 1px solid var(--rule); min-width: 0; }
.as-chiffre:last-child { border-right: 0; margin-right: 0; }
.as-chiffre-l { font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.as-chiffre-v { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.12; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.as-chiffre-v.is-bad { color: var(--loss); }
.as-chiffre-v.is-good { color: var(--gain); }
.as-chiffre-n { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.as-clair { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.as-clair .repere-src { margin-left: 2px; }
.as-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.as-detail-corps { display: grid; gap: 16px; min-width: 0; }
.as-table-wrap { overflow-x: auto; min-width: 0; }
.as-table { width: 100%; font-size: 13px; }
table.data.as-table td:not(:first-child) { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.as-table th { white-space: nowrap; }

/* Les barres : une par poste, sa part, et sa ligne de calcul. */
.as-barres { display: grid; gap: 12px; max-width: 780px; }
.as-barre-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.as-barre-nom { color: var(--ink-2); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.as-barre-val { font-family: var(--mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.as-barre-sous { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); overflow-wrap: anywhere; }
.as-barre-piste { height: 8px; margin-top: 5px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.as-barre-piste i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transform-origin: left; animation: as-pousse .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.as-barre.is-neg .as-barre-piste i { background: var(--ink-3); }
.as-barre.is-alerte .as-barre-piste i { background: var(--loss); }
.as-barre.is-alerte .as-barre-val, .as-barre.is-alerte .as-barre-nom { color: var(--loss); }
@keyframes as-pousse { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.as-barre { cursor: default; border-radius: 6px; transition: background .12s; }
.as-barre:hover { background: var(--surface-2); box-shadow: 0 0 0 5px var(--surface-2); }

/* La cascade : du chiffre d'affaires au résultat, poste par poste. */
.as-cascade { display: grid; gap: 4px; max-width: 780px; }
.as-cascade-l {
  display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) minmax(92px, auto); gap: 14px; align-items: center;
  padding: 4px 6px; border-radius: 6px; font-size: 14px; transition: background .12s;
}
.as-cascade-l:hover { background: var(--surface-2); }
.as-cascade-nom { color: var(--ink-2); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.as-cascade-piste { position: relative; height: 14px; }
.as-cascade-piste i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--ink-4); transform-origin: left; animation: as-pousse .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.as-cascade-zero { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--ink-5); }
.as-cascade-val { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; white-space: nowrap; }
.as-cascade-l.is-moins i { background: var(--loss); opacity: .72; }
.as-cascade-l.is-plus i { background: var(--gain); }
.as-cascade-l.is-total i { background: var(--ink); }
.as-cascade-l.is-sous i { background: var(--ink-3); }
.as-cascade-l.is-couvre i { background: var(--gain); }
.as-cascade-l.is-manque i { background: var(--loss); }
.as-cascade-l.is-manque .as-cascade-val, .as-cascade-l.is-manque .as-cascade-nom { color: var(--loss); }
.as-cascade-l.is-total, .as-cascade-l.is-sous, .as-cascade-l.is-manque { font-weight: 700; }
.as-cascade-l.is-total .as-cascade-nom, .as-cascade-l.is-sous .as-cascade-nom { color: var(--ink); }
.as-cascade-l.is-sous, .as-cascade-l:last-child:not(:first-child) { margin-top: 4px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--rule); }
.as-figure { margin: 0; display: grid; gap: 6px; }
.as-figure figcaption { font-size: 13px; color: var(--ink-4); }

/* Prix − coût direct = marge. */
.as-equation { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 12px; max-width: 780px; }
.as-eq-bloc { display: grid; gap: 3px; min-width: 132px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); cursor: default; }
.as-eq-bloc span { font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.as-eq-bloc b { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.as-eq-bloc small { font-size: 12px; color: var(--ink-4); }
.as-eq-bloc.is-cout b { color: var(--loss); }
.as-eq-bloc.is-marge { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.as-eq-op { align-self: center; font: 700 22px/1 var(--mono); color: var(--ink-4); }
.as-eq-barre { flex-basis: 100%; display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.as-eq-barre i.is-cout { background: var(--loss); opacity: .6; }
.as-eq-barre i.is-marge { background: var(--ink); }

/* La trésorerie mois par mois : l'aire au-dessus de zéro, le rouge dessous. */
.as-j-zero { stroke: var(--ink-5); stroke-width: 1; stroke-dasharray: 3 4; }
.as-j-aire { fill: var(--accent); opacity: .55; }
.as-j-neg { fill: var(--loss); opacity: .2; }
.as-j-trait { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.as-j-y, .as-j-x { font-family: var(--mono); font-size: 11px; fill: var(--ink-4); }
.as-j-bas circle { fill: var(--loss); stroke: #fff; stroke-width: 2; }
.as-j-haut circle { fill: var(--gain); stroke: #fff; stroke-width: 2; }
.as-j-bas text, .as-j-haut text { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
/* Le mois survolé, posé sur le trait. */
.as-j-repere, .rvl-repere { opacity: 0; pointer-events: none; transition: opacity .1s; }
.as-j-repere { fill: #fff; stroke: var(--ink); stroke-width: 2.2; }
.rvl-repere { fill: var(--accent); stroke: var(--ink); stroke-width: 2.5; }
.as-j-repere.is-on, .rvl-repere.is-on { opacity: 1; }
.rvl-bar { transition: opacity .15s; }
.rvl-bar.is-dim { opacity: .35; }

.as-bk { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.as-bk-ligne { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.as-bk-ligne:last-child { border-bottom: 0; }
.as-bk-etat { font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 4px 6px; border-radius: 6px; text-align: center; background: var(--surface-2); color: var(--ink-4); }
.as-bk-ligne.is-ok .as-bk-etat { background: var(--gain-wash); color: var(--gain); }
.as-bk-ligne.is-juste .as-bk-etat { background: var(--warn-wash); color: var(--warn); }
.as-bk-ligne.is-revoir .as-bk-etat { background: var(--loss-wash); color: var(--loss); }
.as-bk-titre { color: var(--ink-2); font-weight: 600; }
.as-bk-val { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; }

@media (max-width: 760px) {
  .as-recit { scroll-margin-top: calc(var(--header-h) + 64px); }
  .as-progres { position: static; gap: 4px; }
  .as-etape { padding: 5px 10px; }
  .as-scene { grid-template-columns: minmax(0, 1fr); }
  .as-scene-texte { padding: 22px 18px 20px; border-radius: 18px; }
  .as-tete { font-size: 13px; }
  .as-accroche { font-size: 22px; }
  .as-mot { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .as-geste { flex: 1 1 auto; text-align: center; }
  .as-scene-dessin { min-height: 0; padding: 22px 16px; border-radius: 18px; }
  .as-nav-btn { padding: 12px 16px; }
  .as-couche.is-tiroir { top: 6dvh; width: 100vw; border-radius: 22px 22px 0 0; transform: translateY(104%); }
  .as-couche.is-tiroir.is-on { transform: none; }
  .as-couche.is-donnees { width: calc(100vw - 16px); max-height: 90dvh; }
  .as-couche-tete, .as-couche-corps, .as-couche-pied { padding-left: 18px; padding-right: 18px; }
  .as-couche-titre { font-size: 22px; }
}
@media (max-width: 640px) {
  .as-cascade-l { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .as-cascade-piste { grid-column: 1 / -1; grid-row: 2; }
  .as-eq-bloc { min-width: 0; flex: 1 1 110px; }
  .as-eq-bloc b { font-size: 20px; }
  .as-bk-ligne { grid-template-columns: 70px minmax(0, 1fr); }
  .as-bk-val { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .as-scene.is-entree .as-scene-texte, .as-scene.is-entree .as-scene-dessin { animation: none; }
  .as-etape, .as-couche, .as-voile { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .as-barre-piste i, .as-cascade-piste i { animation: none; } }

/* ═══════════ Pitch · Diapos : des diapositives blanches ═══════════
   Passer du noir au blanc à chaque diapositive fatiguait l'œil. Toutes les
   diapositives de contenu sont blanches ; le noir ne sert plus qu'aux
   intercalaires, qui annoncent qu'on change de partie. */
.pitch-diapo.is-intercalaire { background: var(--ink); color: #F2F0E8; box-shadow: none; justify-content: center; }
.pz-inter { display: grid; gap: 14px; max-width: 760px; }
.pz-inter-no { font: 700 clamp(56px, 8vw, 110px)/.9 var(--mono); letter-spacing: -.05em; color: var(--accent); }
.pz-inter-titre { margin: 0; font: 800 clamp(30px, 4vw, 56px)/1.02 var(--display); letter-spacing: -.035em; color: #fff !important; }
.pz-inter-dit { margin: 0; font: 500 clamp(15px, 1.4vw, 19px)/1.5 var(--display); opacity: .75; }
.pz-inter-liste { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pz-inter-liste span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); font: 600 13px/1.2 var(--sans); color: #E9EBE3; }
.pitch-point.is-inter { width: 14px; border-radius: 3px; background: var(--ink-5); }
.pitch-point.is-inter.is-on { background: var(--ink); }

/* ═══════════ Pitch · En détail : des chapitres, pas un wiki ═══════════
   Chaque partie devient un panneau blanc détaché du papier, avec son numéro
   en pastille, sa question, sa réponse en grand. Un sommaire ouvre la page.
   Le texte long se coupe à trois lignes, « pourquoi c'est important » se
   replie : on lit les chiffres d'abord, l'explication si on la veut. */
.pitch.is-detail .sy { display: grid; gap: 26px; }
.sy-sommaire {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule), 0 10px 30px -24px rgba(14, 15, 12, .5); backdrop-filter: blur(8px);
}
.sy-sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sy-sommaire button { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; padding: 6px 11px 6px 6px; border-radius: 999px; background: var(--surface-2); font: 600 13px/1.2 var(--sans); color: var(--ink-2); }
.sy-sommaire button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--accent); font: 700 10px/1 var(--mono); }
.sy-sommaire button:hover { background: var(--ink); color: #fff; }
.pitch.is-detail .sy-chapitre {
  padding: 30px 32px 30px; border-top: 0; border-radius: 24px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule), 0 24px 48px -40px rgba(14, 15, 12, .45); scroll-margin-top: calc(var(--header-h) + 150px);
}
.pitch.is-detail .sy-chapitre .sy-act-no { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.pitch.is-detail .sy-chapitre .sy-act-no > b { width: 28px; height: 28px; font-size: 12px; background: var(--accent); color: var(--accent-ink); }
.pitch.is-detail .sy-chapitre .sy-act-title { margin-top: 6px; }
.pitch.is-detail .sy-card, .pitch.is-detail .sy-fact, .pitch.is-detail .sy-feature-main, .pitch.is-detail .sy-band { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.sy-card-body.is-coupe { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.sy-lire { margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 12px/1.3 var(--sans); color: var(--signal-ink); }
.sy-lire:hover { text-decoration: underline; }
.sy-why { margin-top: 10px; border-top: 1px dashed var(--rule); padding-top: 8px; }
.sy-why > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.3 var(--sans); color: var(--ink-3); }
.sy-why > summary::-webkit-details-marker { display: none; }
.sy-why > summary::before { content: '+'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); font: 700 11px/1 var(--mono); color: var(--ink-3); }
.sy-why[open] > summary::before { content: '−'; }
.sy-why > p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
/* Le sommaire se colle sous « Lire le pitch », sur une ligne qui défile de
   côté si elle déborde ; la partie lue s'y allume. Les parties s'arrêtent
   sous la pile des barres collées quand on y saute. */
.pitch.is-detail .sy-sommaire {
  position: sticky; top: calc(var(--header-h) + var(--h-tab) + 48px); z-index: 14;
  flex-wrap: nowrap; padding: 7px 8px; gap: 12px; background: var(--paper);
}
.pitch.is-detail .sy-sommaire ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pitch.is-detail .sy-sommaire ol::-webkit-scrollbar { display: none; }
.pitch.is-detail .sy-sommaire li { flex: none; }
.pitch.is-detail .sy-sommaire button { white-space: nowrap; }
.pitch.is-detail .sy-sommaire button.is-on { background: var(--ink); color: #fff; }
.pitch.is-detail [id^="sy-ed-"], .pitch.is-detail #sy-hypotheses, .pitch.is-detail #sy-comptes { scroll-margin-top: calc(var(--header-h) + 150px); }
@media (max-width: 640px) {
  .pitch.is-detail .sy-chapitre { padding: 20px 16px; border-radius: 18px; }
  .pitch.is-detail .sy-sommaire { position: static; flex-wrap: wrap; }
  .pitch.is-detail .sy-sommaire ol { flex-wrap: wrap; overflow: visible; }
  .pitch.is-detail [id^="sy-ed-"], .pitch.is-detail #sy-hypotheses, .pitch.is-detail #sy-comptes, .pitch.is-detail .sy.is-edito .sy-chapitre { scroll-margin-top: 110px; }
}

/* ═══════════ Pitch · En détail, en article ═══════════
   Le détail se lit comme un dossier imprimé : l'ouverture en très grand —
   chiffre d'affaires, résultat, marge —, les six chiffres sur une règle, puis
   chaque partie avec son grand titre, trois chiffres, son dessin, et un filet
   avant la suivante. Les panneaux blancs empilés sont partis ; seuls les
   tableaux et les cascades gardent un cadre, parce qu'on les consulte. */
.pitch.is-detail .sy.is-edito { gap: 0; grid-template-columns: minmax(0, 1fr); }
.pitch.is-detail .sy.is-edito > * { min-width: 0; }
.sy.is-edito .sy-intro { padding: 2px 0 var(--s-5); border-top: 0; }
.sy.is-edito .sy-intro .sy-act-no > span { font: 600 13px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-4); }
.sy.is-edito .sy-intro .sy-act-title { margin-top: 8px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.sy-intro-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-4); border-top: 1.5px solid var(--ink); }
.sy-intro-fig { display: grid; gap: 2px; align-content: start; padding: 10px 16px 2px 0; margin-right: 16px; border-right: 1px solid var(--rule); min-width: 0; }
.sy-intro-fig:last-child { border-right: 0; margin-right: 0; }
.sy-intro-fig b { font: 800 clamp(24px, 2.1vw, 30px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sy-intro-fig.is-bad b { color: var(--loss); }
.sy-intro-fig.is-good b { color: var(--gain); }
.sy-intro-fig span { font-size: 13px; color: var(--ink-3); }
.sy-intro-suite { margin: var(--s-3) 0 0; font: 600 15px/1.5 var(--display); color: var(--ink-2); }

.sy.is-edito .sy-figs.is-compact { padding: var(--s-5) 0 var(--s-5); border-top: 1px solid var(--rule); }
.sy.is-edito .sy-figs.is-compact .sy-act-title { font-size: clamp(20px, 1.8vw, 24px); }
.sy-figs-grid.is-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; align-items: start; margin-top: 16px; border-top: 1.5px solid var(--ink); }
.sy-figs-grid.is-six .sy-fig { border-bottom: 0; border-right: 1px solid var(--rule); padding-right: 14px; margin-right: 14px; min-width: 0; }
.sy-figs-grid.is-six .sy-fig:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.sy-figs-grid.is-six .sy-fig-head { padding: 10px 0 8px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'label' 'val' 'note' 'more'; gap: 4px; }
.sy-figs-grid.is-six .sy-fig-label { font-size: 12px; letter-spacing: 0; color: var(--ink-3); }
.sy-figs-grid.is-six .sy-fig-val { font-size: 20px; white-space: nowrap; }
.sy-figs-grid.is-six .sy-fig-head > .sy-vis, .sy-figs-grid.is-six .sy-fig-head > svg { display: none; }
.sy-figs-grid.is-six .sy-fig-more { grid-area: more; justify-self: start; margin-top: 4px; }

.pitch.is-detail .sy.is-edito .sy-chapitre { padding: var(--s-6) 0 var(--s-5); border-radius: 0; background: transparent; box-shadow: none; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 150px); }
.pitch.is-detail .sy.is-edito .sy-chapitre .sy-act-no { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.sy-ed .sy-act-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -.025em; }
.sy-clair.sy-ed-dit { margin: 8px 0 0; padding: 0; background: none; box-shadow: none; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sy-ed-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: var(--s-4); border-top: 1.5px solid var(--ink); }
.sy-ed-fig { display: grid; gap: 2px; align-content: start; padding: 10px 16px 2px 0; margin-right: 16px; border-right: 1px solid var(--rule); min-width: 0; }
.sy-ed-fig:last-child { border-right: 0; margin-right: 0; }
.sy-ed-fig-l { font: 600 12px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.sy-ed-fig-v { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sy-ed-fig.is-bad .sy-ed-fig-v { color: var(--loss); }
.sy-ed-fig.is-good .sy-ed-fig-v { color: var(--gain); }
.sy-ed-fig-n { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.sy-ed-dessin { margin-top: var(--s-4); max-width: 820px; }
.sy-ed .as-table-wrap { margin-top: var(--s-4); padding: 4px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sy-ed .as-cascade { padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sy-ed-sous { margin-top: var(--s-5); }
.sy-ed-sous h3 { margin: 0 0 8px; font: 700 var(--t-block)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.sy-ed-note { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.sy-ed-pieges { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sy-ed-pieges b { color: var(--ink); }
.sy-ed .sy-why { margin-top: var(--s-3); }
.sy-ed-lien { margin-top: 14px; }
@media (max-width: 1100px) { .sy-figs-grid.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sy-figs-grid.is-six .sy-fig:nth-child(3n) { border-right: 0; margin-right: 0; padding-right: 0; } }
@media (max-width: 640px) {
  .sy-intro-figs { grid-template-columns: minmax(0, 1fr); }
  .sy-intro-fig { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
  .sy-figs-grid.is-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-figs-grid.is-six .sy-fig { border-right: 0; margin-right: 0; padding-right: 10px; border-bottom: 1px solid var(--rule); }
  .pitch.is-detail .sy.is-edito .sy-chapitre { padding: var(--s-5) 0 var(--s-4); }
  .sy-ed-figs { grid-template-columns: minmax(0, 1fr); }
  .sy-ed-fig { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
  .sy-ed-fig-v { font-size: 20px; }
}

/* ═══════════ Un avertissement ouvert passe devant tout ═══════════
   La bulle « à vérifier » s'ouvrait sous le guide flottant (« Prochaine
   étape », en bas à droite) et sous la barre du haut : on lisait la moitié
   d'une phrase. Ouverte, elle et le bloc qui la porte passent au-dessus de
   tous les calques de la page — seules les fenêtres de dialogue restent
   devant. */
.sx:has(.garde[open]), .sy-act:has(.garde[open]), .sx-right-row:has(.garde[open]), .sx-ribbon:has(.garde[open]) { position: relative; z-index: 150; }
.module-nav:has(.garde[open]) { z-index: 150; }
.sx-right-row .garde-body, .sx-ribbon-ctrl .garde-body { z-index: 150; }

/* Charges par vente : deux choix, côte à côte. */
.cost-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); flex: none; }
.cost-seg-opt { border: 0; background: none; cursor: pointer; padding: 6px 11px; border-radius: 8px; font: 600 13px/1.2 var(--sans); color: var(--ink-3); white-space: nowrap; }
.cost-seg-opt:hover { color: var(--ink); }
.cost-seg-opt.is-on { background: var(--ink); color: var(--accent); }
.cost-forfait { border: 0; cursor: pointer; padding: 4px 9px; border-radius: 999px; background: var(--warn-wash); color: var(--warn); font: 600 12px/1.2 var(--sans); white-space: nowrap; }
.cost-forfait:hover { background: var(--warn); color: #fff; }
@media (max-width: 640px) { .cost-seg { width: 100%; } .cost-seg-opt { flex: 1; } }

/* Le « i » d'un champ : à côté du libellé, à sa taille, et sa bulle part vers
   la droite — centrée, elle sortait de la colonne de gauche. Elle passe
   devant la barre d'étape comme devant le reste. */
.switch-name-i { display: inline-flex; align-items: center; gap: 6px; }
.info-point.is-champ { width: 18px; height: 18px; font-size: 12px; z-index: 150; }
.info-point.is-champ::after { left: -8px; z-index: 150; transform: translate(0, -4px); }
.info-point.is-champ:hover::after, .info-point.is-champ:focus-visible::after, .info-point.is-champ.is-open::after { transform: translate(0, 0); }
@media (max-width: 720px) {
  .info-point.is-champ::after { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-width: none; transform: none !important; }
}

/* ═══════════ Le libellé dans le champ ═══════════
   Au-dessus du cadre, le libellé coûtait une ligne à chaque rangée de
   champs. Il se pose maintenant dans le cadre, en petit, au-dessus de la
   valeur : le champ dit toujours ce qu'il contient — même rempli — et la
   rangée gagne une ligne. Un cadre « nu » (un bouton rangé comme un champ)
   garde son libellé au-dessus. */
.field:has(> .control:not(.control-bare)) { position: relative; gap: 4px; }
.field:has(> .control:not(.control-bare)) > label {
  position: absolute; z-index: 1; top: 5px; left: 11px; right: 11px; margin: 0;
  display: block; font: 500 11px/1.25 var(--sans); color: var(--ink-4); letter-spacing: .005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.field:has(> .control:not(.control-bare)) > label :is(button, a) { pointer-events: auto; vertical-align: -2px; margin-left: 4px; }
.field:has(> .control:not(.control-bare)) > .control :is(input, select) { padding-top: 19px; padding-bottom: 5px; line-height: 18px; }
.field:has(> .control:not(.control-bare)) > .control textarea { padding-top: 21px; }
/* Un montant à unités (€ / mois, € / an) : le libellé s'arrête avant les boutons d'unité. */
.field:has(> .unit-control) > label { right: auto; max-width: calc(100% - 175px); }
.field:has(> .control:not(.control-bare)) > .control .affix { align-items: flex-end; padding-bottom: 8px; }
.field:has(> .control:not(.control-bare)) > .control:focus-within ~ label,
.field:has(> .control:not(.control-bare)):focus-within > label { color: var(--ink-2); }
.grid-fields > .field:has(> .control:not(.control-bare)) { grid-template-rows: auto 1fr; }

/* L'en-tête d'une offre : les chiffres de l'année lue, sur la même ligne. */
.item-figs { display: flex; align-items: baseline; gap: 12px; flex: none; white-space: nowrap; font-size: 13px; color: var(--ink-4); }
.item-figs b { font: 600 14px/1.2 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.item-figs .is-marge b { color: var(--gain); }
.item-figs .is-marge.is-neg b { color: var(--loss); }
.item-garde {
  flex: none; border: 0; cursor: pointer; white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  background: var(--warn-wash); color: var(--warn); font: 600 12px/1.2 var(--sans);
}
.item-garde:hover { background: var(--warn); color: #fff; }
.item-annees { display: inline-flex; gap: 2px; flex: none; }
.item-an { border: 0; background: none; cursor: pointer; padding: 3px 6px; border-radius: 6px; font: 600 11px/1.2 var(--mono); color: var(--ink-4); }
.item-an:hover { color: var(--ink); background: var(--surface-2); }
.item-an.is-on { background: var(--ink); color: var(--accent); }
@media (max-width: 760px) {
  .item-figs .is-marge, .item-annees { display: none; }
}

/* ─── Mes scénarios : une grille, sans défilement ─── */
.scen-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
.scen-case {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
}
.scen-case.is-actuel { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.scen-tete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.scen-nom { flex: 1 1 auto; min-width: 0; font: 700 14px/1.3 var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scen-actuel { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--accent); font: 600 12px/1.4 var(--sans); letter-spacing: 0; }
.scen-date { font-size: 12px; color: var(--ink-4); }
.scen-gestes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.scen-geste { border: 0; background: none; padding: 2px 0; cursor: pointer; font: 600 12px/1.3 var(--sans); color: var(--ink-2); }
.scen-geste:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.scen-geste.is-ouvrir { color: var(--signal-ink); }
.scen-geste.is-supprimer { color: var(--loss); }

/* ─────────────── Fynomia en ligne : compte, connexion, calcul ───────────────
   Hors de la charpente, comme le parcours guidé : une carte au centre, le
   papier autour. La marque reprend l'encre et le vert de la maison. */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: var(--paper); }
.auth-carte { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 28px 28px 22px; }
.auth-marque { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font: 800 17px/1 var(--display); }
.auth-nom { font: 700 17px/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.auth-titre { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 6px; color: var(--ink); }
.auth-sous { margin: 0 0 20px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.auth-field .control input { width: 100%; }
.auth-bouton { width: 100%; justify-content: center; margin-top: 4px; }
/* Continuer avec Google : blanc, logo en couleurs, comme Google le demande. */
.auth-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; text-decoration: none; font-weight: 500; }
.auth .auth-google { width: 100%; }
.auth-google:hover { background: #f8f9fa; border-color: #c6c9cc; color: #1f1f1f; }
.auth-google-logo { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; }
.auth-google-logo svg { width: 18px; height: 18px; }
.auth-ou { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--ink-3); font-size: 13px; }
.auth-ou::before, .auth-ou::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.auth-message { margin: 0; min-height: 1.4em; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.auth-message.is-erreur { color: var(--loss); }
.auth-message.is-ok { color: var(--gain); }
.auth-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; }
.auth-pied a { color: var(--signal-ink); text-decoration: none; }
.auth-pied a:hover { text-decoration: underline; }
.auth-attente { text-align: center; color: var(--ink-3); font-size: 14px; }
.auth-attente .auth-marque { justify-content: center; }

/* Le calcul part au serveur : un fil fin en haut de page, le temps de
   l'aller-retour. Rien ne bouge d'autre ; les chiffres suivent à l'arrivée. */
.calcul-fil { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .2s; background: linear-gradient(90deg, transparent, var(--accent-dim), transparent); background-size: 40% 100%; background-repeat: no-repeat; }
html.is-calcul .calcul-fil { opacity: 1; animation: calcul-fil 1.1s linear infinite; }
@keyframes calcul-fil { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { html.is-calcul .calcul-fil { animation: none; background: var(--accent-dim); opacity: .6; } }

/* L'administration : la bande dit dans quel mode on est, en permanence. */
.admin-bande { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 9px 14px; margin: 0 0 16px; background: var(--ink); color: var(--paper); border-radius: 10px; font-size: 13px; }
.admin-bande b { color: var(--accent); letter-spacing: 0; font-size: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 16px; }
.admin-stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.admin-stat-v { font: 700 22px/1.1 var(--display); color: var(--ink); }
.admin-stat-l { font-size: 13px; color: var(--ink-3); }
.admin-onglets { display: flex; gap: 6px; margin: 0 0 12px; }
.admin-onglet { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.admin-onglet.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-recherche { min-width: 260px; }
.admin-testeur-corps { display: grid; gap: 14px; padding: 0 16px 16px; }
.admin-testeur-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 10px; align-items: end; }
.admin-testeur-form .auth-message { grid-column: 1 / -1; margin: 0; }
.admin-testeur-form .control input { width: 100%; }
.admin-lien-neuf { padding: 12px 14px; border-radius: 10px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.admin-lien-neuf p { margin: 4px 0 10px; font-size: 13px; color: var(--ink-3); }
.admin-lien-ligne { display: flex; gap: 8px; align-items: center; }
.admin-lien-ligne input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); font: 12px/1.3 var(--mono); }
@media (max-width: 720px) { .admin-testeur-form { grid-template-columns: minmax(0, 1fr); } .admin-lien-ligne { flex-wrap: wrap; } }
.admin-recherche input { width: 100%; }
.admin-ligne { cursor: pointer; }
.admin-ligne:hover td { background: var(--surface-2); }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.admin-plan { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.admin-plan h3 { margin: 0 0 4px; font-size: var(--t-row); }

/* ── Double authentification ── */
.mfa-etapes { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.mfa-qr { width: 200px; max-width: 100%; margin: 8px auto 12px; padding: 8px; background: #fff; border-radius: 10px; border: 1px solid var(--rule); }
.mfa-qr svg { display: block; width: 100%; height: auto; }
.mfa-cle { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; word-break: break-all; }
.mfa-code { font-family: var(--mono); font-size: 20px; letter-spacing: .2em; text-align: center; }
.mfa-codes { list-style: none; margin: 12px 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; font-family: var(--mono); font-size: 14px; }
.mfa-confirme { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }
.mfa-alerte { color: var(--loss); }
.admin-verrou .panel-head h1 { font-size: 26px; margin: 0 0 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Finition 2026 — la même maison, en plus léger

   Le plan ne change pas : fond crème, rail noir, cartes blanches, touches
   néon. Ce qui change, c'est le traitement. Des blocs d'un blanc opaque
   partout, des filets gris durs et des ombres courtes donnaient à l'écran le
   poids d'un formulaire. Ici :
   - ce qui attend (une ligne repliée, une réponse posée) est translucide et
     se fond dans le crème ; survolé, il passe au blanc et se soulève d'un
     pixel sur une ombre large et douce ;
   - l'ombre profonde est réservée à ce qu'on travaille — la carte ouverte,
     le champ où l'on écrit ;
   - un champ repose sur un fond crème, sans cadre dur, et ne s'éclaire en
     blanc, bordure nette, qu'au clic ;
   - tout ce qui réagit le fait en 180 ms, par la même courbe.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-rule: rgba(14, 15, 12, .075);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .75);
  --glass-blur: saturate(1.5) blur(14px);
  --shadow-rest: 0 1px 2px rgba(14, 15, 12, .03);
  --shadow-float: 0 12px 40px -12px rgba(14, 15, 12, .10), 0 2px 6px -2px rgba(14, 15, 12, .04);
  --shadow-active: 0 1px 2px rgba(14, 15, 12, .06), 0 22px 56px -18px rgba(14, 15, 12, .22);
  --field-bg: #F5F3EC;
  --field-bg-hover: #EFEDE5;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 42%, transparent);
  --t-react: .18s;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* Un fond qui a de la lumière : sans lui, le verre n'a rien à laisser passer.
   Deux halos à peine perceptibles, fixes pendant le défilement. */
body {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(185, 245, 16, .10), transparent 62%),
    radial-gradient(900px 560px at 8% 108%, rgba(185, 245, 16, .05), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}

/* ── Les grands blocs : du verre, pas du papier ── */
.slab, .card, .panel, .sy-dossier, .sx-ribbon, .board-analyse > :not(.board-analyse-titre) {
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-color: var(--glass-rule);
  box-shadow: var(--glass-edge), var(--shadow-rest);
  transition: background-color var(--t-react) var(--ease-out), box-shadow var(--t-react) var(--ease-out), border-color var(--t-react) var(--ease-out);
}
/* Le bloc où l'on écrit redevient blanc : c'est là qu'on travaille. */
.slab:focus-within, .card:focus-within, .panel:focus-within {
  background: var(--surface); border-color: rgba(14, 15, 12, .10); box-shadow: var(--shadow-float);
}

/* ── Les lignes repliées et les réponses posées : translucides, elles se lèvent au survol ── */
.item:not(.open), .legalline, .source:not(.is-open), .tradetip-item, .pick, .scen-case,
.sy-dossier-toggle, .famcard, .setup-choice, .setup-sector {
  background: var(--glass);
  border-color: var(--glass-rule);
  box-shadow: var(--glass-edge);
  transition:
    background-color var(--t-react) var(--ease-out), border-color var(--t-react) var(--ease-out),
    box-shadow var(--t-react) var(--ease-out), transform var(--t-react) var(--ease-out);
}
.item:not(.open):hover, .legalline:hover, .source:not(.is-open):hover, .tradetip-item:hover, .pick:hover,
.scen-case:hover, .sy-dossier-toggle:hover, .famcard:hover, .setup-choice:hover, .setup-sector:hover {
  background: var(--surface); border-color: rgba(14, 15, 12, .12);
  box-shadow: var(--shadow-float); transform: translateY(-1px);
}
.famcard.is-here { background: var(--surface); border-color: var(--ink); box-shadow: var(--shadow-float); }
/* Le choix retenu se voit d'un coup d'oeil : fond d'encre, titre blanc, une
   coche vert acide, survolé ou non. Un fond blanc laissait un pavé vide. */
.pick.active, .pick.active:hover { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-float); }
.pick.active .pick-name { color: #fff; }
.pick.active .pick-name::before { content: '\2713'; color: var(--accent); font-weight: 700; margin-right: 7px; }
/* Une réponse choisie garde son fond d'encre, survolée ou non : sinon son
   titre blanc disparaît sur le blanc du survol. */
.setup-choice.active, .setup-choice.active:hover, .setup-sector.active, .setup-sector.active:hover { background: var(--ink); border-color: var(--ink); }

/* ── Ce qu'on travaille : blanc, trait net, ombre large et douce ── */
.item.open, .source.is-open {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-active);
}

/* ── Les champs : doux au repos, nets au clic ── */
.control:not(.control-bare) {
  background: var(--field-bg);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .04);
  transition: background-color var(--t-react) var(--ease-out), border-color var(--t-react) var(--ease-out), box-shadow var(--t-react) var(--ease-out);
}
.control:not(.control-bare):hover { background: var(--field-bg-hover); }
.control:not(.control-bare):focus-within {
  background: var(--surface); border-color: var(--ink);
  box-shadow: var(--ring), 0 6px 18px -10px rgba(14, 15, 12, .25);
}
.control input, .control select, .control textarea { background: transparent; }

/* ── Les boutons répondent au doigt ── */
.btn, .sy-btn, .pitch-pptx, .etape-go, .as-geste, .hnav-tab, .rail-link {
  transition: background-color var(--t-react) var(--ease-out), color var(--t-react) var(--ease-out),
    border-color var(--t-react) var(--ease-out), box-shadow var(--t-react) var(--ease-out), transform var(--t-react) var(--ease-out);
}
.btn:hover:not(:disabled), .sy-btn:hover:not(:disabled), .pitch-pptx:hover:not(:disabled), .etape-go:hover { transform: translateY(-1px); }
.btn:active:not(:disabled), .sy-btn:active:not(:disabled), .pitch-pptx:active, .etape-go:active { transform: translateY(0); transition-duration: .06s; }
.btn-go:hover:not(:disabled), .sy-btn.is-accent:hover:not(:disabled) {
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent-dim) 90%, transparent);
}
.hnav-tab.active { box-shadow: var(--shadow-float); }

@media (prefers-reduced-motion: reduce) {
  .item:not(.open):hover, .legalline:hover, .source:not(.is-open):hover, .tradetip-item:hover, .pick:hover,
  .scen-case:hover, .sy-dossier-toggle:hover, .famcard:hover, .btn:hover, .sy-btn:hover, .etape-go:hover { transform: none; }
}
/* Sans verre dépoli (vieux navigateurs), les blocs restent blancs : rien ne devient illisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .slab, .card, .panel, .sy-dossier, .sx-ribbon { background: var(--surface); }
}

/* ═══════════ Mon projet : le cadre en lignes, le dossier piloté d'ici ═══════════ */
/* Le titre et sa phrase sur une ligne : la phrase se cale à droite. */
.module-top { align-items: baseline; }
.module-sub {
  margin: 0 0 0 auto; padding-left: 24px; font-size: 14px; line-height: 1.4; color: var(--ink-4);
  text-align: right;
}
@media (max-width: 720px) { .module-sub { display: none; } }

/* La prochaine étape : une barre noire, une ligne. */
.etape {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 0 var(--s-4); padding: 12px 12px 12px 22px; border-radius: 16px;
  background: #0E0F0C; color: #F2F0E8;
  box-shadow: 0 18px 44px -22px rgba(14, 15, 12, .55);
  background-image: radial-gradient(420px 120px at 12% 0%, rgba(185, 245, 16, .10), transparent 70%);
}
.etape-kicker { font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--accent); white-space: nowrap; }
.etape-titre { font: 700 17px/1.25 var(--display); letter-spacing: -.01em; color: #fff; }
.etape-pourquoi { font-size: 14px; line-height: 1.4; color: rgba(242, 240, 232, .62); min-width: 0; }
.etape .spacer { flex: 1 1 0; min-width: 0; }
.etape-jauge { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.etape-jauge-num { font: 500 13px/1 var(--mono); color: rgba(242, 240, 232, .55); }
.etape-jauge-num b { color: #fff; font-weight: 600; }
.etape-jauge-bar { position: relative; width: 96px; height: 4px; border-radius: 99px; background: rgba(242, 240, 232, .16); overflow: hidden; }
.etape-jauge-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }
.etape-go {
  flex: none; cursor: pointer; padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(242, 240, 232, .18); background: rgba(242, 240, 232, .06);
  font: 700 15px/1.2 var(--display); color: #fff; white-space: nowrap;
}
.etape-go:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.etape.is-complet .etape-kicker { color: var(--accent); }
/* Sur un écran d'ordinateur, tout tient sur une ligne : le titre prend la
   place qui reste (et passe sur deux lignes s'il est long, sans pousser le
   bouton dessous), la jauge et le bouton se resserrent. */
@media (min-width: 901px) {
  .etape { flex-wrap: nowrap; gap: 14px; padding: 10px 10px 10px 20px; }
  .etape .spacer { display: none; }
  .etape-titre { flex: 1 1 auto; min-width: 0; }
  .etape-pourquoi { flex: 0 1 auto; }
  .etape-jauge { gap: 8px; }
  .etape-jauge-bar { width: 64px; }
  .etape-go { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 900px) {
  .etape { padding: 14px 16px; }
  .etape .spacer { display: none; }
  .etape-pourquoi { flex: 1 1 100%; }
}

/* Les deux colonnes : le projet, le client. Les numéros de bloc s'effacent. */
.projet .projet-pair { margin-bottom: var(--s-4); align-items: stretch; }
/* Les deux cartes partent et finissent au même trait. Au repos, la phrase
   du client prend la hauteur qui reste, pour ne pas laisser de vide. */
.projet .projet-pair > .slab { display: flex; flex-direction: column; }
.projet .projet-pair > .slab > .projet-lignes { flex: 1 1 auto; align-content: start; }
.projet .projet-pair:not(:has(.legalopen)) [data-gap="client"] .projet-lignes { grid-template-rows: auto 1fr; }
.projet .projet-pair:not(:has(.legalopen)) [data-gap="pitch"] { display: flex; }
.projet .projet-pair:not(:has(.legalopen)) [data-gap="pitch"] .field.is-texte { flex: 1; display: flex; flex-direction: column; }
.projet .projet-pair:not(:has(.legalopen)) [data-gap="pitch"] .field.is-texte > .control { flex: 1; display: flex; align-items: stretch; }
.projet .projet-pair:not(:has(.legalopen)) [data-gap="pitch"] .field.is-texte textarea { flex: 1; }
.projet .slab-title::before { content: none; display: none; }
.projet .slab { padding: 18px 20px; }
.projet .slab-head { margin-bottom: 14px; }
.projet .slab-title { font-size: 20px; }
.projet .slab-sub { font-size: 14px; color: var(--ink-4); }
.projet-lignes { display: grid; gap: 10px; }
.projet-lignes .grid-2 { gap: 10px; }
.projet-lignes > .field, .projet-lignes .grid-2 > .field { margin: 0; }
/* Une réponse posée tient sur une ligne : ce qu'on a choisi, ce que ça
   implique, « Modifier » en lien. Le libellé ne s'affiche que tant qu'il
   n'y a pas de réponse. */
.projet .legalline { min-height: 50px; padding: 8px 16px; border-radius: 14px; }
.projet .legalline:not(.is-empty) .legalline-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.projet .legalline-name { font-size: 15px; }
.projet .legalline-note { font-size: 13px; color: var(--ink-4); }
.projet .legalline-edit {
  font: 500 14px/1.2 var(--sans); letter-spacing: 0; text-transform: none;
  color: var(--signal); border: 0; padding: 0;
}
.projet .legalline:hover .legalline-edit { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.projet .legalline.is-open { background: var(--surface); border-color: var(--ink); box-shadow: var(--shadow-float); }
.projet .legalopen { margin-top: 2px; padding-top: 12px; }
/* Les deux champs du haut : la même hauteur que les lignes. */
.projet .field.is-boxed > .control :is(input, select) { min-height: 48px; }
.projet .field.is-texte textarea { min-height: 62px; resize: vertical; line-height: 1.5; }
.projet .picks { gap: 8px; }

/* Le pilotage, sous le cadre. */
.projet-pilotage { display: grid; gap: var(--s-3); }
.projet-pilotage .projet-dossier { margin: 0; }

/* ═══════════ Tableau de bord : où agir, sous la simulation ═══════════ */
.board-analyse { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.board-analyse-titre {
  margin: 0; font: 700 var(--t-section)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink);
}
.pitch-mises.is-garde { justify-content: flex-end; margin-bottom: var(--s-2); }
.pitch-mises.is-garde:empty { display: none; }

/* Les diapositives, dernière scène du récit : toute la largeur. */
.as-scene.as-cloture { grid-template-columns: minmax(0, 1fr); }
.pitch-diapos-scene { display: grid; gap: 14px; }
.pitch-diapos-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.pitch-diapos-titre { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.pitch-diapos-sous { margin: 2px 0 0; font-size: 14px; color: var(--ink-4); }
.pitch-diapos-gestes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Les chevrons du récit : de part et d'autre de la scène, centrés sur elle. */
.as-chevron {
  position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; margin-top: -20px;
  display: grid; place-items: center; cursor: pointer; border-radius: 999px;
  border: 1px solid var(--glass-rule); background: var(--glass-strong); color: var(--ink);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--shadow-float);
  transition: background-color var(--t-react) var(--ease-out), transform var(--t-react) var(--ease-out), opacity var(--t-react) var(--ease-out);
}
.as-chevron.is-g { left: -20px; }
.as-chevron.is-d { right: -20px; }
.as-chevron:hover:not(:disabled) { background: var(--ink); color: var(--accent); transform: scale(1.06); }
.as-chevron:disabled { opacity: 0; pointer-events: none; }
.as-chevron span { line-height: 0; }
@media (max-width: 900px) { .as-chevron { display: none; } }

/* La suite d'une scène se déplie dans la carte. */
.as-suite.is-ouverte { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; color: var(--ink-2); cursor: pointer; }
.as-suite.is-ouverte::after { content: none; }
.as-geste.is-discret { background: none; border-color: transparent; color: var(--ink-3); }
.as-geste.is-discret:hover { color: var(--ink); border-color: var(--rule); }
.as-couche-accroche { margin: 0 0 12px; font: 700 20px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.as-couche-accroche b { font-weight: 800; }
/* Les deux champs du haut parlent comme les lignes voisines. */
.projet .field.is-boxed > .control :is(input, select), .projet .projet-lignes .grid-2 .field > .control input {
  font: 600 15px/1.3 var(--sans); color: var(--ink); min-height: 50px;
}
.projet .field.is-texte textarea { font: 400 14px/1.5 var(--sans); color: var(--ink); }
.projet .field.is-texte textarea::placeholder { color: var(--ink-5); font-family: var(--sans); }

/* Le projet et le client parlent d'une seule voix : titres, réponses et choix
   à la taille d'un choix de clientèle (« Entreprises », « B2B2C »), sans gras.
   Les commandes suivent la direction artistique : l'encre, et le vert acide
   pour ce qu'on confirme ; plus de bleu. */
/* Les deux titres, eux, se détachent : grands et en gras. */
.projet .projet-pair .slab-title { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.projet .projet-pair .slab-head { margin-bottom: 14px; }
.projet .projet-pair .legalline-name { font: 400 13px/1.3 var(--sans); letter-spacing: 0; }
.projet .projet-pair .legalline-note { font-size: 13px; }
.projet .projet-pair .pick-name { font-weight: 400; }
.projet .projet-pair .field.is-boxed > .control :is(input, select),
.projet .projet-pair .projet-lignes .grid-2 .field > .control input { font: 400 13px/1.3 var(--sans); }
.projet .projet-pair .field.is-texte textarea { font-size: 13px; }
.projet .legalline-edit {
  font: 500 13px/1.2 var(--sans); color: var(--ink-3);
  text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.projet .legalline:hover .legalline-edit { color: var(--ink); text-decoration-color: var(--ink); }
.projet .valider-chip { background: var(--accent-wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-dim); font-weight: 500; }
.projet .valider-chip:hover { background: var(--accent); color: var(--ink); }

/* ── Les icônes en relief : de petites touches, là où elles aident ── */
.ico3d { display: block; width: 100%; height: 100%; object-fit: contain; }
/* L'offre : le paquet, sa couleur de série en pastille. */
/* L'équipe : une personne, la pastille dit le contrat. */
.who.is-3d { position: relative; width: 34px; height: 34px; padding: 0; background: none; border: 0; box-shadow: none; filter: drop-shadow(0 4px 6px rgba(14, 15, 12, .12)); }
.who.is-3d .who-img { display: block; width: 100%; height: 100%; }
.who.is-3d .who-dot { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 99px; background: var(--signal); box-shadow: 0 0 0 2px var(--surface); }
.who.is-3d.who-dirigeant .who-dot { background: var(--ink); }
.who.is-3d.who-tns .who-dot { background: var(--gain); }
.who.is-3d:is(.who-alternance, .who-stage) .who-dot { background: var(--warn); }
.who.is-3d.who-freelance .who-dot { background: var(--ink-5); }
.who.is-3d .who-count { position: absolute; top: -4px; right: -8px; }
/* L'économie d'une vente : la pièce, le cube, la part. */
.as-eq-ico { display: block; width: 38px; height: 38px; margin: -2px 0 6px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
/* Mon projet : l'icône d'une réponse à la taille de la ligne. */
.projet .legalline-icon { width: 28px; height: 28px; filter: drop-shadow(0 3px 5px rgba(14, 15, 12, .12)); }
/* Financement : un nom de source ne sort jamais de sa carte (« Avance
   remboursable » sur la dernière colonne). Le mot se coupe proprement. */
.source { min-width: 0; }
.source-tete { align-items: flex-start; }
.source-name { min-width: 0; hyphens: manual; -webkit-hyphens: manual; }
/* Équipe › Avantages : l'explication court jusqu'au bout du bloc, sur une ou
   deux lignes — plus de colonne étroite de quatre lignes. */
.perk-help { max-width: none; font-size: 13px; line-height: 1.45; }
.perk .spacer { min-width: 0; }
/* L'icône d'un poste à la taille de la ligne. */
.who.is-3d { width: 38px; height: 38px; margin: -4px 0; }
/* L'alerte sous un champ se lit en entier : plus petite, sur deux lignes au
   besoin, jamais coupée par des points de suspension. */
.field-garde { font-size: 11px; line-height: 1.4; }
.field-garde > span { white-space: normal; overflow: visible; text-overflow: clip; }
.field-garde > i { width: 13px; height: 13px; }
.field-garde > i::before { top: 3px; height: 4px; }
.field-garde > i::after { top: 8px; }
/* Offre : le lien vers les charges par vente, léger, à côté de la suppression. */
.view-foot:has(.offre-charges-lien) { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offre-charges-lien {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: 500 13px/1.3 var(--sans); color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--accent-dim); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.offre-charges-lien b { font: 700 14px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.offre-charges-part { font-size: 12px; color: var(--ink-4); }
.offre-charges-fleche { color: var(--ink-3); transition: transform .15s var(--ease); }
.offre-charges-lien.is-chiffre { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.offre-charges-lien:hover { color: var(--ink); text-decoration-color: var(--ink); }
.offre-charges-lien.is-chiffre:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.offre-charges-lien:hover .offre-charges-fleche { transform: translateX(3px); }
/* Achats : les charges propres à chaque offre, sous l'état vide. */
.cost-propres { display: grid; gap: 8px; margin: 0 18px 18px; padding: 14px 16px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-rule); text-align: left; }
.cost-propres-titre { margin: 0 0 2px; font: 600 13px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.cost-propres-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cost-propres-offre { font: 700 15px/1.3 var(--display); color: var(--ink); margin-right: 6px; }
.cost-propres-ajout {
  cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-rule);
  background: var(--surface); font: 600 13px/1.2 var(--sans); color: var(--ink-2);
  transition: transform var(--t-react) var(--ease-out), box-shadow var(--t-react) var(--ease-out), border-color var(--t-react) var(--ease-out);
}
.cost-propres-ajout:hover { border-color: var(--ink); box-shadow: var(--shadow-float); transform: translateY(-1px); }
.cost-courantes { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-3); padding: 12px 16px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-rule); font-size: 14px; color: var(--ink-3); }
/* Une exception à l'échelle, fonctionnelle : sous 16 px, iOS zoome sur le
   champ de discussion dès qu'on y tape. */
.chat-input { font-size: 16px; }
/* Un montant à unités : les boutons d'unité descendent sur la ligne de la
   valeur, le libellé reprend toute la largeur au-dessus — « Abonnement
   mensuel HT » ne se coupe plus en « Abonnement… ». */
.field:has(> .unit-control) > label { right: 11px; max-width: none; }
.unit-control .unit-switch { align-self: flex-end; padding-bottom: 5px; }
.unit-control .unit-btn { padding-top: 3px; padding-bottom: 3px; }

/* Mon projet : « Valider » se pose à droite de la valeur, jamais dans le
   libellé où il se coupait ; la note d'une réponse passe à la ligne plutôt
   que de finir en points de suspension. */
.projet .field.is-boxed { position: relative; }
.projet .field.is-boxed > .valider-chip { position: absolute; right: 40px; bottom: 10px; z-index: 2; }
.projet .legalline-valeur { flex-wrap: wrap; row-gap: 0; }
.projet .legalline-note { white-space: normal; overflow: visible; }
/* L'avancement dans la barre noire : les cases du dossier, en petit, rangées
   par page, avec un peu d'air entre les pages. */

/* ═══════════ Un texte rempli se suffit ═══════════
   Le libellé dans le champ dit quoi écrire. Une fois le texte écrit — un nom,
   une description — il se lit seul : le libellé s'efface et le texte reprend
   le milieu du cadre. Les montants gardent le leur : « 17 » sans « Prix de
   vente » ne dirait rien. */
.field:has(> .control:not(.control-bare) > :is(input[type=text]:not([inputmode]), textarea)) > label {
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.field:has(> .control:not(.control-bare) > :is(input[type=text]:not([inputmode]), textarea):not(:placeholder-shown)) > label {
  opacity: 0; transform: translateY(-3px); pointer-events: none;
}
.field:has(> .control:not(.control-bare) > input[type=text]:not([inputmode]):not(:placeholder-shown)) > .control > input[type=text]:not([inputmode]) {
  padding-top: 12px; padding-bottom: 12px;
}
.field:has(> .control:not(.control-bare) > textarea:not(:placeholder-shown)) > .control > textarea { padding-top: 10px; }

/* ═══════════ Affiner mon dossier : une hiérarchie qui se lit ═══════════
   Un titre de section, puis trois paliers qui sont des cartes : on voit
   qu'ils s'ouvrent et se ferment, et qu'il y en a trois. Un palier ouvert
   montre quatre lignes ; le reste se déplie sur place. */

/* La pastille d'une offre : une bulle aux couleurs de la charte. */
.item-bulle {
  flex: none; width: 14px; height: 14px; border-radius: 50%; margin: 0 4px 0 2px;
  box-shadow: inset 0 0 0 1.5px rgba(14, 15, 12, .16), 0 0 0 3px var(--surface);
}

/* ═══════════ Du parcours à « Mon projet » ═══════════
   La page de révélation se replie vers le haut, là où l'attend le bandeau
   « Ton business en un coup d'œil ». Le bandeau s'éclaire à l'arrivée, et
   rejoue l'animation au survol, sur un grand flou. */
.rvl.is-partant {
  transform-origin: 50% 0; animation: rvl-partir .62s cubic-bezier(.6, 0, .3, 1) both;
}
@keyframes rvl-partir {
  to { transform: translateY(-6vh) scale(.42); opacity: 0; filter: blur(8px); border-radius: 36px; }
}

/* L'en-tête de « Mon projet » : la prochaine étape, et à côté le business
   que ces lignes dessinent. Les deux blocs ont la même hauteur. */
.projet-tete {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 372px); gap: 12px; align-items: stretch;
  margin: 0 0 var(--s-4);
}
.projet-tete > .etape { margin: 0; }
.projet-tete > .etape:only-child { grid-column: 1 / -1; }

/* Ton business en un coup d'œil : le vert de la maison, trois chiffres. Tout
   le bloc est un bouton ; l'animation ne s'ouvre qu'au clic. */
.vitrine-mini {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0;
  padding: 14px 16px 14px; border: 0; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit;
  background-image: radial-gradient(260px 120px at 100% 0%, rgba(255, 255, 255, .45), transparent 70%);
  box-shadow: 0 18px 44px -24px rgba(120, 140, 10, .75), inset 0 0 0 1px rgba(14, 15, 12, .06);
  transition: transform var(--t-react) var(--ease-out), box-shadow var(--t-react) var(--ease-out);
}
.vitrine-mini:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -22px rgba(120, 140, 10, .9), inset 0 0 0 1px rgba(14, 15, 12, .1); }
.vitrine-mini:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vitrine-mini-tete { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vitrine-mini-titre { flex: 1; min-width: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vitrine-mini-spark {
  flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); position: relative; overflow: hidden;
}
.vitrine-mini-spark::before {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 14px;
  background: linear-gradient(90deg, var(--accent) 0 18%, transparent 18% 27%, var(--accent) 27% 45%, transparent 45% 55%, var(--accent) 55% 73%, transparent 73% 82%, var(--accent) 82%);
  clip-path: polygon(0 75%, 18% 75%, 18% 55%, 27% 55%, 27% 40%, 45% 40%, 45% 25%, 55% 25%, 55% 12%, 73% 12%, 73% 0, 100% 0, 100% 100%, 0 100%);
}
/* Le geste : un rond noir avec le triangle de lecture. */
.vitrine-mini-play {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); position: relative;
  transition: transform var(--t-react) var(--ease-out);
}
.vitrine-mini-play::before {
  content: ''; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--accent);
}
.vitrine-mini:hover .vitrine-mini-play { transform: scale(1.08); }
.vitrine-mini-figs { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; gap: 12px; }
.vitrine-mini-fig { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; min-width: 0; }
.vitrine-mini-fig b { font: 600 18px/1.1 var(--mono); letter-spacing: -.03em; color: var(--ink); }
.vitrine-mini-fig small { font-size: 12px; color: rgba(14, 15, 12, .66); }
/* À l'arrivée depuis le parcours : le bloc s'éclaire, là où la page s'est posée. */
.vitrine-mini.is-arrivee { animation: vitrine-arrivee 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vitrine-arrivee {
  0% { opacity: 0; transform: translateY(-10px) scale(.96); box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); }
  35% { opacity: 1; transform: none; box-shadow: 0 0 0 8px rgba(185, 245, 16, .5), 0 18px 48px -16px rgba(14, 15, 12, .3); }
  100% { box-shadow: 0 0 0 0 rgba(185, 245, 16, 0), 0 18px 44px -24px rgba(120, 140, 10, .75); }
}
@media (max-width: 900px) {
  .projet-tete { grid-template-columns: minmax(0, 1fr); }
}

.vitrine-voile {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: clamp(12px, 4vh, 40px) 16px;
  background: rgba(14, 15, 12, .35); backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1);
  animation: rvl-fade .22s ease both;
}
.vitrine-voile.is-sortant { animation: vitrine-sortie .22s ease both; }
@keyframes vitrine-sortie { to { opacity: 0; } }
/* L'aperçu tient sur une page : large, sans barre de défilement. S'il ne
   tient pas en hauteur, il se met à l'échelle de l'écran (voir ouvrirVitrine). */
.vitrine-voile { overflow: hidden; }
.rvl.is-apercu {
  min-height: 0; width: min(1440px, calc(100vw - 48px)); overflow: hidden;
  border-radius: 28px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6);
  animation: vitrine-carte .42s cubic-bezier(.2, .9, .25, 1.05) both;
}
@keyframes vitrine-carte { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.rvl.is-apercu .rvl-glow { inset: -40% -10% auto auto; width: 60%; height: auto; aspect-ratio: 1; }
.rvl.is-apercu .rvl-top { padding: 18px 40px 6px; }
.rvl.is-apercu .rvl-main { max-width: none; padding: 0 40px 30px; }
.rvl.is-apercu .rvl-name { margin-top: 10px; font-size: clamp(36px, 4.4vw, 64px); }
.rvl.is-apercu .rvl-charts { margin-top: 22px; }
.rvl.is-apercu .rvl-svg { max-height: 34vh; }
.rvl.is-apercu .rvl-figs { margin-top: 12px; }
.rvl.is-apercu .rvl-dossier { margin-top: 20px; }
.rvl.is-apercu .rvl-go { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) {
  .rvl.is-partant, .vitrine-mini.is-arrivee, .vitrine-voile, .rvl.is-apercu { animation: none; }
}

/* ═══════════ Retours v87 ═══════════ */

/* « Affiner mon dossier » : le titre de chaque palier se détache des lignes
   qu'il porte. Un lavis du vert de la maison, plus soutenu pour le palier
   qui compte le plus. */

/* « Sous quelle forme ? » : huit formes sur deux rangées de quatre ; « Je ne
   sais pas encore » en une ligne dessous. */
.setup-choices.is-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.setup-choices-bloc { margin-bottom: 18px; }
.setup-choices-bloc > .setup-choice.is-unsure {
  flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; width: 100%;
  padding: 10px 14px; border-style: dashed; background: transparent;
}
.setup-choices-bloc > .setup-choice.is-unsure .setup-choice-label { font-size: 14px; }
@media (max-width: 720px) { .setup-choices.is-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* La forme du métier, en tête et sur toute la rangée, avec son étiquette et
   sa raison en une ligne (décision 3, 10 octobre 2026) ; dans Projet aussi. */
.setup-choices .setup-choice.is-recommandee, .picks .pick.is-recommandee { grid-column: 1 / -1; }
.setup-choice-etiquette, .pick-etiquette {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font: 600 11px/1.45 var(--sans); letter-spacing: 0;
}
.pick-etiquette { margin-bottom: 5px; }
.setup-choice.is-recommandee .setup-choice-note { color: var(--ink-3); }
.setup-choice.is-recommandee.active .setup-choice-note { color: #A8B1B8; }

/* Les premières ventes : trois ordres d'idée, d'un clic, au-dessus du champ
   (décision 1, 10 octobre 2026) ; dans le parcours et dans Offre et revenus. */
.ventes-paliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ventes-paliers.is-parcours { margin-bottom: 10px; }
.ventes-palier {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 10px 13px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s;
}
.ventes-palier:hover { border-color: var(--ink-4); }
.ventes-palier-nom { font: 600 12px/1.3 var(--sans); color: var(--ink-4); }
.ventes-palier-n { font: 700 16px/1.25 var(--display); color: var(--ink); max-width: 100%; }
.ventes-palier-n b { font-weight: 700; }
.ventes-palier-u { font-weight: 600; }
.ventes-palier.is-on { background: var(--ink); border-color: var(--ink); }
.ventes-palier.is-on .ventes-palier-nom { color: var(--accent); }
.ventes-palier.is-on .ventes-palier-n { color: #fff; }
.ventes-ou { margin: 0 0 6px; font-size: 12px; color: var(--ink-4); }
.ventes-depart .setup-choices-bloc { margin: 12px 0 0; }
.ventes-depart .ventes-note { margin-top: 10px; }
.ventes-question { display: flex; flex-direction: column; gap: 8px; }
.ventes-question-q { margin: 0; font: 600 14px/1.35 var(--sans); color: var(--ink); }
.ventes-question .ventes-palier { padding: 8px 12px; }
.ventes-question .ventes-palier-n { font-size: 14px; }
.ventes-question-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-4); }
.grid + .ventes-question, .ventes-question + .grid { margin-top: 12px; }
@media (max-width: 480px) { .ventes-palier { padding: 8px 10px; } .ventes-palier-n { font-size: 14px; } .ventes-palier-u { display: block; font: 500 12px/1.3 var(--sans); color: var(--ink-4); } .ventes-palier.is-on .ventes-palier-u { color: #A8B1B8; } }

/* Le rythme, dans le parcours (11 octobre 2026, l'aperçu) : l'unité de
   temps et la durée en puces, quatre ordres d'idée pour « une fois lancé »,
   les jours d'ouverture dans la phrase qui dit ce que ça fait au mois. */
.rythme-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.rythme-puce {
  padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font: 600 13px/1.3 var(--sans); color: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s;
}
.rythme-puce:hover { border-color: var(--ink-4); }
.rythme-puce.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rythme-puce:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rythme-paliers.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rythme-duree-titre { margin-top: 16px; }
.rythme-croisiere .rythme-puces { margin-bottom: 0; }
/* Sur deux lignes au portable : le texte passe à la ligne à côté du carré. */
.rythme-soit { align-items: flex-start; }
.rythme-soit::before { margin-top: .5em; }
.rythme-jours {
  width: 3.2em; margin: 0 2px; padding: 1px 4px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); font: 600 12px/1.4 var(--sans); color: var(--ink); text-align: center;
}
.rythme-jours:focus { outline: none; border-color: var(--ink-4); }
@media (max-width: 480px) { .rythme-paliers.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Récit : les termes du lexique dans la typo des titres, plus en capitales
   de machine à écrire. */
.as-lex.is-puce {
  padding: 6px 11px; font: 700 14px/1.1 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink-2);
}
.as-lex.is-puce::after { font: 600 12px/1 var(--sans); }

/* Trésorerie du récit : le tiret qui relie un repère à son texte. */
.as-j-tiret { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 2 3; }
.as-scene-dessin .as-j-tiret { stroke: rgba(242, 240, 232, .45); }

/* Sur un portable, les étapes se serrent pour tenir sur la ligne. */
@media (max-width: 1420px) and (min-width: 761px) { .as-etape { padding: 5px 8px; font-size: 12px; } }
/* Les diapositives, dernière étape du récit : la pastille garde un lavis vert. */
.as-etape.is-cloture:not(.is-on):not(:hover) { background: var(--accent-wash); }

/* Une liste déroulante se reconnaît à son chevron, partout. Les navigateurs
   n'en dessinent plus dès qu'on retire leur habillage : on le pose. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B6E64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px;
}
select:not([multiple]):not([size]):hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230E0F0C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ─────────────────────────── Les chiffres vivants ───────────────────────────
   Un chiffre qu'un recalcul vient de changer défile vers sa nouvelle valeur
   (js/ui/vivant.js). Grand chiffre : un trait vert passe dessous et
   s'efface. Chiffre de tableau : un lavis vert, plus bref. */
.vif-t { border-radius: 3px; }
.vif-t.is-vif.is-vedette { animation: vif-trait 1.15s ease-out both; }
.vif-t.is-vif:not(.is-vedette) { animation: vif-lavis .9s ease-out both; }
@keyframes vif-trait {
  0% { box-shadow: inset 0 -.42em 0 rgba(185, 245, 16, 0); }
  18% { box-shadow: inset 0 -.42em 0 rgba(185, 245, 16, .9); }
  100% { box-shadow: inset 0 -.42em 0 rgba(185, 245, 16, 0); }
}
@keyframes vif-lavis {
  0% { background-color: rgba(185, 245, 16, 0); }
  20% { background-color: rgba(185, 245, 16, .42); }
  100% { background-color: rgba(185, 245, 16, 0); }
}
@media (prefers-reduced-motion: reduce) { .vif-t.is-vif { animation: none !important; } }

/* ───────────── Administration : la mesure d'usage ───────────── */
.usage { display: grid; gap: 12px; }
.usage-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.usage-barre .spacer { flex: 1; }
.usage-case { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); cursor: pointer; }
.usage-note, .usage-refus { padding: 0 16px 14px; }
.usage-vide { padding: 0 16px 16px; }
.usage-chip { margin-left: 8px; }
.usage-entonnoir { margin: 0; padding: 4px 16px 16px; list-style: none; display: grid; gap: 10px; }
.usage-etape { display: grid; grid-template-columns: 190px minmax(0, 1fr) 56px; grid-template-areas: 'l piste n' '. p p'; align-items: center; column-gap: 12px; row-gap: 2px; }
.usage-etape-l { grid-area: l; font-weight: 600; color: var(--ink); }
.usage-etape-piste { grid-area: piste; height: 26px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.usage-barre-v { display: block; height: 100%; width: calc(var(--part, 0) * 100%); min-width: 3px; border-radius: 7px; background: var(--ink); transition: width .6s var(--ease); }
.usage-etape:first-child .usage-barre-v { background: var(--accent); }
.usage-etape-n { grid-area: n; text-align: right; font-size: 20px; }
.usage-etape-p { grid-area: p; color: var(--ink-3); }
.usage-chrono { display: grid; gap: 18px; padding: 0 16px 16px; }
.usage-jour h3 { margin: 0 0 8px; font-size: 15px; text-transform: capitalize; }
.usage-seance { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--rule); }
.usage-seance ol { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.usage-evt { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.usage-evt-h { color: var(--ink-4); }
.usage-evt.is-compte .usage-evt-t, .usage-evt.is-export .usage-evt-t { font-weight: 600; color: var(--ink); }
.usage-evt.is-parcours .usage-evt-t b { color: var(--ink); }
@media (max-width: 720px) { .usage-etape { grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: 'l n' 'piste piste' 'p p'; } }

/* ─────────────────────────── L'accompagnement ───────────────────────────
   Le suivi des entrepreneurs (structure), l'accompagnement (founder) et
   l'invitation. Hors de la charpente des modules : une barre en haut, le
   contenu large, les titres dans la voix du site. */
.espace { min-height: 100dvh; background: var(--paper); display: flex; flex-direction: column; }
.espace-tete { position: sticky; top: 0; z-index: 30; background: rgba(242, 240, 232, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.espace-tete-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.espace-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.espace-lien { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.espace-lien:hover { background: var(--surface); }
.espace-lien.is-on { background: var(--ink); color: var(--paper); }
.espace-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 600 11px/18px var(--mono); text-align: center; }
.espace-corps { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.espace-attente { color: var(--ink-3); padding: 40px 0; }
.espace-vide { padding: 48px 0; }
.espace-vide h1 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
.espace-vide p { color: var(--ink-3); font-size: 16px; line-height: 1.55; margin: 0 0 20px; }
.espace-titre { margin: 8px 0 24px; }
.espace-surtitre { font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin: 0 0 10px; }
.espace-titre h1 { font: 800 clamp(30px, 4.4vw, 52px)/1.05 var(--display); letter-spacing: -.03em; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.espace-sous { margin: 12px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.espace-retour { display: inline-block; margin: 0 0 12px; color: var(--ink-3); text-decoration: none; font-size: 14px; }
.espace-retour:hover { color: var(--ink); }

.suivi-bloc { margin: 0 0 36px; }
.suivi-bloc > h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 14px; }
.suivi-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.suivi-carte { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--lift); transition: transform .15s ease, box-shadow .15s ease; }
a.suivi-carte:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent), var(--lift); }
.suivi-carte b { font: 700 20px/1.2 var(--display); letter-spacing: -.01em; }
.suivi-carte span { color: var(--ink-3); font-size: 14px; }
.suivi-carte .suivi-carte-chiffres strong { color: var(--ink); }
.suivi-carte.is-finie { opacity: .72; }
.suivi-carte-form { gap: 10px; background: var(--surface-2); border-style: dashed; box-shadow: none; }
.suivi-champ { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.suivi-champ .control input { width: 100%; }
.suivi-aide { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.suivi-carte-form .btn { align-self: flex-start; }

.suivi-equipe { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.suivi-equipe li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.suivi-equipe li:first-child { border-top: 0; }
.suivi-equipe li.is-attente { background: var(--surface-2); }
.suivi-equipe-nom { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.suivi-equipe-nom .muted { font-size: 13px; overflow-wrap: anywhere; }
.suivi-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.suivi-inviter-equipe { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: center; }
.suivi-inviter-equipe .suivi-aide { grid-column: 1 / -1; }
.suivi-inviter-equipe input, .suivi-inviter-equipe select { width: 100%; }

.fil-action { background: none; border: 0; padding: 2px 0; color: var(--signal-ink); font-size: 13px; cursor: pointer; }
.fil-action:hover { text-decoration: underline; }
.fil-action:disabled { opacity: .5; cursor: default; }

.suivi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.suivi-kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.suivi-kpi b { font: 800 28px/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); }
.suivi-kpi span { font-size: 13px; color: var(--ink-3); }
.suivi-kpi.is-grave b { color: var(--loss); }
.suivi-kpi.is-neuf { background: var(--accent-wash); border-color: var(--accent-dim); }

.suivi-inviter { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 20px; margin: 0 0 24px; display: grid; gap: 10px; }
.suivi-inviter-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.suivi-inviter-tete h2 { font: 700 20px/1.2 var(--display); margin: 0; }
.suivi-inviter textarea { width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font: 14px/1.5 var(--mono); background: var(--surface-2); color: var(--ink); }
.suivi-inviter-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.suivi-import { position: relative; overflow: hidden; cursor: pointer; }
.suivi-fichier { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.suivi-modifier { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.suivi-modifier[hidden] { display: none; }
.suivi-modifier .suivi-aide { flex-basis: 100%; }

.suivi-table table { min-width: 1000px; }
.suivi-table td { vertical-align: middle; }
.suivi-ligne { cursor: pointer; }
.suivi-ligne:hover td, .suivi-ligne:focus-visible td { background: var(--surface-2); }
.suivi-ligne a { color: var(--ink); font-weight: 600; text-decoration: none; }
.suivi-ligne a:hover { text-decoration: underline; }
.suivi-table tr.is-attente td { color: var(--ink-3); }
.suivi-table .is-neg, .lecture-table .is-neg { color: var(--loss); }
.suivi-maj { display: block; font-size: 12px; color: var(--ink-4); }
.suivi-statut { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 var(--sans); white-space: nowrap; }
.suivi-statut.is-bon { background: var(--gain-wash); color: var(--gain); }
.suivi-statut.is-veille { background: var(--warn-wash); color: var(--warn); }
.suivi-statut.is-mauvais { background: var(--loss-wash); color: var(--loss); }
.suivi-statut.is-neutre { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); }
.suivi-alertes { font-size: 13px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.suivi-alertes.is-grave { color: var(--loss); }

/* Un plan, en lecture seule : la bande dit le mode, en permanence. */
.lecture-bande { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 14px; margin: 0 0 20px; background: var(--ink); color: var(--paper); border-radius: 12px; font-size: 13px; line-height: 1.45; }
.lecture-bande b { color: var(--accent); letter-spacing: 0; font-size: 12px; }
.lecture-synthese { margin: 0 0 12px; }
.lecture-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 20px; border-radius: 16px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--rule); }
.lecture-verdict-mot { font: 800 26px/1 var(--display); letter-spacing: -.02em; }
.lecture-verdict.is-bon .lecture-verdict-mot { color: var(--gain); }
.lecture-verdict.is-veille .lecture-verdict-mot { color: var(--warn); }
.lecture-verdict.is-mauvais .lecture-verdict-mot { color: var(--loss); }
.lecture-sommaire { position: sticky; top: 57px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 0 0 12px; background: var(--paper); scrollbar-width: none; }
.lecture-sommaire::-webkit-scrollbar { display: none; }
.lecture-sommaire a { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 13px; }
.lecture-sommaire a:hover { border-color: var(--ink); }
.lecture-nb { font: 600 11px/1 var(--mono); color: var(--ink-2); background: var(--accent-wash); padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.lecture-partie { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; margin: 0 0 16px; overflow: hidden; scroll-margin-top: 120px; }
.lecture-partie-tete { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding: 18px 22px 0; }
.lecture-partie-tete h2 { font: 700 22px/1.2 var(--display); margin: 0; letter-spacing: -.01em; }
.lecture-partie-corps { padding: 14px 22px 22px; min-width: 0; }
.lecture-partie-fil { padding: 14px 18px 18px; background: var(--surface-2); border-left: 1px solid var(--rule); min-width: 0; }
.lecture-dl { margin: 0; }
.lecture-ligne { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.lecture-ligne:first-child { border-top: 0; }
.lecture-ligne dt { color: var(--ink-3); font-size: 14px; }
.lecture-ligne dd { margin: 0; font-weight: 500; }
.lecture-table tr.is-fort td { font-weight: 700; }
.lecture-h3 { font: 700 16px/1.3 var(--display); margin: 16px 0 8px; }
.lecture-note { margin: 12px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.lecture-alertes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lecture-alertes li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--warn-wash); font-size: 14px; line-height: 1.45; }
.lecture-alertes li.is-grave { background: var(--loss-wash); }

/* Les fils de discussion, partie par partie. */
.fil, .fil-liste { display: grid; gap: 10px; }
.fil-msg { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.fil-msg.is-founder { border-left: 3px solid var(--accent-dim); }
.fil-msg.is-structure { border-left: 3px solid var(--ink); }
.fil-msg.is-neuf { box-shadow: 0 0 0 2px var(--accent); }
.fil-tete { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; }
.fil-quand { color: var(--ink-4); }
.fil-neuf { font: 600 12px/1 var(--sans); letter-spacing: 0; background: var(--accent); color: var(--ink); padding: 3px 6px; border-radius: 999px; }
.fil-texte { margin: 6px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.fil-actions { display: flex; gap: 12px; }
.fil-suite { display: grid; gap: 8px; margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--rule); }
.fil-suite .fil-msg { background: var(--surface-2); }
.fil-form { display: grid; gap: 8px; }
.fil-saisie, .accomp-form textarea { width: 100%; min-height: 60px; resize: vertical; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 10px; font: 14px/1.45 var(--sans); background: var(--surface); color: var(--ink); }
.fil-saisie:focus, .accomp-form textarea:focus { outline: 2px solid var(--accent-dim); outline-offset: 1px; }
.fil-form .btn { justify-self: end; }
.fil-repondre:not(:empty) { margin-top: 8px; }

/* L'accompagnement, côté founder. */
.accomp { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 20px 22px; }
.accomp-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: 0 0 16px; }
.accomp-tete h2 { font: 800 24px/1.1 var(--display); margin: 0 0 4px; letter-spacing: -.02em; }
.accomp-tete .muted { margin: 0; }
.accomp-qui { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 520px; }
.accomp-plans { display: grid; gap: 14px; }
.accomp-plan { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.accomp-plan.is-inactif { opacity: .82; }
.accomp-plan-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.accomp-plan-tete > div:first-child { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.accomp-plan-tete h3 { font: 700 18px/1.2 var(--display); margin: 0; }
.accomp-fils { display: grid; gap: 14px; margin-top: 14px; }
.accomp-fil h4 { margin: 0 0 8px; font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.accomp-ecrire { margin-top: 12px; }
.accomp-ecrire summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--signal-ink); }
.accomp-form { margin-top: 10px; }
.accomp-partager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; }
.accomp-bandeau { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-dim); color: var(--ink); text-decoration: none; font-size: 14px; }
.accomp-bandeau span { color: var(--signal-ink); }
.accomp-bandeau:hover span { text-decoration: underline; }
.rail-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 600 11px/18px var(--mono); text-align: center; }
.rail-badge[hidden] { display: none; }

/* L'invitation : l'accord se lit en entier avant d'être donné. */
.auth-carte.invitation { max-width: 560px; }
.invitation-surtitre { font: 600 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin: 0 0 10px; }
.invitation-accord { margin: 16px 0 20px; }
.invitation-accord > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.invitation-accord dt { font-weight: 700; font-size: 14px; }
.invitation-accord dd { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.invitation-plans { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; margin: 0; display: grid; gap: 8px; }
.invitation-plans legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.invitation-plan { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.invitation-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.invitation-compte { display: grid; gap: 10px; }
.invitation-compte p { margin: 0 0 4px; color: var(--ink-2); font-size: 14px; }
.admin-vide { padding: 0 16px 16px; }

@media (max-width: 860px) {
  .lecture-partie { grid-template-columns: minmax(0, 1fr); }
  .lecture-partie-fil { border-left: 0; border-top: 1px solid var(--rule); }
  .lecture-ligne { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .suivi-inviter-equipe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .espace-tete-in { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .espace-nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .espace-corps { padding: 20px 16px 64px; }
  .lecture-sommaire { position: static; }
  .lecture-partie-tete, .lecture-partie-corps { padding-left: 16px; padding-right: 16px; }
}
/* Le tableau d'une promotion : une carte, du texte à gauche, des montants à droite. */
.suivi-table { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 4px 10px 8px; }
.suivi-table table.data th, .suivi-table table.data td { text-align: left; }
.suivi-table table.data td { font-family: var(--sans); letter-spacing: 0; color: var(--ink); }
.suivi-table table.data td:first-child { color: var(--ink); }
.suivi-table table.data th.num, .suivi-table table.data td.num { text-align: right; font-family: var(--mono); letter-spacing: -.02em; }
.suivi-table .suivi-actions { justify-content: flex-end; }
/* La barre de l'accompagnement : des liens-boutons, sans le filet des liens du texte. */
.espace-tete a, .accomp-bandeau, .suivi-ligne a, .lecture-sommaire a { border-bottom: 0; }
.espace-tete .espace-lien { border: 0; }

/* L'administration dans l'espace d'une structure : la bande noire de l'administration, sans coller en haut. */
.espace-admin { position: static; align-items: center; }
.espace-admin a { margin-left: auto; color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-bottom: 0; }
.admin-structure-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-code .auth-message:not(:empty) { margin-top: 10px; }
.admin-code .mfa-code { max-width: 220px; }

/* ═══════════ Les cartes, plus légères ═══════════
   Une carte ouverte ne se signale plus par un trait noir épais : son en-tête
   prend la teinte de l'accent, on sait où l'on est ; le cadre reste un filet.
   Le fond passe du blanc pur à un blanc cassé, moins criard sur le crème. */
.item { background: var(--surface-2); border-color: var(--rule); }
.item.open {
  background: #FFFEFA;
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
  border-top-color: color-mix(in srgb, var(--ink) 14%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(14, 15, 12, .06), 0 20px 44px -26px rgba(14, 15, 12, .32);
}
.item.open > .item-head { background: var(--accent-wash); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent-dim) 50%, transparent); }
.item.open > .item-head:hover { background: color-mix(in srgb, var(--accent-wash) 78%, var(--accent)); }
.item.open > .item-body { border-top: 0; }
.item.open:focus-within {
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: -3px 0 0 0 var(--accent), 0 1px 2px rgba(14, 15, 12, .06), 0 20px 44px -26px rgba(14, 15, 12, .32);
}
.item.open .foldsign { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }

/* Offres, postes et campagnes : ouverte, la carte porte un liseré jaune à gauche, et son
   en-tête reste blanc. La teinte de l'en-tête signalait la carte en travail ;
   le liseré le dit aussi bien, sans le bloc de couleur (choisi dans l'aperçu,
   variante A, fil e50d2b97). */
.item.is-lisere.open {
  box-shadow: inset 5px 0 0 var(--accent), 0 1px 2px rgba(14, 15, 12, .06), 0 20px 44px -26px rgba(14, 15, 12, .32);
}
.item.is-lisere.open:focus-within {
  box-shadow: inset 5px 0 0 var(--accent-dim), 0 1px 2px rgba(14, 15, 12, .06), 0 20px 44px -26px rgba(14, 15, 12, .32);
}
.item.is-lisere.open > .item-head { background: transparent; box-shadow: inset 0 -1px 0 var(--rule); padding-left: 19px; }
.item.is-lisere.open > .item-head:hover { background: var(--surface-2); }
.item.is-lisere.open > .item-body { padding-left: 19px; }

/* ═══════════ Volumes : la saisonnalité et la capacité, à plat ═══════════
   Dans la carte ouverte, un cadre dans un cadre dans un cadre faisait poupée
   russe. Ces réglages se séparent d'un filet ; les mois deviennent un
   histogramme, et chaque pourcentage un chiffre souligné qu'on corrige. */
.saison { margin-top: 18px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
.saison-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.saison-titre { font: 700 14px/1.3 var(--display); }
.saison-sous { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.saison-profils { margin-top: 10px; }
.saison-profil { padding: 5px 11px; font-size: 12.5px; background: none; }
.saison-mois { gap: 4px; margin-top: 12px; }
.saison-barre { height: 40px; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 var(--rule); }
.saison-barre i { width: 62%; margin: 0 auto; background: var(--ink-5); border-radius: 3px 3px 0 0; }
.saison-m.is-debut .saison-barre i { background: var(--accent-dim); }
.saison-nom { font: 600 11px/1.2 var(--sans); }
.saison-champ input {
  width: 40px; padding: 2px 0; border: 0; border-bottom: 1px dashed var(--rule); border-radius: 0;
  background: none; text-align: center; font: 600 12px/1.3 var(--sans); font-variant-numeric: tabular-nums;
}
.saison-champ input:hover { border-bottom-color: var(--ink-4); }
.saison-champ input:focus { outline: none; border-bottom: 1px solid var(--ink); }
.saison-champ small { font-size: 10.5px; }
/* La capacité et le freinage, dans « Hypothèses avancées » : deux réglages
   bas, côte à côte sur un écran large. Le titre, son « i » qui s'explique au
   survol, l'état ; allumé, le champ prend la droite de la même ligne. */
.tune-courbe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.tune-courbe > .tuneblock { margin: 0; }
.tuneblock.is-capacite > .tuneblock-head { align-items: center; padding: 10px 14px; min-height: 58px; }
.tuneblock.is-capacite .tuneblock-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.tuneblock.is-capacite .tuneblock-off { margin-top: 2px; font-weight: 400; color: var(--ink-4); }
.tuneblock.is-capacite .pas-besoin { margin-top: 6px; padding: 3px 10px; font-size: 12px; }
.tuneblock-champ { flex: 0 0 200px; }
.tuneblock-champ .field { margin: 0; }
.tune-info {
  display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%;
  font: italic 600 10.5px/1 var(--sans); color: var(--ink-4); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule); cursor: help; user-select: none;
}
.tune-info:hover, .tune-info:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-4); outline: none; }
@media (max-width: 900px) {
  .tune-courbe { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tuneblock.is-capacite > .tuneblock-head { flex-wrap: wrap; }
  .tuneblock-champ { flex: 1 1 100%; padding-left: 46px; }
}

/* L'unité de l'offre, au bout de la ligne « courbe / mois par mois ». */
.volumes-tete { align-items: center; gap: 12px; flex-wrap: wrap; }
.unite-choix { display: flex; gap: 10px; flex: 0 1 auto; }
.unite-choix .field { margin: 0; width: 240px; }
@media (max-width: 720px) {
  .unite-choix, .unite-choix .field { width: 100%; flex: 1 1 100%; }
}
/* ═══════════ États financiers, plus serrés ═══════════
   On lisait rarement un tableau ou une carte en entier sans défiler. Les
   cartes perdent de la hauteur (barres plus basses, marges réduites), les
   tableaux une ligne sur trois de vide, les parties se rapprochent. */
.fin .sx { margin-top: var(--s-5); }
.fin .sx:first-child { margin-top: var(--s-3); }
.fin .sx-head { margin-bottom: var(--s-2); }
.fin .sx-cards { gap: var(--s-2); }
.fin .sx-card { padding: 11px 14px 10px; }
.fin .sx-bars { height: 44px; margin-top: 8px; }
.fin .sx-delta { margin-top: 5px; }
.fin .sx-card-note { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
.fin .sx-card-why { margin-top: 6px; }
.fin .card-head { padding-top: 10px; padding-bottom: 8px; }
.fin table.data { font-size: 13.5px; }
.fin table.data th, .fin table.data td { padding-top: 5px; padding-bottom: 5px; }
.fin table.data tr.section td, .fin table.data tr.section td:first-child { padding-top: 14px; padding-bottom: 2px; }
.fin table.data tr.total td, .fin table.data tr.total td:first-child { padding-top: 8px; }
.fin .card + .card, .fin .card + .table-wrap, .fin .table-wrap + .card { margin-top: var(--s-3); }

/* ─── La lecture seule : le plan d'un autre compte, rien ne s'écrit ───
   Le bandeau dit à qui est le plan et qui le lit ; les champs se lisent mais
   ne se saisissent pas. Les onglets, les années et les replis restent libres :
   lire, c'est aussi parcourir. */
.lecture-seule {
  position: sticky; top: 0; z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px var(--space); background: var(--ink); color: #fff;
  font: 400 13px/1.45 var(--sans);
}
.lecture-seule-texte { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; min-width: 0; }
.lecture-seule-texte b { color: var(--accent); font-weight: 700; }
.lecture-seule-texte span { color: #C3C5BA; }
.lecture-seule .btn { background: #fff; color: var(--ink); border-color: #fff; }
.shell.is-lecture .main input,
.shell.is-lecture .main textarea,
.shell.is-lecture .main select { pointer-events: none; }
.shell.is-lecture .main input:not([type="checkbox"]):not([type="radio"]),
.shell.is-lecture .main textarea { background: transparent; }
.shell.is-lecture .topbar { top: 42px; }
.rail-lecture-fermer { color: var(--accent) !important; }
.admin-plan-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-chip { margin-left: 8px; }
.admin-vide { padding: 0 16px 16px; }
/* Les demandes de démo (page Incubateurs) : le programme garde ses retours à la ligne. */
.admin-demandes .admin-demande-programme { min-width: 220px; white-space: pre-line; }
.lecture-complete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 20px; }
.usage-dossier { display: flex; flex-direction: column; gap: 16px; }

/* ═══════════ Questions sur une zone du plan ═══════════
   Le coach désigne une zone (un champ, une carte, un bloc) et y pose sa
   question ; l’entrepreneur y est mené question après question. La zone se
   reconnaît à un cadre jaune, la même couleur que le liseré des cartes. */
.lecture-seule-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qz-en-visee #app .main { cursor: crosshair; }
.qz-survol { outline: 2px dashed var(--accent-dim); outline-offset: 3px; border-radius: 8px; }
.qz-choisie, .qz-visee { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.qz-visee { animation: qz-appel 1.6s ease-out 2; scroll-margin-top: 76px; }
@keyframes qz-appel {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
@media (prefers-reduced-motion: reduce) { .qz-visee { animation: none; } }

.qz-barre {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 300;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(100vw - 24px);
  padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--ink); color: var(--paper);
  box-shadow: 0 12px 32px rgba(14, 15, 12, .28); font-size: 13.5px;
}
.qz-barre b { color: var(--accent); }
.qz-barre .btn { background: var(--surface); }

.qz-boite, .qz-panneau {
  position: fixed; right: 18px; bottom: 18px; z-index: 300; width: min(400px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: inset 5px 0 0 var(--accent), 0 1px 2px rgba(14, 15, 12, .08), 0 24px 56px -20px rgba(14, 15, 12, .38);
}
.qz-panneau { max-height: min(70vh, 620px); overflow: auto; }
.qz-sur { margin: 0; font-size: 13px; color: var(--ink-3); }
.qz-sur b { color: var(--ink); }
.qz-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.qz-tete { display: flex; align-items: baseline; gap: 10px; }
.qz-tete b { font: 700 16px/1.2 var(--display); }
.qz-reste { font-size: 12.5px; color: var(--ink-4); }
.qz-fermer { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 2px; }
.qz-fermer:hover { color: var(--ink); }
.qz-qui { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.qz-zone {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%;
  padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--accent-wash);
  font: 600 13px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer;
}
.qz-zone.is-partie { cursor: default; background: var(--surface-2); margin: 0; }
.qz-zone:hover:not(.is-partie) { border-color: var(--ink-5); }
.qz-zone-point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent); }
.qz-question { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; }
.qz-reponse { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.qz-reponse.is-moi { background: var(--accent-wash); }
.qz-fait, .qz-note { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.qz-repondre { display: flex; flex-direction: column; gap: 8px; }
.qz-pied { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
  .qz-boite, .qz-panneau { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 52vh; border-radius: 14px; }
  .qz-barre { top: 8px; font-size: 12.5px; }
}
@media print { .qz-boite, .qz-panneau, .qz-barre { display: none; } }

/* Le fil : la zone d'une question, et le chemin pour y aller. */
.fil-zone { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font: 600 12.5px/1.3 var(--sans); color: var(--ink-3); }
.fil-voir { font-weight: 600; }

/* Mon incubateur : comment ça marche, puis la file des questions. */
.accomp-etapes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; counter-reset: etape; }
.accomp-etapes li { counter-increment: etape; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px 44px; position: relative; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.accomp-etapes li::before { content: counter(etape); position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font: 600 12px/1 var(--mono); }
.accomp-etapes b { font-size: 14px; }
.accomp-etapes span { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.accomp-questions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.accomp-questions.is-a-traiter { box-shadow: inset 5px 0 0 var(--accent); padding-left: 19px; }
.accomp-questions > div { display: flex; flex-direction: column; gap: 2px; }
.accomp-questions b { font-size: 15px; }
.accomp-questions span { font-size: 12.5px; color: var(--ink-4); }
.lecture-seule .btn.qz-poser { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ── « Combien veux-tu toucher ? » : la cible, le foyer, les chemins ─────── */
.remu { display: flex; flex-direction: column; gap: 14px; }
.remu-tete { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 24px; align-items: end; padding: 18px 20px; }
.remu-tete-q { min-width: 0; }
.remu-titre { margin: 0; font: 600 21px/1.2 var(--display); color: var(--ink); }
.remu-sous { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.remu-tete-champ .field { margin: 0; }
.remu-tete .foyer { grid-column: 1 / -1; }
.remu-resume { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.remu-vide p { margin: 0; padding: 16px 18px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.remu-unite { font-size: .86em; color: var(--ink-4); font-weight: 400; }

.remu-cartes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.remu-cartes.is-1 { grid-template-columns: minmax(0, 520px); }
.remu-carte { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-rest); }
.remu-carte.is-moins-cher { box-shadow: inset 0 3px 0 var(--accent-dim), var(--shadow-rest); }
.remu-carte.is-retenu { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-float); }
.remu-carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.remu-carte-titre { margin: 0; font: 600 16px/1.25 var(--display); color: var(--ink); }
.remu-badge { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--accent-wash); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.remu-carte-dit { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.remu-cout { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.remu-cout-k { font-size: 12.5px; color: var(--ink-3); }
.remu-cout-v { font-size: 22px; font-weight: 600; color: var(--ink); }
.remu-lignes { display: flex; flex-direction: column; }
.remu-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.remu-ligne:first-child { border-top: 0; }
.remu-ligne-k { color: var(--ink-3); }
.remu-ligne-v { color: var(--ink); font-weight: 500; text-align: right; }
.remu-ligne-sous { grid-column: 1 / -1; font-size: 12px; line-height: 1.35; color: var(--ink-4); }
.remu-ligne.is-faible .remu-ligne-v { color: var(--warn); }
.remu-alerte { margin: 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-wash); color: var(--warn); font-size: 12.5px; line-height: 1.4; }
.remu-pied { margin: auto 0 0; font-size: 12.5px; color: var(--ink-4); }
.remu-choisir { align-self: stretch; justify-content: center; }
.remu-carte.is-retenu .remu-choisir { color: var(--ink); opacity: 1; }

.remu-annees { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.remu-annee { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--rule); }
.remu-annee.is-ok { background: var(--gain-wash); border-color: transparent; }
.remu-annee-k { font-size: 12px; color: var(--ink-3); }
.remu-annee-v { font-size: 15px; font-weight: 600; color: var(--ink); }
.remu-constat { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.remu-hypotheses ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 720px) {
  .remu-tete { grid-template-columns: 1fr; }
  .remu-annees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Le foyer fiscal : une ligne, qui se déplie. */
.foyer { display: flex; flex-direction: column; gap: 10px; }
.foyer-resume { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.foyer-resume b { color: var(--ink-2); font-weight: 600; }
.foyer-affiner { padding: 0; border: 0; background: none; color: var(--signal-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foyer-affiner:hover { color: var(--ink); }
.foyer-panneau { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--rule); }
.foyer-choix, .foyer-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.foyer-choix-btn, .foyer-seg-btn { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font: 500 13px/1.2 var(--sans); cursor: pointer; }
.foyer-choix-btn:hover, .foyer-seg-btn:hover { border-color: var(--ink-4); }
.foyer-choix-btn.is-on, .foyer-seg-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.foyer-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 14px; align-items: start; }
.foyer-champs .field { margin: 0; }
.foyer-coche, .chomage-coche { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.setup-salary .foyer { margin-top: 12px; }
.setup-salary .foyer-panneau { background: var(--surface); }
.setup-mode { margin: 8px 0 0; padding: 0; border: 0; background: none; color: var(--signal-ink); font: 600 13px/1.3 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.setup-alternative { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-wash); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.remu-lien { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.remu-annee-sous { font-size: 11.5px; line-height: 1.3; color: var(--ink-4); }

/* Le statut JEI : ce qu'il allume, ses deux conditions, les postes qui le portent. */
.jei-quoi { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.jei-effet { margin: 0 0 6px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.jei-effet.is-on { background: var(--gain-wash); }
.jei-effet b { color: var(--ink); }
.jei-titre { margin: 18px 0 8px; font: 600 15px/1.3 var(--display); color: var(--ink); }
.jei-aide { margin: 6px 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.jei-reglages { margin-top: 6px; align-items: start; }
.jei-postes td { vertical-align: middle; }
.jei-postes .jei-part { width: 180px; }
.jei-postes .jei-part .field { margin: 0; }
/* JEC et JEII (audit, ANO-36) : non couvertes, et soulignées quand la recherche du plan tombe dans leur zone. */
.jei-non-couvert p { margin: 6px 0 0; }
.jei-non-couvert.is-concerne { background: var(--warn-wash); border-color: #EBD3A8; }
.jei-non-couvert .jei-zone { font-weight: 600; color: var(--ink); }
.jei-non-couvert .jei-source { font-size: 12px; line-height: 1.45; color: var(--ink-4); }

/* ═══════════ Commentaires épinglés (js/ui/epingles.js) ═══════════
   Le coach clique où il veut dans le plan : une bulle s'ouvre là, et le
   commentaire devient une épingle numérotée qui reste à cet endroit. Jaune
   comme le liseré des cartes ; résolue, elle s'efface du plan. */
.cz-commente #app .main { cursor: crosshair; }
.cz-commente #app .main :is(a[href], button, summary, select, [role="tab"], [role="button"], .item-head, .hnav-tab) { cursor: pointer; }
.cz-calque { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 38; }
/* Un tiroir ouvert (z-index 89) : ses épingles passent au-dessus de lui. */
.cz-calque.is-dessus { z-index: 90; }
.cz-epingle {
  position: absolute; transform: translate(-6px, -100%);
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border: 2px solid var(--ink); border-radius: 13px 13px 13px 3px;
  background: var(--accent); color: var(--ink); font: 700 12px/1 var(--mono); cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(14, 15, 12, .45);
  transition: transform .15s var(--ease-soft, ease), box-shadow .15s;
}
.cz-epingle:hover, .cz-epingle.is-on { transform: translate(-6px, -100%) scale(1.12); box-shadow: 0 10px 22px -8px rgba(14, 15, 12, .55); }
.cz-epingle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cz-epingle.is-approx { border-style: dashed; }
.cz-epingle.is-resolu { background: var(--surface-2); color: var(--ink-4); border-color: var(--ink-5); }
.cz-epingle.is-nouvelle { background: var(--ink); color: var(--accent); cursor: default; pointer-events: none; }

.cz-bulle {
  position: absolute; z-index: 310; width: min(360px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: inset 5px 0 0 var(--accent), 0 1px 2px rgba(14, 15, 12, .08), 0 24px 56px -20px rgba(14, 15, 12, .38);
  font: 400 13.5px/1.45 var(--sans); color: var(--ink); cursor: auto;
}
.cz-bulle.is-bas { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 60vh; overflow: auto; }
.cz-bulle.is-resolu { box-shadow: inset 5px 0 0 var(--ink-5), 0 1px 2px rgba(14, 15, 12, .08), 0 24px 56px -20px rgba(14, 15, 12, .38); }
.cz-bulle.is-appel { animation: cz-appel .4s ease-out; }
@keyframes cz-appel { 0%, 100% { translate: 0 0; } 30% { translate: -5px 0; } 60% { translate: 5px 0; } }
.cz-tete { display: flex; align-items: center; gap: 8px; }
.cz-tete b { font-size: 14px; }
.cz-quand { font-size: 12px; color: var(--ink-4); }
.cz-numero { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px 11px 11px 3px; background: var(--accent); font: 700 11.5px/1 var(--mono); color: var(--ink); }
.cz-fermer { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 2px; }
.cz-fermer:hover { color: var(--ink); }
.cz-sur { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 12.5px/1.3 var(--sans); color: var(--ink-3); }
.cz-texte { margin: 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.cz-reponse { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.cz-reponse.is-moi { background: var(--accent-wash); }
.cz-reponse p { margin: 2px 0 0; white-space: pre-wrap; }
.cz-qui { font-size: 12px; color: var(--ink-4); }
.cz-resolu { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--gain); }
.cz-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cz-repondre { display: flex; flex-direction: column; gap: 8px; }
.cz-pied { display: flex; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--rule); }
.cz-resoudre { background: var(--ink); color: var(--accent); border-color: var(--ink); }

.cz-commandes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lecture-seule .btn.cz-mode.is-on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cz-nb { margin-left: 4px; }

.cz-liste {
  position: fixed; right: 18px; top: 64px; z-index: 300; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 88px); overflow: auto;
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(14, 15, 12, .08), 0 24px 56px -20px rgba(14, 15, 12, .38);
}
.cz-ligne { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 6px; border: 0; border-top: 1px solid var(--rule); background: none; text-align: left; font: inherit; cursor: pointer; }
.cz-ligne:hover { background: var(--surface-2); }
.cz-ligne.is-resolu { opacity: .62; }
.cz-ligne.is-resolu .cz-numero { background: var(--surface-2); color: var(--ink-4); }
.cz-ligne-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cz-ligne-zone { font: 600 12px/1.3 var(--sans); color: var(--ink-3); }
.cz-ligne-texte { font-size: 13.5px; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cz-ligne-etat { font-size: 12px; color: var(--ink-4); }
.cz-groupe { margin: 8px 0 0; font: 600 12.5px/1.2 var(--sans); color: var(--ink-4); }
.cz-vide { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 720px) {
  .cz-liste { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 60vh; }
}
@media print { .cz-calque, .cz-bulle, .cz-liste, .qz-point { display: none; } }

/* Le point précis d'une question, dans la file de l’entrepreneur. */
.qz-point {
  position: absolute; z-index: 38; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--ink); pointer-events: none;
  animation: qz-appel 1.6s ease-out 2;
}
@media (prefers-reduced-motion: reduce) { .qz-point { animation: none; } .cz-bulle.is-appel { animation: none; } }
.fil-resolu { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font: 600 11.5px/1.5 var(--sans); color: var(--gain); }

/* Ta rémunération, à l'accueil : un salaire brut, ou l'un des deux autres choix. */
.setup-salary-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.setup-choice-mini {
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font: 500 13.5px/1.2 var(--sans); color: var(--ink-2); cursor: pointer;
  transition: border-color .18s var(--ease-soft), background .18s;
}
.setup-choice-mini:hover { border-color: var(--ink-4); }
.setup-choice-mini.is-on { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.setup-salary-div .setup-note { margin-top: 8px; }

/* Réglages › Ce projet : le détail du statut JEI, sous les options. */
.jei-reglage { margin-top: 14px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); }
.jei-reglage > summary { padding: 12px 16px; font: 600 14px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.jei-reglage[open] > summary { border-bottom: 1px solid var(--rule); }
.jei-reglage > .jei { padding: 14px 16px 16px; }

/* Achats : un achat ponctuel, payé une fois, le mois choisi. */
/* L'unité d'une charge : par mois, par an, une fois. Trois choix visibles, à
   la taille de la ligne. */
.cost-seg.is-unite { padding: 2px; border-radius: 8px; }
.cost-seg.is-unite .cost-seg-opt { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; }
@media (max-width: 640px) { .cost-seg.is-unite { width: auto; } .cost-seg.is-unite .cost-seg-opt { flex: none; } }
.cost-mois { flex: none; max-width: 110px; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); font: 500 11.5px/1.2 var(--sans); color: var(--ink-2); }

/* Le prix, quand le client peut payer de plusieurs façons (fil c9178d0c :
   « trop empilé, trop de texte ») : une ligne basse par façon, son nom à
   gauche, ses prix à droite ; les libellés se taisent, les suffixes disent
   ce que comptent les champs. L'un sous l'autre au téléphone. */
.setup-note.is-haut { margin: 0 0 10px; }
.setup-modes { display: grid; margin-top: 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); overflow: hidden; }
.setup-mode-ligne { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); align-items: center; gap: 8px 18px; padding: 10px 16px; }
.setup-mode-ligne + .setup-mode-ligne { border-top: 1px solid var(--rule); }
.setup-mode-nom { display: grid; gap: 2px; min-width: 0; }
.setup-mode-nom b { font: 600 14px/1.25 var(--sans); color: var(--ink); }
.setup-mode-nom span { font: 500 12px/1.3 var(--sans); color: var(--ink-4); }
.setup-mode-champs { min-width: 0; }
.setup-modes .setup-libelle, .setup-modes .setup-suggested { display: none; }
.setup-modes .setup-champs.is-paire { gap: 8px 12px; }
.setup-modes .setup-field { gap: 8px; }
.setup-modes .setup-input, .setup-modes .setup-champs.is-paire .setup-input { font-size: 22px; padding: 4px 0 6px; }
.setup-modes .setup-suffix { font-size: 12px; }
.setup-modes + .setup-note { margin-top: 10px; }
@media (max-width: 560px) { .setup-mode-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
/* Frais d'entrée et abonnement : deux prix côte à côte, en plus petit (fil
   4cf3daa0). L'un sous l'autre au téléphone. */
.setup-champs.is-paire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.setup-champs.is-paire > * { min-width: 0; }
.setup-champs.is-paire .setup-input { font-size: clamp(22px, 2.6vw, 28px); padding: 4px 0 6px; }
@media (max-width: 560px) { .setup-champs.is-paire { grid-template-columns: minmax(0, 1fr); } }

/* Les associés : un chiffre par année, le détail dessous. */
.assoc-table td.num b { display: block; font-weight: 600; }
.assoc-detail { display: block; font-size: 11.5px; color: var(--ink-4); font-weight: 400; }
.assoc-toi { margin-left: 8px; }
.assoc-autres td { color: var(--ink-3); }
.assoc-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
table.data.jei-postes td.jei-gain { text-align: right; white-space: nowrap; font-family: var(--sans); letter-spacing: 0; }

.fin-note { margin: 0 16px 14px; font-size: 12.5px; color: var(--ink-4); }

/* ═══════════ Ta rémunération, en synthèse (fil cbfb73d8) ═══════════ */
.remu-synthese { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 28px; padding: 20px 22px; }
.remu-synth-chiffre { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.remu-synth-k { margin: 0; font: 600 13px/1.3 var(--sans); color: var(--ink-3); }
.remu-synth-v { margin: 2px 0 0; font: 600 40px/1.05 var(--display); color: var(--ink); }
.remu-synth-v .remu-unite { font: 500 16px/1 var(--sans); }
.remu-synth-detail { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.remu-synthese .remu-annees { grid-template-columns: repeat(5, minmax(0, 1fr)); align-self: end; gap: 6px; }
.remu-synthese .remu-annee { align-items: flex-start; padding: 8px 10px; border: 1px solid var(--rule); background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.remu-synthese .remu-annee:hover { border-color: var(--ink-4); }
.remu-synthese .remu-annee.is-on { background: var(--ink); border-color: var(--ink); }
.remu-synthese .remu-annee.is-on .remu-annee-k, .remu-synthese .remu-annee.is-on .remu-annee-v, .remu-synthese .remu-annee.is-on .remu-unite { color: var(--surface); }
.remu-synthese .remu-annee-v { font-size: 14px; white-space: nowrap; }
.remu-synth-foyer, .remu-synth-chomage { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.remu-estimation { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.remu-estimation b { color: var(--ink-3); font-weight: 600; }
.remu-vide-texte { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.foyer.is-compact { gap: 8px; }
.foyer-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.foyer-ligne .field { margin: 0; width: 180px; }
.foyer-ligne .foyer-seg { align-self: flex-end; padding-bottom: 4px; }
.foyer-mode { align-self: flex-end; margin-bottom: 10px; padding: 0; border: 0; background: none; color: var(--signal-ink); font: 600 13px/1.2 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foyer-mode:hover { color: var(--ink); }
.foyer-aide { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
/* Ton chômage (angle mort 7) : ce que chaque façon de le toucher rapporterait, dans son bouton. */
.foyer-seg-btn .chomage-total { font-weight: 400; opacity: .8; }
.remu-objectif-corps { display: flex; flex-direction: column; gap: 12px; }
.remu-objectif-corps .remu-tete-champ { max-width: 320px; }
.remu-chemins { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.remu-chemin { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr) auto; align-items: center; gap: 6px 16px; padding: 12px 14px; border-top: 1px solid var(--rule); background: var(--surface); }
.remu-chemin:first-child { border-top: 0; }
.remu-chemin.is-retenu { background: var(--accent-wash); }
.remu-chemin-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.remu-chemin-nom b { font: 600 14.5px/1.3 var(--sans); color: var(--ink); }
.remu-chemin-dit { flex-basis: 100%; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
/* Ce que le chemin laisse à ta charge (mutuelle, prévoyance) : la même ligne, un ton plus discret. */
.remu-chemin-protection { margin-top: -2px; color: var(--ink-4); }
.remu-chemin-cout .num { font-size: 16px; font-weight: 600; color: var(--ink); }
.remu-chemin-retraite { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.remu-chemin-retraite.is-faible { color: var(--warn); }
.remu-chemin .remu-choisir { min-width: 96px; }
.remu-detail { border-top: 1px solid var(--rule); padding-top: 10px; }
.remu-detail > summary { cursor: pointer; font: 600 13.5px/1.3 var(--sans); color: var(--ink-2); }
.remu-detail[open] > summary { margin-bottom: 12px; }
.remu-detail .remu-hypotheses { margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: var(--ink-4); }
@media (max-width: 860px) {
  .remu-synthese { grid-template-columns: minmax(0, 1fr); }
  .remu-chemin { grid-template-columns: minmax(0, 1fr) auto; }
  .remu-chemin-cout, .remu-chemin-retraite { grid-column: 1; }
  .remu-chemin .remu-choisir { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 560px) {
  .remu-synthese .remu-annees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .remu-synth-v { font-size: 32px; }
  .foyer-ligne .field { width: 100%; }
}

/* ═══════════ L'espace des incubateurs, redessiné (fil 4ad1a9ae) ═══════════
   Moins de cadres, moins de gras, des titres à leur taille. Une page se lit
   de haut en bas : où l'on est, ce qui demande une action, puis le détail.
   Les zones de saisie ne s'ouvrent qu'au moment d'écrire. */
.espace { background: var(--paper); }
.espace-tete { background: color-mix(in srgb, var(--paper) 88%, transparent); }
.espace-tete-in { padding: 10px 24px; }
.espace-lien { padding: 6px 12px; font-size: 13.5px; color: var(--ink-3); }
.espace-lien:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.espace-lien.is-on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule), 0 1px 2px rgba(14, 15, 12, .06); }
.espace-corps { max-width: 1120px; padding: 32px 24px 96px; }
.espace-titre { margin: 0 0 22px; }
.espace-surtitre { margin: 0 0 6px; font: 500 13px/1.3 var(--sans); color: var(--ink-4); }
.espace-titre h1 { font: 700 clamp(26px, 3vw, 34px)/1.12 var(--display); letter-spacing: -.02em; }
.espace-sous { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.espace-retour { margin: 0 0 14px; font-size: 13px; color: var(--ink-4); }
.espace-vide h1 { font: 700 28px/1.15 var(--display); }

/* Les initiales d'une personne, dans une pastille. */
.avatar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); font: 600 11.5px/1 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.avatar.is-structure { background: var(--ink); color: var(--accent); box-shadow: none; }
.avatar.is-moi { background: var(--accent-wash); }
.avatar-nom { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

/* Les blocs : un titre discret, un fond blanc, une ombre à peine. */
.suivi-bloc { margin: 0 0 32px; }
.suivi-bloc > h2, .suivi-bloc-tete h2 { font: 600 15px/1.3 var(--sans); letter-spacing: 0; margin: 0 0 12px; color: var(--ink); }
.suivi-bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.suivi-bloc-tete .muted { font-size: 13px; }

/* Les chiffres d'en-tête : une rangée, sans cadres lourds. */
.suivi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.suivi-kpi { border: 0; border-left: 1px solid var(--rule); border-radius: 0; padding: 14px 18px; background: transparent; }
.suivi-kpi:first-child { border-left: 0; }
.suivi-kpi b { font: 650 24px/1.1 var(--display); letter-spacing: -.01em; }
.suivi-kpi span { font-size: 12.5px; }
.suivi-kpi.is-neuf { background: var(--accent-wash); border-color: var(--rule); }
.suivi-kpi.is-neuf b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--ink); vertical-align: middle; }

/* Les promotions : des lignes cliquables, l'avancement en barre fine. */
.suivi-cartes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.suivi-carte { gap: 4px; padding: 16px 18px; border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.suivi-carte:hover { box-shadow: 0 1px 2px rgba(14, 15, 12, .05), 0 12px 28px -18px rgba(14, 15, 12, .35); transform: translateY(-1px); }
.suivi-carte b { font: 600 17px/1.3 var(--sans); letter-spacing: 0; }
.suivi-carte span { font-size: 13px; }
.suivi-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.suivi-carte-tete .suivi-statut { font-size: 11.5px; }
.suivi-barre { position: relative; height: 4px; margin: 10px 0 2px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.suivi-barre i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ink); }
.suivi-carte.is-finie { opacity: 1; background: var(--surface-2); }
.suivi-carte.is-finie .suivi-barre i { background: var(--ink-4); }
.suivi-carte-form { background: transparent; border: 1px dashed var(--ink-5); box-shadow: none; }
.suivi-carte-form:hover { transform: none; box-shadow: none; }
.suivi-carte-form b { font-size: 15px; }
.suivi-champ { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }

/* L'équipe : une liste nette, les initiales en tête. */
.suivi-equipe { border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.suivi-equipe li { padding: 10px 16px; }
.suivi-equipe-nom b { font-weight: 600; font-size: 14px; }
.suivi-inviter-equipe { padding: 12px 0 0; }

/* Inviter des entrepreneurs : un encart sobre. */
.suivi-inviter { padding: 16px 18px; border-radius: 14px; gap: 8px; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.suivi-inviter-tete h2 { font: 600 15px/1.3 var(--sans); }
.suivi-inviter textarea { min-height: 64px; font: 13.5px/1.5 var(--sans); background: var(--paper); }

/* Le tableau d'une promotion : air, alignements, initiales. */
.suivi-table { border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.suivi-table th { font: 500 12px/1.3 var(--sans); color: var(--ink-4); letter-spacing: 0; }
.suivi-table td { padding-top: 12px; padding-bottom: 12px; }
.suivi-table td b { font-weight: 600; }
.suivi-statut { padding: 2px 9px; font-size: 11.5px; }

/* Les fils : des messages légers ; la saisie tient sur une ligne et s'ouvre en écrivant. */
.fil .fil-msg, .fil .fil-msg.is-founder, .fil .fil-msg.is-structure { border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); padding: 12px 14px; }
.fil .fil-msg.is-neuf { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--rule); }
.fil .fil-suite .fil-msg { box-shadow: none; background: var(--surface-2); }
.fil-tete { display: flex; align-items: center; gap: 8px; }
.fil-tete b { font-weight: 600; font-size: 13.5px; }
.fil-quand { font-size: 12px; color: var(--ink-4); }
.fil-neuf { padding: 1px 7px; border-radius: 999px; background: var(--accent); font: 600 11px/1.5 var(--sans); color: var(--ink); }
.fil-texte { font-size: 14px; line-height: 1.5; }
.fil-actions { display: flex; gap: 4px; margin-top: 6px; }
.fil-action { padding: 3px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); font: 500 12.5px/1.4 var(--sans); text-decoration: none; cursor: pointer; }
.fil-action:hover { background: var(--surface-2); color: var(--ink); }
.fil-action.fil-voir { color: var(--ink); font-weight: 600; }
.fil-suite { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--rule); }
.fil-zone { font-size: 12.5px; color: var(--ink-3); }
.fil-form { position: relative; display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.fil-form .fil-saisie { flex: 1; min-height: 38px; height: 38px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font: 13.5px/1.45 var(--sans); resize: none; transition: height .15s ease, border-color .15s ease; }
.fil-form .fil-saisie:focus, .fil-form .fil-saisie:not(:placeholder-shown) { height: 84px; border-color: var(--ink-4); outline: none; }
.fil-form .btn { flex: none; }
.fil-form:not(:focus-within) .fil-saisie:placeholder-shown + .btn { display: none; }

/* Lire un plan : les parties en cartes plates, la colonne des commentaires sans fond. */
.lecture-partie { border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.lecture-partie-tete h2 { font: 600 17px/1.3 var(--sans); letter-spacing: 0; }
.lecture-partie-fil { background: transparent; }
.lecture-complete { padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); }
.lecture-complete .espace-sous { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 0; }
.lecture-sommaire a { font-size: 12.5px; }

/* L’entrepreneur : sa page Incubateur, dans le logiciel. */
.incub { display: flex; flex-direction: column; gap: 18px; max-width: 920px; }
.incub .espace-titre { margin: 0; }
.incub .accomp { padding: 18px 20px; border-radius: 16px; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.accomp-tete { align-items: center; margin: 0 0 14px; }
.accomp-tete h2 { display: flex; align-items: center; gap: 10px; font: 650 19px/1.25 var(--display); letter-spacing: -.01em; }
.accomp-tete .muted { font-size: 13px; }
.accomp-qui { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.accomp-qui .avatar { width: 26px; height: 26px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.accomp-qui .avatar:first-of-type { margin-left: 0; }
.accomp-questions { border-radius: 12px; }
.accomp-plan { border: 0; padding: 0; background: transparent; }
.accomp-plan-tete h3 { font: 600 15px/1.3 var(--sans); }
.accomp-fil h4 { margin: 18px 0 8px; font: 600 12.5px/1.3 var(--sans); color: var(--ink-4); letter-spacing: 0; text-transform: none; }
.accomp-comment { margin-top: 4px; border-top: 1px solid var(--rule); padding-top: 10px; }
.accomp-comment > summary { cursor: pointer; font: 500 13px/1.3 var(--sans); color: var(--ink-3); }
.accomp-comment[open] > summary { margin-bottom: 10px; }
.accomp-comment .accomp-etapes { margin: 0; }
.accomp-ecrire > summary { font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
@media (max-width: 720px) {
  .suivi-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suivi-kpi:nth-child(odd) { border-left: 0; }
  .suivi-kpi:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* Mon projet : « Valider » prend la place de « Modifier » tant que le statut
   n'est pas validé ; le nom de la forme garde toute sa largeur et passe à la
   ligne plutôt que d'être recouvert. */
.projet .legalline > .valider-chip { margin-left: 8px; flex: none; }
.projet .legalline-corps { flex: 1 1 auto; }
.projet .legalline-valeur > .legalline-name { flex: 0 1 auto; min-width: 0; white-space: normal; line-height: 1.25; }

/* Le détail d'une cotisation, ligne par ligne, en retrait sous son total. */
.costblock table.data tr.is-sub td, .fold-body table.data tr.is-sub td { color: var(--ink-3); font-size: 12px; }
.costblock table.data tr.is-sub td:first-child, .fold-body table.data tr.is-sub td:first-child { padding-left: 18px; }

/* Masse salariale › « Du brut au coût réel » : un poste par ligne, qui se
   déplie. Le nom à gauche, ce qu'il coûte à droite ; si la place manque, les
   montants passent dessous au lieu de recouvrir le nom (fil c9cd6d67). */
.fold + .fold { border-top: 1px solid var(--rule); }
.fold-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  padding: 12px 0; cursor: pointer; list-style: none; user-select: none;
}
.fold-summary::-webkit-details-marker { display: none; }
.fold-title { font: 600 14px/1.35 var(--sans); color: var(--ink); min-width: 0; }
.fold-hint { margin-left: auto; font-size: 13px; line-height: 1.4; color: var(--ink-3); min-width: 0; }
.fold-summary:hover .foldsign { border-color: var(--ink); color: var(--ink); }
.fold[open] > .fold-summary .foldsign { transform: rotate(180deg); border-color: var(--ink); color: var(--ink); }
.fold-body { padding: 2px 0 18px; }
/* Sur un écran étroit, le libellé passe à la ligne : le montant reste dans
   la carte au lieu d'en sortir. */
.fold-body table.data td:first-child { white-space: normal; }

/* Pourquoi certaines formes manquent, sous les cartes. */
.forme-raison { margin: 12px 0 0; }

/* Les boutons qui se lisent comme des liens. Ils étaient bleus ; à l'encre,
   un trait vert dessous dit qu'ils se cliquent (fil 7f3fcc83). */
.cost-lien, .sy-lire, .scen-geste.is-ouvrir, .fil-action, .foyer-mode, .foyer-affiner, .setup-mode,
.mt-lien, .auth-pied a, .accomp-ecrire summary, .legalline-edit {
  text-decoration: underline; text-decoration-color: var(--accent-dim); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.cost-lien:hover, .sy-lire:hover, .scen-geste.is-ouvrir:hover, .fil-action:hover, .foyer-mode:hover, .foyer-affiner:hover, .setup-mode:hover,
.mt-lien:hover, .auth-pied a:hover, .accomp-ecrire summary:hover { text-decoration-color: var(--ink); }

/* ─── Les textes prennent toute la ligne (fil e71ecbba, 2 octobre) ───
   Plus aucun texte n'est retenu à une largeur en caractères : il va jusqu'au
   bord de son cadre. Et une grille de champs ne laisse plus de colonne vide :
   un champ seul sur sa ligne en prend toute la largeur, deux champs dans une
   grille à trois se la partagent. Leur texte d'aide s'étale au lieu de
   s'empiler sur cinq lignes dans un tiers d'écran. Jamais plus de colonnes
   qu'avant, à chaque largeur d'écran. */
.grid-3:where(:has(> .field)) { grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 64px) / 3)), 1fr)); }
.grid-2:where(:has(> .field)) { grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 32px) / 2)), 1fr)); }
@media (max-width: 1080px) {
  .grid-3:where(:has(> .field)) { grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 32px) / 2)), 1fr)); }
}
@media (max-width: 860px) {
  .grid-2:where(:has(> .field)), .grid-3:where(:has(> .field)) { grid-template-columns: 1fr; }
}

/* Sur téléphone, l'en-tête d'une carte (offre, campagne, poste) passe sur
   deux lignes : le nom et sa description d'abord, sur toute la largeur, puis
   les chiffres et les boutons dessous, à droite. Tenus sur une seule ligne,
   le nom d'un poste n'avait plus que 35 pixels et sa description s'empilait
   mot à mot (fil e71ecbba). */
@media (max-width: 560px) {
  .item-head { flex-wrap: wrap; row-gap: 6px; }
  .item-head > .spacer { flex: 1 1 0; min-width: 0; }
  /* Un saut de ligne après le nom : tout ce qui le suit passe dessous. */
  .item-head::before { content: ''; flex-basis: 100%; height: 0; order: 1; }
  .item-head > .spacer ~ * { order: 2; }
  .item-head > .spacer + * { margin-left: auto; }
  /* Un nom long passe à la ligne au lieu d'être coupé par le bord. */
  .item-head > .spacer > .item-title { flex: 0 1 auto; white-space: normal; min-width: 0; }
}

/* ─── La question du guide, par-dessus la page (fil 696d1d79) ───
   Les mots et la mise en page des questions du parcours d'accueil : une
   phrase en grand, un champ souligné, « Valider ». La page reste derrière,
   fortement floutée : on sait où l'on est, on ne voit que la question. */
.qg { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.qg-fond {
  position: absolute; inset: 0; background: rgba(14, 15, 12, .28);
  -webkit-backdrop-filter: blur(18px) saturate(.9); backdrop-filter: blur(18px) saturate(.9);
  opacity: 0; transition: opacity .26s var(--ease);
}
.qg-carte {
  position: relative; width: min(720px, 100%); max-height: calc(100dvh - 48px); overflow: auto;
  background: var(--surface); border-radius: 22px; padding: 30px 34px 26px;
  box-shadow: 0 30px 80px rgba(14, 15, 12, .28), 0 2px 0 rgba(14, 15, 12, .06);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .26s var(--ease), transform .32s var(--ease);
}
.qg.is-ouverte .qg-fond { opacity: 1; }
.qg.is-ouverte .qg-carte { opacity: 1; transform: none; }
.qg.is-fermee .qg-fond, .qg.is-fermee .qg-carte { opacity: 0; transition-duration: .2s; }
.qg-fermer {
  position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: none; color: var(--ink-4); font-size: 22px; line-height: 1; cursor: pointer;
}
.qg-fermer:hover { background: var(--surface-2); color: var(--ink); }
.qg-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font: 600 12.5px/1.2 var(--sans); color: var(--ink-2); background: var(--accent-wash);
}
.qg-q {
  margin: 0 0 8px; font-family: var(--display); font-weight: 800;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.08; color: var(--ink);
  white-space: nowrap;
}
/* Sur une ligne, comme les questions du parcours : le corps se réduit au
   besoin ; trop longue même ainsi, elle se replie. */
.qg-q.is-replie { white-space: normal; }
.qg-aide { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.qg-champ { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); }
.qg-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 6px 0 10px;
  font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -.035em; color: var(--ink);
}
.qg-suffixe { flex: none; font: 500 14px/1.2 var(--sans); color: var(--ink-4); white-space: nowrap; }
.qg-champ.is-texte { border-bottom: 0; }
.qg-texte {
  width: 100%; border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; resize: vertical;
  font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--surface-2); outline: 0;
}
.qg-texte:focus { border-color: var(--ink); background: var(--surface); }
.qg-choix-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.qg-choix {
  display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.qg-choix:hover { border-color: var(--ink-4); }
.qg-choix.is-on { border-color: var(--ink); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--ink); }
.qg-choix-nom { font: 700 15px/1.25 var(--sans); }
.qg-choix-note { font: 400 13px/1.4 var(--sans); color: var(--ink-3); }
.qg-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.qg-valider[disabled] { opacity: .45; cursor: default; }
.qg-plus-tard { border: 0; background: none; padding: 6px 2px; font: 500 14px/1.2 var(--sans); color: var(--ink-3); cursor: pointer; }
.qg-plus-tard:hover { color: var(--ink); }
/* Les questions s'enchaînent : la barre du dossier en haut de la carte, qui
   avance d'une question à l'autre, et le compte des réponses posées. */
.qg-avance { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rule); }
.qg-avance-barre { display: block; height: 100%; width: 0; background: var(--accent); transition: width .7s cubic-bezier(.2,.7,.3,1); }
.qg-compte { margin-left: auto; font: 500 13px/1.2 var(--sans); color: var(--ink-4); white-space: nowrap; }

/* La réponse en vol, puis posée : la case s'allume d'un halo vert-jaune. */
.qg-envol {
  position: fixed; z-index: 130; pointer-events: none; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--accent); white-space: nowrap;
  font: 700 18px/1.2 var(--display); letter-spacing: -.02em;
  box-shadow: 0 12px 30px rgba(14, 15, 12, .3);
}
.qg-envol.is-texte { max-width: min(560px, 80vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 14px/1.3 var(--sans); }
/* Deux ombres suivent la réponse : une traînée, sans relief. */
.qg-envol.is-trace { box-shadow: none; z-index: 129; }
/* À l'arrivée, une onde part de la case ; le gain du dossier monte et s'efface. */
.qg-onde {
  position: fixed; z-index: 129; pointer-events: none; border-radius: 12px;
  border: 2px solid var(--accent); box-shadow: 0 0 0 1px rgba(14, 15, 12, .08);
}
.qg-gain {
  position: fixed; z-index: 131; pointer-events: none; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: var(--accent); font: 700 13px/1.2 var(--sans); white-space: nowrap;
  box-shadow: 0 8px 20px rgba(14, 15, 12, .22);
}
/* « ✓ Enregistré », au-dessus de la case qui vient de recevoir sa réponse. */
.qg-recu {
  position: fixed; z-index: 131; pointer-events: none; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font: 700 12.5px/1.2 var(--sans); white-space: nowrap;
  box-shadow: 0 8px 20px rgba(14, 15, 12, .18); transform: translate(0, -125%);
}
.qg-pose { animation: qg-pose 1.4s var(--ease) both; border-radius: 12px; }
@keyframes qg-pose {
  0% { box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); }
  20% { box-shadow: 0 0 0 6px rgba(185, 245, 16, .75); }
  100% { box-shadow: 0 0 0 14px rgba(185, 245, 16, 0); }
}
.qg-eclat {
  position: fixed; z-index: 130; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 0 1px rgba(14, 15, 12, .15);
}
@media (prefers-reduced-motion: reduce) {
  .qg-fond, .qg-carte { transition: none; }
  .qg-pose { animation: none; box-shadow: 0 0 0 3px var(--accent); }
  .qg-avance-barre { transition: none; }
}
@media (max-width: 560px) {
  .qg { padding: 12px; align-items: end; }
  .qg-carte { padding: 24px 20px 20px; border-radius: 20px; }
}

/* ─── Le bandeau de la mascotte, sous le titre des pages de saisie ───
   La question de la page, sur une ligne : la mascotte, la question, la case
   où l'on répond, « Valider ». La réponse descend ensuite se poser dans son
   champ ; la ligne suivante prend sa place. Replié, il devient une pastille. */
.bq {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 var(--s-3); padding: 8px 10px 8px 12px; min-height: 56px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--rule);
  box-shadow: 0 10px 28px -20px rgba(14, 15, 12, .35);
}
.bq.is-fresh { animation: bq-arrive .45s var(--ease) both; }
@keyframes bq-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bq-mascotte { flex: none; width: 40px; height: 40px; }
.bq-corps { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.bq-q { min-width: 0; font: 700 15px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.bq-champ { flex: none; display: inline-flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ink); padding: 0 2px; cursor: text; }
.bq-champ.is-texte { flex: 1 1 260px; }
.bq-input {
  width: 110px; min-width: 0; border: 0; outline: 0; background: none; padding: 4px 0;
  font: 700 18px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink);
}
.bq-input.is-texte { width: 100%; font: 500 15px/1.3 var(--sans); letter-spacing: 0; }
.bq-suffixe { font: 500 13px/1.2 var(--sans); color: var(--ink-4); white-space: nowrap; }
.bq-choix-liste { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.bq-choix {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface);
  font: 600 13px/1.2 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.bq-choix:hover { border-color: var(--ink-4); }
.bq-choix.is-on { border-color: var(--ink); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--ink); }
.bq-actions { flex: none; display: flex; align-items: center; gap: 12px; }
.bq-valider[disabled] { opacity: .45; cursor: default; }
.bq-plus-tard { border: 0; background: none; padding: 4px 2px; font: 500 13px/1.2 var(--sans); color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.bq-plus-tard:hover { color: var(--ink); }
.bq-compte { font: 500 12.5px/1.2 var(--sans); color: var(--ink-4); white-space: nowrap; }
.bq-plier { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--ink-4); font-size: 18px; line-height: 1; cursor: pointer; }
.bq-plier:hover { background: var(--surface-2); color: var(--ink); }
.bq-pastille {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); padding: 4px 12px 4px 6px;
  border-radius: 999px; border: 1px solid var(--rule); background: var(--surface);
  font: 600 13px/1.2 var(--sans); color: var(--ink-2); cursor: pointer;
}
.bq-pastille:hover { border-color: var(--ink-4); color: var(--ink); }
.bq-pastille-mascotte { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .bq { flex-wrap: wrap; align-items: flex-start; }
  .bq-corps { flex: 1 1 calc(100% - 54px); }
  .bq-actions { flex: 1 1 100%; padding-left: 54px; }
}
@media (prefers-reduced-motion: reduce) { .bq.is-fresh { animation: none; } }

/* Mon projet : répondre aux questions de tout le dossier, depuis la barre noire. */
.etape-questions {
  flex: none; cursor: pointer; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--accent); background: var(--accent);
  font: 700 15px/1.2 var(--display); color: var(--accent-ink); white-space: nowrap;
}
.etape-questions:hover { filter: brightness(1.05); }

/* Annuler, rétablir (ui/histoire.js) : deux flèches dessinées dans une cible
   de 34 px, un cran plus grandes que les glyphes d'avant (retours du 5
   octobre au soir) ; c'est le style gardé (fil 85ced48f, 6 octobre). */
.histo { display: inline-flex; align-items: center; gap: 2px; }
.histo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 7px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2); font: 600 12.5px/1 var(--sans); cursor: pointer;
  transition: background-color .15s var(--ease-soft), color .15s var(--ease-soft);
}
.histo-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.histo-btn:disabled { opacity: .35; cursor: default; }
.histo-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.histo-ico { display: inline-grid; width: 19px; height: 19px; flex: none; }
.histo-ico svg { width: 100%; height: 100%; }

/* ═══════════ L'espace des incubateurs : sièges, coachs, promotions ═══════════
   Retours du 5 octobre au soir : moins de défilement pour le responsable,
   « Nouvelle promotion » en évidence, une promotion s'ouvre d'un clic et
   accueille de nouveaux entrepreneurs ; un coach se voit confier des promotions ou
   des entrepreneurs ; le coach trouve ses entrepreneurs en tête. Chaque texte tient sur
   une ligne : ce qui dépasse s'arrête par des points de suspension, le texte
   entier en infobulle. */
.suivi-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.suivi-entete-texte { min-width: 0; flex: 1 1 420px; }
.suivi-entete-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.suivi-entete-actions .btn { white-space: nowrap; }
.suivi-places { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 0; }
.suivi-place { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font: 500 12.5px/1.5 var(--sans); color: var(--ink-3); white-space: nowrap; }
.suivi-place b { font-weight: 650; color: var(--ink); }
.suivi-place.is-plein { background: var(--warn-wash); color: var(--warn); box-shadow: none; }
.suivi-place.is-plein b { color: var(--warn); }
.suivi-place.is-bientot { background: var(--warn-wash); color: var(--warn); box-shadow: none; }
.suivi-place.is-fin { background: var(--loss-wash); color: var(--loss); box-shadow: none; }
.suivi-bandeau { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.suivi-bandeau.is-fin { background: var(--loss-wash); color: var(--ink); box-shadow: inset 3px 0 0 var(--loss); }
.suivi-haut .suivi-kpis { margin-bottom: 22px; }
.suivi-kpi b { white-space: nowrap; }
.suivi-kpi span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Deux colonnes : les promotions, l'équipe à côté. */
.suivi-grille { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.suivi-grille > .suivi-bloc { margin: 0; }
@media (max-width: 960px) { .suivi-grille { grid-template-columns: minmax(0, 1fr); } }
.suivi-bloc-tete { align-items: center; margin: 0 0 10px; min-height: 32px; }
.suivi-bloc-tete h2 { margin: 0; }
.suivi-bloc-tete .btn { white-space: nowrap; }
.suivi-vide { margin: 0; padding: 18px 20px; border: 1px dashed var(--ink-5); border-radius: 14px; color: var(--ink-3); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.suivi-vide p { margin: 0; }

/* Une promotion par rangée : nom, état, chiffres ; un clic l'ouvre. */
.suivi-rangees { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(14, 15, 12, .05); }
.suivi-rangee { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 0; border-top: 1px solid var(--rule); transition: background .12s ease; }
.suivi-rangee:first-child { border-top: 0; }
.suivi-rangee:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.suivi-rangee.is-finie { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.suivi-rangee-lien { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 0 12px 16px; color: var(--ink); text-decoration: none; border-bottom: 0; }
.suivi-rangee-lien:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 10px; }
.suivi-rangee-tete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.suivi-rangee-tete b { font: 600 15px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.suivi-rangee-tete .suivi-statut { flex: none; }
.suivi-rangee-sous { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suivi-rangee-sous strong { color: var(--ink); font-weight: 600; }
.suivi-rangee .suivi-barre { margin: 6px 0 0; max-width: 320px; }
.suivi-rangee.is-finie .suivi-barre i { background: var(--ink-4); }
.suivi-rangee-action { flex: none; white-space: nowrap; }
.suivi-rangee-fleche { flex: none; color: var(--ink-4); font-size: 15px; transition: transform .12s ease, color .12s ease; }
.suivi-rangee:hover .suivi-rangee-fleche { color: var(--ink); transform: translateX(2px); }

/* L'équipe : nom et rôle sur une ligne, ce que suit le coach dessous. */
.suivi-bloc-equipe .suivi-equipe { margin: 0; }
.suivi-equipe li { gap: 10px; padding: 10px 14px; }
.suivi-equipe-ligne { display: flex; align-items: center; gap: 8px; min-width: 0; }
.suivi-equipe-ligne b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.suivi-equipe-ligne .chip { flex: none; }
.suivi-equipe-nom .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.suivi-equipe .suivi-actions { flex: none; gap: 2px; flex-wrap: nowrap; }

/* Le tableau des entrepreneurs : le projet sous le nom, « Ouvrir » au bout de la ligne. */
.suivi-table table { min-width: 820px; }
.suivi-table.avec-promotion table { min-width: 940px; }
.suivi-table th { white-space: nowrap; }
.suivi-qui { display: flex; flex-direction: column; min-width: 0; max-width: 260px; }
.suivi-qui > b, .suivi-coachs, .suivi-projet a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suivi-projet { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.suivi-projet a { color: var(--ink-2); font-weight: 500; min-width: 0; }
.suivi-coachs { font-size: 12px; color: var(--ink-4); }
.suivi-promo span { display: block; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); font-size: 13px; }
.suivi-table .suivi-actions { flex-wrap: nowrap; gap: 6px; }
.suivi-table td.suivi-cellule-actions { padding-right: 12px; }
.suivi-ouvrir { white-space: nowrap; }
.suivi-inviter[hidden] { display: none; }

/* Les fenêtres de dialogue : un formulaire court, ses aides sous les champs. */
.dialogue { width: min(520px, 100%); border-radius: 18px; border: 1px solid var(--rule); box-shadow: 0 24px 60px -24px rgba(14, 15, 12, .45); }
.dialogue.dialogue-large { width: min(640px, 100%); }
.dialogue .modal-head h2 { margin: 0; font: 650 19px/1.25 var(--display); letter-spacing: -.01em; }
.dialogue .modal-body { display: flex; flex-direction: column; gap: 14px; }
.dialogue .modal-foot { border-top: 0; padding-top: 4px; }
.dialogue-intro { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.dialogue-champ, .dialogue-bloc { display: flex; flex-direction: column; gap: 6px; }
.dialogue-bloc[hidden] { display: none; }
.dialogue-libelle { font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
.dialogue-champ .control input, .dialogue-champ .control select { width: 100%; }
.dialogue-aide { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.dialogue-aide.is-alerte { color: var(--warn); font-weight: 500; }
.dialogue-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.dialogue-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; }
.dialogue-radio:has(input:checked) { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dialogue-radio input { margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.dialogue-radio > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dialogue-radio b { font: 600 13.5px/1.3 var(--sans); }
.dialogue-radio > span > span { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.dialogue-choix { display: flex; flex-direction: column; gap: 12px; }
.dialogue-choix[hidden] { display: none; }
.dialogue-choix fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dialogue-choix legend { padding: 0; margin: 0 0 6px; font: 600 12px/1.3 var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.dialogue-coches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 210px; overflow-y: auto; padding: 2px; }
@media (max-width: 560px) { .dialogue-coches { grid-template-columns: minmax(0, 1fr); } }
.dialogue-coche { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.dialogue-coche[hidden] { display: none; }
.dialogue-coche:hover { background: var(--surface-2); }
.dialogue-coche input { accent-color: var(--ink); margin: 0; }
.dialogue-coche-texte { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialogue-coche-sous { grid-column: 2; font-size: 11.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════ L'administration, rangée par sujet ═══════════
   Retours du 5 octobre au soir : des catégories plutôt qu'une rangée
   d'onglets ; les sièges et la date des structures ; l'export des comptes ;
   des règles de calcul qu'un commissaire aux comptes vérifie ligne à ligne. */
.admin-groupes { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-end; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.admin-groupe { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.admin-groupe-titre { font: 600 11px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); padding-left: 2px; }
.admin-groupes .admin-onglets { margin: 0; flex-wrap: wrap; }
.admin-onglet { white-space: nowrap; font-size: 13.5px; padding: 5px 13px; }
.admin-comptes-tete { flex-wrap: wrap; gap: 10px; }
.admin-exports { display: flex; gap: 6px; flex-wrap: nowrap; }
.admin-export { white-space: nowrap; }

/* Les structures : sièges occupés sur achetés, la date de fin. */
.admin-structure-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) repeat(3, minmax(0, .7fr)); gap: 10px; align-items: end; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.admin-structure-form .control input { width: 100%; }
.admin-structure-form .auth-label { white-space: nowrap; }
.admin-sf-pied { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.admin-sf-pied p { margin: 0; }
.admin-sf-pied .btn { white-space: nowrap; }
.admin-structure-form .auth-message { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) { .admin-structure-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .admin-sf-nom, .admin-sf-email { grid-column: 1 / -1; } }
.admin-structures td { vertical-align: top; }
.admin-sieges { white-space: nowrap; font-size: 14px; }
.admin-sieges b { font-weight: 600; }
.admin-sieges.is-plein b { color: var(--warn); }
.admin-validite { white-space: nowrap; font-size: 13.5px; }
.admin-validite.is-bientot { color: var(--warn); font-weight: 600; }
.admin-validite.is-fin { color: var(--loss); font-weight: 600; }
.admin-structure-actions .btn { white-space: nowrap; }
.dialogue-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .dialogue-deux { grid-template-columns: minmax(0, 1fr); } }

/* Les règles de calcul : par domaine, avec leurs sources. */
.admin-regles-tete { flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.admin-regles-aide { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 8px 20px; margin: 0 16px 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.admin-regles-aide p { margin: 0; }
.admin-regles-outils { display: flex; flex-direction: column; gap: 10px; margin: 0 16px 16px; }
.admin-regles-outils .admin-recherche { max-width: 420px; }
.admin-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font: 500 12.5px/1.4 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.admin-puce:hover { border-color: var(--ink-4); }
.admin-puce.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.admin-puce-n { font-size: 11.5px; color: var(--ink-4); }
.admin-puce.is-on .admin-puce-n { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.admin-domaines { display: flex; flex-direction: column; gap: 22px; padding: 0 0 8px; }
.admin-domaine-tete { display: flex; align-items: baseline; gap: 10px; margin: 0 16px 2px; }
.admin-domaine-tete h3 { margin: 0; font: 650 16px/1.3 var(--sans); }
.admin-domaine-resume { margin: 0 16px 8px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.admin-regles-table td { vertical-align: top; }
.admin-regles-table th:nth-child(1) { width: 30%; }
.admin-regles-table th:nth-child(2) { width: 24%; }
.admin-regle-nom b { font-weight: 600; }
.admin-regle-note { margin-top: 6px; }
.admin-regle-note summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); width: max-content; }
.admin-regle-note summary:hover { color: var(--ink); }
.admin-regle-note p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); max-width: 560px; white-space: normal; }
.admin-valeur div { white-space: nowrap; font-size: 12.5px; }
.admin-source { line-height: 1.45; min-width: 220px; }
.admin-fiabilite { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11.5px/1.5 var(--sans); white-space: nowrap; }
.admin-fiabilite.is-enacted { background: var(--gain-wash); color: var(--gain); }
.admin-fiabilite.is-stable { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.admin-fiabilite.is-to-verify { background: var(--warn-wash); color: var(--warn); }
.admin-regles-table th, .admin-regles-table td { text-align: left; }
.admin-regles-table th:nth-child(2), .admin-regles-table td.admin-valeur { text-align: right; }
.admin-regles-table td:nth-child(n+3) { font-family: var(--sans); letter-spacing: 0; }
.admin-regles-table td.admin-source { white-space: normal; min-width: 240px; max-width: 440px; color: var(--ink-3); }
.admin-regles-table td.admin-regle-nom { color: var(--ink); }

/* Mon compte : te joindre. */
.compte-contact { display: flex; flex-direction: column; gap: 12px; }
.compte-tel { max-width: 320px; }
.compte-tel .control input { width: 100%; }
.compte-accord { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.compte-accord input { margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.compte-contact-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Un projet enregistré avant le modèle propre de son métier (9 octobre 2026). */
.metier-nouveau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.metier-nouveau .field-hint { flex: 1 1 260px; margin: 0; }

/* Un meublé de tourisme : la question du classement, au-dessus des formes ;
   sous « Nature de ton activité », la raison de la case (audit, ANO-06). */
.meuble-classe { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.meuble-q { margin: 0; font: 600 14px/1.35 var(--sans); color: var(--ink); }
.meuble-classe .field-hint { margin: 0; }
.regime-raison { margin: 8px 0 0; }

/* Le petit-déjeuner d'un hébergement (décision D3, 11 octobre 2026) : un
   petit avertissement de mise à jour de la TVA, en fenêtre, sur un fond
   fortement flouté, qui explique (js/ui/avis-tva.js). */
.avis-tva-fond { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px 16px; background: rgba(14, 15, 12, .28); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); overflow-y: auto; animation: avis-tva-voile .25s var(--ease) both; }
.avis-tva-fond.is-sortie { animation: avis-tva-sortie .2s var(--ease) both; pointer-events: none; }
.avis-tva { display: grid; gap: 12px; width: min(520px, 100%); padding: 26px 26px 22px; border-radius: 24px; background: var(--surface); box-shadow: 0 24px 60px rgba(14, 15, 12, .28); font-family: var(--sans); animation: avis-tva-monte .35s var(--ease) both; }
.avis-tva h2 { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.avis-tva p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.avis-tva .avis-tva-source { font-size: 12px; color: var(--ink-4); }
.avis-tva-tag { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 4px 11px 4px 5px; border-radius: 999px; background: var(--warn-wash); color: var(--warn); font: 600 12px/1.2 var(--sans); }
.avis-tva-signe { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: #FFFFFF; font: 700 11px/1 var(--sans); }
.avis-tva-pied { display: flex; justify-content: flex-end; margin-top: 4px; }
.avis-tva-pied .btn { border-radius: 999px; }
@keyframes avis-tva-voile { from { opacity: 0; } }
@keyframes avis-tva-sortie { to { opacity: 0; } }
@keyframes avis-tva-monte { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .avis-tva-fond, .avis-tva { animation: none; } }
@media (max-width: 520px) { .avis-tva { padding: 22px 18px 18px; } .avis-tva h2 { font-size: 19px; } }

/* DÉMO — le bouton « Démo » de l'aperçu (js/demo/). Absent de fynomia.fr. */

.demo-choix-compte {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 180;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--sans);
}
.demo-pastille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 500 13px/1.2 var(--sans); cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(11, 14, 16, .14);
  transition: transform .12s var(--ease-soft, ease), box-shadow .12s;
}
.demo-pastille:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 14, 16, .18); }
.demo-pastille:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.demo-pastille.is-active { background: var(--ink); color: var(--surface); }
.demo-pastille b { font-weight: 600; }
.demo-point { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-5); flex: none; }
.demo-pastille.is-active .demo-point { background: var(--accent); }

.demo-menu {
  width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto;
  padding: 16px; border: 1px solid var(--ink); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 48px rgba(11, 14, 16, .22);
}
.demo-menu-titre { margin: 0 0 4px; font: 600 16px/1.3 var(--sans); }
.demo-menu-note { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.demo-compte {
  display: grid; gap: 2px; width: 100%; text-align: left;
  padding: 10px 12px; margin: 0 0 6px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface-2); color: var(--ink); cursor: pointer; font-family: var(--sans);
}
.demo-compte:hover { border-color: var(--ink); }
.demo-compte:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.demo-compte.is-on { border-color: var(--ink); background: var(--accent-wash); }
.demo-compte b { font-size: 14px; font-weight: 600; }
.demo-compte span { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.demo-menu-pied { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.demo-lien { padding: 4px 0; border: 0; background: none; color: var(--signal-ink); font: 500 13px/1.3 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.demo-lien.is-on { color: var(--ink-4); text-decoration: none; cursor: default; }

/* Les messages passent au-dessus du bouton. */
.is-demo .toasts, .demo-choix-compte ~ .toasts { bottom: calc(var(--impact-h) + 40px); }
/* Un message qui propose d'y aller (une charge passée dans un autre bloc) : le bouton se clique. */
.toast-ligne { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.toast-action { pointer-events: auto; border: 0; border-radius: 999px; padding: 3px 11px; background: var(--signal); color: var(--ink); font: 600 12px/1.4 var(--sans); cursor: pointer; }
.toast-action:hover { filter: brightness(1.05); }
.toast-action:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 720px) {
  .demo-choix-compte { left: 12px; transform: none; align-items: flex-start; bottom: 12px; }
  .demo-pastille { font-size: 12px; padding: 7px 12px; }
}
@media print { .demo-choix-compte { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   APERÇU — Offre, Achats et Équipe, épurées ou en constructeur (js/demo/epure/).
   Absent de fynomia.fr. Les jetons sont ceux de la charte (css/app.css).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Le sélecteur, au-dessus du bouton « Démo ». */
.ep-choix {
  position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 180;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--surface);
  box-shadow: 0 6px 18px rgba(11, 14, 16, .14); font-family: var(--sans);
}
.ep-choix[hidden] { display: none; }
/* Tiroir ouvert : le sélecteur et le bouton « Démo » s'effacent, ils couvriraient ses champs. */
body:has(.ep-couche) .ep-choix, body:has(.ep-couche) .demo-choix-compte { display: none; }
.ep-choix-titre { font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; margin-right: 4px; }
.ep-choix-btn {
  padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-3);
  font: 500 13px/1.2 var(--sans); cursor: pointer; white-space: nowrap;
}
.ep-choix-btn:hover { color: var(--ink); background: var(--surface-2); }
.ep-choix-btn.is-on { background: var(--ink); color: var(--surface); }
.ep-choix-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* La place du sélecteur, sous la dernière carte. */
.ep-page { padding-bottom: 96px; }

/* Les chiffres de la page, en tuiles. */
.ep-tete { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 var(--s-5); flex-wrap: wrap; }
.ep-tuiles { flex: 1 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; min-width: 0; }
.ep-tuile {
  display: grid; gap: 4px; align-content: start; min-width: 0; padding: 14px 16px 13px;
  border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface);
}
.ep-tuile-l { font: 500 12px/1.3 var(--sans); color: var(--ink-3); }
.ep-tuile-v { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ep-tuile-v.is-bad { color: var(--loss); }
.ep-tuile-v.is-good { color: var(--ink); }
.ep-tuile-note { font-size: 12px; line-height: 1.35; color: var(--ink-4); }
.ep-tete-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }

/* La liste en cartes. */
.ep-liste { margin: 0 0 var(--s-5); }
.ep-liste-tete { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 var(--s-3); }
.ep-liste-tete h2 { margin: 0; font-family: var(--display); font-size: var(--t-block); font-weight: 700; color: var(--ink); }
.ep-liste-tete p { margin: 0; font-size: 13px; color: var(--ink-4); }
.ep-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ep-carte {
  display: grid; gap: 14px; align-content: start; min-width: 0; padding: 16px 18px 15px;
  border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); cursor: pointer;
  transition: border-color .15s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ep-carte:hover { border-color: var(--ink-5); box-shadow: 0 14px 34px -22px rgba(14, 15, 12, .45); transform: translateY(-1px); }
.ep-carte:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-carte.is-ouverte { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent), 0 14px 34px -22px rgba(14, 15, 12, .45); }
.ep-carte.is-off { background: var(--surface-2); }
.ep-carte.is-off .ep-carte-chiffres, .ep-carte.is-off .ep-carte-nom { opacity: .55; }
/* En pause, le chiffre se barre (retours du 5 octobre) : il reste lisible, il ne compte plus.
   Toute ligne en pause de l'aperçu : carte, charge, coût d'une vente, offre. */
:is(.ep-carte.is-off, .ep-ligne.is-off, .ep-cout-ligne.is-off, .ep-of-carte.is-pause) .num,
.ep-apercu .cost-row.is-off :is(input[inputmode="decimal"], input[inputmode="numeric"]) { text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* L'interrupteur de l'aperçu : voir la charte, en fin de feuille (anis allumé, pouce blanc). */
.ep-carte-tete { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ep-carte-nom { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ep-carte-nom b { font-size: var(--t-row); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ep-carte-nom span { font-size: 12px; color: var(--ink-4); }
.ep-carte-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.ep-carte-chiffre { display: grid; gap: 2px; min-width: 0; }
.ep-carte-chiffre dt { font-size: 12px; color: var(--ink-4); }
.ep-carte-chiffre dd { margin: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.ep-carte-chiffre dd b { font-size: 17px; font-weight: 600; color: var(--ink); }
.ep-carte-chiffre.is-mauvais dd b { color: var(--loss); }
.ep-unite { font-size: 12px; color: var(--ink-4); }
.ep-carte-ajout {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 132px; padding: 16px;
  border: 1.5px dashed var(--rule); border-radius: var(--r-lg, 16px); background: none; color: var(--ink-3);
  font: 500 14px/1.3 var(--sans); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.ep-carte-ajout:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
/* Fil 8cf8b80d (« rétrécir un peu les cartes en baissant la taille de typo ;
   le plus long texte doit tenir sur une ligne ») : moins de marge, un visage
   plus petit, un titre en 13 px et la ligne du contrat en 11 px, chacun sur
   une seule ligne. Une carte ne descend plus sous 356 px : à 1 440 px, quatre
   colonnes laissaient 164 px au titre, et « Fondatrice (direction et ventes) »
   en demande 234. Un texte qui ne tiendrait toujours pas finit en « … », et
   la carte le donne en entier au survol. */
html.ep-apercu .ep-grille { grid-template-columns: repeat(auto-fill, minmax(min(100%, 356px), 1fr)); }
html.ep-apercu .ep-carte { gap: 12px; padding: 13px 15px 12px; }
html.ep-apercu .ep-carte-tete { gap: 9px; }
html.ep-apercu .ep-carte .ep-av.is-moyen { width: 36px; height: 36px; }
html.ep-apercu .ep-carte-nom b { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
html.ep-apercu .ep-carte-nom span { font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .ep-carte-chiffre dt { font-size: 11.5px; }
html.ep-apercu .ep-carte-chiffre dd b { font-size: 15.5px; }

/* Pictogrammes. */
/* Une tuile en relief léger ; dedans, le trait à l'encre sur un aplat jaune
   (retours du 5 octobre : « des logos beaucoup plus chiadés »). Teintée par
   famille, la tuile prend sa couleur et l'aplat devient une ombre de la sienne. */
.ep-picto {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-2) 100%); border: 1px solid rgba(14, 15, 12, .09); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(14, 15, 12, .06), 0 6px 14px -10px rgba(14, 15, 12, .35);
}
.ep-picto svg { width: 18px; height: 18px; overflow: visible; }
.ep-picto .ep-pf { fill: var(--accent); }
[data-famille] .ep-picto .ep-pf { fill: currentColor; opacity: .22; }
.ep-picto.is-petit { width: 16px; height: 16px; border: 0; background: none; border-radius: 0; box-shadow: none; }
.ep-picto.is-petit svg { width: 15px; height: 15px; }
.ep-picto.is-plus { width: 26px; height: 26px; border-radius: 8px; }
.ep-picto.is-fleche { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }

/* Le tiroir : le même que celui du récit (« Comprendre ce chiffre »), plus large. */
.ep-voile {
  position: fixed; inset: 0; z-index: 88; background: rgba(242, 240, 232, .38);
  -webkit-backdrop-filter: blur(6px) saturate(1.05); backdrop-filter: blur(6px) saturate(1.05);
}
.ep-voile.is-entree { animation: ep-fondu .22s var(--ease-soft) both; }
.ep-voile.is-sortie { animation: ep-fondu .2s var(--ease-soft) reverse both; }
.ep-couche {
  position: fixed; z-index: 89; top: 0; right: 0; bottom: 0; width: min(760px, calc(100vw - 96px));
  display: flex; flex-direction: column; outline: none; background: var(--surface-2);
  border-radius: 22px 0 0 22px; box-shadow: 0 30px 80px -30px rgba(14, 15, 12, .55), 0 0 0 1px rgba(14, 15, 12, .06);
}
.ep-couche.is-entree { animation: ep-glisse .34s var(--ease) both; }
.ep-couche.is-sortie { animation: ep-glisse .2s var(--ease-soft) reverse both; }
@keyframes ep-glisse { from { transform: translateX(104%); } to { transform: none; } }
@keyframes ep-fondu { from { opacity: 0; } to { opacity: 1; } }
.ep-couche-tete {
  display: flex; align-items: center; gap: 10px; padding: 18px 22px 16px;
  background: var(--surface); border-bottom: 1px solid var(--rule); border-radius: 22px 0 0 0;
}
.ep-couche-titre { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.018em; color: var(--ink); overflow-wrap: anywhere; }
.ep-couche-nom { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.ep-couche-badge { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ep-espace { flex: 1; }
.ep-couche-action {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid transparent; border-radius: 999px;
  background: none; color: var(--ink-3); font: 500 13px/1 var(--sans); cursor: pointer; white-space: nowrap;
}
.ep-couche-action:hover { border-color: var(--rule); color: var(--ink); background: var(--surface-2); }
.ep-couche-action.is-danger { color: var(--loss); }
.ep-couche-action.is-danger:hover { border-color: var(--loss-wash); background: var(--loss-wash); color: var(--loss); }
.ep-couche-fermer {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-3);
}
.ep-couche-fermer svg { width: 15px; height: 15px; }
.ep-couche-fermer:hover { border-color: var(--ink); color: var(--ink); }
.ep-couche-corps { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 16px; align-content: start; padding: 20px 22px 120px; }
.ep-couche-corps > *, .ep-bloc > *, .ep-regle-corps > *, .ep-brique-corps > * { min-width: 0; }
/* « Valider », au pied de chaque tiroir qui a des champs. */
.ep-couche-pied {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  background: var(--surface); border-top: 1px solid var(--rule); border-radius: 0 0 0 22px;
}
.ep-couche-pied-note { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink-4); }
.ep-valider { flex: none; min-width: 128px; justify-content: center; }
.ep-couche:has(> .ep-couche-pied) > .ep-couche-corps { padding-bottom: 32px; }
@media (max-width: 760px) {
  .ep-couche-pied { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 0; }
  .ep-couche-pied-note { display: none; }
  .ep-valider { flex: 1 1 auto; }
}
.ep-onglets { min-width: 0; }

/* Les sections du tiroir. */
.ep-bloc { display: grid; gap: 14px; padding: 18px 18px 18px; border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); min-width: 0; }
.ep-bloc-titre { margin: 0; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.ep-champs { display: grid; gap: 12px; min-width: 0; align-items: start; }
.ep-champs.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-champs.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Le tiroir d'une offre : nom, vente, prix et TVA sur une rangée (fil 76912032). */
.ep-champs.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ep-champs > .ep-champ { display: grid; min-width: 0; }
.ep-champs > .unite-choix { display: grid; gap: 12px; min-width: 0; }
.ep-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* « Ce que coûte une vente » : une ligne, son montant, une flèche vers Achats. */
.ep-cout {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; text-align: left;
  border: 1px solid var(--rule); border-radius: var(--r-md, 12px); background: var(--surface-2); cursor: pointer; font-family: var(--sans);
}
.ep-cout:hover { border-color: var(--ink-5); }
.ep-cout-texte { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ep-cout-texte b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ep-cout-texte span { font-size: 12px; color: var(--ink-4); }
.ep-cout-chiffre { display: grid; justify-items: end; gap: 1px; flex: none; }
.ep-cout-montant { display: inline-flex; align-items: baseline; gap: 4px; }
.ep-cout-montant b { font-size: 18px; font-weight: 600; color: var(--ink); }
.ep-cout-montant b.is-mauvais { color: var(--loss); }
.ep-cout-chiffre small { font-size: 12px; color: var(--ink-4); white-space: nowrap; }

/* Le mode expert. */
.ep-expert { display: grid; gap: 10px; }
.ep-expert-bouton {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer;
  border: 1.5px dashed var(--ink-5); border-radius: var(--r-lg, 16px); background: var(--surface); font-family: var(--sans);
  transition: border-color .15s, background .15s;
}
.ep-expert-bouton:hover { border-color: var(--ink); }
.ep-expert.is-on .ep-expert-bouton { border-style: solid; border-color: var(--ink); background: var(--accent-wash); }
.ep-expert-texte { flex: 1; display: grid; gap: 2px; }
.ep-expert-texte b { font-size: 15px; font-weight: 600; color: var(--ink); }
.ep-expert-texte span { font-size: 12px; color: var(--ink-4); }
.ep-expert-actifs { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ep-pastille { padding: 3px 9px; border-radius: 999px; background: var(--tune-wash); border: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
.ep-onglets .hnav { margin-bottom: 0; }

/* Une règle : interrupteur (épurée) ou bloc ajouté (constructeur). */
.ep-chaine, .ep-briques { display: grid; gap: 10px; }
.ep-regle, .ep-brique { border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); min-width: 0; }
.ep-regle.is-on { border-color: var(--ink-5); }
.ep-regle-tete, .ep-brique-tete { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; flex-wrap: wrap; }
.ep-regle-texte { flex: 1 1 260px; display: grid; gap: 3px; min-width: 0; }
.ep-regle-titre { font-size: var(--t-row); font-weight: 600; color: var(--ink); }
.ep-regle-dit { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ep-regle:not(.is-on) .ep-regle-dit { color: var(--ink-4); }
.ep-regle-change { color: var(--ink-2); font-weight: 500; }
.ep-regle-corps, .ep-brique-corps { padding: 2px 16px 16px 60px; display: grid; gap: 12px; min-width: 0; }
.ep-effet {
  display: grid; justify-items: end; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--rule); text-align: right; max-width: 230px;
}
.ep-effet-l { font-size: 11px; color: var(--ink-4); }
.ep-effet b { font-size: 15px; font-weight: 600; color: var(--ink); }
.ep-effet.is-bon b { color: var(--gain); }
.ep-effet.is-mauvais b { color: var(--loss); }
.ep-effet-t { font-size: 11px; line-height: 1.3; color: var(--ink-4); }
.ep-brique-retirer {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-4);
}
.ep-brique-retirer svg { width: 13px; height: 13px; }
.ep-brique-retirer:hover { border-color: var(--loss); color: var(--loss); }
/* La saisonnalité porte déjà son titre : dans une règle, on ne le répète pas. */
.ep-saison .saison { margin: 0; padding: 0; border: 0; background: none; }
.ep-saison .saison-tete { display: none; }

/* Le constructeur. */
.ep-construit { display: grid; gap: 14px; }
.ep-separateur { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 12px; font-weight: 500; }
.ep-separateur::before, .ep-separateur::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.ep-toutes { margin: 0; text-align: center; font-size: 13px; color: var(--ink-4); }
.ep-ajout { position: relative; display: grid; justify-items: start; }
/* Une pastille à la taille de son mot, alignée sur les règles (fil 00df1421,
   12 octobre : « moins long et un peu plus élégant ») ; en pointillés fins,
   comme tout ce qui peut s'ajouter ; le « + » dans un rond d'anis. */
.ep-ajout-regle {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 5px 15px 5px 6px;
  border: 1px dashed var(--ink-5); border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 600 13px/1.2 var(--sans); white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s;
}
.ep-ajout-regle .ep-picto.is-plus { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink, var(--ink)); box-shadow: none; }
.ep-ajout-regle .ep-picto.is-plus svg { width: 14px; height: 14px; }
.ep-ajout-regle:hover, .ep-ajout-regle.is-on { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }
/* Seul, au centre, un peu plus gros, à la taille des titres de règles (fil
   0d45f61a, 12 octobre : « au même niveau de typo que Délais de paiement et
   acomptes ») ; le titre de section est parti. */
.ep-construit > .ep-ajout { justify-items: center; }
.ep-construit > .ep-ajout .ep-ajout-regle { min-height: 44px; padding: 8px 22px 8px 8px; gap: 10px; font: 600 var(--t-row, 15px)/1.2 var(--sans); color: var(--ink); }
.ep-construit > .ep-ajout .ep-ajout-regle .ep-picto.is-plus { width: 28px; height: 28px; }
.ep-construit > .ep-ajout .ep-ajout-regle .ep-picto.is-plus svg { width: 16px; height: 16px; }
/* Fil b043a70d : les règles disponibles dans un panneau qui glisse depuis la
   droite, par-dessus le tiroir, sous un voile léger ; il ressort de même. */
.ep-menu-voile {
  /* Un voile léger, sans flou : l'offre reste lisible sous le panneau. */
  position: fixed; inset: 0; z-index: 90; background: rgba(242, 240, 232, .32);
}
.ep-menu-voile[hidden] { display: none; }
.ep-menu {
  position: fixed; z-index: 91; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px));
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--rule); border-radius: 20px; background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(14, 15, 12, .55), 0 0 0 1px rgba(14, 15, 12, .04);
}
.ep-menu[hidden] { display: none; }
.ep-menu-tete { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px 20px; border-bottom: 1px solid var(--rule); }
.ep-menu-tete-texte { flex: 1 1 auto; min-width: 0; }
.ep-menu-titre { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.ep-menu-sous { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.ep-menu-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 18px; }
.ep-menu-liste > .ep-menu-famille:first-child { margin-top: 8px; }
/* Une offre en pause grise son tiroir d'un filtre, qui retiendrait le panneau
   dans le tiroir : le temps du panneau, le filtre tombe. */
.ep-couche.is-eteint .ep-couche-corps:has(.ep-menu:not([hidden])) { filter: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ep-menu-voile.is-entree { animation: ep-fondu .24s var(--ease-soft) both; }
  .ep-menu-voile.is-sortie { animation: ep-fondu .18s var(--ease-soft) reverse both; }
  .ep-menu.is-entree { animation: ep-menu-glisse .42s cubic-bezier(.22, 1, .36, 1) both; }
  .ep-menu.is-sortie { animation: ep-menu-glisse .19s var(--ease-soft) reverse both; }
  .ep-menu.is-entree .ep-menu-ligne { animation: ep-menu-carte .38s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(80ms + min(var(--rang, 0), 10) * 28ms); }
  @keyframes ep-menu-glisse { from { opacity: 0; transform: translateX(calc(100% + 24px)); } to { opacity: 1; transform: none; } }
  @keyframes ep-menu-carte { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
}
/* Fil 8e657a70 (11 octobre) : plus de grand panneau. Un menu compact, à
   côté du bouton (cadre.js, placerMenu) : une feuille de verre aux grands
   rayons, une queue pointée vers le bouton ; il naît du bouton (il grandit
   depuis lui, net à partir d'un flou, un léger rebond), ses règles
   arrivent l'une après l'autre ; il repart vite, sans rebond. */
.ep-menu-voile.is-transparent { background: transparent; }
.ep-menu.is-flottant {
  top: 0; left: 0; right: auto; bottom: auto; width: 360px; max-height: min(520px, calc((100dvh - 24px) / var(--z, 1))); z-index: 92;
  border: 0; border-radius: 22px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 28px 64px -20px rgba(14, 15, 12, .38), 0 2px 6px rgba(14, 15, 12, .06);
  transform-origin: right var(--queue, 50%);
}
.ep-menu.is-flottant[data-cote="dessous"] { transform-origin: var(--queue, 50%) top; }
/* La queue : un petit losange, collé au bord, vers le bouton. */
.ep-menu.is-flottant::after {
  content: ''; position: absolute; width: 14px; height: 14px; background: inherit; border-radius: 3px;
  box-shadow: 1px -1px 0 rgba(14, 15, 12, .05); pointer-events: none;
}
.ep-menu.is-flottant[data-cote="gauche"]::after { right: -6px; top: calc(var(--queue, 50%) - 7px); transform: rotate(45deg); }
.ep-menu.is-flottant[data-cote="dessous"]::after { top: -6px; left: calc(var(--queue, 50%) - 7px); transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(14, 15, 12, .05); }
.ep-menu.is-flottant .ep-menu-tete { padding: 14px 14px 8px 18px; border-bottom: 0; }
.ep-menu.is-flottant .ep-menu-titre { font-size: 16px; }
.ep-menu.is-flottant .ep-menu-sous { margin-top: 2px; font-size: 12px; }
.ep-menu.is-flottant .ep-menu-fermer { width: 28px; height: 28px; }
.ep-menu.is-flottant .ep-menu-liste { padding: 0 8px 10px; }
.ep-menu.is-flottant .ep-menu-ligne { margin-top: 2px; padding: 8px 10px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; }
.ep-menu.is-flottant .ep-menu-ligne:hover, .ep-menu.is-flottant .ep-menu-ligne:focus-visible { background: rgba(14, 15, 12, .05); box-shadow: none; transform: translateX(-2px); }
.ep-menu.is-flottant .ep-menu-famille { margin: 10px 10px 2px; }
@media (prefers-reduced-motion: no-preference) {
  .ep-menu.is-flottant.is-entree { animation: ep-menu-pop .46s cubic-bezier(.2, 1.25, .35, 1) both; }
  .ep-menu.is-flottant[data-cote="dessous"].is-entree { animation-name: ep-menu-pop-dessous; }
  .ep-menu.is-flottant.is-sortie { animation: ep-menu-pop .16s cubic-bezier(.4, 0, 1, 1) reverse both; }
  .ep-menu.is-flottant.is-entree .ep-menu-ligne { animation: ep-menu-carte-pop .42s cubic-bezier(.2, 1, .3, 1) backwards; animation-delay: calc(90ms + min(var(--rang, 0), 10) * 24ms); }
  @keyframes ep-menu-pop { from { opacity: 0; transform: translateX(16px) scale(.86); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes ep-menu-pop-dessous { from { opacity: 0; transform: translateY(-12px) scale(.9); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes ep-menu-carte-pop { from { opacity: 0; transform: translateX(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
}
/* Chaque règle, une carte bien délimitée (retours du 5 octobre). */
.ep-menu-ligne {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-top: 6px; text-align: left; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 13px; background: var(--surface); font-family: var(--sans);
  transition: border-color .15s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ep-menu-ligne:hover, .ep-menu-ligne:focus-visible { border-color: var(--ink); box-shadow: 0 10px 24px -20px rgba(14, 15, 12, .5); transform: translateY(-1px); outline: none; }
.ep-menu-texte { display: grid; gap: 2px; min-width: 0; }
.ep-menu-texte b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ep-menu-texte span { font-size: 12px; color: var(--ink-4); }
/* Une règle qui reste à affiner (fil 41d1cf97) : marquée dans le menu, pas posée d'office. */
.ep-menu-texte .ep-a-affiner { font-size: 11px; color: var(--ink-2); }

/* Les campagnes d'acquisition, hors du MVP (campagnes.js) : un seul avis, en
   tête d'Achats, tant qu'un plan en garde ; « Les retirer », puis « Annuler ». */
.ep-hors {
  display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-md, 12px); background: var(--surface);
}
.ep-hors-texte { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ep-hors-texte b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ep-hors-texte span { font-size: 12.5px; color: var(--ink-3); }
.ep-hors-texte span b { font-size: inherit; }
.ep-hors-action { flex: none; }
.ep-hors.is-retire { border-style: dashed; background: var(--surface-2); }
@media (max-width: 640px) { .ep-hors { flex-wrap: wrap; } .ep-hors-action { margin-left: 46px; } }
.ep-lien {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 2px; border: 0; background: none;
  color: var(--ink); font: 500 13px/1.3 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule);
}
.ep-lien:hover { text-decoration-color: var(--ink); }

/* ─── Offre et Achats sans barre du haut (retours du 4 octobre) ─── */

/* Ni barre du haut ni bandeau du guide sur ces pages : le titre monte en
   haut de l'écran, le guide reste en bas (la mascotte). Annuler et rétablir
   passent à droite du titre ; au téléphone, le bouton du menu à sa gauche.
   L'espace de test, s'il est là, garde sa barre : elle prévient. */
.main:has(> .ep-sans-barre):not(:has(.topbar-essai)) { --header-h: 0px; }
.main:has(> .ep-sans-barre):not(:has(.topbar-essai)) > .topbar { display: none; }
.ep-sans-barre > .bq { display: none; }
/* Tout l'aperçu, sur ce point (retours du 5 octobre : « supprime le bandeau de
   question ainsi que le header de progress bar ; unifie l'ensemble ») : les
   pages sans en-tête de l'aperçu gardent leur barre du haut pour le menu (au
   téléphone) et les flèches annuler / rétablir, mais sans l'avancement ni le
   fil d'Ariane ; le bandeau des questions du guide ne se pose plus nulle part.
   Les questions restent dans Mon projet (« Répondre aux questions »). */
.ep-apercu .topbar .topline, .ep-apercu .topbar .topprog, .ep-apercu .topbar .crumb { display: none; }
/* La barre du haut a la couleur de la page, opaque : ce qui défile dessous ne
   se lit plus à travers (retours du 5 octobre au soir, « des éléments qui
   débordent les uns sur les autres »). */
.ep-apercu .topbar { background: var(--paper); backdrop-filter: none; }
/* Replié, le bandeau devient une pastille : elle ne se pose pas non plus. */
.ep-apercu .bq, .ep-apercu .bq-pastille { display: none; }
.ep-entete .module-top { align-items: center; flex-wrap: nowrap; }
.ep-entete-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }

/* Le ruban d'aujourd'hui ; déplié, chaque carte dit ce que son chiffre veut dire. */
.ep-sans-barre .sx-cards.is-compact .sx-card-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
/* Sous les cartes du pli, ce que la page y ajoute (la répartition des charges). */
.sx-pli-plus { display: grid; gap: var(--s-3); }
/* Fil 56bf9a7a (« sur un écran de PC portable, quand je clique, ça ouvre
   n'importe comment vers le bas ») : déplié, le pli prenait la largeur de son
   contenu le plus large — le tableau de la masse salariale, 914 px — et non
   celle de la page. Sous 1 100 px, il débordait à droite : cartes coupées,
   page qui défile de côté. La rangée du pli tient désormais dans la page ; un
   tableau trop large défile dans son cadre. Et les trois cartes restent sur
   une ligne jusqu'à 700 px, au lieu de deux plus une orpheline. */
.ep-apercu .sx.is-bandeau > .sx-pli { grid-template-columns: minmax(0, 1fr); }
.ep-apercu .sx.is-bandeau > .sx-pli > div, .ep-apercu .sx-pli-plus { min-width: 0; }
.ep-apercu .sx-pli-plus { grid-template-columns: minmax(0, 1fr); }
.ep-apercu .sx-pli-plus > * { min-width: 0; max-width: 100%; }
.ep-apercu .sx-pli-plus :is(.table-wrap, .tbl-wrap, .card-body):has(> table) { overflow-x: auto; }
@media (min-width: 700px) and (max-width: 1100px) {
  .ep-apercu .sx-pli .sx-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Une ligne par offre, charge ou investissement, ses chiffres en colonnes sous une seule rangée d'intitulés. */
.ep-lignes-bloc { margin: var(--s-4) 0; }
.ep-lignes-titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; }
.ep-lignes-titre h2 { margin: 0; font-family: var(--display); font-size: var(--t-block); font-weight: 700; color: var(--ink); }
.ep-lignes-titre p { margin: 0; font-size: 13px; color: var(--ink-4); }
.ep-lignes-titre .ep-lien { margin-left: auto; }
.ep-lignes { border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); overflow: hidden; }
.ep-lignes.is-vide { padding: 16px 18px; }
.ep-lignes.is-vide p { margin: 0; font-size: 14px; color: var(--ink-3); }
.ep-lignes-tete, .ep-ligne {
  display: grid; grid-template-columns: minmax(0, 2.6fr) repeat(var(--ep-cols, 4), minmax(96px, 1fr)) 18px;
  align-items: center; column-gap: 18px; padding: 0 18px;
}
.ep-lignes.avec-bascule :is(.ep-lignes-tete, .ep-ligne) { grid-template-columns: minmax(0, 2.6fr) repeat(var(--ep-cols, 2), minmax(110px, 1fr)) 40px 18px; }
.ep-ligne-bascule { display: flex; justify-content: center; }
.ep-ligne.is-off :is(.ep-ligne-nom, .ep-ligne-c) { opacity: .5; }
.ep-lignes-tete { min-height: 34px; font-size: 12px; color: var(--ink-4); background: var(--surface-2); border-bottom: 1px solid var(--rule); }
.ep-lignes-tete > span:not(:first-child) { text-align: right; }
.ep-ligne { min-height: 58px; padding-top: 9px; padding-bottom: 9px; border-top: 1px solid var(--rule); cursor: pointer; transition: background .15s var(--ease-soft); }
.ep-lignes-tete + .ep-ligne { border-top: 0; }
.ep-ligne:hover { background: var(--surface-2); }
.ep-ligne:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ep-ligne.is-ouverte { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.ep-ligne-nom { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ep-ligne-titre { display: grid; gap: 2px; min-width: 0; }
.ep-ligne-titre b { font-size: var(--t-row); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ep-ligne-titre span { font-size: 12.5px; line-height: 1.35; color: var(--ink-4); }
.ep-ligne-c { position: relative; display: flex; justify-content: flex-end; min-width: 0; }
.ep-ligne-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ep-ligne-v { display: inline-flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 0 4px; text-align: right; }
.ep-ligne-v b { font-size: 15px; font-weight: 600; color: var(--ink); }
.ep-ligne-c.is-mauvais .ep-ligne-v b { color: var(--loss); }
.ep-ligne-v.is-vide { color: var(--ink-5); }
.ep-ligne-chevron { justify-self: end; color: var(--ink-4); }
.ep-ligne:hover .ep-ligne-chevron { color: var(--ink); }

/* À affiner : une ligne par sujet, les offres concernées en pastilles. */
.ep-affiner { margin: var(--s-4) 0 0; border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); overflow: hidden; }
.ep-affiner-tete { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px 12px; }
.ep-affiner-tete h2 { margin: 0; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.ep-affiner-tete span { font-size: 12px; color: var(--ink-4); }
.ep-affiner-liste { margin: 0; padding: 0; list-style: none; }
.ep-affiner-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--rule); }
.ep-affiner-texte { display: grid; gap: 2px; min-width: 0; }
.ep-affiner-texte b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ep-affiner-texte span { font-size: 12.5px; line-height: 1.4; color: var(--ink-4); }
.ep-affiner-offres { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.ep-affiner-offre, .ep-affiner-plus {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface-2); color: var(--ink-2); font: 500 12.5px/1.25 var(--sans); white-space: nowrap; cursor: pointer;
  transition: border-color .15s var(--ease-soft), background .15s var(--ease-soft), color .15s var(--ease-soft);
}
.ep-affiner-offre i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ep-affiner-offre:hover, .ep-affiner-plus:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.ep-affiner-offre:focus-visible, .ep-affiner-plus:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-affiner-plus { padding: 5px 10px; border-style: dashed; background: transparent; }

/* Dans le tiroir : le sous-titre, ce qui reste à affiner, les règles attendues. */
/* L'en-tête d'un tiroir sur une ligne (retours du 6 octobre, fil 05dbae8e :
   « sur la même ligne pour gagner de l'espace ») : le titre, son badge, puis
   ce qu'il est. Trop long, le titre puis le reste s'arrêtent en points de
   suspension ; le texte entier se lit au survol. */
.ep-couche-nom { flex-wrap: nowrap; }
.ep-couche-titre { flex: 0 1 auto; min-width: 3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.ep-couche-badge { flex: none; }
.ep-couche-sous { flex: 1 1 0; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-a-affiner {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-dim); font: 500 11px/1.6 var(--sans); color: var(--ink-2); white-space: nowrap;
}
.ep-brique.is-a-affiner { box-shadow: inset 3px 0 0 var(--accent); }
.ep-cout.is-a-affiner { border-color: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); }
.ep-attendues { display: grid; gap: 10px; }
.ep-attendue { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border: 1px dashed var(--ink-5); border-radius: var(--r-lg, 16px); min-width: 0; }
.ep-attendue .ep-regle-texte { flex: 1 1 240px; }
.ep-attendue-ajout {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 10px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--sans); cursor: pointer;
}
.ep-attendue-ajout:hover { background: var(--ink); color: var(--surface); }

/* La page de détail du tiroir : ce que coûte une vente. Elle glisse depuis
   la droite, dans le même tiroir ; le retour la ramène. */
.ep-couche-retour {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 2px;
  border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.ep-couche-retour svg { width: 16px; height: 16px; transform: rotate(180deg); }
.ep-couche-retour:hover { border-color: var(--ink); color: var(--ink); }
/* Entrer dans le détail (cadre.js, glisser) : la vue qu'on quitte part à
   gauche, puis la nouvelle arrive de la droite, en-tête compris, ses blocs
   l'un après l'autre ; le retour fait l'inverse. Seule la croix reste en place. */
@media (prefers-reduced-motion: no-preference) {
  .ep-couche:is(.is-quitte-avance, .is-quitte-retour, .is-glisse-avance, .is-glisse-retour) .ep-couche-tete { overflow: hidden; }
  .ep-couche.is-quitte-avance :is(.ep-couche-tete > :not(.ep-couche-fermer), .ep-couche-corps > *) { animation: ep-part-gauche .15s cubic-bezier(.4, 0, 1, 1) both; }
  .ep-couche.is-quitte-retour :is(.ep-couche-tete > :not(.ep-couche-fermer), .ep-couche-corps > *) { animation: ep-part-droite .15s cubic-bezier(.4, 0, 1, 1) both; }
  .ep-couche.is-glisse-avance :is(.ep-couche-tete > :not(.ep-couche-fermer), .ep-couche-corps > *) { animation: ep-arrive-droite .42s var(--ease) both; }
  .ep-couche.is-glisse-retour :is(.ep-couche-tete > :not(.ep-couche-fermer), .ep-couche-corps > *) { animation: ep-arrive-gauche .42s var(--ease) both; }
  .ep-couche:is(.is-glisse-avance, .is-glisse-retour) .ep-couche-corps > :nth-child(2) { animation-delay: 40ms; }
  .ep-couche:is(.is-glisse-avance, .is-glisse-retour) .ep-couche-corps > :nth-child(3) { animation-delay: 80ms; }
  .ep-couche:is(.is-glisse-avance, .is-glisse-retour) .ep-couche-corps > :nth-child(n+4) { animation-delay: 120ms; }
}
@keyframes ep-part-gauche { to { opacity: 0; transform: translateX(-56px); } }
@keyframes ep-part-droite { to { opacity: 0; transform: translateX(56px); } }
@keyframes ep-arrive-droite { from { opacity: 0; transform: translateX(120px); } to { opacity: 1; transform: none; } }
@keyframes ep-arrive-gauche { from { opacity: 0; transform: translateX(-96px); } to { opacity: 1; transform: none; } }
.ep-cout-resume { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 4px 4px 0; }
.ep-cout-resume-v b { font-size: 28px; font-weight: 700; color: var(--ink); }
.ep-cout-resume-v b.is-mauvais { color: var(--loss); }
.ep-cout-resume-v .ep-unite { margin-left: 4px; font-size: 13px; }
.ep-cout-resume-t { flex: 1 1 260px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ep-cout-liste { display: grid; }
.ep-cout-ligne { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); min-width: 0; }
.ep-cout-ligne:first-child { border-top: 0; padding-top: 2px; }
.ep-cout-ligne.is-off { opacity: .55; }
.ep-cout-ligne-nom { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ep-cout-ligne-nom b { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ep-cout-ligne-nom span { font-size: 12px; line-height: 1.35; color: var(--ink-4); }
.ep-cout-ligne-v { flex: none; display: inline-flex; align-items: baseline; gap: 3px; }
.ep-cout-ligne-v b { font-size: 15px; font-weight: 600; color: var(--ink); }
.ep-cout-suggeres { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-cout-form-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ep-cout-form-pied .ep-note { flex: 1 1 240px; }

@media (max-width: 760px) {
  .ep-entete .module-top { flex-wrap: wrap; row-gap: 10px; }
  .ep-entete-acts { width: 100%; margin-left: 0; }
  .ep-entete-acts .btn-primary { margin-left: auto; }
  /* Au téléphone, les chiffres suivent le nom, chacun précédé de son intitulé. */
  .ep-lignes-tete { display: none; }
  .ep-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 14px; }
  .ep-ligne-nom { order: 0; flex: 1 1 calc(100% - 40px); margin-bottom: 4px; }
  .ep-ligne-chevron { order: 1; align-self: center; }
  .ep-ligne-c { order: 2; display: inline-flex; align-items: baseline; gap: 5px; }
  .ep-ligne-bascule { order: 3; margin-left: auto; }
  .ep-lignes.avec-bascule .ep-ligne-nom { flex-basis: calc(100% - 40px); }
  .ep-ligne-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 12px; color: var(--ink-4); }
  .ep-ligne-v { justify-content: flex-start; text-align: left; }
  .ep-ligne-v b { font-size: 13.5px; }
  .ep-affiner-ligne { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .ep-affiner-offres { justify-content: flex-start; max-width: none; }
}

/* Au téléphone : le tiroir prend l'écran, les champs s'empilent. */
@media (max-width: 760px) {
  .ep-choix { bottom: 58px; padding-left: 10px; max-width: calc(100vw - 24px); }
  .ep-choix-titre { display: none; }
  .ep-couche { width: 100vw; top: 6dvh; border-radius: 22px 22px 0 0; }
  .ep-couche-tete { border-radius: 22px 22px 0 0; padding: 16px; }
  .ep-couche.is-entree { animation-name: ep-monte; }
  .ep-couche.is-sortie { animation-name: ep-monte; }
  @keyframes ep-monte { from { transform: translateY(104%); } to { transform: none; } }
  .ep-couche-corps { padding: 16px 14px 140px; }
  .ep-champs.is-2, .ep-champs.is-3, .ep-champs.is-4 { grid-template-columns: minmax(0, 1fr); }
  .ep-regle-corps, .ep-brique-corps { padding-left: 16px; }
  .ep-effet { justify-items: start; text-align: left; }
  .ep-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex-basis: 100%; }
  .ep-tuile { padding: 11px 12px; border-radius: 14px; }
  .ep-tuile-v { font-size: 19px; }
  .ep-tuile-note { display: none; }
  .ep-tete { gap: 10px; }
  .ep-couche-action span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-couche.is-entree, .ep-couche.is-sortie, .ep-voile.is-entree, .ep-voile.is-sortie { animation: none; }
}

/* Achats et Équipe. */
.ep-vide-page { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 var(--s-4); padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); }
.ep-vide-page p { margin: 0; font-size: 14px; color: var(--ink-3); flex: 1 1 320px; }
.ep-suggestions { display: grid; gap: 8px; margin: 0 0 var(--s-4); }
.ep-carte.is-lien { text-align: left; font-family: var(--sans); background: var(--surface-2); }
.ep-portee .scopepick { display: inline-block; }
.ep-note.is-centre { text-align: center; color: var(--ink-4); }
/* Le poste : la ligne de la carte d'aujourd'hui, posée en grille dans le tiroir. */
.ep-poste .postline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ep-poste .postresult { grid-column: 1 / -1; }
.ep-poste .paycard-note:empty { display: none; }
@media (max-width: 760px) { .ep-poste .postline { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────── Offre : les offres en cartes (retours du 4 octobre dans la nuit) ─────────────── */
/* La liste en lignes faisait tableur : chaque offre a sa carte, son prix en
   grand, la barre coût / marge, puis quatre chiffres. Retours du 5 octobre :
   plus de couleur par offre ; un interrupteur, en haut à droite, posé à côté
   de la carte (elle est un bouton) dans la même cellule. */
.ep-of-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: var(--s-4) 0; }
.ep-of-carte {
  position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; padding: 18px 16px 14px; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); text-align: left; font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .15s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ep-of-carte:hover { border-color: var(--ink-5); box-shadow: 0 16px 34px -24px rgba(14, 15, 12, .45); transform: translateY(-2px); }
.ep-of-carte:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-of-carte.is-ouverte { border-color: var(--ink); box-shadow: 0 16px 34px -24px rgba(14, 15, 12, .45); }
.ep-of-cellule { position: relative; display: grid; min-width: 0; }
.ep-of-cellule > .ep-of-carte { height: 100%; }
.ep-of-cellule > .ep-of-onoff { position: absolute; top: 15px; right: 14px; z-index: 1; }
.ep-of-carte-tete { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 108px; }
/* En pause : la carte s'efface, son cadre se pointille, et elle dit pourquoi. */
.ep-of-carte.is-pause { background: var(--surface-2); border-style: dashed; border-color: var(--ink-5); }
.ep-of-carte.is-pause:hover { border-color: var(--ink-4); box-shadow: none; }
.ep-of-carte.is-pause :is(.ep-of-carte-nom, .ep-of-carte-prix) { opacity: .5; }
.ep-of-carte-pause { padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* L'interrupteur d'une offre, un peu plus grand (la charte, en fin de feuille). */
.ep-of-onoff { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.ep-couche-tete > .ep-of-onoff { padding: 4px 5px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface-2); }
.ep-couche-tete > .ep-of-onoff.is-off { border-style: dashed; }
/* Une offre en pause (retours du 6 octobre : « tout transparent, comme
   désactivé, et sans la mention de texte longue ») : le tiroir s'estompe et
   perd sa couleur, son corps ne se touche plus ; l'interrupteur, les actions
   et la croix restent nets — c'est l'interrupteur qui la rallume. */
.ep-couche.is-eteint :is(.ep-couche-corps, .ep-couche-titre, .ep-couche-sous, .ep-couche-badge, .ep-couche-pied-chiffre) { opacity: .4; filter: grayscale(1); }
.ep-couche.is-eteint .ep-couche-corps { cursor: not-allowed; user-select: none; }
.ep-couche.is-eteint .ep-valider { opacity: .4; filter: grayscale(1); }
.ep-of-carte-nom { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ep-of-carte-mode { flex: none; margin-left: auto; align-self: center; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ep-of-carte-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.ep-of-carte-prix b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.ep-of-carte .ep-of-barre { height: 6px; }
.ep-of-carte-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.ep-of-carte-fig { display: grid; gap: 1px; min-width: 0; }
.ep-of-carte-fig small { font-size: 12px; color: var(--ink-4); }
.ep-of-carte-v { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.ep-of-carte-v b { font-size: 15px; font-weight: 600; color: var(--ink); }
.ep-of-carte-fig[data-col="marge"] b { color: var(--gain); }
.ep-of-carte-fig.is-mauvais b { color: var(--loss); }
.ep-of-carte.is-ajout {
  align-content: center; justify-items: center; gap: 6px; min-height: 180px; padding: 20px 16px; text-align: center;
  border: 1.5px dashed var(--ink-5); background: transparent;
}
.ep-of-carte.is-ajout:hover { border-color: var(--ink); background: var(--surface); }
.ep-of-carte.is-ajout b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ep-of-carte.is-ajout span:last-child { font-size: 12.5px; color: var(--ink-4); }
.ep-of-ajout-rond { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 600; transition: transform .2s var(--ease); }
.ep-of-carte.is-ajout:hover .ep-of-ajout-rond { transform: scale(1.08); }
@media (max-width: 1180px) { .ep-of-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ep-of-grille { grid-template-columns: minmax(0, 1fr); } .ep-of-carte.is-ajout { min-height: 120px; } }

/* ─────────────── Offre : le tiroir d'une offre (retours du 5 octobre) ─────────────── */
/* Le prix coupé en deux : ce que coûte une vente, ce qu'il en reste. */
.ep-of-barre { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.ep-of-barre > span { display: grid; place-items: center; min-width: 0; }
.ep-of-barre i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }
.ep-of-barre-cout { background: #E7E4D9; color: var(--ink-2); }
.ep-of-barre-cout.is-mauvais { background: var(--loss-wash); color: var(--loss); }
.ep-of-barre-marge { background: var(--gain-fill); color: var(--accent-ink); }

/* Les paramètres d'une offre sur deux rangées au plus (retours du 6 octobre,
   fil 51a61e39 : « les 9 cases doivent être sur 2 lignes max ») : l'offre,
   puis comment elle se vend. La seconde rangée prend la largeur de ce qu'elle
   porte (trois à cinq cases), chaque case selon son contenu ; un libellé trop
   long s'arrête en points de suspension. */
.ep-of-params { display: flex; flex-direction: column; gap: 12px; }
.ep-of-params > * { min-width: 0; }
.ep-of-ligne.is-auto { display: flex; gap: 12px; align-items: flex-start; }
.ep-of-ligne.is-auto > * { flex: 1 1 0; min-width: 0; }
.ep-of-ligne > .unite-choix { display: contents; }
.ep-of-ligne.is-auto > .unite-choix > * { flex: 1 1 0; min-width: 0; }
.ep-of-ligne :is(label, .field-hint) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .ep-of-ligne .field > label { letter-spacing: .05em; }
/* Une liste se mesure à sa plus longue option (« Prestations (séance, sortie, visite) ») : ici, à sa case. */
.ep-of-ligne :is(.field, .control) { min-width: 0; max-width: 100%; }
.ep-of-ligne .control :is(select, input) { min-width: 0; width: 100%; text-overflow: ellipsis; }
/* Le prix d'un abonnement (fil 665404b2) : les boutons d'unité en haut à
   droite de la case, sur la ligne du libellé ; le montant garde toute la
   largeur de la ligne de la valeur. */
html.ep-apercu .ep-of-ligne .field:has(> .control.unit-control) > label { right: 124px; }
html.ep-apercu .ep-of-ligne .unit-control .unit-switch { position: absolute; z-index: 2; top: 4px; right: 6px; padding: 0; gap: 1px; }
html.ep-apercu .ep-of-ligne .unit-control .unit-btn { padding: 2px 5px; font-size: 10px; line-height: 1.3; }
/* Un nombre se lit en entier (même fil) : dans une case étroite, c'est l'unité
   écrite à côté (« abonnements ») qui se coupe, jamais le nombre. */
html.ep-apercu .ep-of-ligne .control > input { min-width: 4.2em; }
html.ep-apercu .ep-of-ligne .control > .affix { display: block; flex: 0 1 auto; min-width: 0; align-self: flex-end; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ep-of-main-v { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px dashed var(--rule); border-radius: 12px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
/* Le prix moyen de « Plusieurs prix » (fil c493daf3) : un résultat, pas une
   saisie. Un cadre en pointillé, comme « Mois par mois » ; à la place des
   chevrons, la pastille de la règle ; tout le cadre mène aux prix. */
html.ep-apercu .field.is-calcule > .control { border: 1px dashed var(--rule); background: transparent; cursor: pointer; }
html.ep-apercu .field.is-calcule > .control:hover { border-color: var(--ink-4); background: var(--field-bg); }
html.ep-apercu .field.is-calcule > .control:focus-within { border-style: dashed; background: transparent; }
html.ep-apercu .field.is-calcule > .control > input { cursor: pointer; color: var(--ink-2); }
.ep-prix-calcule {
  flex: none; align-self: flex-end; display: grid; place-items: center; width: 22px; height: 22px; margin: 0 1px 5px 0; padding: 0;
  border: 0; border-radius: 50%; background: var(--field-bg); color: var(--ink-3); cursor: pointer;
  transition: background-color .3s var(--fluid), color .3s var(--fluid), transform .2s var(--fluid);
}
.ep-prix-calcule .ep-picto { box-shadow: none; }
.ep-prix-calcule .ep-picto svg { width: 13px; height: 13px; }
.ep-prix-calcule:hover, .field.is-calcule > .control:hover .ep-prix-calcule { background: var(--ink); color: var(--accent); }
.ep-prix-calcule:active { transform: scale(.92); }
@media (max-width: 760px) {
  .ep-of-ligne.is-auto { flex-wrap: wrap; }
  .ep-of-ligne.is-auto > *, .ep-of-ligne.is-auto > .unite-choix > * { flex-basis: calc(50% - 6px); }
}
/* Les paramètres sur trois colonnes (fil ba0834e9, 13 octobre : « tu dois
   mettre deux lignes de 3 ») : l'offre (nom, vente, prix), puis comment elle
   se compte (TVA, unité, premier client). Au téléphone, une case par ligne. */
.ep-of-ligne.is-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; row-gap: 10px; }
/* La lecture d'une commission : une ligne fine, sur toute la largeur de la grille (fil 5249f988). */
.ep-of-ligne.is-grille > .ep-of-lecture { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0; padding: 7px 12px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .06); }
.ep-of-lecture .pmode-read-line { gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.ep-of-lecture .pmode-read-line strong { font-size: 13px; font-weight: 650; letter-spacing: 0; color: var(--ink); }
.ep-of-lecture p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 760px) { .ep-of-ligne.is-grille { grid-template-columns: minmax(0, 1fr); } }
/* Sous la grille : la description ; la catégorie, s'il y en a, à droite. */
.ep-of-sous { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.ep-of-sous > .ep-desc { flex: 1 1 auto; min-width: 0; }
.ep-of-sous > .ep-of-cat-choix { flex: 0 1 230px; min-width: 0; }
@media (max-width: 760px) { .ep-of-sous { flex-direction: column; align-items: stretch; } .ep-of-sous > .ep-of-cat-choix { flex-basis: auto; } }
/* « Tes ventes », plus petit (même fil : « la croissance pensée doit être
   plus petite ») : la phrase du rythme en 14 px, sur un fond plus serré ; le
   premier mois d'une courbe dans sa case, sa question à côté. */
.ep-of-params .ep-rythme { gap: 4px; padding: 10px 14px; }
.ep-of-params .ep-rythme-phrase { font-size: 14px; line-height: 1.85; }
.ep-of-params .ep-rythme .trou-saisie { padding: 1px 5px; font-size: 14px; }
.ep-of-params .ep-rythme .trou-liste { font-size: 13px; }
.ep-of-params .ep-rythme-dit { font-size: 12px; }
.ep-of-comptage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; align-items: start; min-width: 0; }
.ep-of-comptage > :only-child { grid-column: 1 / -1; }
.ep-of-params .ventes-question { gap: 6px; }
.ep-of-params .ventes-question-q { font-size: 13px; }
.ep-of-params .ventes-question .ventes-palier { padding: 6px 10px; }
.ep-of-params .ventes-question .ventes-palier-n { font-size: 13px; }
@media (max-width: 760px) { .ep-of-comptage { grid-template-columns: minmax(0, 1fr); } }

/* « Mes charges », une règle qui mène à sa vue (même fil : « Intégrer mes
   charges doit être une règle ») : toute sa ligne ouvre la vue ; à droite, ce
   que coûte une vente, puis la flèche. Ses coûts ont leur teinte, l'ardoise. */
.ep-brique.is-ouvrante:hover { border-color: var(--ink-5); }
.ep-brique-valeur { flex: none; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font: 600 13px/1.3 var(--sans); color: var(--ink); white-space: nowrap; }
.ep-brique-aller { flex: none; color: var(--ink-3); transition: transform .2s var(--fluid); }
.ep-brique.is-ouvrante .ep-brique-ouvrir:hover .ep-brique-aller { transform: translateX(2px); }
.ep-brique[data-famille="couts"] > .ep-brique-tete .ep-picto:not(.is-petit), .ep-menu-ligne[data-famille="couts"] .ep-picto { background: #E4E9F1; color: #2E3B4E; }

/* Ce que ça donne : la courbe du haut, en grand — un aplat jaune léger et un
   trait bleu nuit ; chaque exercice dans sa colonne, sous ses mois. */
.ep-cqd { --ep-nuit: #1B2541; display: grid; gap: 10px; }
.ep-cqd-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.ep-cqd-tete-d { font-weight: 400; color: var(--ink-4); }
.ep-cqd-zone { position: relative; height: 150px; margin-top: 20px; border-bottom: 1px solid var(--rule); }
.ep-cqd-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ep-cqd-aire { fill: rgba(185, 245, 16, .26); }
.ep-cqd-ligne { fill: none; stroke: var(--ep-nuit); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ep-cqd-sep { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ep-cqd-pic { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ep-nuit); box-shadow: 0 0 0 3px var(--surface); }
.ep-cqd-pic-t {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  background: var(--ep-nuit); color: #FFFFFF; font-size: 11.5px;
}
.ep-cqd-pic-t b { font-weight: 600; }
.ep-cqd-pic.is-droite .ep-cqd-pic-t { left: auto; right: -6px; transform: none; }
.ep-cqd-pic.is-gauche .ep-cqd-pic-t { left: -6px; transform: none; }
.ep-cqd-ans { display: grid; }
.ep-cqd-an { display: grid; gap: 1px; min-width: 0; padding: 2px 8px; border-left: 1px dashed var(--rule); border-radius: 6px; transition: background-color .35s var(--ease-soft); }
/* Un exercice dont les chiffres viennent de changer s'éclaire un instant. */
.ep-cqd-an.is-flash { background: var(--accent-wash); }
.ep-cqd-an:first-child { border-left: 0; padding-left: 0; }
.ep-cqd-an-l { font-size: 11.5px; font-weight: 600; color: var(--ink-4); }
.ep-cqd-an-v { display: inline-flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
.ep-cqd-an-v b { font-size: 15px; font-weight: 600; color: var(--ink); }
.ep-cqd-an-v .ep-unite, .ep-cqd-an-ca .ep-unite { font-size: 11px; color: var(--ink-4); }
.ep-cqd-an-ca { display: inline-flex; align-items: baseline; gap: 3px; font-size: 12px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .ep-cqd-pic { animation: ep-fondu .4s .5s var(--ease-soft) both; }
}

/* Les règles teintées par famille (Offre), dans le menu comme dans leurs blocs. */
.ep-construit.is-en-tete { gap: 12px; }
.ep-menu-ligne[data-famille] .ep-picto { border: 0; }
.ep-menu-ligne[data-famille="ventes"] .ep-picto { background: var(--accent); color: var(--accent-ink); }
.ep-menu-ligne[data-famille="prix"] .ep-picto { background: #F7EBCF; color: #6B4600; }
.ep-menu-ligne[data-famille="tresorerie"] .ep-picto { background: var(--gain-wash); color: var(--gain); }
.ep-menu-ligne[data-famille="clients"] .ep-picto { background: #0E0F0C; color: var(--accent); }

/* Les règles d'une offre : une ligne chacune, une seule dépliée ; leur famille teinte le pictogramme. */
.ep-brique-ouvrir {
  flex: 1 1 260px; display: flex; align-items: center; gap: 12px; min-width: 0; margin: -6px 0; padding: 6px 4px;
  border: 0; border-radius: 12px; background: none; text-align: left; font-family: var(--sans); color: inherit; cursor: pointer;
}
.ep-brique-ouvrir:hover .ep-regle-titre { text-decoration: underline; text-underline-offset: 3px; }
.ep-brique-ouvrir:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-brique-chevron { flex: none; display: inline-block; vertical-align: middle; margin: -2px 0 0 6px; color: var(--ink-3); transform: rotate(90deg); transition: transform .2s ease; }
.ep-brique.is-depliee .ep-brique-chevron { transform: rotate(-90deg); }
.ep-brique.is-repliee { background: var(--surface); }
.ep-brique.is-repliee:hover { border-color: var(--ink-5); background: var(--surface); }
.ep-brique.is-repliee .ep-brique-tete { padding-top: 10px; padding-bottom: 10px; }
.ep-brique.is-repliee .ep-effet { padding: 4px 9px; }
.ep-brique.is-repliee .ep-effet-t { display: none; }
.ep-brique.is-depliee { border-color: var(--ink-5); box-shadow: 0 14px 32px -26px rgba(14, 15, 12, .5); }
.ep-brique[data-famille] > .ep-brique-tete .ep-picto:not(.is-petit) { border: 0; }
.ep-brique[data-famille="ventes"] > .ep-brique-tete .ep-picto:not(.is-petit) { background: var(--accent); color: var(--accent-ink); }
.ep-brique[data-famille="prix"] > .ep-brique-tete .ep-picto:not(.is-petit) { background: #F7EBCF; color: #6B4600; }
.ep-brique[data-famille="tresorerie"] > .ep-brique-tete .ep-picto:not(.is-petit) { background: var(--gain-wash); color: var(--gain); }
.ep-brique[data-famille="clients"] > .ep-brique-tete .ep-picto:not(.is-petit) { background: #0E0F0C; color: var(--accent); }

/* Ce que coûte une vente, dans les paramètres : le chiffre, puis trois groupes
   façon réglages — ce qui est compté, ce qui est déjà dans le plan, un coût
   nouveau. */
.ep-cv { display: grid; gap: 18px; min-width: 0; }
.ep-cv-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ep-cv-tete-t { display: grid; gap: 3px; min-width: 0; }
.ep-cv-tete h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.ep-cv-tete p { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.ep-cv-total { flex: none; display: inline-flex; align-items: baseline; gap: 4px; }
.ep-cv-total b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.ep-cv-total b.is-mauvais { color: var(--loss); }
.ep-cv-total .ep-unite { font-size: 12.5px; color: var(--ink-4); }
.ep-cv-groupe { display: grid; gap: 8px; min-width: 0; }
.ep-cv-groupe-tete { display: grid; gap: 2px; }
.ep-cv-groupe-tete h4 { margin: 0; font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
.ep-cv-groupe-tete p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.ep-cv .ep-cout-liste { padding: 0 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.ep-cv .ep-cout-ligne { gap: 12px; padding: 11px 0; }
.ep-cv .ep-cout-ligne:first-child { padding-top: 11px; }
.ep-cv-vide { margin: 0; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 14px; font-size: 13px; color: var(--ink-4); }
.ep-cv-sans-prix { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ep-cv-retirer {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-4);
}
.ep-cv-retirer svg { width: 12px; height: 12px; }
.ep-cv-retirer:hover { border-color: var(--loss); color: var(--loss); background: var(--loss-wash); }
.ep-cv-retirer:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-cv-puce {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--surface); font: 500 13px/1.2 var(--sans); color: var(--ink-2); cursor: pointer;
}
.ep-cv-puce:hover { border-color: var(--ink-5); }
.ep-cv-puce.is-on { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.ep-cv-puce.is-autre { border-style: dashed; border-color: var(--ink-5); font-weight: 600; }
.ep-cv-ajout { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--rule); }
/* Charges déjà dans ton plan, à ajouter aussi à cette offre : le titre seul,
   sur une ligne ; la liste en pointillés, comme tout ce qui peut s'ajouter
   (une règle attendue), chaque ligne dit où le coût est déjà compté, son
   montant, et « Ajouter » (fil 95e2408c). */
.ep-cv-plan { display: grid; padding: 0 6px; border: 1px dashed var(--ink-5); border-radius: 14px; background: var(--surface); }
.ep-cv-propose {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid var(--rule);
  background: none; text-align: left; font-family: var(--sans); color: var(--ink); cursor: pointer; border-radius: 10px;
}
.ep-cv-propose:first-child { border-top: 0; }
.ep-cv-propose:hover { background: var(--surface-2); }
.ep-cv-propose:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ep-cv-propose-nom { flex: 1; display: grid; gap: 1px; min-width: 0; }
.ep-cv-propose-nom b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ep-cv-propose-nom span { font-size: 12px; color: var(--ink-3); }
.ep-cv-propose-v { flex: none; display: inline-flex; align-items: baseline; gap: 3px; }
.ep-cv-propose-v .num { font-size: 14px; font-weight: 600; }
.ep-cv-propose-v .ep-unite { font-size: 11.5px; color: var(--ink-4); }
.ep-cv-propose-plus {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.ep-cv-propose-plus .ep-picto { width: 14px; height: 14px; color: currentColor; }
.ep-cv-propose:hover .ep-cv-propose-plus, .ep-cv-propose:focus-visible .ep-cv-propose-plus { background: var(--ink); color: var(--surface); }
.ep-cv-achats { justify-self: start; }
@media (max-width: 760px) {
  .ep-cv-propose { flex-wrap: wrap; }
}

/* ─────────────── Mon projet : Cockpit et Feuille de route ─────────────── */
.ep-projet .ep-pj-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 384px); gap: 16px; align-items: start; margin: 0 0 var(--s-5); }
/* Retours du 5 octobre : en haut, la prochaine étape (le bloc noir) et ton
   business en un coup d'œil (le bloc jaune), côte à côte, de la même hauteur ;
   dessous, les paliers et ta fiche. */
.ep-projet .ep-pj-grille.is-route { grid-template-areas: "une vitrine" "route fiche"; row-gap: 22px; }
.ep-pj-grille.is-route > .ep-pj-courante, .ep-pj-grille.is-route > .ep-pj-une { grid-area: une; align-self: stretch; margin: 0; }
.ep-pj-grille.is-route > .vitrine-mini { grid-area: vitrine; align-self: stretch; margin: 0; }
.ep-pj-grille.is-route > .vitrine-mini .vitrine-mini-titre { white-space: normal; overflow: visible; }
.ep-pj-grille.is-route > .ep-pj-route { grid-area: route; min-width: 0; }
.ep-pj-grille.is-route > .ep-pj-fiche { grid-area: fiche; position: sticky; top: 16px; }
.ep-pj-kicker-palier { font-weight: 600; opacity: .72; }

/* La fiche du projet, en quatre lignes : toute la carte ouvre le tiroir. */
.ep-pj-fiche {
  display: grid; gap: 7px; width: 100%; padding: 15px 16px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--rule); border-radius: var(--r-lg, 16px); background: var(--surface); color: var(--ink);
  font-family: var(--sans); transition: border-color .15s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ep-pj-fiche:hover { border-color: var(--ink-5); box-shadow: 0 14px 34px -22px rgba(14, 15, 12, .45); transform: translateY(-1px); }
.ep-pj-fiche:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-fiche.is-ouverte { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.ep-pj-fiche-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ep-pj-fiche-titre { font: 500 12px/1.3 var(--sans); color: var(--ink-3); }
.ep-pj-fiche-modif { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ep-pj-fiche-nom { font: 700 17px/1.2 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; margin-bottom: 2px; }
.ep-pj-fiche-l { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.35; }
.ep-pj-fiche-l span { color: var(--ink-4); }
.ep-pj-fiche-l b { font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
.ep-pj-fiche-l.is-manque b { color: var(--warn, #9A5B00); font-weight: 600; }
.ep-pj-fiche-corps .projet-pair { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }

/* La prochaine étape, en grand. */
.ep-pj-etape {
  display: grid; gap: 10px; align-content: start; min-width: 0; padding: 22px 24px 20px; border-radius: 20px;
  background: #0E0F0C; color: #F2F0E8; box-shadow: 0 18px 44px -22px rgba(14, 15, 12, .55);
  background-image: radial-gradient(520px 160px at 12% 0%, rgba(185, 245, 16, .12), transparent 70%);
}
.ep-pj-kicker { font: 600 13px/1.2 var(--sans); color: var(--accent); }
.ep-pj-etape-titre { margin: 0; font: 800 clamp(24px, 2.4vw, 32px)/1.12 var(--display); letter-spacing: -.025em; color: #FFFFFF; }
.ep-pj-etape-pourquoi { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(242, 240, 232, .82); }
.ep-pj-etape-ou { margin: 0; font-size: 13px; color: rgba(242, 240, 232, .58); }
.ep-pj-etape-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ep-pj-go {
  padding: 11px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font: 700 15px/1.2 var(--sans); cursor: pointer; transition: transform .15s var(--ease-soft), box-shadow .15s;
}
.ep-pj-go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(185, 245, 16, .8); }
.ep-pj-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ep-pj-jauge { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 13px; color: rgba(242, 240, 232, .7); }
.ep-pj-jauge-barre { flex: 1 1 auto; max-width: 280px; height: 6px; border-radius: 999px; background: rgba(242, 240, 232, .16); overflow: hidden; }
.ep-pj-jauge-barre i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ep-pj-jauge-t b { font-weight: 600; color: inherit; }
.ep-pj-route .ep-pj-jauge { color: var(--ink-3); margin-top: 4px; }
.ep-pj-route .ep-pj-jauge-barre { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.ep-pj-route .ep-pj-jauge-barre i { background: var(--ink); }
.ep-pj-etape.is-complet .ep-pj-etape-titre { font-size: 28px; }

.ep-pj-rond { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-5); }
.ep-pj-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-wash); border: 1px solid var(--accent-dim); font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.ep-pj-chevron { color: var(--ink-4); }
.ep-pj-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Feuille de route : les trois paliers en étapes. */
.ep-pj-route { display: grid; gap: 12px; min-width: 0; }
/* Le titre, l'avancement et « Répondre aux questions » : une seule ligne. */
.ep-pj-route-tete { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ep-pj-route-tete h2 { margin: 0; font: 800 24px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.ep-pj-route-tete .ep-pj-questions-clair { margin-left: auto; }
.ep-pj-route-tete .ep-pj-jauge { margin: 0; }
.ep-pj-route-tete .ep-pj-jauge-barre { flex: none; width: 96px; }
.ep-pj-pas-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.ep-pj-pas { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding-bottom: 10px; }
.ep-pj-pas::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--rule); }
.ep-pj-pas:last-child::before { display: none; }
.ep-pj-pas.is-fait::before { background: var(--ink); }
/* La pastille du palier porte son avancement en anneau : plus de barre à part. */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.ep-pj-pas-marque {
  z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(var(--ink) var(--p, 0%), var(--rule) 0);
  transition: --p .9s cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-reduced-motion: reduce) { .ep-pj-pas-marque { transition: none; } }
.ep-pj-pas-marque > span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); font: 700 14px/1 var(--sans); color: var(--ink-3);
}
.ep-pj-pas.is-fait .ep-pj-pas-marque { background: var(--ink); }
.ep-pj-pas.is-fait .ep-pj-pas-marque > span { background: var(--ink); color: var(--accent); }
.ep-pj-pas.is-cours .ep-pj-pas-marque { box-shadow: 0 0 0 4px var(--accent-wash); }
.ep-pj-pas.is-cours .ep-pj-pas-marque > span { background: var(--accent); color: var(--accent-ink); }
.ep-pj-pas-tete {
  display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; width: 100%; min-height: 34px;
  padding: 4px 6px 4px 8px; margin-left: -8px; border: 0; border-radius: 12px; background: none;
  text-align: left; font-family: var(--sans); color: var(--ink); cursor: pointer; transition: background .15s ease;
}
.ep-pj-pas-tete:hover { background: var(--surface-2); }
.ep-pj-pas-tete:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-pas-nom { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.ep-pj-pas-nom b { font: 700 19px/1.2 var(--display); letter-spacing: -.015em; }
.ep-pj-pas-ici { padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 600; }
.ep-pj-pas-note { font-size: 13px; color: var(--ink-4); }
.ep-pj-pas-num { font-size: 14px; color: var(--ink-3); }
.ep-pj-pas.is-fait .ep-pj-pas-num { color: var(--gain); }
/* « Déplier » / « Replier » dit ce que fait le clic ; la flèche tourne. */
.ep-pj-pas-bascule {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.ep-pj-pas-tete:hover .ep-pj-pas-bascule { border-color: var(--ink-5); }
.ep-pj-pas-chevron { display: inline-block; vertical-align: middle; margin: -3px 0 0 8px; transform: rotate(90deg); transition: transform .2s ease; color: var(--ink-3); }
.ep-pj-pas.is-ouvert .ep-pj-pas-chevron { transform: rotate(-90deg); }
.ep-pj-pas-corps { grid-column: 2; display: grid; gap: 10px; padding: 6px 0 8px; }
/* Fil c635dc2e (« les deux sur la même ligne ») : « Voir tout » et « Voir ce
   qui a été validé » côte à côte sous les cartes, plus l'un sous l'autre. */
.ep-pj-pas-corps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.ep-pj-pas-corps > :not(.ep-pj-voir-tout):not(.ep-pj-voir-valides) { flex: 1 0 100%; min-width: 0; }
/* L'en-tête d'un palier sur une ligne : la phrase s'efface en « … » avant que
   le compte et « Replier » ne passent dessous. */
.ep-pj-pas-tete { flex-wrap: nowrap; }
.ep-pj-pas-nom { flex-wrap: nowrap; flex: 1 1 0; }
.ep-pj-pas-nom > b, .ep-pj-pas-ici { flex: none; }
.ep-pj-pas-note { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pj-pas-num, .ep-pj-pas-bascule { flex: none; white-space: nowrap; }
.ep-pj-courante {
  display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: #0E0F0C; color: #F2F0E8;
  background-image: radial-gradient(420px 120px at 10% 0%, rgba(185, 245, 16, .12), transparent 70%);
}
.ep-pj-courante-t { font: 800 21px/1.2 var(--display); letter-spacing: -.02em; color: #FFFFFF; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ep-pj-courante p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(242, 240, 232, .82); }
/* Ce qui reste : trois par ligne, pour ne pas faire défiler une liste. */
.ep-pj-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-pj-action {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); text-align: left;
  font-family: var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ep-pj-action:hover { border-color: var(--ink-5); transform: translateY(-1px); box-shadow: 0 12px 26px -20px rgba(14, 15, 12, .5); }
.ep-pj-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* La case sur la ligne du titre ; dessous, ce que l'étape change, en quelques mots. */
.ep-pj-action { gap: 4px; padding: 11px 14px 12px; }
.ep-pj-action-haut { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ep-pj-action-haut .ep-pj-rond { flex: none; }
.ep-pj-action-haut .ep-pj-chevron { margin-left: auto; flex: none; }
.ep-pj-action.is-t-fondation .ep-pj-rond { box-shadow: inset 0 0 0 2px var(--ink); }
.ep-pj-action.is-t-credibilite .ep-pj-rond { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ep-pj-action-t { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.ep-pj-action-dit { padding-left: 23px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
/* Fil c5c2e07b (« texte plus petit afin que 3 puissent passer sur la même
   ligne ») : le titre en 13 px, la phrase en 12 px sur une ligne. Les trois
   cartes restent côte à côte jusqu'à 520 px (une seule colonne en dessous,
   au téléphone, au lieu de 760 px). Un titre trop long pour sa carte prend
   deux lignes au plus ; la carte le redit en entier au survol. */
.ep-pj-action { padding: 10px 12px 11px; }
.ep-pj-action-haut { gap: 8px; }
.ep-pj-action-t {
  font-size: 13px; line-height: 1.3; overflow-wrap: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ep-pj-action-dit { padding-left: 22px; font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pj-action-dit .ep-pj-tag { display: inline-block; margin-right: 6px; padding: 0 7px; font-size: 11.5px; line-height: 18px; vertical-align: 1px; }
.ep-pj-action:hover .ep-pj-rond { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--accent-wash); }
/* Les catégories : la page où l'étape se remplit, et combien il en reste. */
.ep-pj-groupe {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 6px 0 -2px;
  font: 600 13px/1.2 var(--sans); color: var(--ink-2);
}
.ep-pj-groupe:first-child { margin-top: 0; }
.ep-pj-groupe .num { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-3); }
.ep-pj-voir-tout {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--sans); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ep-pj-voir-tout .num { font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.ep-pj-voir-tout:hover { border-color: var(--ink-5); background: var(--surface-2); }
.ep-pj-voir-tout:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-voir-tout-chevron { transform: rotate(90deg); transition: transform .2s ease; }
.ep-pj-voir-tout-chevron.is-haut { transform: rotate(-90deg); }
.ep-pj-voir-valides {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--gain-line); background: var(--gain-wash); color: var(--ink-2); font: 600 13px/1.2 var(--sans); cursor: pointer;
}
.ep-pj-voir-valides i { font-style: normal; color: var(--gain); }
.ep-pj-voir-valides .num { padding: 1px 7px; border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--gain); }
.ep-pj-voir-valides:hover { border-color: var(--gain); }
.ep-pj-voir-valides:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Sur une seule ligne (fil ca7a05b2) : au-delà de la largeur, elle défile,
   sans barre, et s'efface du côté qui cache (projet.js, surUneLigne). */
.ep-pj-faites {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 3px; margin: -4px -3px;
}
.ep-pj-faites::-webkit-scrollbar { display: none; }
.ep-pj-faites.is-droite { mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.ep-pj-faites.is-gauche { mask-image: linear-gradient(90deg, transparent, #000 44px); }
.ep-pj-faites.is-gauche.is-droite { mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.ep-pj-fait {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--gain-line); background: var(--gain-wash); color: var(--ink-2); font: 500 13px/1.3 var(--sans); cursor: pointer;
}
.ep-pj-fait i { font-style: normal; font-weight: 700; color: var(--gain); }
.ep-pj-fait.is-na { background: var(--surface-2); border-color: var(--rule); color: var(--ink-4); }
.ep-pj-fait.is-na i { color: var(--ink-4); }
.ep-pj-questions-clair { flex: none; }

/* L'arrivée depuis l'accueil : la page se met en place, élément par élément,
   une fois. --i : l'ordre d'entrée ; --deja : le temps déjà écoulé, pour
   qu'un recalcul ne la rejoue pas. Sans mouvement si on l'a demandé. */
@media (prefers-reduced-motion: no-preference) {
  .ep-projet.is-assemble .ep-pj-route-tete,
  .ep-projet.is-assemble .ep-pj-pas,
  .ep-projet.is-assemble .ep-pj-courante,
  .ep-projet.is-assemble .ep-pj-groupe,
  .ep-projet.is-assemble .ep-pj-action,
  .ep-projet.is-assemble .ep-pj-grille.is-route > .vitrine-mini,
  .ep-projet.is-assemble .ep-pj-grille.is-route > .ep-pj-fiche {
    animation: ep-pj-pose .7s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 75ms + 140ms + var(--deja, 0ms));
  }
  .ep-projet.is-assemble .ep-pj-grille.is-route > .vitrine-mini { --i: 2; }
  .ep-projet.is-assemble .ep-pj-grille.is-route > .ep-pj-fiche { --i: 4; }
  .ep-projet.is-assemble .ep-pj-pas-marque { animation: ep-pj-marque .6s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 75ms + 260ms + var(--deja, 0ms)); }
  .ep-projet.is-assemble .ep-pj-jauge-barre i { transform-origin: left center; animation: ep-pj-remplir 1.2s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(380ms + var(--deja, 0ms)); }
  .ep-projet.is-assemble .ep-pj-courante { animation-name: ep-pj-pose, ep-pj-eclat; animation-duration: .7s, 1.6s; animation-delay: calc(var(--i, 0) * 75ms + 140ms + var(--deja, 0ms)), calc(var(--i, 0) * 75ms + 700ms + var(--deja, 0ms)); }
}
@keyframes ep-pj-pose { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ep-pj-marque { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ep-pj-remplir { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ep-pj-eclat { 0% { box-shadow: 0 0 0 0 rgba(185, 245, 16, 0); } 35% { box-shadow: 0 0 0 6px rgba(185, 245, 16, .35); } 100% { box-shadow: 0 0 0 14px rgba(185, 245, 16, 0); } }

@media (max-width: 1100px) {
  .ep-projet .ep-pj-grille { grid-template-columns: minmax(0, 1fr); }
  .ep-projet .ep-pj-grille.is-route { grid-template-areas: "une" "vitrine" "route" "fiche"; row-gap: 16px; }
  .ep-pj-grille.is-route > .ep-pj-fiche { position: static; }
}
@media (max-width: 760px) {
  .ep-pj-etape { padding: 18px 16px; }
  .ep-pj-pas { grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; }
  .ep-pj-pas-marque { width: 28px; height: 28px; }
  .ep-pj-pas-marque > span { width: 22px; height: 22px; font-size: 12px; }
  .ep-pj-pas::before { left: 13px; top: 28px; }
  .ep-pj-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Au téléphone, la phrase du palier passe dans l'infobulle : le nom, le
     compte et « Replier » restent sous les yeux. */
  .ep-pj-pas-note { display: none; }
}

@media (max-width: 519px) {
  .ep-pj-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ─── Mon projet, les versions légères (aperçu, 12 octobre ; projet.js) ───
   Trois maquettes à trancher : « Prochaine étape » disparaît (la mascotte
   dit quoi faire), plus de phrase sous chaque étape, un seul bouton pour
   continuer ; le coin droit (tes chiffres, ta fiche) ne change pas.
   A1 trois cartes, A2 une barre, A3 la liste épurée. Des surfaces blanches
   sur l'ivoire, qui se soulèvent au survol et s'enfoncent à la pression ;
   une seule courbe, sans rebond. */
/* Les blocs d'une même rangée, alignés (12 octobre : « veille à ce que les
   blocs de même ligne soient bien alignés ») : les cartes et « Ton business
   en un coup d'œil » sur la première rangée, à la même hauteur, haut et bas ;
   dessous, la carte ouverte et l'avancement en face de ta fiche, alignés en
   haut. La colonne de gauche reprend les deux rangées de la grille (subgrid). */
.ep-projet .ep-pj-grille.is-leger { grid-template-areas: none; grid-template-rows: auto auto; row-gap: 14px; }
.ep-pj-grille.is-leger > .ep-pj-leger { grid-column: 1; grid-row: 1 / span 2; grid-template-rows: subgrid; }
.ep-pj-grille.is-leger > .vitrine-mini { grid-column: 2; grid-row: 1; align-self: stretch; margin: 0; }
.ep-pj-grille.is-leger > .vitrine-mini .vitrine-mini-titre { white-space: normal; overflow: visible; }
.ep-pj-grille.is-leger > .ep-pj-fiche { grid-column: 2; grid-row: 2; align-self: start; }
.ep-pj-leger { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ep-pj-leger > .ep-pj-cartes { align-self: stretch; }
.ep-pj-leger-bas { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ep-pj-leger-bas:empty { display: none; }
.ep-pj-leger .ep-pj-jauge { margin: 0; color: var(--ink-3); }
.ep-pj-leger .ep-pj-jauge-barre { flex: none; width: 96px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.ep-pj-leger .ep-pj-jauge-barre i { background: var(--ink); }
.ep-pj-leger-pied, .ep-pj-leger-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }

/* Le seul bouton pour continuer : plein, anis, la flèche qui avance au survol. */
.ep-pj-continuer {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px 10px 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 700 15px/1.2 var(--sans); white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 rgba(14, 15, 12, .06), 0 10px 24px -16px rgba(110, 150, 0, .9);
  transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.ep-pj-continuer > span { display: inline-block; transition: transform .2s var(--ease-soft); }
.ep-pj-continuer:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(14, 15, 12, .06), 0 14px 28px -14px rgba(110, 150, 0, .9); }
.ep-pj-continuer:hover > span { transform: translateX(3px); }
.ep-pj-continuer:active { transform: scale(.98); }
.ep-pj-continuer:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Une étape, sur une ligne : la case, son nom, la flèche. */
.ep-pj-lignes { display: grid; gap: 6px; min-width: 0; }
.ep-pj-ligne {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; text-align: left; cursor: pointer;
  border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font-family: var(--sans);
  transition: background-color .15s, box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ep-pj-ligne:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink-5), 0 10px 22px -18px rgba(14, 15, 12, .5); transform: translateY(-1px); }
.ep-pj-ligne:active { transform: none; background: var(--enfonce, #ECE9E1); }
.ep-pj-ligne:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-ligne .ep-pj-rond, .ep-pj-ligne .ep-pj-tag { flex: none; }
.ep-pj-ligne.is-t-fondation .ep-pj-rond { box-shadow: inset 0 0 0 2px var(--ink); }
.ep-pj-ligne.is-t-credibilite .ep-pj-rond { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ep-pj-ligne:hover .ep-pj-rond { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--accent-wash); }
.ep-pj-ligne-t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pj-ligne.is-option .ep-pj-ligne-t { font-weight: 500; color: var(--ink-2); }
.ep-pj-ligne .ep-pj-chevron { flex: none; margin-left: auto; transition: transform .2s var(--ease-soft); }
.ep-pj-ligne:hover .ep-pj-chevron { transform: translateX(2px); color: var(--ink); }
.ep-pj-lignes-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ep-pj-pose { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ep-pj-pose i { font-style: normal; color: var(--gain); }
/* Un palier qu'on vient d'ouvrir se déplie, une fois (pas à chaque dessin). */
.ep-pj-carte-corps.is-entree, .ep-pj-reste.is-entree, .ep-pj-rang-corps.is-entree { animation: ep-pj-deplie .45s var(--fluid, cubic-bezier(.22, 1, .36, 1)) both; }
@keyframes ep-pj-deplie { from { opacity: 0; transform: translateY(-6px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* A1 — Trois cartes. */
.ep-pj-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ep-pj-carte { display: grid; min-width: 0; }
.ep-pj-carte-btn {
  display: grid; align-content: start; gap: 4px; width: 100%; min-width: 0; padding: 14px 16px 16px; text-align: left; cursor: pointer;
  border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); font-family: var(--sans);
  box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04));
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft);
}
.ep-pj-carte-btn:hover { box-shadow: var(--souleve, 0 14px 32px -18px rgba(14, 15, 12, .22)); transform: translateY(-2px); }
.ep-pj-carte-btn:active { transform: scale(.99); }
.ep-pj-carte-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-carte.is-cours .ep-pj-carte-btn { box-shadow: 0 0 0 2px var(--anis-fort, var(--accent-dim)), var(--souleve, 0 14px 32px -18px rgba(14, 15, 12, .22)); }
.ep-pj-carte.is-ouverte .ep-pj-carte-btn { box-shadow: 0 0 0 2px var(--ink), var(--souleve, 0 14px 32px -18px rgba(14, 15, 12, .22)); }
.ep-pj-carte-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ep-pj-carte .ep-pj-pas-marque { width: 40px; height: 40px; }
.ep-pj-carte .ep-pj-pas-marque > span { width: 31px; height: 31px; font-size: 14px; }
.ep-pj-carte.is-fait .ep-pj-pas-marque { background: var(--ink); }
.ep-pj-carte.is-fait .ep-pj-pas-marque > span { background: var(--ink); color: var(--accent); }
.ep-pj-carte.is-cours .ep-pj-pas-marque > span { background: var(--accent); color: var(--accent-ink); }
.ep-pj-carte-nom { font: 700 18px/1.2 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.ep-pj-carte-compte { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); }
.ep-pj-carte-compte b { font-weight: 600; }
.ep-pj-carte.is-fait .ep-pj-carte-compte b { color: var(--gain); }
.ep-pj-carte-chevron { flex: none; transform: rotate(90deg); transition: transform .25s var(--ease-soft); color: var(--ink-4); }
.ep-pj-carte.is-ouverte .ep-pj-carte-chevron { transform: rotate(-90deg); color: var(--ink); }
.ep-pj-carte-note { font-size: 12.5px; line-height: 1.35; color: var(--ink-4); }
.ep-pj-carte-corps { display: grid; gap: 10px; min-width: 0; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04)); }

/* A2 — Une barre en trois segments, comme des onglets : le palier choisi
   souligné d'anis ; dessous, ce qui y reste. */
.ep-pj-segments { display: grid; column-gap: 4px; min-width: 0; }
.ep-pj-segment { display: grid; gap: 7px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font-family: var(--sans); color: var(--ink-4); cursor: pointer; transition: color .15s; }
.ep-pj-segment-barre { display: block; height: 10px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.ep-pj-segments > .ep-pj-segment:first-child .ep-pj-segment-barre { border-radius: 999px 3px 3px 999px; }
.ep-pj-segments > .ep-pj-segment:last-child .ep-pj-segment-barre { border-radius: 3px 999px 999px 3px; }
.ep-pj-segment-barre i { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease-soft); }
.ep-pj-segment-l { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; padding-bottom: 6px; border-bottom: 2px solid transparent; font-size: 12.5px; transition: border-color .2s var(--ease-soft); }
.ep-pj-segment-l b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pj-segment-l .num { flex: none; }
.ep-pj-segment:hover { color: var(--ink-2); }
.ep-pj-segment:hover .ep-pj-segment-l { border-bottom-color: var(--rule); }
.ep-pj-segment.is-choisi { color: var(--ink); }
.ep-pj-segment.is-choisi .ep-pj-segment-l { border-bottom-color: var(--accent); }
.ep-pj-segment.is-fait .ep-pj-segment-l .num { color: var(--gain); }
.ep-pj-segment:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.ep-pj-reste { display: grid; gap: 10px; min-width: 0; padding: 14px 14px 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04)); }
.ep-pj-reste-titre { font: 600 12px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.ep-pj-reste-palier { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 600 13px/1.2 var(--sans); color: var(--ink-2); }
.ep-pj-reste-palier:first-child { margin-top: 0; }
.ep-pj-reste-palier .num { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-3); }
.ep-pj-reste-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-top: 2px; }
.ep-pj-ensuite { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-width: 0; font-size: 13px; color: var(--ink-3); }
.ep-pj-ensuite b { font-weight: 600; color: var(--ink-2); }
.ep-pj-tout-voir, .ep-pj-rang-autres {
  padding: 2px 0; border: 0; background: none; font: 600 13px/1.2 var(--sans); color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 3px; transition: text-decoration-color .15s;
}
.ep-pj-tout-voir:hover, .ep-pj-rang-autres:hover { text-decoration-color: var(--ink); }
.ep-pj-tout-voir:focus-visible, .ep-pj-rang-autres:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* A3 — La liste épurée : un palier par ligne, sa barre, son compte. */
.ep-pj-rangs { list-style: none; margin: 0; padding: 4px 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04)); }
.ep-pj-rang + .ep-pj-rang { border-top: 1px solid var(--rule); }
.ep-pj-rang-tete {
  display: grid; grid-template-columns: 24px minmax(84px, auto) minmax(0, 1fr) 40px 14px; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 12px 4px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer;
  font-family: var(--sans); color: var(--ink); transition: background-color .15s;
}
.ep-pj-rang-tete:hover { background: var(--surface-2); }
.ep-pj-rang-tete:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-rang-no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font: 700 12px/1 var(--sans); }
.ep-pj-rang.is-fait .ep-pj-rang-no { background: var(--ink); color: var(--accent); box-shadow: none; }
.ep-pj-rang.is-cours .ep-pj-rang-no { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ep-pj-rang-nom { font: 700 16px/1.2 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.ep-pj-rang-barre { display: block; height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.ep-pj-rang-barre i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .6s var(--ease-soft); }
.ep-pj-rang-num { font-size: 13px; color: var(--ink-3); text-align: right; }
.ep-pj-rang.is-fait .ep-pj-rang-num { color: var(--gain); }
.ep-pj-rang-chevron { transform: rotate(90deg); transition: transform .25s var(--ease-soft); color: var(--ink-4); }
.ep-pj-rang.is-ouvert .ep-pj-rang-chevron { transform: rotate(-90deg); color: var(--ink); }
.ep-pj-rang-corps { display: grid; gap: 8px; min-width: 0; padding: 0 4px 14px 40px; }
.ep-pj-rang-suivante { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 7px 7px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.ep-pj-rang-suivante .ep-pj-rond { flex: none; box-shadow: inset 0 0 0 2px var(--ink); }
.ep-pj-rang-suivante b { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pj-rang-suivante .ep-pj-tag { flex: none; }
.ep-pj-completer {
  flex: none; min-height: 34px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 600 13px/1.2 var(--sans); cursor: pointer; transition: background-color .15s, color .15s;
}
.ep-pj-completer:hover { background: var(--ink); color: var(--surface); }
.ep-pj-completer:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-pj-rang-autres { justify-self: start; font-size: 12.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .ep-projet.is-assemble .ep-pj-carte,
  .ep-projet.is-assemble .ep-pj-segment,
  .ep-projet.is-assemble .ep-pj-reste,
  .ep-projet.is-assemble .ep-pj-rangs,
  .ep-projet.is-assemble .ep-pj-leger-pied,
  .ep-projet.is-assemble .ep-pj-leger-tete,
  .ep-projet.is-assemble .ep-pj-grille.is-leger > .vitrine-mini,
  .ep-projet.is-assemble .ep-pj-grille.is-leger > .ep-pj-fiche {
    animation: ep-pj-pose .7s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 75ms + 140ms + var(--deja, 0ms));
  }
  .ep-projet.is-assemble .ep-pj-leger-tete, .ep-projet.is-assemble .ep-pj-rangs { --i: 1; }
  .ep-projet.is-assemble .ep-pj-grille.is-leger > .vitrine-mini { --i: 2; }
  .ep-projet.is-assemble .ep-pj-grille.is-leger > .ep-pj-fiche, .ep-projet.is-assemble .ep-pj-leger-pied { --i: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-pj-carte-corps.is-entree, .ep-pj-reste.is-entree, .ep-pj-rang-corps.is-entree { animation: none; }
}
@media (max-width: 1100px) {
  .ep-projet .ep-pj-grille.is-leger { grid-template-rows: none; }
  .ep-pj-grille.is-leger > .ep-pj-leger, .ep-pj-grille.is-leger > .vitrine-mini, .ep-pj-grille.is-leger > .ep-pj-fiche { grid-column: 1; grid-row: auto; }
  .ep-pj-grille.is-leger > .ep-pj-leger { grid-template-rows: none; }
}
/* Au téléphone : les cartes en rangées (l'anneau, le nom et sa note, le
   compte), la liste resserrée. */
@media (max-width: 640px) {
  .ep-pj-cartes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ep-pj-carte-btn { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "haut nom compte" "haut note compte"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 14px; border-radius: 18px; }
  .ep-pj-carte-haut { grid-area: haut; margin: 0; }
  .ep-pj-carte .ep-pj-pas-ici { display: none; }
  .ep-pj-carte-nom { grid-area: nom; font-size: 16px; }
  .ep-pj-carte-note { grid-area: note; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ep-pj-carte-compte { grid-area: compte; }
  .ep-pj-rangs { padding: 2px 8px; }
  .ep-pj-rang-tete { grid-template-columns: 24px auto minmax(0, 1fr) 34px 14px; gap: 10px; }
  .ep-pj-rang-corps { padding-left: 4px; }
  .ep-pj-leger-pied .ep-pj-continuer, .ep-pj-leger-tete .ep-pj-continuer, .ep-pj-reste-pied .ep-pj-continuer { width: 100%; justify-content: center; }
  /* « Continuer avec Fyno, le guide expert » (fil df724c6a) : au téléphone, le libellé passe à la ligne
     plutôt que de déborder de l'écran. */
  .ep-pj-continuer { white-space: normal; text-align: center; }
  /* Un nom d'étape trop long passe sur deux lignes plutôt que d'être coupé. */
  .ep-pj-ligne-t, .ep-pj-rang-suivante b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  /* Sous la barre, le nom du palier puis son compte : rien ne se coupe. */
  .ep-pj-segment-l { flex-direction: column; align-items: flex-start; gap: 1px; }
  .ep-pj-segment-l b { white-space: normal; overflow: visible; }
}

/* Parcours, « Comment ton client paie … ? » (fil 544374f8 : « trop gros, doit
   être sur la même ligne ») : quatre cartes basses sur une rangée, chacune à
   la largeur de ses mots — titre et phrase courte sur une ligne chacun ;
   l'exemple se lit au survol. Deux par rangée au téléphone. Seulement les
   façons de payer : la forme juridique a huit cartes (fil 2b0927dd). */
/* « Je ne sais pas encore » à côté des autres (fil 78b0270a, 12 octobre) :
   une cinquième carte sur la rangée, sa phrase entière au survol. La rangée
   se mesure à la colonne de la question (requête de conteneur, le zoom des
   portables compris) : trop étroite, l'issue repasse dessous, sur toute la
   largeur, avec sa phrase entière ; les quatre façons de payer gardent leur
   rangée, chacune à la largeur de ses mots. */
.ep-apercu .setup-body { container-type: inline-size; }
.ep-apercu .setup-choices.is-prix { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-apercu .setup-choices.is-prix > .setup-choice { flex: 1 1 auto; min-width: 0; gap: 2px; padding: 10px 13px; min-height: 0; }
.ep-apercu .setup-choices.is-prix .setup-choice-label { font-size: 13.5px; line-height: 1.25; white-space: nowrap; }
.ep-apercu .setup-choices.is-prix .setup-choice-note { max-width: 100%; font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-apercu .setup-choices.is-prix > .is-unsure .setup-choice-note.is-long { display: none; }
@container (max-width: 899px) {
  .ep-apercu .setup-choices.is-prix > .is-unsure { flex-basis: 100%; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px; }
  .ep-apercu .setup-choices.is-prix > .is-unsure .setup-choice-label { font-size: 14px; }
  .ep-apercu .setup-choices.is-prix > .is-unsure .setup-choice-note.is-court { display: none; }
  .ep-apercu .setup-choices.is-prix > .is-unsure .setup-choice-note.is-long { display: inline; white-space: normal; overflow: visible; }
}
@media (max-width: 720px) {
  .ep-apercu .setup-choices.is-prix > .setup-choice:not(.is-unsure) { flex: 1 1 calc(50% - 4px); }
  .ep-apercu .setup-choices.is-prix .setup-choice-label { white-space: normal; }
}

/* Parcours, « Sous quelle forme ? » (fil 2b0927dd : « on ne voit plus rien,
   fais sur deux lignes ») : les huit formes sur deux rangées de quatre, cartes
   basses, chaque texte en entier. Deux par rangée au téléphone. */
.ep-apercu .setup-choices.is-formes { gap: 8px; }
.ep-apercu .setup-choices.is-formes > .setup-choice { min-width: 0; gap: 2px; padding: 10px 13px; min-height: 0; }
.ep-apercu .setup-choices.is-formes .setup-choice-label { font-size: 13.5px; line-height: 1.25; }
.ep-apercu .setup-choices.is-formes .setup-choice-note { font-size: 11.5px; line-height: 1.35; }
/* Le « i » du coin garde sa place : le nom ne passe pas dessous. */
.ep-apercu .setup-choices > .setup-choice.has-info .setup-choice-info { top: 7px; right: 7px; }

/* ─────────────── Achats : les lignes d'aujourd'hui, le constructeur derrière « ⋯ » ─────────────── */
.ep-achats-blocs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: 0 0 var(--s-5); }
.ep-achats-blocs .costblock { margin: 0; }
.ep-achats-blocs > * { min-width: 0; }
/* Quatre blocs du même dessin (charges générales, achats ponctuels, charges
   par vente, investissements) : chacun se plie par son en-tête. */
.ep-achats .costblock.is-invest { margin: 0 0 var(--s-5); min-width: 0; }
.ep-achats .costblock-head[role="button"] { cursor: pointer; align-items: center; border-radius: 10px; padding: 6px 8px 10px 2px; transition: background .15s ease; }
.ep-achats .costblock-head[role="button"]:hover { background: rgba(14, 15, 12, .035); }
.ep-achats .costblock-head[role="button"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.costblock-chevron { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0; flex: none; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); }
.costblock-chevron::before { content: ''; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.costblock.is-plie .costblock-chevron::before { transform: translateX(-1px) rotate(-45deg); }
.costblock.is-plie .costblock-head { border-bottom-color: transparent; margin-bottom: 0; }
.ep-achats .costblock-head[role="button"]:hover .costblock-chevron { border-color: var(--ink-5); }
/* Des lignes de la même taille : mêmes boutons, mêmes champs, même texte,
   des charges générales aux investissements. */
.ep-achats .cost-line { min-height: 46px; }
.ep-achats .cost-seg { padding: 2px; border-radius: 8px; }
.ep-achats .cost-seg .cost-seg-opt { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; }
.ep-achats .cost-amount input, .ep-achats .cost-extra input { width: 76px; padding: 5px 8px; font-size: 13px; }
.ep-achats .cost-extra > span, .ep-achats .cost-unite { font-family: var(--sans); font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.ep-achats .cost-mois, .ep-achats .cost-mode select { border: 1px solid var(--rule); background: var(--surface); border-radius: 6px; padding: 5px 6px; font-size: 12px; color: var(--ink-3); }
/* Dans le tiroir d'un achat ponctuel, le mois prend toute sa case, à côté du montant (fil 4b66cd35). */
.ep-couche .field .control > .cost-mois { flex: 1 1 auto; width: 100%; max-width: none; border: 0; padding: 0; background: transparent; font: inherit; color: var(--ink); }
.ep-achats .cost-year { width: 96px; font-size: 12px; white-space: nowrap; }
.ep-invest-vide { margin: 0; padding: 12px; font-size: 13px; color: var(--ink-4); }
.ep-invest-pied { padding: 10px 2px 0; }
.ep-amortissements { margin-top: 14px; }
.ep-amortissements h3 { margin: 0 0 8px; font: 600 14px/1.3 var(--sans); color: var(--ink); }

/* ─────────────── Financement : Besoin d'abord ─────────────── */
.ep-fi-caisse .source-money { display: inline-flex; align-items: center; gap: 4px; max-width: 150px; }
.ep-fi-caisse .source-input { width: 100%; min-width: 0; text-align: right; }
.ep-ligne-v.is-texte { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); text-align: right; }
.ep-fi-kicker { font: 600 13px/1.2 var(--sans); color: var(--ink-3); }

/* Besoin d'abord : le besoin, ce qui le couvre, ce qui manque. */
.ep-fi-besoin {
  display: grid; gap: 16px; margin: 0 0 var(--s-5); padding: 22px 24px; border-radius: 20px;
  border: 1px solid var(--rule); background: var(--surface);
}
.ep-fi-besoin-tete { display: grid; gap: 6px; }
.ep-fi-besoin-titre { margin: 0; font: 800 clamp(22px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.022em; color: var(--ink); }
.ep-fi-besoin.is-manque .ep-fi-besoin-titre { color: var(--loss); }
.ep-fi-besoin-dit { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.ep-fi-barre { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.ep-fi-barre-couvert { background: var(--gain-fill); }
.ep-fi-barre-manque { background: repeating-linear-gradient(-45deg, var(--loss-fill) 0 6px, var(--loss-wash) 6px 12px); }
/* La légende de la barre (fil 3d1a2a5e) : chaque part, sa couleur, son nom, son montant. */
.ep-fi-jauge { display: grid; gap: 8px; }
.ep-fi-legende { display: flex; flex-wrap: wrap; gap: 6px 22px; }
/* Du texte qui coule : au téléphone, la ligne passe à la ligne entre les mots, jamais dans un montant. */
.ep-fi-legende-l { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.ep-fi-legende-l b, .ep-fi-legende-p { white-space: nowrap; }
.ep-fi-legende-l b { font-weight: 700; color: var(--ink); }
.ep-fi-legende-l i { display: inline-block; vertical-align: -1px; margin-right: 8px; width: 12px; height: 12px; border-radius: 3px; }
.ep-fi-legende-l.is-couvert i { background: var(--gain-fill); }
.ep-fi-legende-l.is-manque i { background: repeating-linear-gradient(-45deg, var(--loss-fill) 0 3px, var(--loss-wash) 3px 6px); }
.ep-fi-legende-l.is-manque b { color: var(--loss); }
/* Tes financements, en cartes (fil 4ea9db15) : la trésorerie de départ se saisit sur la sienne. */
.ep-financement .ep-carte.is-caisse { cursor: default; }
.ep-financement .ep-carte.is-caisse:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.ep-financement .ep-carte .source-icone { flex: none; }
/* Trois sources de front dans le tiroir (fil f43162e0, revu le 14 au soir : « je ne vois que deux
   financements par ligne », dans « Ajouter un financement ») : jamais plus de trois, et trois dès
   que chacune garde 200 px ; deux en dessous, une au téléphone. */
.ep-fi-vide-choix.is-tiroir { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(200px, calc((100% - 20px) / 3))), 1fr)); }
.ep-fi-besoin-dit { margin: 0 0 12px; font-weight: 500; color: var(--ink-2); }
/* Dans le tiroir « Ajouter un financement », les mêmes cartes, sur fond clair. */
.ep-fi-vide-choix.is-tiroir .ep-fi-vide-source { background: var(--surface); border: 1px solid var(--rule); color: var(--ink); }
.ep-fi-vide-choix.is-tiroir .ep-fi-vide-source:hover { border-color: var(--ink); background: var(--surface); box-shadow: 0 14px 30px -24px rgba(14, 15, 12, .5); }
.ep-fi-vide-choix.is-tiroir .ep-fi-vide-source:focus-visible { outline-color: var(--ink); }
.ep-fi-vide-choix.is-tiroir .ep-fi-vide-source b { color: var(--ink); }
.ep-fi-vide-choix.is-tiroir .ep-fi-vide-dit { color: var(--ink-3); }
.ep-fi-vide-choix.is-tiroir .ep-fi-vide-plus { color: var(--ink); }
@media (max-width: 760px) { .ep-fi-vide-choix.is-tiroir { grid-template-columns: minmax(0, 1fr); } }
.ep-fi-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ep-fi-leviers { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.ep-fi-chiffre { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.ep-fi-chiffre-l { font-size: 12.5px; color: var(--ink-3); }
.ep-fi-chiffre-v { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.ep-fi-chiffre.is-bad .ep-fi-chiffre-v { color: var(--loss); }
.ep-fi-chiffre.is-good .ep-fi-chiffre-v { color: var(--gain); }
.ep-fi-chiffre small { font-size: 12px; line-height: 1.4; color: var(--ink-4); }
/* Le calcul a la plus grande part : chaque ligne y tient sur une ligne ; la courbe à côté. */
.ep-fi-besoin-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
/* Les cartes de financement, trois de front (fil f43162e0 : « 3 financements par ligne pour ne
   pas avoir à scroller ») : jamais plus de trois, et trois dès que chacune garde 300 px, la place
   du plus long texte d'une carte (« La trésorerie de la société au premier jour ») ; trois dès
   1 024 px de fenêtre, deux en dessous, une au téléphone. */
.ep-financement.is-besoin .ep-grille { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(300px, calc((100% - 24px) / 3))), 1fr)); }
.ep-fi-besoin-corps h3 { margin: 0 0 10px; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.ep-fi-courbe svg { width: 100%; height: auto; }

/* Dans le Détail du bandeau, le besoin suit les cartes, sans marge en plus. */
.sx-pli-plus .ep-fi-besoin { margin: 0; }

/* Les sources, une carte chacune, dans « Ajouter un financement » (le grand bloc d'une page sans
   financement est retiré, fil cba98f32 : la page reste sobre, comme Équipe). */
.ep-fi-vide-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ep-fi-vide-source {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 16px; border-radius: 16px;
  border: 1px solid rgba(242, 240, 232, .14); background: rgba(242, 240, 232, .05); color: #F2F0E8;
  text-align: left; font-family: var(--sans); cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ep-fi-vide-source:hover { background: rgba(185, 245, 16, .1); border-color: var(--accent); transform: translateY(-2px); }
.ep-fi-vide-source:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ep-fi-vide-source .source-icone { width: 36px; height: 36px; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ep-fi-vide-source b { font-size: 16px; font-weight: 600; color: #FFFFFF; }
.ep-fi-vide-dit { font-size: 13px; line-height: 1.45; color: rgba(242, 240, 232, .7); }
.ep-fi-vide-plus { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
/* Des financements : les tuiles d'aujourd'hui, sous un titre. */
.ep-fi-tuiles { display: grid; gap: 10px; margin: 0 0 var(--s-5); }
.ep-fi-tuiles-tete { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.ep-fi-tuiles-tete h2 { margin: 0; font: 700 var(--t-block)/1.2 var(--display); color: var(--ink); }
.ep-fi-tuiles-tete p { margin: 0; font-size: 13px; color: var(--ink-4); }
.ep-fi-tuiles .sources { margin: 0; }

/* Emplois et ressources : les deux côtés du plan, un exercice à la fois. */
.ep-fi-tableaux { display: grid; gap: 16px; margin: 0 0 var(--s-5); }
/* ─── Le plan de financement, replié sur Financement (fil c45db99b ;
   12 octobre : « F1 est top ; une mini infobulle à côté de chaque texte ;
   garde la taille de la carte de F2 » ; js/demo/epure/plan-financement.js) ───
   Replié, une carte basse, sur une rangée : l'icône, le titre et sa ligne,
   le verdict, « En savoir plus ». Ouvert, les deux tableaux, chaque ligne
   avec son « i ». */
.ep-pl { display: grid; gap: 0; min-width: 0; margin: 0 0 var(--s-5); padding: 14px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04)); }
.ep-pl.is-ouvert { gap: 16px; }
.ep-pl > * { min-width: 0; }
.ep-pl-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.ep-pl-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent-wash); color: var(--ink); }
.ep-pl-titres { display: grid; gap: 2px; min-width: 0; }
.ep-pl-titres h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 16px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.ep-pl-titres p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ep-pl-verdict { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; font: 600 13px/1.3 var(--sans); white-space: nowrap; }
.ep-pl-verdict i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px/1 var(--sans); font-style: normal; }
.ep-pl-verdict.is-ok { background: var(--gain-wash, #EEFBC6); color: var(--ink); }
.ep-pl-verdict.is-ok i { background: var(--ink); color: var(--anis, var(--accent)); }
.ep-pl-verdict.is-alerte { background: #FFF1D6; color: #5C3A00; }
.ep-pl-verdict.is-alerte i { background: #B26A00; color: #FFFFFF; }
/* « + En savoir plus » : une pastille, le signe dans un rond ; « − Refermer » la referme. */
.ep-pl-plus {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px 5px 5px; border: 0; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; font: 600 13px/1.2 var(--sans); white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--fluid), box-shadow .2s var(--fluid);
}
.ep-pl-plus:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(14, 15, 12, .7); }
.ep-pl-plus:active { transform: scale(.98); }
.ep-pl-plus:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ep-pl-plus-signe { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--anis, var(--accent)); color: var(--ink); font: 700 16px/1 var(--sans); }
.ep-pl.is-ouvert .ep-pl-plus { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.ep-pl-corps { display: grid; gap: 16px; min-width: 0; }
.ep-pl-corps > * { min-width: 0; }
.ep-pl .table-wrap { overflow-x: auto; }
/* Le « i » de chaque ligne, au bout de son libellé (le « i » des réglages d'Offre et revenus). */
.ep-pl td > .ep-pl-i { margin-left: 6px; vertical-align: 1px; }
.ep-pl-titres h2 > .ep-pl-i { vertical-align: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ep-pl-corps.is-entree { animation: ep-pl-deplie .45s var(--fluid, cubic-bezier(.22, 1, .36, 1)) both; }
  @keyframes ep-pl-deplie { from { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }
}
@media (max-width: 760px) {
  .ep-pl { padding: 14px; border-radius: 20px; }
  .ep-pl-tete { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ep-pl-verdict { white-space: normal; }
  .ep-pl-ico { display: none; }
  .ep-pl-plus { justify-self: start; }
}

@media (max-width: 1100px) {
  .ep-fi-besoin-corps { grid-template-columns: minmax(0, 1fr); }
  .ep-fi-vide-choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-fi-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ep-fi-besoin { padding: 18px 14px; }
  .ep-fi-vide-choix { grid-template-columns: minmax(0, 1fr); }
  .ep-fi-chiffres { grid-template-columns: minmax(0, 1fr); }
  .ep-ligne-v.is-texte { text-align: left; }
  .ep-fi-caisse .source-money { max-width: none; }
}

/* ─────────────── Synthèse détaillée : Affiche, Conseil ─────────────── */
.sx-v { padding-bottom: 96px; }
.sx-lien { padding: 0; border: 0; background: none; font: 600 14px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.sx-lien:hover { text-decoration-thickness: 2px; }
.sx-v .as-table td:not(:first-child), .sx-v .as-table th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-v .as-table tr.is-fort td { font-weight: 600; color: var(--ink); }
.sx-v .as-table tr.is-total td { font-weight: 700; color: var(--ink); border-top: 1.5px solid var(--ink); }
.sx-v .as-table tr.is-taux td { font-size: 12px; color: var(--ink-4); }
.sx-v .as-table tr.is-section td { padding-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-3); background: none; }
.sx-v .as-table tr.is-neg td:last-child { color: var(--loss); }
.sx-db-h3 { margin: 18px 0 8px; font: 600 15px/1.3 var(--sans); color: var(--ink); }

.sx-hyp { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-3); }
.sx-hyp.is-ok { background: var(--gain-wash); color: var(--gain); }
.sx-hyp.is-watch { background: #FFF4E0; color: #9A5B00; }
.sx-v .sx-hyp-table .as-table td, .sx-v .sx-hyp-table .as-table th { white-space: normal; text-align: left; }
.sx-v .sx-hyp-table .as-table td:nth-child(3) { white-space: nowrap; }

/* Affiche (retours du 4 octobre) : une une de journal. Sur l'encre, le mot du
   verdict en très grand, puis les huit chiffres en tableau d'affichage, des
   filets plutôt que des cartes ; dessous, des sections numérotées en grand. */
.sx-af { display: grid; gap: 44px; }
/* Sans « overflow: hidden », la une garderait la largeur de son contenu : elle tient dans sa colonne. */
.sx-af > * { min-width: 0; }
.sx-af-une {
  position: relative; isolation: isolate; display: grid; gap: 26px;
  padding: 30px 34px 10px; border-radius: 28px; background: #0E0F0C; color: #F2F0E8;
  box-shadow: 0 30px 60px -36px rgba(14, 15, 12, .7);
}
/* La lueur vit dans son calque, rogné à l'arrondi : la une, elle, laisse
   déborder les bulles de définition (retours du 5 octobre). */
.sx-af-lueur { position: absolute; z-index: -1; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.sx-af-lueur::before {
  content: ''; position: absolute; inset: -35% -12% auto 38%; height: 120%;
  background: radial-gradient(closest-side, rgba(185, 245, 16, .17), transparent 72%);
}
.sx-af-une.is-bad .sx-af-lueur::before { background: radial-gradient(closest-side, rgba(224, 21, 63, .18), transparent 72%); }
.sx-af-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.sx-af-nom { font: 700 15px/1.3 var(--sans); color: #F2F0E8; }
.sx-af-nom span { font-weight: 500; color: rgba(242, 240, 232, .6); }
.sx-af-ans { display: flex; gap: 4px; flex-wrap: wrap; }
.sx-af-an {
  display: inline-flex; align-items: baseline; gap: 3px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(242, 240, 232, .22); background: none; color: rgba(242, 240, 232, .66);
  font: 500 13px/1 var(--sans); cursor: pointer; transition: background .15s var(--ease-soft), color .15s var(--ease-soft);
}
.sx-af-an b { font-size: 15px; font-weight: 700; color: #F2F0E8; }
.sx-af-an:hover { border-color: rgba(242, 240, 232, .5); }
.sx-af-an.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sx-af-an.is-on b { color: var(--accent-ink); }
.sx-af-an:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sx-af-titre { display: grid; justify-items: start; gap: 10px; }
/* Retours du 5 octobre au soir : le mot du verdict, en pastille ; la phrase
   qui répond, en grand ; les chiffres qui la portent, dessous. */
.sx-af-mot { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.sx-af-une.is-bad .sx-af-mot { background: #FF6F8E; color: #1B0A0F; }
.sx-af-une.is-watch .sx-af-mot { background: #F5C451; color: #1B1404; }
.sx-af-une.is-neutral .sx-af-mot, .sx-af-une.is-neutre .sx-af-mot { background: #F2F0E8; color: var(--ink); }
.sx-af-titre h2.sx-af-phrase { margin: 0; font: 800 clamp(24px, 2.6vw, 40px)/1.08 var(--display); letter-spacing: -.03em; color: #F7F5EE; }
.sx-af-une.is-good .sx-af-titre h2.sx-af-phrase { color: var(--accent); }
.sx-af-sous { margin: 0; font: 500 clamp(15px, 1.3vw, 18px)/1.5 var(--sans); color: rgba(242, 240, 232, .86); }
.sx-af-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -34px; border-top: 1px solid rgba(242, 240, 232, .16); }
.sx-af-fig {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 7px; min-width: 0; padding: 22px 22px 18px;
  border: 0; border-right: 1px solid rgba(242, 240, 232, .14); border-bottom: 1px solid rgba(242, 240, 232, .14);
  background: none; color: inherit; text-align: left; font-family: var(--sans); cursor: pointer;
  transition: background .2s var(--ease-soft);
}
.sx-af-fig:nth-child(4n) { border-right: 0; }
.sx-af-fig:nth-last-child(-n + 4) { border-bottom: 0; }
.sx-af-fig:hover { background: rgba(242, 240, 232, .05); }
.sx-af-fig:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.sx-af-l { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: rgba(242, 240, 232, .72); }
.sx-af-l i { font-style: normal; font-size: 11px; color: rgba(242, 240, 232, .38); }
.sx-af-v { font: 800 clamp(30px, 3.1vw, 46px)/1 var(--display); letter-spacing: -.035em; color: #FFFFFF; white-space: nowrap; }
.sx-af-fig.is-pos .sx-af-v { color: var(--accent); }
.sx-af-fig.is-neg .sx-af-v { color: #FF6F8E; }
.sx-af-fig.is-warn .sx-af-v { color: #FFC56B; }
.sx-af-n { font-size: 13px; line-height: 1.4; color: rgba(242, 240, 232, .6); }
.sx-af-courbe { display: block; width: 100%; height: 36px; overflow: visible; }
.sx-af-trace { fill: none; stroke: rgba(242, 240, 232, .45); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sx-af-fig.is-pos .sx-af-trace { stroke: var(--accent); }
.sx-af-fig.is-neg .sx-af-trace { stroke: #FF6F8E; }
.sx-af-fig.is-warn .sx-af-trace { stroke: #FFC56B; }
.sx-af-zero { stroke: rgba(242, 240, 232, .2); stroke-dasharray: 2 3; }
.sx-af-point { fill: #FFFFFF; }

.sx-af-cadre { padding: 18px 20px; border-top: 2px solid var(--ink); background: var(--surface); }
.sx-af .sx-cs-leviers { padding: 18px 20px; border-top: 2px solid var(--ink); background: var(--surface); }
.sx-af-cadre.is-table .as-table { min-width: 680px; }

@media (max-width: 1100px) {
  .sx-af-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-af-fig:nth-child(4n) { border-right: 1px solid rgba(242, 240, 232, .14); }
  .sx-af-fig:nth-child(2n) { border-right: 0; }
  .sx-af-fig:nth-last-child(-n + 4) { border-bottom: 1px solid rgba(242, 240, 232, .14); }
  .sx-af-fig:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 760px) {
  .sx-af-une { padding: 22px 18px 6px; border-radius: 22px; }
  .sx-af-grille { margin: 0 -18px; }
  .sx-af-fig { padding: 18px 16px 14px; }
  .sx-af-cadre { padding: 14px 12px; }
}
@media (max-width: 460px) {
  .sx-af-fig { padding: 14px 12px 12px; gap: 5px; }
  .sx-af-v { font-size: 26px; }
  .sx-af-n { font-size: 12px; }
  .sx-af-courbe { height: 26px; }
}

/* Les contrôles du banquier. */
.sx-bk { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.sx-bk-l { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; }
.sx-bk-etat { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-3); }
.sx-bk-l.is-ok .sx-bk-etat { background: var(--gain-wash); color: var(--gain); }
.sx-bk-l.is-juste .sx-bk-etat { background: #FFF4E0; color: #9A5B00; }
.sx-bk-l.is-revoir .sx-bk-etat { background: var(--loss-wash); color: var(--loss); }
.sx-bk-t { display: grid; gap: 3px; min-width: 0; }
.sx-bk-t b { font-size: 14.5px; color: var(--ink); }
.sx-bk-t span { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.sx-bk-faire { color: var(--ink-2) !important; }
.sx-bk-v { font-size: 15px; color: var(--ink); white-space: nowrap; }

/* Les questions qu'on te posera (« Conseil », fondue dans l'affiche le 6
   octobre) : en cartes, rangées en quatre temps ; la preuve dans le tiroir. */
.sx-cs { display: grid; gap: 22px; }
.sx-cs-tete { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-cs-tete h2 { margin: 0; font: 800 24px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.sx-cs-tete p { margin: 0; font-size: 14px; color: var(--ink-3); }
.sx-cs-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sx-cs-carte {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 16px 18px; text-align: left;
  border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sx-cs-carte:hover { border-color: var(--ink-5); box-shadow: 0 16px 36px -24px rgba(14, 15, 12, .5); transform: translateY(-2px); }
.sx-cs-carte:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sx-cs-carte.is-ouverte { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.sx-cs-q { display: flex; align-items: baseline; gap: 8px; font: 700 15px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink-2); }
.sx-cs-q i { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.sx-cs-puce { align-self: start; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.sx-cs-puce.is-good { color: var(--gain); }
.sx-cs-puce.is-bad { color: var(--loss); }
.sx-cs-reponse { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.sx-cs-courbe { display: flex; align-items: flex-end; gap: 10px; }
.sx-cs-courbe small { flex: none; font-size: 11px; color: var(--ink-4); }
.sx-cs-barres { flex: 1; display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.sx-cs-barres span { flex: 1; min-height: 3px; border-radius: 4px 4px 1px 1px; background: var(--rule); }
.sx-cs-barres span.is-lue { background: var(--ink); }
.sx-cs-barres span.is-neg { background: #F3B6C0; }
.sx-cs-barres span.is-neg.is-lue { background: var(--loss-fill); }
.sx-cs-notion { padding: 8px 10px; border-radius: 10px; background: var(--accent-wash); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.sx-cs-notion b { color: var(--ink); }
.sx-cs-plus { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sx-cs-plus i { font-style: normal; transition: transform .15s ease; }
.sx-cs-carte:hover .sx-cs-plus i { transform: translateX(3px); }
.sx-cs-detail { display: grid; gap: 16px; }
.sx-cs-detail-reponse { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); font-size: 15px; line-height: 1.55; }
.sx-cs-bloc { display: grid; gap: 10px; }
.sx-cs-bloc svg { width: 100%; height: auto; }
.sx-cs-comprendre { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.sx-cs-comprendre h4 { margin: 0; font: 700 15px/1.3 var(--display); color: var(--ink); }
.sx-cs-comprendre p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sx-cs-formule { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--ink-5); font-weight: 600; }
.sx-cs-surveiller { color: var(--ink-3) !important; }
.sx-q-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sx-q-fig { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.sx-q-fig span { font-size: 12px; color: var(--ink-4); }
.sx-q-fig b { font-size: 17px; font-weight: 600; color: var(--ink); }
.sx-q-fig.is-bad b { color: var(--loss); }
.sx-q-fig.is-good b { color: var(--gain); }
.sx-q-fig small { font-size: 12px; color: var(--ink-4); }
.sx-q-banquier { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-wash); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sx-pieges { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ─── Conseil : comprendre et décider (retours du 4 octobre dans la nuit) ─── */
/* Un temps du chapitre : son numéro, son titre, ce qu'il dit, sous le titre
   du chapitre du récit (un cran en dessous). */
.sx-cs-chap { display: grid; gap: 12px; scroll-margin-top: 24px; }
.sx-cs-chap-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sx-cs-chap-no { font-size: 12.5px; font-weight: 700; color: var(--ink-4); }
.sx-cs-chap-tete h3 { margin: 0; font: 700 18px/1.2 var(--display); letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.sx-cs-chap-tete p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
/* La lecture : le chiffre contre un repère, en une phrase. */
.sx-cs-lecture { position: relative; display: block; padding: 8px 10px 8px 26px; border-radius: 10px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sx-cs-lecture::before { content: ''; position: absolute; left: 10px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-5); }
.sx-cs-lecture.is-good { background: var(--gain-wash); color: #0F4D30; }
.sx-cs-lecture.is-good::before { background: var(--gain-fill); }
.sx-cs-lecture.is-bad { background: var(--loss-wash); color: #7A0E1E; }
.sx-cs-lecture.is-bad::before { background: var(--loss-fill); }
.sx-cs-lecture.is-grande { margin: 0; padding: 12px 14px 12px 32px; font-size: 14.5px; }
.sx-cs-lecture.is-grande::before { left: 14px; top: 18px; }
/* Le calcul, avec tes chiffres : une ligne par terme, son signe, son montant. */
.sx-cs-bloc-tete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.sx-cs-bloc-tete .sx-db-h3 { margin: 0; }
.sx-cs-annees { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); }
.sx-cs-an { padding: 5px 11px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font: 600 12.5px/1 var(--sans); cursor: pointer; }
.sx-cs-an:hover { color: var(--ink); }
.sx-cs-an.is-on { background: var(--ink); color: var(--accent); }
.sx-cs-an:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sx-cs-calc { list-style: none; margin: 0; padding: 6px 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.sx-cs-calc-l { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; padding: 8px 16px 8px 12px; }
.sx-cs-calc-op { font-size: 15px; font-weight: 700; color: var(--ink-4); text-align: center; }
.sx-cs-calc-t { display: grid; gap: 1px; min-width: 0; }
.sx-cs-calc-t b { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.sx-cs-calc-t small { font-size: 12px; color: var(--ink-4); }
.sx-cs-calc-v { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sx-cs-calc-l.is-total { margin: 2px 0; border-top: 1px solid var(--rule); background: var(--surface-2); }
.sx-cs-calc-l.is-total .sx-cs-calc-t b, .sx-cs-calc-l.is-total .sx-cs-calc-v { font-weight: 700; color: var(--ink); }
.sx-cs-calc-l.is-total .sx-cs-calc-op { color: var(--ink); }
.sx-cs-calc-l.is-bad .sx-cs-calc-v { color: var(--loss); }
.sx-cs-calc-l.is-good .sx-cs-calc-v { color: var(--gain); }
.sx-cs-calc-l:first-child.is-total { margin-top: 0; border-top: 0; }
.sx-cs-mot-calc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
/* Les ressources, en une barre : chaque source sa couleur, reprise devant sa ligne. */
.sx-cs-pile { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.sx-cs-pile > span { min-width: 0; }
.sx-cs-pile-depart { background: #A9ACA0; }
.sx-cs-pile-fondateurs { background: var(--ink); }
.sx-cs-pile-dette { background: #B9F510; }
.sx-cs-pile-subventions { background: var(--gain); }
.sx-cs-pile-levee { background: #8A5A00; }
.sx-cs-calc-l[class*="is-pile-"] .sx-cs-calc-op { color: transparent; position: relative; }
.sx-cs-calc-l[class*="is-pile-"] .sx-cs-calc-op::after { content: ''; position: absolute; left: 5px; top: 4px; width: 10px; height: 10px; border-radius: 3px; }
.sx-cs-calc-l.is-pile-depart .sx-cs-calc-op::after { background: #A9ACA0; }
.sx-cs-calc-l.is-pile-fondateurs .sx-cs-calc-op::after { background: var(--ink); }
.sx-cs-calc-l.is-pile-dette .sx-cs-calc-op::after { background: #B9F510; }
.sx-cs-calc-l.is-pile-subventions .sx-cs-calc-op::after { background: var(--gain); }
.sx-cs-calc-l.is-pile-levee .sx-cs-calc-op::after { background: #8A5A00; }
/* Sur cinq ans : une barre et sa valeur par exercice. */
.sx-cs-evol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.sx-cs-evol-an { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.sx-cs-evol-v { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sx-cs-evol-barre { display: flex; align-items: flex-end; width: 100%; max-width: 54px; height: 72px; }
.sx-cs-evol-barre i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--rule); }
.sx-cs-evol-an.is-lue .sx-cs-evol-barre i { background: var(--ink); }
.sx-cs-evol-an.is-neg .sx-cs-evol-barre i { background: #F3B6C0; }
.sx-cs-evol-an.is-neg.is-lue .sx-cs-evol-barre i { background: var(--loss-fill); }
.sx-cs-evol-an.is-neg .sx-cs-evol-v { color: var(--loss); }
.sx-cs-evol-l { font-size: 12px; color: var(--ink-4); }
/* Ce qui le fait bouger : les leviers du moteur, chiffrés. */
.sx-cs-bouge { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-cs-bouge li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--ink-3); }
.sx-cs-bouge li b { font-weight: 600; color: var(--ink); }
.sx-cs-bouge-v { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.sx-cs-bouge-v .num { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sx-cs-bouge-v .is-bad { color: var(--loss); }
.sx-cs-bouge-v .is-good { color: var(--gain); }
.sx-cs-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Tes leviers : la décision, puis chaque hypothèse rejouée. */
.sx-cs-leviers { display: grid; gap: 12px; }
.sx-cs-decision { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sx-cs-decision b { color: var(--ink); }
.sx-cs-levs { list-style: none; margin: 0; padding: 6px 0; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.sx-cs-lev { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 10px 16px; border-top: 1px solid var(--rule); }
.sx-cs-lev:first-child { border-top: 0; }
.sx-cs-lev.is-tete { padding-top: 6px; padding-bottom: 6px; font-size: 12px; color: var(--ink-4); }
.sx-cs-lev-t { display: grid; gap: 2px; min-width: 0; }
.sx-cs-lev-t b { font-size: 14px; font-weight: 600; color: var(--ink); }
.sx-cs-lev-t span { font-size: 12.5px; color: var(--ink-4); }
.sx-cs-lev-v { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sx-cs-lev-v .num { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sx-cs-jauge { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sx-cs-jauge i { display: block; height: 100%; border-radius: 999px; background: var(--ink-5); }
.sx-cs-jauge.is-bad i { background: var(--loss-fill); }
.sx-cs-jauge.is-good i { background: var(--gain-fill); }
.sx-cs-leviers-note, .sx-cs-leviers-vide { margin: 0; font-size: 12.5px; color: var(--ink-4); }

@media (max-width: 1100px) {
  .sx-cs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sx-cs-lev { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sx-cs-lev.is-tete { display: none; }
  .sx-cs-evol { gap: 4px; padding: 10px 8px; }
  .sx-cs-evol-v { font-size: 11px; }
  .sx-bk-l { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sx-cs-grille { grid-template-columns: minmax(0, 1fr); }
}
/* Une grille ne s'élargit pas à la mesure d'un tableau : il défile dans sa boîte. */
.sx-af-cadre > *, .sx-cs-detail > *, .sx-cs-bloc > *, .ep-fi-besoin-corps > *, .ep-fi-tableaux > * { min-width: 0; }
.sx-v .table-wrap, .ep-fi-tableaux .table-wrap, .sx-af-cadre.is-table { overflow-x: auto; }
/* Au téléphone, quatre versions ne tiennent pas sur une ligne : le sélecteur passe à la ligne. */
@media (max-width: 760px) {
  .ep-choix { flex-wrap: wrap; justify-content: center; row-gap: 2px; border-radius: 18px; width: max-content; }
  .ep-choix-btn { padding: 6px 10px; }
}

/* ─────────────── Équipe : pour toute l'équipe, la part variable (retours du 5 octobre) ─────────────── */
/* Fil a7cc45bb (13 octobre : « les deux blocs l'un à côté de l'autre ») :
   Avantages et Ta rémunération en deux tuiles de même hauteur, côte à côte
   dès que la page a la place ; dans chacune, le titre et sa flèche en haut,
   les montants en pied. */
.ep-eq-tous { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; margin: var(--s-4) 0; }
.ep-eq-ligne {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'picto texte puce fleche' 'picto valeurs valeurs valeurs';
  align-content: space-between; align-items: start; gap: 0 14px; width: 100%; min-width: 0; padding: 14px 16px; text-align: left;
  border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .15s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.ep-eq-ligne:hover { border-color: var(--ink-5); box-shadow: 0 12px 28px -22px rgba(14, 15, 12, .45); }
.ep-eq-ligne:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-eq-ligne > .ep-picto:first-child { grid-area: picto; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--accent-wash); color: var(--ink); }
.ep-eq-ligne > .ep-picto:first-child svg { width: 19px; height: 19px; }
.ep-eq-ligne > .ep-picto:last-child { grid-area: fleche; margin-top: 2px; }
.ep-eq-ligne > .ep-a-affiner { grid-area: puce; margin: 0; }
.ep-eq-ligne-t { grid-area: texte; display: grid; gap: 2px; min-width: 0; }
.ep-eq-ligne-t b { font-size: 14.5px; font-weight: 600; }
.ep-eq-ligne-t span { font-size: 12.5px; color: var(--ink-4); }
.ep-eq-ligne-v { grid-area: valeurs; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; min-width: 0; margin-top: 12px; }
.ep-eq-ligne-v > span { display: inline-flex; align-items: baseline; gap: 4px; }
.ep-eq-ligne-v b { font-size: 15px; font-weight: 600; }
.ep-eq-ligne-v .ep-unite { font-size: 11.5px; color: var(--ink-4); }
.ep-var { display: grid; gap: 14px; }
.ep-var-formes, .ep-frequences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ep-var-forme, .ep-frequence {
  display: grid; gap: 2px; align-content: start; min-width: 0; padding: 10px 12px; text-align: left;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); font-family: var(--sans); color: var(--ink); cursor: pointer;
}
.ep-var-forme b, .ep-frequence b { font-size: 13.5px; font-weight: 600; }
.ep-var-forme span, .ep-frequence span { font-size: 11.5px; line-height: 1.35; color: var(--ink-4); }
.ep-var-forme:hover, .ep-frequence:hover { border-color: var(--ink-5); }
.ep-var-forme.is-on, .ep-frequence.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-wash); }
.ep-var-forme:focus-visible, .ep-frequence:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-frequence-champ { margin: 0; }
.ep-frequence b, .ep-frequence span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-frequence-champ > label { display: block; margin: 0 0 6px; }
.ep-var-ventes { display: grid; gap: 10px; }
.ep-var-offres { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ep-var-offres-l { margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ep-var-donne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ep-var-donne b { font-size: 16px; font-weight: 600; color: var(--ink); }
.ep-var-donne .ep-unite { font-size: 12px; color: var(--ink-4); }
/*
 * La rémunération variable (variable-versions.js ; fil f730318c, tranché le
 * 14 octobre) : la vue d'aujourd'hui, puis « Affiner mon modèle de
 * variable », qui ouvre R1 en petit. Les surfaces, les puces et les champs de
 * l'aperçu ; rien qui rejoue à chaque chiffre saisi.
 */
.ep-rv { gap: 16px; }
.ep-rv-invite { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-4); }
.ep-rv-fiche { display: grid; gap: 12px; min-width: 0; }
.ep-rv-options { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.ep-rv-ajout {
  padding: 6px 12px; border: 1px dashed var(--ink-5); border-radius: 999px; background: transparent;
  font: 600 12.5px/1.2 var(--sans); color: var(--ink-3); cursor: pointer;
  transition: border-color .3s var(--fluid), color .3s var(--fluid), background-color .3s var(--fluid);
}
.ep-rv-ajout:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.ep-rv-ajout:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-rv-retirer {
  display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-4); font: 500 16px/1 var(--sans); cursor: pointer;
  transition: background-color .25s var(--fluid), color .25s var(--fluid);
}
.ep-rv-retirer:hover { background: var(--field-bg); color: var(--ink); }
.ep-rv-retirer:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ep-rv-retirer.is-vide { visibility: hidden; }

/* « Affiner mon modèle de variable » : un lien discret sous les quatre formes ; « Revenir aux quatre formes », le retour. */
.ep-var-simple, .ep-var-affine { display: grid; gap: 12px; }
.ep-var-affiner {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none;
  font: 600 12.5px/1.3 var(--sans); color: var(--ink-3); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .25s var(--fluid), text-decoration-color .25s var(--fluid);
}
.ep-var-affiner:hover { color: var(--ink); text-decoration-color: var(--anis-fort, #A6DC0E); }
.ep-var-affiner:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ep-var-affiner-fleche { display: inline-block; transition: transform .3s var(--fluid); }
.ep-var-affiner:hover .ep-var-affiner-fleche { transform: translateX(3px); }
.ep-var-affiner.is-retour:hover .ep-var-affiner-fleche { transform: translateX(-3px); }
.ep-var-affiner.is-retour { font-weight: 500; color: var(--ink-4); }

/* R1 · Modèles, en petit : six pastilles, la phrase du modèle choisi, puis la fiche et le calcul qui se déplie. */
.ep-rv-modeles { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-rv-modele {
  position: relative; display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 12px 6px 8px;
  text-align: left; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .3s var(--fluid), box-shadow .3s var(--fluid), background-color .3s var(--fluid);
}
.ep-rv-modele:hover { border-color: var(--ink-5); }
.ep-rv-modele.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-wash); }
.ep-rv-modele:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-rv-modele b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ep-rv-modele-dit { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-4); }
.ep-rv-glyphe { display: block; flex: none; width: 22px; height: 15px; color: var(--ink-4); transition: color .3s var(--fluid); }
.ep-rv-glyphe svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep-rv-modele:hover .ep-rv-glyphe, .ep-rv-modele.is-on .ep-rv-glyphe { color: var(--ink); }
.ep-rv-nouveau { padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 9.5px; font-weight: 650; line-height: 1.6; }

/* Les paliers, en lignes. */
.ep-rv-paliers { display: grid; gap: 8px; min-width: 0; }
.ep-rv-paliers > .ep-rv-ajout { justify-self: start; }
.ep-rv-palier {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 26px; align-items: end; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
}
.ep-rv-palier.is-compact { padding: 8px 10px; }
.ep-rv-palier-no {
  align-self: center; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px;
  background: var(--field-bg); font-size: 11.5px; font-weight: 600; color: var(--ink-3);
}
.ep-rv-palier-de { align-self: center; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ep-rv-palier > .ep-rv-retirer { align-self: center; }

/* Comment les paliers comptent ; le coût retiré de la marge. */
.ep-rv-facon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ep-rv-facon-b {
  display: grid; gap: 2px; align-content: start; min-width: 0; padding: 9px 12px; text-align: left;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); font-family: var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .3s var(--fluid), background-color .3s var(--fluid);
}
.ep-rv-facon-b b { font-size: 13px; font-weight: 600; }
.ep-rv-facon-b span { font-size: 11.5px; line-height: 1.35; color: var(--ink-4); }
.ep-rv-facon-b:hover { border-color: var(--ink-5); }
.ep-rv-facon-b.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-wash); }
.ep-rv-facon-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-rv-cout { display: grid; gap: 10px; }
.ep-rv-plafond { display: flex; align-items: end; gap: 6px; }
.ep-rv-plafond > .field { min-width: 180px; }

/* Le calcul pas à pas. */
.ep-rv-calc { display: grid; gap: 6px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--repos); }
.ep-rv-calc-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; list-style: none; }
.ep-rv-calc-titre::-webkit-details-marker { display: none; }
.ep-rv-calc-titre::before { content: ''; align-self: center; width: 6px; height: 6px; margin-right: 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .3s var(--fluid); }
.ep-rv-calc[open] > .ep-rv-calc-titre::before { transform: rotate(45deg); }
.ep-rv-calc-titre:hover { color: var(--ink); }
.ep-rv-calc-source { font-weight: 500; color: var(--ink-4); }
.ep-rv-calc-source::before { content: '·'; margin-right: 8px; }
.ep-rv-calc-lignes { display: grid; margin: 0; padding: 0; list-style: none; }
.ep-rv-calc-l {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.4; color: var(--ink-3);
}
.ep-rv-calc-l:first-child { border-top: 0; }
.ep-rv-calc-l b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ep-rv-calc-l.is-base span { font-weight: 600; color: var(--ink); }
.ep-rv-calc-l.is-detail { padding-top: 0; border-top: 0; font-size: 12px; color: var(--ink-4); }
.ep-rv-calc-l.is-vide, .ep-rv-calc-l.is-vide b { color: var(--ink-4); font-weight: 500; }
.ep-rv-calc-l.is-plafond b { color: var(--ink); }
.ep-rv-calc-l.is-total { margin-top: 2px; padding-top: 9px; border-top: 1.5px solid var(--ink); font-weight: 600; color: var(--ink); }
.ep-rv-calc-l.is-total b { font-size: 15px; }

/* Ce que le plan ne compte pas encore : dit, sans alarme. */
.ep-rv-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 10px 12px;
  border: 1px dashed var(--ink-5); border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3);
}
.ep-rv-note-puce { padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 11px; font-weight: 600; white-space: nowrap; }

@media (max-width: 760px) {
  .ep-rv-facon { grid-template-columns: minmax(0, 1fr); }
  .ep-rv-palier { grid-template-columns: 24px minmax(0, 1fr) 26px; }
  .ep-rv-palier > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .ep-rv-palier > :nth-child(4) { grid-column: 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .ep-var-formes, .ep-frequences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Au téléphone, « À compléter » passe sous le texte : le titre garde la place. */
  .ep-eq-ligne { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'picto texte fleche' 'picto puce puce' 'picto valeurs valeurs'; }
  .ep-eq-ligne > .ep-a-affiner { justify-self: start; margin-top: 8px; }
}

/* ─────────────── Synthèse détaillée › Affiche : comprendre chaque chiffre, puis l'histoire ─────────────── */

/* Chaque chiffre dit qu'il s'explique ; au survol, sa définition en une phrase. */
.sx-af-plus { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 2px; padding: 4px 0; font: 600 12.5px/1.2 var(--sans); color: rgba(242, 240, 232, .62); transition: color .15s; }
.sx-af-plus i { font-style: normal; transition: transform .2s var(--ease-soft); }
.sx-af-fig:hover .sx-af-plus, .sx-af-fig:focus-visible .sx-af-plus, .sx-af-fig.is-ouverte .sx-af-plus { color: var(--accent); }
.sx-af-fig:hover .sx-af-plus i { transform: translateX(3px); }
.sx-af-fig.is-ouverte { background: rgba(242, 240, 232, .07); box-shadow: inset 0 -3px 0 var(--accent); }
.sx-af-bulle {
  position: absolute; z-index: 30; top: calc(100% - 10px); left: 16px; width: min(300px, calc(100vw - 48px));
  display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(14, 15, 12, .12), 0 18px 40px -16px rgba(14, 15, 12, .45);
  font: 400 13.5px/1.5 var(--sans); text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.sx-af-bulle::before { content: ''; position: absolute; top: -6px; left: 22px; width: 12px; height: 12px; background: #FFFFFF; transform: rotate(45deg); border-radius: 2px; }
.sx-af-bulle b { font: 700 13.5px/1.3 var(--sans); color: var(--ink); }
.sx-af-bulle em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.sx-af-fig:nth-child(4n) .sx-af-bulle, .sx-af-fig:nth-child(4n - 1) .sx-af-bulle { left: auto; right: 16px; }
.sx-af-fig:nth-child(4n) .sx-af-bulle::before, .sx-af-fig:nth-child(4n - 1) .sx-af-bulle::before { left: auto; right: 22px; }
.sx-af-fig:hover .sx-af-bulle, .sx-af-fig:focus-visible .sx-af-bulle {
  opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease .35s, transform .16s ease .35s, visibility 0s linear .35s;
}
.sx-af-fig.is-ouverte .sx-af-bulle { display: none; }
.sx-af-aide { margin: -10px 0 14px; font-size: 12.5px; color: rgba(242, 240, 232, .5); }
@media (hover: none) { .sx-af-bulle { display: none; } }
@media (prefers-reduced-motion: reduce) { .sx-af-bulle, .sx-af-fig:hover .sx-af-bulle { transition: none; transform: none; } }

/* « Comprendre » : le tiroir d'un chiffre. */
.sx-af-detail { gap: 18px; }
.sx-af-grand { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: #0E0F0C; color: #F2F0E8; }
.sx-af-grand b { font: 800 40px/1 var(--display); letter-spacing: -.035em; color: #FFFFFF; }
.sx-af-grand.is-pos b { color: var(--accent); }
.sx-af-grand.is-neg b { color: #FF6F8E; }
.sx-af-grand.is-warn b { color: #FFC56B; }
.sx-af-grand span { font-size: 13.5px; color: rgba(242, 240, 232, .7); }
.sx-af-clair { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.sx-af-suite { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sx-af-suite-b {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface); font: 600 13px/1.2 var(--sans); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.sx-af-suite-b i { font-style: normal; color: var(--ink-4); }
.sx-af-suite-b:hover { border-color: var(--ink); background: var(--accent-wash); }
.sx-af-suite-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* L'essentiel, en trois phrases. */
.sx-ess { display: grid; gap: 14px; }
.sx-ess-titre { margin: 0; font: 800 clamp(22px, 2.2vw, 28px)/1.15 var(--display); letter-spacing: -.025em; color: var(--ink); }
.sx-ess-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sx-ess-liste li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 18px 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sx-ess-no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.sx-ess-liste b { display: block; font: 700 16px/1.35 var(--sans); color: var(--ink); }
.sx-ess-liste p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
/* À retenir : une étiquette, puis une phrase qui se lit seule. */
.sx-ess-label { display: block; font: 700 11px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.sx-ess-liste .sx-ess-label + p { margin-top: 6px; font: 600 15px/1.5 var(--sans); color: var(--ink); }
/* Les leviers sans besoin de financement : deux colonnes, pas de zéros. */
.sx-cs-levs.is-sans-besoin .sx-cs-lev { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) auto; }
.sx-cs-decision.is-calme { background: var(--surface-2); }

/* L'histoire : son titre, puis le sommaire qui reste à l'écran. */
.sx-histoire { display: grid; gap: 6px; padding-top: 6px; }
.sx-histoire h2 { margin: 0; font: 800 clamp(30px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -.035em; color: var(--ink); }
.sx-histoire p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.sx-som {
  /* Collé sous les onglets, sans jour entre les deux : la frise et les
     chiffres qui défilent n'y passent plus. */
  position: sticky; top: calc(var(--header-h, 48px) + var(--h-tab, 34px) + 3px); z-index: 14; margin: -18px 0 -10px;
  padding: 8px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule), 0 10px 30px -24px rgba(14, 15, 12, .5); backdrop-filter: blur(8px);
}
.sx-som ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sx-som ol::-webkit-scrollbar { display: none; }
.sx-som a {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 12px 6px 6px; border-radius: 999px;
  font: 600 13px/1.2 var(--sans); color: var(--ink-3); text-decoration: none; transition: background .15s, color .15s; white-space: nowrap;
}
.sx-som a i { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; background: var(--surface-2); font-style: normal; font-size: 11px; color: var(--ink-4); }
.sx-som a:hover { background: var(--surface-2); color: var(--ink); }
.sx-som a.is-on { background: #0E0F0C; color: #F2F0E8; }
.sx-som a.is-on i { background: var(--accent); color: var(--accent-ink); }
.sx-som a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Un chapitre : le numéro et son nom, un titre qui répond, le texte à gauche, l'image à droite. */
.sx-rc { display: grid; gap: 16px; scroll-margin-top: calc(var(--header-h, 48px) + var(--h-tab, 34px) + 84px); padding-top: 26px; border-top: 2px solid var(--ink); }
.sx-rc-tete { display: flex; align-items: baseline; gap: 12px; }
.sx-rc-no { font: 800 15px/1 var(--display); color: var(--ink); padding: 4px 8px; border-radius: 8px; background: var(--accent); }
.sx-rc-nom { font: 600 14px/1.3 var(--sans); color: var(--ink-3); }
.sx-rc-titre { margin: 0; font: 800 clamp(24px, 2.6vw, 34px)/1.12 var(--display); letter-spacing: -.03em; color: var(--ink); outline: none; }
.sx-rc-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px 34px; align-items: start; }
.sx-rc-corps.is-seul { grid-template-columns: minmax(0, 1fr); }
.sx-rc-texte { display: grid; gap: 16px; min-width: 0; }
.sx-rc-lede { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.sx-rc-figs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sx-rc-corps.is-seul .sx-rc-figs { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sx-rc-fig { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.sx-rc-fig dt { font-size: 12.5px; line-height: 1.3; color: var(--ink-4); }
.sx-rc-fig dd { margin: 0; display: grid; gap: 3px; }
.sx-rc-fig dd > b { display: inline-flex; align-items: baseline; gap: 3px; flex-wrap: wrap; font: 700 21px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.sx-rc-fig dd > b .num { font-family: var(--display); }
.sx-rc-u { font: 600 13px/1 var(--sans); color: var(--ink-3); }
.sx-rc-mot { font: 700 19px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.sx-rc-fig small { font-size: 12px; line-height: 1.4; color: var(--ink-4); }
.sx-rc-fig.is-bad dd > b { color: #B21D3A; }
.sx-rc-fig.is-good dd > b { color: #3F6B00; }
.sx-rc-conseil { display: grid; gap: 8px; justify-items: start; padding: 14px 16px 16px; border-radius: 16px; background: var(--accent-wash); box-shadow: inset 4px 0 0 var(--accent-dim); }
.sx-rc-conseil.is-bad { background: #FFF1F3; box-shadow: inset 4px 0 0 #E0526A; }
.sx-rc-conseil-t { font: 700 13px/1.2 var(--sans); color: var(--ink); }
.sx-rc-conseil p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.sx-rc-paie { display: grid; gap: 10px; }
.sx-rc-legende { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sx-rc-dessin { min-width: 0; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sx-rc-detail { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--surface); }
.sx-rc-detail > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none;
  font: 600 14px/1.2 var(--sans); color: var(--ink-2);
}
.sx-rc-detail > summary::-webkit-details-marker { display: none; }
.sx-rc-chev { width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease-soft); }
.sx-rc-detail[open] .sx-rc-chev { transform: rotate(-135deg) translateY(-2px); }
.sx-rc-detail > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 14px; }
.sx-rc-detail-corps { display: grid; gap: 14px; padding: 0 16px 16px; min-width: 0; overflow-x: auto; }

/* 01. La vie de l'entreprise : soixante mois, chaque date à sa place. */
.sx-vie { position: relative; height: 252px; margin: 4px 6px 0; }
.sx-vie-ligne { position: absolute; left: 0; right: 0; top: 50%; height: 30px; margin-top: -2px; border-top: 3px solid #1B2541; border-radius: 2px; }
.sx-vie-an { position: absolute; top: 0; left: var(--x); width: var(--w); padding: 8px 0 0 8px; border-left: 1px solid var(--rule); font-size: 11.5px; font-weight: 600; color: var(--ink-4); }
.sx-vie-an:first-child { border-left: 0; padding-left: 0; }
.sx-vie-jalons { list-style: none; margin: 0; padding: 0; }
.sx-vie-j { position: absolute; left: var(--x); top: 50%; width: 0; height: 0; outline: none; }
.sx-vie-point { position: absolute; left: -7px; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px #1B2541; z-index: 2; }
.sx-vie-j.is-client .sx-vie-point, .sx-vie-j.is-pointMort .sx-vie-point { background: var(--accent); }
.sx-vie-j.is-benefice .sx-vie-point { background: var(--accent); box-shadow: 0 0 0 3px #1B2541, 0 0 0 7px rgba(185, 245, 16, .45); }
.sx-vie-j.is-bas.is-bad .sx-vie-point { background: #FF6F8E; box-shadow: 0 0 0 3px #B21D3A; }
.sx-vie-j::before { content: ''; position: absolute; left: -1px; width: 2px; background: color-mix(in srgb, #1B2541 30%, transparent); }
.sx-vie-j.is-r0::before { bottom: 8px; height: 22px; }
.sx-vie-j.is-r1::before { top: 8px; height: 22px; }
.sx-vie-j.is-r2::before { bottom: 8px; height: 74px; }
.sx-vie-j.is-r3::before { top: 8px; height: 74px; }
.sx-vie-etiq {
  position: absolute; left: 0; transform: translateX(-50%); display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), 0 6px 16px -12px rgba(14, 15, 12, .4); white-space: nowrap; text-align: center;
}
.sx-vie-etiq-t { display: grid; gap: 1px; }
.sx-vie-etiq.a-un-avatar { display: flex; align-items: center; gap: 8px; text-align: left; }
.sx-vie-etiq b { font: 700 13px/1.25 var(--sans); color: var(--ink); }
.sx-vie-mois { font-size: 12px; color: var(--ink-3); }
.sx-vie-j.is-r0 .sx-vie-etiq { bottom: 30px; }
.sx-vie-j.is-r1 .sx-vie-etiq { top: 30px; }
.sx-vie-j.is-r2 .sx-vie-etiq { bottom: 82px; }
.sx-vie-j.is-r3 .sx-vie-etiq { top: 82px; }
.sx-vie-j.is-g .sx-vie-etiq { transform: translateX(-14px); text-align: left; }
.sx-vie-j.is-d .sx-vie-etiq { transform: translateX(calc(-100% + 14px)); text-align: right; }
.sx-vie-j.is-benefice .sx-vie-etiq { background: #0E0F0C; box-shadow: none; }
.sx-vie-j.is-benefice .sx-vie-etiq b { color: var(--accent); }
.sx-vie-j.is-benefice .sx-vie-mois { color: rgba(242, 240, 232, .75); }
.sx-vie-dit {
  position: absolute; z-index: 20; left: 0; transform: translateX(-50%); width: 240px; padding: 10px 12px; border-radius: 12px;
  background: #0E0F0C; color: #F2F0E8; font-size: 13px; line-height: 1.45; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .15s;
}
.sx-vie-j.is-r0 .sx-vie-dit, .sx-vie-j.is-r2 .sx-vie-dit { bottom: calc(100% + 0px); top: auto; }
.sx-vie-j.is-r0 .sx-vie-dit { bottom: 84px; }
.sx-vie-j.is-r2 .sx-vie-dit { bottom: 136px; }
.sx-vie-j.is-r1 .sx-vie-dit { top: 84px; }
.sx-vie-j.is-r3 .sx-vie-dit { top: 136px; }
.sx-vie-j.is-g .sx-vie-dit { transform: translateX(-14px); }
.sx-vie-j.is-d .sx-vie-dit { transform: translateX(calc(-100% + 14px)); }
.sx-vie-j:hover .sx-vie-dit, .sx-vie-j:focus-visible .sx-vie-dit { opacity: 1; visibility: visible; transition: opacity .15s ease; }
.sx-vie-j:hover, .sx-vie-j:focus-visible { z-index: 25; }
.sx-vie-j:focus-visible .sx-vie-etiq { box-shadow: 0 0 0 2px var(--ink); }

/* 04. L'équipe en organigramme : les fondateurs en haut, chaque arrivée dessous. */
.sx-org { display: grid; gap: 30px; justify-items: center; padding: 18px 14px 6px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sx-org-haut, .sx-org-bas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }
.sx-org-haut.a-des-enfants::after { content: ''; position: absolute; left: 50%; bottom: -30px; width: 2px; height: 30px; background: var(--rule); }
.sx-org-bas { padding-top: 16px; border-top: 2px solid var(--rule); }
.sx-org-p { display: flex; align-items: center; gap: 10px; min-width: 0; width: 230px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.sx-org-p.is-fondateur { background: #0E0F0C; color: #F2F0E8; }
.sx-org-t { display: grid; gap: 1px; min-width: 0; }
.sx-org-t b { font: 700 14px/1.3 var(--sans); }
.sx-org-t span { font-size: 12px; color: var(--ink-4); }
.sx-org-p.is-fondateur .sx-org-t span { color: rgba(242, 240, 232, .65); }
.sx-org-quand { font-weight: 600; }
.sx-org-vide { margin: 0; padding: 18px; border-radius: 14px; background: var(--surface-2); color: var(--ink-3); }

/* Un avatar dessiné (avatar.js). */
.ep-av { display: inline-grid; flex: none; border-radius: 50%; }
.ep-av svg { display: block; width: 100%; height: 100%; }
.ep-av.is-moyen { width: 44px; height: 44px; }
.ep-av.is-mini { width: 28px; height: 28px; }
.ep-av.is-grand { width: 64px; height: 64px; }
/* Sur une carte de poste : l'avatar, et combien ils sont. */
.ep-av-poste { position: relative; display: inline-grid; flex: none; }
.ep-av-nb { position: absolute; right: -6px; bottom: -4px; min-width: 22px; padding: 1px 5px; border-radius: 999px; background: var(--ink); color: #F2F0E8; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }

/* 06. La bascule : chaque exercice, son chiffre d'affaires face à son point mort. */
.sx-bq { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.sx-bq-an { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.sx-bq-piste { position: relative; width: 100%; max-width: 64px; height: 170px; }
.sx-bq-ca { position: absolute; left: 14%; right: 14%; bottom: 0; border-radius: 6px 6px 2px 2px; background: #C9CDB8; }
.sx-bq-an.is-passe .sx-bq-ca { background: #1B2541; }
.sx-bq-pm { position: absolute; left: 0; right: 0; height: 3px; margin-bottom: -1.5px; border-radius: 2px; background: var(--accent-dim); box-shadow: 0 0 0 1px rgba(14, 15, 12, .25); }
.sx-bq-v { display: inline-flex; align-items: baseline; gap: 2px; font: 700 14px/1.2 var(--display); color: var(--ink); }
.sx-bq-l { font-size: 12px; font-weight: 600; color: var(--ink-4); }
.sx-bq-legende { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sx-bq-legende i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: -8px; }
.sx-bq-legende i.is-ca { background: #1B2541; }
.sx-bq-legende i.is-pm { height: 3px; background: var(--accent-dim); }

@media (max-width: 1100px) {
  .sx-rc-corps { grid-template-columns: minmax(0, 1fr); }
  .sx-ess-liste { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sx-rc-figs { grid-template-columns: minmax(0, 1fr); }
  .sx-af-bulle { display: none; }
  /* La frise devient une liste qui descend. */
  .sx-vie { height: auto; margin: 0; }
  .sx-vie-ligne { display: none; }
  .sx-vie-jalons { display: grid; gap: 10px; padding-left: 18px; border-left: 3px solid #1B2541; }
  .sx-vie-j { position: relative; left: auto; top: auto; width: auto; height: auto; display: grid; gap: 4px; padding-left: 10px; }
  .sx-vie-j::before { display: none; }
  .sx-vie-point { left: -26px; top: 6px; }
  .sx-vie-etiq, .sx-vie-j.is-r0 .sx-vie-etiq, .sx-vie-j.is-r1 .sx-vie-etiq, .sx-vie-j.is-r2 .sx-vie-etiq, .sx-vie-j.is-r3 .sx-vie-etiq,
  .sx-vie-j.is-g .sx-vie-etiq, .sx-vie-j.is-d .sx-vie-etiq { position: static; transform: none; text-align: left; justify-self: start; }
  .sx-vie-dit, .sx-vie-j.is-r0 .sx-vie-dit, .sx-vie-j.is-r1 .sx-vie-dit, .sx-vie-j.is-r2 .sx-vie-dit, .sx-vie-j.is-r3 .sx-vie-dit,
  .sx-vie-j.is-g .sx-vie-dit, .sx-vie-j.is-d .sx-vie-dit {
    position: static; transform: none; width: auto; opacity: 1; visibility: visible; padding: 0; background: none; color: var(--ink-3);
  }
  .sx-org-p { width: 100%; }
  .sx-bq-piste { height: 130px; }
}

/* ─────────────── Test « matière » (retours du 5 octobre : « fais un test ») ───────────────
   Un grain léger sur le fond, des ombres douces sous les cartes, la courbe
   jaune et bleu nuit partout. Tout tient dans ce bloc : le retirer rend la
   page d'avant, à l'identique. */
html.ep-apercu {
  --ep-nuit: #1B2541;
  --ep-ombre: 0 1px 2px rgba(27, 37, 65, .05), 0 12px 28px -18px rgba(27, 37, 65, .22);
}
html.ep-apercu body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 88% -8%, rgba(185, 245, 16, .10), transparent 62%),
    radial-gradient(900px 560px at 8% 108%, rgba(27, 37, 65, .05), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
/* Les cartes posées sur le papier : une ombre douce, teintée de bleu nuit. */
html.ep-apercu :is(.ep-carte, .ep-of-carte, .ep-bloc, .sx-cs-carte):not(:hover):not(.is-ouverte) { box-shadow: var(--ep-ombre); }
html.ep-apercu :is(.sx-rc-dessin, .sx-org, .sx-rc-detail) { box-shadow: inset 0 0 0 1px var(--rule), var(--ep-ombre); }
html.ep-apercu .sx-ess-liste li { box-shadow: inset 0 0 0 1px var(--rule), var(--ep-ombre); }
html.ep-apercu .sx-vie-etiq { box-shadow: inset 0 0 0 1px var(--rule), 0 8px 18px -12px rgba(27, 37, 65, .35); }
html.ep-apercu .sx-af-une { box-shadow: 0 2px 4px rgba(27, 37, 65, .08), 0 36px 70px -40px rgba(27, 37, 65, .75); }
/* La courbe : un aplat jaune léger, un trait bleu nuit. */
html.ep-apercu .as-j-trait { stroke: var(--ep-nuit); stroke-width: 2.4; }
html.ep-apercu .as-j-aire { fill: var(--accent); opacity: .3; }
html.ep-apercu .sx-cs-evol-barre i { background: color-mix(in srgb, var(--accent) 55%, #FFFFFF); }
html.ep-apercu .sx-cs-evol-an.is-lue .sx-cs-evol-barre i { background: var(--ep-nuit); }
html.ep-apercu .sx-cs-evol-an.is-neg .sx-cs-evol-barre i { background: #F3B6C0; }
html.ep-apercu .sx-cs-evol-an.is-neg.is-lue .sx-cs-evol-barre i { background: var(--loss-fill); }

/* ═══════════════════════════════════════════════════════════════════════════
   APERÇU — La charte « Fluid Design / Surface Dynamics » (retours du 5 octobre).

   « Passer d'une interface plate à une interface physique et tactile :
   l'utilisateur doit sentir l'interface sous ses doigts. » Rien n'est retiré,
   rien ne change de place : l'aspect et le mouvement seulement.

   - L'anis #B9F510, posé avec parcimonie : ce qui est allumé, les
     interrupteurs, les boutons qui valident ou ajoutent, le halo d'un champ.
     Les teintes écrites en dur dans les pages d'aujourd'hui (lueurs,
     graphiques) passent à l'anis à la construction de l'aperçu (build.mjs).
   - Un fond ivoire, des tiroirs gris très clair, voilés en tête et en pied.
   - Les champs sont des surfaces, pas des boîtes : plus sombres au survol,
     blancs au focus, un halo anis à l'extérieur — rien ne bouge.
   - Une seule courbe pour tout ce qui bouge, sans rebond.
   - Les cartes se soulèvent au survol et s'enfoncent à la pression.
   - Une règle posée respire : un halo anis très léger, cinq secondes.
   - Ce que le calcul ignore s'efface (opacité 0,6) et se pointille.
   - Inter pour le texte et les chiffres (à chasse fixe), les libellés en
     petites capitales espacées, comme un cockpit ; les titres gardent
     Bricolage Grotesque.

   Absent de fynomia.fr : cette feuille n'entre que dans l'aperçu.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu {
  --anis: #B9F510;
  --anis-fort: #A6DC0E;
  --anis-halo: rgba(185, 245, 16, .2);
  --anis-lueur: rgba(185, 245, 16, .15);
  --accent: var(--anis);
  --accent-ink: #0E0F0C;
  --accent-dim: var(--anis-fort);
  --accent-wash: #F1FCD3;
  --signal-wash: #F1FCD3;
  --tune-wash: rgba(185, 245, 16, .16);
  /* Le papier ivoire d'avant (retours du 5 octobre au soir : « là c'est trop
     blanc, ça pique les yeux ») ; les cartes restent blanches dessus. */
  /* L'ivoire doux (choix du 6 octobre au soir, « garde le fond ivoire doux pour toutes les pages »). */
  --paper: #F4F2EB;
  --surface-2: #FAF8F2;
  --rule: #DCD9CD;
  --field-bg: #EFEDE6;
  --field-bg-hover: #E6E3D9;
  --ring: 0 0 0 3px var(--anis-halo);
  --fluid: cubic-bezier(.22, 1, .36, 1);
  --ease: var(--fluid);
  --ease-out: var(--fluid);
  --ease-soft: var(--fluid);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* La matière d'une carte : au repos, soulevée. */
  --repos: 0 0 0 1px rgba(0, 0, 0, .03), 0 1px 2px rgba(14, 15, 12, .03);
  --souleve: 0 0 0 1px rgba(0, 0, 0, .04), 0 14px 32px -18px rgba(14, 15, 12, .22);
  --enfonce: #ECE9E1;
}
html.ep-apercu body { background: var(--paper); }

/* ─── Les chiffres : Inter à chasse fixe, une graisse franche ─── */
html.ep-apercu .num { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
html.ep-apercu .ep-unite { font-size: .78em; font-weight: 600; color: var(--ink-4); letter-spacing: 0; }

/* ─── Les libellés : petits, en capitales espacées, comme un cockpit ─── */
html.ep-apercu :is(.ep-page, .ep-couche) .field > label,
html.ep-apercu .ep-of-carte-fig small {
  font: 500 10px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4);
}
/* Le libellé dans le champ (ui, « le libellé dans le cadre ») : en haut de la surface, la valeur dessous. */
html.ep-apercu .field:has(> .control:not(.control-bare)) > label { top: 8px; left: 12px; right: 12px; font: 500 9.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .07em; }
/* Les valeurs en graisse normale (retours du 6 octobre, fil 51a61e39 : « textes pas en gras »). */
html.ep-apercu .field:has(> .control:not(.control-bare)) > .control :is(input, select) { padding: 22px 12px 7px; font-size: 14.5px; font-weight: 400; line-height: 18px; }
/* Les chevrons ±1 descendent sur la ligne de la valeur : le libellé, en tête de la surface, reste libre. */
html.ep-apercu .field:has(> .control:not(.control-bare)) > .control .pas { padding-top: 15px; padding-bottom: 0; }
/* Le libellé est au-dessus de la valeur : il a toute la largeur, même à côté des unités. */
html.ep-apercu .field:has(> .unit-control) > label { right: 12px; max-width: none; }
/* Le chevron d'une liste est dessiné à 10 px du bord (css/app.css) : le texte
   s'arrête avant lui, et un libellé trop long finit en « … » (retours du
   5 octobre au soir : « Contrats (le mot de ton métier) » passait dessous). */
html.ep-apercu .field:has(> .control:not(.control-bare)) > .control select { font-size: 14px; padding-right: 28px; text-overflow: ellipsis; }
/* La première rangée d'une offre : le prix et ses unités, la TVA, ont la place de se lire. */
@media (min-width: 761px) { html.ep-apercu .ep-of-params > .ep-champs.is-4 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.15fr); } }
/* Le texte courant des pages de saisie : serré, pour un écran de portable. */
html.ep-apercu :is(.ep-page, .ep-couche) :is(.field-hint, .ep-note, .ep-regle-dit, .ep-couche-sous) { font-size: 12px; }

/* ─── Les champs : des surfaces ─── */
html.ep-apercu .control {
  border-color: transparent; background: var(--field-bg); border-radius: 12px;
  transition: background-color .5s var(--fluid), border-color .5s var(--fluid), box-shadow .5s var(--fluid);
}
html.ep-apercu .control:hover { background: var(--field-bg-hover); }
html.ep-apercu .control:focus-within { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); }
html.ep-apercu .control.invalid { border-color: var(--loss); }
html.ep-apercu .control :is(.affix, .affix-pre) { background: transparent; border-color: transparent; color: var(--ink-4); font-weight: 500; }
html.ep-apercu .control :is(input, select, textarea) { font-family: var(--sans); font-weight: 400; color: var(--ink); }

/* Les montants posés en ligne (Achats, un financement) : des surfaces aussi. */
html.ep-apercu :is(.cost-box, .cost-mode select, .cost-extra input, .source-money) {
  border-color: transparent; background: var(--field-bg); border-radius: 10px;
  transition: background-color .5s var(--fluid), border-color .5s var(--fluid), box-shadow .5s var(--fluid);
}
html.ep-apercu :is(.cost-box, .cost-mode select, .cost-extra input, .source-money):hover { background: var(--field-bg-hover); }
html.ep-apercu :is(.cost-box:focus-within, .cost-mode select:focus, .cost-extra input:focus, .source-money:focus-within) { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); }
html.ep-apercu :is(.cost-box > input, .source-input) { font-weight: 700; color: var(--ink); }

/* ─── L'interrupteur : anis allumé, pouce blanc ; à la pression, le pouce
   s'écrase et s'étire avant de partir ─── */
html.ep-apercu .onoff {
  width: 36px; height: 20px; border-radius: 999px; border: 1px solid #DEDEDA; background: #E6E6E3;
  transition: background-color .5s var(--fluid), border-color .5s var(--fluid), box-shadow .5s var(--fluid);
}
html.ep-apercu .onoff > i {
  top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 999px; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(14, 15, 12, .26), 0 0 0 .5px rgba(14, 15, 12, .06);
  transition: transform .5s var(--fluid), width .22s var(--fluid), background-color .5s var(--fluid);
}
html.ep-apercu .onoff.on { background: var(--anis); border-color: var(--anis); }
html.ep-apercu .onoff.on > i { transform: translateX(16px); background: #FFFFFF; }
html.ep-apercu .onoff:hover { border-color: #CFCFCA; }
html.ep-apercu .onoff.on:hover { border-color: var(--anis-fort); }
html.ep-apercu .onoff:active > i { width: 22px; }
html.ep-apercu .onoff.on:active > i { transform: translateX(10px); }
html.ep-apercu .onoff:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(185, 245, 16, .45); }
html.ep-apercu .ep-of-onoff .onoff { width: 40px; height: 22px; }
html.ep-apercu .ep-of-onoff .onoff > i { width: 18px; height: 18px; }
html.ep-apercu .ep-of-onoff .onoff.on > i { transform: translateX(18px); }
html.ep-apercu .ep-of-onoff .onoff:active > i { width: 24px; }
html.ep-apercu .ep-of-onoff .onoff.on:active > i { transform: translateX(12px); }

/* ─── Les boutons ─── */
html.ep-apercu .btn { border-radius: 10px; transition: background-color .5s var(--fluid), border-color .5s var(--fluid), color .5s var(--fluid), transform .5s var(--fluid), box-shadow .5s var(--fluid); }
html.ep-apercu .btn:active { transform: scale(.98); transition-duration: .15s; }
html.ep-apercu .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(185, 245, 16, .45); }
/* Ce qui allume, valide, ajoute : l'anis, l'encre dessus. */
html.ep-apercu .btn-primary { background: var(--anis); border-color: var(--anis); color: var(--accent-ink); }
html.ep-apercu .btn-primary:hover { background: var(--anis-fort); border-color: var(--anis-fort); color: var(--accent-ink); box-shadow: 0 10px 24px -14px rgba(120, 160, 0, .6); transform: translateY(-1px); }
html.ep-apercu .btn-primary:active { transform: scale(.98); box-shadow: none; }
html.ep-apercu .ep-valider { min-height: 46px; padding: 0 24px; border-radius: 14px; font-size: 15px; font-weight: 700; }
html.ep-apercu .ep-valider::after { content: '\2713'; font-weight: 700; margin-left: 2px; }

/* ─── Les cartes : soulevées au survol, enfoncées à la pression ─── */
html.ep-apercu :is(.ep-of-carte, .ep-carte, .ep-eq-ligne, .ep-pj-action, .ep-pj-fiche, .ep-cv-propose, .ep-menu-ligne, .ep-ajout-regle, .ep-brique, .ep-attendue, .ep-hors, .card, .panel) {
  transition: transform .5s var(--fluid), box-shadow .5s var(--fluid), background-color .5s var(--fluid), border-color .5s var(--fluid), opacity .5s var(--fluid);
}
html.ep-apercu :is(.ep-of-carte, .ep-carte, .ep-eq-ligne, .ep-pj-action, .ep-pj-fiche, .ep-hors) { border-color: rgba(0, 0, 0, .03); box-shadow: var(--repos); }
html.ep-apercu :is(.ep-of-carte, .ep-carte[data-tiroir], .ep-eq-ligne, .ep-pj-action, .ep-pj-fiche, .ep-cv-propose, .ep-menu-ligne):hover { transform: translateY(-1px) scale(1.002); box-shadow: var(--souleve); }
html.ep-apercu :is(.ep-of-carte, .ep-carte[data-tiroir], .ep-eq-ligne, .ep-pj-action, .ep-pj-fiche, .ep-cv-propose, .ep-menu-ligne, .ep-ajout-regle):active {
  transform: scale(.99) translateY(0); background-color: var(--enfonce); transition-duration: .15s;
}

/* ─── Le tiroir : gris très clair, un peu plus large, voilé en tête et en pied ─── */
html.ep-apercu .ep-couche { background: var(--surface-2); }
/* Un peu plus large (retours du 6 octobre) : les cases d'une offre tiennent sur deux rangées, un abonnement compris. */
@media (min-width: 761px) { html.ep-apercu .ep-couche { width: min(940px, calc(100vw - 96px)); } }
html.ep-apercu :is(.ep-couche-tete, .ep-couche-pied) {
  position: relative; z-index: 2; background: rgba(255, 255, 255, .72); border-color: rgba(0, 0, 0, .05);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
}
/* Le contenu passe sous le pied voilé, qui le laisse deviner. */
html.ep-apercu .ep-couche:has(> .ep-couche-pied) > .ep-couche-corps { margin-bottom: -76px; padding-bottom: 108px; }
html.ep-apercu .ep-couche-pied-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
html.ep-apercu .ep-couche-pied-note::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--anis);
  box-shadow: 0 0 0 3px rgba(185, 245, 16, .25); animation: ep-moteur 2.4s var(--fluid) infinite alternate;
}
@keyframes ep-moteur { to { box-shadow: 0 0 0 5px rgba(185, 245, 16, .08); } }

/* ─── Une règle posée respire : un halo anis, cinq secondes, sans fin ─── */
/* Le halo, resserré (fil 35ff4452 : « un peu trop grand ; le raccourcir pour
   plus d'élégance, mais le laisser ») : 6 à 14 px au lieu de 10 à 26. */
@keyframes ep-respire {
  from { box-shadow: 0 0 0 1px rgba(185, 245, 16, .35), 0 0 6px 0 var(--anis-lueur); }
  to { box-shadow: 0 0 0 1px rgba(185, 245, 16, .55), 0 0 14px 1px var(--anis-lueur); }
}
html.ep-apercu :is(.ep-brique, .ep-regle.is-on) { border-color: transparent; animation: ep-respire 5s var(--fluid) infinite alternate; }

/* ─── Ce que le calcul ignore : effacé, pointillé ─── */
html.ep-apercu :is(.ep-regle:not(.is-on), .ep-of-carte.is-pause, .ep-carte.is-off, .ep-ligne.is-off, .cost-row.is-off) {
  opacity: .6; border-style: dashed; border-color: rgba(14, 15, 12, .22); box-shadow: none; animation: none;
}
/* Une ligne n'a qu'un filet : le pointillé ne vaut que pour lui. Sur les
   quatre côtés, « dashed » donnait aux trois autres leur épaisseur par
   défaut (3 px) : la ligne grossissait et tout ce qui la suit sautait de
   3 px à chaque interrupteur (retours du 5 octobre au soir). */
html.ep-apercu .cost-row.is-off { border-style: none none dashed; }
html.ep-apercu .cost-row.is-off:first-of-type { border-top-style: dashed; }
html.ep-apercu .ep-ligne.is-off { border-style: dashed none none; }

/* ─── Le focus, sans rien déplacer : un halo à l'extérieur ─── */
html.ep-apercu :is(a, button, [tabindex]):focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(185, 245, 16, .45); }

/* Mouvement réduit : ni soulèvement, ni enfoncement, ni respiration. */
@media (prefers-reduced-motion: reduce) {
  /* Même liste que le soulèvement (et même poids) : la règle qui suit l'emporte. */
  html.ep-apercu :is(.ep-of-carte, .ep-carte[data-tiroir], .ep-eq-ligne, .ep-pj-action, .ep-pj-fiche, .ep-cv-propose, .ep-menu-ligne, .ep-ajout-regle, .btn-primary):is(:hover, :active) { transform: none; }
  html.ep-apercu :is(.ep-brique, .ep-regle.is-on) { animation: none; box-shadow: 0 0 0 1px rgba(185, 245, 16, .45), 0 0 10px 0 var(--anis-lueur); }
  html.ep-apercu .ep-couche-pied-note::before { animation: none; }
  html.ep-apercu .onoff > i { transition: none; }
}

/* ─── Le gain et la perte, acides (retours du 5 octobre : « vert, c'est le
   jaune #B9F510 ; rouge, propose-m'en un qui fait cette charte ») ───
   L'anis et un rouge acide remplissent : pastilles, barres, points, jauges.
   Écrits sur le papier, ils seraient illisibles (l'anis n'y a qu'un contraste
   de 1,2) : le texte prend leur version sombre, de la même famille, lisible
   (4,5 au moins, test 62) ; sur un fond sombre, l'anis s'écrit tel quel
   (build.mjs --demo). Le rouge est la framboise (retours du 5 octobre au
   soir : « tu peux garder le rouge framboise ») : #E0153F rempli, #B80F33
   écrit sur le papier (5,8), #FF6F8E sur un fond sombre. */
html.ep-apercu {
  --gain: #4A7300; --gain-fill: #B9F510; --gain-wash: #EEFBC6; --gain-line: #D3F57A;
  --loss: #B80F33; --loss-fill: #E0153F; --loss-wash: #FCE1E8;
}

/* L'effet d'une règle sur cinq ans : une pastille, comme les captures. */
html.ep-apercu .ep-effet b { display: inline-block; padding: 2px 8px; border-radius: 8px; font-weight: 800; letter-spacing: -.01em; }
html.ep-apercu .ep-effet.is-bon b { background: var(--gain-fill); color: var(--accent-ink); }
html.ep-apercu .ep-effet.is-mauvais b { background: var(--loss-wash); color: var(--loss); }
html.ep-apercu .ep-effet-l { font: 600 9.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); }

/* Les pages d'aujourd'hui (css/app.css), dans l'aperçu : ce qui se remplit
   prend la teinte pure ; l'encre sur l'anis. Un signe blanc (alerte) ou un
   texte blanc garde le rouge sombre, lisible. */
html.ep-apercu :is(.chip-pos, .gauge-ok .gauge-needle, .vol-year-bar > i, .tline-flat-dot, .acq-scale-bar > i.gain,
  .seuil.is-ok .seuil-meter > i, .slide-bar, .plainbar-track i.is-pos, .plainsplit-bar i.is-left, .plainsplit-key.is-left i,
  .plainmeter-track > i.is-ok, .sy-dossier-col.is-complete .sy-axe-bar > i, .sy-palier.is-plein .sy-palier-bar > i,
  .is-good > .sy-card-kicker > i, .is-good > .sy-band-say > .sy-card-kicker > i, .sy-rule.is-ok .sy-rule-fill,
  .sy-gauge-track > i.is-ok, .sx-card.is-good .sx-card-kicker > i, .sx-card.is-good .sx-bar.is-on > i,
  .sx-card.is-good .sx-bars.is-zoom .sx-bar > i, .as-cascade-l.is-plus i, .as-cascade-l.is-couvre i,
  .step-line.done .step-line-no, .sy-done > i) { background: var(--gain-fill); }
html.ep-apercu :is(.chip-pos, .step-line.done .step-line-no, .sy-done > i) { color: var(--accent-ink); }
html.ep-apercu .pay-step.final::before { background: var(--gain-fill); }
html.ep-apercu :is(.gauge-high .gauge-needle, .acq-scale-bar > i.loss, .plainbar-track i.is-neg, .plainsplit-bar i.is-bad,
  .plainsplit-key.is-bad i, .is-bad > .sy-card-kicker > i, .is-bad > .sy-band-say > .sy-card-kicker > i,
  .sy-hundred-bar > i.is-bad, .sy-hundred-key.is-bad > i, .sy-mini-track > i.is-neg, .sy-split-bar > i.is-bad,
  .sy-split-key.is-bad > i, .sy-curve-dot.is-neg, .sy-perf-bar.is-down, .sx-card.is-bad .sx-card-kicker > i,
  .sx-card.is-bad .sx-bar.is-on > i, .sx-card.is-bad .sx-bars.is-zoom .sx-bar > i, .as-barre.is-alerte .as-barre-piste i,
  .as-cascade-l.is-moins i, .as-cascade-l.is-manque i, .as-eq-barre i.is-cout) { background: var(--loss-fill); }
html.ep-apercu :is(.pay-step.cost, .nudge-bad)::before, html.ep-apercu .garde-item.is-alerte .garde-item-txt b::before { background: var(--loss-fill); }
html.ep-apercu .as-j-haut circle { fill: var(--gain-fill); }
html.ep-apercu :is(.as-j-bas circle, .as-j-neg, .rvl-low circle) { fill: var(--loss-fill); }

/* ─── Le tiroir d'une offre, d'après les captures du 5 octobre ───
   Les règles sous un titre de section, et ce qui compte déjà ; au pied, à
   côté du moteur, le chiffre que le tiroir fait bouger. « Mes charges » : un
   total en tête, des lignes en surfaces, sans cadre ni filet. */
html.ep-apercu .ep-construit-tete {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 2px 2px 10px; border-bottom: 1px solid var(--rule);
}
html.ep-apercu .ep-construit-tete h3 { margin: 0; font: 700 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
html.ep-apercu .ep-construit-compte { font: 600 10px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); white-space: nowrap; }
html.ep-apercu .ep-couche-pied { gap: 18px; }
html.ep-apercu .ep-couche-pied-chiffre { display: grid; gap: 1px; flex: none; text-align: right; }
html.ep-apercu .ep-couche-pied-chiffre small { font: 600 9.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); white-space: nowrap; }
html.ep-apercu .ep-couche-pied-chiffre > span { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 3px; white-space: nowrap; }
html.ep-apercu .ep-couche-pied-chiffre b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
html.ep-apercu .ep-couche-pied-chiffre.is-mauvais b { color: var(--loss); }
@media (max-width: 760px) { html.ep-apercu .ep-couche-pied-chiffre { display: none; } }

/* « Mes charges » : plus clair. */
html.ep-apercu .ep-cv { gap: 22px; }
html.ep-apercu .ep-cv-tete { align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--repos); }
html.ep-apercu .ep-cv-tete h4 { font: 700 10.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
html.ep-apercu .ep-cv-tete-t p { justify-self: start; padding: 3px 9px; border-radius: 999px; background: var(--accent-wash); font-size: 12px; font-weight: 600; color: var(--ink-2); }
html.ep-apercu .ep-cv-total b { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
html.ep-apercu .ep-cv-groupe-tete h4 { font: 700 10.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
html.ep-apercu .ep-cv .ep-cout-liste { gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; }
html.ep-apercu .ep-cv .ep-cout-ligne, html.ep-apercu .ep-cv .ep-cout-ligne:first-child {
  padding: 11px 12px 11px 14px; border: 0; border-radius: 12px; background: var(--field-bg);
  transition: background-color .5s var(--fluid);
}
html.ep-apercu .ep-cv .ep-cout-ligne:hover { background: var(--field-bg-hover); }
html.ep-apercu .ep-cv .ep-cout-ligne.is-off { background: transparent; border: 1px dashed rgba(14, 15, 12, .22); opacity: .6; }
html.ep-apercu .ep-cv .ep-cout-ligne-v b { font-weight: 800; }
html.ep-apercu .ep-cv-vide { border-radius: 12px; background: transparent; }
html.ep-apercu .ep-cv-puce { border-color: transparent; background: var(--field-bg); transition: background-color .5s var(--fluid), color .5s var(--fluid); }
html.ep-apercu .ep-cv-puce:hover { border-color: transparent; background: var(--field-bg-hover); }
html.ep-apercu .ep-cv-puce.is-on { border-color: var(--anis); background: var(--anis); color: var(--accent-ink); }
html.ep-apercu .ep-cv-puce.is-autre { border-color: rgba(14, 15, 12, .22); background: transparent; }

/* ─── Une offre en pause : transparente, comme éteinte (fil 3aecb9dd) ───
   Le calcul ne la compte plus : sa carte s'efface, perd ses couleurs et ne
   se soulève plus ; l'interrupteur, hors de la carte, reste net pour la
   rallumer. */
html.ep-apercu .ep-of-carte.is-pause { opacity: .38; filter: grayscale(1); background: transparent; box-shadow: none; }
html.ep-apercu .ep-of-carte.is-pause:is(:hover, :active) { transform: none; box-shadow: none; background: transparent; }

/* ─── Les charges en rouge (fil 2ca67a0c) : la part du coût dans le prix ─── */
html.ep-apercu .ep-of-barre-cout { background: var(--loss-fill); color: #FFFFFF; }
html.ep-apercu .ep-of-barre-cout.is-mauvais { background: repeating-linear-gradient(-45deg, var(--loss-fill) 0 5px, var(--loss) 5px 10px); color: #FFFFFF; }

/* Achats : ce que dit une ligne qui change de bloc, pour un lecteur d'écran seulement (fil 778c0326). */
.ep-achats-annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* Achats : « Souvent oubliées » et « Obligatoire » au dessin des suggestions d'Offre (fil a41b2fed). */
.ep-suggestions > .tradetip { margin: 0; }
/* Fil 3a04a230 : le « +N » en pointillés dit « voir plus » ; déplié, une
   pastille « Voir moins » au même dessin referme. Plus de lien au bout. */
.tradetip.is-voir-plus .tradetip-more { gap: 6px; font-family: var(--sans); font-size: 12.5px; }
.tradetip.is-voir-plus .tradetip-more .num { font-family: var(--mono); font-size: 12px; }
.tradetip-moins { display: none; }
.tradetip.is-voir-plus.is-all .tradetip-moins {
  display: inline-flex; align-items: center; cursor: pointer; padding: 5px 12px; border-radius: 999px;
  border: 1px dashed var(--ink-5); background: transparent; font: 600 12.5px/1.2 var(--sans); color: var(--ink-3);
  transition: border-color .14s var(--ease-soft), color .14s var(--ease-soft);
}
.tradetip.is-voir-plus .tradetip-moins:hover { border-color: var(--ink); border-style: solid; color: var(--ink); }
.ep-tradetip-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
/* Fil ee752486 : repliées, les suggestions tiennent sur une seule ligne,
   leur titre devant ; les pastilles gardent leur largeur, celles qui ne
   tiennent pas attendent derrière « +N voir plus », toujours au bout
   (js/ui/trade-suggest.js, uneSeuleLigne). Au téléphone, le titre au-dessus. */
.tradetip.is-voir-plus:not(.is-all) { flex-wrap: nowrap; }
.tradetip.is-voir-plus:not(.is-all) .tradetip-title { flex: none; white-space: nowrap; }
/* Sa largeur est celle de la page, jamais celle de ses pastilles (sans quoi
   la ligne pousserait la page au lieu de se replier). */
.tradetip.is-voir-plus:not(.is-all) .tradetip-items { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; contain: inline-size; }
.tradetip.is-voir-plus:not(.is-all) .tradetip-items > * { flex-shrink: 0; }
.tradetip.is-voir-plus:not(.is-all) .tradetip-items.is-serree > .is-en-tete { flex-shrink: 1; min-width: 0; }
.tradetip.is-voir-plus .tradetip-more { white-space: nowrap; }
@media (max-width: 760px) {
  .tradetip.is-voir-plus:not(.is-all) { flex-wrap: wrap; }
  .tradetip.is-voir-plus:not(.is-all) .tradetip-items { flex: 1 1 100%; margin-left: 0; }
  .tradetip.is-voir-plus:not(.is-all) .tradetip-label { white-space: nowrap; }
}
/* Fil c0ad289c : la pastille obligatoire ouvre la ligne des suggestions ; une
   mini étiquette le dit, sans faire un bloc à part. */
.tradetip-item .tradetip-etiquette {
  flex: none; margin-left: -2px; padding: 1px 7px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--rule);
  font: 500 11px/1.35 var(--sans); color: var(--ink-3);
}

/* Mes charges : « Ajouter une charge à … », chaque suggestion au dessin de
   celles d'Offre et revenus, son « + » anis devant (fil 0d148194). */
html.ep-apercu .ep-cout-suggeres { gap: 8px; }
html.ep-apercu .ep-cout-suggeres .ep-cv-puce.tradetip-item {
  gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(11, 14, 16, .05);
}
html.ep-apercu .ep-cout-suggeres .ep-cv-puce.tradetip-item:hover { border-color: var(--ink); background: var(--surface); }
html.ep-apercu .ep-cout-suggeres .ep-cv-puce.tradetip-item.is-autre { border-style: dashed; border-color: var(--ink-5); background: transparent; box-shadow: none; }
html.ep-apercu .ep-cout-suggeres .ep-cv-puce.tradetip-item.is-on { border-style: solid; border-color: var(--ink); background: var(--surface); }
html.ep-apercu .ep-cout-suggeres .ep-cv-puce.is-on .tradetip-plus { background: var(--ink); color: var(--anis); transform: rotate(45deg); }

/* ─── Offre et revenus : les catégories (retours du 5 octobre au soir) ───
   Des groupes que l’entrepreneur nomme ; une carte s'y glisse. Une zone qui
   attend une carte s'éclaire d'anis ; une carte rangée s'éclaire un instant. */
.ep-of-rangement { display: grid; gap: 14px; margin: var(--s-4) 0; min-width: 0; }
.ep-of-rangement > .ep-of-grille { margin: 0; }
.ep-of-cat { display: grid; gap: 10px; min-width: 0; padding: 12px; border-radius: 20px; border: 1.5px dashed transparent; background: rgba(255, 255, 255, .42); transition: background-color .3s var(--fluid, ease), border-color .3s var(--fluid, ease); }
.ep-of-cat.is-sans { background: transparent; }
.ep-of-cat.is-cible { border-color: var(--anis, #B9F510); background: var(--accent-wash); }
.ep-of-cat-tete { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 2px; }
.ep-of-cat-nom { flex: 1 1 auto; min-width: 0; margin: 0; padding: 5px 8px; border: 0; border-radius: 10px; background: transparent; font: 700 16px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
input.ep-of-cat-nom:hover { background: var(--field-bg); }
input.ep-of-cat-nom:focus { outline: none; background: var(--surface); box-shadow: var(--ring, 0 0 0 3px rgba(185, 245, 16, .2)); }
input.ep-of-cat-nom::placeholder { color: var(--ink-4); font-weight: 600; }
.ep-of-cat-nom.is-fixe { font-size: 13px; font-family: var(--sans); font-weight: 600; color: var(--ink-3); }
.ep-of-cat-compte { flex: none; font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.ep-of-cat-retirer { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-4); cursor: pointer; }
.ep-of-cat-retirer svg { width: 12px; height: 12px; }
.ep-of-cat-retirer:hover { background: var(--loss-wash); color: var(--loss); }
.ep-of-grille.is-cat { margin: 0; }
.ep-of-cat-vide { grid-column: 1 / -1; margin: 0; padding: 16px; border: 1.5px dashed var(--rule); border-radius: 16px; font-size: 13px; color: var(--ink-4); text-align: center; }
.ep-of-cat-creer { justify-self: start; }
.ep-of-cellule[draggable="true"] { cursor: grab; }
.ep-of-cellule[draggable="true"]:active { cursor: grabbing; }
.ep-of-cellule.is-glisse { opacity: .35; }
@keyframes ep-rangee { from { box-shadow: 0 0 0 0 rgba(185, 245, 16, .55); } to { box-shadow: 0 0 0 14px rgba(185, 245, 16, 0); } }
.ep-of-cellule.is-rangee > .ep-of-carte { animation: ep-rangee .9s var(--fluid, ease) 1; }
@media (prefers-reduced-motion: reduce) { .ep-of-cellule.is-rangee > .ep-of-carte { animation: none; } }
.ep-of-carte-nom.is-a-nommer { color: var(--ink-4); font-weight: 600; text-decoration: underline dashed var(--ink-5); text-underline-offset: 4px; }

/* Une règle en pause (fil ca9cdb76) : à sa place, effacée et pointillée comme
   tout ce que le calcul ignore ; sans halo. Son interrupteur et sa croix
   restent nets. */
html.ep-apercu .ep-brique.is-en-pause { animation: none; box-shadow: none; border: 1px dashed rgba(14, 15, 12, .22); background: transparent; }
html.ep-apercu .ep-brique.is-en-pause :is(.ep-picto, .ep-regle-texte) { opacity: .55; }
.ep-regle-pause { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--field-bg, #EFEDE6); font: 600 10.5px/1.5 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); vertical-align: 1px; }
.ep-brique-tete > .onoff { flex: none; align-self: center; }

/* Le menu des règles et les règles posées : une seule teinte pour tous les
   pictogrammes (fil 32cf57d7 : « les couleurs sont trop opulentes ; ça fait
   junior, cet empilement de couleurs »). Les familles se lisent aux
   intertitres du menu ; le pictogramme garde ses deux tons. */
html.ep-apercu :is(.ep-menu-ligne[data-famille] .ep-picto, .ep-brique[data-famille] > .ep-brique-tete .ep-picto:not(.is-petit)) {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-2) 100%); border: 1px solid rgba(14, 15, 12, .09); color: var(--ink);
}
html.ep-apercu :is(.ep-menu-ligne, .ep-brique)[data-famille] .ep-picto .ep-pf { fill: var(--accent); opacity: 1; }
.ep-menu-famille { margin: 12px 8px 0; font: 700 10.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }

/* Un chiffre hors des ordres de grandeur du métier : un avertissement sous
   le titre, plus le titre lui-même (fil bf64f999). */
.sx-avert { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 6px 12px 6px 6px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font-size: 13px; line-height: 1.35; color: var(--ink-2); max-width: 100%; }
.sx-avert-signe { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--loss-fill); color: #FFFFFF; font: 800 12px/1 var(--sans); }
.sx-avert-lien { padding: 0; border: 0; background: none; font: 600 13px/1.35 var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sx-af .sx-avert { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .88); }

/* Les listes déroulantes de l'aperçu (fil e41b9258) : une surface blanche,
   des lignes douces, l'anis pour la ligne choisie. js/demo/epure/listes.js. */
.ep-deroul {
  position: fixed; z-index: 400; overflow-y: auto; padding: 6px; border-radius: 14px;
  background: var(--surface, #FFFFFF); border: 1px solid rgba(14, 15, 12, .08);
  box-shadow: 0 1px 2px rgba(14, 15, 12, .06), 0 18px 40px -18px rgba(14, 15, 12, .35);
  font-family: var(--sans); animation: ep-deroul-entre .18s var(--fluid, ease) both; transform-origin: top center;
}
.ep-deroul.is-dessus { transform-origin: bottom center; }
@keyframes ep-deroul-entre { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.ep-deroul-ligne { padding: 8px 12px; border-radius: 9px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ep-deroul-ligne.is-actif { background: var(--field-bg, #EFEDE6); color: var(--ink); }
.ep-deroul-ligne.is-on { font-weight: 600; color: var(--ink); box-shadow: inset 3px 0 0 var(--anis, #B9F510); background: var(--accent-wash); }
.ep-deroul-ligne.is-on.is-actif { background: var(--accent-wash); }
.ep-deroul-ligne.is-off { color: var(--ink-5); cursor: default; }
.ep-deroul-titre { margin: 8px 12px 4px; font: 700 10.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }
@media (prefers-reduced-motion: reduce) { .ep-deroul { animation: none; } }

/* ═══ L'accueil (le parcours de création) à la charte ═══
   Retours du 5 octobre au soir : « lors de l'onboarding, il n'y a pas eu la
   même rigueur pour appliquer Material You, Surface Dynamics ni le Fluid
   Design : les boutons sont figés ». Les mêmes règles que les pages de
   saisie : des surfaces posées sur l'ivoire, qui se soulèvent au survol et
   s'enfoncent à la pression, une seule courbe pour tout ce qui bouge ; ce
   qu'on choisit s'allume d'anis (un lavis et un anneau), pas d'encre ; les
   champs sont des surfaces, blanches au focus, cerclées d'anis. */
html.ep-apercu :is(.stagepick, .setup-choice, .setup-sector, .famcard, .setup-cost) {
  border-color: rgba(0, 0, 0, .03); background: var(--surface); box-shadow: var(--repos); border-radius: 16px;
  transition: transform .5s var(--fluid), box-shadow .5s var(--fluid), background-color .5s var(--fluid), border-color .5s var(--fluid), color .5s var(--fluid);
}
html.ep-apercu :is(.stagepick, .setup-choice, .setup-sector, .famcard):hover {
  transform: translateY(-1px) scale(1.002); box-shadow: var(--souleve); border-color: rgba(0, 0, 0, .04); background: var(--surface);
}
html.ep-apercu :is(.stagepick, .setup-choice, .setup-sector, .famcard):active {
  transform: scale(.99) translateY(0); background-color: var(--enfonce); transition-duration: .15s;
}
/* Choisi : le lavis anis et son anneau, le texte reste à l'encre. */
html.ep-apercu :is(.stagepick.active, .setup-choice.active, .setup-sector.active, .famcard.is-here),
html.ep-apercu :is(.stagepick.active, .setup-choice.active, .setup-sector.active, .famcard.is-here):hover {
  background: var(--accent-wash); border-color: var(--anis); box-shadow: 0 0 0 1px var(--anis), var(--repos);
}
html.ep-apercu .famcard.is-here { border-width: 1px; padding: 13px 14px; }
html.ep-apercu :is(.stagepick.active .stagepick-label, .setup-choice.active .setup-choice-label, .setup-sector.active .setup-sector-name) { color: var(--ink); }
html.ep-apercu :is(.stagepick.active .stagepick-then, .setup-choice.active .setup-choice-note, .setup-sector.active .setup-sector-note) { color: var(--ink-3); }
html.ep-apercu .setup-sector.active .setup-sector-glyph { color: var(--ink); }
/* La pastille du stade : vide, puis l'anis qui se pose, une coche à l'encre. */
html.ep-apercu .stagepick-mark { border-color: rgba(14, 15, 12, .18); background: var(--surface); transition: background-color .5s var(--fluid), border-color .5s var(--fluid), transform .5s var(--fluid); }
html.ep-apercu .stagepick.active .stagepick-mark { background: var(--anis); border-color: var(--anis); color: var(--accent-ink); animation: ep-pose .5s var(--fluid) 1; }
@keyframes ep-pose { from { transform: scale(.6); } to { transform: scale(1); } }
html.ep-apercu .setup-choice.is-unsure { border-style: dashed; border-color: rgba(14, 15, 12, .22); background: transparent; box-shadow: none; }
html.ep-apercu .setup-choice.is-unsure:hover { background: var(--surface); border-style: solid; border-color: rgba(0, 0, 0, .04); }

/* Les frais : des cases-surfaces ; cochées, le lavis anis et une coche anis. */
html.ep-apercu .setup-cost.on { background: var(--accent-wash); border-color: var(--anis); box-shadow: 0 0 0 1px var(--anis); }
html.ep-apercu .setup-cost-box { border-radius: 6px; border-color: rgba(14, 15, 12, .22); transition: background-color .5s var(--fluid), border-color .5s var(--fluid), transform .5s var(--fluid); }
html.ep-apercu .setup-cost.on .setup-cost-box { background: var(--anis); border-color: var(--anis); color: var(--accent-ink); animation: ep-pose .5s var(--fluid) 1; }
html.ep-apercu .setup-cost-toggle { transition: transform .5s var(--fluid); }
html.ep-apercu .setup-cost-toggle:active { transform: scale(.99); transition-duration: .15s; }
html.ep-apercu .setup-cost-amount {
  border-color: transparent; border-radius: 10px; background: var(--field-bg); font-weight: 700; color: var(--ink);
  transition: background-color .5s var(--fluid), border-color .5s var(--fluid), box-shadow .5s var(--fluid);
}
html.ep-apercu .setup-cost-amount:hover { background: var(--field-bg-hover); }
html.ep-apercu .setup-cost-amount:focus { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); }

/* Le grand champ d'une question : une surface, plus un souligné. */
html.ep-apercu .setup-field {
  border-bottom: 0; padding: 4px 18px; border-radius: 18px; background: var(--field-bg); border: 1px solid transparent;
  transition: background-color .5s var(--fluid), border-color .5s var(--fluid), box-shadow .5s var(--fluid);
}
html.ep-apercu .setup-field:hover { background: var(--field-bg-hover); }
html.ep-apercu .setup-field:focus-within { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); }
/* Dans les lignes des façons de payer (fil c9178d0c), des champs plus bas. */
html.ep-apercu .setup-modes .setup-field { padding: 2px 12px; border-radius: 12px; }
html.ep-apercu .setup-search {
  border-color: transparent; border-radius: 16px; background: var(--field-bg); box-shadow: none;
  transition: background-color .5s var(--fluid), border-color .5s var(--fluid), box-shadow .5s var(--fluid);
}
html.ep-apercu .setup-search:hover { background: var(--field-bg-hover); }
html.ep-apercu .setup-search:focus-within { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); }
/* « Tu fais quoi ? » (fils 637c1d0f et 75ad4c69, 13 octobre : « la barre un
   peu plus visible » ; « réduis un peu, afin de n'avoir que 4 lignes ») : la
   recherche d'abord, une vraie surface blanche, sa loupe à l'encre ; les
   familles en tuiles plus petites, sept par rang, quatre rangs. Leurs exemples
   tiennent sur une ligne, entiers au survol. La rangée se mesure à la colonne
   de la question (.setup-body est un conteneur) : une tablette en range cinq
   par rang ; un téléphone garde ses cartes, deux par rang. */
html.ep-apercu .setup-pick .setup-search {
  min-height: 52px; border: 1px solid rgba(14, 15, 12, .14); background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(14, 15, 12, .06), 0 12px 26px -20px rgba(14, 15, 12, .45);
}
html.ep-apercu .setup-pick .setup-search:hover { background: #FFFFFF; border-color: rgba(14, 15, 12, .26); }
html.ep-apercu .setup-pick .setup-search:focus-within { border-color: var(--anis); box-shadow: var(--ring), 0 12px 26px -20px rgba(14, 15, 12, .45); }
/* La loupe, dessinée (le glyphe « ⌕ » restait minuscule). */
html.ep-apercu .setup-pick .setup-search-icon {
  width: 19px; height: 19px; font-size: 0; color: transparent; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.ep-apercu .setup-pick .setup-search-input { padding: 15px 0; font-size: 16px; }
html.ep-apercu .setup-pick .setup-search-input::placeholder { color: var(--ink-3); font-style: normal; }
@container (min-width: 640px) {
  html.ep-apercu .setup-pick .setup-sectors.is-familles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  html.ep-apercu .setup-pick .is-familles .setup-sector { grid-template-columns: minmax(0, 1fr); row-gap: 2px; min-height: 0; padding: 10px 8px 9px; border-radius: 14px; }
  html.ep-apercu .setup-pick .is-familles .setup-sector-icon { grid-column: 1; grid-row: auto; align-self: start; width: 28px; height: 28px; margin: 0 0 4px; }
  html.ep-apercu .setup-pick .is-familles .setup-sector-glyph { grid-column: 1; grid-row: auto; }
  html.ep-apercu .setup-pick .is-familles .setup-sector-name { grid-column: 1; grid-row: auto; font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow-wrap: normal; hyphens: auto; }
  /* Les exemples se lisent en entier, sur deux ou trois lignes (fil 898ef1eb,
     13 octobre au soir : « on ne voit pas tous les textes ») : la tuile
     s'allonge un peu, et l'en-tête qui s'affine rend la place (plus bas). */
  html.ep-apercu .setup-pick .is-familles .setup-sector-note { grid-column: 1; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.32; }
}
@container (min-width: 860px) {
  html.ep-apercu .setup-pick .setup-sectors.is-familles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* L'en-tête du parcours, affiné (fil 898ef1eb : « remonte et affine le header
   pour tout remonter ») : 52 px au lieu de 64, le logo à sa mesure, et la
   question qui remonte d'autant. */
@media (min-width: 761px) {
  /* Et la zone, un chouia plus large : la charpente passe de 1280 à 1400 px,
     l'en-tête reste aligné sur elle ; « Tu fais quoi ? » prend toute la
     colonne, les autres questions gardent leur largeur. */
  html.ep-apercu .setup-shell { max-width: 1400px; }
  html.ep-apercu .setup .parcours-tete-in { max-width: 1464px; }
  html.ep-apercu .setup-card:has(.setup-pick) { max-width: 1068px; }
  html.ep-apercu .setup { --parcours-tete: 52px; }
  html.ep-apercu .setup .parcours-logo-mark { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
  html.ep-apercu .setup .parcours-logo-mot { font-size: 15px; }
  html.ep-apercu .setup-main { padding-top: 10px; }
  html.ep-apercu .setup-steps { padding-top: 12px; }
}

/* Les étapes à gauche : la courbe, et la pastille qui se pose. */
html.ep-apercu .setup-step { border-radius: 12px; transition: background-color .5s var(--fluid), color .5s var(--fluid); }
html.ep-apercu .setup-step:active:not(.is-shut) { transform: scale(.99); }
html.ep-apercu .setup-step-dot { transition: background-color .5s var(--fluid), border-color .5s var(--fluid), color .5s var(--fluid); }

@media (prefers-reduced-motion: reduce) {
  html.ep-apercu :is(.stagepick, .setup-choice, .setup-sector, .famcard, .setup-cost-toggle, .setup-step):is(:hover, :active) { transform: none; }
  html.ep-apercu :is(.stagepick.active .stagepick-mark, .setup-cost.on .setup-cost-box) { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTABLE — tout un cran plus petit, selon l'écran (retours du 5 octobre au
   soir : « shrink un peu les vues sur PC portable, tout me paraît trop gros,
   et parfois les éléments débordent les uns sur les autres ; il faut que ça
   s'adapte dynamiquement à l'écran »).

   Un portable affiche souvent à 125 % : 1 920 × 1 080 points deviennent
   1 536 × 730 pixels de page, et chaque texte paraît un quart plus grand
   qu'au bureau. Plutôt que retoucher mille tailles une à une, l'application
   entière (#app) prend un zoom CSS qui suit la fenêtre : 1 au-delà de
   1 800 pixels de large, 0,9, puis 0,85, puis 0,82 sur un portable ; 0,82
   aussi quand la fenêtre est basse (retours du 6 octobre : « shrink plus
   les vues sur PC portable », il était à 0,94, 0,9 et 0,88). Les
   proportions restent celles de la charte, et la page gagne la place qu'il
   lui manquait. La navigation (la barre latérale, la barre du haut, les
   onglets, le titre de page) se resserre d'un cran de plus que la page :
   « tout me paraît toujours trop gros, tant sur la navigation de base que
   dans la barre latérale ».

   Ce que le zoom change, et qu'on corrige ici :
   - une hauteur en « vh » se réduit avec lui : la barre latérale et les
     pages pleine hauteur la divisent par le zoom (--z) ;
   - ce qui flotte hors de #app (la liste déroulante, les bulles, le bouton
     « Démo », le choix d'aperçu) n'est pas zoomé : il se place en
     coordonnées d'écran, comme le navigateur les rend ;
   - une animation qui écrit des pixels dans la page les divise par le zoom
     de l'élément (achats.js, montrerDeplacee).
   Sous 900 pixels (tablette, téléphone), rien ne change : les cibles
   tactiles gardent leur taille.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu { --z: 1; }
@media (min-width: 900px) and (max-width: 1799px) { html.ep-apercu { --z: .9; } }
@media (min-width: 900px) and (max-width: 1599px) { html.ep-apercu { --z: .85; } }
@media (min-width: 900px) and (max-width: 1440px) { html.ep-apercu { --z: .82; } }
@media (min-width: 900px) and (max-height: 820px) { html.ep-apercu { --z: .82; } }
/* La navigation, un cran de plus que la page, sur tout écran de portable. */
@media (min-width: 900px) and (max-width: 1799px), (min-width: 900px) and (max-height: 820px) {
  html.ep-apercu { --rail-w: 184px; --header-h: 42px; --h-tab: 30px; --t-page: 28px; }
  html.ep-apercu .rail { padding-top: 10px; }
  html.ep-apercu .rail-brand { padding: 2px 12px 8px; }
  html.ep-apercu .rail-mark { padding: 4px 8px; font-size: 13.5px; }
  html.ep-apercu .rail-section { padding: 10px 12px 3px; }
  html.ep-apercu .rail-link { gap: 7px; padding: 5px 12px; font-size: 12.5px; }
  html.ep-apercu .rail-foot { padding-left: 12px; padding-right: 12px; }
  html.ep-apercu .rail-foot .rail-link { padding-left: 0; padding-right: 0; }
  html.ep-apercu .hnav-tab { padding: 5px 10px; font-size: 12.5px; }
}
html.ep-apercu #app { zoom: var(--z); min-height: calc(100dvh / var(--z)); }
html.ep-apercu .shell { min-height: calc(100dvh / var(--z)); }
html.ep-apercu .rail { height: calc(100dvh / var(--z)); }
html.ep-apercu :is(.setup, .espace, .auth-page, .home, .auth) { min-height: calc(100dvh / var(--z)); }
html.ep-apercu .guide { height: calc(100dvh / var(--z)); }
html.ep-apercu .live { max-height: calc(100dvh / var(--z) - var(--header-h)); }
/* La liste déroulante de l'aperçu (listes.js) suit la taille du texte zoomé. */
html.ep-apercu .ep-deroul { font-size: calc(14px * var(--z)); }

/* Ce qui flottait au milieu, en bas, recouvrait les lignes du bas de page :
   le choix d'aperçu et le bouton « Démo » se rangent au pied de la barre
   latérale, sur sa largeur ; la page garde de la place sous la mascotte. */
html.ep-apercu .demo-choix-compte {
  left: 6px; right: auto; bottom: 10px; transform: none; align-items: flex-start;
  width: calc(var(--rail-w) * var(--z) - 12px);
}
html.ep-apercu .demo-pastille { max-width: 100%; padding: 6px 8px; font-size: 11.5px; }
html.ep-apercu .demo-pastille > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .demo-menu { position: absolute; left: 0; bottom: calc(100% + 8px); }
/* Le menu « Démo » s'ouvre au-dessus du pied de l'aperçu (les styles à
   comparer, z-index 180) : sans quoi le pied en cachait la moitié, et les
   comptes du bas ne se choisissaient plus. */
html.ep-apercu .demo-choix-compte { z-index: 185; }
html.ep-apercu .ep-choix { flex-direction: column; align-items: stretch; gap: 3px; padding: 8px; border-radius: 14px; }
html.ep-apercu .ep-choix-titre { margin: 0 0 2px 4px; font-size: 11px; }
html.ep-apercu .ep-choix-btn { justify-content: flex-start; width: 100%; padding: 5px 9px; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .rail-foot { padding-bottom: calc(var(--ep-pied, 52px) / var(--z)); }
html.ep-apercu .main { padding-bottom: 72px; }
/* Une seule réserve en bas de page, celle de la mascotte (.main) : la page
   et la synthèse y ajoutaient 128 et 96 px de vide (retours du 5 octobre au
   soir, « que ça respire », pas qu'elle finisse sur un écran blanc). */
@media (min-width: 900px) { html.ep-apercu .content { padding-bottom: 24px; } }
html.ep-apercu .sx-v { padding-bottom: 0; }
@media (max-width: 899px) {
  html.ep-apercu .demo-choix-compte { width: auto; }
  html.ep-apercu .ep-choix { flex-direction: row; }
  html.ep-apercu .rail-foot { padding-bottom: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ÉQUIPE — un poste par tuile. Des cinq façons comparées (retours du 5
   octobre au soir : « comme elle est fat alors qu'il y a très peu d'info »),
   le fondateur a gardé les tuiles (6 octobre : « garde le format tuile ») :
   de petites cartes, quatre par rangée ; l'interrupteur descend à côté des
   chiffres, le nom garde toute la largeur, sur une seule ligne.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu .ep-equipe .ep-grille { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
html.ep-apercu .ep-equipe .ep-carte-ajout { min-height: 88px; }
html.ep-apercu .ep-equipe .ep-carte {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "puce nom nom" "chiffres chiffres bascule";
  align-items: center; gap: 8px; padding: 10px 10px 9px; border-radius: 14px;
}
html.ep-apercu .ep-equipe .ep-carte-tete { display: contents; }
html.ep-apercu .ep-equipe .ep-carte .ep-av-poste { grid-area: puce; }
html.ep-apercu .ep-equipe .ep-carte-nom { grid-area: nom; }
html.ep-apercu .ep-equipe .ep-carte .onoff { grid-area: bascule; align-self: end; }
html.ep-apercu .ep-equipe .ep-carte-chiffres { grid-area: chiffres; gap: 4px 10px; }
html.ep-apercu .ep-equipe .ep-carte .ep-av.is-moyen { width: 26px; height: 26px; }
/* Le titre du poste en 13 px, en entier sur sa ligne (fil 8cf8b80d) : à
   quatre tuiles par rangée, « Fondatrice (direction et ventes) » tient tout
   juste ; un soupçon de chasse en moins lui laisse sa marge. */
html.ep-apercu .ep-equipe .ep-carte-nom b { font-size: 13px; letter-spacing: -.01em; }
html.ep-apercu .ep-equipe .ep-carte-nom span { font-size: 10.5px; }
html.ep-apercu .ep-equipe .ep-carte-chiffre dt { font-size: 10px; }
html.ep-apercu .ep-equipe .ep-carte-chiffre dd b { font-size: 13.5px; }

/* ═══════════════════════════════════════════════════════════════════════════
   OFFRE ET REVENUS — « Quatre » (6 octobre au soir : « j'aime bien la vue
   Quatre, tu peux supprimer les autres ») : quatre tuiles par rangée, aux
   tailles de texte de la carte d'avant ; ce qu'on gagne vient de la
   disposition. Un nom trop long s'arrête en points de suspension, la carte
   le dit en entier au survol.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu .ep-offres .ep-of-carte-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .ep-offres .ep-of-carte-v { flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* En pause : quelques mots, sur une ligne ; la carte entière s'estompe déjà. */
html.ep-apercu .ep-offres .ep-of-carte-pause { font-size: 0; line-height: 18px; white-space: nowrap; }
html.ep-apercu .ep-offres .ep-of-carte-pause::after { content: 'En pause, hors du calcul'; font-size: 12.5px; }
html.ep-apercu .ep-offres .ep-of-grille { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
html.ep-apercu .ep-offres .ep-of-carte { gap: 12px; padding: 18px 18px 16px; border-radius: 18px; }
html.ep-apercu .ep-offres .ep-of-carte-tete { padding-right: 60px; }
html.ep-apercu .ep-offres .ep-of-cellule > .ep-of-onoff { top: 16px; right: 16px; }
html.ep-apercu .ep-offres .ep-of-carte-mode { display: none; }
html.ep-apercu .ep-offres .ep-of-carte-prix { flex-wrap: nowrap; white-space: nowrap; }
html.ep-apercu .ep-offres .ep-of-carte-prix b { font-size: 26px; }
/* Les colonnes de chiffres prennent la largeur de ce qu'elles portent : « 378 abonnements » tient. */
html.ep-apercu .ep-offres .ep-of-carte-figs { grid-template-columns: auto auto; justify-content: space-between; gap: 12px 16px; }

/* ── Le fond d'une catégorie : un plateau clair (6 octobre au soir : « plus
   clair, pour qu'on comprenne qu'elles appartiennent à la même catégorie » ;
   « je garde Plateau »). Presque blanc, à peine soulevé, les offres s'y
   posent. « Sans catégorie » reste sans fond ; la zone où l'on dépose une
   offre garde son liseré d'anis. ── */
html.ep-apercu .ep-of-rangement.is-categories { gap: 20px; }
html.ep-apercu .ep-of-cat:not(.is-sans) { padding: 16px; border-radius: 24px; }
html.ep-apercu .ep-of-cat:not(.is-sans):not(.is-cible) {
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .05), 0 10px 28px -18px rgba(14, 15, 12, .22);
}
html.ep-apercu .ep-of-cat:not(.is-sans) .ep-of-carte:not(.is-ajout) { box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 2px 6px -2px rgba(14, 15, 12, .08); }

/* Le pied de la barre latérale : les styles à comparer, puis le choix de
   version. Hors de #app, donc à la taille de l'écran (sans zoom). */
.ep-apercu-pied {
  position: fixed; left: 6px; bottom: 52px; z-index: 180;
  display: flex; flex-direction: column; gap: 8px;
  width: calc(var(--rail-w) * var(--z, 1) - 12px);
}
.ep-apercu-pied > .ep-choix { position: static; transform: none; width: 100%; }
/* Un tiroir ouvert : le pied se cache, toujours (14 octobre au soir : il se posait sur la carte du guide,
   rangée à gauche du tiroir). */
body:has(.ep-couche) .ep-apercu-pied { display: none; }
.ep-styles {
  display: grid; gap: 8px; padding: 8px 6px; border: 1px solid var(--ink); border-radius: 14px;
  background: var(--surface); box-shadow: 0 6px 18px rgba(11, 14, 16, .14); font-family: var(--sans);
}
.ep-styles[hidden] { display: none; }
.ep-style { display: grid; gap: 4px; }
.ep-style-titre { margin: 0 0 0 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.ep-style-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.ep-style-btn {
  min-width: 0; padding: 4px 5px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink-3);
  font: 500 11px/1.25 var(--sans); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.ep-style-btn:hover { color: var(--ink); background: var(--field-bg-hover, #E6E3D9); }
.ep-style-btn.is-on { background: var(--ink); color: var(--surface); }
.ep-style-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* Un choix à six (le fond, les champs) : un rang de petits boutons, le nom du choix dans le titre. */
.ep-style.is-compact .ep-style-titre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-style-choix.is-compact { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
/* Un choix en liste (le panneau de l'IA, 12 octobre) : un nom lisible par ligne. */
.ep-style-choix.is-liste { grid-template-columns: minmax(0, 1fr); }
.ep-style-choix.is-compact .ep-style-btn { padding: 3px 0; text-align: center; font-variant-numeric: tabular-nums; }

/* Trier les dépenses (retours du 6 octobre au soir) : une barre sous les
   suggestions ; chaque bloc se trie lui-même. */
/* Le tri : un menu discret, à droite, au-dessus des montants. */
.ep-tri { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: -4px 4px 10px; font-family: var(--sans); }
/* L'interrupteur et le tri sur une ligne : le tri à droite ; faute de place, il passe dessous. */
.ep-av-rangee { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; }
.ep-av-rangee > .ep-av-onglets { flex: 0 1 auto; min-width: 0; margin: 0; }
.ep-av-rangee > .ep-tri { flex: none; margin: 0 4px 0 auto; }
/* Fil 7402651e : sans interrupteur, le tri prend la ligne du premier titre
   de charges, à droite, avec son trait ; plus de ligne à part. */
.ep-achats section.costblock.a-tri { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; }
.ep-achats section.costblock.a-tri > * { grid-column: 1 / -1; min-width: 0; }
.ep-achats section.costblock.a-tri > button { justify-self: start; }
.ep-achats section.costblock.a-tri > .costblock-head { grid-column: 1; grid-row: 1; }
.ep-achats section.costblock.a-tri > .ep-tri { grid-column: 2; grid-row: 1; align-self: stretch; margin: 0 0 10px; padding: 6px 4px 10px 14px; border-bottom: 1px solid var(--rule); }
.ep-achats section.costblock.a-tri.is-plie > .ep-tri { border-bottom-color: transparent; margin-bottom: 0; }
/* Au téléphone, le titre prend la largeur : le tri passe juste dessous, à
   droite, et porte le trait du titre. */
@media (max-width: 760px) {
  .ep-achats section.costblock.a-tri { grid-template-columns: minmax(0, 1fr); }
  .ep-achats section.costblock.a-tri > .costblock-head { border-bottom-color: transparent; margin-bottom: 0; padding-bottom: 2px; }
  .ep-achats section.costblock.a-tri > .ep-tri { grid-column: 1; grid-row: 2; padding: 0 4px 8px; }
}
.ep-tri-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.ep-tri-menu { appearance: none; -webkit-appearance: none; padding: 3px 18px 3px 2px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%237C7F72' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center; font: 500 12px/1.3 var(--sans); color: var(--ink-2); cursor: pointer; }
.ep-tri-menu:hover { border-bottom-color: var(--champ-trait, #C9C5B8); color: var(--ink); }
.ep-tri-menu:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-tri-retrier { border: 0; background: none; padding: 0; font: 500 12px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--anis-fort); text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACHATS — l'interrupteur fin, d'une catégorie à l'autre (achats-vues.js ;
   retours du 6 octobre au soir). La page s'ouvre sur « Tout » ; une
   catégorie choisie, les autres blocs se rangent (is-hors-vue).
   ═══════════════════════════════════════════════════════════════════════════ */
.ep-achats .is-hors-vue { display: none !important; }
html.ep-apercu .ep-achats .costblock-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-achats-blocs:not(:has(> :not(.is-hors-vue))) { display: none; }
.ep-av-vide { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--rule); color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-achats .ep-av-onglet:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* L'interrupteur fin (« hyper fin, de type toggle switch menu ») : une ligne,
   cinq parts de même largeur sur une piste, une pastille qui glisse sous la
   part choisie. Quand la place manque, le bandeau défile dans sa largeur ;
   au téléphone, chaque part prend sa largeur et la choisie porte son fond. */
.ep-av-onglets { width: fit-content; max-width: 100%; margin: 0 0 14px; border-radius: 999px; background: var(--enfonce); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ep-av-onglets::-webkit-scrollbar { display: none; }
.ep-av-piste { --n: 5; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); width: max-content; padding: 3px; }
.ep-av-piste::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(14, 15, 12, .08), 0 0 0 1px rgba(14, 15, 12, .04); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s var(--fluid); }
.ep-av-onglet { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 5px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-family: var(--sans); white-space: nowrap; cursor: pointer; transition: color .3s var(--fluid); }
.ep-av-onglet .ep-av-nom { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.25 var(--sans); white-space: nowrap; }
/* Les pastilles, toutes de la même couleur (7 octobre). */
.ep-av-onglet .ep-av-nom::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 99px; background: var(--ink-4); }
.ep-av-onglet.is-tout .ep-av-nom::before { display: none; }
.ep-av-montant { font: 500 12px/1.25 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-4); white-space: nowrap; transition: color .3s var(--fluid); }
.ep-av-onglet:hover:not(.is-on) { color: var(--ink-2); }
.ep-av-onglet.is-on { color: var(--ink); }
.ep-av-onglet.is-on .ep-av-montant { color: var(--ink-2); }

@media (max-width: 640px) {
  .ep-av-piste { grid-template-columns: repeat(var(--n), max-content); }
  .ep-av-piste::before { display: none; }
  .ep-av-onglet { padding: 5px 12px; }
  .ep-av-onglet.is-on { background: var(--surface); box-shadow: 0 1px 2px rgba(14, 15, 12, .08), 0 0 0 1px rgba(14, 15, 12, .04); }
}
@media (prefers-reduced-motion: reduce) { .ep-av-piste::before { transition: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   SYNTHÈSE, AFFICHE — le tiroir « Comprendre », didactique (affiche-tiroirs.js,
   affiche-didactique.js ; 6 octobre au soir : « un côté hyper didactique, qui
   explique à quoi sert le concept »). Un cours en questions : chaque question
   numérotée, sa réponse dessous ; une image pour retenir, ce que le chiffre
   représente pour toi en gros, la formule en mots, puis ton calcul ; la
   phrase à retenir en anis.
   ═══════════════════════════════════════════════════════════════════════════ */

.sx-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sx-dd p { margin: 0; }
/* La question à laquelle le chiffre répond : en grand, comme on la poserait. */
.sx-dd-question { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--repos); }
.sx-dd-question-l { font: 500 11.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.sx-dd-question-t { font: 700 20px/1.3 var(--display, var(--sans)); letter-spacing: -.01em; color: var(--ink); }
/* Une étape : son numéro, sa question ; la réponse dessous, le fil à gauche. */
.sx-dd-etape { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; }
.sx-dd-etape::before { content: ''; position: absolute; left: 13.5px; top: 34px; bottom: -14px; width: 1px; background: var(--rule); }
.sx-dd-q { grid-column: 1 / -1; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: center; margin: 0; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.sx-dd-q > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-dd-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: var(--anis, #B9F510); font: 600 13px/1 var(--sans); }
.sx-dd-r { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.sx-dd-texte { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.sx-dd-etiquette { display: block; margin-bottom: 4px; font: 600 11px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
/* L'image pour retenir : une note claire. */
.sx-dd-image { padding: 12px 14px; border-radius: 14px; background: var(--anis-lueur, rgba(185, 245, 16, .15)); font-size: 14px; line-height: 1.55; color: var(--ink); }
/* Ce que le chiffre représente pour toi : la réponse la plus lisible du tiroir. */
.sx-dd-pourtoi { font-size: 16px; line-height: 1.6; color: var(--ink); }
.sx-dd-pourtoi b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Le mot décortiqué : une note discrète, sous la définition. */
.sx-dd-mot { padding: 0 0 0 12px; border-left: 2px solid var(--ink); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
/* La formule en mots, celle du comptable plus discrète, puis le calcul de ton chiffre. */
.sx-dd-formule { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); font: 500 13.5px/1.5 var(--sans); color: var(--ink); }
.sx-dd-formule.is-pro { padding: 8px 14px; background: transparent; box-shadow: none; font-size: 12.5px; color: var(--ink-3); }
.sx-dd .sx-dd-r .sx-db-h3 { display: none; }
.sx-dd .sx-cs-bloc { margin: 0; }
.sx-dd .sx-cs-bloc-tete { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 0 8px; }
.sx-dd .sx-cs-bloc-tete:not(:has(.sx-cs-annees)) { display: none; }
.sx-dd .sx-cs-bloc > p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.sx-dd-qui, .sx-dd-piege { padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--repos); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.sx-dd-piege { background: var(--loss-wash, #FCE1E8); box-shadow: none; }
.sx-dd .sx-cs-lecture.is-grande { margin: 0; }
.sx-dd .sx-cs-surveiller { display: none; }
/* Les leviers : un par ligne, ce qu'il vaut dans tes chiffres au survol. */
.sx-dd .sx-cs-bouge { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sx-dd .sx-cs-bouge li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--repos); font-size: 13px; white-space: nowrap; }
.sx-dd .sx-cs-bouge li > b { font-weight: 500; color: var(--ink); }
.sx-dd .sx-cs-bouge li > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-4); }
.sx-dd .sx-cs-bouge-v { display: flex; gap: 12px; margin: 0; white-space: nowrap; }
.sx-dd .sx-cs-bouge-v .num { font-weight: 500; }
/* À retenir : la phrase qu'on garde en refermant le tiroir. */
.sx-dd-retenir { padding: 16px 18px; border-radius: 18px; background: var(--ink); color: #F4F2EB; }
.sx-dd-retenir .sx-dd-etiquette { color: var(--anis, #B9F510); }
.sx-dd-retenir p { font: 600 16px/1.45 var(--sans); }
.sx-dd .sx-cs-liens { margin: 0; }
.sx-dd-etape:has(+ .sx-dd-retenir)::before, .sx-dd-etape:last-of-type::before { display: none; }
@media (max-width: 760px) {
  .sx-dd-question-t { font-size: 18px; }
  .sx-dd-etape { grid-template-columns: minmax(0, 1fr); }
  .sx-dd-etape::before { display: none; }
  .sx-dd-r { grid-column: 1; }
  /* Au téléphone, les deux montants d'un levier passent sous son libellé. */
  .sx-dd .sx-cs-bouge li { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); row-gap: 4px; }
  .sx-dd .sx-cs-bouge li > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sx-dd .sx-cs-bouge-v { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LES TIROIRS — Material You, Surface Dynamics, Fluid (retours du 6 octobre
   au soir : « dans les barres latérales, surface dynamics, fluid design,
   material you est absent ; applique-les partout où ça sublime
   l'expérience »).
     - Material You : une feuille détachée des bords, aux grands rayons ; des
       sections en surfaces tonales plutôt qu'en traits ;
     - Fluid : l'entrée en courbe « emphasized », le contenu en cascade, la
       sortie qui accélère ;
     - Surface Dynamics : la tête s'élève quand on défile, le pied quand du
       contenu passe dessous (cadre.js, is-defile / is-suite) ; chaque
       bouton a sa couche d'état au survol et à l'appui.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 761px) {
  html.ep-apercu .ep-couche { top: 10px; right: 10px; bottom: 10px; border-radius: 28px; }
  html.ep-apercu .ep-couche-tete { border-radius: 28px 28px 0 0; }
  html.ep-apercu .ep-couche-pied { border-radius: 0 0 28px 28px; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  html.ep-apercu .ep-couche.is-entree { animation: ep-feuille-entre .46s cubic-bezier(.05, .7, .1, 1) both; }
  html.ep-apercu .ep-couche.is-sortie { animation: ep-feuille-sort .2s cubic-bezier(.3, 0, .8, .15) both; }
}
@keyframes ep-feuille-entre { from { opacity: 0; transform: translateX(48px) scale(.985); } }
@keyframes ep-feuille-sort { to { opacity: 0; transform: translateX(32px) scale(.99); } }
@media (prefers-reduced-motion: no-preference) {
  html.ep-apercu .ep-couche.is-entree:not(.is-sortie) .ep-couche-corps > * { animation: ep-feuille-cascade .5s cubic-bezier(.05, .7, .1, 1) both; }
  html.ep-apercu .ep-couche.is-entree .ep-couche-corps > :nth-child(1) { animation-delay: 60ms; }
  html.ep-apercu .ep-couche.is-entree .ep-couche-corps > :nth-child(2) { animation-delay: 100ms; }
  html.ep-apercu .ep-couche.is-entree .ep-couche-corps > :nth-child(3) { animation-delay: 140ms; }
  html.ep-apercu .ep-couche.is-entree .ep-couche-corps > :nth-child(n+4) { animation-delay: 180ms; }
}
@keyframes ep-feuille-cascade { from { opacity: 0; transform: translateY(10px); } }
/* La tête et le pied s'élèvent quand le contenu passe dessous. */
html.ep-apercu :is(.ep-couche-tete, .ep-couche-pied) { transition: box-shadow .3s var(--fluid), background-color .3s var(--fluid); }
html.ep-apercu .ep-couche.is-defile > .ep-couche-tete { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 22px -16px rgba(14, 15, 12, .4); }
html.ep-apercu .ep-couche.is-suite > .ep-couche-pied { box-shadow: 0 -10px 22px -16px rgba(14, 15, 12, .35); }
/* Des sections en surfaces tonales. */
html.ep-apercu .ep-couche .ep-bloc { border-color: transparent; border-radius: 20px; box-shadow: var(--repos); }
/* La couche d'état : un voile de la couleur du bouton, au survol puis à l'appui. */
html.ep-apercu :is(.ep-couche-fermer, .ep-couche-action, .ep-couche-retour) { position: relative; overflow: hidden; }
html.ep-apercu :is(.ep-couche-fermer, .ep-couche-action, .ep-couche-retour)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; pointer-events: none; transition: opacity .2s var(--fluid);
}
html.ep-apercu :is(.ep-couche-fermer, .ep-couche-action, .ep-couche-retour):hover::after { opacity: .08; }
html.ep-apercu :is(.ep-couche-fermer, .ep-couche-action, .ep-couche-retour):active::after { opacity: .14; transition-duration: .08s; }

/* ═══════════════════════════════════════════════════════════════════════════
   APRÈS LE PARCOURS — un accueil court, puis le mode guidé, la mascotte en
   mode libre (arrivee.js ; 6 octobre au soir : « une page en survol,
   beaucoup plus courte, un chill onboarding ; puis la carte 3, en barre
   latérale, qu'il ouvre et ferme facilement »).
   ═══════════════════════════════════════════════════════════════════════════ */
.ep-ar-tag { display: inline-flex; align-self: flex-start; justify-self: start; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--anis-lueur); box-shadow: inset 0 0 0 1px var(--anis-fort); color: var(--ink); font: 500 11.5px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-anneau { flex: none; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--ink) calc(var(--part, 0) * 360deg), var(--enfonce) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }

/* 1. L'accueil : une carte en survol, courte. */
.ep-ar-accueil-fond { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 24px 16px; background: rgba(242, 240, 232, .55); backdrop-filter: blur(10px) saturate(1.1); animation: ep-ar-voile .3s var(--fluid) both; overflow-y: auto; }
.ep-ar-accueil-fond.is-sortie { animation: ep-ar-voile-sort .22s var(--fluid) both; pointer-events: none; }
@keyframes ep-ar-voile { from { opacity: 0; } }
@keyframes ep-ar-voile-sort { to { opacity: 0; } }
.ep-ar-accueil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(600px, 100%); padding: 28px; border-radius: 28px; background: var(--surface); box-shadow: var(--souleve); animation: ep-ar-monte .45s var(--fluid) both; font-family: var(--sans); }
@keyframes ep-ar-monte { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.ep-ar-accueil-tete { display: flex; align-items: center; gap: 14px; min-width: 0; margin-bottom: 4px; }
.ep-ar-accueil-mascotte { flex: none; width: 56px; height: 56px; }
.ep-ar-accueil-titres { display: grid; gap: 6px; min-width: 0; }
.ep-ar-accueil h2 { margin: 0; font: 700 24px/1.15 var(--display, var(--sans)); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-accueil-dit { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-niveaux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 0; }
.ep-ar-niveau { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); box-shadow: var(--repos); }
.ep-ar-niveau.is-fait .ep-ar-anneau { background: var(--anis-fort); }
.ep-ar-niveau-nom { flex: 1 1 auto; min-width: 0; font: 600 13.5px/1.2 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-niveau-note { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-niveau-compte { flex: none; font: 500 12px/1.2 var(--sans); color: var(--ink-3); white-space: nowrap; }
.ep-ar-accueil-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-accueil-pied { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 8px; }
.ep-ar-accueil-pied .btn { white-space: nowrap; border-radius: 999px; }
@media (max-width: 720px) {
  .ep-ar-accueil { padding: 20px; border-radius: 22px; }
  .ep-ar-accueil-mascotte { width: 44px; height: 44px; }
  .ep-ar-accueil h2 { font-size: 19px; }
  .ep-ar-niveau { flex-wrap: wrap; row-gap: 2px; }
  .ep-ar-niveau-nom { flex: 1 1 auto; }
  .ep-ar-niveau-note { order: 3; flex-basis: 100%; padding-left: 28px; }
}

/* 3. La mascotte, en mode libre : dans le coin, un clic rouvre le mode guidé. */
/* Elle vit seule dans l'interface : pas de pastille ni de halo derrière elle
   (7 octobre), juste une ombre douce sous le ruban. Elle entre en scène
   elle-même : voir « La mascotte vivante », plus bas. */
.ep-ar-mascotte { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .25s var(--fluid), bottom .35s var(--fluid); }
/* Au-dessus du dock quand il n'a pas la place à côté d'elle (menu-versions.js, degager), avec sa notification et sa
   pastille. */
html.ep-coin-haut .ep-ar-mascotte { bottom: var(--ep-coin-bas, 16px); }
html.ep-coin-haut .ep-cp-toast { bottom: calc(var(--ep-coin-bas, 16px) + 18px); }
html.ep-coin-haut .ep-cp-pastille { bottom: calc(var(--ep-coin-bas, 16px) + 58px); }
.ep-ar-mascotte .mv { width: 64px; height: 64px; filter: drop-shadow(0 8px 10px rgba(14, 15, 12, .16)); }
.ep-ar-mascotte:hover { transform: translateY(-3px) scale(1.04); }
/* Le saut, la pirouette (arrivee.js, sauterPuisOuvrir) : l'animation porte la forme ; l'onde part d'elle. */
.ep-ar-mascotte.is-saute { pointer-events: none; transition: none; }
body .ep-ar-mascotte.is-saute :is(.ep-ar-mascotte-dit, .ep-ar-mascotte-pct) { opacity: 0; transition: opacity .1s linear; }
.ep-ar-onde { position: fixed; z-index: 94; width: 76px; height: 76px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(185, 245, 16, .55) 0 38%, rgba(185, 245, 16, .18) 39% 62%, transparent 63%); }
.ep-ar-mascotte:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Fil 8843e4bc (11 octobre 2026 : « la mascotte bloque le bouton Valider ») :
   au pied d'un tiroir, « Valider » se range à gauche de la mascotte, qui
   garde son coin. Avec le mode guidé ouvert en bas de l'écran (tablette,
   téléphone), le tiroir s'arrête au-dessus du panneau. */
html:has(.ep-ar-mascotte) .ep-couche-pied { padding-right: 108px; }
@media (max-width: 760px) { html.ep-apercu:has(.ep-ar-mascotte) .ep-couche-pied-note { display: none; } }
@media (max-width: 1100px) { html.ep-ar-dock-ouvert .ep-couche { bottom: calc(46vh + 24px); } }
.ep-ar-mascotte-pct { position: absolute; right: -4px; bottom: -2px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 11px/1.3 var(--sans); white-space: nowrap; }
.ep-ar-mascotte-dit { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 12.5px/1.2 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s var(--fluid), transform .2s var(--fluid); }
.ep-ar-mascotte:is(:hover, :focus-visible) .ep-ar-mascotte-dit { opacity: 1; transform: translate(0, -50%); }

/* 2. Le panneau : la mascotte en tête, les trois niveaux, ce qu'elle dit. */
.ep-ar-dock-mascotte { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; transition: background .2s var(--fluid), box-shadow .2s var(--fluid); }
.ep-ar-dock-mascotte .mv { width: 34px; height: 34px; }
.ep-ar-dock-mascotte:hover, .ep-ar-dock-mascotte.is-on { background: var(--anis-lueur); box-shadow: inset 0 0 0 1px var(--anis-fort); }
.ep-ar-paliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-ar-palier { display: grid; gap: 5px; min-width: 0; }
.ep-ar-palier-nom { font: 500 11.5px/1.2 var(--sans); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-palier.is-ici .ep-ar-palier-nom { color: var(--ink); font-weight: 600; }
.ep-ar-palier.is-fait .ep-ar-palier-nom::before { content: '✓ '; }
.ep-ar-palier-barre { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--anis-fort) calc(var(--part, 0) * 100%), var(--enfonce) 0); transition: background .6s var(--fluid); }
.ep-ar-aide-bloc { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--anis-lueur); }
.ep-ar-aide-bloc p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-bulle { display: flex; align-items: flex-start; gap: 10px; }
.ep-ar-bulle .mv { width: 28px; height: 28px; margin-top: 2px; }
.ep-ar-bulle p { position: relative; margin: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-ar-commencer, .ep-ar-y-aller-guide { white-space: nowrap; }

/* 3. Le mode guidé : un panneau à droite, les questions continuent. */
/* La page vit dans l'aperçu zoomé (--z) : les 404 px d'écran du panneau s'y écrivent divisés. */
@media (min-width: 1101px) { html.ep-ar-dock-ouvert .shell > .main { padding-right: calc(404px / var(--z, 1)); } }
@media (max-width: 1100px) { html.ep-ar-dock-ouvert .shell > .main { padding-bottom: calc(48vh / var(--z, 1)); } }
/* La mascotte du mode guidé remplace celle du guide du coin. */
html.ep-ar-actif :is(.nextstep, .nextstep-tab) { display: none !important; }
/* Au-dessus du voile d'un tiroir, à côté de lui : la réponse se pose dans le
   tiroir pendant que la question suivante vient ici. */
/* Le tiroir vit dans la page zoomée (--z) : ses 404 px d'écran s'écrivent divisés. */
@media (min-width: 1101px) { html.ep-ar-dock-ouvert .ep-couche { right: calc(404px / var(--z, 1)); width: min(940px, calc(100vw - 96px - 404px / var(--z, 1))); } }
.ep-ar-dock { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 95; display: flex; flex-direction: column; gap: 14px; width: 380px; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--souleve); font-family: var(--sans); overflow-y: auto; transform-origin: 100% 100%; }
/* Le panneau sort du coin où vit la mascotte, sur un ressort ; il se ferme en s'effaçant. */
.ep-ar-dock.is-entree { animation: ep-ar-eclot .5s cubic-bezier(.34, 1.25, .64, 1) both; }
.ep-ar-dock.is-range { animation: ep-ar-range .2s var(--fluid) forwards; pointer-events: none; }
@keyframes ep-ar-eclot { from { opacity: 0; transform: translate(14px, 18px) scale(.92); } }
@keyframes ep-ar-range { to { opacity: 0; transform: scale(.98); } }
.ep-ar-dock-tete { display: flex; align-items: center; gap: 10px; }
/* L'en-tête : « Mode guidé », ce qui reste à poser, et en haut à droite une
   mini croix légère pour passer en mode libre (7 octobre au soir : « sans
   switch ; mode libre, on quitte ; juste une mini croix légère »). */
.ep-ar-dock-nom { font: 600 15px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.ep-ar-libre { position: relative; flex: none; width: 28px; height: 28px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); cursor: pointer; transition: background .2s var(--fluid), color .2s var(--fluid); }
.ep-ar-libre::before, .ep-ar-libre::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; border-radius: 1px; background: currentColor; }
.ep-ar-libre::before { transform: translate(-50%, -50%) rotate(45deg); }
.ep-ar-libre::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ep-ar-libre:hover { background: var(--surface-2); color: var(--ink); }
.ep-ar-libre:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ep-ar-dock-compte { flex: 0 1 auto; min-width: 0; margin-left: auto; padding: 5px 10px; border-radius: 999px; background: var(--anis-lueur); color: var(--ink-2); font: 600 12px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-avance { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--anis-fort) calc(var(--part, 0) * 100%), var(--enfonce) 0); transition: background .6s var(--fluid); }
.ep-ar-dock-dit { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.ep-ar-q { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; animation: ep-ar-monte .4s var(--fluid) both; }
.ep-ar-titre { margin: 0; font: 600 19px/1.25 var(--display, var(--sans)); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-aide { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.ep-ar-champ { display: flex; align-items: center; gap: 8px; padding: 2px 6px 2px 12px; border: 1px solid transparent; border-bottom-color: var(--champ-trait, #C9C5B8); border-radius: 10px 10px 2px 2px; background: transparent; transition: background .2s var(--fluid), border-color .2s var(--fluid); }
.ep-ar-champ:hover { border-bottom-color: var(--ink-3); background: var(--champ-survol, rgba(14, 15, 12, .03)); }
.ep-ar-champ:focus-within { border-color: var(--anis); border-radius: 10px; box-shadow: var(--ring); background: #fff; }
.ep-ar-nombre { flex: 1 1 auto; min-width: 0; padding: 10px 0; border: 0; background: transparent; font: 500 22px/1.2 var(--sans); color: var(--ink); outline: none; }
.ep-ar-suffixe { flex: none; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ep-ar-texte { width: 100%; padding: 10px 12px; border: 1px solid transparent; border-bottom-color: var(--champ-trait, #C9C5B8); border-radius: 10px 10px 2px 2px; background: transparent; font: 400 14px/1.45 var(--sans); color: var(--ink); resize: vertical; }
.ep-ar-texte:hover { border-bottom-color: var(--ink-3); background: var(--champ-survol, rgba(14, 15, 12, .03)); }
.ep-ar-texte:focus { outline: none; border-color: var(--anis); border-radius: 10px; box-shadow: var(--ring); background: #fff; }
.ep-ar-choix-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ep-ar-choix { display: grid; gap: 2px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); font-family: var(--sans); text-align: left; cursor: pointer; transition: box-shadow .25s var(--fluid), background .25s var(--fluid); }
.ep-ar-choix.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--anis); }
.ep-ar-choix-nom { font: 500 13.5px/1.25 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-choix-note { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-actions { display: flex; align-items: center; gap: 10px; }
.ep-ar-plus-tard { padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font: 500 13px/1.2 var(--sans); white-space: nowrap; cursor: pointer; transition: background .2s var(--fluid), color .2s var(--fluid), transform .15s var(--fluid); }
.ep-ar-plus-tard:hover { background: var(--surface-2); color: var(--ink); }
.ep-ar-plus-tard:active { transform: scale(.97); }
/* Les questions qui suivent : une liste numérotée sur une surface en creux (« Ensuite » ne se comprenait pas). */
.ep-ar-ensuite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); }
.ep-ar-ensuite-t { margin-bottom: 4px; font: 600 12.5px/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-ensuite-q { position: relative; display: block; padding: 5px 0 5px 30px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-ensuite-q::before {
  content: attr(data-rang); position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--rule); font: 600 10.5px/1 var(--sans); color: var(--ink-3);
}
.ep-ar-ensuite-plus { padding: 4px 0 0 30px; font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-fin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* Le mode guidé en conversation (10 octobre : « Mode guidé = je valide la
   conversation »). La mascotte pose la question dans une bulle ; tes
   réponses restent au-dessus, en bulles sombres ; un choix part d'un clic,
   un nombre s'écrit dans la barre du bas. La conversation se lit par le bas. */
.ep-ar-dock.is-conversation { gap: 12px; }
.ep-ar-dock.is-conversation .ep-ar-palier-barre { height: 4px; }
.ep-ar-fil { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.ep-ar-fil > :first-child { margin-top: auto; }
.ep-ar-msg { max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ep-ar-msg.is-elle { align-self: flex-start; background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 5px; }
.ep-ar-msg.is-passee { color: var(--ink-3); }
.ep-ar-msg.is-moi { align-self: flex-end; background: var(--ink); color: #FFFFFF; font-weight: 500; border-bottom-right-radius: 5px; }
.ep-ar-msg.is-courante { max-width: 100%; display: grid; gap: 6px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--rule); }
.ep-ar-dock.is-conversation .ep-ar-q { display: flex; flex-direction: column; gap: 10px; }
.ep-ar-dock.is-conversation .ep-ar-titre { white-space: normal; overflow: visible; text-overflow: clip; font: 600 16.5px/1.3 var(--display, var(--sans)); letter-spacing: -.01em; }
.ep-ar-dock.is-conversation .ep-ar-tag { padding: 2px 8px; font-size: 11px; }
.ep-ar-msg-aide { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.ep-ar-reponses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ep-ar-reponses.is-discret { justify-content: flex-start; }
.ep-ar-reponse {
  padding: 8px 14px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule);
  font: 600 13px/1.2 var(--sans); color: var(--ink); cursor: pointer;
  transition: box-shadow .2s var(--fluid), background-color .2s var(--fluid), transform .2s var(--fluid);
}
.ep-ar-reponse:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ep-ar-reponse:active { transform: scale(.97); }
.ep-ar-reponse.is-principale { background: var(--anis); box-shadow: none; color: #0E0F0C; }
.ep-ar-dock.is-conversation .ep-ar-choix-liste { display: flex; }
.ep-ar-dock.is-conversation .ep-ar-choix { display: inline-flex; gap: 0; padding: 8px 14px; border-radius: 999px; background: #FFFFFF; }
.ep-ar-dock.is-conversation .ep-ar-choix.is-on { box-shadow: inset 0 0 0 2px var(--anis); }
.ep-ar-dock.is-conversation .ep-ar-choix-nom { font-weight: 600; font-size: 13px; }
.ep-ar-reponses.is-discret .ep-ar-plus-tard { padding: 4px 2px; background: none; box-shadow: none; color: var(--ink-3); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.ep-ar-composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ep-ar-composer-ligne { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.ep-ar-dock.is-conversation .ep-ar-champ { flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 1px solid var(--rule); border-radius: 14px; background: #FFFFFF; }
.ep-ar-dock.is-conversation .ep-ar-nombre { flex: 1 1 auto; width: 0; min-width: 0; padding: 9px 0; font-size: 17px; }
.ep-ar-dock.is-conversation .ep-ar-texte { flex: 1 1 auto; min-width: 0; border: 1px solid var(--rule); border-radius: 14px; background: #FFFFFF; }
.ep-ar-envoyer { flex: none; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--anis); color: #0E0F0C; font: 600 13px/1.2 var(--sans); cursor: pointer; }
.ep-ar-envoyer:disabled { opacity: .45; cursor: default; }
/* Le récit d'une réponse (11 octobre : « un voiceover textuel de ce que tu
   fais ») : sous ta réponse, la mascotte dit chaque geste ; une ligne faite
   se coche ; « C'est enregistré » en anis ; le chemin pour le refaire seul ;
   « Je te ramène… » et « Rester ici ». */
.ep-ar-recit { align-self: flex-start; display: grid; gap: 4px; max-width: 92%; margin: 0; padding: 10px 12px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--surface-2); }
.ep-ar-pas { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ep-ar-pas-puce { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--rule); }
.ep-ar-pas:not(.is-fait):not(.is-astuce) .ep-ar-pas-puce { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ep-ar-pas.is-fait .ep-ar-pas-puce { background: var(--anis); box-shadow: none; }
.ep-ar-pas.is-fait .ep-ar-pas-puce::after { content: ''; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #0E0F0C; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.ep-ar-pas.is-ok { font-weight: 600; color: var(--ink); }
.ep-ar-pas.is-astuce { color: var(--ink-3); }
.ep-ar-pas.is-astuce .ep-ar-pas-puce { visibility: hidden; }
.ep-ar-pas.is-souci { color: #8A1C1C; }
.ep-ar-pas.is-retour { flex-wrap: wrap; }
.ep-ar-rester { margin-left: auto; padding: 3px 10px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); font: 600 12px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.ep-ar-rester:disabled { cursor: default; color: var(--ink-3); }
/* Le reçu, sous ta réponse : où elle est rangée. */
.ep-ar-recu { align-self: flex-end; display: flex; align-items: center; gap: 6px; max-width: 92%; margin: -4px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
.ep-ar-recu-coche { display: grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--anis); color: #0E0F0C; font: 700 9.5px/1 var(--sans); }
/* Demander à la mascotte (js/demo/epure/ia-chat.js, l'aperçu) : une barre au
   pied du panneau, à la Apple ; sa réponse arrive en direct, un curseur au
   bout tant qu'elle écrit. */
.ep-ar-chat { flex: none; display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--rule); }
.ep-ar-chat-barre { display: flex; align-items: flex-end; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .25s var(--fluid), background-color .25s var(--fluid); }
.ep-ar-chat-barre:focus-within { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--anis), 0 0 0 4px rgba(185, 245, 16, .22); }
.ep-ar-chat-texte { flex: 1 1 auto; min-width: 0; min-height: 30px; max-height: 96px; margin: 0; padding: 6px 0; border: 0; background: transparent; font: 500 13px/1.4 var(--sans); color: var(--ink); resize: none; outline: none; }
.ep-ar-chat-micro, .ep-ar-chat-envoyer { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: background-color .2s var(--fluid), opacity .2s var(--fluid); }
.ep-ar-chat-micro { background: transparent; color: var(--ink-2); }
.ep-ar-chat-micro:hover { background: rgba(14, 15, 12, .06); }
.ep-ar-chat-micro.is-on { background: #C2185B; color: #FFFFFF; }
.ep-ar-chat-envoyer { background: var(--ink); color: #FFFFFF; }
.ep-ar-chat-envoyer:disabled { opacity: .3; cursor: default; }
.ep-ar-chat-micro svg, .ep-ar-chat-envoyer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ep-ar-chat-pied { margin: 0; padding: 0 4px; font-size: 10.5px; line-height: 1.35; color: var(--ink-4); }

/* Tes dividendes, dans le poste du fondateur (fil 14971261, 14 octobre ; equipe.js) : « ce n'est pas une
   charge » en tête, les deux façons de dire ce qu'on distribue, puis ce que le plan verse, année par année. */
.ep-div { display: grid; gap: 10px; }
/* Comment tu te paies, en tête du poste du fondateur (14 octobre) : trois pastilles, une phrase. */
.ep-paiement { display: grid; gap: 10px; }
.ep-paiement-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-div-dit { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.ep-div-dit b { font-weight: 650; color: var(--ink); }
.ep-div-dit.is-tns { color: #7A4E00; }
.ep-div-dit.is-alerte { color: var(--loss, #B80F33); }
.ep-div-dit.is-csm { color: var(--ink-2); }
.ep-div-csm { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #FAF8F2); }
.ep-div-exo { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.ep-div-exo input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.ep-div-ans { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2, #FAF8F2); font-size: 13px; color: var(--ink); }
.ep-div-an { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ep-div-an small { font-size: 10.5px; font-weight: 650; letter-spacing: .04em; color: var(--ink-4); }
.ep-div-sep { color: var(--ink-5); }
.ep-div-comparer { justify-self: start; padding: 0; font-size: 12.5px; }

/* Une question à Fynomia, à part du guide (fil 9c581d7b, 14 octobre : « mettre une icône chat et ça ouvre une
   vraie chatbox » ; ia-chat.js). La bulle, dans l'en-tête du guide. La boîte, revue le même jour (« plus jolie,
   plus élégante, pas une fenêtre qui s'ouvre ; plus design et plus intégré ») en trois versions ; gardée le
   soir : Q1b · Spotlight (« tu peux garder ça ») ; Q1a et Q1c retirées. */
.ep-cb-ouvrir {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid), transform .3s cubic-bezier(.32, .72, 0, 1);
}
.ep-cb-ouvrir:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
.ep-cb-ouvrir:active { transform: scale(.92); }
.ep-cb-ouvrir.is-on { background: var(--anis, #B9F510); color: var(--ink); }
.ep-cb-ouvrir:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-cb-ouvrir svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ep-g8-ligne .ep-cb-ouvrir { width: 26px; height: 26px; }
.ep-g8-ligne .ep-cb-ouvrir { align-self: flex-start; }

/* La boîte : la matière, le fil, les répliques, la barre. */
.ep-cb {
  position: fixed; z-index: 96; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  font-family: var(--sans); transform-origin: 50% 100%;
  transition: opacity .34s cubic-bezier(.32, .72, 0, 1), transform .42s cubic-bezier(.32, .72, 0, 1), height .42s cubic-bezier(.32, .72, 0, 1);
}
.ep-cb.is-entree { opacity: 0; transform: translateY(10px) scale(.96); }
.ep-cb.is-sortie { opacity: 0; transform: translateY(6px) scale(.98); transition-duration: .2s; pointer-events: none; }
.ep-cb-fil { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ep-cb-echange { display: grid; gap: 4px; animation: ep-cb-bulle .32s cubic-bezier(.32, .72, 0, 1) both; }
.ep-cb-msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Ta question en gras, sa réponse en texte simple : une lecture, pas une messagerie. */
.ep-cb-msg.is-moi { font: 650 13.5px/1.4 var(--sans); letter-spacing: -.005em; color: var(--ink); }
.ep-cb-msg.is-elle { position: relative; padding-left: 12px; font: 400 13px/1.5 var(--sans); color: var(--ink-2); }
.ep-cb-msg.is-elle::before { content: ''; position: absolute; left: 0; top: .3em; bottom: .3em; width: 2px; border-radius: 2px; background: var(--anis-fort, #A6DC0E); }
.ep-cb-msg.is-accueil { padding-left: 0; color: var(--ink-3); }
.ep-cb-msg.is-accueil::before { display: none; }
.ep-cb-msg.is-direct::after { content: ''; display: inline-block; width: 6px; height: 13px; margin-left: 2px; vertical-align: -2px; border-radius: 1px; background: var(--ink-4); animation: ep-cb-curseur 1s steps(2, jump-none) infinite; }
.ep-cb-alle { margin: 0 0 0 12px; font-size: 11.5px; color: var(--ink-4); }
.ep-cb-vide { margin: 0; font-size: 12px; color: var(--ink-4); }
.ep-cb .ep-ar-chat { padding-top: 0; border-top: 0; }
.ep-cb .ep-ar-chat-barre { border-radius: 16px; background: rgba(14, 15, 12, .035); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .07); }
.ep-cb .ep-ar-chat-barre:focus-within { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .14), 0 0 0 4px rgba(185, 245, 16, .16); }
@keyframes ep-cb-bulle { from { opacity: 0; transform: translateY(4px); } }
@keyframes ep-cb-curseur { 50% { opacity: 0; } }

/* Q1b · Spotlight : la page se voile ; la barre flotte au milieu, la réponse se pose dessous. */
.ep-cb-voile { position: fixed; inset: 0; z-index: 95; background: rgba(244, 242, 235, .55); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); transition: opacity .3s var(--fluid); }
.ep-cb-voile.is-entree, .ep-cb-voile.is-sortie { opacity: 0; }
.ep-cb.is-spot {
  top: 16vh; left: 50%; width: min(620px, calc(100vw - 32px)); max-height: 66vh; padding: 10px 10px 8px; transform: translateX(-50%);
  border-radius: 22px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .08), 0 40px 90px -36px rgba(14, 15, 12, .55);
}
.ep-cb.is-spot.is-entree { opacity: 0; transform: translate(-50%, -8px) scale(.97); }
.ep-cb.is-spot.is-sortie { opacity: 0; transform: translate(-50%, -4px) scale(.98); }
.ep-cb-spot-tete { display: flex; align-items: flex-start; gap: 10px; }
.ep-cb-spot-mascotte { flex: none; display: grid; place-items: center; width: 40px; height: 44px; }
.ep-cb-spot-tete > .ep-ar-chat { flex: 1 1 auto; min-width: 0; }
.ep-cb.is-spot .ep-ar-chat-barre { min-height: 46px; background: transparent; box-shadow: none; }
.ep-cb.is-spot .ep-ar-chat-barre:focus-within { background: transparent; box-shadow: none; }
.ep-cb.is-spot .ep-ar-chat-texte { font-size: 17px; line-height: 1.4; }
.ep-cb.is-spot .ep-cb-fil { padding: 12px 14px 4px 60px; border-top: 1px solid rgba(14, 15, 12, .07); }
.ep-cb.is-spot .ep-cb-fil:empty { display: none; }
.ep-cb.is-spot .ep-cb-msg.is-moi { font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.ep-cb.is-spot .ep-cb-msg.is-elle { font-size: 13.5px; color: var(--ink); }
.ep-cb-pretes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ep-cb-pretes-t { flex-basis: 100%; margin: 0 0 2px; font: 600 10.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.ep-cb-prete { padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(14, 15, 12, .045); color: var(--ink-2); font: 500 13px/1.2 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-cb-prete:hover { background: var(--anis-lueur, #F4FCDC); color: var(--ink); }
.ep-cb-spot-pied { margin: 0; padding: 2px 14px 0 60px; font-size: 11px; color: var(--ink-4); }
.ep-cb-spot-pied kbd { padding: 1px 5px; border-radius: 5px; background: rgba(14, 15, 12, .06); font: 600 10.5px/1.4 var(--sans); }

@media (max-width: 600px) {
  .ep-cb.is-spot { top: 10vh; max-height: 76vh; }
  .ep-cb.is-spot .ep-cb-fil, .ep-cb-spot-pied { padding-left: 14px; }
  .ep-cb-spot-mascotte { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-cb, .ep-cb-echange, .ep-cb-voile { transition: none; animation: none; }
  .ep-cb-msg.is-direct::after { animation: none; }
}
.ep-ar-msg.is-chat { white-space: pre-wrap; }
.ep-ar-msg.is-chat.is-direct::after { content: ''; display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: var(--ink-3); }
.ep-ar-recu.is-gauche { align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .ep-ar-msg.is-chat.is-direct::after { animation: ep-ar-curseur 1s steps(2, start) infinite; }
  @keyframes ep-ar-curseur { to { visibility: hidden; } }
}
/* Une réplique qui arrive en douceur : la mascotte écrit (trois points),
   puis les mots se posent l'un après l'autre. */
.ep-ar-msg.is-courante { position: relative; }
.ep-ar-ecrit { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ep-ar-msg.is-flux .ep-ar-ecrit { position: absolute; left: 14px; top: 14px; display: inline-flex; gap: 4px; align-items: center; animation: ep-ar-ecrit-fin .18s ease 420ms forwards; }
  .ep-ar-ecrit i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: ep-ar-point .9s ease-in-out infinite; }
  .ep-ar-ecrit i:nth-child(2) { animation-delay: .15s; }
  .ep-ar-ecrit i:nth-child(3) { animation-delay: .3s; }
  @keyframes ep-ar-point { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
  @keyframes ep-ar-ecrit-fin { to { opacity: 0; visibility: hidden; } }
  .ep-ar-msg.is-flux .ep-ar-tag { opacity: 0; animation: ep-ar-mot .4s var(--fluid) 380ms forwards; }
  .ep-ar-msg.is-flux .ep-ar-mot { opacity: 0; filter: blur(3px); animation: ep-ar-mot .48s var(--fluid) forwards; animation-delay: calc(440ms + var(--i, 0) * 32ms); }
  .ep-ar-recit .ep-ar-mot { opacity: 0; filter: blur(2px); animation: ep-ar-mot .4s var(--fluid) forwards; animation-delay: calc(var(--i, 0) * 26ms); }
  @keyframes ep-ar-mot { to { opacity: 1; filter: blur(0); } }
  .ep-ar-pas { animation: ep-ar-replique .3s var(--fluid) both; }
  .ep-ar-recu.is-neuf { animation: ep-ar-replique .32s var(--fluid) both; animation-delay: 120ms; }
}
@media (prefers-reduced-motion: no-preference) {
  .ep-ar-msg.is-neuf { animation: ep-ar-replique .32s var(--fluid) both; }
  .ep-ar-msg.is-moi.is-neuf { animation-delay: 70ms; }
  .ep-ar-dock.is-conversation .ep-ar-q { animation: ep-ar-replique .36s var(--fluid) both; animation-delay: 140ms; }
  @keyframes ep-ar-replique { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Le mode guidé en missions (fil 98292c62, 11 octobre au soir : « plus en
   mode chat, plus didactique ; quand tu demandes de valider, je dois voir
   quelques éléments ; quand il faut compléter, incite à compléter ; quand
   c'est fait, une fin de mission comme dans un jeu vidéo, puis retour au
   chat »). La mascotte dit la mission en plusieurs bulles, qui arrivent
   l'une après l'autre : ce que c'est ; ce que le plan en contient, ou par
   quoi commencer ; les gestes de la page. Puis, le même soir : « partie par
   partie ; on ne sait pas quand on a fini ; les étapes vont trop vite ;
   l'expérience doit être plus lente » : cinq parties en tête, une bulle
   « où tu en es », et chaque bulle laisse le temps de lire la précédente.
   js/demo/epure/missions.js et arrivee.js (5). */
.ep-ar-paliers.is-parties { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 6px; }
.ep-ar-paliers.is-parties .ep-ar-palier-nom { font-size: 11px; }
.ep-ar-dock.is-missions .ep-ar-q:not(.is-nouvelle) { animation: none; }
.ep-ar-progres { box-shadow: inset 0 0 0 1px var(--rule); }
.ep-ar-progres.is-pose { background: var(--anis-lueur); box-shadow: inset 0 0 0 1px var(--anis-fort); }
.ep-ar-progres-t { font-weight: 600; color: var(--ink); }
.ep-ar-recap-liste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ep-ar-recap-liste li { position: relative; padding-left: 22px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ep-ar-recap-liste li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--anis); color: #0E0F0C; font: 700 9px/1 var(--sans); }
.ep-ar-reponse:disabled { cursor: default; opacity: .5; }
.ep-ar-reponse:disabled:hover { box-shadow: inset 0 0 0 1px var(--rule); }
.ep-ar-reponse.is-principale:disabled { background: var(--enfonce, #E7E4DA); color: var(--ink-3); }
.ep-ar-mission-no { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font: 600 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ep-ar-mission-no::before { content: ''; flex: none; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle, var(--anis-fort) 0 2px, transparent 2.5px 3.2px, var(--ink-3) 3.7px 5px, transparent 5.5px); }
.ep-ar-msg.ep-ar-suite { max-width: 100%; display: grid; gap: 6px; }
.ep-ar-msg.ep-ar-suite p { margin: 0; }
.ep-ar-elements-intro { font-weight: 600; color: var(--ink); }
.ep-ar-elements-liste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ep-ar-elements-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); }
.ep-ar-el-nom { min-width: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-el-valeur { justify-self: end; max-width: 15em; font: 600 12.5px/1.35 var(--sans); color: var(--ink); text-align: right; }
.ep-ar-elements-reste { font-size: 12px; color: var(--ink-3); }
.ep-ar-elements-total { justify-self: end; padding: 3px 10px; border-radius: 999px; background: var(--anis-lueur); font: 600 12px/1.3 var(--sans); color: var(--ink); }
.ep-ar-consigne { color: var(--ink-2); }
.ep-ar-incite p { color: var(--ink); font-weight: 500; }
.ep-ar-gestes-t { font-weight: 600; color: var(--ink); }
.ep-ar-gestes-liste { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: ep-ar-geste; }
.ep-ar-gestes-liste li { position: relative; padding-left: 27px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); counter-increment: ep-ar-geste; }
.ep-ar-gestes-liste li::before { content: counter(ep-ar-geste); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font: 600 10.5px/1 var(--sans); }
.ep-ar-veille { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ep-ar-veille-point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--anis-fort); }
.ep-ar-ou p { color: var(--ink-2); }
/* Une mission accomplie reste dans la conversation, comme un trophée. */
.ep-ar-trophee { align-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 2px 0; padding: 6px 13px 6px 7px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 12px; line-height: 1.3; }
.ep-ar-trophee-coche { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--anis); color: #0E0F0C; font: 700 10px/1 var(--sans); }
.ep-ar-trophee-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-trophee b { font-weight: 600; }
.ep-ar-trophee.is-partie { background: var(--anis); color: #0E0F0C; }
.ep-ar-trophee.is-partie .ep-ar-trophee-coche { background: var(--ink); color: #FFFFFF; }
/* « Mission accomplie » : par-dessus la conversation, un sceau qui se trace,
   la ligne posée, ce que le dossier y gagne ; puis retour au chat. */
.ep-ar-dock.is-fin { overflow: hidden; }
.ep-ar-mf { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; border-radius: inherit; background: rgba(14, 15, 12, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #FFFFFF; text-align: center; }
.ep-ar-mf-carte { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; }
.ep-ar-mf-sceau { display: block; width: 76px; height: 76px; margin-bottom: 6px; }
.ep-ar-mf.is-partie .ep-ar-mf-sceau { width: 92px; height: 92px; }
.ep-ar-mf-sceau svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ep-ar-mf-anneau { fill: rgba(185, 245, 16, .12); stroke: var(--anis); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 0; transform: rotate(-90deg); transform-box: fill-box; transform-origin: 50% 50%; }
.ep-ar-mf-coche { fill: none; stroke: var(--anis); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.ep-ar-mf-kicker { margin: 0; font: 700 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--anis); }
.ep-ar-mf-titre { margin: 0; font: 700 21px/1.25 var(--display, var(--sans)); letter-spacing: -.01em; color: #FFFFFF; overflow-wrap: anywhere; }
.ep-ar-mf-ok { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .74); }
.ep-ar-mf-gains { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.ep-ar-mf-gain { padding: 5px 11px; border-radius: 999px; background: rgba(185, 245, 16, .14); box-shadow: inset 0 0 0 1px rgba(185, 245, 16, .36); color: #E9F9B5; font: 600 12px/1.25 var(--sans); }
.ep-ar-mf-suite { margin-top: 10px; padding: 9px 18px; border: 0; border-radius: 999px; background: #FFFFFF; color: #0E0F0C; font: 600 13px/1.2 var(--sans); cursor: pointer; }
.ep-ar-mf-suite:hover { background: var(--anis); }
.ep-ar-mf-suite:focus-visible { outline: 2px solid var(--anis); outline-offset: 2px; }
.ep-ar-mf-eclats { position: absolute; left: 50%; top: 38px; width: 0; height: 0; pointer-events: none; }
.ep-ar-mf.is-partie .ep-ar-mf-eclats { top: 46px; }
.ep-ar-mf-eclats i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 2px; background: var(--anis); opacity: 0; }
.ep-ar-mf-eclats i:nth-child(3n + 2) { background: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) {
  /* Une bulle après l'autre, le temps de lire la précédente ; les réponses après la dernière. */
  .ep-ar-msg.ep-ar-suite.is-flux, .ep-ar-dock.is-missions .ep-ar-reponses.is-flux { animation: ep-ar-replique .45s var(--fluid) both; animation-delay: calc(var(--base, 1700ms) + var(--k, 0) * 1500ms); }
  .ep-ar-veille-point { animation: ep-ar-pouls 1.6s ease-out infinite; }
  @keyframes ep-ar-pouls { 0% { box-shadow: 0 0 0 0 rgba(166, 220, 14, .55); } 100% { box-shadow: 0 0 0 9px rgba(166, 220, 14, 0); } }
  .ep-ar-mf { animation: ep-ar-mf-voile .2s ease both; }
  .ep-ar-mf-carte { animation: ep-ar-mf-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
  .ep-ar-mf-anneau { stroke-dashoffset: 176; animation: ep-ar-mf-trace .55s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
  .ep-ar-mf-coche { stroke-dashoffset: 40; animation: ep-ar-mf-trace .32s cubic-bezier(.65, 0, .35, 1) .55s forwards; }
  .ep-ar-mf-kicker { animation: ep-ar-mf-kicker .6s var(--fluid) .35s both; }
  .ep-ar-mf-titre, .ep-ar-mf-ok, .ep-ar-mf-gains, .ep-ar-mf-suite { animation: ep-ar-replique .4s var(--fluid) both; }
  .ep-ar-mf-titre { animation-delay: .5s; }
  .ep-ar-mf-ok { animation-delay: .62s; }
  .ep-ar-mf-gains { animation-delay: .74s; }
  .ep-ar-mf-suite { animation-delay: .9s; }
  .ep-ar-mf-eclats i { animation: ep-ar-mf-eclat .9s cubic-bezier(.16, .84, .3, 1) calc(600ms + var(--d, 0) * 50ms) forwards; }
  .ep-ar-mf.is-sortie { animation: ep-ar-mf-sort .24s ease forwards; }
  .ep-ar-trophee.is-neuf { animation: ep-ar-replique .4s cubic-bezier(.34, 1.4, .64, 1) both; }
  @keyframes ep-ar-mf-voile { from { opacity: 0; } }
  @keyframes ep-ar-mf-pop { from { opacity: 0; transform: scale(.82); } }
  @keyframes ep-ar-mf-trace { to { stroke-dashoffset: 0; } }
  @keyframes ep-ar-mf-kicker { from { opacity: 0; letter-spacing: .5em; } }
  @keyframes ep-ar-mf-eclat { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-64px) scale(1); } }
  @keyframes ep-ar-mf-sort { to { opacity: 0; transform: scale(.98); } }
}

.ep-ar-fin h3 { margin: 0; font: 600 18px/1.25 var(--sans); }
.ep-ar-fin p { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 1100px) {
  .ep-ar-dock { top: auto; left: 12px; width: auto; height: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-ar-accueil-fond, .ep-ar-accueil, .ep-ar-dock, .ep-ar-q, .ep-ar-mascotte, .ep-ar-accueil-mascotte { animation: none !important; }
  .ep-ar-libre, .ep-ar-plus-tard { transition: none; }
  .ep-ar-mascotte, .ep-ar-palier-barre { transition: none; }
}

/* ── La mascotte vivante (js/demo/epure/mascotte-vivante.js) ──────────────────
   7 octobre, deuxième passe : « je veux animer la mascotte telle qu'elle
   existe ; le tourbillon EST son corps ». L'image d'origine, détourée et
   passée en graphite, est déformée par un maillage (WebGL) : la boîte .mv
   garde la taille voulue, la toile déborde de 20 % de chaque côté pour que
   le ruban puisse se déployer sans être coupé. Sans WebGL : l'image fixe. */
.mv { position: relative; display: inline-block; flex: none; width: var(--mv-t, 60px); height: var(--mv-t, 60px); pointer-events: none; vertical-align: middle; }
.mv-toile { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; }
.mv-repos { position: absolute; left: -2.2%; top: -2.2%; width: 104.4%; height: 104.4%; display: none; }
.mv.is-statique .mv-toile { display: none; }
.mv.is-statique .mv-repos { display: block; }
/* La blanche (7 octobre au soir) : une ombre un peu plus marquée, pour qu'elle se détache du papier ivoire. */
html[data-mascotte="blanche"] .ep-ar-mascotte .mv { filter: drop-shadow(0 0 1px rgba(14, 15, 12, .28)) drop-shadow(0 8px 12px rgba(14, 15, 12, .22)); }
html[data-mascotte="blanche"] :is(.ep-ar-dock-mascotte, .ep-ar-bulle, .ep-ar-accueil-tete) .mv { filter: drop-shadow(0 0 1px rgba(14, 15, 12, .3)); }

/* Les éclats des gestes vifs : quelques éclats d'anis et d'encre (bravo), deux ondes à la vitre (toque). */
.mv-fx { position: absolute; inset: 0; pointer-events: none; }
.mv-fx i { position: absolute; left: 50%; top: 46%; opacity: 0; }
.mv-fx.is-eclats i {
  width: 5px; height: 5px; border-radius: 2px; background: var(--anis, #B9F510);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4);
  animation: mv-eclat .95s cubic-bezier(.16, .84, .3, 1) .3s forwards;
}
.mv-fx.is-eclats i:nth-child(3n) { width: 4px; height: 4px; border-radius: 50%; background: var(--ink, #0E0F0C); }
.mv-fx.is-eclats i:nth-child(4n + 1) { width: 3px; height: 8px; }
@keyframes mv-eclat {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--mv-t, 60px) * -.9 * var(--d, 1))) rotate(150deg) scale(1); }
}
.mv-fx.is-ondes i {
  width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--anis, #B9F510);
  transform: translate(-50%, -50%) scale(.7);
  animation: mv-onde .6s cubic-bezier(.2, .7, .3, 1) forwards; animation-delay: calc(.47s + var(--i) * .23s);
}
@keyframes mv-onde { 0% { opacity: .95; transform: translate(-50%, -50%) scale(.75); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); } }

/* ── Le compagnon (js/demo/epure/compagnon.js) ───────────────────────────────
   7 octobre au soir : « que le petit bonhomme soit partie prenante de la
   validation des petites erreurs du business ». Depuis le fil d665430d
   (11 octobre : « plus clean et léger, en mode notification à checker dans
   le mode guidé »), une notification d'une ligne, à gauche de la mascotte du
   coin, qui s'efface seule ; un point de couleur dit le ton (framboise : sans
   doute une erreur ; ambre : étonnant ; anis : réglé). Le détail se vérifie
   sous la cloche du panneau du mode guidé. */
.ep-cp-toast {
  position: fixed; right: 100px; bottom: 34px; z-index: 96; display: flex; align-items: center; gap: 8px;
  max-width: min(420px, calc(100vw - 116px)); min-height: 36px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--ink, #0E0F0C); color: #F2F0E8; box-shadow: 0 10px 26px -14px rgba(14, 15, 12, .55); font: 500 13px/1.25 var(--sans);
  cursor: pointer; transform-origin: 100% 50%; animation: ep-cp-entre .32s cubic-bezier(.34, 1.56, .64, 1) both;
}
.ep-cp-toast.is-sortie { animation: ep-cp-sort .2s var(--fluid) both; }
@keyframes ep-cp-entre { 0% { opacity: 0; transform: translateX(10px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes ep-cp-sort { to { opacity: 0; transform: translateX(6px) scale(.97); } }
.ep-cp-point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4, #8C8F86); }
.ep-cp-toast.is-alerte .ep-cp-point { background: var(--loss-fill, #E0153F); }
.ep-cp-toast:is(.is-attention, .is-relu) .ep-cp-point { background: #F2B33D; }
.ep-cp-toast:is(.is-regle, .is-note) .ep-cp-point { background: var(--anis, #B9F510); }
.ep-cp-toast .ep-cp-tag { flex: none; font-weight: 650; color: #fff; white-space: nowrap; }
.ep-cp-toast .ep-cp-tag::after { content: ' :'; }
.ep-cp-toast .ep-cp-sujet { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #D9D7CE; }
@media (max-width: 760px) { .ep-cp-toast { right: 96px; bottom: 30px; max-width: calc(100vw - 112px); } .ep-cp-toast .ep-cp-tag { display: none; } }

/* La cloche du panneau du mode guidé : combien de chiffres à vérifier ; dépliée, chacun, son écart, deux gestes. */
/* Avec la cloche, l'en-tête se resserre : le nom cède sa place avant le compte. */
.ep-ar-dock-tete:has(.ep-ar-notifs-bouton) { gap: 8px; }
.ep-ar-dock-tete:has(.ep-ar-notifs-bouton) .ep-ar-dock-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ep-ar-dock-tete:has(.ep-ar-notifs-bouton) .ep-ar-dock-compte { flex: none; }
.ep-ar-notifs-bouton {
  flex: none; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px 0 6px; border: 0; border-radius: 999px;
  background: #FFF3D6; color: #7A4E00; font: 650 12px/1 var(--sans); cursor: pointer; transition: background .15s var(--fluid);
}
.ep-ar-notifs-bouton.is-alerte { background: #FDE4EA; color: var(--loss, #B80F33); }
.ep-ar-notifs-bouton:hover, .ep-ar-notifs-bouton.is-on { filter: saturate(1.3) brightness(.97); }
.ep-ar-notifs-bouton:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-ar-notifs-cloche { display: grid; width: 16px; height: 16px; }
.ep-ar-notifs-cloche svg { width: 16px; height: 16px; }
.ep-ar-notifs { display: grid; gap: 6px; margin: 0; padding: 10px; border-radius: 16px; background: var(--surface-2); animation: ep-ar-notifs-entre .24s var(--fluid) both; }
@keyframes ep-ar-notifs-entre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ep-ar-notifs-tete { margin: 0 2px 2px; font-size: 12px; color: var(--ink-3); }
.ep-ar-notifs-tete b { font-weight: 650; color: var(--ink); }
.ep-ar-notif { position: relative; display: grid; gap: 3px; padding: 9px 12px 9px 16px; border-radius: 12px; background: var(--surface, #fff); }
.ep-ar-notif::before { content: ''; position: absolute; left: 6px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #F2B33D; }
.ep-ar-notif.is-alerte::before { background: var(--loss-fill, #E0153F); }
.ep-ar-notif-sujet { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 650 13px/1.3 var(--sans); color: var(--ink); }
.ep-ar-notif-texte { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-ar-notif-actions { display: flex; gap: 6px; margin-top: 3px; }
.ep-ar-notif-actions button { min-height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font: 550 12px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.ep-ar-notif-actions .ep-ar-notif-montre { background: var(--ink); color: #fff; }
.ep-ar-notif-actions button:hover { filter: brightness(.94); }
/* La pastille : combien de chiffres restent à vérifier, en haut à gauche de la mascotte du coin. */
.ep-cp-pastille {
  position: fixed; right: 70px; bottom: 74px; z-index: 96; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border: 2px solid var(--paper, #FBFAF6); border-radius: 999px; background: var(--warn, #8A5A00); color: #fff; font: 700 11.5px/1 var(--sans); cursor: pointer;
  animation: ep-cp-pastille .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.ep-cp-pastille.is-alerte { background: var(--loss-fill, #E0153F); }
.ep-cp-pastille:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@keyframes ep-cp-pastille { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mv-fx { display: none; }
  .ep-cp-toast, .ep-cp-toast.is-sortie, .ep-cp-pastille, .ep-ar-notifs { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LE BANDEAU REPLIÉ VIT (ruban-vivant.js ; 6 octobre au soir : « la carte
   repliée doit afficher en dynamique les updates de chiffres »). Le chiffre
   qui change se compte jusqu'à sa valeur, s'éclaire un instant ; l'écart
   monte au-dessus de lui, puis s'efface. Rien ne bouge la mise en page.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu .sx-ribbon-item.ep-rv-item { position: relative; }
html.ep-apercu .sx-ribbon-item.is-change .sx-ribbon-val { animation: ep-rv-lueur 1.6s var(--fluid) both; border-radius: 6px; }
@keyframes ep-rv-lueur { 0% { background: transparent; } 12% { background: var(--anis-lueur); box-shadow: 0 0 0 4px var(--anis-lueur); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
.ep-rv-ecart {
  position: absolute; right: 2px; top: -8px; z-index: 2; padding: 2px 8px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 600 11.5px/1.35 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  animation: ep-rv-monte 2.6s var(--fluid) both;
}
.ep-rv-ecart.is-dessus { top: -16px; right: 2px; left: auto; }
.ep-rv-ecart.is-bon { background: var(--anis); color: var(--accent-ink, #0E0F0C); }
.ep-rv-ecart.is-mauvais { background: var(--loss, #B80F33); color: #fff; }
@keyframes ep-rv-monte { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 10% { opacity: 1; transform: translateY(0) scale(1); } 80% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  html.ep-apercu .sx-ribbon-item.is-change .sx-ribbon-val { animation: none; background: var(--anis-lueur); }
  .ep-rv-ecart { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LES BARRES — plus légères, plus vives (retours du 6 octobre, Équipe :
   « couleur des barres un peu trop old school, vieillot ; une analyse
   froide, mais épurée, plus dynamique et plus légère, juste les couleurs »).
   Les séries prennent la palette de l'aperçu (index.js, PALETTE_APERCU) ;
   les barres s'arrondissent ; les petites barres des cartes du ruban
   passent en brume, l'année lue en ardoise.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu .chart .ch-bar { rx: 5px; }
html.ep-apercu .sx-bar > i { background: #C9D3DF; opacity: 1; border-radius: 5px; }
html.ep-apercu .sx-bar:hover > i { background: #9DB3CF; }
html.ep-apercu .sx-bar.is-on > i { background: #2E3B4E; }
html.ep-apercu .sx-bars.is-zoom .sx-bar > i { background: #2E3B4E; opacity: .85; }

/* ═══════════════════════════════════════════════════════════════════════════
   LES CHAMPS — soulignés, partout (choix du 6 octobre au soir : « pour
   l'ensemble des champs, garde le souligné 2 ; partout, dans toutes les
   barres latérales ; il faut une uniformité »). Sans fond, un trait dessous
   qui fonce au survol ; le champ qu'on remplit reste blanc, cerné d'anis.
   Toutes les enveloppes de champ de l'aperçu ont le même dessin : un champ
   de formulaire, une case de montant, un avantage d'Équipe, une source de
   financement, une unité, un mois. Un champ posé dans une case l'est par
   elle : un seul trait, la ligne garde sa hauteur.
   ═══════════════════════════════════════════════════════════════════════════ */
html.ep-apercu { --champ-trait: #C9C5B8; --champ-survol: rgba(14, 15, 12, .03); }
html.ep-apercu :is(.control, .cost-box, .perk-box, .source-money, .cost-mode select, .cost-extra > input, .cost-mois):not(:focus-within):not(:focus) {
  border-style: solid; border-width: 1px; border-color: transparent; border-bottom-color: var(--champ-trait);
  border-radius: 10px 10px 2px 2px; background: transparent;
}
html.ep-apercu :is(.control, .cost-box, .perk-box, .source-money, .cost-mode select, .cost-extra > input, .cost-mois):not(:focus-within):not(:focus):hover { border-bottom-color: var(--ink-3); background: var(--champ-survol); }
html.ep-apercu :is(.perk-box:focus-within, .cost-mois:focus) { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); border-radius: 10px; }
@media (max-width: 899px) {
  .ep-apercu-pied { left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); bottom: 62px; }
  .ep-style-choix, .ep-style-choix.is-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-style-choix.is-compact { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
}

/* ── Synthèse détaillée en surfaces (js/demo/epure/synthese-surfaces.js) ─────
   7 octobre : « garde uniquement la vue actuelle et propose-moi exactement
   le même contenu, mais mieux présenté : plus affordant, plus Surface
   Dynamics ». Le rendu est celui d'aujourd'hui (renderStudio), au mot près ;
   seule sa forme change. Chaque partie devient une surface posée sur le
   papier ; ses chiffres, des tuiles ; ses dessins et ses tableaux, des
   panneaux en creux ; ce qui s'ouvre ou mène ailleurs, des boutons. */
html.ep-apercu .sxs { --sxs-r: 26px; --sxs-pad: clamp(18px, 2.2vw, 30px); --sxs-tuile: var(--surface-2); }
html.ep-apercu .sxs .sy.is-edito { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
html.ep-apercu .sxs .sy-act { margin: 0; padding: var(--sxs-pad); border: 0; border-radius: var(--sxs-r); background: var(--surface); box-shadow: var(--souleve); }
html.ep-apercu .sxs .sy-act + .sy-act { margin-top: 0; }
/* La vue d'aujourd'hui pose ses parties à plat, sous un filet : ici, chacune a sa surface. */
html.ep-apercu .pitch.is-detail .sxs .sy.is-edito .sy-chapitre { padding: var(--sxs-pad); border: 0; border-radius: var(--sxs-r); background: var(--surface); box-shadow: var(--souleve); }
/* L'en-tête d'une partie : son numéro dans une pastille, son nom, puis le titre qui répond. */
html.ep-apercu .sxs .sy-act-no { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; }
html.ep-apercu .sxs .sy-act-no > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--anis); color: var(--ink); font: 700 12px/1 var(--sans); }
html.ep-apercu .sxs .sy-act-no > span { font: 600 13px/1.2 var(--sans); letter-spacing: .01em; color: var(--ink-3); white-space: nowrap; }
html.ep-apercu .sxs .sy-act-title { margin: 0; font: 700 clamp(22px, 2.2vw, 28px)/1.15 var(--display); letter-spacing: -.02em; }
html.ep-apercu .sxs .sy-ed-dit, html.ep-apercu .sxs .sy-act-say { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* L'ouverture : le verdict en grand, ses trois chiffres en tuiles, le point bas en bandeau. */
html.ep-apercu .sxs .sy-intro { padding-block: calc(var(--sxs-pad) + 6px); }
html.ep-apercu .sxs .sy-intro .sy-act-no > span { color: var(--ink-4); }
html.ep-apercu .sxs .sy-intro .sy-act-title { font-size: clamp(26px, 2.8vw, 36px); }
html.ep-apercu .sxs .sy-intro-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; border: 0; }
html.ep-apercu .sxs .sy-intro-fig { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--sxs-tuile); }
html.ep-apercu .sxs .sy-intro-fig b { font: 700 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
html.ep-apercu .sxs .sy-intro-fig span { font-size: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .sxs .sy-intro-fig.is-bad { background: var(--loss-wash, #FCE1E8); }
html.ep-apercu .sxs .sy-intro-suite { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #FFFFFF; font: 600 14.5px/1.4 var(--sans); }
html.ep-apercu .sxs .sy-intro-suite::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--anis); box-shadow: 0 0 0 4px rgba(185, 245, 16, .22); }

/* Les six chiffres : trois tuiles par rangée ; chacune s'ouvre, « Comprendre » est un bouton. */
/* La vue d'aujourd'hui pose les six chiffres à plat, sous un filet (app.css) : ici, ils ont leur surface, et ses marges. */
html.ep-apercu .sxs .sy.is-edito .sy-figs.is-compact { padding: var(--sxs-pad); border-top: 0; }
html.ep-apercu .sxs .sy-figs .sy-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0; }
html.ep-apercu .sxs .sy-years { padding: 4px; border-radius: 999px; background: var(--field-bg); box-shadow: none; }
html.ep-apercu .sxs .sy-year { min-width: 40px; min-height: 30px; border-radius: 999px; font: 600 12.5px/1 var(--sans); transition: background .2s var(--fluid), color .2s var(--fluid); }
html.ep-apercu .sxs .sy-year.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--repos), 0 2px 6px -2px rgba(14, 15, 12, .18); }
html.ep-apercu .sxs .sy-figs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; border: 0; }
html.ep-apercu .sxs .sy-fig { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 20px; background: var(--sxs-tuile); transition: background .2s var(--fluid), box-shadow .25s var(--fluid), transform .25s var(--fluid); }
html.ep-apercu .sxs .sy-fig:hover { background: var(--surface); box-shadow: var(--souleve); transform: translateY(-2px); }
html.ep-apercu .sxs .sy-fig-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; padding: 16px 18px 14px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 20px; }
html.ep-apercu .sxs .sy-fig-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html.ep-apercu .sxs .sy-fig-label { display: flex; align-items: center; gap: 8px; font: 600 13px/1.3 var(--sans); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .sxs .sy-fig-label::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-5, #B7B9AE); }
html.ep-apercu .sxs .sy-fig.is-pos .sy-fig-label::before { background: var(--anis-fort); }
html.ep-apercu .sxs .sy-fig.is-neg .sy-fig-label::before { background: var(--loss, #B80F33); }
html.ep-apercu .sxs .sy-fig.is-warn .sy-fig-label::before { background: #E0A100; }
html.ep-apercu .sxs .sy-fig-val { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.02em; }
html.ep-apercu .sxs .sy-fig-note { font-size: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .sxs .sy-fig-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--repos); font: 600 12.5px/1 var(--sans); color: var(--ink); transition: background .2s var(--fluid); }
html.ep-apercu .sxs .sy-fig:hover .sy-fig-more { background: var(--anis); }
html.ep-apercu .sxs .sy-fig .sy-fig-body { padding: 0 18px 16px; }
html.ep-apercu .sxs .sy-fig .sy-link { display: inline-flex; margin: 6px 6px 0 0; }

/* Le sommaire : une barre de pastilles qui reste en haut, la partie lue allumée. */
html.ep-apercu .sxs .sy-sommaire { margin: 0; padding: 8px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: var(--souleve); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.ep-apercu .sxs .sy-sommaire ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; }
html.ep-apercu .sxs .sy-sommaire ol::-webkit-scrollbar { display: none; }
html.ep-apercu .sxs .sy-sommaire button { flex: none; min-height: 34px; padding: 4px 12px 4px 4px; background: transparent; white-space: nowrap; transition: background .2s var(--fluid), color .2s var(--fluid); }
html.ep-apercu .sxs .sy-sommaire button:hover { background: var(--field-bg); color: var(--ink); }
html.ep-apercu .sxs .sy-sommaire button b { background: var(--field-bg); color: var(--ink-3); transition: background .2s var(--fluid), color .2s var(--fluid); }
html.ep-apercu .sxs .sy-sommaire button.is-on { background: var(--ink); color: #FFFFFF; }
html.ep-apercu .sxs .sy-sommaire button.is-on b { background: var(--anis); color: var(--ink); }

/* Une partie : ses trois chiffres en tuiles, le dessin et les tableaux dans des panneaux en creux. */
html.ep-apercu .sxs .sy-ed-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; border: 0; }
html.ep-apercu .sxs .sy-ed-fig { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--sxs-tuile); }
html.ep-apercu .sxs .sy-ed-fig-l { font: 600 12.5px/1.3 var(--sans); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep-apercu .sxs .sy-ed-fig-v { font: 700 22px/1.15 var(--display); letter-spacing: -.015em; white-space: nowrap; }
html.ep-apercu .sxs .sy-ed-fig-n { font-size: 12.5px; color: var(--ink-4); }
html.ep-apercu .sxs .sy-ed-dessin { max-width: none; margin: 14px 0 0; padding: 18px 18px 12px; border-radius: 20px; background: var(--sxs-tuile); }
html.ep-apercu .sxs .as-table-wrap, html.ep-apercu .sxs .sy-hyp .table-wrap { margin: 12px 0 0; padding: 6px 14px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); overflow-x: auto; }
html.ep-apercu .sxs .as-table thead th, html.ep-apercu .sxs .sy-hyp-table thead th { font: 600 11.5px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--rule); }
html.ep-apercu .sxs .as-table tbody tr:nth-child(even) td, html.ep-apercu .sxs .sy-hyp-table tbody tr:nth-child(even) td { background: var(--surface-2); }
html.ep-apercu .sxs .as-table td, html.ep-apercu .sxs .sy-hyp-table td { border-bottom: 0; }
/* Ce qui s'ouvre, et ce qui mène ailleurs : des boutons. */
html.ep-apercu .sxs .sy-why { margin: 14px 0 0; padding: 0; border: 0; }
html.ep-apercu .sxs .sy-why > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--field-bg); font: 600 13px/1 var(--sans); color: var(--ink); transition: background .2s var(--fluid); }
html.ep-apercu .sxs .sy-why > summary:hover { background: var(--field-bg-hover); }
html.ep-apercu .sxs .sy-why[open] > summary { background: var(--anis); }
html.ep-apercu .sxs .sy-why > p { margin: 10px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--accent-wash); font-size: 14.5px; line-height: 1.55; }
html.ep-apercu .sxs .sy-link.sy-ed-lien, html.ep-apercu .sxs .sy-fig .sy-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 12px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: 600 13px/1 var(--sans); text-decoration: none; transition: transform .2s var(--fluid), box-shadow .2s var(--fluid); }
html.ep-apercu .sxs .sy-fig .sy-link { min-height: 32px; margin-top: 6px; padding: 0 12px; background: var(--surface); color: var(--ink); box-shadow: var(--repos); font-size: 12.5px; }
html.ep-apercu .sxs .sy-link.sy-ed-lien:hover, html.ep-apercu .sxs .sy-fig .sy-link:hover { transform: translateY(-1px); box-shadow: var(--souleve); }
html.ep-apercu .sxs .sy-link:focus-visible, html.ep-apercu .sxs .sy-why > summary:focus-visible, html.ep-apercu .sxs .sy-sommaire button:focus-visible, html.ep-apercu .sxs .sy-year:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Hypothèses, pièges, analyse, pied. */
html.ep-apercu .sxs .sy-hyp-etat { padding: 3px 9px; font-size: 11.5px; }
html.ep-apercu .sxs .sy-ed-risques { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
html.ep-apercu .sxs .sy-ed-sous { padding: 18px; border-radius: 20px; background: var(--sxs-tuile); }
html.ep-apercu .sxs .sy-ed-sous h3 { margin: 0 0 6px; font: 700 17px/1.25 var(--display); }
html.ep-apercu .sxs .sy-ed-pieges { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
html.ep-apercu .sxs .sy-ed-pieges li { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--repos); font-size: 14px; line-height: 1.45; }
html.ep-apercu .sxs .sy-deep .sy-deep-head { border-radius: 20px; background: var(--sxs-tuile); }
html.ep-apercu .sxs .sy-foot { margin: 0; padding: var(--sxs-pad); border: 0; border-radius: var(--sxs-r); background: var(--ink); color: #FFFFFF; }
html.ep-apercu .sxs .sy-foot p { color: rgba(255, 255, 255, .72); }
html.ep-apercu .sxs .sy-foot .sy-btn.is-line { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 899px) {
  html.ep-apercu .sxs .sy-figs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.ep-apercu .sxs .sy-intro-figs { grid-template-columns: minmax(0, 1fr); }
  html.ep-apercu .sxs .sy-sommaire { border-radius: 22px; }
}
@media (max-width: 520px) {
  html.ep-apercu .sxs .sy-figs-grid { grid-template-columns: minmax(0, 1fr); }
  html.ep-apercu .sxs .sy-figs .sy-sec-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html.ep-apercu .sxs .sy-fig, html.ep-apercu .sxs .sy-link { transition: none; }
  html.ep-apercu .sxs .sy-fig:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SYNTHÈSE DÉTAILLÉE — la Mosaïque (synthese-dispositions.js). 7 octobre au
   soir : « garde Surfaces, c'est cette dynamique que je veux ; ne supprime
   rien ». 14 octobre au soir : « je veux garder mosaïque, mais beaucoup plus
   jolie ; au clic, un overlay sur fond big blur ; des graphiques moins gros,
   moins de défilement ; plus de largeur d'écran ». Calques, Volets et H1 à H4
   sont retirés. Le contenu ne change pas : la Mosaïque le range.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Les tableaux, dans toutes les surfaces : des chiffres alignés, la ligne
   survolée qui s'éclaire, la première colonne qui reste quand on fait défiler. */
html.ep-apercu .sxs :is(.as-table, .sy-hyp-table) td, html.ep-apercu .sxs :is(.as-table, .sy-hyp-table) th { font-variant-numeric: tabular-nums; }
html.ep-apercu .sxs :is(.as-table, .sy-hyp-table) tbody tr { transition: background .15s var(--fluid); }
html.ep-apercu .sxs :is(.as-table, .sy-hyp-table) tbody tr:hover td { background: var(--anis-lueur); }
html.ep-apercu .sxs .as-table :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
html.ep-apercu .sxs .as-table tbody tr:nth-child(even) td:first-child { background: var(--surface-2); }

/* La grille : des cartes de même hauteur sur une rangée, la première en grand. */
html.ep-apercu .sxv .sxv-mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
html.ep-apercu .sxv .sxv-mosaique > .sxv-carte:first-child, html.ep-apercu .sxv .sxv-place.is-large { grid-column: span 2; }

/* Une carte fermée : sa tête, ses chiffres en liste, l'aperçu de son graphique au pied. */
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) {
  position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 20px 22px 18px;
  border-radius: 26px; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(14, 15, 12, .05), 0 1px 2px rgba(14, 15, 12, .04), 0 14px 30px -24px rgba(14, 15, 12, .35);
  transition: transform .45s var(--ressort, var(--fluid)), box-shadow .45s var(--ressort, var(--fluid));
}
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre):hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 30px 54px -32px rgba(14, 15, 12, .45); }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre):active { transform: translateY(-1px) scale(.992); }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) > :is([data-couche="dessin"], .sxv-f-tableaux, [data-couche="pourquoi"], [data-couche="lien"], .sy-ed-dit, .sy-act-say) { display: none; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) > :is(.sy-act-head, .sy-act-no, .sy-sec-head) { padding-right: 42px; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-act-no { margin-bottom: 8px; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-act-no > b { width: 24px; height: 24px; font-size: 11px; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-act-title { font-size: 18px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.ep-apercu .sxv .sxv-mosaique > .sxv-carte:first-child:not(.is-fenetre) .sy-act-title { font-size: 23px; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-sec-head :is(p, .sy-act-say) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Les chiffres, en liste : le nom à gauche, la valeur à droite ; rien de coupé. */
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-ed-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 14px 0 0; padding: 0; }
html.ep-apercu .sxv .sxv-mosaique > .sxv-carte:first-child:not(.is-fenetre) .sy-ed-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-ed-fig { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-radius: 0; background: none; box-shadow: inset 0 1px 0 var(--rule); }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-ed-fig-l { min-width: 0; font: 500 13px/1.3 var(--sans); color: var(--ink-3); white-space: normal; text-overflow: clip; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-ed-fig-v { flex: none; font-size: 16px; }
html.ep-apercu .sxv .sxv-carte:not(.is-fenetre) .sy-ed-fig-n { display: none; }
/* L'aperçu du graphique : une copie figée, réduite à la carte, qui s'efface vers le bas. */
html.ep-apercu .sxv .sxv-apercu { position: relative; height: 104px; margin: auto 0 0; padding-top: 14px; overflow: hidden; pointer-events: none; }
html.ep-apercu .sxv .sxv-apercu-in { width: calc(100% / .62); margin: 0; padding: 14px 18px 0; border-radius: 20px; background: var(--sxs-tuile); zoom: .62; }
html.ep-apercu .sxv .sxv-apercu::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface)); }
/* Un graphique tracé : sa forme seule (ni textes, ni légende), recadrée, à la largeur de la carte. */
html.ep-apercu .sxv .sxv-apercu.is-trace::after { display: none; }
/* La grande carte : son tracé prend la hauteur que lui laisse sa rangée. */
html.ep-apercu .sxv .sxv-mosaique > .sxv-carte:first-child:not(.is-fenetre) .sxv-apercu.is-trace { flex: 1 1 128px; height: auto; min-height: 128px; }
html.ep-apercu .sxv .sxv-apercu.is-trace .sxv-apercu-in { position: absolute; inset: 14px 0 0; box-sizing: border-box; width: auto; height: auto; padding: 14px 16px 12px; zoom: 1; }
html.ep-apercu .sxv .sxv-apercu.is-trace .ch { height: 100%; }
html.ep-apercu .sxv .sxv-apercu.is-trace svg { display: block; width: 100%; height: 100%; overflow: hidden; }
html.ep-apercu .sxv .sxv-apercu.is-trace :is(svg text, svg circle, .ch-hl, .chart-legend, .as-j-tiret) { display: none; }
html.ep-apercu .sxv .sxv-apercu.is-trace svg :is(path, line, polyline) { vector-effect: non-scaling-stroke; stroke-dasharray: none; }
/* Toute la carte s'ouvre ; son geste se lit en haut à droite. */
html.ep-apercu .sxv .sxv-carte-ouvrir { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: flex-end; padding: 16px; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
html.ep-apercu .sxv .sxv-carte-dit { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); transition: background .25s var(--fluid), color .25s var(--fluid), transform .45s var(--ressort, var(--fluid)); }
html.ep-apercu .sxv .sxv-carte-dit svg { width: 14px; height: 14px; }
html.ep-apercu .sxv .sxv-carte:hover .sxv-carte-dit { background: var(--anis); color: var(--ink); transform: scale(1.08); }

/* La fenêtre : la page derrière, très floutée ; la carte au milieu, large ; la page ne défile plus. */
html.ep-apercu.sxv-fenetre-ouverte, html.ep-apercu.sxv-fenetre-ouverte body { overflow: hidden; }
html.ep-apercu .sxv .sxv-voile { display: none; }
html.ep-apercu .sxv.a-une-fenetre .sxv-voile {
  display: block; position: fixed; inset: 0; z-index: 110; background: rgba(238, 236, 228, .42);
  -webkit-backdrop-filter: blur(30px) saturate(1.25); backdrop-filter: blur(30px) saturate(1.25);
}
html.ep-apercu .sxv .sxv-place { min-width: 0; border-radius: 26px; background: rgba(14, 15, 12, .03); box-shadow: inset 0 0 0 1px var(--rule); }
html.ep-apercu .sxv .sxv-carte.is-fenetre {
  position: fixed; inset: 0; z-index: 111; margin: auto;
  width: min(calc(1240px / var(--z, 1)), calc(100vw / var(--z, 1) - 56px)); height: fit-content; max-height: calc(100dvh / var(--z, 1) - 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 28px; align-content: start;
  grid-template-rows: repeat(7, auto) minmax(min-content, 1fr);
  grid-template-areas: "barre barre" "tete tete" "dit dit" "chiffres chiffres" "dessin tableaux" "pourquoi tableaux" "lien tableaux" ". tableaux";
  padding: 0 32px 28px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 30px; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 50px 120px -40px rgba(14, 15, 12, .5);
}
html.ep-apercu .sxv .sxv-carte.is-fenetre > .sxv-f-barre { grid-area: barre; position: sticky; top: 0; z-index: 4; height: 0; }
html.ep-apercu .sxv .sxv-carte.is-fenetre > .sy-act-head {
  grid-area: tete; position: sticky; top: 0; z-index: 3; margin: 0 -32px; padding: 30px 240px 14px 32px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); cursor: pointer;
}
html.ep-apercu .sxv .sxv-carte.is-fenetre > .sy-ed-dit { grid-area: dit; margin-top: 4px; }
html.ep-apercu .sxv .sxv-carte.is-fenetre > .sy-ed-figs { grid-area: chiffres; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 16px; }
/* Le graphique, l'explication et le renvoi à leur hauteur : seuls les tableaux s'étirent (la dernière rangée les tient). */
html.ep-apercu .sxv .sxv-carte.is-fenetre > [data-couche="dessin"] { grid-area: dessin; align-self: start; margin: 16px 0 0; }
html.ep-apercu .sxv .sxv-carte.is-fenetre > .sxv-f-tableaux { grid-area: tableaux; }
html.ep-apercu .sxv .sxv-carte.is-fenetre > [data-couche="pourquoi"] { grid-area: pourquoi; align-self: start; }
html.ep-apercu .sxv .sxv-carte.is-fenetre > [data-couche="lien"] { grid-area: lien; justify-self: start; align-self: start; margin-top: 14px; }
html.ep-apercu .sxv .sxv-carte.is-fenetre > :is(.sxv-apercu, .sxv-carte-ouvrir) { display: none; }
/* Sans graphique (les hypothèses) : une colonne, la tête en haut. */
html.ep-apercu .sxv .sxv-carte.is-fenetre.sans-dessin { display: block; }
html.ep-apercu .sxv .sxv-carte.is-fenetre.sans-dessin > .sy-act-no { margin: 0 -32px; padding: 30px 240px 0 32px; cursor: pointer; }
html.ep-apercu .sxv .sxv-carte.is-fenetre.sans-dessin > .sy-sec-head { cursor: pointer; }
/* Les tableaux, à droite, serrés : la même information sans défiler. */
html.ep-apercu .sxv .sxv-f-tableaux { display: grid; gap: 12px; align-content: start; min-width: 0; margin-top: 16px; }
html.ep-apercu .sxv .sxv-f-tableaux > * { margin: 0; }
html.ep-apercu .sxv .sxv-carte.is-fenetre :is(.as-table, .sy-hyp-table) { font-size: 13px; }
html.ep-apercu .sxv .sxv-carte.is-fenetre :is(.as-table, .sy-hyp-table) :is(th, td) { padding: 6px 8px; }
html.ep-apercu .sxv .sxv-carte.is-fenetre .as-table thead th { white-space: normal; }
html.ep-apercu .sxv .sxv-carte.is-fenetre .as-table td:first-child { white-space: normal; min-width: 9em; }
/* Un tableau plus large que sa colonne : il se fond à droite tant qu'il reste à voir (data-deborde). */
html.ep-apercu .sxv .sxv-carte.is-fenetre .as-table-wrap[data-deborde="suite"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
/* Ses gestes : la poignée qui la réduit, la précédente, la suivante, la croix. */
html.ep-apercu .sxv .sxv-f-poignee { position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; padding: 0; border: 0; border-radius: 999px; background: rgba(14, 15, 12, .14); cursor: pointer; transition: background .2s var(--fluid); }
html.ep-apercu .sxv .sxv-f-poignee:hover { background: rgba(14, 15, 12, .32); }
html.ep-apercu .sxv .sxv-f-gestes {
  position: absolute; top: 22px; right: -12px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--rule);
}
html.ep-apercu .sxv .sxv-f-fleche { position: relative; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s var(--fluid), transform .15s var(--fluid); }
html.ep-apercu .sxv .sxv-f-fleche::after { content: ''; position: absolute; left: 14px; top: 13px; width: 7px; height: 7px; border-left: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
html.ep-apercu .sxv .sxv-f-fleche.is-suiv::after { left: 11px; transform: rotate(-135deg); }
html.ep-apercu .sxv .sxv-f-fleche:hover:not(:disabled) { background: var(--surface-2); }
html.ep-apercu .sxv .sxv-f-fleche:active:not(:disabled) { transform: scale(.94); }
html.ep-apercu .sxv .sxv-f-fleche:disabled { opacity: .3; cursor: default; }
html.ep-apercu .sxv .sxv-f-ou { padding: 0 4px; font: 600 12.5px/1 var(--sans); color: var(--ink-3); white-space: nowrap; }
html.ep-apercu .sxv .sxv-f-fermer { position: relative; flex: none; width: 34px; height: 34px; margin-left: 4px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; transition: transform .15s var(--fluid); }
html.ep-apercu .sxv .sxv-f-fermer::before, html.ep-apercu .sxv .sxv-f-fermer::after { content: ''; position: absolute; left: 11px; top: 16px; width: 12px; height: 2px; border-radius: 2px; background: #FFFFFF; transform: rotate(45deg); }
html.ep-apercu .sxv .sxv-f-fermer::after { transform: rotate(-45deg); }
html.ep-apercu .sxv .sxv-f-fermer:active { transform: scale(.94); }
html.ep-apercu .sxv :is(.sxv-f-fermer, .sxv-f-fleche, .sxv-carte-ouvrir):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 1099px) {
  html.ep-apercu .sxv .sxv-mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.ep-apercu .sxv .sxv-carte.is-fenetre { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "barre" "tete" "dit" "chiffres" "dessin" "tableaux" "pourquoi" "lien"; }
}
@media (max-width: 640px) {
  html.ep-apercu .sxv .sxv-mosaique { grid-template-columns: minmax(0, 1fr); }
  html.ep-apercu .sxv .sxv-mosaique > .sxv-carte:first-child, html.ep-apercu .sxv .sxv-place.is-large { grid-column: auto; }
  html.ep-apercu .sxv .sxv-mosaique > .sxv-carte:first-child:not(.is-fenetre) .sy-ed-figs { grid-template-columns: minmax(0, 1fr); }
  html.ep-apercu .sxv .sxv-carte.is-fenetre { inset: 8px; width: auto; height: auto; max-height: none; padding: 0 18px 22px; border-radius: 22px; }
  html.ep-apercu .sxv .sxv-carte.is-fenetre > .sy-act-head { margin: 0 -18px; padding: 70px 18px 12px; }
  html.ep-apercu .sxv .sxv-carte.is-fenetre.sans-dessin > .sy-act-no { margin: 0 -18px; padding: 70px 18px 0; }
  html.ep-apercu .sxv .sxv-f-gestes { top: 18px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ep-apercu .sxv :is(.sxv-carte, .sxv-carte-dit, .sxv-f-fleche, .sxv-f-fermer) { transition: none; }
}

/* ─── Comment se comptent les ventes (11 octobre 2026) ───
   Trois façons, en tête de l'offre ; le rythme et l'offre liée en phrases à
   trous ; plusieurs prix et leur moyenne. */
.ep-facons { display: grid; gap: 8px; min-width: 0; }
.ep-facons-titre { font: 600 12px/1.3 var(--sans); color: var(--ink-4); }
.ep-facons-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-facon {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--r-md, 12px); background: var(--surface);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s;
}
.ep-facon:hover { border-color: var(--ink-4); }
.ep-facon-nom { font: 600 13px/1.3 var(--sans); color: var(--ink); }
.ep-facon-note { font: 400 11.5px/1.35 var(--sans); color: var(--ink-4); }
.ep-facon.is-on { background: var(--ink); border-color: var(--ink); }
.ep-facon.is-on .ep-facon-nom { color: #fff; }
.ep-facon.is-on .ep-facon-note { color: #C9CEC4; }
@media (max-width: 640px) { .ep-facons-choix { grid-template-columns: minmax(0, 1fr); } }

.ep-rythme { display: grid; gap: 8px; min-width: 0; padding: 14px 16px; border-radius: var(--r-md, 12px); background: var(--surface-2); }
.ep-rythme-phrase { margin: 0; font: 400 15px/2.1 var(--sans); color: var(--ink); }
.ep-rythme-phrase.is-apres { line-height: 1.9; }
.ep-rythme-dit { margin: 0; font: 500 13px/1.5 var(--sans); color: var(--ink-3); }
.ep-rythme-repere { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-4); }
/* La suite en chiffres (fil eeeaf44a) : « Soit dans 2 ans [6] ; dans 3 ans [7]
   nuitées par jour. » Plus bas que la phrase, en retrait ; « dans 2 ans » dit
   son mois au survol. */
.ep-rythme-horizons { margin: 0; font: 400 13px/2 var(--sans); color: var(--ink-3); }
.ep-rythme-horizons .trou-saisie { font-size: 13px; }
.ep-rythme-quand { color: var(--ink-2); font-weight: 500; text-decoration: underline dotted var(--ink-5); text-underline-offset: 3px; cursor: help; }
.ep-rythme-repere .ep-lien, .ep-rythme-ensuite { padding: 0; font-size: 12.5px; }
.trou { display: inline-flex; align-items: baseline; vertical-align: baseline; }
.trou-saisie {
  min-width: 2.6em; padding: 2px 6px; margin: 0 2px; border: 0; border-bottom: 2px solid var(--ink);
  border-radius: 4px 4px 0 0; background: var(--surface); color: var(--ink);
  font: 700 15px/1.4 var(--display); text-align: center;
}
.trou-saisie::placeholder { color: var(--ink-5); font-weight: 500; }
.trou-saisie:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.trou-liste {
  padding: 2px 4px; margin: 0 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 4px 4px 0 0;
  background: var(--surface); color: var(--ink); font: 600 14px/1.4 var(--sans); cursor: pointer;
}
.trou-liste:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.ep-melange { display: grid; gap: 8px; min-width: 0; }
.ep-melange-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-md, 12px); background: var(--surface); font-size: 14px; }
.ep-melange-nom { flex: 1 1 140px; min-width: 0; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 8px; font: 500 14px/1.3 var(--sans); color: var(--ink); background: var(--surface); }
.ep-melange-vaut { margin-left: auto; font: 600 13px/1.3 var(--sans); color: var(--ink-3); }
.ep-melange-part.is-seule { font-weight: 600; color: var(--ink-3); }
.ep-melange-ajouter { justify-self: start; }

/* ── Décrire son activité en une phrase (11 octobre 2026, l'aperçu) ──
   js/demo/epure/ia.js. 11 octobre au soir : « beaucoup plus vivant, mieux
   mis en forme, moins de texte posé grossièrement ; en harmonie avec la
   direction artistique, Surface Dynamics, Material You, Apple » : une
   feuille aux grands rayons, la mascotte en tête, la réponse qui arrive en
   direct (des cartes en attente qui prennent leur nom), des cartes à la
   charte (la façon en puce, le prix en grand, le rythme en une ligne, le
   détail qui se déplie), les volets repliés, une barre de saisie à la
   Apple (dicter, envoyer), le modèle et les jetons en pied. */
.ep-ia-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ep-ia {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0 0 18px; padding: 18px 20px 14px;
  border: 0; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 1px rgba(14, 15, 12, .05), 0 18px 40px -24px rgba(14, 15, 12, .28);
}
.ep-ia.is-pense { box-shadow: 0 0 0 1.5px var(--anis), 0 18px 40px -24px rgba(14, 15, 12, .28); }
.ep-ia-tete { display: flex; align-items: flex-start; gap: 12px; }
.ep-ia-mascotte { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--surface-2); }
.ep-ia-titres { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.ep-ia-titre { margin: 0; font: 700 18px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.ep-ia-dit { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.ep-ia-fermer { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); font: 600 12px/1 var(--sans); color: var(--ink-3); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-ia-fermer:hover { background: var(--ink); color: #fff; }
/* Les exemples : des phrases qu'on touche pour essayer. */
.ep-ia-exemples { display: grid; gap: 6px; }
.ep-ia-exemples-t { margin: 0 0 2px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.ep-ia-exemple { padding: 10px 14px; border: 0; border-radius: 14px; background: var(--surface-2); font: 500 13px/1.4 var(--sans); color: var(--ink-2); text-align: left; cursor: pointer; transition: background-color .25s var(--fluid), transform .2s var(--fluid); }
.ep-ia-exemple:hover { background: #ECE9E0; }
.ep-ia-exemple:active { transform: scale(.99); }
/* En direct : des cartes en attente, qui prennent leur nom à mesure. */
.ep-ia-direct { display: grid; gap: 10px; }
.ep-ia-direct-dit { margin: 0; font-size: 13px; color: var(--ink-3); }
.ep-ia-fantomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ep-ia-fantome { display: grid; gap: 8px; min-height: 96px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); overflow: hidden; }
.ep-ia-fantome-nom { min-height: 18px; font: 700 15px/1.25 var(--sans); color: var(--ink); }
.ep-ia-fantome:not(.is-nomme) .ep-ia-fantome-nom, .ep-ia-fantome-l { border-radius: 8px; background: linear-gradient(90deg, #E9E6DC 0%, #F6F4EE 50%, #E9E6DC 100%); background-size: 200% 100%; }
.ep-ia-fantome:not(.is-nomme) .ep-ia-fantome-nom { width: 60%; }
.ep-ia-fantome-l { height: 12px; width: 85%; }
.ep-ia-fantome-l.is-court { width: 55%; }
.ep-ia-annuler { justify-self: start; }
/* Les offres proposées : des cartes à la charte. */
.ep-ia-offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ep-ia-offre { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 14px 16px 12px; border-radius: 20px; background: var(--surface-2); }
.ep-ia-offre-tete { display: flex; flex-wrap: wrap; gap: 5px; }
.ep-ia-facon { padding: 3px 9px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); font: 600 11px/1.3 var(--sans); color: var(--ink-2); }
.ep-ia-facon.is-abonnement { background: #E6EDF7; box-shadow: none; }
.ep-ia-facon.is-commission { background: #EFE9DA; box-shadow: none; }
.ep-ia-facon.is-liee { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.ep-ia-facon.is-manque { background: #FFF1D6; color: #7A4B00; box-shadow: none; }
.ep-ia-offre-nom { margin: 2px 0 0; font: 700 15.5px/1.25 var(--display, var(--sans)); letter-spacing: -.01em; color: var(--ink); }
.ep-ia-offre-prix { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.ep-ia-offre-prix b { font: 800 24px/1.05 var(--display, var(--sans)); letter-spacing: -.02em; color: var(--ink); }
.ep-ia-offre-rythme { margin: 0; font: 600 12.5px/1.35 var(--sans); color: var(--ink-2); }
.ep-ia-detail { margin-top: 2px; }
.ep-ia-detail summary { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1.2 var(--sans); color: var(--ink-3); cursor: pointer; list-style: none; }
.ep-ia-detail summary::-webkit-details-marker { display: none; }
.ep-ia-detail summary::after { content: '▾'; font-size: 10px; transition: transform .25s var(--fluid); }
.ep-ia-detail[open] summary::after { transform: rotate(180deg); }
.ep-ia-detail[open] { padding-top: 2px; }
.ep-ia-offre-l { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ep-ia-offre-manque { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #7A4B00; }
/* Ce que l'IA a supposé, ce qu'il faudrait savoir, ce qui n'a pas été lu : des volets. */
.ep-ia-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-ia-note { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.ep-ia-note-t { display: flex; align-items: center; gap: 6px; font: 600 12.5px/1.3 var(--sans); color: var(--ink-2); cursor: pointer; list-style: none; }
.ep-ia-note-t::-webkit-details-marker { display: none; }
.ep-ia-compte { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #FFFFFF; font: 700 10.5px/1 var(--sans); color: var(--ink-2); }
.ep-ia-note.is-question .ep-ia-compte { background: var(--anis); color: #0E0F0C; }
.ep-ia-note ul { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
/* Une question de l'IA se répond d'un clic. */
.ep-ia-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-ia-puce { max-width: 100%; padding: 7px 12px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); font: 500 12.5px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-ia-puce:hover { box-shadow: inset 0 0 0 1.5px var(--anis); }
.ep-ia-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ep-ia-erreur { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FDECEC; font-size: 12.5px; color: #8A1C1C; }
/* Une question : sa réponse ; une demande hors sujet : la phrase fixe qui ramène au travail (ia-garde.js). */
.ep-ia-reponse { margin: 0; font: 400 14px/1.55 var(--sans); color: var(--ink-2); }
.ep-ia-refus { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2, #F1EFE7); font: 500 12.5px/1.45 var(--sans); color: var(--ink-3); }
/* La barre de saisie, à la Apple : un champ qui grandit, dicter, envoyer. */
.ep-ia-barre { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .25s var(--fluid), background-color .25s var(--fluid); }
.ep-ia-barre:focus-within { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--anis), 0 0 0 4px rgba(185, 245, 16, .25); }
.ep-ia-texte { flex: 1 1 auto; min-width: 0; min-height: 34px; max-height: 140px; margin: 0; padding: 7px 0; border: 0; background: transparent; font: 500 14px/1.45 var(--sans); color: var(--ink); resize: none; outline: none; }
.ep-ia-micro, .ep-ia-envoyer { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: background-color .2s var(--fluid), transform .15s var(--fluid), opacity .2s var(--fluid); }
.ep-ia-micro { background: transparent; color: var(--ink-2); }
.ep-ia-micro:hover { background: rgba(14, 15, 12, .06); }
.ep-ia-micro.is-on { background: #C2185B; color: #FFFFFF; animation: ep-ia-ecoute 1.2s ease-in-out infinite; }
.ep-ia-envoyer { background: var(--ink); color: #FFFFFF; }
.ep-ia-envoyer:not(:disabled):hover { transform: scale(1.06); }
.ep-ia-envoyer:disabled { opacity: .3; cursor: default; }
.ep-ia-micro svg, .ep-ia-envoyer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ep-ia-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ep-ia-pied { margin: -4px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-4); }
/* fynomia.fr (décision 11) : l'accord, avant la première demande ; puis
   « Retirer mon accord », discret, en pied. */
.ep-ia-accord { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.ep-ia-accord-t { margin: 0; font: 600 13.5px/1.3 var(--sans); color: var(--ink); }
.ep-ia-accord-d { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ep-ia-accord-actes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ep-ia-accord-note { font-size: 11.5px; color: var(--ink-4); }
.ep-ia-retirer { margin-left: 2px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ep-ia-retirer:hover { color: var(--ink-2); }
.ep-ar-chat.is-accord .ep-ia-accord { padding: 12px 14px; }
.ep-ia-modele { font-weight: 600; color: var(--ink-3); }
@keyframes ep-ia-ecoute { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 24, 91, .35); } 50% { box-shadow: 0 0 0 6px rgba(194, 24, 91, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .ep-ia { animation: ep-ia-entre .42s cubic-bezier(.05, .7, .1, 1) both; }
  @keyframes ep-ia-entre { from { opacity: 0; transform: translateY(10px) scale(.99); } }
  .ep-ia-fantome:not(.is-nomme) .ep-ia-fantome-nom, .ep-ia-fantome-l { animation: ep-ia-lueur 1.4s linear infinite; }
  @keyframes ep-ia-lueur { from { background-position: 100% 0; } to { background-position: -100% 0; } }
  .ep-ia-fantome.is-nomme .ep-ia-fantome-nom { animation: ep-ia-nom .45s var(--fluid) both; }
  @keyframes ep-ia-nom { from { opacity: 0; filter: blur(3px); } }
  .ep-ia-offre { animation: ep-ia-carte .5s cubic-bezier(.05, .7, .1, 1) both; animation-delay: calc(var(--k, 0) * 70ms); }
  @keyframes ep-ia-carte { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}
@media (prefers-reduced-motion: reduce) { .ep-ia-micro.is-on { animation: none; } }
/* Au portable, l'en-tête garde ses deux boutons sur une ligne : « ✦ Décrire ». */
@media (max-width: 640px) { .ep-ia { padding: 14px 14px 12px; border-radius: 22px; } .ep-ia-offres, .ep-ia-fantomes { grid-template-columns: 1fr; } .ep-ia-btn-plus { display: none; } .ep-ia-mascotte { display: none; } }

/* ─── Le panneau de l'IA : C1, Spotlight (tranché le 13 octobre ;
   js/demo/epure/ia-versions.js). Un seul geste principal, ce que l'IA a
   supposé en note, le modèle en légende ; une offre déjà dans le plan le
   dit ; une question reçoit sa réponse, sans rien changer au plan. ─── */
.ep-ia.ep-iav:not(.is-entree) { animation: none; }
.ep-iav:not(.is-entree):not(.is-neuf) :is(.ep-iav-ligne, .ep-iav-q) { animation: none; }
.ep-iav-etoile { flex: none; display: inline-grid; place-items: center; width: 22px; font: 600 15px/1 var(--sans); color: var(--anis-fort, #A6DC0E); }

/* Les gestes : le principal (anis), le second (filet), le lien. */
.ep-iav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ep-iav-actions-droite { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ep-iav-principal { min-height: 40px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 650 14px/1.2 var(--sans); letter-spacing: -.005em; cursor: pointer; box-shadow: 0 1px 0 rgba(14, 15, 12, .06), 0 10px 22px -14px rgba(110, 150, 0, .9); transition: transform .2s var(--fluid), box-shadow .2s var(--fluid); }
.ep-iav-principal:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(14, 15, 12, .06), 0 14px 26px -14px rgba(110, 150, 0, .95); }
.ep-iav-principal:active { transform: scale(.98); }
.ep-iav-second { min-height: 40px; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font: 600 13.5px/1.2 var(--sans); cursor: pointer; transition: box-shadow .2s var(--fluid), color .2s var(--fluid); }
.ep-iav-second:hover { box-shadow: inset 0 0 0 1px var(--ink-4); color: var(--ink); }
.ep-iav-lien { padding: 4px 2px; border: 0; background: none; color: var(--ink-4); font: 500 13px/1.2 var(--sans); cursor: pointer; transition: color .2s var(--fluid); }
.ep-iav-lien:hover { color: var(--ink); }
:is(.ep-iav-principal, .ep-iav-second, .ep-iav-lien, .ep-iav-essai, .ep-iav-fermer):focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-iav-fermer { background: transparent; }
.ep-iav-fermer:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }

/* « Essaie » et trois mots. */
.ep-iav-essais { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.ep-iav-essais-t { margin-right: 4px; font: 500 12.5px/1.2 var(--sans); color: var(--ink-4); }
.ep-iav-essai { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .05); color: var(--ink-2); font: 500 12.5px/1.2 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-iav-essai:hover { background: #F1EEE5; color: var(--ink); }

/* Ce que l'IA a supposé : une note, qui se déplie d'un clic. */
.ep-iav-suppose { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-width: 0; padding: 2px 0; border: 0; background: none; text-align: left; cursor: pointer; font: 400 12.5px/1.5 var(--sans); color: var(--ink-4); transition: color .15s; }
.ep-iav-suppose i { flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-5); font: 600 10px/1 var(--sans); font-style: normal; color: var(--ink-3); }
.ep-iav-suppose span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-iav-suppose.is-ouvert span { white-space: normal; }
.ep-iav-suppose:hover { color: var(--ink-2); }
.ep-iav-suppose:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.ep-iav-pied { margin: 0; }

/* Une offre, en ligne (C1) : un point de couleur, son nom et son rythme, son prix. */
.ep-iav-lignes { display: grid; margin: 0; padding: 0; list-style: none; }
.ep-iav-ligne { display: block; border-top: 1px solid rgba(14, 15, 12, .06); }
.ep-iav-ligne:first-child { border-top: 0; }
/* La ligne se déplie en fiche, à relire (fil 58e0dfca) : toute la ligne est le geste. */
.ep-iav-ligne-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s var(--fluid); }
.ep-iav-ligne-tete:hover:not(:disabled) { background: rgba(14, 15, 12, .025); }
.ep-iav-ligne-tete:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 1px; }
.ep-iav-ligne-tete:disabled { cursor: default; }
.ep-iav-ligne-nom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ep-iav-ligne-nom b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-iav-ligne-chevron { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2, #F1EFE7); position: relative; transition: transform .35s var(--fluid), background-color .2s var(--fluid); }
.ep-iav-ligne-chevron::before { content: ''; position: absolute; left: 6px; top: 5px; width: 5px; height: 5px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); }
.ep-iav-ligne.is-ouverte .ep-iav-ligne-chevron { transform: rotate(180deg); background: rgba(185, 245, 16, .22); }
.ep-iav-pastille { flex: none; padding: 2px 8px; border-radius: 999px; font: 650 11px/1.35 var(--sans); letter-spacing: .01em; }
.ep-iav-pastille.is-corriger { background: rgba(196, 122, 18, .14); color: var(--warn, #8A5A00); }
.ep-iav-pastille.is-relue { background: rgba(185, 245, 16, .24); color: #3F5200; }
.ep-iav-pastille.is-relue::before { content: '\2713'; margin-right: 4px; font-weight: 800; }

/* La fiche : ce que l'IA a compris, avec les cases de l'offre ; chaque nombre se corrige sur place. */
.ep-iav-fiche { display: grid; gap: 12px; margin: 0 2px 12px 25px; padding: 14px 16px 12px; border-radius: 16px; background: var(--surface-2, #F6F4EE); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .05); }
.ep-iav-fiche.is-corriger { box-shadow: inset 0 0 0 1px rgba(196, 122, 18, .32); }
.ep-iav-fiche-champs { display: grid; gap: 8px; margin: 0; }
.ep-iav-fiche-l { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.ep-iav-fiche-l dt { font: 500 12.5px/1.4 var(--sans); color: var(--ink-4); }
.ep-iav-fiche-l dd { margin: 0; min-width: 0; font: 500 14px/1.6 var(--sans); color: var(--ink); }
.ep-iav-fiche-l dd .trou-saisie { field-sizing: content; min-width: 2.6em; max-width: 140px; padding: 1px 6px; font-size: 14px; }
.ep-iav-fiche-l dd .trou-liste { font-size: 13.5px; }
.ep-iav-fiche-soit { color: var(--ink-4); }
.ep-iav-fiche-alerte { display: grid; gap: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(196, 122, 18, .09); }
.ep-iav-fiche-alerte p { margin: 0; font: 500 13.5px/1.5 var(--sans); color: var(--ink); }
.ep-iav-fiche-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-iav-fiche-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.ep-iav-fiche-pied .ep-iav-note { flex: 1 1 220px; }
.ep-iav-principal.is-petit, .ep-iav-second.is-petit { min-height: 34px; padding: 7px 14px; font-size: 13px; }
.ep-iav-principal:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.ep-iav-ligne-ico { width: 9px; height: 9px; border-radius: 50%; background: var(--anis-fort, #A6DC0E); box-shadow: 0 0 0 4px rgba(185, 245, 16, .22); }
.ep-iav-ligne-ico.is-abonnement { background: #6F86A6; box-shadow: 0 0 0 4px rgba(111, 134, 166, .18); }
.ep-iav-ligne-ico.is-commission { background: #B8A673; box-shadow: 0 0 0 4px rgba(184, 166, 115, .22); }
.ep-iav-ligne-t { display: grid; gap: 2px; min-width: 0; }
.ep-iav-ligne-t b { font: 650 15px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.ep-iav-ligne-t small { font: 400 12.5px/1.4 var(--sans); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-iav-ligne-v { display: grid; justify-items: end; gap: 2px; }
.ep-iav-ligne-v b { font: 700 19px/1.05 var(--display, var(--sans)); letter-spacing: -.02em; color: var(--ink); }
.ep-iav-ligne-v small { font: 400 11.5px/1.3 var(--sans); color: var(--ink-4); white-space: nowrap; }

/* Une offre déjà dans le plan (13 octobre : « ni doublons ») : en retrait ; elle ne s'ajoutera pas. */
.ep-iav-ligne.is-deja { opacity: .55; }
.ep-iav-ligne.is-deja .ep-iav-ligne-ico { background: var(--ink-5); box-shadow: none; }
.ep-iav-note { margin: 0; font: 500 12.5px/1.45 var(--sans); color: var(--ink-4); }
/* Une question : la réponse, en clair ; rien n'entre dans le plan. */
.ep-iav-spot-res.is-reponse { gap: 10px; }
.ep-iav-reponse { margin: 0; font: 400 14px/1.55 var(--sans); letter-spacing: -.005em; color: var(--ink); }

/* Une précision : la question, sa réponse à écrire sur la même ligne. */
.ep-iav-qs { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ep-iav-q { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(190px, 270px); align-items: center; gap: 12px; padding: 7px 2px; }
.ep-iav-q-marque { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .06); font: 700 11px/1 var(--sans); color: var(--ink-3); }
.ep-iav-q.is-faite .ep-iav-q-marque { background: var(--anis); box-shadow: none; color: #0E0F0C; }
.ep-iav-q-texte { font: 500 14px/1.4 var(--sans); color: var(--ink); }
.ep-iav-q.is-faite .ep-iav-q-texte { color: var(--ink-4); }
.ep-iav-q-saisie { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 3px 3px 12px; border-radius: 12px; background: var(--field-bg, #F5F3EC); transition: background-color .25s var(--fluid), box-shadow .25s var(--fluid); }
.ep-iav-q-saisie:focus-within { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--anis), 0 0 0 4px rgba(185, 245, 16, .22); }
.ep-iav-q-champ { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0; border: 0; background: transparent; font: 500 14px/1.3 var(--sans); color: var(--ink); outline: none; }
.ep-iav-q-ok { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #FFFFFF; cursor: pointer; transition: opacity .2s var(--fluid), transform .15s var(--fluid); }
.ep-iav-q-ok:not(:disabled):hover { transform: scale(1.06); }
.ep-iav-q-ok:disabled { opacity: .18; cursor: default; }
.ep-iav-q-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* En direct : des lignes en attente qui prennent leur nom. */
.ep-iav-direct { gap: 12px; }
.ep-iav-direct .ep-ia-fantomes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ep-iav-direct .ep-ia-fantome { min-height: 84px; background: rgba(14, 15, 12, .03); }

/* C1 · Spotlight — au-dessus de la page voilée ; le panneau n'a plus de boîte dans la page. */
.ep-ia.ep-iav.is-spot { margin: 0; padding: 0; gap: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
.ep-iav-spot-voile { position: fixed; inset: 0; z-index: 120; background: rgba(246, 245, 239, .5); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); }
.ep-iav-spot {
  position: fixed; z-index: 121; left: 0; right: 0; top: max(48px, 10vh); width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - max(48px, 10vh) - 24px); margin: 0 auto;
  display: flex; flex-direction: column; min-height: 0; border-radius: 26px; background: rgba(255, 255, 255, .97);
  box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 50px 100px -40px rgba(14, 15, 12, .5), 0 14px 30px -16px rgba(14, 15, 12, .22);
}
.ep-iav-spot.is-pense { box-shadow: 0 0 0 1px rgba(14, 15, 12, .04), 0 50px 100px -40px rgba(14, 15, 12, .5), 0 0 48px -8px rgba(185, 245, 16, .45), 0 0 80px -16px rgba(129, 140, 248, .35); }
.ep-iav-spot-lisere { position: absolute; inset: 0; z-index: 1; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--ep-iav-angle, 0deg), #B9F510, #5EEAD4, #818CF8, #F472B6, #FDBA74, #B9F510); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; pointer-events: none; transition: opacity .5s var(--fluid); }
.ep-iav-spot.is-pense .ep-iav-spot-lisere { opacity: 1; }
@property --ep-iav-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ep-iav-spot-tete { display: flex; align-items: flex-start; gap: 2px; padding: 8px 8px 8px 6px; border-bottom: 1px solid rgba(14, 15, 12, .06); }
.ep-iav-spot-tete .ep-iav-barre { flex: 1 1 auto; }
.ep-iav-barre.is-spot { align-items: center; padding: 6px 6px 6px 10px; border-radius: 18px; background: transparent; box-shadow: none; }
.ep-iav-barre.is-spot:focus-within { background: transparent; box-shadow: none; }
.ep-iav-barre.is-spot .ep-iav-etoile { font-size: 18px; width: 28px; }
.ep-iav-barre.is-spot .ep-ia-texte { min-height: 40px; padding: 8px 0; font: 500 18px/1.45 var(--sans); letter-spacing: -.01em; }
.ep-iav-barre.is-spot .ep-ia-texte::placeholder { color: var(--ink-5); }
.ep-iav-fermer.is-spot { margin: 10px 4px 0 0; }
.ep-iav-essais.is-spot { padding: 14px 20px 6px; }
.ep-iav-spot > .ep-iav-direct { padding: 14px 20px 4px; }
.ep-iav-spot-res { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; padding: 14px 20px 6px; }
.ep-iav-citation { margin: 0 0 4px; font: 400 13.5px/1.5 var(--sans); font-style: italic; color: var(--ink-4); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ep-iav-rubrique { margin: 12px 0 2px; font: 600 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.ep-iav-spot-res .ep-iav-suppose { margin-top: 10px; }
.ep-iav-spot > .ep-ia-erreur { margin: 8px 20px 0; }
.ep-iav-spot-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 12px 12px 20px; border-top: 1px solid rgba(14, 15, 12, .06); }
.ep-iav-spot-pied .ep-ia-pied { flex: 1 1 220px; min-width: 0; }
.ep-iav-spot-pied .ep-iav-actions { margin-left: auto; }
.ep-iav-touches { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 500 12px/1.2 var(--sans); color: var(--ink-4); }
.ep-iav-touches kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .08), inset 0 -1px 0 rgba(14, 15, 12, .1); font: 600 11px/1 var(--sans); color: var(--ink-3); }
.ep-iav-touches kbd:first-child { margin-left: 0; }

/* Le bloc de la page n'a pas d'ombre : seule la fenêtre flotte (sans quoi un cadre fantôme restait dans la page). */
html.ep-apercu .ep-ia.ep-iav.is-spot { box-shadow: none; }
/* La confirmation (« Remplacer mes offres ») et les messages passent au-dessus de la fenêtre ouverte, pas sous son voile. */
body:has(.ep-iav.is-spot) .scrim { z-index: 125; }
body:has(.ep-iav.is-spot) .modal-wrap { z-index: 126; }
body:has(.ep-iav.is-spot) .toasts { z-index: 127; }
.ep-iav-accord { display: flex; align-items: flex-start; gap: 8px; }
.ep-iav-accord .ep-ia-accord { flex: 1 1 auto; }

@media (prefers-reduced-motion: no-preference) {
  .ep-iav.is-spot.is-entree .ep-iav-spot-voile { animation: ep-iav-voile .4s var(--fluid) backwards; }
  .ep-iav.is-spot.is-entree .ep-iav-spot { animation: ep-iav-spot .55s cubic-bezier(.2, .9, .25, 1.04) backwards; }
  .ep-iav-spot.is-pense .ep-iav-spot-lisere { animation: ep-iav-tourne 2.6s linear infinite; }
  .ep-iav.is-neuf .ep-iav-ligne { animation: ep-iav-monte .55s var(--fluid) backwards; animation-delay: calc(var(--k, 0) * 80ms + 60ms); }
  .ep-iav.is-neuf :is(.ep-iav-q, .ep-iav-reponse) { animation: ep-iav-monte .55s var(--fluid) .25s backwards; }
  @keyframes ep-iav-voile { from { opacity: 0; } }
  @keyframes ep-iav-spot { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
  @keyframes ep-iav-tourne { to { --ep-iav-angle: 360deg; } }
  @keyframes ep-iav-monte { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
}
/* L'interface reste (fil 92181e40) : une réponse met les offres à jour sur
   place ; l'ajout se fait offre par offre, la fenêtre ouverte, et la page
   se dévoile pour montrer les cartes qui arrivent. */
.ep-iav-q.is-lue .ep-iav-q-marque, .ep-iav-q.is-attend .ep-iav-q-marque { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--anis, #B9F510); color: var(--ink); }
.ep-iav-q.is-lue .ep-iav-q-texte, .ep-iav-q.is-attend .ep-iav-q-texte { color: var(--ink-3); }
.ep-iav-spot-res.is-maj .ep-iav-ligne-v b { opacity: .55; transition: opacity .3s var(--fluid); }
/* Rien ne saute (fil e65e126b) : sous la réponse envoyée, une ligne fine
   où passe un éclat (« Je relis tes offres… »), puis « C'est à jour », qui
   s'efface ; ta réponse reste à sa place, en pastille ; une question que
   l'IA ne pose plus s'efface, les nouvelles entrent en bas, l'une après
   l'autre. Une précision hors sujet : la phrase fixe, au même endroit. */
.ep-iav-q:has(> .ep-iav-pense) { row-gap: 2px; }
.ep-iav-pense { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-height: 44px; margin: 0; padding: 0 0 0 34px; overflow: hidden; font: 500 12.5px/1.45 var(--sans); color: var(--ink-4); }
.ep-iav-spot-res > .ep-iav-pense { padding-left: 2px; }
.ep-iav-pense-t { color: var(--ink-3); }
.ep-iav-pense-file { font-weight: 400; color: var(--ink-4); }
.ep-iav-pense-file::before { content: '\00B7'; margin-right: 10px; }
.ep-iav-pense-annuler { margin-left: auto; padding: 0 2px; font-size: 12px; }
.ep-iav-refus { margin: 0; padding: 0 2px; font: 500 12.5px/1.45 var(--sans); color: var(--ink-3); }
.ep-iav-q-dit { justify-self: end; display: inline-block; max-width: 100%; min-width: 0; padding: 5px 11px; border-radius: 999px; background: var(--surface-2, #F1EFE7); font: 500 12.5px/1.25 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-iav-q.is-faite .ep-iav-q-dit { background: rgba(185, 245, 16, .16); }
.ep-iav-q-dit.is-attend { color: var(--ink-4); }
.ep-iav-q-dit.is-lue::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--anis-fort, #A6DC0E); }
.ep-iav-q.is-part { max-height: 64px; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .ep-iav-pense:not(.is-fin) .ep-iav-pense-t { background: linear-gradient(90deg, var(--ink-4) 0%, var(--ink-4) 38%, var(--ink) 50%, var(--ink-4) 62%, var(--ink-4) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ep-iav-pense 1.7s linear infinite; }
  .ep-iav-pense:not(.is-fin) { animation: ep-iav-pense-entre .35s var(--fluid) backwards; }
  /* Un rendu de plus (--dt, ia-versions.js) reprend chaque mouvement où il en est. */
  .ep-iav-pense.is-fin { animation: ep-iav-pense-fin .5s var(--fluid) calc(.4s - var(--dt, 0ms)) forwards; }
  .ep-iav-q-dit.is-lue::before { animation: ep-iav-point 1.1s ease-in-out infinite; }
  .ep-iav:not(.is-entree):not(.is-neuf) .ep-iav-q.is-arrivee { animation: ep-iav-arrive .5s var(--fluid) backwards; animation-delay: calc(var(--k, 0) * 160ms + 300ms - var(--dt, 0ms)); }
  .ep-iav:not(.is-entree):not(.is-neuf) .ep-iav-q.is-part { animation: ep-iav-part .45s var(--fluid) calc(0ms - var(--dt, 0ms)) forwards; }
  @keyframes ep-iav-pense { from { background-position: 100% 0; } to { background-position: -160% 0; } }
  @keyframes ep-iav-pense-entre { from { opacity: 0; transform: translateY(-3px); } }
  @keyframes ep-iav-pense-fin { to { opacity: 0; max-height: 0; } }
  @keyframes ep-iav-arrive { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
  @keyframes ep-iav-part { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } }
}
@media (prefers-reduced-motion: reduce) { .ep-iav-pense.is-fin, .ep-iav-q.is-part { display: none; } }
.ep-iav-ligne.is-change { border-radius: 12px; background: rgba(185, 245, 16, .14); box-shadow: 0 0 0 1px rgba(185, 245, 16, .5); }
.ep-iav-ligne-etat { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2, #F1EFE7); font: 600 12.5px/1.2 var(--sans); color: var(--ink-4); white-space: nowrap; transition: background-color .3s var(--fluid), color .3s var(--fluid); }
.ep-iav-ligne.is-attente { opacity: .5; }
.ep-iav-ligne.is-en-cours .ep-iav-ligne-etat { background: rgba(185, 245, 16, .18); color: var(--ink); }
.ep-iav-ligne.is-entree-plan .ep-iav-ligne-etat { background: var(--anis, #B9F510); color: #0E0F0C; }
.ep-iav-ligne.is-entree-plan .ep-iav-ligne-etat::before { content: '\2713'; font-weight: 800; }
.ep-iav-actions.is-ajout, .ep-iav-actions.is-fait { width: 100%; }
.ep-iav-ajout-dit { margin: 0; font: 500 13px/1.4 var(--sans); color: var(--ink-3); }
.ep-iav-ajout-fait { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 500 13.5px/1.4 var(--sans); color: var(--ink-2); }
.ep-iav-coche { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--anis, #B9F510); color: #0E0F0C; font: 800 12px/1 var(--sans); }
/* L'ajout : la barre se range, la fenêtre descend au bas de l'écran, et la
   page se dévoile au-dessus : les cartes y arrivent une à une. */
/* Au-dessus des messages du bas de l'écran (« Mon modèle… »), qui passeraient dessus. */
.ep-iav-spot.is-ajout { top: auto; bottom: 116px; }
@media (max-width: 640px) { .ep-iav-spot.is-ajout { bottom: 12px; } }
.ep-iav-spot.is-ajout :is(.ep-iav-spot-tete, .ep-iav-citation) { display: none; }
.ep-iav.is-ajoute .ep-iav-spot-voile { background: rgba(246, 245, 239, .16); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .6s var(--fluid); }
.ep-of-carte.is-ia-attente { opacity: 0; transform: translateY(10px) scale(.98); }
@media (prefers-reduced-motion: no-preference) {
  .ep-iav-ligne.is-change { animation: ep-iav-change 1.6s var(--fluid) both; }
  .ep-iav-ligne.is-en-cours .ep-iav-ligne-etat { background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 45%, transparent 70%); background-size: 220% 100%; animation: ep-iav-luit 1.1s linear infinite; }
  .ep-iav-ligne.is-entree-plan .ep-iav-ligne-etat { animation: ep-iav-pose .45s cubic-bezier(.3, 1.5, .5, 1) both; }
  .ep-iav-fiche.is-arrivee { animation: ep-iav-fiche .42s var(--fluid) both; transform-origin: top center; }
  .ep-of-carte.is-ia-arrivee { animation: ep-iav-carte .5s cubic-bezier(.2, .9, .25, 1.05) both, ep-iav-carte-halo 1.4s var(--fluid) both; }
  .ep-iav-spot.is-descend { animation: ep-iav-descend .55s cubic-bezier(.2, .9, .25, 1.04) both; }
  @keyframes ep-iav-descend { from { opacity: 0; transform: translateY(28px) scale(.98); } }
  @keyframes ep-iav-point { 50% { transform: scale(.7); opacity: .55; } }
  @keyframes ep-iav-change { from { background-color: rgba(185, 245, 16, .4); } }
  @keyframes ep-iav-luit { from { background-position: 120% 0; } to { background-position: -120% 0; } }
  @keyframes ep-iav-pose { from { transform: scale(.85); } }
  @keyframes ep-iav-fiche { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
  @keyframes ep-iav-carte { from { opacity: 0; transform: translateY(10px) scale(.98); } }
  @keyframes ep-iav-carte-halo { from { box-shadow: 0 0 0 2px rgba(185, 245, 16, .9), 0 0 30px 4px rgba(185, 245, 16, .45); } }
}
/* Au téléphone, le choix d'aperçu se range le temps que la barre flotte (C1). */
@media (max-width: 899px) { body:has(.ep-iav.is-spot) .ep-apercu-pied { display: none; } }
@media (max-width: 640px) {
  .ep-iav-spot { top: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .ep-iav-ligne-t small { white-space: normal; }
  .ep-iav-ligne-v small { display: none; }
  .ep-iav-fiche { margin-left: 0; }
  .ep-iav-fiche-l { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ep-iav-barre.is-spot .ep-ia-texte { font-size: 16px; }
  .ep-iav-q { grid-template-columns: auto minmax(0, 1fr); }
  .ep-iav-q-saisie, .ep-iav-q-dit { grid-column: 2; justify-self: start; }
  .ep-iav-actions-droite { width: 100%; margin-left: 0; }
  .ep-iav-actions-droite .ep-iav-principal { flex: 1 1 auto; }
}

/* ─── La visite du logiciel (aperçu, 12 octobre au soir ; js/demo/epure/visite.js) ───
   « La mascotte explique chaque partie du logiciel ; fun, hyper moderne,
   qui tourne sur elle-même ; le wording reste sérieux. » Un premier écran
   plein et calme, la mascotte en grand ; puis chaque page, son entrée du
   menu éclairée, la mascotte et deux phrases à côté ; un dernier écran. */
.ep-vi { position: fixed; inset: 0; z-index: 200; font-family: var(--sans); }
.ep-vi-voile { position: absolute; inset: 0; background: rgba(248, 247, 241, .8); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); transition: opacity .55s var(--fluid); }
.ep-vi[data-temps="etape"] .ep-vi-voile { opacity: 0; }
.ep-vi-trou { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(12, 13, 10, .42), 0 0 0 2px rgba(185, 245, 16, .95), 0 0 34px 6px rgba(185, 245, 16, .4); opacity: 0; pointer-events: none; transition: left .6s var(--fluid), top .6s var(--fluid), width .6s var(--fluid), height .6s var(--fluid), opacity .45s var(--fluid); }
.ep-vi[data-temps="etape"] .ep-vi-trou { opacity: 1; }
/* Le premier et le dernier écran. */
.ep-vi-scene { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 540px); align-items: center; justify-content: center; gap: 48px; padding: 40px; transition: opacity .45s var(--fluid), transform .6s var(--fluid); }
.ep-vi[data-temps="etape"] .ep-vi-scene { opacity: 0; transform: scale(.97); pointer-events: none; }
.ep-vi-grande { position: relative; isolation: isolate; display: grid; place-items: center; width: 300px; height: 300px; }
.ep-vi-grande::before { content: ''; position: absolute; z-index: -1; inset: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(244, 249, 228, .62) 64%, rgba(226, 247, 170, .7) 86%, rgba(255, 255, 255, .92) 94%, rgba(226, 247, 170, 0) 100%); box-shadow: 0 0 48px 4px rgba(200, 250, 40, .24), inset 0 0 34px rgba(200, 250, 40, .16); }
.ep-vi-grande::after { content: ''; position: absolute; z-index: -1; left: 22%; right: 22%; bottom: 4%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 15, 12, .22), transparent); filter: blur(3px); }
.ep-vi-texte { display: grid; justify-items: start; gap: 14px; }
.ep-vi-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ep-vi-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--anis-fort, #A6DC0E); }
.ep-vi-titre { margin: 0; font: 700 clamp(40px, 5.4vw, 64px)/1 var(--display, var(--sans)); letter-spacing: -.04em; color: var(--ink); }
/* Fils b1b7709c et 31bdf771 (15 octobre, minuit : « texte à justifier et un chouia plus petit, sur deux lignes et pas
   trois » ; « pareil, plus petit, trois lignes au plus ») : 16 px justifiés, sur une colonne de 540 px ; l'accueil tient
   en deux lignes, la fin en trois (ui/117). */
.ep-vi-dit { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--ink-2); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.ep-vi-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ep-vi-principal { min-height: 46px; padding: 11px 22px; border: 0; border-radius: 999px; background: #0E0F0C; color: #FFFFFF; font: 650 15px/1.2 var(--sans); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 22px -12px rgba(14, 15, 12, .7); transition: transform .2s var(--fluid), background-color .2s var(--fluid); }
.ep-vi-principal:hover { background: #26281F; transform: translateY(-1px); }
.ep-vi-second { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 15px/1.2 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-vi-second:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
:is(.ep-vi-principal, .ep-vi-second, .ep-vi-passer):focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 3px; }
/* Une page : la mascotte et sa carte, à côté de l'entrée du menu. */
.ep-vi-bulle { position: absolute; left: 240px; top: 120px; display: flex; align-items: flex-end; width: min(470px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transition: top .6s var(--fluid), left .6s var(--fluid), opacity .4s var(--fluid); }
.ep-vi[data-temps="etape"] .ep-vi-bulle { opacity: 1; pointer-events: auto; }
.ep-vi-petite { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 156px; height: 156px; margin: 0 -34px -18px -10px; }
.ep-vi-petite::after { content: ''; position: absolute; left: 26%; right: 26%; bottom: 8%; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 15, 12, .3), transparent); filter: blur(2px); }
.ep-vi-carte { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; padding: 18px 20px 14px 34px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 40px 80px -36px rgba(0, 0, 0, .6), 0 12px 24px -14px rgba(0, 0, 0, .3); }
.ep-vi-carte-kicker { display: flex; justify-content: space-between; gap: 10px; margin: 0; font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.ep-vi-carte-titre { margin: 0; font: 700 22px/1.15 var(--display, var(--sans)); letter-spacing: -.025em; color: var(--ink); }
.ep-vi-carte-dit { margin: 0; font: 400 15px/1.55 var(--sans); color: var(--ink-2); }
.ep-vi-carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ep-vi-points { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ep-vi-points li { width: 6px; height: 6px; border-radius: 3px; background: rgba(14, 15, 12, .14); transition: width .4s var(--fluid), background-color .4s var(--fluid); }
.ep-vi-points li.is-fait { background: var(--ink-3); }
.ep-vi-points li.is-ici { width: 18px; background: var(--anis-fort, #A6DC0E); }
.ep-vi-gestes { display: inline-flex; align-items: center; gap: 4px; }
.ep-vi-gestes .ep-vi-principal, .ep-vi-gestes .ep-vi-second { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.ep-vi-passer { justify-self: start; margin: 0 0 0 -2px; padding: 2px; border: 0; background: none; color: var(--ink-4); font: 500 12.5px/1.2 var(--sans); cursor: pointer; }
.ep-vi-passer:hover { color: var(--ink); }
.ep-vi.is-sortie { animation: ep-vi-sort .36s var(--fluid) forwards; pointer-events: none; }
/* Le temps de la visite, le choix d'aperçu se range. */
body:has(.ep-vi:not(.is-sortie)) .ep-apercu-pied { display: none; }
/* La mascotte : sa toile prend sa boîte. */
.ep-m3d { width: 100%; height: 100%; }
.ep-m3d-toile { display: block; width: 100%; height: 100%; }
.ep-ar-revoir { margin-right: auto; padding: 4px 2px; border: 0; background: none; color: var(--ink-3); font: 500 13px/1.2 var(--sans); text-decoration: underline; text-decoration-color: rgba(14, 15, 12, .2); text-underline-offset: 3px; cursor: pointer; }
.ep-ar-revoir:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ep-vi[data-temps="intro"] .ep-vi-voile { animation: ep-g5-voile .6s var(--fluid) backwards; }
  .ep-vi-texte > * { animation: ep-vi-monte .85s var(--fluid) backwards; }
  .ep-vi-texte > :nth-child(2) { animation-delay: .08s; }
  .ep-vi-texte > :nth-child(3) { animation-delay: .16s; }
  .ep-vi-texte > :nth-child(4) { animation-delay: .24s; }
  .ep-vi-grande { animation: ep-vi-entre 1s cubic-bezier(.2, .9, .25, 1.1) backwards; }
  .ep-vi-carte > * { animation: ep-vi-monte .5s var(--fluid) backwards; }
  @keyframes ep-vi-monte { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
  @keyframes ep-vi-entre { from { opacity: 0; transform: scale(.7) translateY(30px); } }
}
@keyframes ep-vi-sort { to { opacity: 0; } }
/* ─── La visite, 13 octobre en fin d'après-midi (« l'onboarding est génial ») ───
   Le texte s'écrit au fil de la lecture, un mot après l'autre ; d'une page à
   l'autre, aucun voyage : la page monte en douceur sous le voile pendant que
   la lumière et la bulle glissent ; les points mènent à n'importe quelle
   partie ; « Une question ? » répond dans la même bulle. */
.ep-vi-mot { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .ep-vi-mot { opacity: 0; filter: blur(3px); animation: ep-vi-mot .42s var(--fluid) forwards; animation-delay: calc(var(--d0, 140ms) + var(--i, 0) * 70ms); }
  @keyframes ep-vi-mot { to { opacity: 1; filter: blur(0); } }
  html.ep-vi-ouverte .shell > .main { animation: ep-vi-page .6s var(--fluid) both; }
  @keyframes ep-vi-page { from { opacity: .3; transform: translateY(12px); } }
  .ep-vi-q-elle.is-direct::after { animation: ep-vi-curseur 1s steps(2) infinite; }
  @keyframes ep-vi-curseur { 50% { opacity: 0; } }
}
/* La carte garde sa largeur : sa colonne ne s'élargit jamais à son contenu. */
.ep-vi-carte { grid-template-columns: minmax(0, 1fr); }
/* L'explication rouverte par « Aide » se ferme par une petite croix, légère,
   dans le coin (fil 1b9e6e92) : plus de gros « J'ai compris ». */
.ep-vi-carte { position: relative; }
.ep-vi-croix { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-vi-croix svg { display: block; width: 12px; height: 12px; }
.ep-vi-croix:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
.ep-vi-croix:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-vi[data-mode="page"] .ep-vi-carte-kicker { padding-right: 30px; }
/* La croix reste à sa place : elle n'entre pas avec le texte de la carte. */
.ep-vi-carte > .ep-vi-croix { animation: none; }
.ep-vi-carte-pied { flex-wrap: wrap; }
.ep-vi-fleche { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font: 600 17px/1 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-vi-fleche:not(:disabled):hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
.ep-vi-fleche:disabled { opacity: .25; cursor: default; }
.ep-vi-fleche:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-vi-points li { position: relative; }
.ep-vi-point { position: absolute; inset: -7px -2px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.ep-vi-points li:not(.is-ici):hover { background: var(--ink-3); }
.ep-vi-point:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 1px; }
.ep-vi-carte-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.ep-vi-question { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border: 0; border-radius: 999px; background: var(--surface-2, #FAF8F2); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .08); color: var(--ink-2); font: 600 12.5px/1.2 var(--sans); cursor: pointer; transition: box-shadow .2s var(--fluid), color .2s var(--fluid); }
.ep-vi-question > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--anis, #B9F510); color: #0E0F0C; font: 800 12px/1 var(--sans); }
.ep-vi-question.is-retour > span { background: transparent; box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .14); font-weight: 600; }
.ep-vi-question:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.ep-vi-question:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
/* « Une question ? » : la bulle s'élargit, la conversation tient dedans. */
.ep-vi[data-vue="question"] .ep-vi-bulle { width: min(540px, calc(100vw - 32px)); }
.ep-vi-q-fil { display: grid; gap: 12px; max-height: min(300px, 40vh); overflow-y: auto; overscroll-behavior: contain; }
.ep-vi-q-echange { display: grid; gap: 6px; }
/* Les réponses de Fyno, en plus petit (fil 6c918d9f, 14 octobre : « texte plus petit »). */
.ep-vi-q-moi { justify-self: end; max-width: 86%; margin: 0; padding: 6px 11px; border-radius: 14px 14px 4px 14px; background: #0E0F0C; color: #FFFFFF; font: 500 12.5px/1.45 var(--sans); }
.ep-vi-q-elle { margin: 0; font: 400 13px/1.5 var(--sans); color: var(--ink-2); white-space: pre-wrap; }
.ep-vi-q-elle.is-direct::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--anis-fort, #A6DC0E); }
.ep-vi-q-montre { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: 600 12px/1.3 var(--sans); color: var(--ink-3); }
.ep-vi-q-montre::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--anis, #B9F510); box-shadow: 0 0 0 3px rgba(185, 245, 16, .25); }
.ep-vi-q-barre { display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 12px; border-radius: 16px; background: var(--surface-2, #FAF8F2); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .1); transition: box-shadow .2s var(--fluid), background-color .2s var(--fluid); }
.ep-vi-q-barre:focus-within { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--anis-fort, #A6DC0E), 0 0 0 3px rgba(185, 245, 16, .25); }
.ep-vi-q-texte { flex: 1; min-width: 0; max-height: 96px; padding: 7px 0; border: 0; outline: none; resize: none; background: transparent; color: var(--ink); font: 400 14.5px/1.45 var(--sans); }
.ep-vi-q-envoyer { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #0E0F0C; color: #FFFFFF; cursor: pointer; transition: opacity .2s var(--fluid), transform .2s var(--fluid); }
.ep-vi-q-envoyer:disabled { opacity: .28; cursor: default; }
.ep-vi-q-envoyer:not(:disabled):hover { transform: translateY(-1px); }
.ep-vi-q-envoyer svg { width: 16px; height: 16px; }
.ep-vi-q-idees, .ep-vi-q-parties { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-vi-q-idee, .ep-vi-q-partie { padding: 6px 11px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .12); color: var(--ink-2); font: 500 12.5px/1.2 var(--sans); cursor: pointer; transition: box-shadow .2s var(--fluid), color .2s var(--fluid); }
.ep-vi-q-idee:hover, .ep-vi-q-partie:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
/* Tes chiffres, sans l'IA aussi (fil 8b78a229) : le moteur répond, la page s'ouvre sur le chiffre. */
.ep-vi-q-chiffres { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ep-vi-q-chiffres-t { margin-right: 2px; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.ep-vi-q-chiffre { padding: 6px 11px; border: 0; border-radius: 999px; background: rgba(185, 245, 16, .16); box-shadow: inset 0 0 0 1px rgba(150, 200, 10, .45); color: var(--ink); font: 550 12.5px/1.2 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), box-shadow .2s var(--fluid); }
.ep-vi-q-chiffre:hover { background: rgba(185, 245, 16, .3); box-shadow: inset 0 0 0 1px rgba(120, 170, 0, .7); }
:is(.ep-vi-q-chiffre, .ep-vi-q-idee, .ep-vi-q-partie):focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-vi-q-pied { flex: 1 1 auto; font: 500 11px/1.3 var(--sans); color: var(--ink-4); }
/* « Aide », au pied du menu : l'explication de la page ouverte, et tes questions. */
.rail-aide .rail-no { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--anis, #B9F510); color: #0E0F0C; font: 800 10px/1 var(--sans); letter-spacing: 0; }
/* Au téléphone : l'écran en colonne ; une page, sa carte en bas. */
.ep-vi.is-telephone .ep-vi-bulle { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; flex-direction: column; align-items: stretch; }
.ep-vi.is-telephone .ep-vi-petite { align-self: center; width: 104px; height: 104px; margin: 0 0 -18px; }
.ep-vi.is-telephone .ep-vi-carte { padding: 22px 18px 14px; }
@media (max-width: 860px) {
  .ep-vi-scene { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; }
  .ep-vi-grande { width: 220px; height: 220px; }
  .ep-vi-texte { justify-items: center; }
  .ep-vi-titre { font-size: 38px; }
  /* En colonne, centrée : justifié, la dernière ligne au milieu. */
  .ep-vi-dit { font-size: 16px; text-align-last: center; }
  .ep-vi-boutons { justify-content: center; }
}

/* ─── La croissance (12 octobre : « version 1 + 3, mais les boutons du 1
   plus petits et plus élégants » ; fil 7b97883f) ───
   1 dans la règle « Une fois lancé », Prudent, Réaliste, Ambitieux en un
   petit sélecteur segmenté (rythme.js) : une gorge claire, le niveau choisi
   posé dessus, blanc et légèrement soulevé. La question de la version 3, en
   haut de la page, est retirée le 14 octobre (fil 5d01e599) : la croissance
   se pose dans le mode guidé. */
.ep-rythme-niveaux {
  display: inline-flex; flex-wrap: wrap; gap: 2px; justify-self: start; max-width: 100%; padding: 3px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule);
}
.ep-rythme-niveau {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 30px; padding: 6px 12px; border: 0; border-radius: 999px;
  background: transparent; font: 500 12.5px/1.2 var(--sans); color: var(--ink-3); cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--fluid), color .2s, box-shadow .25s var(--fluid), transform .15s var(--fluid);
}
.ep-rythme-niveau b { font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ep-rythme-niveau:hover { color: var(--ink); }
.ep-rythme-niveau:active { transform: scale(.97); }
.ep-rythme-niveau.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 15, 12, .08), 0 6px 14px -8px rgba(14, 15, 12, .28); }
.ep-rythme-niveau.is-on b { color: var(--ink); }
.ep-rythme-niveau:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Une règle qui change la façon de compter : une ligne d’explication (fil 5fe2e47e). */
.ep-regle-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }

/* ─── Ta rémunération, l'objectif d'abord (fil ae42bc1c, 11 octobre 2026) ───
   En tête, ce que tu veux toucher, en grand ; dessous, ce que chaque façon
   de te payer coûte, et ton choix ; puis « Affiner ta rémunération… », le
   menu des règles (ui/remuneration.js, partiesRemuneration). */
.ep-couche .remu-but { display: grid; gap: 10px; padding: 20px 22px 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--repos); }
/* Le libellé au-dessus, en clair ; le montant, en grand (il l'emporte sur les champs de l'aperçu, libellé dans le cadre). */
html.ep-apercu .ep-couche .remu-but .field:has(> .control:not(.control-bare)) > label { position: static; display: block; margin: 0 0 8px; font: 650 15px/1.3 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--ink); }
html.ep-apercu .ep-couche .remu-but .control { max-width: 360px; min-height: 64px; border-radius: 16px; }
html.ep-apercu .ep-couche .remu-but .field:has(> .control:not(.control-bare)) > .control input { padding: 10px 14px; font: 800 34px/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); }
html.ep-apercu .ep-couche .remu-but .field:has(> .control:not(.control-bare)) > .control .pas { padding-top: 0; }
html.ep-apercu .ep-couche .remu-but .control .affix { font: 600 14px/1.2 var(--sans); color: var(--ink-3); }
.ep-couche .remu-but .field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.ep-couche .remu-but-ajd { margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.ep-couche .remu-but-ajd b { font-weight: 750; color: var(--ink); }
.ep-couche .remu-facons { display: grid; gap: 10px; padding: 18px 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--repos); }
.ep-couche .remu-facons-t { margin: 0; font: 700 15px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.ep-couche .remu-facons .remu-resume, .ep-couche .remu-facons-vide { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ep-couche .remu-facons-vide { padding: 14px 18px; border-radius: 18px; background: var(--surface); }
.ep-couche .remu-facons .remu-estimation { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.ep-couche .ep-brique-corps .remu-synthese { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }

/* ─── La fin d'une mission : les points se cochent un à un, du côté de la
   mascotte, puis « Bravo, mission accomplie », puis « OK, continuer », au
   fondateur (12 octobre ; arrivee.js, carteFin, et guide-versions.js). ─── */
.ep-ar-mf { --apres: calc(var(--n, 0) * 380ms + 250ms); }
.ep-ar-mf-points { display: grid; gap: 6px; width: 100%; max-width: 300px; margin: 0 0 10px; padding: 0; list-style: none; text-align: left; }
.ep-ar-mf-points li { display: flex; align-items: center; gap: 10px; min-width: 0; font: 500 13px/1.35 var(--sans); color: rgba(255, 255, 255, .9); }
.ep-ar-mf-points-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-ar-mf-points-case, .ep-gv-fin-points-case { position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--anis); }
.ep-ar-mf-points-case::after, .ep-gv-fin-points-case::after { content: '✓'; font: 700 12px/1 var(--sans); color: #0E0F0C; }
.ep-gv-fin { --apres: calc(var(--n, 0) * 380ms + 250ms); display: grid; gap: 8px; }
.ep-gv-fin-points { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ep-gv-fin-points li { display: flex; align-items: center; gap: 10px; min-width: 0; font: 500 13.5px/1.35 var(--sans); color: var(--ink); }
/* Un point se lit en entier : deux lignes au plus. */
.ep-gv-fin-points-t { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.ep-gv-bravo { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ep-gv-bravo-coche { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--anis); font-size: 12px; letter-spacing: 0; }
.ep-gv-gain { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.ep-gv-gain b { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  /* Chaque point attend son tour : la case vide, puis la coche qui se pose. */
  .ep-ar-mf-points li, .ep-gv-fin-points li { animation: ep-gv-point .3s var(--fluid) both; animation-delay: calc(var(--k, 0) * 380ms); }
  .ep-ar-mf-points-case, .ep-gv-fin-points-case { animation: ep-gv-case .32s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--k, 0) * 380ms + 200ms); }
  .ep-ar-mf-points-case::after, .ep-gv-fin-points-case::after { animation: ep-gv-coche .25s var(--fluid) both; animation-delay: calc(var(--k, 0) * 380ms + 300ms); }
  @keyframes ep-gv-point { from { opacity: 0; transform: translateY(6px); } }
  @keyframes ep-gv-case { from { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(160, 160, 150, .7); transform: scale(.85); } }
  @keyframes ep-gv-coche { from { opacity: 0; transform: scale(.3); } }
  /* Puis, seulement : le sceau, « Bravo », ce que le dossier y gagne, le geste. */
  .ep-ar-mf-anneau { animation-delay: calc(var(--apres) + .1s); }
  .ep-ar-mf-coche { animation-delay: calc(var(--apres) + .55s); }
  .ep-ar-mf-kicker { animation-delay: calc(var(--apres) + .35s); }
  .ep-ar-mf-titre { animation-delay: calc(var(--apres) + .5s); }
  .ep-ar-mf-gains { animation-delay: calc(var(--apres) + .74s); }
  .ep-ar-mf-suite { animation-delay: calc(var(--apres) + .9s); }
  .ep-ar-mf-eclats i { animation-delay: calc(var(--apres) + 600ms + var(--d, 0) * 50ms); }
  .ep-gv-fin > :not(.ep-gv-fin-points) { animation: ep-ar-replique .4s var(--fluid) both; }
  .ep-gv-fin .ep-gv-bravo { animation-delay: var(--apres); }
  .ep-gv-fin .ep-gv-titre { animation-delay: calc(var(--apres) + .12s); }
  .ep-gv-fin .ep-gv-gain { animation-delay: calc(var(--apres) + .24s); }
  .ep-gv-fin .ep-gv-gestes { animation-delay: calc(var(--apres) + .4s); }
}

/* ─── Le mode guidé, en versions (aperçu, 12 octobre ;
   js/demo/epure/guide-versions.js) : un titre, une phrase, au plus trois
   points, un geste. Tranché le 14 octobre : G5 Chapitres, G8 Mix, et leurs
   deux fusions, G9 et G10 ; G1 à G4, G6 et G7 retirés. Les règles
   communes d'abord. ─── */
.ep-gv-kicker { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.ep-gv-titre { margin: 2px 0 0; font: 700 17px/1.25 var(--display, var(--sans)); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.ep-gv-phrase { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ep-gv-sous { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-4); }
.ep-gv-points { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.ep-gv-points li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
.ep-gv-points li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-gv-points li > b { flex: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ep-gv-points li.is-plus { justify-content: flex-start; background: none; padding: 2px 10px; font-size: 12px; color: var(--ink-4); }
.ep-gv-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 12px; }
.ep-gv-geste { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 13px/1.2 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid), transform .15s var(--fluid); }
.ep-gv-geste:hover { color: var(--ink); background: var(--surface-2); }
.ep-gv-geste.is-principal { padding: 8px 16px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(14, 15, 12, .06), 0 10px 22px -16px rgba(110, 150, 0, .9); }
.ep-gv-geste.is-principal:hover { transform: translateY(-1px); background: var(--accent); color: var(--accent-ink); }
.ep-gv-geste:active { transform: scale(.98); }
.ep-gv-geste:focus-visible, .ep-gv-fermer:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-gv-fermer { position: relative; flex: none; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); font: 400 20px/1 var(--sans); cursor: pointer; }
.ep-gv-fermer::before, .ep-gv-fermer::after { display: none; }
.ep-gv-fermer:hover { background: var(--surface-2); color: var(--ink); }
.ep-gv-fil { min-width: 0; }
/* Une question garde sa carte (sa réponse, son récit), resserrée. */
.ep-ar-dock[class*="is-v-"] .ep-gv-question .ep-ar-q { display: flex; flex-direction: column; gap: 10px; }
.ep-ar-dock[class*="is-v-"] .ep-gv-question .ep-ar-msg.is-courante { padding: 0; background: none; box-shadow: none; }
.ep-ar-dock[class*="is-v-"] .ep-gv-question .ep-ar-titre { font: 700 16px/1.3 var(--display, var(--sans)); white-space: normal; }
/* Fil f9c5739d (13 octobre : « input bloc trop gros, on ne peut valider qu'en
   scrollant ») : dans chaque version, le champ d'une question tient dans sa
   carte et « Valider » reste à côté, visible sans défiler. Le champ
   rétrécit (son texte à 17 px, comme dans la conversation) ; le bouton, non. */
.ep-gv-question .ep-ar-champ { flex: 1 1 auto; min-width: 0; }
.ep-gv-question .ep-ar-nombre { width: 0; min-width: 0; padding: 9px 0; font-size: 17px; }
.ep-gv-question .ep-ar-texte { flex: 1 1 auto; width: 0; min-width: 0; }
.ep-gv-question .ep-ar-valider { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ep-gv-corps.is-neuve { animation: ep-ar-replique .45s var(--fluid) both; }
}
/* ─── Le panneau du mode guidé, G8 · Mix (12 octobre au soir : « pas
   expérientiel, loin du niveau attendu ; ça devrait être Sequoia, la Silicon
   Valley » ; 14 octobre : « G8 · Mix, garde ça, c'est top » — G5, G9 et G10
   retirés). Il ne recouvre pas la page : la carte a sa place réservée, en bas ;
   avec un tiroir ouvert, elle se range à sa gauche, jamais sur « Valider ». ─── */
html.ep-ar-dock-ouvert[data-panneau="mix"] .shell > .main { padding-right: 0; padding-bottom: 0; }
@media (min-width: 900px) { html.ep-ar-dock-ouvert[data-panneau="mix"] .ep-couche { right: 0; bottom: 0; } }
html.ep-ar-dock-ouvert[data-panneau="mix"] .shell > .main { padding-bottom: calc(96px / var(--z, 1)); }
/* Deux mouvements de G5, gardés : le voile qui se lève (la visite) et le texte qui monte (la carte de G8). */
@keyframes ep-g5-voile { from { opacity: 0; } }
@keyframes ep-g5-monte { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } }

/* L'anneau : la partie, faite à --part, autour de la mascotte. */
.ep-g-anneau { position: relative; flex: none; display: grid; place-items: center; width: var(--t); height: var(--t); }
.ep-g-anneau-trait { position: absolute; inset: 0; }
.ep-g-anneau-trait svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ep-g-anneau-trait circle { fill: none; stroke-width: 2.6; }
.ep-g-anneau-trait .fond { stroke: rgba(14, 15, 12, .08); }
.ep-g-anneau-trait .plein { stroke: var(--anis-fort, #A6DC0E); stroke-linecap: round; transition: stroke-dashoffset .9s var(--fluid); }
.ep-g-anneau .ep-gv-mascotte { width: 72%; height: 72%; padding: 0; border: 0; background: transparent; }
.ep-g-anneau .ep-gv-mascotte .mv { width: 100%; height: 100%; }
/* Les gestes compacts : le principal en encre, les autres en texte. */
.ep-g-gestes { display: flex; align-items: center; gap: 4px; margin: 0; }
.ep-g-geste { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 13px/1.2 var(--sans); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--fluid), color .25s var(--fluid), transform .2s var(--fluid), box-shadow .25s var(--fluid); }
.ep-g-geste:hover { background: rgba(14, 15, 12, .05); color: var(--ink); }
.ep-g-gestes > .ep-g-geste.is-principal { padding: 8px 16px; background: #0E0F0C; color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px -10px rgba(14, 15, 12, .7); }
.ep-g-gestes > .ep-g-geste.is-principal:hover { background: #26281F; color: #FFFFFF; transform: translateY(-1px); }
.ep-g-geste:active { transform: scale(.97); }
.ep-g-geste:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }

/* ─── G8 · Mix (13 octobre au soir : « G6, le côté bandeau en bas au-dessus du
   menu, mais il est large, trop gros ; G7, le côté cartes empilées ; dans les
   deux cas, c'est trop gros ») : un bandeau d'une ligne, centré au-dessus du
   menu, qui est la carte du dessus d'une pile ; la suivante se lit sur le bord
   de celle de dessous. Revu plus tard le 13 : sans pli, la phrase toujours
   lisible, des gestes qui disent ce qu'ils font, « Plus tard » en petit. ─── */
.ep-ar-dock.is-v-mix { top: auto; height: auto; padding: 0; overflow: visible; background: none; box-shadow: none; border-radius: 0;
  left: calc(var(--rail-w, 0px) * var(--z, 1) + 16px); right: 16px; bottom: 14px; width: auto; max-width: 500px; margin: 0 auto; transform-origin: 50% 100%; }
.ep-ar-dock.is-v-mix.is-entree { animation: none; }
/* Un tiroir ouvert (14 octobre au soir : « avec le guide, parfois il y a trop de superposition d'éléments ») :
   sur un écran d'ordinateur, la carte se range à sa gauche, à la largeur que le tiroir prend vraiment à
   l'écran (il vit dans la page zoomée, --z) ; le tiroir lui laisse au moins 432 px (la carte, 400 px, et ses
   marges). Plus étroit (tablette, téléphone), la carte reste en bas et le tiroir s'arrête au-dessus d'elle
   (--ep-g8-haut, mesurée par arrivee.js). Jamais l'un sur l'autre. */
@media (min-width: 900px) {
  html.ep-ar-dock-ouvert[data-panneau="mix"] .ep-couche { width: min(760px, calc((100vw - 432px) / var(--z, 1))); }
  html:has(.ep-couche) .ep-ar-dock.is-v-mix { right: calc(min(760px * var(--z, 1), 100vw - 432px) + 16px); }
}
@media (max-width: 899px) {
  html.ep-ar-dock-ouvert[data-panneau="mix"] .ep-couche { bottom: calc(var(--ep-g8-haut, 0px) + 8px); }
}
@media (max-width: 760px) {
  html.ep-ar-dock-ouvert[data-panneau="mix"] .ep-couche { border-radius: 22px; }
}
.ep-g8 { display: grid; }
.ep-g8-pile { position: relative; display: grid; padding-bottom: calc(min(var(--n, 0), 1) * 21px + max(var(--n, 0) - 1, 0) * 6px); }
.ep-g8-carte { grid-area: 1 / 1; align-self: end; min-width: 0; border-radius: 16px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .08), 0 1px 2px rgba(14, 15, 12, .05), 0 18px 34px -22px rgba(14, 15, 12, .5); }
.ep-g8-carte.is-dessous { display: flex; align-items: flex-end; height: 100%; pointer-events: none; transform-origin: 50% 100%; background: #F8F7F2; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .07), 0 1px 2px rgba(14, 15, 12, .04); }
.ep-g8-carte.is-dessous.is-1 { z-index: 1; transform: translateY(21px) scale(.965); }
.ep-g8-carte.is-dessous.is-2 { z-index: 0; transform: translateY(27px) scale(.93); background: #EFEEE8; }
.ep-g8-ensuite { display: flex; align-items: baseline; gap: 7px; width: 100%; min-width: 0; margin: 0; padding: 0 16px 4px; font: 500 11.5px/1.3 var(--sans); color: var(--ink-4); }
.ep-g8-ensuite span { flex: none; font: 650 9.5px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.ep-g8-ensuite b { min-width: 0; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-g8-carte.is-dessus { position: relative; z-index: 2; display: grid; }
/* La ligne : la mascotte dans l'anneau de la partie, l'état et le titre, la croix. */
.ep-g8-ligne { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 6px 0 9px; }
.ep-g8-texte { flex: 1 1 auto; display: grid; gap: 1px; min-width: 0; }
.ep-g8-etat { display: flex; align-items: center; gap: 6px; min-width: 0; font: 700 9.5px/1.25 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ep-g8-etat-marque { flex: none; display: grid; place-items: center; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.ep-g8-etat.is-cours { color: var(--ink); }
.ep-g8-etat.is-cours .ep-g8-etat-marque { background: var(--anis-fort, #A6DC0E); box-shadow: 0 0 0 3px rgba(185, 245, 16, .28); }
.ep-g8-etat.is-faite { color: var(--ink); }
.ep-g8-etat.is-faite .ep-g8-etat-marque { width: 14px; height: 14px; background: var(--ink); }
.ep-g8-etat.is-faite .ep-g8-etat-marque::after { content: '✓'; font: 700 8px/1 var(--sans); color: var(--anis); }
.ep-g8-ou { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--ink-4); }
.ep-g8-ou::before { content: '·'; margin-right: 6px; }
.ep-g8-titre { display: -webkit-box; min-width: 0; margin: 0; font: 650 14px/1.25 var(--display, var(--sans)); letter-spacing: -.01em; color: var(--ink); overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ep-g8-ligne .ep-gv-fermer { flex: none; align-self: flex-start; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); font-size: 16px; line-height: 1; cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-g8-ligne .ep-gv-fermer:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
.ep-g8-ligne .ep-g-anneau .ep-gv-mascotte { cursor: pointer; }
/* Ce qu'il faut savoir, toujours lisible (13 octobre, plus tard : « un mini texte descriptif ; dommage de devoir
   déplier, replier ») : la phrase, une ligne au plus (14 octobre), et où ; une question y ouvre sa case. Aligné sur le titre. */
.ep-g8-corps { padding: 4px 14px 0 48px; }
.ep-g8-corps-in { display: grid; gap: 4px; }
/* Une ligne au plus, en petit (fils 5a9a176a et 18340b68, 14 octobre) : la phrase courte ; en entier, au survol. */
.ep-g8-phrase { display: block; margin: 0; font: 400 11.5px/1.4 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-g8-sous { margin: 0; font: 500 11.5px/1.35 var(--sans); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-g8-corps .ep-gv-points { margin: 2px 0 0; }
.ep-g8-carte .ep-gv-question { display: grid; gap: 8px; max-height: min(46vh, 420px); overflow-y: auto; padding: 2px 0 2px; }
.ep-g8-carte .ep-gv-question :is(.ep-ar-titre, .ep-ar-mission-no, .ep-ar-tag) { display: none; }
.ep-g8-carte .ep-gv-question .ep-ar-msg-aide { margin: 0; font: 400 12.5px/1.45 var(--sans); color: var(--ink-2); }
.ep-g8-carte.is-question .ep-g8-corps { padding-bottom: 10px; }
.ep-g8-carte.is-fin .ep-gv-fin-points { margin: 0; }
/* Les gestes : le principal en premier, qui dit ce qu'il fait ; « Plus tard », un petit lien au bout (« il faut
   inciter à remplir »). */
.ep-g8-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 10px 10px 48px; }
.ep-g8-gestes > .ep-g-geste { min-height: 30px; padding: 6px 11px; font-size: 12.5px; }
.ep-g8-gestes > .ep-g-geste.is-principal { padding: 7px 14px; }
.ep-g8-gestes > .ep-g8-plus-tard { margin-left: auto; padding: 4px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-4); font: 500 11.5px/1.2 var(--sans); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; cursor: pointer; transition: color .2s var(--fluid), text-decoration-color .2s var(--fluid); }
.ep-g8-gestes > .ep-g8-plus-tard:hover { background: none; color: var(--ink-2); text-decoration-color: currentColor; }
.ep-g8-plus-tard:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; border-radius: 4px; }
/* Écrire à Fynomia, quand l'IA répond ici : une barre fine, au pied de la carte. */
.ep-g8-demander { margin: 0; padding: 5px 8px 6px; border-top: 1px solid rgba(14, 15, 12, .06); border-radius: 0 0 16px 16px; background: rgba(14, 15, 12, .022); }
@media (prefers-reduced-motion: no-preference) {
  .ep-g8-carte.is-dessus.is-neuve { animation: ep-g8-monte .5s var(--fluid) both; }
  .ep-g8-carte.is-dessus.is-neuve .ep-g8-corps-in > * { animation: ep-g5-monte .5s var(--fluid) .08s both; }
  .ep-g8-ensuite { animation: ep-g7-ensuite .5s var(--fluid) .25s both; }
  .ep-g8-carte.is-fin .ep-g8-etat { animation: ep-g7-etat .45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--n, 0) * 380ms + 250ms); }
  .ep-g8-carte.is-envol { animation: ep-g8-envol .42s cubic-bezier(.5, 0, .75, .2) forwards; pointer-events: none; }
  @keyframes ep-g8-monte { from { transform: translateY(21px) scale(.965); opacity: .6; } }
  @keyframes ep-g7-ensuite { from { opacity: 0; } }
  @keyframes ep-g7-etat { from { opacity: 0; transform: scale(.85); } }
  @keyframes ep-g8-envol { 30% { transform: translateY(3px); } to { transform: translateY(-46px) scale(.97); opacity: 0; } }
}
@media (max-width: 640px) {
  .ep-ar-dock.is-v-mix { left: 12px; right: 12px; max-width: none; }
  .ep-g8-corps, .ep-g8-gestes { padding-left: 12px; }
  /* Au téléphone, où il n'y a pas de survol : deux lignes plutôt qu'une phrase coupée. */
  .ep-g8-phrase { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* Au téléphone, le choix d'aperçu (tout en bas) monte en haut quand le guide est en bas. Sur un petit écran
   d'ordinateur (900 à 1 023 px), la carte, centrée, atteint le pied : il passe au-dessus d'elle. */
@media (max-width: 899px) {
  html.ep-ar-dock-ouvert[data-panneau="mix"] .ep-apercu-pied { top: 12px; bottom: auto; }
}
@media (min-width: 900px) and (max-width: 1023px) {
  html.ep-ar-dock-ouvert[data-panneau="mix"] .ep-apercu-pied { bottom: calc(var(--ep-g8-haut, 52px) + 10px); }
}

/* ─── Le guidage animé (aperçu ; js/demo/epure/guidage.js) : comment le mode
   guidé emmène jusqu'au chiffre. Posé par-dessus la page, sans jamais prendre
   un clic. La comète est plus bas, « La lumière du guidage ». ─── */
/* La réponse qui vole : remplacée par le trajet de la lumière, et par le chiffre qui se tape. */
html[data-guidage]:not([data-guidage="actuel"]) .qg-envol { opacity: 0 !important; }
/* Le menu, dans le guidage (13 octobre au soir : « faire bump là où le user doit cliquer, sans le trait ni le
   suivi de la souris à ce stade ») : l'entrée bat d'un coup, un trait d'anis en fait le tour (guidage.js, bump). */
.ep-gd-bump { animation: ep-gd-bump .9s cubic-bezier(.34, 1.4, .64, 1) both; }
/* Dans le dock (13 octobre au soir : « je veux juste que ça soit en gros, comme un effet loupe ») : l'entrée grossit
   et se soulève au-dessus du dock, ses voisines un peu ; le trait fait le tour de l'entrée grossie (guidage.js, loupe). */
html.ep-apercu .rail .rail-link.ep-gd-loupe { z-index: 3; transform: translateY(-14px) scale(1.55); background-color: #1E201A; color: #FFFFFF;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .42s cubic-bezier(.34, 1.42, .64, 1), background-color .2s var(--fluid), box-shadow .3s var(--fluid), color .2s var(--fluid); }
html.ep-apercu .rail .rail-link.ep-gd-loupe-voisine { z-index: 2; transform: translateY(-4px) scale(1.12); transition: transform .42s cubic-bezier(.34, 1.42, .64, 1); }
html.ep-apercu[data-menu="dock-long"]:not(.ep-dock-court) .rail .rail-link.ep-gd-loupe > .rail-nom { color: #FFFFFF; }
@keyframes ep-gd-bump { 0% { transform: none; } 28% { transform: scale(1.12); } 52% { transform: scale(.97); } 74% { transform: scale(1.04); } 100% { transform: none; } }
.ep-gd-bump-anneau { position: fixed; z-index: 142; pointer-events: none; transition: opacity .4s var(--fluid); }
.ep-gd-bump-anneau svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ep-gd-bump-anneau rect { fill: none; stroke: var(--anis, #B9F510); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(185, 245, 16, .55)); animation: ep-gd-trace .7s .12s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes ep-gd-trace { to { stroke-dashoffset: 0; } }
.ep-gd-bump-anneau.is-sortie { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ep-gd-bump { animation: none; }
  .ep-gd-bump-anneau rect { animation: none; stroke-dashoffset: 0; }
}
.ep-gd-frappe { position: fixed; z-index: 141; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .08); font: 600 17px/1 var(--sans); letter-spacing: -.01em; color: var(--ink); pointer-events: none; }
.ep-gd-frappe::after { content: ''; width: 2px; height: 1.1em; margin-left: 2px; border-radius: 1px; background: var(--anis-fort, #A6DC0E); animation: ep-gd-curseur .9s steps(1) infinite; }
@keyframes ep-gd-curseur { 50% { opacity: 0; } }
/* Les gestes des versions épurées gardent les classes de ceux d'aujourd'hui (les mêmes gestes), pas leur dessin. */
.ep-gv-gestes > .ep-gv-geste:is(.ep-ar-plus-tard, .ep-ar-mf-suite, .ep-ar-continuer, .ep-ar-commencer, .ep-ar-je-valide, .ep-ar-j-ai-fini, .ep-ar-y-aller-guide) { margin: 0; border: 0; animation: none; }
.ep-gv-gestes > .ep-gv-geste.ep-ar-plus-tard { background: transparent; box-shadow: none; color: var(--ink-4); }
.ep-gv-gestes > .ep-gv-geste.ep-ar-plus-tard:hover { background: var(--surface-2); color: var(--ink); }
.ep-gv-gestes > .ep-gv-geste.is-principal.ep-ar-mf-suite { background: var(--accent); color: var(--accent-ink); }
/* ─── Le mode simple d'une offre (aperçu, fil 0d566cf1 ; js/demo/epure/offre-simple.js) :
   des questions fermées, des réponses en pastilles ; « Simple · Complet » en
   tête du tiroir. S1 une question à la fois, S2 une page de cartes, S3 la
   mascotte qui demande. ─── */
/* « Simple · Complet » (fil 00a4f3cf, 13 octobre : « plus travaillé ») : un
   rail en creux, deux moments de même largeur, un curseur blanc qui glisse de
   l'un à l'autre (transform, la courbe fluide) avant que le tiroir change ;
   chaque mode porte son pictogramme ; dessous, une phrase dit ce qu'il montre. */
.ep-os-tete { justify-self: center; display: grid; justify-items: center; gap: 6px; margin: 0 auto 6px; }
.ep-os-bascule {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 300px; max-width: 100%;
  padding: 4px; border-radius: 999px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule), inset 0 1px 2px rgba(14, 15, 12, .06);
}
.ep-os-curseur {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(14, 15, 12, .12), 0 8px 18px -10px rgba(14, 15, 12, .45);
  transition: transform .34s var(--fluid);
}
.ep-os-bascule.is-complet .ep-os-curseur { transform: translateX(100%); }
.ep-os-mode {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 13.5px/1.2 var(--sans); cursor: pointer;
  transition: color .25s var(--fluid);
}
.ep-os-mode-i { display: inline-grid; place-items: center; width: 18px; height: 18px; opacity: .7; transition: opacity .25s var(--fluid), transform .3s var(--fluid); }
.ep-os-mode-i svg { width: 18px; height: 18px; }
.ep-os-mode:hover { color: var(--ink); }
.ep-os-mode.is-on { color: var(--ink); }
.ep-os-mode.is-on .ep-os-mode-i { opacity: 1; transform: scale(1.06); }
.ep-os-mode:active .ep-os-mode-i { transform: scale(.92); }
.ep-os-bascule-dit { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); text-align: center; }
.ep-os-mode:focus-visible, .ep-os-pastille:focus-visible, .ep-os-nav-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-couche-corps:has(> .ep-os-tete) { display: grid; }
@media (prefers-reduced-motion: reduce) { .ep-os-curseur, .ep-os-mode, .ep-os-mode-i { transition: none; } }
.ep-os { display: grid; gap: 14px; min-width: 0; }
.ep-os-carte { display: grid; gap: 10px; min-width: 0; padding: 18px 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04)); }
.ep-os-titre { margin: 0; font: 700 17px/1.3 var(--display, var(--sans)); letter-spacing: -.01em; color: var(--ink); }
.ep-os-aide { margin: -4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
/* Approfondir : la règle que la question pose (13 octobre au soir), nommée comme dans « Complet ». */
.ep-os-regle-nom { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0 0 -4px; font: 600 12px/1.3 var(--sans); color: var(--ink-3); }
.ep-os-regle-mot { flex: none; padding: 2px 7px; border-radius: 99px; background: var(--anis-lueur, #F4FCDC); box-shadow: inset 0 0 0 1px rgba(154, 199, 13, .45); font: 700 10px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2, #2A2C25); }
.ep-os-champ { min-width: 0; }
.ep-os-champ > .field { max-width: 320px; }
.ep-os-phrase { margin: 0; font: 400 15px/2 var(--sans); color: var(--ink); }
/* « Et ensuite » (fil eeeaf44a) : la phrase, les chiffres dans 2 et 3 ans, puis
   une porte discrète vers les mois un à un. */
.ep-os-ensuite { display: grid; gap: 2px; }
.ep-os-mpm { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.ep-os-mpm .ep-lien { padding: 0; font-size: 12.5px; }
.ep-os-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-os-pastille { display: grid; gap: 2px; justify-items: start; min-height: 44px; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s var(--fluid), background-color .2s var(--fluid), box-shadow .2s var(--fluid), transform .15s var(--fluid); }
.ep-os-pastille-t { font: 600 14px/1.25 var(--sans); }
.ep-os-pastille small { font: 500 12px/1.3 var(--sans); color: var(--ink-4); }
.ep-os-pastille:hover { border-color: var(--ink-4); box-shadow: 0 8px 18px -14px rgba(14, 15, 12, .5); }
.ep-os-pastille:active { transform: scale(.98); }
.ep-os-pastille.is-on { border-color: var(--anis-fort, var(--accent-dim, #9AC70D)); background: var(--anis-lueur, #F4FCDC); box-shadow: inset 0 0 0 1px var(--anis-fort, var(--accent-dim, #9AC70D)); }
.ep-os-pastille.is-on small { color: var(--ink-3); }
.ep-os-fin-dit { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
/* S1 · Pas à pas. */
.ep-os-compte { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.ep-os-points { display: flex; gap: 6px; margin: -6px 0 0; padding: 0; list-style: none; }
.ep-os-points li { width: 8px; height: 8px; border-radius: 99px; background: var(--enfonce, #E7E3D8); transition: width .25s var(--fluid), background-color .25s var(--fluid); }
.ep-os-points li.is-fait { background: var(--ink-4); }
.ep-os-points li.is-ici { width: 22px; background: var(--anis); }
.ep-os.is-pas .ep-os-carte { padding: 22px 24px; }
.ep-os.is-pas .ep-os-titre { font-size: 20px; }
.ep-os-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-os-nav-b { min-height: 38px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 13.5px/1.2 var(--sans); cursor: pointer; }
.ep-os-nav-b:hover { background: var(--surface-2); color: var(--ink); }
.ep-os-nav-b.is-principal { background: var(--accent); color: var(--accent-ink); }
.ep-os-nav-b.is-principal:disabled { opacity: .42; cursor: not-allowed; }
.ep-os-attend { margin-left: auto; font: 500 12px/1.3 var(--sans); color: var(--ink-4); }
.ep-os-nav-b.is-principal:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
@media (prefers-reduced-motion: no-preference) {
  .ep-os.is-pas .ep-os-carte { animation: ep-os-entre .35s var(--fluid) both; }
  @keyframes ep-os-entre { from { opacity: 0; transform: translateX(14px); } }
}
/* La fiche d'une offre validée (fil fc64c62e, 13 octobre : « une fois validé,
   figé ainsi ; modifier chaque élément sans repasser par le questionnaire ») :
   une ligne par réponse, qui s'ouvre sur place ; « Approfondir » en pied. */
.ep-os.is-fiche { gap: 12px; }
.ep-os-fiche-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; }
.ep-os-fiche-etat { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ep-os-fiche-coche { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.ep-os-fiche-coche::after { content: '✓'; font: 700 10px/1 var(--sans); color: var(--anis); }
.ep-os-fiche-dit { margin: 0; font: 600 13px/1.2 var(--sans); color: var(--ink-3); white-space: nowrap; }
.ep-os-lignes { display: grid; margin: 0; padding: 6px; list-style: none; border-radius: 20px; background: var(--surface); box-shadow: var(--repos, 0 0 0 1px rgba(0, 0, 0, .04)); }
.ep-os-ligne + .ep-os-ligne { border-top: 1px solid var(--rule); }
.ep-os-ligne.is-ouverte, .ep-os-ligne.is-ouverte + .ep-os-ligne { border-top-color: transparent; }
.ep-os-ligne-tete { display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr) auto; align-items: baseline; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .2s var(--fluid); }
.ep-os-ligne-tete:hover { background: var(--surface-2); }
.ep-os-ligne-tete:focus-visible, .ep-os-approfondir:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-os-ligne-nom { font: 500 13px/1.35 var(--sans); color: var(--ink-3); }
.ep-os-ligne-val { display: block; min-width: 0; font: 600 14px/1.35 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-os-ligne-val small { margin-top: 2px; font: 400 12.5px/1.4 var(--sans); color: var(--ink-3); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-os-ligne.is-vide .ep-os-ligne-val { color: var(--ink-4); font-weight: 500; }
.ep-os-ligne-geste { font: 600 12.5px/1.2 var(--sans); color: var(--ink-4); transition: color .2s var(--fluid); }
.ep-os-ligne-tete:hover .ep-os-ligne-geste { color: var(--ink); }
.ep-os-ligne.is-ouverte { border-radius: 16px; background: var(--surface-2); }
.ep-os-ligne-corps { display: grid; gap: 10px; padding: 2px 14px 14px; }
.ep-os-ligne-corps .ep-os-titre { font-size: 15px; }
.ep-os-ligne-ok { display: flex; justify-content: flex-end; }
.ep-os-fiche-sous { margin: 4px 0 -4px 6px; font: 700 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.ep-os-fiche-pied { display: grid; gap: 8px; justify-items: start; padding: 0 6px; }
.ep-os-approfondir { display: inline-flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: 600 13.5px/1.2 var(--sans); cursor: pointer; transition: transform .15s var(--fluid); }
.ep-os-approfondir small { font: 500 12px/1.2 var(--sans); color: rgba(255, 255, 255, .7); }
.ep-os-approfondir:active { transform: scale(.97); }
.ep-os-retour { justify-self: start; font: 600 13px/1.2 var(--sans); }
.ep-os-regle { min-width: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ep-os-ligne-corps { animation: ep-os-ligne .3s var(--fluid) both; }
  @keyframes ep-os-ligne { from { opacity: 0; transform: translateY(-4px); } }
}
@media (max-width: 640px) {
  .ep-os-ligne-tete { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'nom geste' 'val val'; row-gap: 2px; }
  .ep-os-ligne-nom { grid-area: nom; }
  .ep-os-ligne-val { grid-area: val; }
  .ep-os-ligne-geste { grid-area: geste; }
}
/* S1, plus souple (12 octobre au soir) : la période au choix, en segments ;
   « Un autre chiffre » ouvre son champ sous les choix. */
.ep-os-depart { display: grid; gap: 12px; justify-items: start; }
.ep-os-periodes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.ep-os-periode { min-height: 32px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 13px/1.2 var(--sans); cursor: pointer; transition: background-color .3s var(--fluid), color .3s var(--fluid), box-shadow .3s var(--fluid); }
.ep-os-periode:hover { color: var(--ink); }
.ep-os-periode.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 15, 12, .12), 0 6px 14px -10px rgba(14, 15, 12, .4); }
.ep-os-periode:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-os-jours { white-space: nowrap; color: var(--ink-2); }
.ep-os-nom { display: grid; gap: 10px; }
.ep-os-nom > .field { max-width: 420px; }
/* La description d'une offre (offres.js, descriptionOffre) : un lien discret ;
   ouverte, une zone qui grandit avec le texte ; remplie, deux lignes. */
.ep-desc { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-top: -4px; }
.ep-desc-ajout, .ep-desc-modifier { flex: none; padding: 2px 0; border: 0; background: none; color: var(--ink-3); font: 500 12.5px/1.3 var(--sans); cursor: pointer; transition: color .2s var(--fluid); }
.ep-desc-ajout:hover, .ep-desc-modifier:hover { color: var(--ink); }
.ep-desc-ajout:focus-visible, .ep-desc-modifier:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.ep-desc-lu { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink-2); font: 400 13px/1.5 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-desc.is-ouverte { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 0; }
.ep-desc-texte { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: var(--field-bg); color: var(--ink); font: 400 14px/1.5 var(--sans); resize: none; outline: 0; transition: background-color .3s var(--fluid), border-color .3s var(--fluid), box-shadow .3s var(--fluid); }
.ep-desc-texte:focus { background: #FFFFFF; border-color: var(--anis); box-shadow: var(--ring); }
.ep-desc-aide { margin: 0; color: var(--ink-4); font: 400 11.5px/1.35 var(--sans); }
@media (max-width: 720px) {
  .ep-os-carte, .ep-os.is-pas .ep-os-carte { padding: 16px; }
  .ep-os.is-pas .ep-os-titre { font-size: 18px; }
  .ep-os-pastille { flex: 1 1 100%; }
}

/* ─────────────── La lumière du guidage (lumieres.js) ───────────────
   Tranché le 13 octobre : la comète (L4), avec le clic du curseur (L1). Elle
   se place par une transformation (le moteur la déplace au ressort) ; sa tête
   s'étire selon sa vitesse, sa traînée s'efface derrière elle ; son étiquette
   dit ce qu'elle fait. Rien ne prend un clic. */
.ep-lx { position: fixed; left: 0; top: 0; z-index: 143; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .32s var(--fluid); will-change: transform; }
.ep-lx.is-la { opacity: 1; }
.ep-lx.is-part { opacity: 0; transition-duration: .42s; }
.ep-lx-corps { position: absolute; left: 0; top: 0; width: 10px; height: 10px; will-change: transform; }
/* L'étiquette : une pastille de verre sombre, un point anis ; elle change en fondu. */
.ep-lx-dit {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; max-width: 240px; padding: 6px 12px 6px 9px;
  border-radius: 999px; background: rgba(14, 15, 12, .86); color: #FFFFFF; font: 600 12.5px/1.15 var(--sans); letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 14px 30px -16px rgba(14, 15, 12, .75);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  opacity: 0; filter: blur(5px); transition: opacity .3s var(--fluid), filter .3s var(--fluid);
}
.ep-lx-dit::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--anis); box-shadow: 0 0 8px rgba(185, 245, 16, .9); }
.ep-lx-dit.is-la { opacity: 1; filter: none; }
/* En vol au-dessus de la carte du guide (elle part de sa mascotte), l'étiquette attend d'en être sortie. */
.ep-lx-dit.is-sous-guide { opacity: 0; }
/* La tête : un point blanc cerclé de graphite, un halo anis ; posée, elle s'efface dans le trait. */
.ep-lx-tete { position: absolute; inset: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1.5px rgba(14, 15, 12, .6), 0 0 14px 4px rgba(185, 245, 16, .85); transition: opacity .35s var(--fluid), transform .45s var(--fluid); }
.ep-lx.is-epouse .ep-lx-tete { opacity: 0; transform: scale(.3); }
.ep-lx-trainee { position: fixed; left: 0; top: 0; z-index: 142; width: 100vw; height: 100vh; pointer-events: none; transition: opacity .42s var(--fluid); }
.ep-lx-trainee.is-part { opacity: 0; }
/* Posée : un trait fait le tour de la case. */
.ep-lx-cadre { position: fixed; left: 0; top: 0; z-index: 141; pointer-events: none; opacity: 0; transition: opacity .4s var(--fluid); }
.ep-lx-cadre.is-la { opacity: 1; }
.ep-lx-cadre svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ep-lx-cadre rect { fill: none; stroke: var(--anis); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 5px rgba(185, 245, 16, .85)); transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1); }
.ep-lx-cadre.is-la rect { stroke-dashoffset: 0; }
/* Ce qu'elle vise passe sous le voile d'un tiroir ou sous la carte du guide (14 octobre au soir : « trop de
   superposition d'éléments ») : la tête, l'étiquette, le trait et la traînée s'effacent (lumieres.js, voiler). */
.ep-lx.is-voilee, .ep-lx-cadre.is-voilee, .ep-lx-trainee.is-voilee { opacity: 0; }

/* Le clic, celui du curseur (L1) : une onde sombre et nette part du point
   cliqué, un éclat anis dedans ; la tête s'enfonce (lumieres.js, dessiner). */
.ep-lx-onde { position: fixed; left: 0; top: 0; z-index: 142; width: 0; height: 0; pointer-events: none; }
.ep-lx-onde::before, .ep-lx-onde::after { content: ''; position: absolute; border-radius: 50%; }
.ep-lx-onde::before { left: -18px; top: -18px; width: 36px; height: 36px; border: 1.5px solid rgba(14, 15, 12, .55); animation: ep-lx-onde .56s cubic-bezier(.22, 1, .36, 1) forwards; }
.ep-lx-onde::after { left: -9px; top: -9px; width: 18px; height: 18px; background: radial-gradient(circle, rgba(185, 245, 16, .7), rgba(185, 245, 16, 0) 70%); animation: ep-lx-eclat .42s ease-out forwards; }
@keyframes ep-lx-onde { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }
@keyframes ep-lx-eclat { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ep-lx, .ep-lx-dit, .ep-lx-cadre, .ep-lx-corps, .ep-lx-tete { transition: none; }
  .ep-lx-cadre rect { transition: none; stroke-dashoffset: 0; }
}

/* ─── L'en-tête du tiroir d'une offre (aperçu, fil e57478ff, 13 octobre :
   « un peu surchargé ; le nom de l'offre semble anecdotique »). Tranché le 13
   au soir : T1, le nom seul (js/demo/epure/tete-versions.js). « Dupliquer »
   et « Supprimer » passent dans « ⋯ » ; le nom prend la place. ─── */
.ep-couche-tete.ep-tt { gap: 12px; }
.ep-tt .ep-tt-nom .ep-couche-titre { font-size: 26px; letter-spacing: -.022em; }
/* Le menu « ⋯ » : un rond, puis une petite carte sous lui, à droite. */
.ep-tt-plus { position: relative; flex: none; }
.ep-tt-plus > summary { list-style: none; }
.ep-tt-plus > summary::-webkit-details-marker { display: none; }
.ep-tt-plus-b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface);
  color: var(--ink-2); font: 700 18px/1 var(--sans); cursor: pointer; user-select: none;
  transition: background-color .2s var(--fluid), border-color .2s var(--fluid);
}
.ep-tt-plus-b:hover, .ep-tt-plus[open] > .ep-tt-plus-b { background: var(--surface-2); border-color: var(--ink-5); }
.ep-tt-plus-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ep-tt-menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; min-width: 190px; padding: 6px;
  border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -18px rgba(14, 15, 12, .45);
  transform-origin: top right; animation: ep-tt-ouvre .22s var(--fluid) both;
}
@keyframes ep-tt-ouvre { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }
.ep-tt-menu > .ep-couche-action { justify-content: flex-start; width: 100%; padding: 9px 10px; border-radius: 10px; }
.ep-tt-menu > .ep-couche-action span { display: inline; }
@media (max-width: 760px) {
  .ep-tt .ep-tt-nom .ep-couche-titre { font-size: 21px; }
}

/* ─── « Tes ventes » (aperçu, fil ba0834e9 ; js/demo/epure/ventes-versions.js). Tranché le 13 au soir :
   la semaine type (« super, on garde ça ; un peu moins fort et gros »), et ses deux sœurs, que l'offre
   choisit — le mois type (une fabrication, des missions) et les abonnés (un logiciel, une micro-crèche).
   Une carte claire : un chiffre qu'on règle, des réglages d'appareil, ce que ça fait. ─── */
.ep-tv { display: grid; gap: 10px; min-width: 0; margin-top: 2px; padding: 12px 14px 11px; border-radius: 16px; background: linear-gradient(180deg, #FFFFFF, #FCFBF8);
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .06), 0 1px 2px rgba(14, 15, 12, .03), 0 14px 28px -26px rgba(14, 15, 12, .3); }
.ep-tv-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.ep-tv-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.ep-tv-kicker { font: 700 10px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ep-tv-aide { font: 500 11.5px/1.3 var(--sans); color: var(--ink-4); }
/* « Semaine type · Mois type » : un segment discret, comme le réglage d'un appareil. */
.ep-tv-vues { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(14, 15, 12, .05); }
.ep-tv-vue { min-height: 22px; padding: 3px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-4); font: 600 11px/1 var(--sans); cursor: pointer; transition: background-color .25s var(--fluid), color .25s var(--fluid), box-shadow .25s var(--fluid); }
.ep-tv-vue:hover { color: var(--ink); }
.ep-tv-vue.is-on { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 2px rgba(14, 15, 12, .1), 0 3px 8px -5px rgba(14, 15, 12, .28); }
.ep-tv-vue:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 1px; }
/* Le chiffre qu'on règle, entre − et +. */
.ep-tv-cadran { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ep-tv-pas { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--ink-2); font: 500 16px/1 var(--sans); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .1), 0 1px 3px -1px rgba(14, 15, 12, .2); transition: transform .15s var(--fluid), box-shadow .2s var(--fluid), color .2s var(--fluid); }
.ep-tv-pas:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .18), 0 4px 10px -6px rgba(14, 15, 12, .4); }
.ep-tv-pas:active { transform: scale(.94); }
.ep-tv-pas:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1px rgba(14, 15, 12, .1); }
.ep-tv-pas:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-tv-grand { display: flex; align-items: baseline; justify-content: center; gap: 7px; min-width: 0; }
.ep-tv-grand .trou { display: inline-flex; min-width: 0; }
.ep-tv-grand .trou-saisie { field-sizing: content; min-width: 2ch; max-width: 100%; padding: 0 2px 1px; border: 0; border-bottom: 1.5px solid transparent; border-radius: 0; background: transparent; color: var(--ink);
  font: 650 24px/1.1 var(--display, var(--sans)); letter-spacing: -.025em; text-align: center; font-variant-numeric: tabular-nums; box-shadow: none; transition: border-color .2s var(--fluid); }
.ep-tv-grand .trou-saisie::placeholder { color: var(--ink-5, #C9C6BB); }
.ep-tv-grand .trou-saisie:hover { border-bottom-color: rgba(14, 15, 12, .12); }
.ep-tv-grand .trou-saisie:focus { outline: none; border-bottom-color: var(--anis-fort, #A6DC0E); }
.ep-tv-grand .trou-saisie:disabled { color: var(--ink-4); }
.ep-tv-unite { min-width: 0; font: 500 12.5px/1.3 var(--sans); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Prudent, Réaliste, Ambitieux : de petites pastilles sous le chiffre. */
.ep-tv-paliers { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ep-tv-palier { display: inline-flex; align-items: baseline; gap: 5px; min-height: 24px; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(14, 15, 12, .04); color: var(--ink-4); font: 600 11px/1.2 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-tv-palier b { font: 650 11.5px/1.2 var(--sans); color: var(--ink-2); }
.ep-tv-palier:hover, .ep-tv-palier.is-on { background: rgba(185, 245, 16, .22); color: var(--ink); }
.ep-tv-palier:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 1px; }
.ep-tv-dit { display: grid; gap: 1px; margin: 0; text-align: center; font: 500 12px/1.4 var(--sans); color: var(--ink-3); }
.ep-tv-dit-an { font-size: 11.5px; color: var(--ink-4); }
/* La semaine type : sept jours qu'on ouvre ou ferme ; le mois en barres fines. */
.ep-tv-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ep-tv-jour { display: grid; place-items: center; height: 28px; padding: 0; border: 0; border-radius: 9px; background: rgba(14, 15, 12, .04); color: var(--ink-4); font: 600 11.5px/1 var(--sans); cursor: pointer;
  transition: background-color .25s var(--fluid), color .25s var(--fluid), transform .15s var(--fluid), box-shadow .25s var(--fluid); }
.ep-tv-jour:hover { background: rgba(14, 15, 12, .07); color: var(--ink-2); }
.ep-tv-jour.is-ouvert { background: rgba(185, 245, 16, .3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(150, 200, 10, .45); }
.ep-tv-jour.is-ouvert:hover { background: rgba(185, 245, 16, .42); }
.ep-tv-jour:active { transform: scale(.94); }
.ep-tv-jour:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-tv-mois { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 2px; height: 18px; padding: 0 2px; }
.ep-tv-mois i { height: 2px; border-radius: 1px; background: rgba(14, 15, 12, .1); }
.ep-tv-mois i.is-ouvert { height: 100%; border-radius: 2px; background: linear-gradient(180deg, rgba(185, 245, 16, .85), rgba(166, 220, 14, .7)); transform-origin: 50% 100%; }
/* Le mois type et les abonnés : la première année, du moteur, en douze barres ; la capacité en pointillé. */
.ep-tv-an { display: grid; gap: 3px; padding: 0 2px; }
.ep-tv-an-barres { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 4px; height: 40px; }
.ep-tv-an-barres i { height: calc(var(--h, 0) * 100%); min-height: 2px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, rgba(185, 245, 16, .85), rgba(166, 220, 14, .65)); transform-origin: 50% 100%; }
.ep-tv-an-cap { position: absolute; left: 0; right: 0; bottom: calc(var(--c, 1) * 100%); display: flex; align-items: flex-end; justify-content: flex-end; height: 0; padding-bottom: 2px; border-bottom: 1px dashed rgba(14, 15, 12, .35); font: 600 9px/1 var(--sans); color: var(--ink-4); pointer-events: none; }
.ep-tv-an-mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; font: 600 9.5px/1 var(--sans); color: var(--ink-4); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .ep-tv-mois i.is-ouvert, .ep-tv-an-barres i { animation: ep-tv-barre .5s var(--fluid) both; animation-delay: calc(var(--i) * 12ms); }
  .ep-tv-an-barres i { animation-delay: calc(var(--i) * 24ms); }
  @keyframes ep-tv-barre { from { transform: scaleY(.2); opacity: .4; } }
}
@media (max-width: 560px) {
  .ep-tv-grand .trou-saisie { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APERÇU — L'ambiance, « Ambient Vitality » (13 octobre, fin d'après-midi :
   « l'interface n'est pas animée, elle est vitale ; un état de repos qui
   n'est pas mort, comme une personne qui respire doucement quand elle dort »).

   Revue le 13 au soir (« je n'arrive pas à voir ce que font A1 et A2 ») :
   chaque version se voit, sur toutes les pages, et reste calme. Revue le 14
   (« tu peux conserver la respiration actuelle, A3 et A3a ; d'autres
   propositions plus soft, j'aime le côté un peu jaune de la page gradient ;
   l'ombre verte qui suit la souris dans Offre et qui bouge toute seule fait
   un peu kitsch, ça se voit trop ») : A2, A3b et A3c retirés, et plus aucun
   vert ne bouge — ni halo d'anis, ni reflet qui glisse ou suit la souris.
   Seul reste l'anneau d'anis d'une règle allumée, posé : il dit « allumée ».
   Le 14 l'après-midi (« Avant, A1, A3 sont à supprimer ») : restent A3a ·
   Aube et les trois propositions douces au jaune d'A3a, A3d à A3f ; le soir
   (« garder A3d seule et retirer A3a, A3e et A3f ») : A3d · Miel seule (plus
   bas), dans l'aperçu comme sur fynomia.fr à la prochaine mise en ligne. Elle
   garde le socle que posaient A1 et A3 (ci-dessous) : l'ombre de tout ce qui
   compte dans le calcul (règles, offres, cartes, le palier en cours), et une
   seule lumière pour toute la page, que chaque surface reçoit. Ce qui est en
   pause dort.

   Physique de ressort : les changements d'état suivent cubic-bezier(.25, 1,
   .5, 1), sans rebond. Le repos : une sinusoïde lente, chaque carte la
   sienne. Mouvement réduit : rien ne bouge, l'ombre reste posée à mi-course.
   ═══════════════════════════════════════════════════════════════════════════ */
/* L'amplitude du flottement : déclarée, elle se transitionne (une carte qu'on touche se pose en douceur). */
@property --av-amp { syntax: '<length>'; inherits: true; initial-value: 1px; }
/* A3 : d'où vient la lumière, de -1 à 1 (de la gauche à la droite ; du haut vers le bas). */
@property --av-sx { syntax: '<number>'; inherits: false; initial-value: -.85; }
@property --av-sy { syntax: '<number>'; inherits: false; initial-value: -.8; }

html.ep-apercu[data-ambiance^="a3"] {
  /* Les changements d'état : un ressort tendu, sans rebond, comme dans un fluide dense. */
  --ressort: cubic-bezier(.25, 1, .5, 1);
  --fluid: var(--ressort);
  /* Le repos : une sinusoïde, lente. */
  --respire: cubic-bezier(.37, 0, .63, 1);
  /* A1, sans couleur : une ombre chaude qui respire. */
  --av-ombre: 40 36 26;
  --av-amp: 1.5px;
  /* Le rythme de l'ombre, que les propositions douces ralentissent. */
  --av-lent: 1;
}
/* A3 et ses variantes : l'ombre au bleu nuit de la charte. */
html.ep-apercu[data-ambiance^="a3"] {
  --av-ombre: 27 37 65;
  --av-amp: 1.75px;
}

/* Chaque carte son rythme : cinq phases, aucune en même temps (le flottement, un aller en 2,4 à 3,9 s ;
   l'ombre, en 2,3 à 3,5 s). */
html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte) { --av-d: 0s; --av-p: 3s; --av-g: 2.6s; }
html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte):nth-child(5n+2) { --av-d: -1.9s; --av-p: 3.6s; --av-g: 3.1s; }
html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte):nth-child(5n+3) { --av-d: -3.3s; --av-p: 2.6s; --av-g: 3.5s; }
html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte):nth-child(5n+4) { --av-d: -.8s; --av-p: 3.9s; --av-g: 2.3s; }
html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte):nth-child(5n+5) { --av-d: -2.6s; --av-p: 2.4s; --av-g: 3.3s; }

@keyframes av-flotte { from { translate: 0 0; } to { translate: 0 calc(-1 * var(--av-amp, 1px)); } }
@keyframes av-resonne { from { opacity: .35; } to { opacity: 1; } }
/* Allumée : l'ombre se charge, puis la carte respire avec les autres. */
@keyframes av-charge { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .7; } }

/* ─── Ce qui vit, dans chaque version : tout ce qui compte dans le calcul ─── */
/* (Deux sélecteurs : :is() prend la spécificité de son argument le plus lourd ; la cellule d'une offre, à part,
   laisse les règles de chaque version passer devant celles-ci.) */
html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on, .ep-carte:not(.is-off), .ep-pj-carte.is-cours),
html.ep-apercu[data-ambiance^="a3"] .ep-of-cellule:has(> .ep-of-carte:not(.is-pause):not(.is-ajout)) {
  position: relative;
}
/* L'anneau d'anis d'une règle reste, posé : il dit « allumée » ; c'est son ombre qui respire. */
html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on) {
  animation: none; box-shadow: 0 0 0 1px rgba(185, 245, 16, .5), 0 1px 2px rgba(14, 15, 12, .04);
}
/* L'ombre qui respire : son opacité va de 0,35 à 1. Sans couleur. */
html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on, .ep-carte:not(.is-off), .ep-pj-carte.is-cours)::after,
html.ep-apercu[data-ambiance^="a3"] .ep-of-cellule:has(> .ep-of-carte:not(.is-pause):not(.is-ajout))::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 18px 30px -14px rgb(var(--av-ombre) / .14);
  opacity: .7;
}
html.ep-apercu[data-ambiance] .ep-of-cellule::after { border-radius: 18px; }
html.ep-apercu[data-ambiance] .ep-pj-carte::after { border-radius: 20px; }

@media (prefers-reduced-motion: no-preference) {
  /* Le repos : le flottement (sur la cellule d'une offre, son interrupteur avec elle). */
  html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on, .ep-carte:not(.is-off), .ep-pj-carte.is-cours),
  html.ep-apercu[data-ambiance^="a3"] .ep-of-cellule:has(> .ep-of-carte:not(.is-pause):not(.is-ajout)) {
    animation: av-flotte var(--av-p) var(--respire) var(--av-d) infinite alternate;
  }
  /* L'ombre respire à son propre rythme. */
  html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on, .ep-carte:not(.is-off), .ep-pj-carte.is-cours)::after,
  html.ep-apercu[data-ambiance^="a3"] .ep-of-cellule:has(> .ep-of-carte:not(.is-pause):not(.is-ajout))::after {
    opacity: .35; animation: av-resonne calc(var(--av-g) * var(--av-lent)) var(--respire) var(--av-d) infinite alternate;
  }
  /* Qu'on la survole ou qu'on y écrive : la carte se pose, en douceur (l'ombre continue). */
  html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte):is(:hover, :focus-within) { --av-amp: 0px; }
  html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique, .ep-regle, .ep-carte, .ep-of-carte) {
    transition: transform .5s var(--fluid), box-shadow .5s var(--fluid), background-color .5s var(--fluid), border-color .5s var(--fluid), opacity .5s var(--fluid), --av-amp .9s var(--ressort);
  }
  html.ep-apercu[data-ambiance^="a3"] :is(.ep-of-cellule, .ep-pj-carte) { transition: --av-amp .9s var(--ressort); }
  /* Allumée à l'instant, ou éveillée au choix de la version (ambiance.js, --av-vague) : son ombre se charge, puis respire. */
  html.ep-apercu[data-ambiance] :is(.ep-brique, .ep-regle, .ep-of-cellule, .ep-carte, .ep-pj-carte).av-eveil:not(.is-en-pause)::after,
  html.ep-apercu[data-ambiance] .ep-of-cellule.av-eveil:has(> .ep-of-carte:not(.is-pause):not(.is-ajout))::after { animation: av-charge 1.4s var(--ressort) var(--av-vague, 0s) both; }
}

/* ─── A3 : une seule lumière pour toute la page ─── */
/* Le cadre de l'application peint son ivoire : il le laisse au papier, sous la lumière. */
html.ep-apercu[data-ambiance^="a3"] .shell { background: transparent; }
/* La lumière elle-même, sur le papier : un jour blanc et chaud, l'ombre douce de l'autre côté. Pas d'anis. */
html.ep-apercu[data-ambiance^="a3"] body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44vmax 34vmax at calc(50% + var(--av-sx) * 36%) calc(50% + var(--av-sy) * 46%), rgba(255, 253, 246, .92), rgba(255, 253, 246, 0) 72%),
    radial-gradient(50vmax 40vmax at calc(50% - var(--av-sx) * 34%) calc(50% - var(--av-sy) * 44%), rgba(96, 82, 52, .085), rgba(96, 82, 52, 0) 72%);
}
/* Les surfaces la reçoivent : leur ombre tombe à l'opposé de la lumière (--av-portee : sa force). */
html.ep-apercu[data-ambiance^="a3"] :is(.ep-of-carte:not(.is-ajout), .ep-carte, .ep-pj-carte-btn, .ep-bloc, .ep-hors, .ep-pl, .sx.is-bandeau, .pitch-cover) {
  box-shadow:
    calc(var(--av-sx) * -9px) calc(var(--av-sy) * -7px + 3px) 22px -10px rgb(27 37 65 / var(--av-portee, .2)),
    calc(var(--av-sx) * -1.5px) calc(var(--av-sy) * -1.5px + .5px) 2px 0 rgba(27, 37, 65, .05);
}
/* Les lignes d'une liste (Achats) : l'ombre de côté seulement, pour ne pas s'empiler d'une ligne à l'autre. */
html.ep-apercu[data-ambiance^="a3"] .cost-row {
  box-shadow: calc(var(--av-sx) * -8px) 2px 16px -10px rgb(27 37 65 / calc(var(--av-portee, .2) - .02));
}
html.ep-apercu[data-ambiance^="a3"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on) {
  box-shadow: 0 0 0 1px rgba(185, 245, 16, .5),
    calc(var(--av-sx) * -7px) calc(var(--av-sy) * -6px + 2px) 18px -9px rgb(27 37 65 / var(--av-portee, .2));
}

/* ─── A3d · Miel (14 octobre : « d'autres propositions plus soft, car j'aime
   le côté un peu jaune de la page gradient » ; seule depuis le soir) : le
   papier ivoire, un jour de miel doux en haut de la page, qui défile avec
   elle. Rien ne flotte ; seules les ombres des cartes respirent, deux fois
   plus lentement qu'en A1. Mouvement réduit : rien ne bouge. ─── */
html.ep-apercu[data-ambiance="a3-miel"] { --av-lent: 2.2; }
/* Le jour de miel appartient au haut de la page (14 octobre au soir : « un peu trop fort ; il doit
   rester en haut : quand je scrolle, on ne doit pas le voir comme quand il est tout en haut ») : un
   tiers plus doux, et il défile avec la page au lieu de suivre l'écran. Une hauteur d'écran, pas
   plus (la petite, au téléphone : svh) : il n'allonge jamais une page courte. */
html.ep-apercu[data-ambiance="a3-miel"] body::before {
  position: absolute; inset: 0 0 auto; height: 100vh; height: 100svh;
  background: radial-gradient(72vmax 54vmax at 24% -12%, rgba(255, 222, 150, .38), rgba(255, 232, 180, .16) 42%, rgba(255, 244, 222, 0) 72%);
}
html.ep-apercu[data-ambiance="a3-miel"] :is(.ep-of-carte:not(.is-ajout), .ep-carte, .ep-pj-carte-btn, .ep-bloc, .ep-hors, .ep-pl, .sx.is-bandeau, .pitch-cover, .cost-row, .ep-brique, .ep-regle) { --av-sx: -.55; --av-sy: -.85; }

@media (prefers-reduced-motion: no-preference) {
  /* A3d : la lumière posée ; rien ne flotte ; l'ombre de chaque carte respire, lentement (--av-lent). */
  html.ep-apercu[data-ambiance="a3-miel"] :is(.ep-brique:not(.is-en-pause), .ep-regle.is-on, .ep-carte:not(.is-off), .ep-pj-carte.is-cours),
  html.ep-apercu[data-ambiance="a3-miel"] .ep-of-cellule:has(> .ep-of-carte:not(.is-pause):not(.is-ajout)) { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APERÇU — Le menu (13 octobre, fin d'après-midi : « propose-moi 4
   alternatives du menu à gauche » ; js/demo/epure/menu-versions.js).
   Tranché le 13 au soir : N5, le dock long (« on peut garder Menu · N5 ·
   Dock long »), N1 à N4 retirés. Sur un écran d'ordinateur ; « Actuel » :
   le menu d'aujourd'hui, tel quel, celui qui est en ligne.
   ═══════════════════════════════════════════════════════════════════════════ */
.rail-ico, .rail-account-initiale { display: none; }
@media (min-width: 900px) {
  /* Le choix d'aperçu et « Démo » gardent leur largeur quand le menu en change. */
  html.ep-apercu[data-menu="dock-long"] :is(.ep-apercu-pied, .demo-choix-compte) { width: 232px; }
  html.ep-apercu[data-menu="dock-long"] .rail-ico { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  html.ep-apercu[data-menu="dock-long"] .rail-account-initiale { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2A2C25; color: #F4F2EB; font: 700 13px/1 var(--sans); }
  /* Le nom, au survol : une infobulle d'encre. */
  html.ep-apercu[data-menu="dock-long"] :is(.rail-link, .rail-account)::after {
    content: attr(data-titre); position: absolute; z-index: 5; padding: 6px 10px; border-radius: 9px; background: #0E0F0C; color: #FFFFFF;
    font: 600 12.5px/1.2 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1);
    transition: opacity .18s var(--fluid), transform .3s var(--fluid);
  }
  html.ep-apercu[data-menu="dock-long"] :is(.rail-link, .rail-account):is(:hover, :focus-visible)::after { opacity: 1; }
}

/* N5 · Dock long : un dock flottant en bas de l'écran, le nom de chaque page à côté de son icône ; la page en pleine
   largeur. « ‹ » le réduit aux icônes pour qui connaît le chemin (html.ep-dock-court, gardé par le navigateur ;
   menu-versions.js) : ses icônes grandissent alors sous la souris. */
@media (min-width: 900px) {
  html.ep-apercu[data-menu="dock-long"] { --rail-w: 0px; }
  html.ep-apercu[data-menu="dock-long"] .shell { grid-template-columns: minmax(0, 1fr); }
  html.ep-apercu[data-menu="dock-long"] .main { padding-bottom: 104px; }
  html.ep-apercu[data-menu="dock-long"] .rail {
    position: fixed; z-index: 60; left: 50%; top: auto; bottom: 12px; height: auto; flex-direction: row; align-items: center; gap: 2px; padding: 6px 7px; overflow: visible;
    border-radius: 20px; background: rgba(14, 15, 12, .86); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 22px 46px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: translateX(-50%);
  }
  /* Le dock laisse les coins du bas libres (menu-versions.js, degager ; 15 octobre : « quand la mascotte est en bas à
     droite, on ne peut pas accéder au chevron ») : il glisse de --ep-dock-dx quand il ne tient pas centré, et suit sans
     retard ses propres changements de taille (html.ep-dock-suivi). Trop étroit pour les noms, il se montre réduit aux
     icônes, sans chevron (html.ep-dock-serre). */
  html.ep-apercu[data-menu="dock-long"] .rail { transform: translateX(calc(-50% - var(--ep-dock-dx, 0px))); transition: transform .45s cubic-bezier(.32, .72, 0, 1); }
  html.ep-apercu[data-menu="dock-long"].ep-dock-suivi .rail { transition: none; }
  html.ep-apercu[data-menu="dock-long"].ep-dock-serre .rail-dock-bascule { display: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-brand { display: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-brand + .rail-section { display: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-section { align-self: center; width: 1px; height: 22px; margin: 0 5px; padding: 0; background: rgba(255, 255, 255, .14); font-size: 0; }
  html.ep-apercu[data-menu="dock-long"] .rail-foot { display: flex; align-items: center; gap: 2px; margin: 0 0 0 3px; padding: 0 0 0 8px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .14); }
  html.ep-apercu[data-menu="dock-long"] .rail-foot .rail-link > span:not(.rail-no) { display: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-foot .rail-link > .rail-no { display: grid; place-items: center; font-size: 15px; }
  /* Le compte mène aux réglages, déjà dans le dock (fil af175cb7 : « mon compte et réglages, c'est la même chose ? Si
     oui, supprime “mon compte” ») : il n'y figure plus. */
  html.ep-apercu[data-menu="dock-long"] .rail-account { display: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-account > :not(.rail-account-initiale) { display: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-account-initiale { width: 26px; height: 26px; font-size: 12px; }
  html.ep-apercu[data-menu="dock-long"] .rail-ico { width: 19px; height: 19px; }
  html.ep-apercu[data-menu="dock-long"] :is(.rail-link, .rail-account)::after { left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); }
  html.ep-apercu[data-menu="dock-long"] :is(.rail-link, .rail-account):is(:hover, :focus-visible)::after { transform: translate(-50%, 0); }
  /* G8 : sa pile se pose au-dessus du menu, avec une marge qui ne se mange jamais (fil 038b0110, 14 octobre au
     soir : « il doit y avoir un padding obligatoire ») ; le temps de la loupe d'une entrée du menu (guidage.js), elle
     monte et lui laisse la place, puis redescend. */
  html.ep-apercu[data-menu="dock-long"] .ep-ar-dock.is-v-mix { bottom: calc(76px * var(--z, 1)); transition: transform .42s cubic-bezier(.34, 1.42, .64, 1); }
  html.ep-apercu[data-menu="dock-long"].ep-gd-loupe-en-cours .ep-ar-dock.is-v-mix { transform: translateY(calc(-26px * var(--z, 1))); }

  /* Réduit aux icônes : l'icône grandit sous la souris, ses voisines un peu. */
  html.ep-apercu[data-menu="dock-long"].ep-dock-court .rail-link > :is(.rail-tick, .badge-dot) { position: absolute; top: 4px; right: 5px; font-size: 7px; }
  html.ep-apercu[data-menu="dock-long"].ep-dock-court .rail-link:hover { transform: translateY(-6px) scale(1.16); }
  html.ep-apercu[data-menu="dock-long"].ep-dock-court :is(.rail-link:has(+ .rail-link:hover), .rail-link:hover + .rail-link) { transform: translateY(-2px) scale(1.06); }

  /* N5 · Dock long : le nom à côté de l'icône, sur une ligne ; une page se soulève à peine sous la souris.
     Réduit ou étiré, c'est la même boîte : elle se resserre ou s'étire d'un seul geste. D'abord en vague, avec un
     ressort (fil 6397f493, 13 octobre au soir : « plus fluide, plus vivant, là c'est trop mécanique ») ; mais la
     vague et le ressort se contrariaient : chaque nom partait à son heure, le dock se tendait d'abord dans le mauvais
     sens, dépassait puis revenait, et les icônes avançaient par à-coups (fil f84ed7ab, 14 octobre : « quand ça
     s'ouvre et se referme, ça doit être plus fluide et plus naturel, là on a l'impression d'une saccade »).
     Désormais, une seule courbe pour tout ce qui change de taille — les noms, les marges, l'espace entre l'icône et
     le nom —, qui part vite et se pose en douceur, sans dépasser : la largeur du dock ne change jamais de sens et
     chaque icône glisse d'un trait. La vie tient dans l'encre : les noms apparaissent l'un après l'autre une fois
     la place ouverte, et s'effacent d'abord quand elle se referme. */
  html.ep-apercu[data-menu="dock-long"] { --ep-dock-courbe: cubic-bezier(.32, .72, 0, 1); --ep-dock-t: .52s; }
  html.ep-apercu[data-menu="dock-long"] .rail-link {
    position: relative; display: inline-flex; align-items: center; gap: 7px; width: auto; height: 36px; padding: 0 11px 0 9px; border-radius: 11px; transform-origin: 50% 100%;
    font: 600 12.5px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
    transition: padding var(--ep-dock-t) var(--ep-dock-courbe), gap var(--ep-dock-t) var(--ep-dock-courbe), height var(--ep-dock-t) var(--ep-dock-courbe), border-radius var(--ep-dock-t) var(--ep-dock-courbe), transform .3s cubic-bezier(.25, 1, .5, 1), background-color .2s var(--fluid), color .2s var(--fluid);
  }
  html.ep-apercu[data-menu="dock-long"].ep-dock-court .rail-link[data-route] { gap: 0; height: 38px; padding: 0 9.5px; border-radius: 12px; }
  html.ep-apercu[data-menu="dock-long"] .rail-link[data-route] > .rail-no { display: none; }
  html.ep-apercu[data-menu="dock-long"]:not(.ep-dock-court) .rail-link[data-route] > :is(.rail-tick, .badge-dot) { margin-left: -2px; font-size: 8px; }
  html.ep-apercu[data-menu="dock-long"] .rail-foot .rail-link { justify-content: center; width: 36px; padding: 0; }
  html.ep-apercu[data-menu="dock-long"]:not(.ep-dock-court) .rail-link:hover { transform: translateY(-2px); }
  html.ep-apercu[data-menu="dock-long"]:not(.ep-dock-court) .rail-link[data-route]::after { display: none; }
  /* Le nom : sa largeur suit la courbe du dock, en même temps que les autres ; son encre arrive ensuite, de gauche à
     droite (--i), et part la première quand le dock se resserre. */
  html.ep-apercu[data-menu="dock-long"] .rail-nom {
    display: inline-block; overflow: hidden; width: var(--w, auto); opacity: 1; transform: none;
    transition: width var(--ep-dock-t) var(--ep-dock-courbe), transform var(--ep-dock-t) var(--ep-dock-courbe), opacity .3s var(--fluid) calc(.1s + var(--i, 0) * 18ms);
  }
  html.ep-apercu[data-menu="dock-long"].ep-dock-court .rail-nom {
    width: 0; opacity: 0; transform: translateX(-6px);
    transition: width var(--ep-dock-t) var(--ep-dock-courbe), transform .3s var(--fluid), opacity .16s var(--fluid);
  }
  /* Un menu redessiné (chaque page) se pose sans transition (menu-versions.js, decorer). */
  html.ep-apercu .rail.is-neuf, html.ep-apercu .rail.is-neuf * { transition: none !important; }
  /* D'une partie à l'autre (13 octobre au soir : « plus fluide et vivant quand on switch d'une partie à l'autre ») :
     la pastille de la page ouverte est dessinée par son entrée (::before) et glisse de l'entrée qu'on quitte à celle
     qu'on choisit (menu-versions.js, glisser). Son bord de tête part le premier et dépasse un peu, l'autre suit : elle
     s'étire, s'affine en chemin, se pose ; l'icône d'arrivée se tasse puis rebondit ; chaque nom change d'encre à son
     passage. --de-g, --de-d : les bords de départ, vus depuis l'arrivée ; --deja : un trajet repris en chemin. */
  html.ep-apercu[data-menu="dock-long"] .rail-link.active { background-color: transparent; }
  html.ep-apercu[data-menu="dock-long"] .rail-link.active::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--accent); pointer-events: none; }
  html.ep-apercu[data-menu="dock-long"] .rail-link.is-arrivee.vers-droite::before {
    animation: ep-dock-bord-d var(--glisse, 440ms) cubic-bezier(.3, 1.3, .5, 1) var(--deja, 0ms) backwards,
      ep-dock-bord-g var(--glisse, 440ms) cubic-bezier(.3, 1.3, .5, 1) calc(var(--deja, 0ms) + var(--tire, 40ms)) backwards,
      ep-dock-affine calc(var(--glisse, 440ms) + var(--tire, 40ms)) cubic-bezier(.45, 0, .55, 1) var(--deja, 0ms) backwards;
  }
  html.ep-apercu[data-menu="dock-long"] .rail-link.is-arrivee.vers-gauche::before {
    animation: ep-dock-bord-g var(--glisse, 440ms) cubic-bezier(.3, 1.3, .5, 1) var(--deja, 0ms) backwards,
      ep-dock-bord-d var(--glisse, 440ms) cubic-bezier(.3, 1.3, .5, 1) calc(var(--deja, 0ms) + var(--tire, 40ms)) backwards,
      ep-dock-affine calc(var(--glisse, 440ms) + var(--tire, 40ms)) cubic-bezier(.45, 0, .55, 1) var(--deja, 0ms) backwards;
  }
  html.ep-apercu[data-menu="dock-long"] .rail-link.is-arrivee, html.ep-apercu[data-menu="dock-long"] .rail-link.is-arrivee > .rail-tick { animation: ep-dock-encre calc(var(--glisse, 440ms) * .8) var(--fluid) var(--deja, 0ms) backwards; }
  html.ep-apercu[data-menu="dock-long"] .rail-link.is-depart { animation: ep-dock-clair calc(var(--glisse, 440ms) * .4) var(--fluid) var(--deja, 0ms) backwards; }
  html.ep-apercu[data-menu="dock-long"] .rail-link.is-arrivee > .rail-ico { animation: ep-dock-rebond .7s linear calc(var(--deja, 0ms) + var(--glisse, 440ms) * .3) backwards; }
  @keyframes ep-dock-bord-g { from { left: var(--de-g); } }
  @keyframes ep-dock-bord-d { from { right: var(--de-d); } }
  @keyframes ep-dock-affine { 30% { top: 2px; bottom: 2px; } }
  @keyframes ep-dock-encre { from, 18% { color: #C3C5BA; } }
  @keyframes ep-dock-clair { from { color: var(--ink); } }
  @keyframes ep-dock-rebond {
    0% { transform: none; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
    32% { transform: scale(.84); animation-timing-function: cubic-bezier(.3, 1.8, .5, 1); }
    100% { transform: none; }
  }
}
/* « ‹ » : au bout du dock long, il le réduit aux icônes ; « › » le rallonge. */
.rail-dock-bascule { display: none; }
@media (min-width: 900px) {
  html.ep-apercu[data-menu="dock-long"] .rail-dock-bascule {
    display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: 4px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #8F9186; cursor: pointer;
    transition: background-color .2s var(--fluid), color .2s var(--fluid);
  }
  html.ep-apercu[data-menu="dock-long"] .rail-dock-bascule:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
  html.ep-apercu[data-menu="dock-long"] .rail-dock-bascule:focus-visible { outline: 2px solid var(--anis, #B9F510); outline-offset: 1px; }
  html.ep-apercu[data-menu="dock-long"] .rail-dock-bascule svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s cubic-bezier(.34, 1.42, .64, 1); }
  html.ep-apercu[data-menu="dock-long"].ep-dock-court .rail-dock-bascule svg { transform: rotate(180deg); }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  html.ep-apercu[data-menu="dock-long"] .rail-link:is(:hover, :has(+ .rail-link:hover)), html.ep-apercu[data-menu="dock-long"] .rail-link:hover + .rail-link { transform: none; }
  html.ep-apercu[data-menu="dock-long"] :is(.rail-link, .rail-nom, .rail-dock-bascule svg) { transition: none !important; }
  html.ep-apercu[data-menu="dock-long"] :is(.rail-link.is-arrivee, .rail-link.is-depart, .rail-link.is-arrivee > :is(.rail-ico, .rail-tick)), html.ep-apercu[data-menu="dock-long"] .rail-link.is-arrivee::before { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   La prise en main (15 octobre 2026 : « un step by step après l'onboarding,
   comme quand on commence un nouveau jeu vidéo » ; prise-en-main.js). Le
   même vocabulaire que la visite : le fond de miel flouté des écrans pleins,
   la mascotte, la carte blanche, le trait d'anis. Hors de #app, donc à la
   taille de l'écran.
   ═══════════════════════════════════════════════════════════════════════════ */
.ep-pm { position: fixed; inset: 0; z-index: 200; pointer-events: none; font-family: var(--sans); }
.ep-pm > * { pointer-events: auto; }
.ep-pm.is-sortie { animation: ep-vi-sort .34s var(--fluid) forwards; pointer-events: none; }
.ep-pm.is-sortie > * { pointer-events: none; }
/* Le temps de la prise en main, le choix d'aperçu et la mascotte du coin se rangent. */
html.ep-pm-ouverte .ep-apercu-pied, html.ep-pm-ouverte .ep-ar-mascotte, html.ep-pm-ouverte .demo-choix-compte { visibility: hidden; }

/* Les deux écrans pleins : l'ouverture et la fin. */
.ep-pm-fond { position: absolute; inset: 0; background: rgba(248, 247, 241, .82); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); animation: ep-pm-fondu .5s var(--fluid) both; }
.ep-pm-scene { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 600px); align-items: center; justify-content: center; gap: 44px; padding: 40px; overflow-y: auto; animation: ep-pm-monte .6s var(--fluid) both; }
.ep-pm-scene-mascotte { position: relative; isolation: isolate; display: grid; place-items: center; width: 260px; height: 260px; }
.ep-pm-scene-mascotte::before { content: ''; position: absolute; z-index: -1; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(244, 249, 228, .62) 64%, rgba(226, 247, 170, .7) 86%, rgba(255, 255, 255, .92) 94%, rgba(226, 247, 170, 0) 100%); box-shadow: 0 0 48px 4px rgba(200, 250, 40, .24), inset 0 0 34px rgba(200, 250, 40, .16); }
.ep-pm-scene-texte { display: grid; justify-items: start; gap: 14px; }
.ep-pm-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ep-pm-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--anis-fort, #A6DC0E); }
.ep-pm-titre { margin: 0; font: 700 clamp(34px, 4.6vw, 56px)/1.02 var(--display, var(--sans)); letter-spacing: -.04em; color: var(--ink); }
.ep-pm-dit { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--ink-2); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.ep-pm-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ep-pm-principal { min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: #0E0F0C; color: #FFFFFF; font: 650 15px/1.2 var(--sans); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 22px -12px rgba(14, 15, 12, .7); transition: transform .2s var(--fluid), background-color .2s var(--fluid); }
.ep-pm-principal:hover { background: #26281F; transform: translateY(-1px); }
.ep-pm-second { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 15px/1.2 var(--sans); cursor: pointer; transition: background-color .2s var(--fluid), color .2s var(--fluid); }
.ep-pm-second:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
:is(.ep-pm-principal, .ep-pm-second, .ep-pm-passer, .ep-pm-hud-fermer):focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 3px; }

/* La carte des sept parties, comme les niveaux d'un jeu : reliées par un trait, chacune son icône et son numéro. */
.ep-pm-carte { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 6px 0 4px; padding: 0; list-style: none; }
.ep-pm-carte::before { content: ''; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 23px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--anis-fort, #A6DC0E), rgba(14, 15, 12, .12)); }
.ep-pm-carte-partie { position: relative; display: grid; justify-items: center; gap: 7px; text-align: center; animation: ep-pm-monte .5s var(--fluid) both; animation-delay: calc(.35s + var(--i) * 70ms); }
.ep-pm-carte-rond { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px rgba(14, 15, 12, .08), 0 10px 20px -12px rgba(14, 15, 12, .45); }
.ep-pm-carte-partie:first-child .ep-pm-carte-rond { background: var(--anis, #B9F510); }
.ep-pm-carte-no { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #0E0F0C; color: #FFFFFF; font: 700 10.5px/1 var(--sans); }
.ep-pm-carte-nom { font: 600 12px/1.25 var(--sans); color: var(--ink-2); }
.ep-pm-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* La fin : ce que tu sais faire, partie par partie, coché à son tour. */
.ep-pm-acquis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; width: 100%; margin: 4px 0 2px; padding: 0; list-style: none; }
.ep-pm-acquis-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(14, 15, 12, .06); animation: ep-pm-monte .45s var(--fluid) both; animation-delay: calc(.3s + var(--i) * 90ms); }
.ep-pm-acquis-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2, #F4F2EB); color: var(--ink); }
.ep-pm-acquis-ico .ep-pm-ico { width: 19px; height: 19px; }
.ep-pm-acquis-nom { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.ep-pm-acquis-nom b { font: 650 13.5px/1.25 var(--sans); color: var(--ink); }
.ep-pm-acquis-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/1.3 var(--sans); color: var(--ink-3); }
.ep-pm-acquis-coche { flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(14, 15, 12, .08); }
.ep-pm-acquis-ligne.is-fait .ep-pm-acquis-coche { background: var(--anis, #B9F510); animation: ep-pm-coche .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.55s + var(--i) * 90ms); }
.ep-pm-acquis-ligne.is-fait .ep-pm-acquis-coche::after { content: ''; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid #0E0F0C; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Le voile percé : là où l'on regarde, un trou net ; le reste, sombre, sans clic. Ce qu'on montre pour le lire ne se
   clique pas non plus (la garde, prise-en-main.js) : seul le geste demandé se fait. */
.ep-pm-voile { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.ep-pm-voile path { fill: rgba(12, 13, 10, .46); pointer-events: none; transition: fill .4s var(--fluid); }
html.ep-pm-bloque .ep-pm-voile path { pointer-events: visiblePainted; cursor: not-allowed; }
.ep-pm.is-reussi .ep-pm-voile path { fill: rgba(12, 13, 10, .36); }
.ep-pm-anneaux { position: fixed; inset: 0; pointer-events: none; }
.ep-pm-anneau { position: absolute; left: 0; top: 0; box-shadow: 0 0 0 2px rgba(185, 245, 16, .95), 0 0 30px 4px rgba(185, 245, 16, .35); transition: box-shadow .3s var(--fluid), background-color .3s var(--fluid); }
/* L'onde : un trait qui s'éloigne de quelques pixels, de la même distance quelle que soit la taille de la cible. */
.ep-pm-anneau::after { content: ''; position: absolute; inset: 0; border-radius: inherit; color: rgba(185, 245, 16, .9); box-shadow: 0 0 0 2px currentColor; opacity: 0; }
.ep-pm-anneau.is-bat::after { animation: ep-pm-onde 1.8s cubic-bezier(.2, .7, .3, 1) infinite; }
.ep-pm-anneau.is-ok { background: rgba(185, 245, 16, .16); box-shadow: 0 0 0 3px #B9F510, 0 0 40px 8px rgba(185, 245, 16, .5); }
/* Ce qu'on montre pour le lire : un trait fin et calme ; ce qu'il faut toucher bat. */
.ep-pm-anneau.is-montre { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 0 4px rgba(185, 245, 16, .35), 0 18px 40px -18px rgba(0, 0, 0, .45); }
.ep-pm-anneau.is-montre.is-ok { background: none; }

/* Le doigt : il montre où cliquer, et appuie, toutes les deux secondes. */
.ep-pm-doigt { position: fixed; left: 0; top: 0; width: 30px; height: 30px; opacity: 0; transition: opacity .25s var(--fluid), transform .45s cubic-bezier(.32, .72, 0, 1); pointer-events: none; }
.ep-pm-doigt.is-la { opacity: 1; }
.ep-pm-doigt svg { position: relative; z-index: 1; display: block; width: 30px; height: 30px; fill: #0E0F0C; stroke: #FFFFFF; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); animation: ep-pm-appui 2s cubic-bezier(.4, 0, .2, 1) infinite; transform-origin: 9px 5px; }
.ep-pm-doigt i { position: absolute; left: -9px; top: -14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(185, 245, 16, .55); opacity: 0; animation: ep-pm-clic 2s ease-out infinite; }

/* En haut : les sept parties, celle en cours allumée. */
.ep-pm-hud { position: fixed; left: 50%; top: 12px; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(14, 15, 12, .07), 0 14px 30px -16px rgba(14, 15, 12, .45); transform: translateX(-50%); animation: ep-pm-descend .5s var(--fluid) both; }
/* Une cible en haut, au milieu : le bandeau s'écarte, à droite ou à gauche (prise-en-main.js, ecarterHud). */
.ep-pm-hud { transition: left .45s cubic-bezier(.32, .72, 0, 1), transform .45s cubic-bezier(.32, .72, 0, 1); }
.ep-pm-hud[data-place="droite"] { left: calc(100% - 16px); transform: translateX(-100%); }
.ep-pm-hud[data-place="gauche"] { left: 16px; transform: none; }
.ep-pm-hud-parties { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ep-pm-hud-parties li { display: block; width: 22px; height: 6px; border-radius: 3px; background: rgba(14, 15, 12, .12); overflow: hidden; transition: width .45s var(--fluid); }
.ep-pm-hud-parties li.is-faite { background: var(--ink-3, #5E6157); }
.ep-pm-hud-parties li.is-ici { width: 34px; background: rgba(166, 220, 14, .3); }
.ep-pm-hud-parties li.is-ici .ep-pm-hud-trait { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--anis-fort, #A6DC0E); animation: ep-pm-remplit .6s var(--fluid) both; }
.ep-pm-hud-dit { margin: 0; white-space: nowrap; font: 500 12.5px/1.2 var(--sans); color: var(--ink-3); }
.ep-pm-hud-dit b { font-weight: 650; color: var(--ink); }
.ep-pm-hud-fermer { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-4); cursor: pointer; }
.ep-pm-hud-fermer:hover { background: rgba(14, 15, 12, .06); color: var(--ink); }
.ep-pm-hud-fermer svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* La bulle : la mascotte et sa carte, à côté de ce qu'on éclaire (la place vient du script). */
.ep-pm-bulle { position: fixed; left: 0; top: 0; display: flex; align-items: flex-end; width: min(420px, calc(100vw - 32px)); will-change: transform; }
.ep-pm-bulle-mascotte { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 -18px -6px 0; }
.ep-pm-bulle-mascotte .mv { width: 54px; height: 54px; filter: drop-shadow(0 6px 10px rgba(14, 15, 12, .3)); }
.ep-pm-bulle-carte { flex: 1 1 auto; min-width: 0; display: grid; gap: 7px; padding: 16px 18px 12px 24px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(14, 15, 12, .06), 0 36px 70px -32px rgba(0, 0, 0, .6), 0 12px 24px -14px rgba(0, 0, 0, .3); }
.ep-pm-bulle.is-nouvelle-partie .ep-pm-bulle-carte { animation: ep-pm-pop .5s cubic-bezier(.34, 1.4, .64, 1) both; }
.ep-pm-bulle-kicker { display: flex; align-items: center; gap: 7px; margin: 0; font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.ep-pm-kicker-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep-pm-bulle-titre { margin: 0; font: 700 19px/1.2 var(--display, var(--sans)); letter-spacing: -.02em; color: var(--ink); }
.ep-pm-bulle-dit { margin: 0; font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); }
.ep-pm-bulle-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ep-pm-bulle-gestes .ep-pm-principal, .ep-pm-bulle-gestes .ep-pm-second { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.ep-pm-attente { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 13px/1.2 var(--sans); color: var(--ink-3); }
.ep-pm-attente-point { width: 8px; height: 8px; border-radius: 50%; background: var(--anis-fort, #A6DC0E); box-shadow: 0 0 0 0 rgba(166, 220, 14, .6); animation: ep-pm-souffle 1.6s ease-out infinite; }
.ep-pm-bravo { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 14px/1.2 var(--sans); color: var(--ink); animation: ep-pm-pop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.ep-pm-bravo-coche { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--anis, #B9F510); }
.ep-pm-bravo-coche::after { content: ''; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid #0E0F0C; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ep-pm-passer { justify-self: start; margin: 0 0 0 -2px; padding: 2px; border: 0; background: none; color: var(--ink-4); font: 500 12px/1.2 var(--sans); cursor: pointer; }
.ep-pm-passer:hover { color: var(--ink); }
/* Au téléphone : la bulle en bas, sur toute la largeur. */
.ep-pm-bulle.is-bas { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform: none !important; }

/* Une étape à lire (une scène de la synthèse, une carte en grand) : une bulle plus étroite, qui laisse la place. */
.ep-pm-bulle.is-lecture { width: min(340px, calc(100vw - 32px)); }
.ep-pm-bulle.is-lecture .ep-pm-bulle-titre { font-size: 17px; }
.ep-pm-bulle.is-lecture .ep-pm-bulle-dit { font-size: 14px; }
/* Sur un écran bas (un portable à 100 %), elle se fait plus petite encore : la partie se lit déjà en haut. */
@media (max-height: 760px) {
  .ep-pm-bulle.is-lecture .ep-pm-bulle-kicker { display: none; }
  .ep-pm-bulle.is-lecture .ep-pm-bulle-carte { gap: 5px; padding: 12px 16px 10px 22px; }
}

/* La carte des parties, à reprendre partie par partie : chacune se clique. */
.ep-pm-carte-btn { display: grid; justify-items: center; gap: 7px; width: 100%; padding: 4px 2px 6px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; transition: background-color .2s var(--fluid), transform .2s var(--fluid); }
.ep-pm-carte-btn:hover { background: rgba(14, 15, 12, .05); transform: translateY(-2px); }
.ep-pm-carte-btn:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-pm-carte.is-choix .ep-pm-carte-partie:first-child .ep-pm-carte-rond { background: #FFFFFF; }
.ep-pm-carte-partie.is-faite .ep-pm-carte-no { background: var(--anis, #B9F510); color: #0E0F0C; }
.ep-pm-carte-partie.is-ici .ep-pm-carte-rond { background: var(--anis, #B9F510); box-shadow: 0 0 0 4px rgba(185, 245, 16, .28), 0 10px 20px -12px rgba(14, 15, 12, .45); }
.ep-pm-carte-partie.is-ici .ep-pm-carte-nom { color: var(--ink); font-weight: 700; }

/*
 * La fin d'une partie (« un masque qui dit super bien joué, mais en mode pro ») : le fond de miel flouté des
 * écrans pleins, au milieu une coche qui se trace, le mot, ce qui a été fait, les sept parties, la suite.
 */
.ep-pm-scene.is-palier { grid-template-columns: minmax(0, 560px); }
.ep-pm-scene.is-palier .ep-pm-scene-texte { justify-items: center; text-align: center; gap: 12px; }
.ep-pm-scene.is-palier .ep-pm-titre { font-size: clamp(34px, 4vw, 50px); }
.ep-pm-scene.is-palier .ep-pm-dit { text-align: center; max-width: 30em; }
.ep-pm-scene.is-palier .ep-pm-boutons { justify-content: center; }
.ep-pm-badge { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E2FB8C, var(--anis, #B9F510) 60%, #A6DC0E); box-shadow: 0 0 0 8px rgba(185, 245, 16, .18), 0 22px 40px -18px rgba(110, 150, 0, .7); animation: ep-pm-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.ep-pm-badge svg { width: 64px; height: 64px; }
.ep-pm-badge-rond { fill: none; stroke: rgba(14, 15, 12, .14); stroke-width: 2; }
.ep-pm-badge-coche { fill: none; stroke: #0E0F0C; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ep-pm-trace .5s .35s var(--fluid) forwards; }
.ep-pm-palier { display: grid; justify-items: center; gap: 16px; width: 100%; margin-top: 2px; }
.ep-pm-acquis-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ep-pm-acquis-puces li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(14, 15, 12, .07); font: 600 13px/1.2 var(--sans); color: var(--ink); animation: ep-pm-monte .4s var(--fluid) both; animation-delay: calc(.5s + var(--i) * 80ms); }
.ep-pm-puce-coche { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--anis, #B9F510); }
.ep-pm-puce-coche::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #0E0F0C; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ep-pm-jauge { display: flex; gap: 5px; width: min(320px, 100%); margin: 0; padding: 0; list-style: none; }
.ep-pm-jauge li { flex: 1 1 0; height: 6px; border-radius: 3px; background: rgba(14, 15, 12, .1); overflow: hidden; }
.ep-pm-jauge li.is-faite { background: var(--ink-3, #5E6157); }
.ep-pm-jauge li.is-juste { background: rgba(166, 220, 14, .3); }
.ep-pm-jauge li.is-juste::before { content: ''; display: block; height: 100%; border-radius: inherit; background: var(--anis-fort, #A6DC0E); animation: ep-pm-remplit .8s .3s var(--fluid) both; }
.ep-pm-ensuite { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 1px rgba(14, 15, 12, .06); text-align: left; }
.ep-pm-ensuite-ico { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--surface-2, #F4F2EB); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ep-pm-ensuite > span { display: grid; gap: 1px; }
.ep-pm-ensuite small { font: 600 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.ep-pm-ensuite b { font: 700 15px/1.25 var(--sans); color: var(--ink); }
.ep-pm-ensuite span > span { font: 400 12.5px/1.3 var(--sans); color: var(--ink-3); }

/* Mon projet : « Reprendre la prise en main », sous « Continuer », tant qu'elle n'est pas finie. */
.ep-pj-reprise { display: inline-flex; align-items: center; gap: 10px; justify-self: end; align-self: end; margin: -2px 0 0 auto; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s var(--fluid); }
.ep-pj-reprise:hover { background: rgba(14, 15, 12, .05); }
.ep-pj-reprise:focus-visible { outline: 2px solid var(--anis-fort, #A6DC0E); outline-offset: 2px; }
.ep-pj-reprise-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--anis, #B9F510); }
.ep-pj-reprise-ico svg { width: 15px; height: 15px; fill: none; stroke: #0E0F0C; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ep-pj-reprise-t { display: grid; gap: 1px; }
.ep-pj-reprise-t b { font: 650 13px/1.2 var(--sans); color: var(--ink); }
.ep-pj-reprise-t small { font: 400 11.5px/1.25 var(--sans); color: var(--ink-3); }

@keyframes ep-pm-fondu { from { opacity: 0; } }
@keyframes ep-pm-monte { from { opacity: 0; transform: translateY(14px); } }
@keyframes ep-pm-descend { from { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes ep-pm-trace { to { stroke-dashoffset: 0; } }
@keyframes ep-pm-pop { 0% { opacity: 0; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes ep-pm-coche { 0% { transform: scale(.3); } 100% { transform: none; } }
@keyframes ep-pm-remplit { from { transform: translateX(-100%); } }
@keyframes ep-pm-onde { 0% { opacity: .9; box-shadow: 0 0 0 2px currentColor; } 100% { opacity: 0; box-shadow: 0 0 0 16px currentColor; } }
@keyframes ep-pm-souffle { 0% { box-shadow: 0 0 0 0 rgba(166, 220, 14, .6); } 100% { box-shadow: 0 0 0 8px rgba(166, 220, 14, 0); } }
@keyframes ep-pm-appui { 0%, 55%, 100% { transform: translate(0, 0) scale(1); } 64% { transform: translate(-2px, -3px) scale(.86); } 74% { transform: translate(0, 0) scale(1); } }
@keyframes ep-pm-clic { 0%, 60% { opacity: 0; transform: scale(.3); } 66% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 899px) {
  .ep-pm-scene { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding: 24px 18px; align-content: center; }
  .ep-pm-scene-mascotte { width: 150px; height: 150px; }
  .ep-pm-carte { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .ep-pm-carte::before { display: none; }
  .ep-pm-acquis { grid-template-columns: minmax(0, 1fr); }
  .ep-pm-hud { top: 8px; gap: 8px; padding: 6px 6px 6px 10px; }
  .ep-pm-hud-parties li { width: 12px; }
  .ep-pm-hud-parties li.is-ici { width: 22px; }
  .ep-pm-scene.is-palier .ep-pm-titre { font-size: 32px; }
  .ep-pm-badge { width: 68px; height: 68px; }
  .ep-pm-badge svg { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-pm *, .ep-pm *::before, .ep-pm *::after { animation: none !important; transition: none !important; }
}
