:root {
    --white: #fff;
    --black: #000;
    --blue-1: #19223d;
    --light-blue: #1f5fdb;
    --dark-blue-1: #13171d;
    --grey-1: #505e74;
    --grey-2: #a7b1c8;
    --grey-3: #acb1bd;
    --yellow-1: #e7e134;
    --accent: #38bdf8;
}

.newspaper-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 40px;
    position: relative;
    isolation: isolate;
    background-color: #f1f1f1;
    color: #22211d;
    border: 1px solid #dcd7c9;
    box-shadow: 2px 15px 20px 0px rgb(0 0 0 / 19%);
    position: relative;
}

/* En-tête type "Journal d'époque" */
.newspaper-header {
    text-align: center;
    border-bottom: 3px double #1a1a1a;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.newspaper-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.newspaper-subbanner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 6px 2px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'EB Garamond', serif;
}

.newspaper-subbanner p {
    margin: 0;
}

/* Titre principal de l'article */
.newspaper-headline {
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    margin: 50px 15px;
    font-family: 'EB Garamond', serif;
}

/* Corps de texte rédigé en 2 colonnes comme la vraie presse */
.newspaper-content {
    column-count: 2;
    column-gap: 45px;
    column-rule: 1px solid #9c9393;
    text-align: justify;
    font-size: 16px;
    line-height: 1.7;
    font-family: 'EB Garamond', serif;
}

.newspaper-content p {
    margin: 0;
    margin-bottom: 1.2em;
    /* break-inside: avoid; */
}

/* Lettrine (Première lettre géante) */
.newspaper-content p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    float: left;
    line-height: 0.8;
    margin-top: -22px;
    font-weight: bold;
    color: #111;
}

/* ARTICLE COURT : UNE COLONNE PLUS ÉTROITE */
.newspaper-content.article-court {
    max-width: 620px;
    margin: 0 auto;
    column-count: 1;
}

/* ARTICLE MOYEN : UNE COLONNE PLUS LARGE */
.newspaper-content.article-moyen {
    max-width: 760px;
    margin: 0 auto;
    column-count: 1;
}

/* ARTICLE LONG : DEUX COLONNES */
.newspaper-content.article-long {
    column-count: 2;
}

/* SURLIGNAGE JAUNE ANCIEN */
.highlight-archive {
    background: linear-gradient(transparent 15%,
            rgba(232, 211, 83, 0.48) 15%,
            rgba(232, 211, 83, 0.48) 88%,
            transparent 88%);
    color: inherit;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 500;
}

.newspaper-footer {
    margin-top: 45px;
    text-align: center;
    color: #222;
}

.footer-top-rule {
    border-top: 3px double #1a1a1a;
    margin-bottom: 10px;
}

.footer-end {
    font-family: 'Playfair Display', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.footer-journal-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-bottom-rule {
    border-bottom: 3px double #1a1a1a;
}

@media (max-width: 768px) {
    .newspaper-footer {
        margin-top: 30px;
    }
}

.btn-retour-archive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.btn-retour-archive:hover {
    color: var(--light-blue);
}

@media (max-width: 768px) {
    .newspaper-wrapper {
        padding: 20px;
    }

    .newspaper-name {
        font-size: 1.7rem;
    }

    .newspaper-headline {
        font-size: 1.5rem;
    }

    .newspaper-content {
        column-count: 1 !important;
        /* 1 seule colonne sur smartphone */
    }
}