/* Chantier 26 (réalisation de la maquette du 15 octobre 2026, avec 21 et 27) : vue d'ensemble, barre latérale, « À préciser » et le tableau
   des décisions, Solution proposée, Budget, Scénarios alternatifs, Mes documents. Jetons --ln-* seulement : aucune couleur nouvelle. Ce
   fichier passe APRÈS 2d-ledger.css (ordre alphabétique) : une règle qui corrige un composant Ledger vit ici. */

/* ---- Menu du dossier ---------------------------------------------------------------------------------------- */
.dossier-side__list a { position: relative; }
.dossier-side__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ln-accent); color: var(--ln-on-dark); font-size: var(--ln-text-sm); font-weight: 600; line-height: 1.5; text-align: center; }
/* Sans question ouverte : une coche et « Rien à préciser » à droite du libellé (12 novembre 2026). */
.dossier-side__done { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ln-good); font-size: var(--ln-text-xs); font-weight: 500; white-space: nowrap; }
/* Le libellé « À préciser » ne se coupe pas en deux lignes à côté de la mention (revue d'intégration, 12 novembre 2026). */
#side-todo > span:not(.dossier-side__done):not(.dossier-side__count) { white-space: nowrap; }
.dossier-side__done .ln-icon, .dossier-side__list a[aria-current="page"] .dossier-side__done .ln-icon { width: 14px; height: 14px; color: var(--ln-good); }
/* « Notre proposition » nomme le scénario affiché quand le dossier en a plusieurs : une précision en gris, jamais la couleur d'un lien. */
.dossier-side__label small, .dossier-side__scenario { display: block; margin-top: 2px; font-size: var(--ln-text-sm); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ln-muted); overflow-wrap: anywhere; }
.code-faint { color: var(--ln-faint); font-size: var(--ln-text-sm); font-weight: 500; letter-spacing: 0; white-space: nowrap; }

/* ---- En-tête de page du client ----------------------------------------------------------------------------- */
.dossier-header--home .dossier-header__sub { margin-top: 4px; font-size: var(--ln-text-sm); }
.dossier-header--home .dossier-header__note { max-width: 70ch; }

/* ---- Vue d'ensemble ----------------------------------------------------------------------------------------- */
.overview-cost { margin: 0 0 16px; }
.overview-cost .ld-kpis { margin-bottom: 8px; }
.ld-kpis--client { grid-template-columns: minmax(0, 1.25fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.ld-kpis--client .ld-kpi--main strong { font-size: var(--ln-text-title); }
.ld-kpis--client .ld-kpi--quiet strong { font-size: var(--ln-text-lead); white-space: normal; }
.ld-kpis--client .ld-kpi--quiet { padding: 14px 16px; }
.ld-kpis__why { margin: 0 2px 16px; font-size: var(--ln-text-sm); color: var(--ln-muted); max-width: 90ch; }
.overview-lastversion { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); }
.overview-specify-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-left: 3px solid var(--ln-accent); }
.overview-specify-line__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ln-sky); color: var(--ln-accent); }
.overview-specify-line__icon .ln-icon { width: 20px; height: 20px; }
.overview-specify-line__text { flex: 1 1 18rem; min-width: 0; }
.overview-specify-line__text p { margin: 0; }
.overview-specify-line__text .help { margin-top: 2px; }
.overview-changes__list { margin: 0 0 10px; }
.overview-changes .overview-relaunch { margin-top: 12px; }
.overview-changes .help { margin: 0 0 4px; }
.overview-architecture__title { margin: 0 0 12px; font-size: var(--ln-text-sm); font-weight: 500; color: var(--ln-muted); letter-spacing: 0; }
/* L'annonce de fin d'analyse tient sur une ligne à l'écran large : le titre et sa phrase, puis les deux boutons (maquette 01a). */
@media (min-width: 981px) {
  .overview .analysis-notice--large { align-items: center; padding: 18px 22px; }
  .overview .analysis-notice--large .analysis-notice__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; width: 100%; }
  .overview .analysis-notice--large h2 { grid-column: 1; font-size: var(--ln-text-lg); margin: 0 0 2px; }
  .overview .analysis-notice--large p { grid-column: 1; margin: 0; font-size: var(--ln-text-base); }
  .overview .analysis-notice--large .ln-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; flex-wrap: nowrap; }
}
.analysis-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--sp-4, 16px); font-size: var(--ln-text-base); }
.analysis-line--good { color: var(--ln-good); }
.analysis-line--danger { color: var(--ln-danger); }
.analysis-notice .ln-actions { margin-top: 12px; }

