/* ===================================================================
   tamag0 — recit produit (home et pages cas d'usage)

   Feuille du recit : hero, chaine de valeur, cartes ICP, schema des
   missions, tableau de pilotage, tarification. Les tokens sont ceux
   d'index.html et d'assets/pages.css — ne pas les faire diverger.
   =================================================================== */
/* ===================================================================
   tamag0 — maquette de refonte v25 (Hugo, UX)
   Base : design system réel du repo Softizy/tamag0.ai
   (tokens :root et composants repris de index.html / assets/pages.css)
   Ajouts : router de pages, chaîne de valeur, cartes ICP, schéma
   missions, tableau de pilotage entreprise.
   =================================================================== */

/* ---------- Tokens (identiques au repo — ne pas diverger) ---------- */
:root {
  --bg:          #fafaf9;
  --bg-soft:     #f6f6f4;
  --card:        #ffffff;
  --border:      #e2e2df;
  --border-def:  #c6c6c2;
  --text:        #131311;
  --muted:       #61615b;
  --accent:      #6a3fd6;
  --accent-2:    #8b5cf6;
  --accent-hover:#5a2fbf;
  --accent-orchid:#b56ab0;
  --accent-soft: rgba(106,63,214,.06);
  --accent-bord: rgba(106,63,214,.22);
  --ok:          #16a34a;
  --error:       #dc2626;
  --shadow-sm:   0 1px 3px 0 rgb(0 0 0 / 0.12), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md:   0 4px 10px -2px rgb(0 0 0 / 0.14), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --radius:      12px;
  --maxw:        1120px;
  --maxw-read:   640px;
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:        ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* Encodage sémantique de la maquette : humain = violet de marque,
     agent = orchid de marque. Couple validé (ΔE 13.6 en deutéranopie). */
  --human:  #6a3fd6;
  --agent:  #b56ab0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(106,63,214,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 4vw, 40px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header (repris du repo, + menu Cas d'usage) ---------- */
header {
  padding: 22px 0 8px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand svg { height: 26px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13.5px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop > button {
  font: inherit; font-size: 13.5px; color: var(--muted);
  background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-drop > button:hover, .nav-drop.open > button { color: var(--text); }
.nav-drop > button svg { width: 9px; height: 9px; transition: transform .15s ease; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute; top: calc(100% + 10px); left: -14px; z-index: 60;
  min-width: 268px; padding: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: none;
}
.nav-drop.open .nav-drop__menu { display: block; }
.nav-drop__menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text); line-height: 1.3;
}
.nav-drop__menu a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-drop__menu a span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav-drop__sep { height: 1px; background: var(--border); margin: 6px 10px; }
.btn-sm {
  padding: 9px 15px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--accent); border: none; border-radius: 9px; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.btn-sm:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* ---------- Boutons (repris du repo) ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--accent); border: none; border-radius: 10px; cursor: pointer;
  white-space: nowrap; transition: transform .08s ease, background .15s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-block;
  padding: 13px 21px; font-size: 15px; font-weight: 600;
  color: var(--text); background: var(--card);
  border: 1px solid var(--border-def); border-radius: 10px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Typo (reprise du repo) ---------- */
.badge {
  display: inline-block; max-width: 100%;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-bord);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -1.6px;
  margin: 0 0 18px; font-weight: 700; overflow-wrap: break-word;
}
h1 .grad {
  display: inline-block; max-width: 100%;
  background: linear-gradient(95deg, var(--accent-orchid), var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 .line { display: block; }
.subtitle { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 620px; }
.hero__claim {
  margin: 0 0 18px; max-width: var(--maxw-read);
  font-size: clamp(20px, 2vw, 26px); line-height: 1.25;
  font-weight: 650; letter-spacing: -.3px; color: var(--text);
}
.subtitle strong { color: var(--text); font-weight: 600; }
.eyebrow {
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); font-weight: 600; margin: 0 0 20px;
}
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.6px; margin: 0 0 14px; }
h3 { font-size: 15.5px; margin: 0 0 8px; font-weight: 600; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 8px; max-width: var(--maxw-read); }
.microcopy { margin: 14px 2px 0; font-size: 13px; line-height: 1.6; color: var(--muted); font-family: var(--mono); }
.section { padding: 80px 0 0; }
.section--tight { padding-top: 56px; }

/* ---------- Cartes (reprises du repo) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
/* Trois cartes de meme rang : une grille a 2 colonnes laisserait un trou */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card .ic { font-size: 22px; margin-bottom: 12px; display: block; }
.card h3 { color: var(--text); }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Footer (repris du repo) ---------- */
footer {
  margin-top: 88px; padding: 28px 0 40px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
footer .brand-sm { font-family: var(--mono); }

/* =================================================================
   AJOUTS DE LA REFONTE
   ================================================================= */

/* ---------- Hero ---------- */
.hero { padding: 60px 0 8px; }
.hero__lead { min-width: 0; }
.hero__aside { min-width: 0; margin-top: 34px; }
.hero.hero--solo { display: block; padding-bottom: 0; }
.hero.hero--solo .hero__lead { max-width: 820px; }
@media (min-width: 941px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(44px, 5vw, 76px); align-items: center; }
  .hero__aside { margin-top: 0; }
  .hero.hero--solo { display: block; }
}
.proof-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.proof-pills li {
  font-size: 12.5px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
}
.proof-pills li strong { color: var(--text); font-weight: 600; }
.price-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.price-note b { color: var(--text); font-weight: 600; }

