/* Accueil d'un client : le récit en écrans, pensé pour la projection, puis la grille effort × solidité du chiffrage.
   Un écran occupe la hauteur de la fenêtre sous la barre et le menu ; fonds alternés clair et blanc, le premier en
   vert. Un élément dominant par écran (le nom, les chiffres de tête, une figure), le secondaire en petit et en gris.
   En plein écran (.projection), la barre et le menu disparaissent et l'écran prend toute la hauteur. */
.ac { --haut: calc(var(--barre-h) + var(--menu-h, 7rem)); position: relative; }
body.projection .ac { --haut: 0px; }
.ac-ecran { position: relative; min-height: calc(100vh - var(--haut)); display: grid; align-content: center; scroll-margin-top: var(--haut);
  padding-block: clamp(2.5rem, 7vh, 5rem) clamp(3.5rem, 9vh, 6rem); background: var(--fond); }
.ac-ecran.pair { background: var(--carte); }
.ac-in { width: 100%; display: grid; gap: clamp(1rem, 2.4vh, 1.6rem); }
.ac-num { font-size: 0.8rem; color: var(--muet); letter-spacing: 0.04em; }
.ac-num b { color: var(--ambre-fonce); font-weight: 800; }
.ac-titre { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 22em; }
.ac-chapo { max-width: 52rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--texte); }
.ac-note { max-width: 56rem; font-size: 0.92rem; line-height: 1.5; color: var(--muet); }
.ac-note a { color: var(--encre); font-weight: 600; }
.ac-suite { position: absolute; left: 50%; bottom: clamp(0.8rem, 2.5vh, 1.6rem); transform: translateX(-50%); padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muet); white-space: nowrap; }
.ac-suite:hover { color: var(--encre); background: var(--survol); }

/* Points de navigation, à droite */
.ac-points { position: fixed; right: clamp(0.5rem, 1.5vw, 1.25rem); top: 50%; transform: translateY(-50%); z-index: 20; display: grid; gap: 0.15rem; justify-items: end; }
.ac-points button { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; height: 1.35rem; padding: 0 0.2rem; color: var(--muet); }
.ac-points button::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--trait-fort); transition: transform 0.2s, background 0.2s; }
.ac-points button span { font-size: 0.75rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; padding: 0.1rem 0.45rem; border-radius: 6px; background: var(--carte); box-shadow: var(--ombre); }
.ac-points:hover button span, .ac-points button:focus-visible span { opacity: 1; transform: none; }
.ac-points button[aria-current="step"]::after { background: var(--ambre); transform: scale(1.5); }
.ac-points button[aria-current="step"] span { color: var(--encre); }
.ac-points .ac-pe { margin-top: 0.6rem; }
.ac-points .ac-pe::after { border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--muet); width: 0.6rem; height: 0.6rem; }
@media (max-width: 900px) { .ac-points { display: none; } }