/* ---- Composants du fil « À préciser » et du tableau des décisions ------------------------------------------- */
.body--app .button--quiet { border-style: dashed; color: var(--ln-muted); background: transparent; }
.body--app .button--quiet:hover { background: var(--ln-soft); color: var(--ln-ink); }
.body--app .button--big { min-height: 44px; padding: 0 20px; font-size: var(--ln-text-base); }
.warn-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; background: var(--ln-warn-bg); border: 1px solid var(--ln-warn-line); border-radius: var(--ln-radius); font-size: var(--ln-text-sm); color: var(--ln-warn-ink); }
.warn-line .ln-icon { color: var(--ln-warn); }
.warn-line > span { flex: 1 1 18rem; min-width: 0; }
.todo-page { max-width: 760px; }
.todo-progress { margin: 0 0 14px; }
.todo-progress__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 8px; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.todo-progress__line strong { color: var(--ln-ink); font-size: var(--ln-text-base); }
.todo-segs { display: flex; gap: 3px; list-style: none; padding: 0; margin: 0; }
.todo-segs li { flex: 1; height: 6px; border-radius: 3px; background: var(--ln-line-strong); }
.todo-segs li.todo-segs__done { background: var(--ln-accent); }
.todo-segs li.todo-segs__now { background: var(--ln-accent); box-shadow: 0 0 0 2px var(--ln-sky-line); }
.todo-card { background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: 16px; padding: 26px; box-shadow: 0 10px 30px -18px var(--ln-shadow-todo); margin: 0 0 16px; }
.todo-card__kicker { margin: 0; font-size: var(--ln-text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ln-faint); }
.todo-card__title { margin: 6px 0 6px; font-size: var(--ln-text-xl); line-height: 1.25; }
.todo-card__why { margin: 0 0 18px; color: var(--ln-muted); }
.todo-form { margin: 0; }
.todo-label { display: block; margin: 4px 0 6px; font-size: var(--ln-text-sm); font-weight: 600; }
.todo-card textarea { width: 100%; min-height: 72px; font: inherit; border: 1px solid var(--ln-control-line); border-radius: var(--ln-radius-sm); padding: 10px; }
.todo-suggestion { border: 1px dashed var(--ln-sky-dash); background: var(--ln-sky); border-radius: var(--ln-radius); padding: 14px 16px; margin: 0 0 18px; }
.todo-suggestion__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--ln-text-sm); font-weight: 700; color: var(--ln-accent-strong); }
.todo-suggestion__text { margin: 0 0 4px; font-size: var(--ln-text-md); font-weight: 600; color: var(--ln-ink); overflow-wrap: anywhere; }
.todo-suggestion__text p { margin: 0 0 6px; font-weight: 500; font-size: var(--ln-text-md); }
.todo-suggestion__note { margin: 0 0 10px; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.todo-suggestion__placed { margin: 10px 0 0; font-size: var(--ln-text-sm); color: var(--ln-good); font-weight: 600; }
.todo-suggestion .button { margin-top: 2px; }
.todo-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.todo-actions__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.todo-help { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ln-line); }
.todo-help--empty { display: none; }
.todo-saved { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; font-size: var(--ln-text-sm); color: var(--ln-good); font-weight: 600; }
.todo-decisions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 2px 0; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.todo-decisions > span { flex: 1 1 16rem; }
.todo-answer-read { margin: 0 0 12px; padding: 10px 12px; background: var(--ln-soft); border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); }
.todo-done .ld-card__body > :last-child { margin-bottom: 0; }
.todo-all { margin-top: 18px; font-size: var(--ln-text-sm); }
.todo-all ul { margin: 8px 0 0; padding-left: 18px; }
.todo-all__item--done { color: var(--ln-muted); }
/* Le glissement d'une carte à l'autre : seulement sans préférence de mouvement réduit ; l'information reste entière sans. */
@media (prefers-reduced-motion: no-preference) {
  .todo-card { animation: todo-in .32s ease-out both; }
  @keyframes todo-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
}
.decision-card .todo-card__title { margin-bottom: 10px; }
.decision-proposal .todo-suggestion__text { font-size: var(--ln-text-md); }
.decision-reasons { margin: 6px 0 0; padding-left: 1.1rem; font-size: var(--ln-text-base); }
.decision-options { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); }
.decision-options li { padding: 10px 12px; border-bottom: 1px solid var(--ln-line); font-size: var(--ln-text-sm); }
.decision-options li:last-child { border-bottom: 0; }
.decision-actions .inline-form { display: inline; }
.decision-other { display: inline-block; }
.decision-other > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.decision-other > summary::-webkit-details-marker { display: none; }
.decision-other[open] { display: block; flex-basis: 100%; margin-top: 8px; }
#decisions-board .decisions-counter { margin: 0 0 12px; }

