/* Accueil éditeur — transposé de design/maquettes-2026-10-01/outils/{accueil,cockpit}.css (planches Editeur-Accueil,
   Sombre-Editeur-Accueil, Mobile-Editeur-Aujourdhui). Préfixes définis ici et nulle part ailleurs : acc- (accueil), cpt- (suivi
   du portefeuille). L'accueil prestataire (lot E1) peut importer ce fichier plutôt que de redéfinir ces préfixes.
   Différences voulues avec la planche, toutes signalées « app : » : « Plus tard » (aucun stockage) et ses classes atr-,
   fiabilité des partenaires (aucune donnée) sont retirés ; la trésorerie et le coût rendu viennent de getEntityEconomy et
   n'apparaissent qu'avec des montants réels, sans montant animé ; le compagnon vit dans la coque (cg/bot.tsx) ;
   la planche mobile (mau-) est une media query sur les mêmes éléments, pas un second balisage. */

/* ---------- Couleurs de données (validées par script dans la planche) ----------
   app : Graphite suit prefers-color-scheme comme le reste du système (cf. systeme.css), data-theme="graphite" le force. */
.cpt { --viz-done: #15803D; --viz-active: #1268EA; --viz-clarify: #B4580A; --viz-risk: #C2342C; --viz-eng: #2a78d6; --viz-est: #86b6ef; --viz-mute: #C3C8D1; }
@media (prefers-color-scheme: dark) {
  .cg:not([data-theme="clair"]) .cpt { --viz-done: #2c8f5c; --viz-active: #3987e5; --viz-clarify: #c47f2e; --viz-risk: #F2685E; --viz-eng: #3987e5; --viz-est: #2c5a96; --viz-mute: #3E434C; }
}
.cg[data-theme="graphite"] .cpt { --viz-done: #2c8f5c; --viz-active: #3987e5; --viz-clarify: #c47f2e; --viz-risk: #F2685E; --viz-eng: #3987e5; --viz-est: #2c5a96; --viz-mute: #3E434C; }

/* ---------- Accueil : pleine largeur, synthèse cliquable, une action en vedette, indicateurs avec leur forme ---------- */
.acc-w { display: flex; flex-direction: column; gap: 36px; }
.acc-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.acc-hd__t { display: flex; flex-direction: column; gap: 4px; }
.acc-h1 { font-family: var(--display); font-size: 34px; line-height: 40px; font-weight: 640; letter-spacing: -.032em; }
.acc-brief { font-size: 15px; line-height: 28px; color: var(--ink-2); max-width: 70ch; }
.acc-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 560; color: var(--ink); vertical-align: 1px; transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.cg a.acc-chip { color: var(--ink); }
.cg a.acc-chip:hover { text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.acc-chip .cover { width: 14px; height: 19px; border-radius: 3px; margin-left: -3px; }
.acc-chip--warn { color: var(--clarify); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clarify) 30%, transparent); }
.cg .acc-chip--warn { color: var(--clarify); }

/* 1 · À traiter (niveau 1, graphite) */
.zone--p1 { padding: 22px 24px 24px; }
.acc-now { display: none; }
.acc-focus { grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; padding: 18px 20px 18px 18px; border-radius: 18px; }
.acc-focus__b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-focus__k { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--z1-ink-3); margin-bottom: 2px; }
.acc-focus .focus__title { font-size: 21px; line-height: 27px; letter-spacing: -.018em; }
.acc-focus .focus__sub { max-width: 52ch; }
.acc-focus--idle { grid-template-columns: minmax(0, 1fr) auto; }
.acc-act { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.acc-cd { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--z1-warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--z1-warn) 45%, transparent); cursor: pointer; list-style: none; text-decoration: none; }
.acc-cd::-webkit-details-marker { display: none; }
.acc-cd--none { color: var(--z1-ink-3); box-shadow: inset 0 0 0 1px var(--z1-line); cursor: default; }
.acc-cd__abs { display: none; }
.acc .zone--p1 .acc-k { font-size: 12px; line-height: 16px; font-weight: 560; color: var(--z1-ink-3); margin: 8px 0 -2px; }
.acc-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.acc-nc { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px; row-gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--z1-card); box-shadow: inset 0 0 0 1px var(--z1-line); color: var(--z1-ink); transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-base) var(--ease-out); }
.cg .acc-nc { color: var(--z1-ink); }
.cg .acc-nc:hover { text-decoration: none; background: var(--z1-card-2); box-shadow: inset 0 0 0 1px var(--z1-line), 0 10px 24px -14px rgb(0 0 0 / 55%); transform: translateY(-1px); }
.acc-nc .cover { grid-row: 1 / 3; }
.acc-nc__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-nc__b b { font-size: 13.5px; line-height: 18px; font-weight: 600; }
.acc-nc__b span { font-size: 12.5px; line-height: 17px; color: var(--z1-ink-3); }
.acc-due { align-self: end; font-size: 12px; font-weight: 560; color: var(--z1-ink-3); font-variant-numeric: tabular-nums; }
.acc-due--soon { color: var(--z1-warn); }
.acc-nc__ar { position: absolute; top: 12px; right: 12px; color: var(--z1-ink-3); opacity: 0; transform: translateX(-3px); transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out); }
.acc-nc:hover .acc-nc__ar { opacity: 1; transform: none; }
.acc-more > .acc-next { margin-top: 10px; }
.cg .zone--p1 .more > summary { padding: 0 2px; min-height: 36px; color: var(--z1-link); }

