/* Calyzo Success Hub — design system.
   SOURCE DE VÉRITÉ : calyzo-site `src/assets/css/calyzo-design-system-v6.css`
   (scopé `body.calyzo-v6` là-bas ; ici la SPA entière EST le DS, donc non scopé).
   Alignement V6 du 2026-07-22 : tokens renommés FR → V6, cuivre unique #A65529,
   typo Montserrat + Inter, pastilles hexagonales (jamais de cercle).

   Deux règles de couleur non négociables (V6) :
   1. jamais de suite de couleurs uniques (pas de tout-cuivre / tout-gris) ;
   2. l'ICÔNE porte l'identité, la COULEUR porte la sévérité. */

:root {
  /* ── Cuivre — marque / action / état actif. Recalé sur le vrai logo. ─────── */
  --copper: #A65529;
  --copper-light: #C97D4A;
  --copper-dark: #7A3D1D;
  --copper-wash: rgba(166, 85, 41, 0.08);
  --copper-border: rgba(166, 85, 41, 0.32);
  /* Cuivre porté par du TEXTE : #A65529 sur blanc = 5,9:1 (OK). En sombre il
     tombe à 3,3:1 → on bascule sur --copper-light (V6, pas une 5e variante). */
  --copper-ink: var(--copper);

  /* ── Neutres — clair froid net (défaut) ─────────────────────────────────── */
  --bg: #F6F7F9;
  --surface-1: #FFFFFF;
  --surface-2: #F1F3F6;
  --surface-3: #E8EBF0;
  --text: #13161C;
  --text-soft: #363E4A;
  --muted: #5B6472;
  --muted-2: #8A93A0;
  --border: rgba(19, 22, 28, 0.10);
  --border-strong: rgba(19, 22, 28, 0.16);

  /* ── Palette fonctionnelle — données, scores, statuts. Jamais la marque. ── */
  --alert: #E4483F;
  --success: #1FA25D;
  --info: #0EA5C9;
  --accent: #3B6FE0;
  --category: #D6368E;
  --neutral: #64748B;
  /* Fonds « soft » des pastilles/pilules. V6 ne définit que --copper-wash :
     les autres suivent la même recette (couleur à 10 %), pas une invention. */
  --alert-wash: rgba(228, 72, 63, 0.10);
  --success-wash: rgba(31, 162, 93, 0.10);
  --info-wash: rgba(14, 165, 201, 0.10);
  --accent-wash: rgba(59, 111, 224, 0.10);
  --neutral-wash: rgba(100, 116, 139, 0.10);

  /* ── Typographie — Montserrat (titres) + Inter (corps) ──────────────────── */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Échelles V6 ────────────────────────────────────────────────────────── */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --r-sm: 10px;    /* chips, contrôles ghost, tags compacts */
  --r-md: 16px;    /* boutons, champs, petites cartes */
  --r-lg: 24px;    /* cartes de contenu, panneaux */
  --r-pill: 999px; /* pilules et badges uniquement */
  --shadow-sm: 0 4px 16px rgba(19, 22, 28, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 22, 28, 0.08);
  --shadow-lg: 0 20px 48px rgba(19, 22, 28, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Pastille de marque — hexagone par défaut, JAMAIS un cercle (cf. .badge-icon). */
  --hexagon: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  --octagon: polygon(30% 3%, 70% 3%, 97% 30%, 97% 70%, 70% 97%, 30% 97%, 3% 70%, 3% 30%);
}

/* Sombre DÉRIVÉ du clair V6 (bloc `body.calyzo-v6[data-theme="dark"]` du DS). */
[data-theme="dark"] {
  --bg: #080808;
  --surface-1: #151517;
  --surface-2: #1A1A1D;
  --surface-3: #202024;
  --text: #F4F1ED;
  --text-soft: #D5D0CA;
  --muted: #AAA39B;
  --muted-2: #77716B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --copper-wash: rgba(166, 85, 41, 0.12);
  --copper-border: rgba(166, 85, 41, 0.4);
  --copper-ink: var(--copper-light);
  /* Washes remontés (10 % disparaît sur un fond quasi noir). */
  --alert-wash: rgba(228, 72, 63, 0.16);
  --success-wash: rgba(31, 162, 93, 0.16);
  --info-wash: rgba(14, 165, 201, 0.16);
  --accent-wash: rgba(59, 111, 224, 0.16);
  --neutral-wash: rgba(100, 116, 139, 0.18);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text-soft);
  font-family: var(--font-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(166,85,41,.22); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty.err { color: var(--alert); }

/* ── Pastille de marque (V6 `.badge-icon`) ────────────────────────────────────
   Hexagone (défaut) ou octogone, en relief : anneau + dégradé + reflet + ombre
   colorée. JAMAIS un cercle. La couleur porte la SÉVÉRITÉ, l'icône l'identité.
   Portée du DS calyzo-site — même markup, mêmes variantes. */
.badge-icon {
  --badge-shape: var(--hexagon);
  --badge-a: var(--copper-light);
  --badge-b: var(--copper);
  --badge-glow: var(--copper-border);
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  filter: drop-shadow(0 8px 14px var(--badge-glow));
}
.badge-icon--octagon { --badge-shape: var(--octagon); }
.badge-icon--hexagon { --badge-shape: var(--hexagon); }
.badge-icon::before {
  content: ""; position: absolute; inset: 0;
  clip-path: var(--badge-shape); background: var(--badge-b); opacity: .22;
}
.badge-icon::after {
  content: ""; position: absolute; inset: 4px; clip-path: var(--badge-shape);
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, var(--badge-a), var(--badge-b));
}
.badge-icon > svg, .badge-icon > i {
  grid-area: 1 / 1; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; color: #fff;
}
.badge-icon--alert    { --badge-a: #F0968D; --badge-b: var(--alert);    --badge-glow: rgba(228,72,63,.35); }
.badge-icon--warning  { --badge-a: var(--copper-light); --badge-b: var(--copper); --badge-glow: var(--copper-border); }
.badge-icon--info     { --badge-a: #7FDCEF; --badge-b: var(--info);     --badge-glow: rgba(14,165,201,.35); }
.badge-icon--success  { --badge-a: #79D6A3; --badge-b: var(--success);  --badge-glow: rgba(31,162,93,.35); }
.badge-icon--category { --badge-a: #EF8DC1; --badge-b: var(--category); --badge-glow: rgba(214,54,142,.35); }
.badge-icon--accent   { --badge-a: #86A6F2; --badge-b: var(--accent);   --badge-glow: rgba(59,111,224,.35); }
/* Neutre : aplat gris-bleu VISIBLE + contour net, pas de halo (planche V6). */
.badge-icon--neutral  { filter: none; }
.badge-icon--neutral::before { opacity: 0; }
.badge-icon--neutral::after {
  inset: 0; background: rgba(100,116,139,.16); border: 1px solid rgba(100,116,139,.4);
}
.badge-icon--neutral > svg { color: #334155; }
[data-theme="dark"] .badge-icon--neutral > svg { color: #CBD5E1; }
/* Pastille pilotée par la sévérité courante (--sc/--ss des classes s-*). */
.badge-icon--sev { --badge-a: var(--sc); --badge-b: var(--sc); --badge-glow: var(--ss); }
.badge-icon--sm { width: 30px; height: 30px; }

/* Pastille de statut compacte (les ex-« dots » ronds) — même règle de forme. */
.dot {
  width: 9px; height: 9px; flex: 0 0 auto;
  background: var(--sc); clip-path: var(--hexagon);
}

/* Statuts (posture) — portent --sc (couleur) + --ss (fond soft) */
.s-ok   { --sc: var(--success); --ss: var(--success-wash); }
.s-warn { --sc: var(--copper);      --ss: var(--copper-wash); }
.s-ko   { --sc: var(--alert);       --ss: var(--alert-wash); }
.s-na   { --sc: var(--muted-2);  --ss: var(--surface-2); }
.s-info { --sc: var(--info);        --ss: var(--info-wash); }
/* Scores GAS 1-4 */
.sc1 { --sc: var(--alert);       --ss: var(--alert-wash); }
.sc2 { --sc: var(--copper);      --ss: var(--copper-wash); }
.sc3 { --sc: var(--accent);     --ss: var(--accent-wash); }
.sc4 { --sc: var(--success); --ss: var(--success-wash); }
/* Statuts de phase Pilotage (vocab Suivi) */
.ph-termine    { --sc: var(--success); --ss: var(--success-wash); }
.ph-en_cours   { --sc: var(--copper);      --ss: var(--copper-wash); }
.ph-planifie   { --sc: var(--muted-2);  --ss: var(--surface-2); }
.ph-en_attente { --sc: var(--muted-2);  --ss: var(--surface-2); }
.ph-annule     { --sc: var(--muted);  --ss: var(--surface-2); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap; row-gap: 10px; padding: 13px clamp(16px,4vw,28px);
  background: var(--surface-1); border-bottom: 1px solid var(--border);
}
.hdr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.hdr-mark { width: 30px; height: 30px; object-fit: contain; display: block; flex: 0 0 auto; }
.hdr-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.hdr-chip { font-size: 10.5px; color: var(--copper-ink); border: 1px solid var(--copper-border);
  border-radius: var(--r-sm); padding: 2px 7px; letter-spacing: .04em; white-space: nowrap; }
.spacer { flex: 1; }
.company-sel { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13.5px;
  font-weight: 600; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 9px 30px 9px 13px;
  min-height: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A93A0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.company-sel:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-wash); }
.slug-txt { color: var(--muted); font-size: 13px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; transition: border-color .25s, color .25s; }
.icon-btn:hover { border-color: var(--copper-border); color: var(--copper-ink); }
.btn-ghost { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px;
  border-radius: var(--r-md); background: transparent; border: 1px solid var(--border); color: var(--muted);
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: border-color .25s, color .25s; }
.btn-ghost:hover { border-color: var(--copper-border); color: var(--copper-ink); }
/* Bouton inline PLEIN (CTA accent) — variante DS de .btn-ghost (même boîte, fond accent). */
.btn-solid { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: var(--r-md); background: var(--copper); border: 1px solid var(--copper); color: #fff;
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none;
  transition: filter .2s, box-shadow .2s, transform .2s; }
.btn-solid:hover { filter: brightness(1.05); box-shadow: 0 5px 16px -4px var(--copper-wash); transform: translateY(-1px); }
/* Bouton inline PLEIN danger (action irréversible confirmée). */
.btn-danger { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: var(--r-md); background: var(--alert); border: 1px solid var(--alert); color: #fff;
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; transition: filter .2s; }
.btn-danger:hover { filter: brightness(1.07); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav { background: var(--surface-1); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px,4vw,28px); }
.tabs { display: flex; gap: 28px; }
.tab { font: inherit; font-weight: 600; font-size: 15px; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--muted); padding: 16px 0;
  cursor: pointer; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--copper); }
.chips { display: flex; gap: 9px; overflow-x: auto; }
.chip { font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 15px; border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap; border: 1px solid var(--border); background: transparent;
  color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.chip.active { border-color: transparent; background: var(--copper-wash); color: var(--copper-ink); }
.subnav-wrap { padding: 12px 0 14px; }

/* ── Layout & entêtes d'écran ───────────────────────────────────────────── */
.wrap { max-width: 1080px; margin: 0 auto; padding: clamp(24px,4vw,44px) clamp(16px,4vw,28px) 70px; }
.kicker { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--copper-ink); }
.shead-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.dot-sep { width: 6px; height: 6px; background: var(--copper); clip-path: var(--hexagon); }
.ro-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--border); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.stitle { font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px,4.4vw,42px);
  line-height: 1.08; letter-spacing: -.02em; color: var(--text); margin: 13px 0 0; }
.slead { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 11px 0 0; max-width: 560px; }
/* Barre d'actions d'écran (ex. Exporter) — sous l'en-tête. */
.shead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.shead-actions a { text-decoration: none; }
.sect { margin-top: 36px; }
.sect-lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 9px 0 0; max-width: 640px; }

/* ── Cartes ─────────────────────────────────────────────────────────────── */
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(20px,3vw,26px); box-shadow: var(--shadow-md); }
.card + .card, .card.mt { margin-top: 16px; }
.card--left { border-left: 3px solid var(--copper); padding: 22px 26px; }

/* ── Synthèse : tuiles donut ────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-top: 26px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 20px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow-md); }
.donut { position: relative; width: 76px; height: 76px; flex: 0 0 auto; }
.donut svg { display: block; }
.donut-track { fill: none; stroke: var(--surface-2); stroke-width: 7; }
.donut-arc { fill: none; stroke: var(--sc, var(--copper)); stroke-width: 7; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .8s var(--ease); }
.donut-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700;
  letter-spacing: -.02em; color: var(--sc, var(--text)); }
.donut-val small { font-size: 11px; opacity: .6; margin-left: 1px; }
.tile-lbl { font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; color: var(--text); }
.tile-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ── Synthèse : piliers ─────────────────────────────────────────────────── */
.pillars { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.pillar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pillar-lbl { flex: 1 1 160px; min-width: 140px; font-weight: 600; font-size: 14.5px; }
.pillar-mid { flex: 3 1 300px; display: flex; align-items: center; gap: 13px; min-width: 200px; }
.bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sc, var(--copper)); border-radius: var(--r-pill); transition: width .8s var(--ease); }
.pillar-pct { font-variant-numeric: tabular-nums; font-size: 14px; width: 42px; text-align: right; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 5px 12px;
  border-radius: var(--r-pill); background: var(--ss); min-width: 108px; }