/* ---- Solution proposée (lecture) ---------------------------------------------------------------------------- */
.solution--client { display: flex; flex-direction: column; gap: 16px; }
.solution--client > * { margin: 0; }
.solution-schema .solution-head__summary { margin: 0 0 12px; }
.solution-schema .diagram-card { margin: 0; }
/* Sommaire d'ancres en tête de la page (12 novembre 2026) : la page est longue, on y va d'un clic. */
.solution-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: var(--ln-text-sm); }
.solution-toc a { padding: 5px 12px; border: 1px solid var(--ln-line); border-radius: 999px; background: var(--ln-surface); color: var(--ln-side-text); font-weight: 500; text-decoration: none; }
.solution-toc a:hover { border-color: var(--ln-control-line); color: var(--ln-title); }
.solution--client [id] { scroll-margin-top: 84px; }
.solution-pieces .ld-card__body { padding: 0; }
/* Une ligne par pièce : la première phrase, la suite au clic. */
.solution-piece__more > summary { list-style: none; cursor: pointer; }
.solution-piece__more > summary::-webkit-details-marker { display: none; }
.solution-piece__hint { margin-left: 4px; font-size: var(--ln-text-sm); font-weight: 500; color: var(--ln-accent); white-space: nowrap; }
.solution-piece__hint::after { content: " +"; }
.solution-piece__more[open] .solution-piece__hint::after { content: " −"; }
.solution-piece__more > p { margin: 6px 0 0; color: var(--ln-muted); }
.solution-pieces__table th[scope="row"] { font-weight: 600; }
.solution-pieces__origin { color: var(--ln-muted); white-space: nowrap; }
.solution-guarantees__list { list-style: none; margin: 0; padding: 0; }
.solution-guarantees__list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--ln-line); }
.solution-guarantees__by { font-size: var(--ln-text-sm); color: var(--ln-muted); }
.solution-guarantees__by a { font-weight: 600; white-space: nowrap; }
.solution-guarantees__list li:last-child { border-bottom: 0; }
.solution-guarantees__list .help { margin: 2px 0 0; }
.solution-decisions-list__rows { list-style: none; margin: 0; padding: 0; }
.solution-decisions-list__common { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--ln-line); font-size: var(--ln-text-sm); color: var(--ln-muted); }
/* Le détail technique, replié : chaque vue a son titre, les étapes en texte d'un parcours se replient sous son schéma. */
.architecture-diagrams .solution-fold__body { padding: 16px; }
.architecture-steps-fold { margin-top: 8px; font-size: var(--ln-text-sm); }
.architecture-steps-fold > summary { cursor: pointer; color: var(--ln-accent); font-weight: 500; }
.architecture-steps-fold > .architecture-steps { margin-top: 8px; }
.architecture-steps__condition { color: var(--ln-muted); }
/* « Comment ça va se passer » : les parcours en étapes écrites, ouverts ; le schéma de séquence au clic. */
.solution-journeys__intro { margin: 0 0 var(--sp-4); }
.solution-journey + .solution-journey { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--ln-line); }
.solution-journey__title { margin: 0; font-size: var(--ln-text-md); }
.solution-journey__who { margin: var(--sp-1) 0 0; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.solution-journey__goal { margin: var(--sp-2) 0 0; }
.solution-journey__steps { margin: var(--sp-3) 0 0; padding-left: var(--sp-6); }
.solution-journey__steps li { padding: var(--sp-1) 0; }
.solution-journey__steps li::marker { color: var(--ln-muted); font-weight: 600; }
.solution-journey__diagram { margin-top: var(--sp-3); font-size: var(--ln-text-sm); }
.solution-journey__diagram > summary { cursor: pointer; color: var(--ln-accent); font-weight: 500; }
.solution-journey__diagram > .diagram-frame { margin-top: var(--sp-2); }
/* « Où vont vos données » : l'hébergement, puis ce qui sort vers des tiers. */
.solution-data__hosting { margin: 0 0 var(--sp-3); }
.solution-data__lead { margin: 0 0 var(--sp-2); }
.solution-data__list { list-style: none; margin: 0; padding: 0; }
.solution-data__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--ln-line); }
.solution-data__list li:last-child { border-bottom: 0; }
.solution-data__what { font-size: var(--ln-text-sm); color: var(--ln-muted); }
/* Détails techniques : les outils et l'hébergement d'abord. */
.solution-stack { margin-bottom: var(--sp-6); }
.solution-stack__status { white-space: nowrap; }
.solution-decision-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--ln-line); }
.solution-decision-row:last-child { border-bottom: 0; }
.solution-decision-row__title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.solution-decision-row__title .fine { display: block; font-weight: 400; }
.solution-decision-row__state { flex: none; font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted); white-space: nowrap; }
.solution-decision-row__state--todo { color: var(--ln-accent); }
.solution-decisions-list__export { margin: 0; padding: 10px 18px 14px; }
.solution-reading { font-size: var(--ln-text-sm); color: var(--ln-muted); }
.solution-reading details { margin: 6px 0; }
/* Sur téléphone, « Les pièces de votre solution » se lit AVANT le schéma, qui est très petit à 375 px (décision du 15 octobre 2026) ;
   le schéma s'ouvre en plein écran au toucher (Stimulus `diagram-fullscreen`). */
@media (max-width: 860px) {
  .solution--client .solution-toc { order: -2; }
  .solution-pieces__origin { white-space: normal; }
  .solution--client .solution-pieces { order: -1; }
  .solution--client .solution-schema { order: 0; }
}
.body--app .diagram-fullscreen__open { display: none; margin: 8px 0 0; }
@media (max-width: 860px) { .body--app .diagram-fullscreen__open { display: inline-flex; } }
.diagram-fullscreen__dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--ln-page); }
.diagram-fullscreen__dialog::backdrop { background: var(--ln-backdrop-deep); }
.diagram-fullscreen__bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ln-page); border-bottom: 1px solid var(--ln-line); z-index: 2; }
.diagram-fullscreen__body { overflow: auto; padding: 12px; touch-action: pan-x pan-y pinch-zoom; }
.diagram-fullscreen__body svg { display: block; width: 900px; max-width: none; height: auto; }

