@media print {

    /* Éléments à masquer */
    #wpadminbar,
    .elementor-location-header,
    .elementor-location-footer,
    .elementor-location-popup,
    .elementor-element-1afa035,
    .e-con[data-settings*='"position":"fixed"'],
    #tarteaucitronIcon,
    #tarteaucitronAlertBig,
    .tarteaucitron-magic-block,
    .tarteaucitron-magic-block-recaptcha,
    [class*="tarteaucitron-magic-block"],
    [id*="recaptcha_container"],
    .no-print,
    .fiche-pdf-btn-wrapper {
        display: none !important;
    }

    /* Cache toutes les sections du template single
       sauf celle qui contient le contenu de la fiche */
    .elementor-location-single > *:not(:has(.elementor-widget-theme-post-content)),
    .elementor-location-single > .elementor-inner > *:not(:has(.elementor-widget-theme-post-content)) {
        display: none !important;
    }

    /* Réinitialisation */
    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt !important;
    }

    .elementor-widget-theme-post-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }

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

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

    a[href]::after {
        content: none !important;
    }

    @page {
        size: A4 portrait;
        margin: 15mm;
    }
}