/* Bascule de copy A/B (dispositif de test, retiré en production) */
.abswitch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border-def); border-radius: 999px; padding: 3px;
  background: var(--card); margin-bottom: 18px;
}
.abswitch button {
  font: inherit; font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); background: none; border: 0;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.abswitch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------- Chaîne de valeur : Expert → Compagnon → Équipe → Mission ---------- */
.chain { display: grid; gap: 22px; grid-template-columns: repeat(5, 1fr); margin-top: 8px; }
.chain__step + .chain__step::before {
  content: "→"; position: absolute; left: -18px; top: 50%;
  transform: translateY(-50%); color: var(--border-def);
  font-size: 15px; line-height: 1; pointer-events: none;
}
.chain__step {
  text-align: left; font: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 15px 15px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
  position: relative;
}
.chain__step:hover { border-color: var(--accent-bord); box-shadow: var(--shadow-sm); }
.chain__step[aria-selected="true"] {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.chain__n {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: block; margin-bottom: 8px;
}
.chain__step[aria-selected="true"] .chain__n { color: var(--accent); }
.chain__label { font-size: 15px; font-weight: 600; color: var(--text); display: block; }
.chain__sub { font-size: 12.5px; color: var(--muted); display: block; margin-top: 3px; }
.chain__detail {
  margin-top: 18px; background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.chain__detail h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.chain__detail p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 66ch; }
.chain__detail .who {
  display: inline-block; margin-top: 12px; font-family: var(--mono);
  font-size: 11.5px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-bord);
  padding: 3px 9px; border-radius: 999px;
}

/* ---------- Cartes ICP ---------- */
.icp-group + .icp-group { margin-top: 26px; }
.icp-group__label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.icp-group__label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.icp-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.icp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.icp {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 21px; box-shadow: var(--shadow-sm);
  color: inherit; transition: border-color .15s ease, transform .1s ease;
}
.icp:hover { border-color: var(--accent-bord); transform: translateY(-2px); text-decoration: none; }
.icp__ic { font-size: 20px; margin-bottom: 12px; }
.icp__name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.icp__promise { font-size: 14px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.icp__alt { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 11px; }
.icp__alt b { color: var(--text); font-weight: 600; }
.icp__go { margin-top: 12px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Équipe spécialisée (rôles) ---------- */
.roles { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.roles li {
  font-size: 13px; color: var(--text);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px;
}
.roles li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--agent); flex: 0 0 auto;
}
.roles li.is-human::before { background: var(--human); }
.pricebox {
  margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.pricebox > div { padding: 20px 22px; }
.pricebox > div + div { border-left: 1px solid var(--border); background: var(--accent-soft); }
.pricebox .p-amount { font-size: 22px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.pricebox .p-when { font-size: 12.5px; color: var(--muted); font-family: var(--mono); margin-bottom: 6px; }
.pricebox .p-unit { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Schéma missions : frontière de confidentialité ---------- */
.mission-map {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
  margin-top: 8px;
}
.ws { padding: 24px 24px 26px; }
.ws__title {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.ws__title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--human); }
.ws--client { background: var(--bg-soft); }
.ws--client .ws__title::before { background: var(--agent); }
.ws__box {
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  padding: 14px 15px; font-size: 13.5px;
}
.ws__box + .ws__box { margin-top: 10px; }
.ws__box b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 3px; }
.ws__box span { color: var(--muted); font-size: 12.5px; }
.ws__box.is-locked { border-style: dashed; }
.ws__box.is-locked b::after {
  content: ""; display: none; float: right; font-family: var(--mono); font-weight: 500;
  font-size: 10.5px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}
.frontier {
  position: relative; width: 74px;
  background:
    repeating-linear-gradient(180deg, var(--border-def) 0 7px, transparent 7px 15px)
    center / 1px 100% no-repeat;
}
.frontier__label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--card); padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px;
}
.promo-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.promo-step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px; box-shadow: var(--shadow-sm); position: relative;
}
.promo-step__n {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-bord);
  border-radius: 999px; padding: 2px 8px; display: inline-block; margin-bottom: 10px;
}
.promo-step h3 { font-size: 14.5px; color: var(--text); }
.promo-step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.promo-step--ok { border-color: rgba(22,163,74,.4); }
.promo-step--ok .promo-step__n { color: var(--ok); background: rgba(22,163,74,.07); border-color: rgba(22,163,74,.3); }