/* ---- Budget estimatif (lecture) ----------------------------------------------------------------------------- */
.budget-detail--client { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.budget-detail--client > * { margin: 0; }
.budget-lines .ld-card__head { justify-content: space-between; }
.budget-lines__rate { font-size: var(--ln-text-sm); color: var(--ln-muted); }
.budget-lines__note { margin: 0; padding: 10px 18px 0; }
.budget-lines__empty { margin: 0; padding: 14px 18px; }
.budget-lines .table-wrap { margin: 0; }
.budget-table td small, .budget-table th small { display: block; margin-top: 2px; font-size: var(--ln-text-sm); font-weight: 400; color: var(--ln-muted); }
.budget-table .budget-table__action { text-align: right; white-space: nowrap; }
.budget-table .budget-table__action .scope-toggle { display: inline-block; text-align: left; }
.budget-table tfoot th { font-weight: 700; background: var(--ln-surface-band); border-top: 1px solid var(--ln-line); }
@media (max-width: 640px) {
  .budget-table.table--responsive thead { display: none; }
  .budget-table.table--responsive, .budget-table.table--responsive tbody, .budget-table.table--responsive tfoot { display: block; }
  .budget-table.table--responsive tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--ln-line); }
  .budget-table.table--responsive td, .budget-table.table--responsive th { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: left; background: transparent; }
  .budget-table.table--responsive td::before { content: attr(data-label); position: static; width: auto; font-size: var(--ln-text-sm); color: var(--ln-muted); flex: none; }
  .budget-table.table--responsive td:not([data-label])::before { content: none; }
  .budget-table.table--responsive td.table__code { padding-bottom: 0; }
  .budget-table.table--responsive td:not([data-label]):not(.table__code):not(.budget-table__action) { display: block; }
  .budget-table.table--responsive td.num { text-align: right; }
  .budget-table.table--responsive td[colspan], .budget-table.table--responsive th[colspan] { display: flex; }
  .budget-table.table--responsive .budget-table__action { justify-content: flex-start; padding-top: 6px; }
  .budget-table.table--responsive tfoot tr { display: flex; justify-content: space-between; gap: 12px; }
  .budget-table.table--responsive tfoot td:empty { display: none; }
}
/* ---- Postes compacts (16 octobre 2026) : un poste = deux lignes de texte au plus. Le poste prend la place libre (titre sur une ligne,
   description coupée par une ellipse) ; heures, montant et geste de retrait restent à leur largeur. Un clic déplie le poste : description
   entière, heures de référence, facteur et heures retenues. ---------------------------------------------------------------- */