/* 2 · À surveiller (niveau 2, gris) */
.acc-fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--z2-ink); }
.acc-fresh i { width: 6px; height: 6px; border-radius: 50%; background: var(--viz-done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--viz-done) 18%, transparent); }
/* Au plus quatre indicateurs par ligne, chacun sur un quart de la largeur, quelle que soit la taille de l'écran ; deux par ligne dans la
   colonne des repères d'un écran large (voir « Écrans larges » plus bas). */
.acc-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(230px, calc((100% - 36px) / 4)), 1fr)); gap: 12px; }
.cpt-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); min-height: 118px; transition: background-color var(--dur-fast) ease; }
.cg .cpt-kpi { color: var(--ink); }
.cg .cpt-kpi:hover { background: var(--surface-2); text-decoration: none; }
.cpt-kpi-l { font-size: 12.5px; color: var(--ink-3); font-weight: 540; }
.cpt-kpi-v { font-size: 28px; line-height: 32px; font-weight: 620; letter-spacing: -.02em; }
.cpt-kpi-v small { font-size: 15px; font-weight: 560; color: var(--ink-3); letter-spacing: 0; }
.cpt-kpi-s { font-size: 12.5px; color: var(--ink-3); line-height: 17px; margin-top: auto; }
.cpt-kpi-s b { color: var(--clarify); font-weight: 600; }
.acc-kpis .cpt-kpi { min-height: 128px; padding: 16px 18px; border-radius: 16px; gap: 8px; background: var(--z2-tile); box-shadow: none; }
.cg .acc-kpis .cpt-kpi:hover { background: var(--z2-tile); box-shadow: 0 0 0 1.5px var(--ink); }
.acc-kpis .cpt-kpi-v { font-size: 27px; line-height: 32px; font-weight: 640; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.acc-amt { white-space: nowrap; }
.acc-mv { display: flex; gap: 3px; height: 6px; }
.acc-seg i { flex: 1; border-radius: 3px; background: var(--viz-done); transform-origin: left center; animation: cg-fill 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.acc-seg i.is-late { background: repeating-linear-gradient(135deg, var(--viz-clarify) 0 4px, color-mix(in srgb, var(--viz-clarify) 60%, var(--surface)) 4px 8px); }
/* Engagé et estimé à payer : la forme d'un indicateur d'argent. Le fond (--line) est le reste du prévu. */
.acc-bar { gap: 2px; border-radius: 3px; background: var(--line); position: relative; }
.acc-bar i { display: block; height: 100%; transform-origin: left center; animation: cg-fill 620ms var(--ease-out) 120ms both; }
.acc-bar i:first-child { border-radius: 3px 0 0 3px; }
.acc-bar i:last-of-type { border-radius: 0 3px 3px 0; }
.acc-bar i:only-of-type { border-radius: 3px; }
.acc-bar .is-eng { background: var(--viz-eng); }
.acc-bar .is-est { background: var(--viz-est); }
.acc-line { gap: 16px; padding: 2px 0; }
.cg a.acc-line { color: var(--ink); }
.acc-more-d > summary { padding: 0; min-height: 32px; }
.zone--p2 .more > summary { padding: 0; }

/* 3 · Suivi du portefeuille (niveau 3, blanc) */
.cpt-card { padding: 18px 20px 20px; }
.cpt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.cpt-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cpt-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); align-items: center; }
.cpt-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cpt-sw { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
.cpt-sw--plan { height: 2px; background: var(--ink-4); }
.cpt-sw--ms { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); border-radius: 1.5px; }
.cpt-sw--risk { width: 14px; height: 10px; border: 1.5px dashed var(--viz-risk); border-radius: 3px; background: none; }
.cpt-sw.is-eng { background: var(--viz-eng); }
.cpt-sw.is-est { background: var(--viz-est); }
.acc .zone--p3 .cpt-card { padding: 18px 20px 20px; border-radius: 18px; }
.cpt-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* Calendrier des dossiers */
.cpt-g { --cpt-who: 200px; display: grid; grid-template-columns: var(--cpt-who) minmax(0, 1fr); position: relative; padding-bottom: 26px; }
.cpt-months { grid-column: 2; position: relative; height: 24px; font-size: 12px; color: var(--ink-3); }
.cpt-months span { position: absolute; top: 0; padding-left: 6px; white-space: nowrap; }
.cpt-row { display: contents; }
.cpt-who { display: flex; align-items: center; gap: 10px; height: 52px; border-top: 1px solid var(--line); padding-right: 12px; min-width: 0; }
.cg .cpt-who { color: var(--ink); }
.cpt-who > span { min-width: 0; }
.cpt-who b { display: block; font-size: 13px; font-weight: 580; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-who .mono { font-size: 11px; color: var(--ink-3); }
.cpt-track { position: relative; height: 52px; border-top: 1px solid var(--line); }
.cpt-grid { position: absolute; top: 0; bottom: 0; left: var(--cpt-who); right: 0; pointer-events: none; }
.cpt-grid i { position: absolute; top: 24px; bottom: 0; width: 1px; background: var(--line); }
.cpt-today { position: absolute; top: 0; bottom: 0; border-left: 1.5px solid var(--ink); z-index: 4; transform-origin: top center; animation: acc-drop 520ms var(--ease-out) 380ms both; }
.cpt-today span { position: absolute; bottom: 4px; left: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; background: var(--surface); padding: 0 4px; border-radius: 4px; }
.cpt-bar { position: absolute; top: 14px; height: 22px; border-radius: 999px; display: flex; align-items: center; padding: 0 8px; font-size: 11.5px; font-weight: 580; white-space: nowrap; z-index: 2; transform-origin: left center; animation: cg-fill 560ms var(--ease-out) both; animation-delay: calc(var(--r, 0) * 60ms); box-shadow: 0 0 0 2px var(--surface); }
.cg .cpt-bar:hover { text-decoration: none; filter: brightness(1.07); }
.cpt-bl { overflow: hidden; text-overflow: ellipsis; }
.cpt-sw.is-done, .cpt-bar.is-done { background: var(--viz-done); }
.cpt-sw.is-active, .cpt-bar.is-active { background: var(--viz-active); }
.cpt-sw.is-clarify, .cpt-bar.is-clarify { background: repeating-linear-gradient(135deg, var(--viz-clarify) 0 6px, color-mix(in srgb, var(--viz-clarify) 72%, var(--surface)) 6px 12px); }
.cg a.cpt-bar.is-done, .cg a.cpt-bar.is-active, .cg a.cpt-bar.is-clarify { color: #fff; }
.cg a.cpt-bar.is-clarify { text-shadow: 0 1px 2px rgb(0 0 0 / 35%); }
.cpt-plan { position: absolute; top: 42px; height: 2px; border-radius: 1px; background: var(--ink-4); animation: cg-fade 320ms ease 760ms both; }
.cpt-ms { position: absolute; top: 19px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); z-index: 3; animation: acc-pop var(--dur-moment) var(--ease-spring) 940ms both; }
.cpt-ms.is-late { background: var(--viz-risk); }
.cpt-risk { position: absolute; top: 5px; bottom: 5px; min-width: 12px; margin-left: -6px; border: 1.5px dashed var(--viz-risk); border-radius: 7px; z-index: 1; animation: cg-fade 420ms ease 880ms both; }
.cg .cpt-risk:hover { text-decoration: none; }

/* Infobulles : au survol et au focus clavier, la valeur d'abord */
.cpt-tip { position: absolute; bottom: calc(100% + 8px); left: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop); color: var(--ink-2); font-size: 12px; font-weight: 400; white-space: nowrap; opacity: 0; visibility: hidden; translate: 0 4px; transition: opacity var(--dur-fast) ease, translate var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast); z-index: 10; pointer-events: none; }
.cpt-tip b { color: var(--ink); font-weight: 600; font-size: 13px; }
.cpt-tip--end { left: auto; right: 0; }
.cpt-bar:hover .cpt-tip, .cpt-bar:focus-visible .cpt-tip, .cpt-ms:hover .cpt-tip, .cpt-ms:focus-visible .cpt-tip, .cpt-risk:hover .cpt-tip, .cpt-risk:focus-visible .cpt-tip, .cpt-col:hover .cpt-tip, .cpt-col:focus-visible .cpt-tip { opacity: 1; visibility: visible; translate: 0 0; transition: opacity var(--dur-fast) ease, translate var(--dur-fast) var(--ease-out), visibility 0s; }
.cpt-ms .cpt-tip { transform: rotate(-45deg); left: -4px; bottom: 14px; }
.cpt-ms .cpt-tip--end { left: auto; right: -4px; }

