/* CashTrellis · inner pages. Same structure as the other sites' reading pages, in the trellis language of the homepage
   (index.css, loaded first): the lattice is the structure, the evergreen vine is the reader's progress. */
:root { --fond: var(--bone); --blanc: var(--paper); --encre: var(--ink); --encre-2: var(--ink-2); --filet: var(--rule);
  --l1: var(--green); --l2: var(--green); --l3: var(--coral); --l4: var(--brass);
  --titre: var(--display); --texte: var(--text); --donnee: var(--data); --gouttiere: var(--gutter); }
.page { --c: var(--green); }
[hidden] { display: none !important; } /* l'attribut hidden gagne toujours sur display: grid/flex */
.ligne-1 { --c: var(--l1); } .ligne-2 { --c: var(--l2); } .ligne-3 { --c: var(--l3); } .ligne-4 { --c: var(--l4); }
.ligne-4 .page-titre em, .ligne-4 .prose h2::before { --c-texte: #a86f00; }
.aller-contenu { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--encre); color: #fff; padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.aller-contenu:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--c, var(--l1)); outline-offset: 3px; }

/* ---------- Menu téléphone ---------- */
.tiroir { position: fixed; inset: 0; z-index: 39; background: var(--fond); padding: 96px var(--gouttiere) 32px; display: flex; flex-direction: column; gap: 28px; }
.tiroir[hidden] { display: none; }
.tiroir nav { display: grid; gap: 4px; }
.tiroir nav a { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); text-decoration: none; font: 800 clamp(28px, 8vw, 44px)/1 var(--titre); font-variation-settings: 'wdth' 106; letter-spacing: -.04em; }
.tiroir nav b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 15px var(--titre); }
.tiroir .bouton { align-self: start; }
body.tiroir-ouvert { overflow: hidden; }
.menu[aria-expanded="true"] { background: var(--encre); color: var(--blanc); }
.top nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Tête de page ---------- */
.page-tete { padding: clamp(112px, 15vh, 168px) var(--gouttiere) clamp(28px, 4vw, 48px); max-width: 1440px; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.4 var(--donnee); letter-spacing: .03em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 22px; }
.fil a { text-decoration: none; } .fil a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.page-tete .surtitre { margin-bottom: 14px; }
.page-tete .surtitre i, .page-tete .surtitre b { border-color: var(--c); }
.page-titre { font: 850 clamp(38px, 6.2vw, 96px)/.94 var(--titre); font-variation-settings: 'wdth' 106; letter-spacing: -.05em; max-width: 17ch; text-wrap: balance; }
.page-titre > div { padding-block: .14em .2em; margin-block: -.14em -.2em; } /* masques SplitText : jambages et accents non rognés */
.page-titre em { font-style: normal; color: var(--c-texte, var(--c)); }
.page-chapo { margin-top: clamp(20px, 2.4vw, 32px); max-width: 60ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--encre); text-wrap: pretty; }
.page-chapo strong { font-weight: 700; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font: 500 12px/1.4 var(--donnee); text-transform: uppercase; letter-spacing: .03em; color: var(--encre-2); }
.page-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-meta span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--c); background: var(--blanc); }
.mention-affiliation { margin-top: 22px; max-width: 70ch; padding: 12px 16px; border-left: 4px solid var(--c); background: var(--blanc); font-size: 14.5px; line-height: 1.5; color: var(--encre-2); }
.mention-affiliation b { color: var(--encre); margin-right: 4px; }
.mention-affiliation a { color: var(--encre); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Corps : la ligne des arrêts à gauche, le texte à droite ---------- */
.page-corps { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 720px); gap: clamp(32px, 6vw, 110px); padding: clamp(24px, 3vw, 40px) var(--gouttiere) clamp(64px, 8vw, 120px); align-items: start; }
.page-corps.sans-sommaire { grid-template-columns: minmax(0, 760px); }
.sommaire { position: sticky; top: 96px; }
.sommaire > p { font: 500 11.5px var(--donnee); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); margin-bottom: 18px; }
.sommaire ol { list-style: none; position: relative; display: grid; gap: 0; }
.sommaire ol::before { content: ''; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 5px; border-radius: 5px; background: var(--filet); }
.sommaire .rail { position: absolute; left: 8px; top: 10px; width: 5px; border-radius: 5px; background: var(--c); height: calc(100% - 20px); transform-origin: top; transform: scaleY(var(--avance, 0)); }
.sommaire li { position: relative; }
.sommaire a { position: relative; display: block; padding: 7px 0 7px 34px; text-decoration: none; font: 500 14.5px/1.35 var(--texte); color: var(--encre-2); transition: color .35s; }
.sommaire a::before { content: ''; position: absolute; left: 2px; top: 9px; width: 17px; height: 17px; border-radius: 50%; background: var(--blanc); border: 3.5px solid var(--filet); box-sizing: border-box; transition: border-color .35s, transform .5s var(--e); }
.sommaire a:hover { color: var(--encre); }
.sommaire li.passe a::before { border-color: var(--c); }
.sommaire li.ici a { color: var(--encre); font-weight: 650; }
.sommaire li.ici a::before { border-color: var(--c); transform: scale(1.22); background: var(--c); box-shadow: inset 0 0 0 3px var(--blanc); }

