/* ============================================
   STYLES D'IMPRESSION
   Les juristes impriment fréquemment les décisions.

   Loaded non-render-blocking via <link media="print">
   ============================================ */

@media print {
  /* Masquer les éléments non-imprimables */
  nav,
  footer,
  .no-print,
  [role="navigation"],
  [aria-label="Fermer"],
  button,
  .fixed,
  .sticky {
    display: none !important;
  }

  /* Forcer les couleurs claires */
  body,
  html {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  /* Maximiser la largeur du contenu */
  main,
  .max-w-7xl,
  .max-w-4xl,
  .max-w-3xl {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Supprimer les ombres, bordures et arrière-plans décoratifs */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .dark {
    background: white !important;
    color: black !important;
  }

  /* Les liens affichent leur URL */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Règles de saut de page */
  h1, h2, h3, h4 {
    page-break-after: avoid;
    break-after: avoid;
  }

  p, li, blockquote {
    orphans: 3;
    widows: 3;
  }

  table, figure, img {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Assurer que le texte des décisions est lisible */
  .decision-content {
    font-size: 11pt;
    line-height: 1.6;
    color: black !important;
  }

  /* Supprimer les highlights colorés pour l'impression */
  .highlight,
  .highlight-exact,
  .highlight-semantic {
    background: none !important;
    color: inherit !important;
    font-weight: bold;
    text-decoration: underline;
  }
}
