
/* Feuille de style dédiée à l'impression */

@page {
    size: auto;
    margin: 15mm;
}

@media print {

    /* Présentation générale */
    body {
        background: #fff !important;
        color: #000 !important;
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.4;
    }

    /* Supprimer les éléments de navigation */
    nav,
    header,
    footer,
    aside,
    .menu,
    .navigation,
    .sidebar,
    .no-print {
        display: none !important;
    }

    /* Supprimer les effets décoratifs */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Éviter les débordements */
    html,
    body,
    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Titres */
    h1, h2, h3 {
        page-break-after: avoid;
        break-after: avoid;
    }

    /* Éviter de couper les éléments importants */
    img,
    table,
    figure,
    blockquote {
        break-inside: avoid;
    }

    /* Images */
    img {
        max-width: 100% !important;
    }

    /* Liens */
    a {
        color: #000 !important;
        text-decoration: underline;
    }

    /* Éviter les URL interminables */
    pre,
    code {
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }
}