/* ---------- Texte ---------- */
.prose { font-size: 18px; line-height: 1.68; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { position: relative; margin-top: 2.6em; padding-top: .9em; font: 800 clamp(27px, 2.6vw, 38px)/1.08 var(--titre); font-variation-settings: 'wdth' 104; letter-spacing: -.035em; scroll-margin-top: 96px; text-wrap: balance; }
.prose h2::before { content: ''; position: absolute; left: 0; top: 0; width: 44px; height: 5px; border-radius: 5px; background: var(--c-texte, var(--c)); transform-origin: left; transform: scaleX(var(--trait, 1)); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; font: 750 21px/1.25 var(--titre); letter-spacing: -.02em; }
.prose p, .prose li { text-wrap: pretty; }
.prose a { color: var(--encre); text-decoration-color: color-mix(in srgb, var(--c) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--encre); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .55em; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--c); background: var(--blanc); box-sizing: border-box; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 12px/1 var(--titre); }
.prose blockquote { border-left: 4px solid var(--c); padding: 4px 0 4px 20px; color: var(--encre); font-size: 19px; }
.prose code { font: 400 .86em var(--donnee); background: var(--blanc); padding: .1em .35em; border-radius: 4px; border: 1px solid var(--filet); }
.prose hr { border: 0; height: 1px; background: var(--filet); margin-block: 2.4em; }

/* Tableaux : un horaire. Chiffres en chasse fixe, alignés à droite. */
.tableau { margin-block: 1.6em; overflow-x: auto; background: var(--blanc); border-radius: 14px; box-shadow: 0 0 0 1px var(--filet); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th { text-align: left; vertical-align: bottom; padding: 14px 16px 12px; font: 500 11.5px/1.35 var(--donnee); text-transform: uppercase; letter-spacing: .03em; color: var(--encre-2); border-bottom: 3px solid var(--c); background: var(--blanc); }
.prose td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--filet); }
.prose tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: right; font-family: var(--donnee); font-size: 14px; white-space: nowrap; }
.prose tbody tr { transition: background .3s; }
.prose tbody tr:hover { background: color-mix(in srgb, var(--c) 6%, var(--blanc)); }

/* Sources : en chasse fixe, comme les notes de l'accueil */
.prose h2.sources-titre { font-size: 22px; }
.prose ul.sources { gap: .4em; font: 400 13.5px/1.6 var(--donnee); color: var(--encre-2); }
.prose ul.sources > li::before { width: 7px; height: 7px; border-width: 2px; top: .66em; }
.prose h2.sources-titre ~ p { font-size: 15.5px; color: var(--encre-2); }

/* Liens vers les logiciels : signalés */
.lien-go::after { content: '↗'; display: inline-block; margin-left: 2px; font-size: .8em; text-decoration: none; }

