@page {
    margin: 1cm;
    border: none;
}

@media print {

* {
    transform: none !important;
    position: static !important;
    float: none !important;
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-family: serif;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Éléments à masquer à l'impression */
  header, 
  footer, 
  .mentions-legales-popin-overlay, 
  .back-to-top,
  .hero-boutons,
  #comprendre {
    display: none !important;
  }

  /* Liens */
  a {
    color: black !important;
    text-decoration: underline;
  }

  /* Afficher l’URL après les liens */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Titres */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Paragraphes et blocs */
  p, blockquote, ul, ol, table {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Tableaux */
  table {
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    border: 1px solid black;
    padding: 6px;
    text-align: left;
  }

  /* Largeurs */
  .container,
  .content,
  .wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .reveal {
    opacity: 1 !important;
  }

  /* Supprimer les effets visuels inutiles */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Éléments visibles uniquement à l'impression */
  .only-print {
    display: block !important;
  }

  h1 {
    color: var(--apec-blue) !important;
  }

  .hero:before {
    width: auto !important;
  }

}