details.budget-lines__note { margin: 0; padding: 8px 18px 2px; font-size: var(--ln-text-sm); color: var(--ln-muted); }
details.budget-lines__note > summary { cursor: pointer; list-style: none; }
details.budget-lines__note > summary::-webkit-details-marker { display: none; }
details.budget-lines__note > summary::after { content: " ▾"; color: var(--ln-faint); }
details.budget-lines__note[open] > summary::after { content: " ▴"; }
details.budget-lines__note > .help { margin: 4px 0 6px; max-width: 70ch; }
.budget-table--compact td, .budget-table--compact th { white-space: nowrap; }
.budget-table.budget-table--compact tbody td { padding-top: 4px; padding-bottom: 4px; line-height: 1.2; }
.budget-table--compact td.budget-row__item { width: 100%; max-width: 0; white-space: normal; }
.budget-table--compact .budget-row__details > summary { list-style: none; cursor: pointer; position: relative; padding-left: 16px; font-weight: 400; }
.budget-table--compact .budget-row__details > summary::-webkit-details-marker { display: none; }
.budget-table--compact .budget-row__details > summary::before { content: ""; position: absolute; left: 1px; top: 4px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--ln-faint); transition: none; }
.budget-table--compact .budget-row__details[open] > summary::before { transform: rotate(90deg); }
.budget-table--compact .budget-row__details > summary:focus-visible { outline: 2px solid var(--ln-accent); outline-offset: 2px; border-radius: 3px; }
.budget-row__title, .budget-row__desc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.budget-row__details[open] .budget-row__desc { display: none; }
.budget-row__title { display: flex; align-items: baseline; gap: 6px; }
.budget-row__title strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.budget-row__title .code-faint, .budget-row__title .badge { flex: none; }
.budget-row__desc { font-size: var(--ln-text-sm); font-weight: 400; line-height: 1.2; color: var(--ln-muted); }
.budget-row__more { padding: 6px 0 8px 16px; font-size: var(--ln-text-sm); line-height: 1.45; }
.budget-row__more p { margin: 0 0 6px; max-width: 72ch; }
.budget-row__more .budget-row__fulltitle { display: none; }
.budget-row__figures { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 6px 0 0; }
.budget-row__figures > div { min-width: 0; }
.budget-row__figures dt { font-size: var(--ln-text-sm); font-weight: 500; color: var(--ln-muted); }
.budget-row__figures dd { margin: 0; font-variant-numeric: tabular-nums; }
.budget-row__hours strong, .budget-row__amount strong { display: block; font-size: var(--ln-text-base); font-weight: 600; }
.budget-table--compact td.budget-row__hours small, .budget-table--compact td.budget-row__amount small { margin-top: 0; font-size: var(--ln-text-xs); line-height: 1.2; }
.budget-row__marks { margin: 6px 0 0; }
.budget-row__marks:not(:has(.badge)) { display: none; }
.budget-row__more .notice-inline { margin: 6px 0 0; max-width: 72ch; }
.budget-table--compact .budget-table__action a.button-link { display: inline-block; padding: 1px 9px; border: 1px solid var(--ln-line); border-radius: 6px; font-size: var(--ln-text-sm); text-decoration: none; background: var(--ln-surface); }
.budget-table--compact .budget-table__action a.button-link:hover { border-color: var(--ln-accent); }
.budget-table--compact .budget-table__action { font-size: var(--ln-text-sm); }
.budget-table--compact .budget-table__action .scope-toggle > summary { list-style: none; display: inline-block; cursor: pointer; padding: 1px 9px; border: 1px solid var(--ln-line); border-radius: 6px; font-size: var(--ln-text-sm); text-decoration: none; background: var(--ln-surface); }
.budget-table--compact .budget-table__action .scope-toggle > summary::-webkit-details-marker { display: none; }
.budget-table--compact .budget-table__action .scope-toggle > summary:hover { border-color: var(--ln-accent); }
.budget-table--compact .budget-table__action form.scope-toggle .button-link { padding: 1px 9px; border: 1px solid var(--ln-line); border-radius: 6px; font-size: var(--ln-text-sm); text-decoration: none; background: var(--ln-surface); }
.budget-table--compact .budget-table__action .scope-toggle[open] .inline-form { display: grid; gap: 6px; width: 16rem; margin-top: 6px; white-space: normal; text-align: left; }
@media (max-width: 640px) {
  /* Une carte par poste : le titre, les heures et le montant sur une ligne ; le reste (description, heures de référence, facteur,
     retrait) est replié avec le poste. */
  .budget-table--compact.table--responsive tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; padding: 8px 14px; column-gap: 12px; }
  .budget-table--compact.table--responsive td { display: block; padding: 0; line-height: 1.25; }
  .budget-table--compact.table--responsive td::before { content: none; }
  .budget-table.budget-table--compact.table--responsive tbody td { padding-top: 0; padding-bottom: 0; }
  .budget-table--compact.table--responsive td.budget-row__item { grid-column: 1 / -1; grid-row: 1; max-width: none; }
  .budget-table--compact.table--responsive td.budget-row__hours { grid-column: 2; grid-row: 1; text-align: right; pointer-events: none; z-index: 1; }
  .budget-table--compact.table--responsive td.budget-row__amount { grid-column: 3; grid-row: 1; text-align: right; pointer-events: none; z-index: 1; min-width: 4.5rem; }
  .budget-table--compact.table--responsive td.budget-row__hours small, .budget-table--compact.table--responsive td.budget-row__amount small { display: none; }
  .budget-table--compact.table--responsive td.budget-row__hours strong, .budget-table--compact.table--responsive td.budget-row__amount strong { font-size: var(--ln-text-sm); }
  .budget-table--compact .budget-row__title { padding-right: 8.5rem; }
  .budget-table--compact .budget-row__more .budget-row__fulltitle { display: block; }
  .budget-table--compact.table--responsive td.budget-table__action { grid-column: 1 / -1; grid-row: 2; padding-top: 4px; text-align: right; }
  .budget-table--compact.table--responsive tr:not(:has(.budget-row__details[open])) td.budget-table__action { display: none; }
}
.budget-rates { list-style: none; margin: 0; padding: 12px 18px; }
.budget-alt-line { margin: 0 2px; font-size: var(--ln-text-sm); color: var(--ln-muted); }

