@page {
    size: A4 portrait;
    margin: 0;
}

:root {
    /* marge blanche autour de la "page" imprimée */
    --page-margin: 10mm !important; /* ↑ augmentez si l’imprimante rogne en bord */
    /* mode secours d’échelle globale (1.00 = 100%) */
    --fit-scale: 0.96 !important; /* ex: 0.96 si ça déborde */
    /* active le mode secours (0 = off, 1 = on) */
    --fit-enabled: 0 !important; /* passez à 1 pour forcer un scale */
}

@media print {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important; /* retire le fond gris du body */
        color: inherit !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    main {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    html, body, main {
        min-width: 210mm !important;
        min-height: 290mm !important;
        width: 210mm !important;
        height: 290mm !important;
        margin: 0 auto!important;
    }

    section {
        margin: 0 auto !important;
        position: absolute;
    }

    *,
    *::before,
    *::after {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    img,
    svg,
    canvas,
    video {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        image-rendering: auto;
    }

    #address {
    position: absolute;
    bottom: 0.5mm;
    left: 8cm;
    color: #eee !important;
    font-size: 10px;
}
}
