/* print.css */
@media print {
  /* Masquer les éléments non essentiels */
  nav,
  .navbar,
  .sidebar,
  .menu,
  .footer,
  .btn,
  button,
  .no-print {
    display: none !important;
  }

  /* Adapter la largeur et la police */
  body {
    color: #000;
    background: #fff !important;
    font-size: 12pt;
    line-height: 1.4;
    margin: 0;
    padding: 0;
  }

  /* Adapter les titres */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }

  /* Forcer le contenu principal à pleine largeur */
  .container, .content, main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Gérer les liens */
  a:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }

  a[href^="#"]:after, a[href=""]:after {
    content: "";
  }

  /* Éviter les coupures de page gênantes */
  table, pre, blockquote, img {
    page-break-inside: avoid;
  }

  /* Adapter les images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Saut de page après les sections principales */
  section, article {
    page-break-after: always;
  }
}