.status-pill span:last-child { font-size: 12px; font-weight: 600; color: var(--sc); }

/* ── STORM ──────────────────────────────────────────────────────────────── */
.storm-lecture { margin-top: 16px; }
.storm-lecture p { font-size: 16px; line-height: 1.7; margin: 9px 0 0; max-width: 760px; }
.storm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px,1fr)); gap: 16px; margin-top: 16px; }
.storm-col { background: var(--surface-1); border: 1px solid var(--border); border-top: 3px solid var(--sc);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); }
.storm-colhead { display: flex; align-items: center; gap: 11px; margin-bottom: 2px; }
.storm-col .kicker { color: var(--sc); letter-spacing: .14em; }
.storm-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.storm-item { display: flex; flex-direction: column; gap: 6px; }
.storm-item-t { font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.storm-item-c { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.chip-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.chip-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--ss); font-size: 10.5px; font-weight: 600; color: var(--sc); }
.chip-tag .dot { width: 7px; height: 7px; }
/* STORM par pilier (Questions) : listes simples de puces */
.storm-simple { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.storm-simple li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.storm-simple li::before { content: ""; width: 7px; height: 7px; margin-top: 5px; clip-path: var(--hexagon);
  flex: 0 0 auto; background: var(--sc); }
.nomenc { display: flex; align-items: flex-start; gap: 13px; margin-top: 16px; }
.nomenc .badge-icon { margin-top: 1px; }
.nomenc-t { font-weight: 600; font-size: 13.5px; }
.nomenc-c { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 5px; }

/* ── Questions ──────────────────────────────────────────────────────────── */
/* Accordéon par pilier (replié par défaut) — <details>/<summary> natif, sans JS. */
.q-accs { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.q-acc { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md); }
.q-accsum { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer;
  list-style: none; user-select: none; }
.q-accsum::-webkit-details-marker { display: none; }
.q-accsum:hover { background: var(--surface-2); }
.q-accchev { color: var(--copper-ink); font-size: 12px; flex: 0 0 auto; transition: transform .2s var(--ease); }
.q-acc[open] .q-accchev { transform: rotate(90deg); }
.q-accname { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--text); flex: 1; }
.q-accmeta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.q-accbody { padding: 6px 20px 20px; border-top: 1px solid var(--border); }
.q-section + .q-section { margin-top: 38px; }
.q-sechead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); }
.q-sechead b { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.q-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.q-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.q-body { flex: 1 1 260px; }
.q-lbl { font-weight: 600; font-size: 14.5px; }
.q-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.q-score { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill); background: var(--ss); color: var(--sc); font-size: 12px; font-weight: 600; }
/* Pastille du score : hexagone (jamais un rond), même règle que .badge-icon. */
.q-score-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  clip-path: var(--hexagon); background: var(--sc); color: #fff;
  font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 700; }