/* ---------- Pilotage entreprise (tableau de bord) ---------- */
.dash {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-md); overflow: hidden; margin-top: 8px;
}
.dash__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.dash__title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.dash__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.kpi { padding: 20px 20px; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi__label { font-size: 12px; color: var(--muted); margin-bottom: 7px; line-height: 1.35; }
.kpi__val { font-size: 27px; font-weight: 700; letter-spacing: -.8px; color: var(--text); line-height: 1; }
.kpi__val small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi__sub { font-size: 12px; color: var(--muted); margin-top: 7px; font-family: var(--mono); }
.dash__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.dash__col { padding: 20px; }
.dash__col + .dash__col { border-left: 1px solid var(--border); }
.dash__h {
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.mrow { padding: 12px 0; border-top: 1px solid var(--border); }
.mrow:first-of-type { border-top: 0; padding-top: 0; }
.mrow__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mrow__name { font-size: 14px; font-weight: 600; color: var(--text); }
.mrow__cli { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.mrow__h { font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: nowrap; }
.split {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  margin-top: 9px; background: var(--bg-soft);
}
.split i { display: block; height: 100%; }
.split .s-human { background: var(--human); }
.split .s-agent { background: var(--agent); }
.mrow__legend { font-size: 12px; color: var(--muted); margin-top: 7px; display: flex; gap: 14px; flex-wrap: wrap; }
.mrow__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot--human { background: var(--human); }
.dot--agent { background: var(--agent); }
.legend-top { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.legend-top span { display: inline-flex; align-items: center; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, max-content) minmax(60px, 1fr) 52px; align-items: center; gap: 10px; margin-bottom: 11px; }
.bar-row__k { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row__track { height: 9px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 999px; background: var(--agent); }
.bar-row__v { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.dash__note {
  padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg-soft);
  font-size: 12px; color: var(--muted);
}

/* ---------- Duo humain ↔ compagnon (équipes augmentées) ---------- */
.duos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.duo {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.duo__pair { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--human); }
.chip--agent::before { background: var(--agent); }
.duo__link { color: var(--muted); font-size: 15px; }
.duo p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Parcours d'acces direct des metiers ---------- */
.path__tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.path__tab {
  text-align: left; cursor: pointer; font: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color .15s, box-shadow .15s;
}
.path__tab:hover { border-color: var(--accent-bord); box-shadow: var(--shadow-sm); }
.path__tab[aria-selected="true"] { border-color: var(--accent); box-shadow: var(--shadow-sm); background: var(--accent-soft); }
.path__who { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.path__tab[aria-selected="true"] .path__who { color: var(--accent); }
.path__ask { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.path__ctx { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.path__steps { list-style: none; margin: 26px 0 0; padding: 0; }
.pstep { display: grid; grid-template-columns: 34px 1fr; gap: 16px; position: relative; padding-bottom: 22px; }
.pstep:last-child { padding-bottom: 0; }
/* Rail de progression : relie les etapes sans suggerer un automatisme continu */
.pstep:not(:last-child)::before {
  content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px;
  width: 2px; background: var(--border-def);
}
.pstep__n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--bg-soft);
  border: 1px solid var(--border-def); color: var(--muted); position: relative; z-index: 1;
}
.pstep__body { padding-top: 3px; }
.pstep__actor { margin-bottom: 8px; }
.pstep__body h3 { font-size: 16px; color: var(--text); margin: 0 0 5px; }
.pstep__body p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 68ch; }
/* Le point d'arret doit se voir avant d'etre lu : c'est la garantie de controle */
.pstep--gate .pstep__n { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pstep--gate .pstep__body {
  border: 1px solid var(--accent-bord); background: var(--accent-soft);
  border-radius: var(--radius); padding: 15px 17px;
}
.pstep--gate .pstep__body h3 { color: var(--accent); }
.pstep__stop {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--card); border: 1px solid var(--accent-bord);
  border-radius: 999px; padding: 4px 11px;
}
.path__guard {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-soft);
  font-size: 14.5px; color: var(--text);
}
.path__guard b { color: var(--text); }
.path__guard span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .path__tabs { grid-template-columns: 1fr; }
  .pstep { grid-template-columns: 28px 1fr; gap: 13px; }
  .pstep__n { width: 28px; height: 28px; font-size: 12px; }
  .pstep:not(:last-child)::before { left: 13px; top: 28px; }
}

/* ---------- Liste sécurité ---------- */
.seclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; margin: 8px 0 0; padding: 0; list-style: none; }
.seclist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.seclist li b { color: var(--text); font-weight: 600; display: block; font-size: 14.5px; margin-bottom: 2px; }
.seclist .tick {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-bord);
  color: var(--accent); font-size: 11px; display: grid; place-items: center; margin-top: 2px;
}

/* ---------- Bloc CTA final ---------- */
.cta-final {
  margin-top: 84px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); padding: 52px 28px;
}
.cta-final h2 { margin-bottom: 12px; }
.cta-final .lede { margin: 0 auto 26px; }
.cta-final .cta-row { justify-content: center; }

