/**
 * Styles d'impression - Opquast
 * Règle Opquast R195 : Le site propose une ou plusieurs feuilles de style dédiées à l'impression
 */

@media print {
  /* Masquer les éléments non imprimables */
  header,
  footer,
  nav,
  .c-footer,
  .nav-top,
  .nav-main,
  .c-newsletter,
  .c-cookie-banner,
  .skip-links,
  .burger-btn,
  .c-search,
  .orejime-Notice,
  #front-chat-container,
  .c-btn,
  .c-cta-oqstart,
  aside {
    display: none !important;
  }

  /* Optimiser la mise en page */
  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
  }

  main,
  .o-wrapper,
  article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Titres */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 14pt;
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Liens : afficher les URLs */
  a[href^="http"]:not(.c-footer__network-link):after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
    word-break: break-all;
  }

  /* Liens internes : ne pas afficher l'URL */
  a[href^="/"]:after,
  a[href^="#"]:after {
    content: none;
  }

  /* Éviter les coupures de page inappropriées */
  p, li, blockquote {
    orphans: 3;
    widows: 3;
  }

  blockquote, pre, table, figure {
    page-break-inside: avoid;
  }

  /* Tableaux */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  th, td {
    border: 1px solid #ccc;
    padding: 8px;
  }

  /* Abréviations : afficher la définition */
  abbr[title]:after {
    content: " (" attr(title) ")";
    font-size: 9pt;
  }
}