/* ---------- Cartes logiciels : des panneaux de correspondance ---------- */
.programmes { margin-top: 2.6em; padding-top: .9em; position: relative; }
.programmes::before { content: ''; position: absolute; left: 0; top: 0; width: 44px; height: 5px; border-radius: 5px; background: var(--encre); }
.programmes-titre { font: 800 clamp(24px, 2.2vw, 30px)/1.1 var(--titre) !important; letter-spacing: -.03em; margin: 0 0 18px !important; padding: 0 !important; }
.programmes-titre::before { display: none; }
.programmes-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.carte-programme { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: var(--blanc); border-radius: 16px; box-shadow: 0 0 0 1px var(--filet); margin: 0 !important; transition: box-shadow .4s var(--e), transform .5s var(--e); }
.carte-programme:hover { box-shadow: 0 0 0 2px var(--encre); }
.cp-nom { font: 800 22px/1.05 var(--titre); letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; margin: 0 !important; }
.cp-nom::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--c); background: var(--blanc); box-sizing: border-box; }
.cp-resume { margin: 0 !important; font-size: 14.5px; line-height: 1.5; color: var(--encre-2); }
.cp-bouton { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 999px; background: var(--encre); color: var(--blanc) !important; text-decoration: none !important; font: 650 14.5px var(--texte); }
.cp-bouton::after { display: none; }
.cp-bouton i { font-style: normal; transition: transform .5s var(--e); }
.cp-bouton:hover i { transform: translate(2px, -2px); }
.cp-statut { margin: 0 !important; font: 500 11px/1.3 var(--donnee); text-transform: uppercase; letter-spacing: .03em; color: var(--encre-2); }

/* ---------- Hubs : la ligne et ses arrêts ---------- */
.enfants { list-style: none; position: relative; display: grid; gap: 0; padding-left: 0 !important; margin-top: 1.4em; }
.enfants::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 6px; border-radius: 6px; background: var(--c); transform-origin: top; transform: scaleY(var(--trace, 1)); }
.enfants li { padding: 0 !important; }
.enfants li::before { display: none !important; }
.enfants a { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 8px 18px 0; text-decoration: none !important; border-bottom: 1px solid var(--filet); }
.enfants li:last-child a { border-bottom: 0; }
.e-num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--blanc); border: 5px solid var(--c); display: grid; place-items: center; font: 600 13px var(--donnee); color: var(--encre); transition: background .4s, color .4s, transform .6s var(--e); }
.e-texte { display: grid; gap: 4px; }
.e-texte b { font: 750 clamp(19px, 1.7vw, 23px)/1.2 var(--titre); letter-spacing: -.02em; }
.e-texte span { font-size: 15px; line-height: 1.45; color: var(--encre-2); }
.e-fleche { font-size: 22px; transition: transform .6s var(--e); }
.enfants a:hover .e-num { background: var(--c); color: var(--blanc); transform: scale(1.08); }
.enfants a:hover .e-fleche { transform: translateX(6px); }

/* ---------- Prochains arrêts ---------- */
.suite { padding: clamp(56px, 7vw, 96px) var(--gouttiere); background: var(--blanc); border-top: 1px solid var(--filet); }
.suite-titre { font: 500 12px var(--donnee); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); margin-bottom: 22px; }
.suite ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 6px solid var(--c); }
.suite li { position: relative; }
.suite li::before { content: ''; position: absolute; top: -14px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); border: 5px solid var(--c); box-sizing: border-box; }
.suite a { display: grid; gap: 8px; padding: 28px 28px 8px 0; text-decoration: none; }
.suite b { font: 750 clamp(20px, 1.8vw, 26px)/1.15 var(--titre); letter-spacing: -.025em; }
.suite span { font-size: 15px; line-height: 1.45; color: var(--encre-2); }
.suite a:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--c); }

