/* Print CSS - Optimisation Impression */
@media print {
  /* 1. Masquage des éléments inutiles */
  nav, 
  header, 
  footer, 
  aside, 
  .elementor-location-header, 
  .elementor-location-footer,
  #barre-menu,
  .wp-block-navigation,
  .elementor-widget-button,
  .wp-block-button,
  .social-icons,
  #wpadminbar,
  .image-switcher__controls {
    display: none !important;
  }

  /* 2. Reset Couleurs et Fond */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    background: #fff !important;
  }

  /* 3. Gestion des titres et sauts de page */
  h1, h2, h3 {
    font-family: var(--wp--preset--font-family--titles), serif !important;
    page-break-after: avoid;
  }

  p, blockquote {
    orphans: 3;
    widows: 3;
  }

  /* 4. Liens et Médias */
  a:after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    font-weight: normal;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* 5. Structure */
  .elementor-section, .e-con {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  @page {
    margin: 2cm;
  }
}