/* ---------- Ouverture ---------- */
.e-ouverture { background: radial-gradient(110% 120% at 90% 0%, var(--bande) 0%, var(--bande-2) 75%); color: var(--bande-muet); }
.e-ouverture .ac-sur { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ambre); }
.ac-nom { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; color: var(--bande-texte); max-width: 14em; }
.ac-lede { max-width: 48rem; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--bande-texte); opacity: 0.92; }
.ac-comptes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2.2rem; max-width: 64rem; color: var(--bande-texte); }
.ac-compte { display: flex; align-items: baseline; gap: 0.5rem; font-size: clamp(1rem, 1.4vw, 1.2rem); opacity: 0.92; }
.ac-compte b { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.ac-compte.total { flex-basis: 100%; font-size: clamp(1.15rem, 1.8vw, 1.5rem); opacity: 1; }
.ac-compte.total b { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.ac-tete { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0; margin-top: clamp(0.5rem, 3vh, 2rem); border-top: 1px solid var(--bande-trait); }
.ac-t { padding: clamp(1rem, 2.5vh, 1.6rem) 1.75rem 0 0; }
.ac-t + .ac-t { padding-left: 1.75rem; border-left: 1px solid var(--bande-trait); }
.ac-t-v { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--bande-texte); white-space: nowrap; }
.ac-tete.n3 .ac-t-v, .ac-tete.n4 .ac-t-v { font-size: clamp(2rem, 3.8vw, 3.4rem); white-space: normal; }
.ac-t:first-child .ac-t-v { color: var(--ambre); }
.ac-t-l { margin-top: 0.55rem; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 700; color: var(--bande-texte); }
.ac-t-d { margin-top: 0.3rem; max-width: 26rem; font-size: 0.92rem; line-height: 1.45; color: var(--bande-muet); }
.ac-pied { max-width: 52rem; margin-top: clamp(0.5rem, 2vh, 1.5rem); font-size: 0.88rem; line-height: 1.5; color: var(--bande-muet); }
.e-ouverture .ac-suite { color: var(--bande-muet); }
.e-ouverture .ac-suite:hover { background: var(--bande-carte); color: var(--bande-texte); }
@media (max-width: 760px) { .ac-t + .ac-t { padding-left: 0; border-left: 0; border-top: 1px solid var(--bande-trait); margin-top: 1rem; } }

/* ---------- Lignes compactes (titre, montant), réutilisées par plusieurs écrans ---------- */
.ac-ls { display: grid; }
.ac-l { width: 100%; display: grid; grid-template-columns: 0.55rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: baseline; padding: 0.55rem 0.2rem; text-align: left; text-decoration: none; border-bottom: 1px solid var(--trait); font-size: 0.98rem; color: var(--encre); }
.ac-l > i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--p, var(--trait-fort)); align-self: center; }
button.ac-l:hover .ac-l-t, a.ac-l:hover .ac-l-t { text-decoration: underline; text-underline-offset: 0.2em; }
.ac-l-t { min-width: 0; line-height: 1.35; }
.ac-l-t small { display: block; font-size: 0.82rem; color: var(--muet); }
.ac-l-m { font-weight: 700; color: var(--texte); white-space: nowrap; }
.ac-plus { justify-self: start; margin-top: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--vert); }
.ac-plus:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Colonnes par catégorie (catégories, poste clients, aller plus loin) ---------- */
.ac-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.75rem); margin-top: 0.5rem; }
.ac-cats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-cats.n1 { grid-template-columns: minmax(0, 40rem); }
.ac-cat { display: grid; align-content: start; gap: 0.35rem; padding-top: 1rem; border-top: 3px solid var(--k, var(--encre)); }
.ac-cat.k-admin { --k: var(--vert); } .ac-cat.k-pc { --k: var(--ambre); } .ac-cat.k-tr { --k: var(--n-tresorerie); }
.ac-cat.k-relancer { --k: var(--c-retard); } .ac-cat.k-decider { --k: var(--c-risque); } .ac-cat.k-deprecier { --k: var(--c-contentieux); }
.ac-cat-v { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--encre); white-space: nowrap; }
.ac-cat-l { font-size: 1.1rem; font-weight: 700; color: var(--encre); }
.ac-cat-d { font-size: 0.88rem; line-height: 1.45; color: var(--muet); margin-bottom: 0.6rem; }
@media (max-width: 900px) { .ac-cats, .ac-cats.n2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cascade des gains ---------- */
.ac-wf { --h: clamp(12rem, 34vh, 20rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.8rem; align-items: end; margin-top: 0.5rem; }
.ac-wf-c { display: grid; gap: 0.35rem; text-align: left; }
.ac-wf-v { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; color: var(--encre); }
.ac-wf-piste { position: relative; height: var(--h); border-bottom: 2px solid var(--encre); }
.ac-wf-piste i { position: absolute; left: 0; right: 0; border-radius: 6px 6px 2px 2px; background: var(--n-gain); }
.ac-wf-piste i.m0 { background: var(--vert); }
.ac-wf-piste i.m1 { background: color-mix(in srgb, var(--vert) 60%, var(--carte)); }
.ac-wf-piste i.m2 { background: var(--ambre); }
.ac-wf-piste i.m3 { background: color-mix(in srgb, var(--ambre) 55%, var(--carte)); }
.ac-wf-piste i.tot { background: var(--encre); }
.ac-wf-piste i.apparait { transform: scaleY(0.02); transform-origin: bottom; opacity: 1; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--delai, 0s); }
.ac-wf-piste i.apparait.vu { transform: none; }
.ac-wf-c b { font-size: 0.95rem; color: var(--encre); line-height: 1.25; }
.ac-wf-c small { font-size: 0.82rem; color: var(--muet); }
button.ac-wf-c:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ac-wf-c.total .ac-wf-v { color: var(--vert); }
@media (max-width: 640px) { .ac-wf { grid-template-columns: repeat(2, minmax(0, 1fr)); --h: 9rem; } }
/* Ensembles (diagnostic en « chiffres ») */
.ac-ens { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; border-top: 2px solid var(--encre); }
.ac-ens li { position: relative; padding: 1.2rem 1.5rem 0.5rem 0; }
.ac-ens li + li { padding-left: 1.5rem; border-left: 1px solid var(--trait); }
.ac-ens-r { font: 700 0.85rem var(--mono); color: var(--ambre-fonce); }
.ac-ens-v { margin-top: 0.5rem; font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--encre); }
.ac-ens-t { margin-top: 0.4rem; font-size: 1.05rem; font-weight: 700; color: var(--encre); }
.ac-ens-n { font-size: 0.85rem; color: var(--muet); }
@media (max-width: 760px) { .ac-ens li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait); } }