/* ---------- Encart contact (missions / entreprise) ---------- */
.contact-box {
  margin-top: 30px; border: 1px solid var(--accent-bord); background: var(--accent-soft);
  border-radius: var(--radius); padding: 28px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.contact-box h3 { font-size: 18px; margin: 0 0 6px; color: var(--text); }
.contact-box p { margin: 0; font-size: 14px; color: var(--muted); max-width: 54ch; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain__step:nth-child(odd) + .chain__step::before { content: "→"; }
  .chain__step:nth-child(even) + .chain__step::before {
    content: "↓"; left: 50%; top: -17px; transform: translateX(-50%);
  }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .dash__body { grid-template-columns: 1fr; }
  .dash__col + .dash__col { border-left: 0; border-top: 1px solid var(--border); }
  .icp-grid, .icp-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .duos { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mission-map { grid-template-columns: 1fr; }
  .frontier { width: auto; height: 58px; background:
    repeating-linear-gradient(90deg, var(--border-def) 0 7px, transparent 7px 15px)
    center / 100% 1px no-repeat; }
  .frontier__label { transform: translate(-50%, -50%); }
  .promo-flow { grid-template-columns: 1fr; }
  .pricebox { grid-template-columns: 1fr; }
  .pricebox > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .seclist { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* libelles de barres : sur une ligne propre, jamais tronques */
  .bar-row { grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 14px; }
  .bar-row__k { white-space: normal; }
  .bar-row__track { grid-column: 1 / -1; }
  .chain { grid-template-columns: 1fr; }
  .chain__step + .chain__step::before,
  .chain__step:nth-child(odd) + .chain__step::before,
  .chain__step:nth-child(even) + .chain__step::before {
    content: "↓"; left: 50%; top: -17px; transform: translateX(-50%);
  }
  .cards, .icp-grid, .icp-grid--2 { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 0; }
  .section { padding-top: 56px; }
  header { align-items: flex-start; padding: 16px 0 4px; gap: 12px; }
  .header-actions { width: 100%; gap: 10px; justify-content: flex-start; }
  .site-nav { order: 1; width: 100%; justify-content: flex-start; gap: 15px; }
  .header-actions .btn-sm { order: 2; width: 100%; text-align: center; }
  .hero { padding-top: 26px; }
  .nav-drop__menu { left: 0; }
  .footer-links { justify-content: flex-start; }
  .dash__kpis { grid-template-columns: 1fr; }
  .kpi + .kpi { border-left: 0; border-top: 1px solid var(--border); }
  .cta-final { padding: 38px 20px; }
}

/* ---------- Relevé de mission (repris de docs/design/facturation-temps) ---------- */
.equation {
  margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.equation .expr { font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); color: var(--text); font-weight: 600; }
.equation .expr em { font-style: normal; color: var(--muted); font-weight: 400; }
.equation .rule { height: 1px; background: var(--border); margin: 14px 0; }
.equation p { margin: 0; font-size: 13.5px; color: var(--muted); }
.equation p b { color: var(--text); }

.sheet { overflow-x: auto; }
table.rel { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.rel th, table.rel td { text-align: left; padding: 12px 14px; vertical-align: top; }
table.rel thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.rel thead th small { display: block; font-size: 10px; text-transform: none; letter-spacing: 0; opacity: .8; }
table.rel tbody tr + tr td { border-top: 1px solid var(--border); }
table.rel td.num { font-family: var(--mono); }
.person { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  color: var(--human); background: var(--accent-soft); border: 1px solid var(--accent-bord);
}
.person b { display: block; font-size: 13.5px; color: var(--text); }
.person small { display: block; font-size: 11.5px; color: var(--muted); }
.stack b { display: block; font-size: 13.5px; color: var(--text); }
.stack small { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--font); }
.meter { height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 6px 0 4px; min-width: 92px; max-width: 210px; }
.meter i { display: block; height: 100%; background: var(--human); }
.meter.warn i { background: #b45309; }
.meter.bad i { background: var(--error); }
/* Le pourcentage et son libelle ne doivent jamais se couper en deux lignes :
   « 97,4 » sur une ligne et « % » sur la suivante se lit comme deux valeurs. */
.gfoot {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--muted); max-width: 240px;
}
.gfoot > span { white-space: nowrap; }
.gfoot > span + span { white-space: normal; text-align: right; }
.gfoot .over { color: var(--error); }
.pill-s {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
  border: 1px solid var(--border-def); color: var(--muted); background: var(--card);
}
.pill-s.good { color: var(--ok); border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.07); }
.pill-s.warn { color: #b45309; border-color: rgba(180,83,9,.35); background: rgba(180,83,9,.07); }
.pill-s.bad  { color: var(--error); border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.07); }
.pill-s.accent { color: var(--accent); border-color: var(--accent-bord); background: var(--accent-soft); }
.flag { display: block; font-size: 11px; color: var(--error); font-family: var(--font); }
.modes-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 760px) { .modes-2 { grid-template-columns: 1fr; } }

/* Deux flux de reglement — aucun montant, la separation seule est demontree */
.flows {
  margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 26px 24px;
}
/* Une seule source, deux destinations : l'entreprise ne doit jamais paraitre payer deux fois */
.flow { display: grid; grid-template-columns: 1fr minmax(190px, 2fr) 1fr; align-items: center; gap: 26px 14px; }
.flow__src { grid-row: 1 / span 2; }
.flow__node {
  border: 1px solid var(--border-def); border-radius: 10px; background: var(--bg);
  padding: 13px 12px; text-align: center; font-weight: 650; font-size: 14.5px; color: var(--text);
}
.flow__node small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; }
.flow__node--accent { border-color: var(--accent-bord); background: var(--accent-soft); color: var(--accent); }
.flow__link { text-align: center; }
/* Rappel d'origine : en colonne, sans lui, on lit une chaine entreprise → prestataire → tamag0 */
.flow__from { display: none; font-size: 12px; color: var(--muted); }
.flow__lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.flow__line {
  display: block; position: relative; height: 2px; margin: 9px 16px 9px 0;
  background: linear-gradient(90deg, var(--border-def), var(--accent-bord));
}
.flow__line::after {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  border-left: 9px solid var(--accent-bord); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.flow__mode { display: block; font-size: 12.5px; color: var(--muted); }
.flows__claim {
  margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 15.5px; font-weight: 650; color: var(--text);
}
.flows__sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 72ch; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow__src { grid-row: auto; }
  .flow__from { display: block; margin-bottom: 2px; }
  .flow__link { margin-top: 8px; }
  .flow__line { margin: 9px auto; width: 2px; height: 26px; background: linear-gradient(180deg, var(--border-def), var(--accent-bord)); }
  .flow__line::after {
    right: auto; left: 50%; top: auto; bottom: -10px; transform: translateX(-50%);
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 9px solid var(--accent-bord); border-bottom: 0;
  }
}

