/* ============ v15 · Page Analyse de data room (après v5.css) ============ */
/* La data room en pièces, qui se lisent */
.dr-pieces { display: block; width: 100%; height: auto; overflow: visible; }
.dp { fill: #eceef2; opacity: 0; transition: opacity 400ms ease, fill 600ms ease; transition-delay: var(--dl, 0ms); }
.trame.on .dp { opacity: 1; }
.trame.lu .dp { fill: var(--pt); }
.trame.lu .dp-manque { fill: transparent; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.trame.vise .dp-constat { fill: var(--ink); }
.dp-lab { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; fill: var(--ink); opacity: 0; transition: opacity 500ms ease 300ms; }
.dp-nb { font-family: var(--mono); font-weight: 500; fill: var(--ink-3); }
.trame.on .dp-lab { opacity: 1; }
.dp-lien { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: 0; transition: opacity 300ms ease; }
.dp-anneau { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0; transition: opacity 300ms ease, x 400ms var(--ease), y 400ms var(--ease); }
.trame.vise .dp-lien { opacity: 0.6; }
.trame.vise .dp-anneau { opacity: 1; }
.dr-hero .trame { overflow: visible; }
.dr-hero .signaux { left: 30%; top: auto; bottom: 0; width: min(310px, 62%); height: 86px; }
.dr-hero .signaux::before { display: none; }
.dr-hero .signaux li > span:last-child { font-size: 13.5px; }

/* La carte de l'analyse, en trois états */
.dr-zoom { max-width: 560px; }
.dz-corps { margin-top: 14px; min-height: 268px; }
.dz-corps[hidden] { display: none; }
.dz-classes { display: grid; border-top: 1px solid var(--line); }
.dz-classes li { display: grid; grid-template-columns: minmax(0, 7.5em) 3em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; opacity: 0; transform: translateY(4px); }
.dz-classes b { font-weight: 600; }
.dz-classes .mono { color: var(--ink-2); text-align: right; }
.dz-classes em { font-style: normal; font-size: 13.5px; color: var(--ink-3); }
.dz-classes .dz-manque { color: var(--ink); font-weight: 560; }
.dz-classes .dz-manque::before { content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 7px; vertical-align: -1px; border: 1.2px dashed var(--ink-2); border-radius: 1px; }
.vu .dz-classes li { opacity: 1; transform: none; transition: opacity 300ms ease, transform 400ms var(--ease); }
.vu .dz-classes li:nth-child(2) { transition-delay: 60ms; }
.vu .dz-classes li:nth-child(3) { transition-delay: 120ms; }
.vu .dz-classes li:nth-child(4) { transition-delay: 180ms; }
.vu .dz-classes li:nth-child(5) { transition-delay: 240ms; }
.vu .dz-classes li:nth-child(6) { transition-delay: 300ms; }
.dz-pied { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.dz-pied svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Ponts de l'EBE (carte et section) : une colonne par étape, échelle commune 0 à 900 k€ */
.dz-pont, .pont { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.dz-pont { height: 200px; margin-bottom: 26px; }
.dz-b, .pb { position: relative; }
.dz-b i, .pb i { position: absolute; left: 0; right: 0; bottom: calc(var(--bas) / 900 * 100%); height: calc(var(--h) / 900 * 100%); background: var(--pt); border-radius: 3px; transform-origin: bottom; }
.dz-b > span, .pb > span { position: absolute; left: -4px; right: -4px; bottom: calc((var(--bas) + var(--h)) / 900 * 100% + 4px); text-align: center; font-size: 13px; color: var(--ink); }
.dz-b em, .pb em { position: absolute; left: -4px; right: -4px; top: 100%; margin-top: 6px; text-align: center; font-style: normal; font-size: 12.5px; line-height: 1.25; color: var(--ink-3); }
.dz-pont::after, .pont::after { content: none; }
.dz-pont .dz-b::before, .pont .pb::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; border-bottom: 1px solid var(--line-2); }
.dz-plus i, .pb-plus i { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.dz-moins i, .pb-moins i { background: repeating-linear-gradient(135deg, var(--ink-3) 0 1.5px, transparent 1.5px 5px); box-shadow: inset 0 0 0 1px var(--ink-3); }
.dz-total i, .pb-total i { background: var(--ink); }
.dz-b > span, .dz-b i { opacity: 0; }
.vu .dz-b > span { opacity: 1; transition: opacity 300ms ease; }
.vu .dz-b i { opacity: 1; animation: barre 600ms var(--ease) both; }
.vu .dz-b:nth-child(2) > span, .vu .dz-b:nth-child(2) i { transition-delay: 150ms; animation-delay: 150ms; }
.vu .dz-b:nth-child(3) > span, .vu .dz-b:nth-child(3) i { transition-delay: 300ms; animation-delay: 300ms; }
.vu .dz-b:nth-child(4) > span, .vu .dz-b:nth-child(4) i { transition-delay: 450ms; animation-delay: 450ms; }
.vu .dz-b:nth-child(5) > span, .vu .dz-b:nth-child(5) i { transition-delay: 600ms; animation-delay: 600ms; }
.vu .dz-b:nth-child(6) > span, .vu .dz-b:nth-child(6) i { transition-delay: 800ms; animation-delay: 800ms; }
.dz-dette { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.dz-pres { color: var(--ink-3); margin-right: 14px; }
.dz-dette b { font-size: 16px; font-weight: 600; }

/* Décision */
.dz-verdict { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 8px; background: #eef0f3; }
.dz-verdict span { display: grid; place-items: center; min-height: 40px; border-radius: 6px; font-size: 14.5px; font-weight: 560; color: var(--ink-3); }
.dz-verdict .on { background: var(--ink); color: #fff; }
.vu .dz-verdict .on { animation: tampon-doux 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes tampon-doux { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }
.dz-prix { margin-top: 18px; }
.dz-echelle { position: relative; height: 10px; border-radius: 3px; background: #eef0f3; }
.dz-plage { position: absolute; top: 0; bottom: 0; left: calc((var(--de) - 3.2) / 1.4 * 100%); width: calc((var(--a) - var(--de)) / 1.4 * 100%); background: var(--ink); border-radius: 3px; }
.dz-demande { position: absolute; top: -5px; bottom: -5px; left: calc((var(--v) - 3.2) / 1.4 * 100%); width: 2px; margin-left: -1px; background: var(--ink); }
.dz-ech-l { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.dz-ech-l b { color: var(--ink); font-weight: 560; }
.dz-points { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.dz-points li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.dz-points b { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; padding-top: 1px; }

/* De la pièce au chiffre retraité */
#pieces .a-piece { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
#pieces .a-fiche { justify-content: flex-start; gap: 6px; padding: 20px 20px 22px 18px; }
#pieces .a-fait { font-size: 15.5px; }
#pieces .papier td:last-child { padding-left: 10px; }
#pieces .papier td:first-child { white-space: nowrap; }
#pieces .papier-gl td:nth-child(2) { white-space: normal; }
.papier-gl table { font-size: 13px; }
.papier-gl td:first-child { width: 3.4em; color: #55524b; font-variant-numeric: tabular-nums; }
.papier-gl td:last-child { white-space: nowrap; }
@media (max-width: 900px) { #pieces .a-piece { grid-template-columns: minmax(0, 1fr); } #pieces .a-fiche { padding: 16px 18px 18px; } }

/* Ce que l'entreprise gagne, ce qu'elle doit */
.dr-chiffres { padding: 88px 0 72px; }
.dr-deux { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; margin-top: 34px; align-items: start; }
.dr-carte { margin: 0; }
.pont { height: 300px; margin: 34px 22px 52px; }
.pb i { transform: scaleY(0); }
.pb > span { opacity: 0; font-size: 14px; font-weight: 560; }
.vu .pb i { transform: none; transition: transform 650ms var(--ease); }
.vu .pb > span { opacity: 1; transition: opacity 300ms ease; }
.pb:nth-child(2) i, .pb:nth-child(2) > span { transition-delay: 350ms !important; }
.pb:nth-child(3) i, .pb:nth-child(3) > span { transition-delay: 700ms !important; }
.pb:nth-child(4) i, .pb:nth-child(4) > span { transition-delay: 1050ms !important; }
.pb:nth-child(5) i, .pb:nth-child(5) > span { transition-delay: 1400ms !important; }
.pb:nth-child(6) i, .pb:nth-child(6) > span { transition-delay: 1850ms !important; }
.pb em { font-size: 13px; }
.dr-leg { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.dette { width: 100%; border-collapse: collapse; font-size: 15px; }
.dette th, .dette td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 450; }
.dette td { text-align: right; white-space: nowrap; }
.dette .ajout th, .dette .ajout td { font-weight: 600; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 560; vertical-align: 1px; }
.dette .tot th, .dette .tot td { font-weight: 640; font-size: 16px; border-bottom: 0; background: #f6f6f4; }
.dette .tot th span { display: block; margin-top: 2px; font-size: 13px; font-weight: 450; color: var(--ink-3); }
.dette-plus { margin: 0; padding: 6px 18px 14px; border-top: 1px solid var(--line); }
.dette-plus div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dette-plus div:last-child { border-bottom: 0; }
.dette-plus dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dette-plus dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; }

/* Couverture de la dette */
.dscr-zone { position: relative; padding: 14px 16px 0 6px; }
.dscr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ds-grille { stroke: var(--line); stroke-width: 1; }
.ds-repere { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 2 4; }
.ds-axe { font-family: var(--mono); font-size: 12.5px; fill: var(--ink-3); }
.ds-ligne { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ds-ligne.ds-dem { stroke: var(--ink-3); stroke-dasharray: 6 5; stroke-dashoffset: 0; opacity: 0; }
.ds-pt { fill: var(--ink); stroke: #fff; stroke-width: 2; opacity: 0; }
.ds-pt.ds-dem { fill: #fff; stroke: var(--ink-3); stroke-width: 1.8; }
.ds-lab { font-family: var(--font); font-size: 13.5px; font-weight: 600; fill: var(--ink); opacity: 0; }
.ds-lab.ds-dem { fill: var(--ink-2); }
.vu .ds-ligne { stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease); }
.vu .ds-ligne.ds-dem { opacity: 1; transition: opacity 500ms ease 900ms; }
.vu .ds-pt, .vu .ds-lab { opacity: 1; transition: opacity 300ms ease 1000ms; }
.ds-croix { stroke: var(--ink-3); stroke-width: 1; }
.ds-cible { fill: transparent; cursor: crosshair; }
.dscr-bulle { position: absolute; z-index: 2; width: 160px; display: grid; gap: 2px; padding: 8px 10px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 13px; pointer-events: none; }
.dscr-bulle[hidden] { display: none; }
.dscr-bulle span { display: flex; justify-content: space-between; color: #c9cdd6; }
.dscr-bulle span b { color: #fff; font-weight: 560; }
.dscr-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 18px 16px; font-size: 13.5px; color: var(--ink-2); }
.dl { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--ink); }
.dl-tiret { border-top: 2px dashed var(--ink-3); }
.dl-repere { border-top: 1.2px dotted var(--ink-3); }

/* Ce que vous recevez */
.dr-livrables { padding: 72px 0 88px; }
.liv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line-2); }
.liv-c { padding: 28px 28px 8px 0; }
.liv-c + .liv-c { padding-left: 28px; border-left: 1px solid var(--line); }
.liv-c h3 { margin-top: 22px; font-size: 19px; font-weight: 620; letter-spacing: -0.02em; }
.liv-c p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.liv-doc { position: relative; height: 170px; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 24px -16px rgba(0, 0, 0, 0.35); overflow: hidden; }
.liv-pdf { width: 132px; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.liv-pdf b { font-size: 12px; font-weight: 640; letter-spacing: -0.01em; line-height: 1.2; }
.liv-pdf span { font-size: 10.5px; color: var(--ink-3); margin-bottom: 6px; }
.liv-pdf i { display: block; height: 4px; border-radius: 2px; background: #e6e8ec; }
.liv-pdf i:nth-of-type(2) { width: 82%; }
.liv-pdf i:nth-of-type(3) { width: 64%; }
.liv-pdf em { margin-top: auto; align-self: flex-start; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 3px; background: var(--ink); color: #fff; }
.liv-xl { display: flex; flex-direction: column; }
.xl-grille { flex: 1; background: linear-gradient(#e9ebef 1px, transparent 1px) 0 0 / 100% 20px, linear-gradient(90deg, #e9ebef 1px, transparent 1px) 0 0 / 64px 100%, #fff; }
.xl-onglets { display: flex; gap: 2px; padding: 0 6px; border-top: 1px solid var(--line); background: #f6f6f4; overflow: hidden; }
.xl-onglets span { flex: none; padding: 6px 9px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.xl-onglets .on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 2px 0 var(--ink); }

/* Selon l'étape */
.p-lien { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink); text-underline-offset: 4px; }

@media (max-width: 900px) {
  .dr-hero .signaux { left: 0; width: 100%; }
  .dr-deux { grid-template-columns: minmax(0, 1fr); }
  .liv { grid-template-columns: minmax(0, 1fr); }
  .liv-c, .liv-c + .liv-c { padding: 24px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .dr-hero .signaux { position: relative; bottom: auto; margin-top: 8px; }
  .dz-corps { min-height: 0; }
  .dz-classes li { grid-template-columns: minmax(0, 1fr) 2.6em; }
  .dz-classes em { grid-column: 1 / -1; margin-top: -4px; }
  .dz-pont { height: 170px; gap: 5px; }
  .dz-b em, .pb em { font-size: 11.5px; }
  .pont { margin: 22px 12px 64px; height: 240px; gap: 5px; }
  .pb > span { font-size: 12.5px; }
  .pb em { font-size: 0; }
  .pb em::after { content: attr(data-court); font-size: 11.5px; }
  .dr-hero .trame { aspect-ratio: 520 / 372; }
  .dp-lien { display: none; }
  .dp-lab { font-size: 17px; }
  .dette th, .dette td { padding: 11px 14px; }
  .dz-points li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp, .dp-lab, .dp-lien, .dp-anneau, .dz-classes li, .pb i, .pb > span, .ds-ligne { transition: none !important; animation: none !important; }
}
.dz-corps[data-pour="chiffres"] { padding-top: 18px; }
.xl-grille { overflow: hidden; }
.xl-t { width: 100%; border-collapse: collapse; font-size: 11.5px; line-height: 1.2; }
.xl-t td { padding: 4px 8px; border-bottom: 1px solid #e9ebef; border-right: 1px solid #e9ebef; color: var(--ink-2); white-space: nowrap; }
.xl-t td:last-child { width: 4.5em; text-align: right; border-right: 0; color: var(--ink); }
.xl-t .tot td { font-weight: 640; color: var(--ink); background: #f6f6f4; }
#piece-cb .papier td:last-child { white-space: nowrap; }