/* Couverture du stock : seul le titre à surveiller est en couleur */
.cpt-cov-wrap { position: relative; padding-top: 8px; }
.cpt-cov { display: flex; flex-direction: column; gap: 6px; }
.cpt-cov-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; height: 44px; border-radius: 8px; }
.cg .cpt-cov-row { color: var(--ink); }
.cg .cpt-cov-row:hover { background: var(--surface-2); text-decoration: none; }
.cpt-cov-n { font-size: 13px; font-weight: 560; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-cov-t { position: relative; height: 22px; display: flex; align-items: center; gap: 8px; }
.cpt-cov-t i { display: block; height: 14px; border-radius: 0 4px 4px 0; flex-shrink: 0; transform-origin: left center; animation: cg-fill 620ms var(--ease-out) 120ms both; }
.cpt-cov-t i.is-risk { background: var(--viz-clarify); }
.cpt-cov-t i.is-mute { background: var(--viz-mute); }
.cpt-cov-v { font-size: 12.5px; font-weight: 600; white-space: nowrap; animation: cg-fade 300ms ease 720ms both; }
.cpt-cov-v em { font-style: normal; font-weight: 500; color: var(--clarify); margin-left: 6px; }
.cpt-cov-ax { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.cpt-cov-ax div { position: relative; height: 14px; }
.cpt-cov-ax div span { position: absolute; translate: -50% 0; white-space: nowrap; }
.cpt-cov-ax div span:first-child { translate: 0 0; }

/* Sorties de trésorerie : engagé sous l'estimé, même teinte en deux pas ; app : autant de colonnes que de mois, et un axe
   (--cpt-tick, pas des repères en pixels) calculé sur le mois le plus haut. Aucun montant n'est animé : seules les barres poussent. */
.cpt-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.cpt-two:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.cpt-cash { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.cpt-yax { position: relative; height: 196px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cpt-yax span { position: absolute; right: 0; translate: 0 -50%; white-space: nowrap; }
.cpt-plot { position: relative; height: 196px; container: cpt-plot / inline-size; }
.cpt-plot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 173px; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px var(--cpt-tick, 67.2px)); pointer-events: none; }
.cpt-cols { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.cpt-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 8px; outline-offset: -2px; }
.cpt-col:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.cpt-stack { display: flex; flex-direction: column; gap: 2px; width: min(28px, 70%); }
.cpt-stack i { display: block; width: 100%; transform-origin: bottom center; animation: acc-grow 520ms var(--ease-out) both; }
.cpt-stack i:first-child { border-radius: 4px 4px 0 0; }
.cpt-eng { background: var(--viz-eng); animation-delay: calc(var(--c, 0) * 60ms + 120ms); }
.cpt-est { background: var(--viz-est); animation-delay: calc(var(--c, 0) * 60ms + 420ms); }
.cpt-cv { font-size: 11.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; white-space: nowrap; }
.cpt-cm { height: 24px; display: flex; align-items: flex-end; font-size: 12px; color: var(--ink-3); }
.cpt-col.is-now .cpt-cm { color: var(--ink); font-weight: 600; }
.cpt-col .cpt-tip { left: 50%; bottom: auto; top: -8px; transform: translate(-50%, -100%); }
/* Côte à côte (.cpt-two), la couverture du stock tient dans une demi-largeur : même mise en page resserrée que dans la colonne d'un écran large,
   décidée par la largeur de la carte et non par celle de l'écran. */
.cpt-card { container: cpt-card / inline-size; }
@container cpt-card (max-width: 440px) {
  .acc .cpt-cov-row { grid-template-columns: minmax(0, 1fr); height: auto; gap: 4px; padding: 6px 4px; }
  .acc .cpt-cov-n { padding-left: 0; }
  .acc .cpt-cov-t { height: auto; min-height: 22px; flex-wrap: wrap; row-gap: 2px; }
  .acc .cpt-cov-v { white-space: normal; }
  .acc .cpt-cov-v em { display: block; margin-left: 0; }
  .acc .cpt-cov-ax { grid-template-columns: minmax(0, 1fr); }
}
/* Trop de mois pour que les étiquettes tiennent côte à côte : le montant reste dans l'infobulle, au clavier, et dans « Données en tableau ». */
@container cpt-plot (max-width: 480px) { .cpt-cols:has(> :nth-child(8)) .cpt-cv { display: none; } }
@container cpt-plot (min-width: 481px) and (max-width: 720px) { .cpt-cols:has(> :nth-child(12)) .cpt-cv { display: none; } }
@container cpt-plot (min-width: 721px) and (max-width: 1000px) { .cpt-cols:has(> :nth-child(16)) .cpt-cv { display: none; } }
@container cpt-plot (min-width: 1001px) { .cpt-cols:has(> :nth-child(20)) .cpt-cv { display: none; } }

.cpt-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cpt-tbl caption { text-align: left; padding-bottom: 4px; }
.cpt-tbl th, .cpt-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.cpt-tbl th { color: var(--ink-3); font-weight: 540; }
.cpt-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.acc-pin { max-width: 460px; }

/* ---------- Écrans larges : deux colonnes par rangée (primitive .cg-cols de systeme.css) ----------
   Rangée 1 : « À traiter » à gauche, « À surveiller » à droite. Rangée 2 (« Suivi ») : le calendrier à gauche, le stock, le réassort et
   le dossier épinglé à droite. Sous 1320 px d'écran, une seule colonne : on retrouve les zones l'une sous l'autre, avec leurs écarts d'origine.
   « solo » : la rangée n'a qu'une colonne à remplir, elle prend toute la largeur. */
.acc-w .acc-cols { row-gap: 36px; }
.acc-w .acc-cols--p3 { row-gap: 12px; }
.acc-cols--p3 .cg-cols__side { gap: 12px; }
.acc-w .acc-cols--solo { grid-template-columns: minmax(0, 1fr); }
.acc-cols .zone--p1 { container: acc-z1 / inline-size; }
@media (max-width: 767px) {
  .acc-w .acc-cols { row-gap: 24px; }
  .acc-w .acc-cols--p3 { row-gap: 0; }
}
@media (min-width: 1320px) {
  .acc-w .acc-cols { row-gap: 24px; }
  .acc-cols:not(.acc-cols--solo) { align-items: stretch; }
  /* Le panneau gris descend jusqu'au bas de la rangée ; le bloc graphite garde sa hauteur, sans zone sombre vide. */
  .acc-cols:not(.acc-cols--solo):not(.acc-cols--p3) > .cg-cols__side > .zone--p2 { flex: 1; }
  .acc-cols--p3:not(.acc-cols--solo) { align-items: start; }

  /* À surveiller, dans sa colonne : deux indicateurs par ligne ; un indicateur seul (ou le dernier d'un nombre impair) prend la ligne. */
  .acc-cols:not(.acc-cols--solo) .acc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .acc-cols:not(.acc-cols--solo) .acc-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .acc-cols:not(.acc-cols--solo) .acc-kpis .cpt-kpi { padding: 14px 16px; min-height: 118px; }

  /* Calendrier : la colonne de noms se resserre pour garder de la place aux barres. */
  .acc-cols:not(.acc-cols--solo) .cpt-g { --cpt-who: 160px; }

  /* Sorties de trésorerie et couverture du stock : la colonne est étroite, les deux cartes s'empilent. */
  .acc-cols:not(.acc-cols--solo) .cpt-two { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  /* Couverture du stock : la colonne est étroite, le nom passe au-dessus de la barre et la valeur sous elle. */
  .acc-cols:not(.acc-cols--solo) .cpt-cov-row { grid-template-columns: minmax(0, 1fr); height: auto; gap: 4px; padding: 6px 4px; }
  .acc-cols:not(.acc-cols--solo) .cpt-cov-n { padding-left: 0; }
  .acc-cols:not(.acc-cols--solo) .cpt-cov-t { height: auto; min-height: 22px; flex-wrap: wrap; row-gap: 2px; }
  .acc-cols:not(.acc-cols--solo) .cpt-cov-v { white-space: normal; }
  .acc-cols:not(.acc-cols--solo) .cpt-cov-v em { display: block; margin-left: 0; }
  .acc-cols:not(.acc-cols--solo) .cpt-cov-ax { grid-template-columns: minmax(0, 1fr); }

  /* « À traiter » dans une colonne de 600 px ou moins : l'action passe sous le titre, comme sur une feuille de tablette. */
  @container acc-z1 (max-width: 700px) {
    .acc-focus { grid-template-columns: auto minmax(0, 1fr); }
    .acc-focus .acc-act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .acc-focus .src__pop { left: 0 !important; right: auto !important; }
    .acc-focus--idle { grid-template-columns: minmax(0, 1fr); }
  }
}

/* ---------- Mouvement des graphiques : une seule fois, à l'apparition ----------
   Le temps se lit de gauche à droite, l'annotation vient après la donnée. */
@keyframes acc-drop { from { scale: 1 0; } }
@keyframes acc-grow { from { scale: 1 0; } }
@keyframes acc-pop { from { scale: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .acc-seg i, .acc-bar i, .cpt-stack i, .cpt-today, .cpt-bar, .cpt-plan, .cpt-ms, .cpt-risk, .cpt-cov-t i, .cpt-cov-v { animation: none !important; }
  .cpt-tip { transition: none !important; }
  .acc-nc, .cg .acc-nc:hover { transform: none; }
}

/* ---------- Tablette : la feuille laisse peu de place à trois colonnes ---------- */
@media (max-width: 1100px) {
  .acc-focus { grid-template-columns: auto minmax(0, 1fr); }
  .acc-focus .acc-act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .acc-focus .src__pop { left: 0 !important; right: auto !important; }
  .acc-focus--idle { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .cpt-two { grid-template-columns: minmax(0, 1fr); }
  .acc-next { grid-template-columns: 1fr; }
  .cpt-g { --cpt-who: 140px; }
  .cpt-cov-row, .cpt-cov-ax { grid-template-columns: 110px minmax(0, 1fr); }
}

/* ---------- Mobile (planche Mobile-Editeur-Aujourdhui, 390 px) ----------
   « Maintenant » en bloc graphite, « Ensuite » en lignes blanches, indicateurs en tuiles 2 × 2 ; le suivi (graphiques) reste
   dans « Données en tableau ». */
@media (max-width: 767px) {
  .acc-w { gap: 24px; }
  .acc-hd { align-items: flex-start; padding-top: 4px; }
  .acc-hd__t { gap: 2px; }
  .acc-h1 { font-size: 26px; line-height: 32px; letter-spacing: -.03em; }
  .acc-brief { font-size: 15px; line-height: 24px; color: var(--ink-3); }
  .acc-brief .acc-chip { display: inline; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: inherit; font-weight: 560; vertical-align: baseline; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
  .cg .acc-brief .acc-chip:hover { background: none; box-shadow: none; text-decoration: underline; }
  .acc-brief .acc-chip--warn { box-shadow: none; }
  .acc-brief__late { display: none; }
  .acc-hd__new { display: none; }
  .acc-hd__new--solo { display: inline-flex; }

  .acc .zone--p1 { background: none; color: var(--ink); padding: 0; border-radius: 0; box-shadow: none; gap: 6px; }
  .acc .zone--p1 .zone__h { display: none; }
  .acc-now { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 6px 0 2px 4px; }
  .acc .zone--p1 .acc-k { color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 600; margin: 14px 0 0 4px; }
  .acc .zone--p1 .acc-focus { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px 16px; padding: 18px; border-radius: var(--r-xl); background: var(--z1); box-shadow: 0 18px 40px -26px rgb(15 17 21 / 60%); }
  .acc .zone--p1 .acc-focus--idle { grid-template-columns: minmax(0, 1fr); }
  .acc-focus .cover { grid-row: 1 / 3; width: 44px; height: 58px; }
  .acc-focus__b { grid-column: 2; grid-row: 1; gap: 2px; }
  .acc-focus .focus__title { order: 1; font-size: 19px; line-height: 25px; font-weight: 640; letter-spacing: -.012em; }
  .acc-focus__k { order: 2; margin: 0; font-size: 14.5px; color: var(--z1-ink-2); }
  .acc-focus__k .status, .acc-focus .focus__sub { display: none; }
  .acc-focus .acc-act { display: contents; }
  .acc-focus .acc-act > .src, .acc-focus .acc-act > .acc-cd { grid-column: 2; grid-row: 2; justify-self: start; margin: -20px 0 -12px; }
  .acc-focus .acc-cd { display: inline-flex; align-items: center; height: auto; min-height: 44px; padding: 0; box-shadow: none; font-size: 14px; }
  .acc-focus .acc-cd .ico { display: none; }
  .acc-cd__rel { display: none; }
  .acc-cd__abs { display: inline; }
  .cg .acc-focus .cta { grid-column: 1 / -1; width: 100%; height: 46px; justify-content: center; padding: 0 18px; border-radius: 11px; font-size: 14.5px; }
  .acc-focus .cta__ar { display: none; }

  .acc-next { display: block; border-top: 1px solid var(--line); }
  .acc-more > .acc-next { margin-top: 0; }
  .acc-nc, .cg .acc-nc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; column-gap: 12px; min-height: 68px; padding: 10px 16px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); color: var(--ink); }
  .cg .acc-nc:hover { background: var(--surface-2); box-shadow: none; transform: none; }
  .acc-nc .cover { grid-row: auto; }
  .acc-nc__b b { font-size: 16px; line-height: 22px; }
  .acc-nc__b span { font-size: 14px; line-height: 19px; color: var(--ink-3); }
  .acc-due { align-self: center; font-size: 13.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
  .acc-due--soon { color: var(--clarify); }
  .acc-nc__ar { display: none; }
  .cg .zone--p1 .more > summary { color: var(--role-ink); padding: 0 4px; min-height: 44px; }

  .acc .zone--p2 { padding: 12px; border-radius: var(--r-xl); }
  .acc .zone--p2 .zone__h h2 { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-3); }
  .acc-kpis { grid-template-columns: 1fr 1fr; gap: 6px; }
  .acc-kpis .cpt-kpi, .acc .acc-kpis .cpt-kpi { min-height: 44px; padding: 11px 14px; border-radius: var(--r-md); gap: 2px; }
  .acc-kpis .cpt-kpi-l { font-size: 13px; }
  .acc-kpis .cpt-kpi-v { font-size: 21px; line-height: 26px; letter-spacing: -.015em; }
  .acc-kpis .cpt-kpi-v small { font-size: 14px; }
  .acc-kpis .cpt-kpi-s { font-size: 12.5px; margin-top: 0; }
  .acc-mv { display: none; }
  .acc .zone--p2 .folds { padding: 0 12px; }
  .acc-line { min-height: 44px; align-items: center; }

  .acc .zone--p3 .zone__h p, .acc .zone--p3 .cpt-card { display: none; }
  .acc .zone--p3 .zone__h h2 { font-size: 13px; }
}
