/* Pages d'article du blog (générées par tools/build_blog.py).
 *
 * Palette : celle de LiberalSup et du simulateur (orientation/orientation.css,
 * retraite/plf-theme.css), dont les contrastes y sont mesurés. Le site est
 * sombre de lui-même ; ces pages aussi, sans variante claire.
 *
 * Rien de transparent (règle du site) : en-tête, cartes et boutons ont des
 * fonds pleins. Les graphiques, faits sur fond blanc, sont posés sur une
 * plaque blanche plutôt que recolorés.
 */

@font-face {
    font-family: "SansSerifBldFLF Medium";
    src: url("/fonts/SansSerifBldFLF.woff") format("woff");
    font-display: swap;
}

:root {
    color-scheme: dark;

    --fond: #003340;
    --fond-carte: #06404e;
    --fond-appui: #0b5060;
    --fond-creux: #00242e;
    --texte: #ffffff;
    --texte-doux: #a8c9d0;      /* 5,12:1 au pire point du fond */
    --trait: #14606f;
    --accent: #3ad4c4;
    --safran: #e9c53d;

    --police-titres: "SansSerifBldFLF Medium", system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: radial-gradient(circle at right center, var(--fond-appui), var(--fond)) fixed;
    background-color: var(--fond);
    color: var(--texte);
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.7;
}

a { color: var(--accent); }
a:hover { color: var(--texte); }

:focus-visible {
    outline: 3px solid var(--safran);
    outline-offset: 2px;
}

.interieur {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- En-tête -------------------------------------------------------------- */

.entete {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--fond);
    border-bottom: 1px solid var(--trait);
}

.entete .interieur {
    max-width: 68rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.marque {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--texte);
    text-decoration: none;
    font-family: var(--police-titres);
    letter-spacing: .02em;
}

.marque img { display: block; }

/* Sous 26 rem, le nom du parti ne tient plus à côté du bouton : le logo
   suffit. */
@media (max-width: 26rem) {
    .marque span { display: none; }
}

/* Navigation interne : allure de bouton, comme partout sur le site. */
.bouton {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: var(--fond-creux);
    color: var(--texte);
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
}

.bouton:hover { background-color: var(--fond-appui); color: var(--texte); }

.bouton-plein {
    background-color: var(--safran);
    color: var(--fond-creux);
    font-family: var(--police-titres);
}

.bouton-plein:hover { background-color: #f3d769; color: var(--fond-creux); }

/* --- Article ---------------------------------------------------------------- */

.article-tete {
    padding: 40px 0 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--trait);
}

.article-tete time {
    display: block;
    color: var(--safran);
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

h1, h2 {
    font-family: var(--police-titres);
    font-weight: normal;
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
    margin: 10px 0 20px;
}

.chapo {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--texte);
}

h2 {
    font-size: 1.5rem;
    color: var(--safran);
    margin: 44px 0 12px;
}

article > p {
    margin: 0 0 1.1em;
    hyphens: auto;
}

figure {
    margin: 32px 0;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 6px;
}

figcaption {
    margin-top: 10px;
    color: var(--texte-doux);
    font-size: .95rem;
    line-height: 1.5;
}

/* --- Cartes d'article (« À lire aussi ») ------------------------------------
 * Même dessin que la liste de l'onglet Blog (css/style.css, « Blog »). */

.voir-aussi { margin: 32px 0; }

.voir-aussi-titre {
    margin: 0 0 8px;
    color: var(--texte-doux);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-carte {
    display: block;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--trait);
    background-color: var(--fond-creux);
    color: var(--texte);
    text-decoration: none;
}

.blog-carte:hover { border-color: var(--accent); color: var(--texte); }

.blog-carte time {
    color: var(--safran);
    font-size: .85rem;
}

.blog-carte .blog-carte-titre {
    margin: 4px 0 8px;
    font-family: var(--police-titres);
    font-size: 1.25rem;
    line-height: 1.25;
}

.blog-carte p { margin: 0 0 14px; color: var(--texte-doux); line-height: 1.55; }

.blog-lire {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: var(--fond-appui);
}

.blog-carte:hover .blog-lire { background-color: var(--trait); }

/* --- Pied d'article ------------------------------------------------------- */

.article-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin: 48px 0 64px;
    padding-top: 28px;
    border-top: 1px solid var(--trait);
}