/* ── KPI ────────────────────────────────────────────────────────────────── */
.kpi-controls { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 22px; }
.kpi-rangebar { display: flex; align-items: center; gap: 10px; }
.kpi-rangelbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kpi-srcs { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.kpi-src { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(18px,3vw,26px); box-shadow: var(--shadow-md); }
.kpi-srchead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kpi-srchead b { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.kpi-when { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
/* Encart « réservé aux abonnés » (contenu premium filtré côté backend). */
.premium-lock { border-style: dashed; box-shadow: none; }
.prem-badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700; color: var(--copper-ink);
  background: var(--copper-wash); padding: 4px 10px; border-radius: var(--r-pill); }
.prem-teaser { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 12px; max-width: 60ch; }
.prem-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.prem-cta a { text-decoration: none; }
.prem-cta .prem-mail { font-size: 13px; color: var(--muted); }
.prem-cta .prem-mail a { color: var(--copper-ink); }
.prem-cta .prem-mail a:hover { text-decoration: underline; }
.kpi-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 14px 26px; margin-top: 16px; }
.kpi-metric { padding-top: 16px; border-top: 1px solid var(--border); }
.kpi-mhead { display: flex; align-items: baseline; gap: 12px; }
.kpi-mlbl { flex: 1; font-size: 14px; font-weight: 600; }
.kpi-mval { font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 700; color: var(--copper-ink); white-space: nowrap; }

/* Comparaison Réf. audit → Actuel : la référence en discret, l'évolution en pastille
   colorée par la POLARITÉ (patron --sc/--ss des .status-pill, washes theme-aware). */
.kpi-cmp { display: flex; align-items: center; gap: 10px; margin-top: 4px; min-height: 22px; }
.kpi-ref { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi-ref b { color: var(--text); font-weight: 600; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--sc); background: var(--ss); }
.kpi-delta--good { --sc: var(--success); --ss: var(--success-wash); }
.kpi-delta--bad  { --sc: var(--alert);   --ss: var(--alert-wash); }
.kpi-delta--flat { --sc: var(--neutral); --ss: var(--neutral-wash); }

/* graphe de tendance : SVG plein-largeur (aspect conservé) + labels/tooltip en overlay % */
.kpi-chart { position: relative; margin-top: 12px; margin-bottom: 26px; }
.kpi-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.kpi-grid line { stroke: var(--border); stroke-width: 1; }
.kpi-area { fill: var(--copper-wash); }
.kpi-line { fill: none; stroke: var(--copper); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kpi-dot { fill: var(--surface-1); stroke: var(--copper); stroke-width: 1.3; }
.kpi-cross { stroke: var(--copper); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.kpi-cdot { fill: var(--copper); stroke: var(--surface-1); stroke-width: 1.6; }
.kpi-yl { position: absolute; left: 0; width: 8.33%; transform: translateY(-50%); padding-right: 6px;
  text-align: right; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--muted); pointer-events: none; }
.kpi-xl { position: absolute; top: 86.4%; margin-top: 5px; font-size: 11px; line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--muted); pointer-events: none; }
.kpi-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; white-space: nowrap;
  display: flex; flex-direction: column; gap: 1px; background: var(--text); color: var(--surface-1);
  border-radius: var(--r-sm); padding: 6px 10px; box-shadow: var(--shadow-lg); z-index: 2; }
