/* ===================================================================
   Teram — feuille de style d'impression
   Masque la navigation et optimise la lecture papier des documents
   et check-lists.
   =================================================================== */

@media print {
  .site-header,
  .main-nav,
  .nav-toggle,
  .breadcrumb,
  .site-footer,
  .back-to-top,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .card, .tool-form, .tool-result {
    box-shadow: none !important;
    border: 1px solid #999;
  }

  .doc-layout, .tool-layout {
    display: block;
  }

  .doc-form,
  .tool-form {
    display: none;
  }
  .tool-result {
    position: static;
  }

  /* Documents : seul le document (.doc-a4) doit survivre à l'impression */
  .doc-preview-scroll {
    background: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .doc-a4 {
    box-shadow: none !important;
    margin: 0 !important;
    width: auto !important;
    min-height: 0 !important;
  }
  .doc-preview-wrap {
    border: none !important;
    padding: 0 !important;
    background: none !important;
  }

  a[href]::after {
    content: "";
  }

  /* Check-lists : rendu papier propre */
  .checklist-toolbar, .storage-note, .progress-wrap, .checklist-actions {
    display: none !important;
  }
  .check-category {
    border: 1px solid #999;
    break-inside: avoid;
    margin-bottom: 0.6rem;
  }
  .check-item input:checked + label {
    text-decoration: none;
    color: #000;
  }
  .notes-textarea { display: none !important; }
  .notes-print-view {
    display: block !important;
    white-space: pre-wrap;
    border: 1px solid #999;
    padding: 0.6rem;
    min-height: 3em;
  }
}