/* ---------- Champs à remplir avant la mise en ligne (pages légales) ---------- */
.champ-editeur { background: #fff3c4; padding: 0 .3em; border-radius: 4px; font-family: var(--donnee); font-size: .85em; }

/* ---------- Outils : formulaire et résultat ---------- */
.calc { margin-block: 1.8em; background: var(--blanc); border-radius: 22px; box-shadow: 0 0 0 1px var(--filet); overflow: hidden; }
.calc-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--filet); }
.calc-tete p { margin: 0 !important; font: 500 11.5px var(--donnee); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); }
.calc-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.calc-saisie { padding: 22px 20px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--filet); }
.calc-resultat { padding: 22px 20px; display: grid; gap: 14px; align-content: start; background: color-mix(in srgb, var(--c) 4%, var(--blanc)); }
.champ { display: grid; gap: 6px; margin: 0 !important; }
.champ > span, .champ legend { font: 600 14.5px/1.3 var(--texte); }
.champ small { font-size: 13px; color: var(--encre-2); line-height: 1.4; }
.champ input, .champ select, .champ textarea { width: 100%; font: 500 16px var(--donnee); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--filet); background: var(--fond); color: var(--encre); transition: border-color .3s; }
.champ textarea { font-family: var(--texte); resize: vertical; }
.formulaire-champs { border: 0 !important; }
.champ input:focus, .champ textarea:focus { border-color: var(--c); outline: none; background: var(--blanc); }
.unite { position: relative; }
.unite input { padding-right: 48px; }
.unite::after { content: attr(data-unite); position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 14px var(--donnee); color: var(--encre-2); pointer-events: none; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0 !important; padding: 0; }
.puces legend { margin-bottom: 8px; }
.puces label { position: relative; }
.puces input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.puces span { display: inline-flex; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--filet); background: var(--blanc); font: 600 14px var(--texte); transition: border-color .3s, background .3s, color .3s; }
.puces input:checked + span { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.puces input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }
.res-grand { font: 850 clamp(40px, 5vw, 64px)/1 var(--titre); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.res-libelle { font: 500 11.5px/1.35 var(--donnee); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); margin: 0 !important; }
.res-lignes { display: grid; gap: 0; margin: 0 !important; }
.res-lignes div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--filet); font-size: 15px; }
.res-lignes div:last-child { border-bottom: 0; }
.res-lignes dd { font: 500 14.5px var(--donnee); text-align: right; white-space: nowrap; }
.res-formule { font: 400 12.5px/1.6 var(--donnee); color: var(--encre-2); margin: 0 !important; }
.res-alerte { padding: 10px 14px; border-radius: 12px; background: #fff3c4; font-size: 14.5px; margin: 0 !important; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--filet); }
.petit-bouton { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--encre); font: 600 14px var(--texte); text-decoration: none; background: var(--blanc); }
.petit-bouton:hover { background: var(--encre); color: var(--blanc); }
.jauge { position: relative; height: 14px; border-radius: 14px; background: var(--filet); overflow: hidden; }
.jauge i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--c); border-radius: 14px; }