/* Releve : cartes empilees sur mobile — l'etat du plafond doit rester visible */
@media (max-width: 760px) {
  table.rel, table.rel tbody, table.rel tr, table.rel td { display: block; width: 100%; }
  table.rel { min-width: 0; }
  table.rel thead { display: none; }
  table.rel tbody tr {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 15px; margin-bottom: 12px; background: var(--card);
  }
  table.rel tbody tr + tr td { border-top: 0; }
  table.rel td { padding: 0; }
  table.rel td + td {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline; gap: 3px 14px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  }
  table.rel td[data-label]::before {
    content: attr(data-label); grid-column: 1; grid-row: 1;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em;
    text-transform: uppercase; color: var(--muted);
  }
  table.rel td[data-label] > * { grid-column: 2; justify-self: end; text-align: right; }
  /* la jauge a besoin de sa propre ligne : le libelle passe au-dessus.
     Le crochet est une classe, jamais le libelle : celui-ci est traduit. */
  table.rel td.gauge { display: block; }
  table.rel td.gauge::before { display: block; margin-bottom: 4px; }
  table.rel td.gauge > * { text-align: left; justify-self: stretch; max-width: 260px; }
  .meter, .gfoot { max-width: none; width: auto; }
  .gfoot { justify-content: space-between; gap: 8px; white-space: nowrap; }
}

/* ---------- Hub : tamag0 au centre, les outils en points d'entree ---------- */
.hub { margin-top: 26px; }
.hub__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px;
}
.hub__cap {
  width: 100%; text-align: center; margin: 0 0 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.hub__src {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; font-size: 12.5px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
}
.hub__src b { font-weight: 600; color: var(--text); font-size: 12.5px; }
.hub__src--in { border-color: var(--accent-bord); background: var(--accent-soft); }
.hub__src--in b { color: var(--accent); }
.hub__arrows {
  display: block; margin: 12px auto 0; width: 2px; height: 24px;
  background: linear-gradient(180deg, var(--border-def), var(--accent-bord));
  position: relative;
}
.hub__arrows::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 9px solid var(--accent-bord);
}
.hub__core {
  margin-top: 22px; padding: 22px 24px;
  border: 1.5px solid var(--accent-bord); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(106,63,214,.05), var(--card) 60%);
  box-shadow: var(--shadow-sm);
}
.hub__core h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.hub__core > p { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 68ch; }
.hub__grid {
  margin-top: 16px; display: grid; gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hub__cell {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card);
}
.hub__cell b { display: block; font-size: 13.5px; }
.hub__cell span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hub__back {
  margin: 14px 0 0; padding-top: 13px; border-top: 1px dashed var(--border-def);
  font-size: 13.5px; color: var(--muted);
}
.hub__back b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hub__grid { grid-template-columns: 1fr; } }

/* ---------- Bloc informatif « emmenez votre compagnon » (aucun CTA) ---------- */
.bring {
  margin-top: 30px; padding: 20px 22px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent-orchid);
  border-radius: var(--radius); background: var(--card);
}
.bring h3 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; }
.bring p { margin: 7px 0 0; font-size: 14.5px; color: var(--muted); max-width: 74ch; }
.bring__how {
  margin: 13px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.bring__how li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted);
}

/* ================= v3 — home Enterprise-centric ================= */

/* Cadre de vision au-dessus du hero */
/* Casse normale, volontairement : une phrase de vision se lit, une etiquette
   de section se scanne. L'uppercase du .eyebrow en ferait la seconde. */
.vision {
  margin: 0 0 14px; font-size: 17px; font-weight: 500;
  color: var(--muted); letter-spacing: .01em;
}
@media (max-width: 640px) { .vision { font-size: 15.5px; } }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 620px; }
.hero-note b { color: var(--text); }