/* ---------- Atterrissage ---------- */
.ac-att { position: relative; padding-block: 3.2rem 3.4rem; }
.ac-att-piste { position: relative; height: 1.4rem; border-radius: 999px; background: var(--trait); }
.ac-att-plage { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--vert) 30%, var(--carte)); }
.ac-att-centre { position: absolute; top: -0.3rem; bottom: -0.3rem; border-radius: 6px; background: var(--vert); }
.ac-att-zero { position: absolute; top: -0.6rem; bottom: -0.6rem; width: 2px; background: var(--encre); }
.ac-att-rep { position: absolute; bottom: 2.1rem; transform: translateX(-50%); display: grid; justify-items: center; font-size: 0.85rem; color: var(--muet); white-space: nowrap; }
.ac-att-rep::after { content: ""; width: 2px; height: 1.6rem; margin-top: 0.2rem; background: var(--ambre-fonce); }
.ac-att-rep b { color: var(--ambre-fonce); }
.ac-att-marques { position: relative; height: 2.6rem; margin-top: 0.7rem; }
.ac-att-m { position: absolute; transform: translateX(-50%); display: grid; justify-items: center; white-space: nowrap; font-size: 0.82rem; color: var(--muet); }
.ac-att-m b { font-size: 1.05rem; color: var(--encre); }
.ac-att-actions h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muet); }
.ac-att-actions ol { list-style: decimal; padding-left: 1.2rem; margin-top: 0.4rem; }

/* ---------- Par exercice ---------- */
.ac-ex { width: 100%; border-collapse: collapse; }
.ac-ex th, .ac-ex td { padding: 1rem 1rem; border-bottom: 1px solid var(--trait); text-align: left; }
.ac-ex thead th { font-size: 0.95rem; color: var(--encre); vertical-align: bottom; }
.ac-ex thead th small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muet); }
.ac-ex .d { text-align: right; }
.ac-ex tbody td { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--p); white-space: nowrap; }
.ac-ex tbody th { font-size: 1.05rem; color: var(--encre); }

/* ---------- La suite ---------- */
.ac-jalons { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0; margin-top: 0.5rem; }
.ac-jalons li { position: relative; display: grid; gap: 0.25rem; padding: 1.4rem 1rem 0 0; border-top: 3px solid var(--trait); }
.ac-jalons li i { position: absolute; top: -0.6rem; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--carte); box-shadow: inset 0 0 0 3px var(--trait); }
.ac-jalons li.fait { border-top-color: var(--vert); }
.ac-jalons li.fait i { background: var(--vert); box-shadow: none; }
.ac-jalons li.maintenant { border-top-color: var(--ambre); }
.ac-jalons li.maintenant i { background: var(--ambre); box-shadow: 0 0 0 5px var(--ambre-pale); }
.ac-jalons b { color: var(--encre); font-size: 1rem; }
.ac-jalons small { color: var(--muet); font-size: 0.85rem; }
.ac-semaine h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muet); }
.ac-semaine ol { counter-reset: s; display: grid; gap: 0; margin-top: 0.4rem; }
.ac-semaine li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.1rem 0.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--trait); }
.ac-semaine li::before { content: counter(s); grid-row: span 2; font: 700 1rem var(--mono); color: var(--ambre-fonce); }
.ac-semaine li b { font-size: 1.08rem; color: var(--encre); }
.ac-semaine li span { font-size: 0.95rem; color: var(--texte); }
.ac-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }

