/* Styles pour l'impression */
@media print {
    /* Cacher les éléments non nécessaires pour l'impression */
    header, footer, nav, .no-print, .action-buttons, .social-links, .top-bar {
        display: none !important;
    }

    /* Styles généraux */
    body {
        font-family: serif;
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
        margin: 0;
        padding: 0;
    }

    /* Liens */
    a {
        color: #000;
        text-decoration: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }

    /* Ne pas afficher l'URL pour les liens internes ou les liens d'ancre */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    /* Titres */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    h1 {
        font-size: 24pt;
        margin-bottom: 1cm;
    }

    h2 {
        font-size: 18pt;
        margin-top: 1cm;
    }

    h3 {
        font-size: 16pt;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Éviter de couper certains éléments */
    p, blockquote, ul, ol, dl, table, figure {
        page-break-inside: avoid;
    }

    /* Pagination */
    @page {
        margin: 2cm;
    }

    /* Forcer le saut de page où nécessaire */
    .page-break {
        page-break-before: always;
    }

    /* Styles spécifiques pour les articles */
    .article-content {
        margin-top: 1cm;
    }

    .article-meta {
        font-size: 10pt;
        color: #666;
        margin-bottom: 0.5cm;
    }
}