/* ---------- Téléphone ---------- */
@media (max-width: 960px) {
  .page-corps { grid-template-columns: minmax(0, 1fr); }
  .page-outil .sommaire { display: none; } /* sur téléphone, l'outil d'abord */
  .sommaire { position: relative; top: 0; padding: 16px 18px; background: var(--blanc); border-radius: 16px; box-shadow: 0 0 0 1px var(--filet); }
  .suite ol { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 6px solid var(--c); padding-left: 0; }
  .suite li::before { top: 26px; left: -14px; }
  .suite a { padding: 18px 0 18px 26px; }
  .calc-corps { grid-template-columns: minmax(0, 1fr); }
  .calc-saisie { border-right: 0; border-bottom: 1px solid var(--filet); }
}
@media (max-width: 640px) {
  .prose { font-size: 17px; }
  .tableau { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tbody { display: grid; gap: 10px; }
  .prose tr { background: var(--blanc); border-radius: 14px; box-shadow: 0 0 0 1px var(--filet); padding: 6px 0; border-top: 4px solid var(--c); }
  .prose td { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 8px 14px; border-bottom: 1px dashed var(--filet); text-align: left !important; white-space: normal !important; }
  .prose td::before { content: attr(data-label); font: 500 11px/1.4 var(--donnee); text-transform: uppercase; letter-spacing: .03em; color: var(--encre-2); }
  .prose td:empty, .prose td[data-label=""]::before { display: none; }
  .enfants a { grid-template-columns: 40px minmax(0, 1fr); }
  .e-num { width: 40px; height: 40px; border-width: 4px; font-size: 12px; }
  .enfants::before { left: 17px; }
  .e-fleche { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sommaire a::before, .e-num, .e-fleche, .cp-bouton i { transition: none; }
}

/* ---------- Outils : visuels portés par les chiffres ---------- */
.calc .res-lignes dt small { color: var(--encre-2); font-size: 12.5px; }
.barre-vente { display: flex; height: 18px; border-radius: 18px; overflow: hidden; background: var(--filet); margin: 0 !important; }
.barre-vente i { display: block; height: 100%; width: 0; }
.bv-cout { background: var(--encre); } .bv-frais { background: #9aa0a8; } .bv-marge { background: var(--c); }
.bv-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bv-legende span { display: inline-flex; align-items: center; gap: 6px; }
.bv-legende span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--encre); }
.bv-legende .lg-frais::before { background: #9aa0a8; } .bv-legende .lg-marge::before { background: var(--c); }
.frise { position: relative; height: 46px; margin: 4px 0 0 !important; }
.frise::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 8px; border-radius: 8px; background: var(--filet); }
.frise .fr-avant { position: absolute; left: 0; top: 12px; height: 8px; border-radius: 8px; background: var(--c); width: 0; }
.frise .fr-point { position: absolute; top: 4px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--blanc); border: 5px solid var(--c); box-sizing: border-box; left: 0; }
.frise .fr-j0, .frise .fr-jn { position: absolute; top: 28px; font: 500 11.5px var(--donnee); color: var(--encre-2); }
.frise .fr-j0 { left: 0; } .frise .fr-jn { right: 0; }
.frise-retard .fr-jours { position: absolute; left: 50%; top: 27px; transform: translateX(-50%); font: 600 12px var(--donnee); color: var(--encre); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; margin: 0 !important; cursor: pointer; }
.case input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--encre); }
.case small { color: var(--encre-2); }
.calc-resultat.indisponible .res-lignes, .calc-resultat.indisponible .frise, .calc-resultat.indisponible .res-formule { opacity: .35; }
.calc .puces.champ { display: flex; }
.calc fieldset.champ legend small { font-weight: 400; color: var(--encre-2); }

