:root {
    --page-w: 80rem
}

.page {
    .illustration {
        text-align: center;
        margin-bottom: 1rem;
        img { filter: drop-shadow(0 0 0.5rem grey); }
    }

    .epigraphe {
        text-align: center;
        font-family: var(--pfont-family);
        font-size: calc(var(--pfont-size) * 0.9);
        margin-left: 38%;
        margin-bottom: 3rem;
        > .auteur {
            font-style: italic;
        }
    }

    > .texte {
        font-family: var(--scriptfont-family);
        font-size: var(--scriptfont-size);

        max-width: min(var(--page-w), 100%);
        margin: 0 auto 2rem auto;
        height: auto;
        padding: 2.5rem 3rem;

        /* Fond blanc avec une légère texture */
        background-color: #fcf8f0;
        background-image:
                radial-gradient(ellipse at 20% 50%, rgba(200, 180, 160, 0.08) 0%, transparent 70%),
                repeating-linear-gradient(0deg,
                transparent,
                transparent 23px,
                rgba(180, 160, 140, 0.08) 23px,
                rgba(180, 160, 140, 0.08) 24px);

        /* Ombres pour l'effet feuille */
        box-shadow:
                0 4px 20px rgba(0, 0, 0, 0.25),
                0 1px 4px rgba(0, 0, 0, 0.1),
                inset 0 0 30px rgba(255, 245, 220, 0.5);

        /* Bordures douces */
        border: 1px solid #e8ddd0;
        border-radius: 4px;

        position: relative;
        z-index: 1;
        line-height: 1.7;

        &::before {
            content: '';
            position: absolute;
            top: 6px;
            left: 8px;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.04);
            border-radius: 4px;
            z-index: -1;
            filter: blur(2px);
        }

        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, transparent 50%, rgba(200, 180, 160, 0.15) 50%);
            border-bottom-right-radius: 4px;
            pointer-events: none;
        }

        p {
            margin-bottom: 1rem;

            &:last-child {
                margin-bottom: 0;
            }

            span.quote {
                COLOR: hsl(110 80% 25%);
            }
        }

        a {
            color: hsl(0 80% 40%);
        }
    }
}