/* ========================================================================== PRINT STYLES (print.css) Cible l'impression papier et la génération de PDF ========================================================================== */ @media print { /* 1. Reset général pour l'impression */ *, *::before, *::after { background: transparent !important; color: #000 !important; /* Texte noir pour économie d'encre */ box-shadow: none !important; text-shadow: none !important; } body { font-family: serif; /* Les polices avec empattement sont plus lisibles sur papier */ font-size: 12pt; line-height: 1.5; background-color: #fff !important; } /* 2. Masquer les éléments inutiles (Navigation, Pied de page, Widgets) */ nav, header, footer, .site-header, .site-footer, .wp-block-navigation, .elementor-location-header, .elementor-location-footer, .elementor-widget-button, .social-icons, .noprint, #comments, .sidebar, .wp-block-buttons { display: none !important; } /* 3. Ajustement du contenu principal */ main, .entry-content, .container { width: 100% !important; margin: 0 !important; padding: 0 !important; } /* 4. Gestion des liens */ a { text-decoration: underline; color: #000 !important; } /* Affiche l'URL à côté des liens externes */ a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 90%; font-style: italic; } /* Ne pas afficher les liens internes (ancres) */ a[href^="#"]:after { content: ""; } /* 5. Gestion des sauts de page */ h1, h2, h3 { page-break-after: avoid; /* Évite un titre seul en bas de page */ page-break-inside: avoid; } img { max-width: 100% !important; page-break-inside: avoid; } blockquote, pre { border: 1px solid #999; page-break-inside: avoid; } ul, ol { page-break-inside: auto; } li { page-break-inside: avoid; } /* 6. Marges de la page */ @page { margin: 2cm; } /* 7. Récupération de certaines variables si nécessaire (en noir) */ h1, .elementor-widget-heading h1 { font-family: "Azonix", sans-serif; /* Conserve l'identité si installée */ text-transform: uppercase; margin-bottom: 0.5cm; } }