.kpi-tip-d { font-size: 11px; opacity: .72; font-variant-numeric: tabular-nums; }
.kpi-tip-v { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Répartitions (mini-barres par bucket, colorées via --sc des classes s-*) */
.kpi-dists { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.kpi-dists-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.kpi-dists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px 26px; }
.dist-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 9px; }
.dist-row { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 6px; }
.dist-lbl { font-size: 12.5px; color: var(--text-soft); }
.dist-track { height: 7px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.dist-fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--sc, var(--copper)); }
.dist-v { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

/* ── Pilotage ───────────────────────────────────────────────────────────── */
.pil-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin-top: 26px; }
.stat { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-md); }
.stat--copper { border-top: 3px solid var(--copper); }
.stat-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-big { font-family: var(--font-heading); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text); line-height: 1; margin: 14px 0 12px; }
.stat-big small { font-size: 18px; color: var(--muted); margin-left: 4px; }
.milestone-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; margin: 13px 0 10px;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--copper-wash); color: var(--copper-ink);
  font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; }
.milestone-lbl { font-size: 14px; line-height: 1.5; font-weight: 600; }
.horizons { display: flex; flex-direction: column; gap: 34px; margin-top: 38px; }
.hz-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.hz-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.hz-sub { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.hz-prog { display: inline-flex; align-items: center; gap: 10px; min-width: 130px; }
.hz-prog .bar { width: 70px; flex: 0 0 auto; height: 6px; }
.hz-prog .num { font-size: 13px; }
.phase-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.phase-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: var(--shadow-md); }
.phase-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phase-title { font-weight: 600; font-size: 15px; flex: 1 1 200px; }
.phase-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--ss); font-size: 11.5px; font-weight: 600; color: var(--sc); }
.phase-badge .dot { width: 8px; height: 8px; }
.phase-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.phase-meta .bar { flex: 1 1 320px; min-width: 220px; height: 7px; }
.phase-meta .bar > span { background: var(--sc); }
.phase-pct { font-variant-numeric: tabular-nums; font-size: 13px; width: 42px; text-align: right; }
.phase-dates { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.phase-charge { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--copper-ink); font-weight: 600; white-space: nowrap; }
.subphases { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 11px; }
.subphase { display: flex; align-items: center; gap: 10px; }
.subphase .dot { width: 8px; height: 8px; }
.subphase .sub-t { font-size: 13.5px; color: var(--muted); flex: 1; }
.subphase .sub-charge { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.subphase .sub-s { font-size: 11.5px; font-weight: 600; color: var(--sc); }

/* ── Écrans d'auth ──────────────────────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: clamp(40px,9vh,90px) 20px 60px; }
.auth-form { width: 100%; max-width: 430px; }
.auth-head { margin-bottom: 22px; }
.auth-title { font-family: var(--font-heading); font-weight: 800; font-size: 30px; line-height: 1.12;
  letter-spacing: -.02em; color: var(--text); margin: 12px 0 7px; }
.auth-sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.auth-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-md); }
.auth-note { margin: 0 0 16px; padding: 10px 12px; font-size: 13px; line-height: 1.5; background: var(--surface-2);
  border: 1px solid var(--border); border-left: 3px solid var(--copper); border-radius: var(--r-sm); }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.auth-field input { width: 100%; font: inherit; font-size: 14.5px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; min-height: 46px; }
.auth-field input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-wash); }
.auth-field input[readonly] { color: var(--muted); }
.auth-field.otp input { font-variant-numeric: tabular-nums; letter-spacing: .3em; }
.auth-err { color: var(--alert); font-size: 13px; min-height: 18px; margin: 2px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
  border-radius: var(--r-md); cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.btn-primary { width: 100%; min-height: 48px; padding: 13px; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--copper); border-color: var(--copper);
  transition: filter .25s, transform .25s, box-shadow .25s; }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 6px 18px var(--copper-wash); transform: translateY(-1px); }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 3px var(--copper-wash); }
.auth-link { display: block; width: 100%; margin-top: 14px; background: none; border: none; color: var(--copper-ink);
  font: inherit; font-size: 13.5px; text-align: center; cursor: pointer; padding: 6px; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
  color: var(--muted-2); font-size: 12px; }
.enroll { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.enroll-h { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.enroll-qr { display: flex; justify-content: center; margin: 12px 0; }
.enroll-qr img { width: 180px; height: 180px; border-radius: var(--r-sm); background: #fff; padding: 8px; border: 1px solid var(--border); }
.enroll-secret { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 17px;
  letter-spacing: 2px; text-align: center; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px; margin: 10px 0; user-select: all; word-break: break-all; }

/* ── Pied de page (mentions légales, persistant login + authentifié) ───────── */
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  padding: 26px 20px 34px; margin-top: 44px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--copper-ink); text-decoration: underline; }
.site-foot .foot-sep { opacity: .45; }
.site-foot .foot-copy { color: var(--muted-2); }

