/* Allègement du 4 déc. 2026 (soir), chargé en dernier par site-bilan-outils/allege-pages.py.
   Retour de Gaspard : « des endroits trop lourds à regarder […] des endroits pas clairs ».
   1. Titres de sections plus mesurés ; le mot fort passe en couleur, sans le pavé bleu derrière.
   2. Variantes claires des composants dessinés pour le noir, dans les sections passées en clair (classe « allege »). */

/* ——— 1. Titres ——— */
.sj h2.sj-titre { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.042em; max-width: 21ch; }
.these { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.042em; max-width: 20ch; }
.sj-titre mark, .these mark, .sj h2 mark, .sj h3 mark { background: none; color: var(--bleu); padding: 0; border-radius: 0; }
.noir .sj-titre mark, .noir .these mark, .sj .noir h2 mark, .sj .noir h3 mark { color: #8FA2FF; }
.bleu .sj-titre mark, .bleu .these mark, .sj .bleu h2 mark, .sj .bleu h3 mark { color: #fff; background: none; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .12em; }
@media (max-width: 420px) { .sj h2.sj-titre { font-size: 32px; } }

/* ——— 2. Sections passées en clair ——— */
.allege { color: var(--texte); }
.jn h2 mark, .jn h3 mark, .sn h2 mark, .sn h3 mark { background: none; color: var(--bleu); padding: 0; border-radius: 0; }
.jn .noir h2 mark, .sn .noir h2 mark { color: #8FA2FF; }
.jn .bleu h2 mark, .jn .bleu h3 mark, .sn .bleu h2 mark, .sn .bleu h3 mark { color: #fff; background: none; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .12em; }   /* jeunes.css remettait un pavé blanc pleine hauteur */

/* Frises datées (pj-frise) */
.allege .pj-frise::before { background: linear-gradient(#C7CEF5, var(--bleu)); }
.allege .pj-frise li::before { background: #fff; border-color: var(--bleu); }
.allege .pj-frise .pj-frise-fin::before { background: var(--bleu); box-shadow: 0 0 0 6px rgba(31,63,224,.14); }
.allege .pj-frise time { color: var(--bleu); }
.allege .pj-frise p { color: var(--texte-2); }
.allege .pj-frise q, .allege .pj-frise b { color: var(--texte); }

/* Ses initiatives (cartes) */
.allege .init { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
.allege.blanc .init { background: var(--gris); box-shadow: none; }
.allege .init h3 { color: var(--texte); }
.allege .init-quand { color: var(--bleu); }
.allege .init-texte { color: var(--texte-2); }
.allege .init-chiffre { color: var(--bleu); }
.allege .init-legende { color: var(--texte); }
.allege .init-src, .allege .init-src a { color: var(--texte-3); }
.allege .init-suite a { background: var(--texte); color: #fff; }

/* Face aux crises (chocs) */
.allege .tp { border-top-color: rgba(0,0,0,.1); }
.allege .tp h3 { color: var(--texte); }
.allege .tp-fait { color: var(--texte-2); }
.allege .tp-n span { color: var(--texte-2); }
.allege .tp-choc .tp-n b { color: #D70015; }
.allege .tp-tenu .tp-n b, .allege .tp-tenu .tp-n span { color: #fff; }
.allege .tp:has(.tp-note) .tp-tenu { background: var(--bleu); }

/* Records (travail) et cartes noires */
.allege .sj-records li { background: #fff; }
.allege.blanc .sj-records li { background: var(--gris); }
.allege .sj-records .sur { color: var(--bleu); }
.allege .sj-records b { color: var(--texte); }
.allege .sj-records p { color: var(--texte-2); }
.allege .sj-records p b { color: var(--texte); }
.allege .pj-carte-noire, .allege.bl-bloc .pj-carte-noire { background: #fff; color: var(--texte); }
.allege.blanc .pj-carte-noire { background: var(--gris); }
.allege .pj-carte-noire .sj-fiche-sur { color: var(--bleu); }
.allege .pj-carte-noire .pj-carte-n { color: var(--texte); }

/* Barres des élevages (agriculture) et écarts du chômage (outre-mer) */
.allege .ag-av span:first-child { color: var(--texte-2); }
.allege .ag-av-note { color: var(--texte-3); }
.allege .om-db-legende { color: var(--texte-2); }
.allege .om-db-note { color: var(--texte-3); }
.allege .om-db li { border-top-color: rgba(0,0,0,.08); }
.allege .om-db-nom { color: var(--texte); }
.allege .om-db-trait { background: linear-gradient(90deg, #2D5BFF, rgba(0,0,0,.16)); }
.allege .om-db-ap { box-shadow: 0 0 0 3px var(--gris), 0 0 0 5px rgba(45,91,255,.35); }
.allege.blanc .om-db-ap { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(45,91,255,.35); }
.allege .om-db-legende .om-db-ap { box-shadow: none; }
.allege .om-db-v-av { color: var(--texte-2); }
.allege .om-db-v-ap { color: var(--texte); }
.allege .om-db-delta { color: var(--bleu); }
.allege .om-db-delta small { color: var(--texte-2); }
.allege .om-db-axe { border-top-color: rgba(0,0,0,.15); color: var(--texte-3); }

/* Jeunes : lien de fin */
.allege .jn-fin-lien { color: var(--texte); }
.allege .jn-op-t { color: var(--bleu); }   /* étiquettes des objections, bleu pâle prévu pour le noir */

/* ——— 3. Photos dans les sections qui n'avaient aucune image (ILLUS dans allege-pages.py) ——— */
.ill { margin: clamp(20px, 3vw, 34px) 0 clamp(26px, 3.6vw, 44px); }
.ill img { display: block; width: 100%; height: clamp(230px, 30vw, 430px); object-fit: cover; border-radius: 26px; background: var(--gris); }
.ill figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--texte-2); }
.ill figcaption span { display: block; font-size: 11px; color: var(--texte-3); }
.noir .ill figcaption { color: rgba(255,255,255,.75); }
.noir .ill figcaption span { color: rgba(255,255,255,.5); }
.ill-armees img { object-position: 64% 52%; }
.ill-sorbonne img { object-position: 50% 52%; }
.ill-pitie img { object-position: 72% 42%; }
.ill-vivatech img { object-position: 60% 30%; }
.ill-cop27 img { object-position: 40% 32%; }
.ill-vannes img { object-position: 60% 48%; }
.ill-saint-nazaire img { object-position: 34% 46%; }
@media (max-width: 560px) { .ill img { border-radius: 20px; } }

/* Brigitte Macron : citation de la frise, écrite en blanc pour le fond noir */
.allege .pj-frise .bm-cite { color: var(--texte); }

/* Boutons « Source » au fil d'un paragraphe : la marge haute de sujet.css (faite pour un bouton seul sous une carte)
   faisait descendre la dernière ligne du texte. Dans un paragraphe, le bouton reste sur la ligne. */
p .pj-src, figcaption .pj-src, span .pj-src { margin-top: 0; vertical-align: baseline; }

/* Liens au fil d'une frise claire (« Ce qui en est fait », « Ce qu'elle prépare ») */
.allege .pj-frise a { color: var(--bleu); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
