/* Page « Sa diplomatie » (diplomatie.html, site-bilan-outils/page-diplomatie.py), 4 déc. 2026.
   Ce qu'Emmanuel Macron a fait dans le monde hors Europe et hors Ukraine. Classes dp-*. */

/* Sur les sections grises, les cartes passent en blanc pour se détacher du fond */
.sj-sec.gris .ra-obj, .sj-sec.gris .dp-carte { background: #fff; }

/* Les liens vers les pages voisines, sous la frise */
.dp-ctas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 34px; }
@media (min-width: 900px) { .dp-ctas { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dp-ctas .sj-cta { grid-template-columns: minmax(0, 1fr); align-content: space-between; } }
.dp-ctas .sj-cta b { font-size: clamp(26px, 2.6vw, 34px); }
.dp-ctas .sj-cta p { font-size: 16px; }
.dp-cta-gris { background: var(--gris); color: var(--texte); }
.dp-cta-gris p { color: var(--texte-2); }
.dp-cta-gris .sj-cta-btn { background: var(--bleu); color: #fff; }

/* Un récit avec sa photo : la photo en haut, le texte et les chiffres dessous */
.dp-recit { margin: 0 0 14px; border-radius: 30px; overflow: hidden; background: #fff; }
.sj-sec.blanc .dp-recit { background: var(--gris); }
.dp-recit-photo { position: relative; margin: 0; aspect-ratio: 21 / 9; background: #111; }
.dp-recit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-recit-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .88); background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
@media (max-width: 899px) { .dp-recit-photo { aspect-ratio: 3 / 2; } }
.dp-recit-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 34px); padding: clamp(24px, 3.4vw, 44px); }
@media (min-width: 1000px) { .dp-recit-corps { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.dp-recit-corps h3 { margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -.04em; font-weight: 760; }
.dp-recit-corps h3 mark { background: none; color: var(--bleu); padding: 0; }
.dp-recit-corps p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.5; color: var(--texte-2); }
.dp-recit-corps blockquote { margin: 0 0 16px; font-size: clamp(20px, 2vw, 25px); line-height: 1.3; letter-spacing: -.02em; font-weight: 640; color: var(--texte); }
.dp-recit-corps blockquote + p { font-size: 14.5px; }

/* Les chiffres d'un récit, en colonne à droite */
.dp-faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dp-faits li { display: flex; flex-direction: column; padding: clamp(18px, 2.2vw, 24px); border-radius: 22px; background: var(--gris); }
.sj-sec.blanc .dp-recit .dp-faits li { background: #fff; }
.dp-faits .sj-fiche-sur { margin-bottom: 2px; }
.dp-faits b { margin: 2px 0 8px; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: -.05em; font-weight: 790; color: var(--bleu); font-variant-numeric: tabular-nums; }
.dp-faits li > p:not(.sj-fiche-sur) { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--texte-2); }
.dp-faits .pj-src { margin: 0; align-self: flex-start; }
.dp-faits .dp-nuance b { color: var(--texte-2); }

/* Les cartes d'une section (climat, santé, finance) */
.dp-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .dp-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .dp-cartes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dp-cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dp-recit + .dp-cartes { margin-top: 14px; }

/* Cadrage des photos du corps de la page : le visage du président reste dans le cadre (pas de style="…", refusé par la CSP) */
.dp-pos-ouaga img { object-position: 44% 58%; }
.dp-pos-oneplanet img { object-position: 48% 62%; }
.dp-photo { margin-bottom: 14px; }
.dp-carte { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 30px); border-radius: 26px; background: var(--gris); }
.dp-carte b { margin: 4px 0 10px; font-size: clamp(38px, 4vw, 54px); line-height: 1; letter-spacing: -.05em; font-weight: 790; color: var(--bleu); font-variant-numeric: tabular-nums; }
.dp-carte p:not(.sj-fiche-sur) { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; color: var(--texte-2); }
.dp-carte .vi-src { margin-top: auto; }
.dp-carte .pj-src { margin: 0; }

/* Les appels de Paris : le seul aplat sombre de la page */
.dp-appels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .dp-appels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .dp-appels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dp-appels li { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 30px); border-radius: 26px; background: #161617; }
.dp-appels time { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8FA2FF; }
.dp-appels h3 { margin: 8px 0 14px; font-size: clamp(21px, 2vw, 25px); line-height: 1.15; letter-spacing: -.025em; font-weight: 720; color: #fff; }
.dp-appels b { font-size: clamp(44px, 4.6vw, 62px); line-height: 1; letter-spacing: -.05em; font-weight: 790; color: #fff; font-variant-numeric: tabular-nums; }
.dp-appels li > p { margin: 8px 0 14px; font-size: 15.5px; line-height: 1.5; color: #A1A1A6; }
.dp-appels .pj-src { margin-top: auto; align-self: flex-start; color: #fff; }
.dp-appels-note { margin: 18px 0 0; max-width: 760px; font-size: 14.5px; line-height: 1.5; color: #A1A1A6; }

/* L'aide au développement : le graphique, puis les deux nuances */
#aide .ra-graphe { background: #fff; }
.dp-aide-lien { display: inline-block; margin-top: 18px; font-size: 15.5px; font-weight: 650; color: var(--bleu); text-decoration: none; }
.dp-aide-lien:hover { text-decoration: underline; }

/* Les critiques */
#critiques .ra-objs { margin-top: 8px; }

/* Reprises d'allege.css (version locale 20261204f, pas encore en ligne le 4 déc.) : la page est publiée avec allege.css 20261204d.
   Bouton « Source » au fil d'un paragraphe : il reste sur la ligne. Liens de la frise claire : en bleu souligné. */
p .pj-src, figcaption .pj-src, span .pj-src { margin-top: 0; vertical-align: baseline; }
.allege .pj-frise a { color: var(--bleu); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