/* Diagnostic */
.diag .calc-corps { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.diag .calc-saisie { gap: 20px; }
.res-synthese { font: 850 clamp(28px, 3vw, 40px)/1.02 var(--titre); letter-spacing: -.04em; margin: 0 !important; }
.res-synthese[data-etat="action"] { color: var(--l3); }
.res-synthese[data-etat="confirmer"] { color: #a86f00; }
.prose .echeances, .prose .taches, .prose #d-grille { list-style: none; counter-reset: none; display: grid; gap: 0; margin: 0 !important; padding: 0; }
.prose .echeances > li, .prose .taches > li, .prose #d-grille > li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--filet); display: grid; gap: 4px; font-size: 15px; line-height: 1.45; counter-increment: none; }
.prose .echeances > li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--blanc); border: 4px solid var(--c); box-sizing: border-box; display: block; color: transparent; }
.prose .echeances > li[data-etat="en vigueur"]::before { background: var(--c); }
.prose .echeances > li[data-etat="à confirmer"]::before { border-style: dotted; border-color: #a86f00; }
.ech-etat, .t-groupe { font: 500 11px/1.3 var(--donnee); text-transform: uppercase; letter-spacing: .04em; color: var(--encre-2); }
.echeances b, .taches b { font-weight: 650; }
.echeances span:last-child { font-size: 13.5px; color: var(--encre-2); }
.prose .taches { counter-reset: t; }
.prose .taches > li { counter-increment: t; }
.prose .taches > li::before { content: counter(t); position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font: 800 11.5px/1 var(--titre); }
.prose .taches > li[data-etat="déclaré par vous"]::before { background: var(--l2); }
.prose .taches > li[data-etat="à confirmer"]::before { background: #a86f00; }
.taches q { font-size: 14px; color: var(--encre-2); quotes: '« ' ' »'; }
.grille-achat { border-top: 1px solid var(--filet); padding: 14px 20px; }
.grille-achat:not([open]) > :not(summary) { display: none; }
.grille-achat summary { cursor: pointer; font: 650 15.5px var(--texte); }
.prose #d-grille > li { grid-template-columns: 120px minmax(0, 1fr); padding-left: 0; }
.prose #d-grille > li::before { display: none; }
#d-grille b { font: 500 12px var(--donnee); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
@media (max-width: 960px) { .diag .calc-corps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .prose #d-grille > li { grid-template-columns: minmax(0, 1fr); } }

/* Impression : le résultat seul, lisible */
@media print {
  .entete, .tiroir, .pied, .suite, .sommaire, .calc-actions, .mention-affiliation, .fil, .programmes { display: none !important; }
  .page-tete { padding: 0 0 16px; } .page-corps { display: block; padding: 0; }
  .calc { box-shadow: none; border: 1px solid #999; } .grille-achat[open] { display: block; }
  body { background: #fff; }
}

/* ---------- Trellis voice ---------- */
.page-titre { font: 600 clamp(40px, 6vw, 92px)/.98 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.035em; max-width: 18ch; }
.page-titre em { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; color: var(--green); }
.prose h2 { font: 600 clamp(28px, 2.7vw, 40px)/1.08 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 96; letter-spacing: -.02em; }
.prose h2::before { width: 14px; height: 14px; border-radius: 2px; background: none; border: 3px solid var(--green); transform: rotate(45deg) scale(var(--trait, 1)); top: -2px; }
.prose h3, .programmes-titre, .suite b, .e-texte b, .cp-nom, .res-synthese, .tiroir nav a { font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: -.02em !important; }
.res-grand { font: 600 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.sommaire ol::before { background: repeating-linear-gradient(45deg, transparent 0 5px, var(--rule) 5px 6.5px), repeating-linear-gradient(-45deg, transparent 0 5px, var(--rule) 5px 6.5px); width: 9px; left: 6px; border-radius: 0; }
.sommaire .rail { background: var(--green); }
.sommaire a::before { border-radius: 3px; transform: rotate(45deg); width: 15px; height: 15px; top: 10px; left: 3px; }
.sommaire li.ici a::before { transform: rotate(45deg) scale(1.2); background: var(--green); }
.cp-nom::before, .page-meta span::before, .prose ul > li::before { border-radius: 2px; transform: rotate(45deg); }
.enfants::before { background: var(--green); }
.e-num { border-radius: 14px; transform: rotate(0); }
.mention-affiliation { border-left-color: var(--green); }
.cp-bouton, .bouton { background: var(--ink); }
.top nav a[aria-current="page"]::after { transform: scaleX(1); }
.tiroir nav b { border-radius: 8px; }
.calc .res-libelle, .page-meta, .fil, .sommaire > p, .suite-titre { font-family: var(--data); }

@media print { .top, footer { display: none !important; } }

/* ---------- CashTrellis tools ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc-tete .date-rapport { grid-template-columns: auto auto; align-items: center; gap: 10px; }
.calc-tete .date-rapport input { padding: 8px 10px; }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0 !important; }
.res-lignes .fort { font-weight: 650; border-top: 2px solid var(--ink); }
.res-grand.bad { color: var(--coral); } .res-grand.quiet { color: var(--ink-2); }
.invoices { display: grid; gap: 0; margin: 0 !important; }
.invoice { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.3fr 1fr 1fr .9fr .9fr 1.3fr 28px; gap: 8px; align-items: end; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.invoice .champ > span { font: 500 11px/1.2 var(--data); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.invoice .champ input { padding: 9px 8px; font-size: 13.5px; border-radius: 9px; min-width: 0; }
.invoice .remove { width: 28px; height: 38px; border-radius: 8px; font-size: 20px; color: var(--ink-2); }
.invoice .remove:hover { background: var(--bone); color: var(--coral); }
.ag-result { border-top: 1px solid var(--rule); }
.ag-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 !important; }
.ag-kpis .res-grand { font-size: clamp(28px, 3.4vw, 44px); }
.ag-buckets { display: grid; gap: 8px; margin: 0 !important; }
.bk { display: grid; grid-template-columns: 110px minmax(0, 1fr) 100px; gap: 12px; align-items: center; font-size: 14px; }
.bk-l { font: 500 12px var(--data); color: var(--ink-2); }
.bk-bar { height: 14px; border-radius: 3px; background: repeating-linear-gradient(45deg, transparent 0 6px, var(--rule) 6px 7px); overflow: hidden; }
.bk-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 3px; }
.bk[data-b="31-60"] i { background: var(--brass); } .bk[data-b="61-90"] i, .bk[data-b="91+"] i { background: var(--coral); }
.bk[data-b="current"] i { background: var(--leaf); }
.bk-v { font: 500 13.5px var(--data); text-align: right; }
.sw-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; height: 130px; align-items: end; margin: 0 !important; }
.mo { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; }
.mo-col { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; background: repeating-linear-gradient(45deg, transparent 0 5px, color-mix(in srgb, var(--rule) 70%, transparent) 5px 6px); border-radius: 3px; overflow: hidden; }
.mo-col i { display: block; width: 100%; }
.mo-l { font: 500 10.5px var(--data); color: var(--ink-2); text-align: center; }
.fees-payments { padding: 16px 20px 0; }
.fees-lanes .sched { border-bottom: 0; }
.sched-name input { font: 600 24px/1.1 var(--display); border: 0; border-bottom: 2px dashed var(--rule); background: none; width: 100%; padding: 2px 0 6px; color: var(--ink); }
.sched-name input:focus { outline: none; border-bottom-color: var(--green); }
.sched-name { margin-bottom: 4px; width: 100%; }
.fees-lanes .sched[data-lane="b"] { border-right: 0; }
.fees-result { border-top: 1px solid var(--rule); }
.fees-totals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 0 !important; }
.fees-bar { display: block; height: 12px; border-radius: 3px; background: var(--rule); overflow: hidden; margin-top: 8px; }
.fees-bar i { display: block; height: 100%; width: 0; background: var(--green); }
#fb-bar { background: var(--brass); }
.fees-result .tableau { margin: 12px 0 0 !important; }
@media (max-width: 960px) {
  .invoice { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .invoice .remove { position: absolute; top: 8px; right: 8px; }
  .fees-lanes .sched[data-lane="a"] { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .invoice { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 44px; }
  .ag-kpis, .fees-totals { grid-template-columns: minmax(0, 1fr); }
  .bk { grid-template-columns: 84px minmax(0, 1fr) 84px; }
  .sw-months { gap: 3px; }
}

/* Pages d'outil : l'outil prend toute la largeur, le texte garde sa colonne de lecture */
.page-outil .page-corps { grid-template-columns: minmax(0, 1fr); }
.page-outil .sommaire { display: none; }
.page-outil .prose { max-width: 1160px; }
.page-outil .prose > :not(.calc):not(.programmes) { max-width: 720px; }
/* Tableau à remplir (en-têtes seuls) : les colonnes restent lisibles sur téléphone */
@media (max-width: 640px) {
  .prose table:not(:has(tbody tr)) thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; }
  .prose table:not(:has(tbody tr)) thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border: 0; box-shadow: none; background: none; }
  .prose table:not(:has(tbody tr)) th { border: 1px solid var(--filet); border-radius: 999px; padding: 6px 10px; background: var(--blanc); }
}
.fees-lanes .sched { border: 0; border-right: 1px solid var(--rule); min-width: 0; }
.taches q { quotes: '“' '”'; }

/* Exemples pédagogiques : contenu lisible sans script. */
.reference-case{border-top:1px solid var(--filet)}.reference-case:last-of-type{border-bottom:1px solid var(--filet);margin-bottom:1em}
.reference-case summary{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 0;cursor:pointer;list-style:none;font-weight:650;line-height:1.4}
.reference-case summary::-webkit-details-marker{display:none}
.reference-case summary::before{content:'+';flex:none;display:grid;place-items:center;width:24px;height:24px;border:1.5px solid var(--c,var(--encre));border-radius:50%;font:500 15px/1 var(--donnee);color:var(--c,var(--encre))}
.reference-case[open] summary::before{content:'−'}
.reference-case>:not(summary){margin:0 0 .8em 36px}
.reference-case p{overflow-wrap:anywhere}.reference-case summary:focus-visible{outline:3px solid var(--c,currentColor);outline-offset:4px}