/* Manifeste : la place de l'humain */
.manifesto {
  border: 1px solid var(--accent-bord); background: var(--accent-soft);
  border-radius: var(--radius); padding: 30px 32px;
}
@media (max-width: 640px) { .manifesto { padding: 22px 18px; } }
.manifesto h2 { margin: 6px 0 12px; }
.manifesto .claim { margin: 0 0 22px; font-size: 16.5px; color: var(--text); max-width: 740px; }
.manifesto__grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .manifesto__grid { grid-template-columns: 1fr; } }
.manifesto__grid div {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.manifesto__grid b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.manifesto__grid span { display: block; font-size: 13.5px; color: var(--muted); }

/* Le recit commun, en quatre temps */
.arc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
@media (max-width: 820px) { .arc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .arc { grid-template-columns: 1fr; } }
.arc__t {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 10px; padding: 12px 14px;
}
.arc__n { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.arc__l { display: block; font-size: 14.5px; font-weight: 600; }
.arc__s { display: block; font-size: 12.5px; color: var(--muted); }

/* Demonstration a deux scenes — v6 : un parcours, plus une grille.
   Quatre colonnes cote a cote se COMPARENT ; un parcours numerote
   s'ENCHAINE. Le fil vertical et la numerotation viennent de .pstep,
   deja eprouves plus bas dans la page. */
.beats { display: block; margin-top: 22px; }
.beat__k {
  display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.pstep--gate .beat__k { color: var(--accent); }
.pstep__body > p { margin: 0 0 10px; font-size: 14px; color: var(--muted); max-width: 68ch; }
.pstep__body > p:last-of-type { margin-bottom: 0; }
.pstep__body > p b { color: var(--text); }

/* Dans une colonne large, un bloc interne laisse a lui-meme s'etire : une
   jauge de 900 px ne se compare plus, une carte de demande devient une
   bande. Chaque famille reprend une largeur ou une grille propre. */
.pstep__body .routes {
  display: grid; gap: 9px; margin-bottom: 10px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.pstep__body .routes .route { margin-bottom: 0; }
.pstep__body .actors { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pstep__body .decs { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pstep__body .decs .dec { margin-bottom: 0; }
.pstep__body .brief { max-width: 640px; }
.pstep__body .tline { max-width: 520px; }
.pstep__body .made { max-width: 68ch; }
@media (max-width: 700px) {
  .pstep__body .routes, .pstep__body .actors, .pstep__body .decs { grid-template-columns: 1fr; }
}

/* Les deux trajets d'une demande. Le liset de gauche porte la couleur de ce
   qui recoit la demande : le compagnon, ou la personne qui la cadre. */
.modes { display: grid; gap: 9px; margin-bottom: 10px; }
.pstep__body .modes { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.mode {
  border: 1px solid var(--border); border-left: 3px solid var(--agent);
  border-radius: 10px; padding: 9px 11px; background: var(--bg-soft);
}
.mode--h { border-left-color: var(--human); }
.mode b { display: block; font-size: 13px; }
.mode__w { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.mode__s { display: block; font-size: 12.5px; margin-top: 5px; }
@media (max-width: 700px) { .pstep__body .modes { grid-template-columns: 1fr; } }

/* Une demande cadree par la personne : la destination est un humain. */
.route__l--via .route__d { background: var(--human); }

/* Acteurs d'une scene : humain ou compagnon */
.actors { display: grid; gap: 8px; margin-bottom: 10px; }
.actor {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--bg-soft);
}
.actor__d { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--agent); }
.actor--human .actor__d { background: var(--human); }
.actor b { display: block; font-size: 13px; }
.actor span { display: block; font-size: 12.5px; color: var(--muted); }
/* quotes:none — le navigateur ajoute ses propres guillemets autour d'un <q>,
   qui se doublent avec ceux du contenu (et sans les espaces fines francaises). */
.actor q { display: block; font-size: 12.5px; color: var(--muted); font-style: italic; quotes: none; }

/* Deux temps mesures : humain et agent.
   Libelle et valeur sur une ligne, jauge pleine largeur en dessous : dans une
   colonne etroite, une jauge en 1fr devient trop courte pour etre comparee. */
.tline { display: grid; gap: 10px; margin: 2px 0 10px; }
.tline__k {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 4px;
}
.tline__v { font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: nowrap; }
/* display:block obligatoire : un span inline ne prend pas sa hauteur dans le
   flux et la jauge vient recouvrir le texte suivant. */
.tline__t { display: block; height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; }
.tline__f { display: block; height: 100%; border-radius: 6px; }

/* Ce qui a ete produit */
.made { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 5px; }
.made li { font-size: 13px; padding-left: 16px; position: relative; }
.made li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* Synthese du matin / de la semaine */
.brief { border: 1px dashed var(--border-def); border-radius: 10px; padding: 11px 12px; background: var(--bg-soft); margin-bottom: 10px; }
.brief__who { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text); }
.brief__to { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--border-def); display: grid; gap: 7px; }
.brief__tok { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rdr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.rdr__d { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--human); }
.rdr b { display: block; font-size: 12.5px; }
.rdr span { display: block; font-size: 12.5px; color: var(--muted); }
.brief > b { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.brief ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.brief li { font-size: 13px; }
.brief li b { display: block; font-size: 12px; letter-spacing: .03em; }
.brief .b-ok   b { color: var(--ok); }
.brief .b-stop b { color: var(--error); }
.brief .b-dec  b { color: var(--accent); }

/* Decisions attendues */
.dec { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.dec b { display: block; font-size: 13.5px; }
.dec span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Rappel : les deux scenes sont le meme systeme */
.demo__same {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft); font-size: 13.5px; color: var(--muted);
}
.demo__same b { color: var(--text); }
.demo__more { margin-top: 14px; font-size: 13.5px; }

/* Cloture du socle commun */
.closer {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--accent-bord); background: var(--accent-soft);
  font-size: 18px; font-weight: 600; text-align: center;
}
@media (max-width: 640px) { .closer { font-size: 16px; padding: 18px 16px; } }

/* ================= v4 — un compagnon appartient a quelqu'un ================= */

/* Une demande metier et sa destination. Le proprietaire du compagnon EST
   l'information : un compagnon fonctionnel anonyme ne dit pas la meme chose
   qu'un compagnon qui porte l'expertise d'une personne identifiee. */
.route {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; background: var(--bg-soft); margin-bottom: 8px;
}
.route__l { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.route__l + .route__l { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--border); }
.route__d { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--agent); }
.route__l--h .route__d { background: var(--human); }
.route__l b { display: block; font-size: 12.5px; }
.route__l q { display: block; font-size: 12.5px; color: var(--muted); font-style: italic; quotes: none; }
.route__l span { display: block; font-size: 12px; color: var(--muted); }
/* fleche eprouvee du document : B3 se rend comme un angle casse ici. */
.route__l--a b::before { content: "\2192\00A0"; color: var(--accent); }

/* Une ancre ne doit pas deposer sa cible sous la barre collante. */
section[id], [id^="contact"] { scroll-margin-top: 60px; }
/* v7 — un compagnon invite porte sa condition. Le produit l'affiche ainsi
   (is_guest + nom de l'entreprise d'origine) : la maquette ne doit pas le
   presenter comme un compagnon interne de plus. */
/* .route__l span (1 classe + 1 element) l'emporte sur une classe seule et
   repasse le badge en block : il s'etire alors sur toute la carte et se lit
   comme un champ de formulaire vide. */
.route__l .route__via {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--human); background: #fff; color: var(--human);
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em; vertical-align: 1px;
  width: auto; white-space: nowrap;
}
.route__l .route__badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--accent-bord); background: #fff; color: var(--accent);
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em; vertical-align: 1px;
  width: auto; white-space: nowrap;
}

