/* ============================================
   Print Stylesheet — Anciens PG 2000
   ============================================ */

@media print {
    /* Hide non-essential elements */
    #header,
    #navigation,
    #sidebar,
    #footer,
    .breadcrumb,
    .btn,
    .alert-dismissible .btn-close,
    .navbar,
    .pagination,
    .modal {
        display: none !important;
    }

    /* Full width content */
    .page-layout {
        display: block !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    #content {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Typography */
    body {
        font-size: 12pt;
        color: #000 !important;
        background: white !important;
    }

    h1 {
        font-size: 18pt;
        border-bottom-color: #000 !important;
    }

    h2 { font-size: 14pt; }
    h3 { font-size: 12pt; }

    /* Links: show URL */
    a[href]:not(.btn)::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="/"]::after {
        content: none;
    }

    a[href^="mailto:"]::after {
        content: none;
    }

    /* Tables */
    .directory-table,
    .table {
        border-collapse: collapse !important;
    }

    .directory-table th,
    .directory-table td,
    .table th,
    .table td {
        border: 1px solid #ccc !important;
        padding: 4pt 8pt !important;
    }

    /* Cards */
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

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

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

    .card, article {
        page-break-inside: avoid;
    }
}
