/* Fichier nommé .min : le plugin zminify ne le retraite pas (il plante sur les liens qui ont déjà ?v=). */
/* Feuille d'impression : on garde le contenu, on retire tout ce qui ne sert pas
   sur papier (navigation, bandeaux, formulaires, médias) pour économiser encre et papier. */
@media print {
  @page { margin: 1.5cm; }

  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; line-height: 1.4; }

  /* Éléments d'interface inutiles à l'impression */
  header, .skip-link, .modal, .privacy-notice, .cookie-toggle,
  .footer__credits, .footer__newsletter, .newsletter, .social-share,
  .contact-form, .footer__legal-links,
  video, audio, iframe, button, form, dialog { display: none !important; }

  /* Pas de fond ni d'ombre, texte lisible */
  *, *::before, *::after { background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  main, .main { margin: 0 !important; padding: 0 !important; max-width: none !important; }

  /* Images : jamais plus larges que la page, version dithérée de base uniquement */
  img { max-width: 100% !important; height: auto; break-inside: avoid; }
  .dither-hover__full, .block-portraits__img--hover { display: none !important; }

  h1, h2, h3, h4 { break-after: avoid; }
  p, li, figure, blockquote { orphans: 3; widows: 3; }
  figure, blockquote, table, .card { break-inside: avoid; }

  /* Liens : on imprime l'adresse des liens externes */
  a { color: inherit; text-decoration: underline; }
  main a[href^="http"]:not([href*="lefaitout"])::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