/* ---- Scénarios alternatifs ----------------------------------------------------------------------------------- */
.alt-page h2 { font-size: var(--ln-text-lg); margin: 40px 0 8px; letter-spacing: -.015em; }
.alt-page > section:first-of-type h2 { margin-top: 4px; }
.alt-lead { margin: 0 0 16px; max-width: 72ch; }
.alt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; }
.alt-grid--solo { grid-template-columns: minmax(0, 1fr); }
.alt-card { display: flex; flex-direction: column; background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius-lg); padding: 20px 24px; }
.alt-card--shown { border-color: var(--ln-accent); }
.alt-card__label { margin: 0 0 6px; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-card__title { margin: 0 0 4px; font-size: var(--ln-text-lg); }
.alt-card__shown { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--ln-accent-strong); font-weight: 600; font-size: var(--ln-text-sm); }
.alt-card__facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: var(--ln-text-sm); }
.alt-card__facts > div { display: contents; }
.alt-card__facts dt { color: var(--ln-muted); }
.alt-card__facts dd { margin: 0; font-weight: 600; }
.alt-card__stale { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: var(--ln-text-sm); color: var(--ln-warn); }
.alt-card__stale .ln-icon { margin-top: 2px; flex: none; }
.alt-card__foot { margin-top: auto; }
.alt-card__foot form { margin: 0; }
.alt-more > summary { cursor: pointer; margin: 12px 0; }
/* Un seul scénario : la carte prend la largeur, ses chiffres à droite, le budget en grand. */
@media (min-width: 900px) {
  .alt-grid--solo .alt-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 48px; align-items: start; }
  .alt-grid--solo .alt-card > * { grid-column: 1; }
  .alt-grid--solo .alt-card__facts { grid-column: 2; grid-row: 1 / span 6; align-self: center; display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
  .alt-grid--solo .alt-card__facts > div { display: block; }
  .alt-grid--solo .alt-card__facts dd { font-size: var(--ln-text-md); }
  .alt-grid--solo .alt-card__facts dd strong { display: block; font-size: var(--ln-text-xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
  .alt-grid--solo .alt-card__facts dd .fine { font-weight: 400; }
  .alt-grid--solo .alt-card__stale { max-width: 52ch; }
}

/* La comparaison : toutes les approches chiffrées sur une même échelle, qui part de zéro. */
.alt-scale { list-style: none; margin: 0; padding: 8px 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) max-content; column-gap: 28px;
  background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius-lg); }