/* ---------- Effort et solidité du chiffrage (sous le récit) ---------- */
.pi { padding-block: clamp(3rem, 7vh, 5rem); background: var(--menthe); border-top: 1px solid var(--trait); }
.pi-tete { display: grid; gap: 0.4rem; margin-bottom: 1.75rem; }
.pi-tete h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; }
.pi-bloc { padding: 1.25rem 1.25rem 1.4rem; background: var(--carte); border-radius: var(--rayon); }
.pi-mx { display: grid; grid-template-columns: minmax(9rem, 12rem) repeat(3, minmax(12rem, 1fr)); gap: 0.4rem; margin-top: 1rem; min-width: 46rem; }
.pi-mx-c, .pi-mx-r { display: grid; align-content: center; gap: 0.1rem; padding: 0.4rem 0.6rem; }
.pi-mx-c b, .pi-mx-r b { font-size: 0.92rem; color: var(--encre); }
.pi-mx-c small, .pi-mx-r small { font-size: 0.78rem; color: var(--muet); }
.pi-mx-v { --poids: 0; display: grid; align-content: center; gap: 0.35rem; min-height: 5.5rem; padding: 0.75rem 0.85rem; text-align: left; border-radius: 10px; background: color-mix(in srgb, var(--vert) calc(var(--poids) * 30%), var(--fond)); box-shadow: inset 0 0 0 1px var(--trait); }
button.pi-mx-v:hover { box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.pi-mx-v.premier { box-shadow: inset 0 0 0 2px var(--vert); }
.pi-mx-v.vide { place-items: center; color: var(--trait-fort); box-shadow: none; }
.pi-mx-m { display: grid; gap: 0.2rem; }
.pi-mx-m b { font-size: calc(1.05rem + var(--poids) * 1.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--p); }
.pi-mx-v small { font-size: 0.8rem; color: var(--muet); }
.pi-mx-v ul { display: grid; gap: 0.15rem; }
.pi-mx-v li { font-size: 0.82rem; line-height: 1.3; color: var(--texte); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.pi-note { margin-top: 1.25rem; max-width: 60rem; font-size: 0.85rem; color: var(--muet); }

/* Projection : de plus grands caractères */
body.projection .ac-in { max-width: 92rem; }
@media (min-width: 1400px) and (min-height: 820px) { .ac-chapo { font-size: 1.4rem; } .ac-l { font-size: 1.08rem; } }
.ac-in.fondu { animation: ac-fondu 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes ac-fondu { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Sources, en bas de la Synthèse : fichiers reçus, périmètre, puis les replis (points vérifiés, pièces, méthode). */
.so { padding-block: clamp(2.5rem, 6vh, 4rem); border-top: 1px solid var(--trait); }
.so-fichiers { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.25rem; }
.so-fichiers > div { display: grid; gap: 0.2rem; padding: 0.8rem 1.1rem; border-radius: 12px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.so-fichiers dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ambre-fonce); }
.so-fichiers dd { margin: 0; font-size: 0.92rem; color: var(--encre); }
.so-texte { max-width: 56rem; font-size: 0.95rem; line-height: 1.6; color: var(--texte); }
.so-texte + .so-texte { margin-top: 0.7rem; }
.so-replis { margin-top: 1.25rem; border-radius: 12px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); padding: 0 1.1rem; }
.so-repli + .so-repli { border-top: 1px solid var(--trait); }
.so-repli > summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 0; list-style: none; cursor: pointer; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ambre-fonce); }
.so-repli > summary::-webkit-details-marker { display: none; }
.so-repli > summary::after { content: "+"; margin-left: auto; font-weight: 400; color: var(--muet); }
.so-repli[open] > summary::after { content: "−"; }
.so-repli[open] { padding-bottom: 1rem; }
.so-n { font-size: 0.82rem; font-weight: 600; letter-spacing: 0; color: var(--muet); }
.so-liste { columns: 2; column-gap: 3rem; }
.so-liste li { break-inside: avoid; padding: 0.45rem 0; border-bottom: 1px solid var(--trait); font-size: 0.92rem; line-height: 1.45; color: var(--texte); }
.so-pieces { display: grid; }
.so-pieces li { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--trait); font-size: 0.92rem; color: var(--encre); }
.so-pieces i { width: 0.7rem; height: 0.7rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.so-pieces li.recue i { background: var(--vert); box-shadow: none; }
.so-pieces small { font-size: 0.8rem; color: var(--muet); }
.so-com + .so-com { margin-top: 0.8rem; }
@media (max-width: 700px) { .so-liste { columns: 1; } }