/* ---------- v10 : la sequence produit (confier -> collaborer -> suivre -> valider) ---------- */
.spine {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
  margin-top: 26px;
}
.spine__step { padding: 22px 22px 24px; position: relative; }
.spine__step + .spine__step { border-left: 1px solid var(--border); }
.spine__step + .spine__step::before {
  content: "\2192"; position: absolute; left: -9px; top: 26px; z-index: 2;
  width: 18px; height: 18px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); color: var(--muted);
  font-size: 11px; line-height: 16px; text-align: center;
}
.spine__n {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--accent); display: block; margin-bottom: 8px;
}
.spine__step h3 { font-size: 16.5px; color: var(--text); margin: 0 0 6px; }
.spine__step p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- v10 : le passage (temps 3 + temps 5 fusionnes) ---------- */
.passage { margin-top: 24px; }
.passage__tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft);
}
.passage__tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 7px 16px; border-radius: 999px;
}
.passage__tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.passage__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws__empty {
  border: 1px dashed var(--border-def); border-radius: 10px; background: var(--bg-soft);
  padding: 18px 15px; font-size: 13px; color: var(--muted); text-align: center;
}
/* Le badge porte la garantie : il doit exister dans le DOM, pas en content CSS
   (invisible a l'extraction de texte et peu fiable pour un lecteur d'ecran). */
.ws__tag {
  float: right; font-family: var(--mono); font-style: normal; font-weight: 500;
  font-size: 10.5px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
  margin-left: 8px;
}
.ws__box.is-kept, .ws__box.is-ro { border-style: dashed; }
.crossing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.crossing--solo { grid-template-columns: 1fr; }
.crossing__col { padding: 18px 20px 20px; }
.crossing__col + .crossing__col { border-left: 1px solid var(--border); }
.crossing__h {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
/* Une seule semantique par canal. L'orchid encode l'agent — et ce schema ne
   montre aucun agent : il montre des perimetres et des flux. On y encode donc
   actif (accent) / refuse (gris), jamais humain / agent. */
.crossing__h::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.crossing__col--no .crossing__h::before { background: var(--border-def); }
/* Les deux cotes de la frontiere sont deux perimetres, pas un humain et un
   agent : le marqueur cesse de porter une couleur de nature. Les mots
   « Son espace personnel » / « L’espace de l’organisation » portent seuls la
   distinction. */
#modele .ws__title::before,
#modele .ws--client .ws__title::before { background: var(--border-def); }
/* Le sous-titre nomme les objets de la colonne ; les blocs enoncent la regle
   qui s'y applique. Deux niveaux, la ou la v24 en avait trois (titre, etiquette
   grasse, phrase) dont deux se redisaient. */
#modele .ws__title { margin-bottom: 6px; }
.ws__sub {
  font-size: 13.5px; color: var(--text); line-height: 1.45; margin: 0 0 14px;
}
/* La pastille flottait a la fin de l'etiquette grasse : une ligne courte, donc
   elle ne coupait rien. Sans etiquette, elle tombe AU MILIEU de la premiere
   ligne de la phrase — « Le compagnon conserve [lecture seule] son identite ».
   Elle passe donc au-dessus du texte. Vu au rendu, pas dans le code. */
#modele .ws__box .ws__tag { float: none; display: inline-block; margin: 0 0 7px; }
#modele .ws__box span { display: block; }
.crossing ul { list-style: none; margin: 0; padding: 0; }
.crossing li {
  font-size: 13.5px; color: var(--muted); padding-left: 20px;
  position: relative; margin-bottom: 9px; line-height: 1.5;
}
.crossing li:last-child { margin-bottom: 0; }
.crossing li::before {
  content: "\2192"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 13px;
}
.crossing__col--no li::before { content: "\00D7"; color: var(--border-def); }
.crossing li b { color: var(--text); font-weight: 600; }

/* ---------- v10 : mobilisation de l'expertise (trois origines, une entreprise) ---------- */
.origins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.origin {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 20px 20px 22px; box-shadow: var(--shadow-sm);
}
.origin__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); display: flex;
  align-items: center; gap: 8px; margin-bottom: 10px;
}
.origin__tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--human);
}
.origin h3 { font-size: 16.5px; color: var(--text); margin: 0 0 7px; }
.origin p { margin: 0; font-size: 13.5px; color: var(--muted); }
.origins__into {
  margin-top: 16px; border: 1px solid var(--accent-bord); border-radius: var(--radius);
  background: var(--accent-soft); padding: 18px 20px; text-align: center;
  font-size: 14.5px; color: var(--text);
}
.origins__into b { color: var(--accent); }

