/*
 * Impression : fond clair, navigation et actions retirées, sources et réserves conservées. Le rapport client
 * et le dossier partenaire gardent leurs tableaux et leur schéma ; aucune version figée n'est réécrite.
 */

@media print {
  @page { margin: 15mm; }
  html, body { background: #fff; color: #000; }
  .demo-banner { border-bottom: 1px solid #000; background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .flash, .report-toolbar, .breadcrumb, .page-header__actions, .button, form,
  .app__sidebar, .topbar, .appbar, .dossier-side, .dossier-tabs, .dossier-header, .menu-toggle, .site-nav, .platform-banner, nav { display: none !important; }
  .app { display: block; background: #fff; }
  .workspace, .container { max-width: none; padding: 0; margin: 0; }
  .container--public { background: #fff; }
  .panel, .card, .finding, .suggestion { border-color: #bbb; break-inside: avoid; }
  .report-frame { border: 0; padding: 0; margin: 0; box-shadow: none; }
  .report { max-width: none; font-size: 11pt; }
  .report__notice { border-color: #000; background: #fff; color: #000; }
  /* Une SECTION entière insécable laissait des demi-pages blanches (22 pages pour un rapport, audit du 25 septembre
     2026) : ce qui ne se coupe pas, ce sont un titre et ce qui le suit, une ligne de tableau, un encadré. */
  .report__section { break-inside: auto; page-break-inside: auto; }
  .report h2, .report h3 { break-after: avoid; page-break-after: avoid; }
  .report tr, .report li, .report__essentials, .report__notice, .diagram-wrap { break-inside: avoid; page-break-inside: avoid; }
  .report p { orphans: 3; widows: 3; }
  .report__section--estimate { break-before: page; page-break-before: always; }
  .report__table th, .report__table td { padding: 0.3rem 0.4rem; }
  .table-wrap, .diagram-wrap { overflow: visible; background: none; border: 0; padding: 0; }
  .diagram-wrap--scroll svg { max-width: 100%; height: auto; }
  .diagram-frame, .diagram-frame__canvas { overflow: visible; width: 100%; max-width: 100%; min-width: 0; }
  .diagram-frame__canvas > svg { width: 100%; min-width: 0; }
  .diagram { max-width: 100%; }
  /* La lecture du schéma est repliée à l'écran (audit de présentation, priorité 7) et ENTIÈRE au papier : un
     document imprimé ne s'ouvre pas, et c'est lui qui doit rester lisible sans le dessin. */
  .report__reading > summary { list-style: none; font-weight: 600; }
  .report__reading::details-content { content-visibility: visible !important; block-size: auto !important; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero .lead, .hero .fine { color: #000; }
  a { color: #000; text-decoration: none; }
}
