/* =========================================================
   PRINT CSS — Amour queer
   FIX texte invisible
   ========================================================= */

@media print {

    /* ===== RESET ÉCRAN (CRUCIAL) ===== */

    * {
        background: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transform: none !important;
        border: none !important;

        /* FIX TEXTE DISPARU */
        -webkit-text-fill-color: currentColor !important;
        background-clip: border-box !important;
        -webkit-background-clip: border-box !important;
    }

    html,
    body {
        background: white !important;
        color: #7a4f9d !important; /* violet unique */
        font-family: "Mattone", serif;
    }

    /* forcer la couleur partout */
    p,
    h1, h2, h3, h4, h5, h6,
    a,
    li,
    span,
    em,
    strong {
        color: #7a4f9d !important;
    }

    /* ===== TAILLES TYPO ===== */

    body {
        font-size: 12pt;
        line-height: 1.6;
    }

    /* TEXTE PRINCIPAL (IMPORTANT) */
    .text {
        font-size: 12.5pt;
        line-height: 1.65;
        max-width: 38em;
        margin: 0 auto;
    }

    .text p {
        margin-top: 1.2em;
        margin-bottom: 1.2em;
        orphans: 2;
        widows: 2;

        /* ANNULATION DES EFFETS ÉCRAN */
        background: none !important;
        color: #7a4f9d !important;
        -webkit-text-fill-color: #7a4f9d !important;
    }

    /* ===== TITRES ===== */

    h1 {
        font-family: "Crake Test", serif;
        font-size: 22pt;
        text-align: center;
        margin-bottom: 3cm;
    }

    h2 {
        font-family: "Crake Test", serif;
        font-size: 16pt;
        text-align: center;
        margin-top: 2.5cm;
        margin-bottom: 1.5cm;
        break-before: page;
    }

    h3 {
        font-family: "Crake Test", serif;
        font-size: 14pt;
        text-align: center;
        margin-top: 2cm;
        margin-bottom: 1cm;
    }

    h2,
    h3 {
        break-after: avoid-page;
    }

    /* ===== MÉTADONNÉES ===== */

    .authors {
        font-size: 11pt;
        text-align: right;
        margin-top: 2cm;
        margin-bottom: 1cm;
    }

    .keywords {
        font-size: 9pt;
        text-align: center;
        font-style: italic;
        margin-bottom: 2cm;
    }

    /* ===== BLOCS SECONDAIRES ===== */

    .readmore,
    .biography {
        font-size: 10.5pt;
        line-height: 1.5;
        max-width: 36em;
        margin: 3cm auto 0 auto;
        padding: 0;
        break-before: page;
    }

    /* ===== MASQUAGE INTERFACE ===== */

    .theme,
    .top-nav,
    #footer,
    .top-nav-intro,
    body::before,
    body::after {
        display: none !important;
    }

    /* ===== SAUTS DE PAGE ===== */

    header {
        break-after: page;
    }

    figure {
        break-inside: avoid;
    }

    /* ===== FORMAT DE PAGE ===== */

    @page {
        size: 210mm 297mm;
        margin: 2.5cm 2.5cm 3cm 2.5cm;
    }

    @page :first {
        margin-top: 5cm;
    }

    @page :left {
        margin-right: 3cm;
    }

    @page :right {
        margin-left: 3cm;
    }

    /* ===== PRINT ONLY ===== */

    .printonly {
        display: block;
    }
}

/* écran : cacher les éléments printonly */
.printonly {
    display: none;
}