.alt-scale > li { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; }
.alt-scale__row { padding: 14px 0; border-top: 1px solid var(--ln-line); }
.alt-scale__row:first-child { border-top: 0; }
.alt-scale__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.alt-scale__name a { color: var(--ln-ink); text-decoration: underline; text-decoration-color: var(--ln-line-strong); text-underline-offset: 3px; }
.alt-scale__name a:hover { color: var(--ln-accent-strong); text-decoration-color: currentColor; }
.alt-scale__verdict { font-size: var(--ln-text-sm); font-weight: 500; color: var(--ln-muted); }
.alt-scale__row--retained .alt-scale__verdict { color: var(--ln-accent-strong); font-weight: 600; }
.alt-scale__track { position: relative; height: 14px; border-radius: 999px; background: var(--ln-soft); box-shadow: inset 0 0 0 1px var(--ln-line); }
.alt-scale__bar { position: absolute; top: 0; bottom: 0; left: var(--from); width: max(var(--span), 8px); border-radius: 999px; background: var(--ln-sky-line); box-shadow: inset 0 0 0 1px var(--ln-accent); }
.alt-scale__row--retained .alt-scale__bar { background: var(--ln-accent); }
.alt-scale__figures { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.alt-scale__figures span { font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-scale__axis { padding: 0 0 8px; }
.alt-scale__ticks { display: flex; justify-content: space-between; font-size: var(--ln-text-xs); color: var(--ln-muted); }
.alt-compare__basis { margin: 12px 0 0; max-width: 88ch; }
@media (prefers-reduced-motion: no-preference) {
  .alt-scale__bar { animation: alt-scale-grow 800ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .piste:target { animation: alt-piste-target 1600ms ease-out; }
}
@keyframes alt-scale-grow { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes alt-piste-target { from { background: var(--ln-sky); } to { background: transparent; } }

/* Les pistes : côte à côte, séparées par un filet, sans boîte ; le détail de ce qui manquerait est replié. */
.alt-pistes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px 48px; }
.piste { display: flex; flex-direction: column; border-top: 2px solid var(--ln-ink); padding: 16px 0 24px; scroll-margin-top: 96px; }
.piste h3 { margin: 0 0 8px; font-size: var(--ln-text-md); line-height: 1.3; text-wrap: balance; }
.piste__kind { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted); }
.piste__kind--ai { color: var(--ln-accent-strong); }
.piste p { max-width: 68ch; margin: 0 0 12px; }
.piste__facts { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: var(--ln-text-sm); max-width: 68ch; }
.piste__facts > div { display: contents; }
.piste__facts dt { color: var(--ln-muted); }
.piste__facts dd { margin: 0; }
.piste__gaps { margin: 0 0 12px; font-size: var(--ln-text-sm); }
.piste__gaps > summary { cursor: pointer; color: var(--ln-muted); font-weight: 600; }
.piste__gaps > summary:hover { color: var(--ln-ink); }
.piste__gaps ul { margin: 8px 0 0; padding-left: 18px; color: var(--ln-muted); max-width: 64ch; }
.piste__gaps li { margin: 0 0 4px; }
.piste .piste__order { font-size: var(--ln-text-sm); margin: 0 0 16px; }
.piste__foot { margin-top: auto; }
.piste__foot p { margin: 0; }
.alt-rejected { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--ln-line); }
.alt-rejected > summary { cursor: pointer; font-weight: 600; }
.alt-rejected dl { margin: 12px 0 0; max-width: 80ch; }
/* La comparaison à coûts complets (contrat 1.11, maquette comparaison-v2.html) : grille de tarifs, une colonne par approche, les mêmes lignes pour toutes (sous-grille). */
.alt-compare { min-width: 0; }
.alt-full-scroll { overflow-x: auto; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-lg); background: var(--ln-page); }
.alt-full { display: grid; grid-template-columns: 140px repeat(var(--cols), minmax(230px, 1fr)); grid-template-rows: repeat(7, auto); min-width: 720px; }
.alt-full__labels, .alt-opt { display: grid; grid-template-rows: subgrid; grid-row: 1 / -1; min-width: 0; }
.alt-full__cell { padding: 14px 18px; border-top: 1px solid var(--ln-line); min-width: 0; overflow-wrap: anywhere; }
.alt-full__cell:first-child { border-top: 0; }
.alt-full__cell p { margin: 0; }
.alt-full__labels { position: sticky; left: 0; z-index: 2; background: var(--ln-soft); border-right: 1px solid var(--ln-line); }
.alt-full__labels .alt-full__cell { padding-right: 10px; color: var(--ln-muted); font-size: var(--ln-text-sm); font-weight: 600; display: flex; align-items: flex-start; padding-top: 16px; }
.alt-full__k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alt-opt { border-left: 1px solid var(--ln-line); }
.alt-full__labels + .alt-opt { border-left: 0; }
.alt-opt--retained { background: var(--ln-sky-faint); box-shadow: inset 0 3px 0 var(--ln-accent); }
.alt-full__head { padding-top: 16px; padding-bottom: 14px; }
.alt-opt__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.alt-opt__verdict { display: inline-flex; align-items: center; gap: 5px; font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted); }
.alt-opt--retained .alt-opt__verdict { color: var(--ln-accent-strong); font-weight: 700; }
.alt-opt__verdict--warn { color: var(--ln-warn); }
.alt-opt__kind { display: inline-flex; align-items: center; gap: 5px; font-size: var(--ln-text-sm); font-weight: 500; color: var(--ln-muted); }
.alt-opt__title { margin: 0; font-size: var(--ln-text-lg); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.alt-opt__what { margin-top: 6px !important; font-size: var(--ln-text-sm); color: var(--ln-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alt-opt__sub { display: block; margin-top: 4px !important; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-opt__sub--warn { color: var(--ln-warn); }
.alt-opt__price { font-size: var(--ln-text-xl); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.alt-opt__price small { font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted); letter-spacing: 0; }
.alt-opt__range { margin-top: 2px !important; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-opt__bar { display: flex; height: 8px; margin: 10px 0 8px; border-radius: 999px; background: var(--ln-soft); box-shadow: inset 0 0 0 1px var(--ln-line); overflow: hidden; }
.alt-opt__bar span { height: 100%; }
.alt-opt__bar-first { background: var(--ln-accent); }
.alt-opt__bar-next { background: var(--ln-sky-dash); }
.alt-opt__split { font-size: var(--ln-text-sm); color: var(--ln-muted); line-height: 1.35; }
.alt-opt__same { margin-top: 4px !important; font-size: var(--ln-text-xs); font-weight: 600; color: var(--ln-accent-strong); }
.alt-opt__dots { display: flex; align-items: center; gap: 3px; margin-bottom: 6px; flex-wrap: wrap; }
.alt-dot { display: inline-block; width: 14px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
.alt-dot--unverified { box-shadow: inset 0 0 0 1.5px var(--ln-warn); }
.alt-dot--deferred { background: var(--ln-sky); box-shadow: inset 0 0 0 1px var(--ln-sky-dash); }
.alt-dot--gaps { background: var(--ln-line-strong); }
.alt-opt__cov-all { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ln-text-base); font-weight: 600; color: var(--ln-good); }
.alt-opt__cov-count { font-size: var(--ln-text-base); font-weight: 700; color: var(--ln-ink); }
.alt-opt__cov-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: var(--ln-text-sm); }
.alt-opt__cov-list li { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ln-muted); }
.alt-opt__cov-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-opt__cov-list .alt-dot { width: 10px; height: 6px; border-radius: 2px; }
.alt-opt__delay { font-size: var(--ln-text-md); font-weight: 700; }
.alt-opt__wbar { position: relative; height: 6px; margin-top: 7px; border-radius: 999px; background: var(--ln-neutral-bg); overflow: hidden; }
.alt-opt__wbar-low { position: absolute; inset: 0 auto 0 0; background: var(--ln-accent-strong); border-radius: 999px 0 0 999px; }
.alt-opt__wbar-range { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--ln-sky-dash) 0 3px, var(--ln-sky) 3px 6px); border-radius: 0 999px 999px 0; }
.alt-opt__dep { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ln-text-base); font-weight: 600; }
.alt-opt__dep .ln-icon { color: var(--ln-muted); }
.alt-opt__why { font-size: var(--ln-text-sm); line-height: 1.45; color: var(--ln-ink); }
.alt-full__foot { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; background: var(--ln-surface-band); }
.alt-opt--retained .alt-full__foot { background: var(--ln-sky-faint); }
.alt-opt__more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ln-text-base); font-weight: 600; color: var(--ln-accent); text-decoration: underline; text-underline-offset: 3px; }
.alt-opt__done { font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-opt__done a { font-weight: 600; }
.alt-full__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0 0; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-full__key > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.alt-full__key i.alt-opt__bar-first, .alt-full__key i.alt-opt__bar-next { display: inline-block; width: 14px; height: 8px; border-radius: 3px; }
.alt-full__note { margin: 6px 0 0; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.alt-detail { margin-top: 12px; border: 1px solid var(--ln-line); border-radius: var(--ln-radius); background: var(--ln-page); }
.alt-detail > summary { padding: 11px 16px; cursor: pointer; font-size: var(--ln-text-base); font-weight: 600; color: var(--ln-ink); display: flex; align-items: center; justify-content: space-between; list-style: none; }
.alt-detail > summary::-webkit-details-marker { display: none; }
.alt-detail > summary::after { content: "+"; font-weight: 700; color: var(--ln-muted); }
.alt-detail[open] > summary { border-bottom: 1px solid var(--ln-line); background: var(--ln-soft); }
.alt-detail[open] > summary::after { content: "–"; }
.alt-detail__body { padding: 14px 16px; font-size: var(--ln-text-sm); }
.alt-detail__scroll { overflow-x: auto; }
.alt-detail__table { width: 100%; border-collapse: collapse; font-size: var(--ln-text-sm); min-width: 560px; }
.alt-detail__table th, .alt-detail__table td { padding: 8px 10px; border-bottom: 1px solid var(--ln-line); text-align: left; vertical-align: top; }
.alt-detail__table th { color: var(--ln-muted); font-weight: 600; background: var(--ln-soft); }
@media (max-width: 900px) {
  .alt-full-scroll { border: 0; background: none; overflow: visible; }
  .alt-full { min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
  .alt-full__labels { display: none; }
  .alt-opt { display: block; grid-row: auto; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-lg); background: var(--ln-page); overflow: hidden; }
  .alt-opt--retained { background: var(--ln-sky-faint); border-color: var(--ln-accent); }
  .alt-full__cell { padding: 11px 15px; }
  .alt-full__k { position: static; width: auto; height: auto; clip-path: none; margin-bottom: 3px; font-size: var(--ln-text-xs); font-weight: 600; color: var(--ln-muted); white-space: normal; }
  .alt-opt [id$="-cost"], .alt-opt [id$="-coverage"], .alt-opt [id$="-delay"], .alt-opt [id$="-exit"] {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .alt-opt [id$="-cost"] > div, .alt-opt [id$="-coverage"] > div,
  .alt-opt [id$="-delay"] > div, .alt-opt [id$="-exit"] > div { min-width: 0; }
  .alt-opt [id$="-cost"] .alt-full__k, .alt-opt [id$="-coverage"] .alt-full__k,
  .alt-opt [id$="-delay"] .alt-full__k, .alt-opt [id$="-exit"] .alt-full__k { margin: 0; }
}
.alt-rejected dt { font-weight: 600; }
.alt-rejected dd { margin: 0 0 12px; color: var(--ln-muted); }
@media (max-width: 860px) {
  .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .piste__facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .piste__facts dt { margin-top: 6px; }
  .alt-scale { grid-template-columns: minmax(0, 1fr); padding: 4px 16px; }
  .alt-scale__row { row-gap: 8px; }
  .alt-scale__figures { flex-direction: row; align-items: baseline; gap: 12px; white-space: normal; flex-wrap: wrap; }
  .alt-scale__axis > span:first-child, .alt-scale__axis > span:last-child { display: none; }
}

/* ---- Confirmation d'un nouveau scénario ---------------------------------------------------------------------- */
.variant-confirm { max-width: 640px; }
.variant-confirm .relaunch__head h1 { margin-bottom: 4px; }
.variant-confirm__what ul { margin: 0; }
.variant-confirm .tr-quote-total { margin: 0 0 8px; font-size: var(--ln-text-md); }
.variant-confirm .tr-quote-total strong { font-size: var(--ln-text-title); font-weight: 800; letter-spacing: -.03em; }
.variant-confirm .ld-card { margin-bottom: 16px; }
.variant-confirm__balance { margin: 0 0 8px; }

/* ---- Mes documents ------------------------------------------------------------------------------------------- */
/* Les règles de « Mes documents » vivent dans 2h-mes-documents.css (12 novembre 2026). */

/* ---- Téléphone ------------------------------------------------------------------------------------------------ */
@media (max-width: 980px) { .ld-kpis--client { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; grid-auto-flow: row; } .ld-kpis--client .ld-kpi--main { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .ld-kpis--client { grid-template-columns: 1fr; }
  .todo-card { padding: 18px; }
  .todo-card__title { font-size: var(--ln-text-lead); }
  .todo-actions { flex-direction: column-reverse; align-items: stretch; }
  .todo-actions__group { justify-content: space-between; }
  .todo-actions__group .button { flex: 1 1 auto; }
  .solution-decision-row { flex-direction: column; gap: 4px; }
  .overview-specify-line .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .todo-card, .todo-card * { animation: none !important; transition: none !important; } }
/* « Et ensuite ? » en bas de « Mes documents » : sur téléphone, le texte reprend toute la largeur au lieu d'être écrasé par le bouton. */
@media (max-width: 640px) {
  .ln-continue__content { flex: 1 1 100%; }
  .ln-continue .ln-actions { flex: 1 1 100%; }
  .ln-continue .ln-actions .button { width: 100%; }
}
