/**
 * MINAC - Feuille de style pour impression
 */

@media print {

  /* ================================================================== */
  /*  1. Hide non-essential UI elements                                  */
  /* ================================================================== */
  .infobar,
  .masthead-actions,
  .nav-bar,
  .flash,
  .hero,
  .access-rail,
  .newsletter,
  .partners,
  .footer-socials,
  .btt,
  .reading-bar,
  .mobile-nav,
  .mobile-nav-overlay,
  .search-box,
  .hamburger,
  .share-bar,
  .sidebar {
    display: none !important;
  }

  /* ================================================================== */
  /*  2. Page setup                                                      */
  /* ================================================================== */
  @page {
    margin: 2cm;
  }

  /* ================================================================== */
  /*  3. Body defaults                                                   */
  /* ================================================================== */
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: "Georgia", "Times New Roman", Times, serif !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* ================================================================== */
  /*  4. Links: show URL for external links                              */
  /* ================================================================== */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: normal;
    color: #555;
  }

  /* Do not show URL for internal/anchor/js links */
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  a[href^="/"]::after {
    content: "";
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* ================================================================== */
  /*  5. Images                                                          */
  /* ================================================================== */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* ================================================================== */
  /*  6. Tables                                                          */
  /* ================================================================== */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  table,
  th,
  td {
    border: 1px solid #333 !important;
  }

  th,
  td {
    padding: 6px 8px;
    text-align: left;
  }

  th {
    background: #eee !important;
    font-weight: bold;
  }

  /* ================================================================== */
  /*  7. Headings: avoid orphan headings                                 */
  /* ================================================================== */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    color: #000 !important;
  }

  /* ================================================================== */
  /*  8. General page-break rules                                        */
  /* ================================================================== */
  p, blockquote, ul, ol, dl, figure {
    page-break-inside: avoid;
  }

  /* ================================================================== */
  /*  9. Footer: simplified copyright only                               */
  /* ================================================================== */
  .site-footer {
    border-top: 1px solid #999;
    padding-top: 10px;
    margin-top: 30px;
    text-align: center;
    font-size: 10pt;
  }

  .site-footer *:not(.copyright) {
    display: none !important;
  }

  .site-footer .copyright {
    display: block !important;
  }
}
