/*****************************
* Feuille d'impression SPIP *
*****************************/

@media print {
    @page {
    margin-top: 2cm;
    margin-bottom: 2cm;
    margin-left: 1cm;
    margin-right: 1cm;
    }
  /* --- Réinitialisation générale --- */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
  }

  html, body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  body {
    padding-top: 2cm;
    padding-bottom: 2cm;
  }
  /* --- Correction WOW.js --- */
  .wow,
  .animated {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  /* --- Masquer les éléments inutiles --- */
  header,
  footer,
  nav,
  .menu,
  .navigation,
  .pagination,
  .sidebar,
  .aside,
  .recherche,
  .formulaire_spip,
  .bouton,
  .btn,
  .no-print,
  .skiplink,
  .retour-haut,
  .cookie,
  .social,
  .partage,
  .commentaires,
  #tarteaucitronIcon {
    display: none !important;
  }

  /* --- Forcer l'affichage du contenu SPIP --- */
  #page,
  #contenu,
  #content,
  .main,
  .wrapper,
  .page,
  .contenu_principal,
  .texte,
  .article,
  .contenu,
  .conteneur-texte {
    display: block !important;
    width: 100% !important;
    position: static !important;
  }

  /* --- Liens propres à l’impression --- */
  a {
    text-decoration: underline !important;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")" !important;
    font-size: 10pt;
  }

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

  figure {
    page-break-inside: avoid;
  }

  /* --- Titres --- */
  h1, h2, h3, h4, h5 {
    page-break-after: avoid;
  }

  /* --- Blocs SPIP --- */
  .spip_note { font-size: 9pt; }
  .spip_code,
  .spip_cadre {
    border: 1px solid #000;
    padding: 5mm;
    page-break-inside: avoid;
  }

  blockquote {
    border-left: 4px solid #000;
    padding-left: 1em;
    page-break-inside: avoid;
  }

  /* --- Tableaux --- */
  table {
    width: 100% !important;
    border-collapse: collapse;
    page-break-inside: avoid;
  }

  th, td {
    border: 1px solid #000;
    padding: 4mm;
  }

  /* --- Sauts de page --- */
  .saut_page {
    page-break-before: always;
  }

  .eviter_saut {
    page-break-inside: avoid;
  }

  /* --- Affichage des URLs dans SPIP --- */
  .spip_documents + strong {
    display: none;
  }

  .wow {
    visibility: visible !important;
    animation: none !important;
  }
  .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .works-single {padding: 0 !important;}
  .works-single h2 {
    padding-right: 0 !important;
  }
}