/* ── Pages légales autoportantes (mentions-legales / confidentialite) ─────── */
.legal { max-width: 760px; margin: 0 auto; padding: 4px 0 12px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: 13.5px; text-decoration: none; margin-bottom: 22px; }
.legal-back:hover { color: var(--copper-ink); }
.legal h1 { font-family: var(--font-heading); font-weight: 800; font-size: 28px; line-height: 1.12;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 6px; }
.legal .legal-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.legal h2 { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--text);
  margin: 32px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal p { font-size: 14.5px; line-height: 1.65; color: var(--text-soft); margin: 10px 0; }
.legal ul { margin: 10px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.legal li { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }
.legal a { color: var(--copper-ink); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .todo { background: var(--ss); color: var(--sc); padding: 1px 8px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ── Self-serve MSP — « Mes clients » (P2b) ───────────────────────────────── */
.msp-clients { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.msp-client { display: flex; align-items: center; gap: 16px; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px;
  box-shadow: var(--shadow-md); }
.mc-main { flex: 1; min-width: 0; }
.mc-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.mc-slug { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
/* Bouton delete inline (✕ rouge) — variante DS. */
.btn-x { flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-size: 15px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.btn-x:hover { color: var(--alert); border-color: var(--alert); background: var(--alert-wash); }
.btn-x:disabled { opacity: .5; cursor: default; }

/* Modale (création client) — fond + fenêtre. Fermeture par bindBackdropClose. */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal { width: 100%; max-width: 440px; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px; }
.modal-title { font-family: var(--font-heading); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  color: var(--text); margin-bottom: 18px; }
.modal-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.modal-input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-soft); }
.modal-input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-wash); }
.modal-err { color: var(--alert); font-size: 13px; min-height: 18px; margin-top: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-msg { color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.modal-input + .modal-label, .modal-row + .modal-label { margin-top: 14px; }
.modal-hint { font-weight: 400; color: var(--muted); }
.mc-contact { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ── Modules premium — grille générique data-driven (P3a) ─────────────────── */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.mod-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); }
.mod-head { display: flex; align-items: flex-start; gap: 12px; }
.mod-title { flex: 1; font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  color: var(--text); line-height: 1.3; }
.mod-desc { flex: 1; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.mod-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.mod-status { font-size: 12.5px; font-weight: 600; color: var(--copper-ink); }

/* ── Livrables — lignes de documents (patron .pillar-row : pastille+titre | méta | actions) */
.deliv-list { display: flex; flex-direction: column; }
.deliv-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border); }
.deliv-row:first-child { border-top: 0; padding-top: 2px; }
.deliv-main { display: flex; align-items: center; gap: 13px; flex: 1 1 260px; min-width: 0; }
.deliv-title { font-family: var(--font-heading); font-weight: 700; font-size: 14.5px;
  letter-spacing: -.01em; color: var(--text); }
.deliv-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.deliv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.deliv-actions a { text-decoration: none; }

/* ── Module QBR — cartes de revue + rendu du document (blocs whitelistés) ───── */
.qbr-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.qbr-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qbr-card-main { flex: 1 1 240px; min-width: 0; }
.qbr-card-t { font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  letter-spacing: -.01em; color: var(--text); }
.qbr-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.qbr-card-meta .num { font-size: 12.5px; }
.qbr-card .btn-solid { margin-left: auto; }
.qbr-block .kicker { display: block; }
.qbr-body { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.qbr-h { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.qbr-h2 { font-size: 18px; }
.qbr-h3 { font-size: 15.5px; }
.qbr-h4 { font-size: 14px; }
.qbr-p { font-size: 15px; line-height: 1.7; color: var(--text-soft); margin: 0; max-width: 760px; }
.qbr-stat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qbr-stat-lbl { flex: 1 1 auto; font-weight: 600; font-size: 14px; color: var(--text-soft); }
.qbr-stat-val { font-family: var(--font-heading); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 700; color: var(--copper-ink); }
.qbr-stat-val small { font-size: 13px; color: var(--muted); margin-left: 3px; }
.qbr-dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qbr-dl-item { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.qbr-dl-lbl { flex: 1 1 160px; font-weight: 600; font-size: 13.5px; }
.qbr-dl-val { font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--text-soft); }
.qbr-arrow { color: var(--muted-2); padding: 0 2px; }
.qbr-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qbr-line-t { flex: 1 1 auto; font-weight: 600; font-size: 13.5px; }
.qbr-line-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qbr-check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  flex: 0 0 auto; clip-path: var(--hexagon); background: var(--sc); color: #fff; font-size: 11px; }
.qbr-risk { display: flex; align-items: flex-start; gap: 13px; }
.qbr-risk-t { font-weight: 600; font-size: 13.5px; }
.qbr-risk-c { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 5px; }
.qbr-risk .chip-tags { margin-top: 6px; }
.qbr-callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--ss); border-radius: var(--r-md); }
.qbr-callout .badge-icon { margin-top: 1px; }
.qbr-callout-t { font-weight: 600; font-size: 13.5px; color: var(--text); }
.qbr-callout-c { color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.qbr-callout-t + .qbr-callout-c { margin-top: 4px; }
.qbr-tablewrap { overflow-x: auto; }
.qbr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qbr-table th, .qbr-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.qbr-table th { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.qbr-table td { color: var(--text-soft); }
.qbr-tl { display: flex; flex-direction: column; gap: 10px; }
.qbr-tl-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qbr-tl-item .milestone-chip { margin: 0; }
.qbr-tl-t { font-size: 13.5px; color: var(--text-soft); }
.qbr-qa { margin-top: 0; }

/* ── Module M365 — plan de remédiation groupé par horizon ─────────────────── */
.m365-hz-title { font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  letter-spacing: -.01em; color: var(--text); margin: 20px 0 12px; }
.m365-rem-list { display: flex; flex-direction: column; gap: 12px; }
.m365-rem-head { display: flex; align-items: center; gap: 11px; }
.m365-rem-t { font-weight: 600; font-size: 14.5px; color: var(--text); }
.m365-rem .storm-item-c { margin-top: 8px; }
.m365-rem .chip-tags { margin-top: 10px; }

/* ── Module V/TO — Vision & Traction Organizer (EOS), read-only ───────────── */
.vto-block .kicker { display: block; }
.vto-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vto-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px 24px; margin-top: 16px; }
.vto-field + .vto-field { margin-top: 16px; }
.vto-fields .vto-field + .vto-field { margin-top: 0; }   /* la grille gère l'espacement */
.vto-field-l { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vto-field-v { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); margin: 6px 0 0; }
.vto-field-v.vto-lead { font-size: 16px; line-height: 1.7; max-width: 760px; }
.vto-tiles { margin-top: 16px; }   /* sous un kicker de section : gap resserré vs .tiles */
.vto-issues { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.vto-issues li { font-size: 14px; line-height: 1.55; color: var(--text-soft); padding-left: 4px; }
.vto-issues li::marker { color: var(--copper-ink); font-weight: 700; }
.vto-rocks { display: flex; flex-direction: column; margin-top: 16px; }
.vto-rock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); }
.vto-rock:first-child { border-top: 0; padding-top: 2px; }
.vto-rock-main { flex: 1 1 260px; min-width: 0; }
.vto-rock-l { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.45; }
.vto-rock-o { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.vto-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px 20px; margin-top: 16px; }
.vto-member-n { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--text); }
.vto-member-r { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ── Module AIOps — runbooks de fiabilité validés (cartes terminales) ─────── */
.aiops-count { margin-top: 22px; }
.aiops-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.aiops-card { display: flex; align-items: flex-start; gap: 14px; }
.aiops-main { flex: 1; min-width: 0; }
.aiops-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--text); line-height: 1.35; }
.aiops-ref { font-size: 12px; margin-top: 6px; }
.aiops-obj { margin-top: 10px; font-size: 13.5px; line-height: 1.6; }
.aiops-card .btn-solid { margin-left: auto; align-self: center; }
/* Détail runbook — heading en kicker + corps markdown rendu sûrement. */
.aiops-block .kicker { display: block; }
.aiops-md { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.aiops-md-h { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.aiops-md-p { font-size: 14.5px; line-height: 1.7; color: var(--text-soft); margin: 0; max-width: 760px; }
.aiops-md-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.aiops-md-list li { font-size: 14px; line-height: 1.6; color: var(--text-soft); padding-left: 4px; }
.aiops-md-list li::marker { color: var(--copper-ink); font-weight: 700; }
.aiops-md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; }
.aiops-code { overflow-x: auto; margin: 0; padding: 14px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-md); }
.aiops-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  line-height: 1.6; color: var(--text); background: none; border: 0; padding: 0; white-space: pre; }
