/* livre-aide-memoire.css — Fiches récap imprimables du guide Yeees!
   À l'écran : des "feuilles" A4 lisibles. À l'impression : on cache tout le décor du site,
   chaque fiche part sur sa propre page, couleurs conservées. CSP-safe (feuille externe même-origine). */

.am-sheet { background: #fff; }
.am-item, .am-rep { break-inside: avoid; }

@media print {
  /* Cacher tout le chrome du site + les boutons */
  header, footer, #am-breadcrumb, #am-hero, #am-help, .am-noprint, [class*="fixed"], .yz-a11y {
    display: none !important;
  }
  html, body { background: #fff !important; }
  main { padding: 0 !important; margin: 0 !important; }

  /* Chaque fiche = une page */
  .am-sheet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    padding: 6mm 8mm !important;
    page-break-after: always;
  }
  .am-sheet:last-child { page-break-after: auto; }

  /* Impression d'une seule fiche : masquer les autres */
  .am-hide { display: none !important; }

  /* Garder les vraies couleurs des icônes à l'impression */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  @page { margin: 10mm; }
}
