/*
 * Habillage « tract » des articles, chargé après blog.css sur les pages d'article.
 * Toutes les règles sont limitées à .article : l'en-tête, la navigation et le pied
 * de page du blog ne sont pas touchés. La remise à zéro passe par :where() (spécificité
 * nulle) pour ne pas écraser les styles du moteur (tags, méta…).
 */
:where(.article *) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* La feuille reste claire quel que soit le thème : variables du thème clair de blog.css,
   pour que liens, méta et tags restent lisibles sur fond blanc en mode sombre. */
.article {
    --fond: #fbfaf7;
    --surface: #ffffff;
    --texte: #1f2328;
    --discret: #5b636d;
    --bord: #e3e0d8;
    --accent: #b4441c;
    --accent-doux: #f6e7df;
    --code: #f2efe8;
    color-scheme: light;
    max-width: 820px;
    margin: 0 auto 2rem;
    background: #fffdf9;
    padding: 3rem 2.8rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    border-left: 6px solid #b22222;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #1e1e1e;
    line-height: 1.7;
}

.article h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    border-bottom: 3px solid #b22222;
    padding-bottom: 0.75rem;
    margin-bottom: 1.8rem;
    line-height: 1.2;
}

.article .kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #b22222;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.2rem 0 0.8rem;
    color: #1a1a1a;
    border-left: 4px solid #b22222;
    padding-left: 1rem;
    line-height: 1.3;
}

.article p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

.article .lead,
.article .chapeau {
    font-size: 1.15rem;
    font-weight: 500;
    color: #2c2c2c;
    border-left: 3px solid #b22222;
    padding-left: 1.2rem;
    margin: 1.5rem 0 2rem;
    font-style: italic;
}

.article blockquote {
    background: #f0ece6;
    padding: 1.2rem 1.8rem;
    margin: 1.8rem 0;
    border-left: 6px solid #b22222;
    font-style: italic;
    color: #2e2e2e;
    font-size: 1.05rem;
}

.article blockquote p:last-child {
    margin-bottom: 0;
}

.article .highlight {
    background: linear-gradient(120deg, #ffe9b0 0%, #ffe9b0 100%);
    padding: 0.1rem 0.3rem;
    font-weight: 600;
}

.article .footnote {
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-style: normal;
}

.article ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: none;
}

.article ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.article ul li::before {
    content: "▹";
    color: #b22222;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.article .signature {
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: #444;
    text-align: right;
    border-top: 1px dashed #aaa;
    padding-top: 1.2rem;
}

@media (max-width: 600px) {
    .article {
        padding: 2rem 1.5rem;
    }
    .article h1 {
        font-size: 1.9rem;
    }
    .article h2 {
        font-size: 1.3rem;
    }
}