/* ---------- v10 : ce que l'entreprise met a disposition ---------- */
.provide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.provide__card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 18px 20px 20px;
}
.provide__card h3 { font-size: 15.5px; color: var(--text); margin: 0 0 6px; }
.provide__card p { margin: 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 980px) {
  .spine { grid-template-columns: repeat(2, 1fr); }
  .spine__step:nth-child(3) { border-left: 0; }
  .spine__step:nth-child(n+3) { border-top: 1px solid var(--border); }
  .spine__step:nth-child(3)::before { display: none; }
  .origins, .provide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .spine { grid-template-columns: 1fr; }
  .spine__step + .spine__step { border-left: 0; border-top: 1px solid var(--border); }
  .spine__step + .spine__step::before { display: none; }
  .crossing { grid-template-columns: 1fr; }
  .crossing__col + .crossing__col { border-left: 0; border-top: 1px solid var(--border); }
  .passage__tabs { display: flex; width: 100%; }
  .passage__tab { flex: 1; padding: 8px 6px; font-size: 13px; }
}


/* ---------- v12 : les neuf temps du document ---------- */
.claimq {
  margin-top: 22px; border: 1px solid var(--accent-bord); border-radius: var(--radius);
  background: var(--accent-soft); padding: 18px 20px; text-align: center;
  font-size: 15.5px; color: var(--text);
}
.claimq b { color: var(--accent); font-weight: 650; }
.chan__cap {
  margin: 30px 0 10px; font-size: 13.5px; color: var(--muted);
}
/* Les canaux sont une legende du temps 2, pas un objet centre a eux seuls :
   ils s'alignent sur le texte qui les introduit. */
#produit .hub__row { justify-content: flex-start; }
/* v14 : la situation unique TITRE le graphique, elle ne s'actionne pas.
   Garder la pill des anciens onglets aurait conserve leur affordance de clic
   sur un objet devenu inerte. */
/* v15 : la situation est un niveau editorial a part entiere. Allegee par
   l'echelle typographique et l'espacement, jamais par la suppression d'un
   niveau : 32 px (these) -> 21 px (situation) -> 17 px (texte). */
.situation { margin-top: 46px; }   /* de l'air AVANT : la situation ouvre une scene */
.situation__t {
  font-size: clamp(19px, 1.7vw, 21px); line-height: 1.3; font-weight: 700;
  letter-spacing: -.2px; margin: 0 0 10px; max-width: var(--maxw-read);
}
.situation .lede { margin-bottom: 0; }
.situation + .passage { margin-top: 16px; }  /* peu APRES : elle titre le graphique */
.passage__state {
  display: block; margin: 0 0 7px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
}
.passage__note {
  margin: 18px 0 0; font-size: 13.5px; color: var(--muted);
  max-width: var(--maxw-read);
}
.passage__say {
  margin: 14px 0 18px; font-size: 14px; color: var(--muted);
  max-width: var(--maxw-read);
}
.guards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.guard {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 14px 16px; font-size: 14px; color: var(--text);
}
.guard__d {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); margin-top: 7px;
}
.dashlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
/* la liste compte 6 items depuis la v21 : elle se divise par 3 et par 2, la
   regle de pleine largeur sur le dernier laisserait un trou. */
.consent { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.consent__c {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 15px 17px;
}
.consent__c--opt { border-color: var(--accent-bord); background: var(--accent-soft); }
.consent__k {
  display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.consent__c--opt .consent__k { color: var(--accent); }
.consent__v { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; }
.dashlist span {
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  padding: 11px 13px; font-size: 13.5px; color: var(--text);
}
.logic { margin: 20px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.logic li { margin-bottom: 5px; }
.logic b { color: var(--text); }

@media (max-width: 980px) { .dashlist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .guards { grid-template-columns: 1fr; }
  .dashlist { grid-template-columns: 1fr; }
  .consent { grid-template-columns: 1fr; }
}

/* ---------- Adaptations au site ---------- */
/* La maquette portait un logo SVG en ligne ; le site sert un fichier. */
.brand img { height: 26px; width: auto; display: block; }

/* Selecteur de langue : composant du site, absent de la maquette. */
.lang-switch {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border-def); border-radius: 999px;
  padding: 6px 14px; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

@media (max-width: 620px) {
  .lang-switch { order: 2; }
}
