/* Centre Sahélien pour la Biodiversité : page détail d'un événement (13 nov. 2026), préfixe .csb-ed-
   Page evenement.php (adresse /evenement-<id>). Chargé après csb.css et csb-hero-photo.css.
   Principe : un compte rendu sobre sur fond blanc ; colonne de lecture à gauche, fiche de la session collante à droite.
   Couleurs et polices : celles de l'Agenda (assets/css/csb-agenda.css). */

.csb-ed {
	--ed-foret: #004540; --ed-vegetal: #23734A; --ed-mil: #FFE175; --ed-encre: #16231A;
	--ed-texte: rgba(22, 35, 26, .80); --ed-doux: rgba(22, 35, 26, .64); --ed-trait: rgba(0, 69, 64, .14); --ed-pale: #F5F8F4;
	--ed-titre: var(--csb-font-titre, Georgia, serif); --ed-sans: var(--csb-font-texte, system-ui, sans-serif);
	--ed-courbe: cubic-bezier(.2, .7, .2, 1);
	font-family: var(--ed-sans); color: var(--ed-encre);
}
.csb-ed *, .csb-ed *::before, .csb-ed *::after { box-sizing: border-box; }
body .csb-ed :where(.csb-ed-corps, .csb-ed-autres) :where(p) { margin: 0; text-align: left; hyphens: none; }
body .csb-ed :where(.csb-ed-corps, .csb-ed-autres) :where(ul, ol, dl, dd) { margin: 0; padding: 0; list-style: none; }
body .csb-ed :is(h2, h3):not(#csb) { margin: 0; font-family: var(--ed-titre); font-weight: 700; color: var(--ed-encre); text-transform: none; letter-spacing: -.01em; text-wrap: balance; }
.csb-ed :focus-visible { outline: 3px solid var(--ed-foret); outline-offset: 3px; border-radius: 6px; }

/* --- Corps : colonne de lecture + fiche --- */
.csb-ed-corps { padding: 72px 0 96px; }
.csb-ed-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; }
.csb-ed-article { max-width: none; min-width: 0; }
body .csb-ed .csb-ed-chapo:not(#csb) { font: 500 20px/1.6 var(--ed-sans); color: var(--ed-encre); }
body .csb-ed .csb-ed-texte:not(#csb) { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--ed-texte); }
body .csb-ed .csb-ed-h2:not(#csb) { font-size: clamp(26px, 20px + 1vw, 32px); line-height: 1.2; }

/* --- Compte rendu : une entrée par publication --- */
.csb-ed-journal { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ed-trait); }
.csb-ed-entree { margin-top: 32px; }
.csb-ed-entree + .csb-ed-entree { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--ed-trait); }
body .csb-ed .csb-ed-entree-date:not(#csb) { font-size: 15px; font-weight: 600; color: var(--ed-vegetal); }
body .csb-ed .csb-ed-entree-titre:not(#csb) { margin-top: 6px; font-size: clamp(22px, 18px + .6vw, 26px); line-height: 1.25; }
body .csb-ed .csb-ed-entree > p:not(.csb-ed-entree-date):not(.csb-ed-credit):not(#csb) { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--ed-texte); }

/* Photos : la première en grand, les suivantes en bande */
body .csb-ed ul.csb-ed-photos:not(#csb) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.csb-ed-photos li:first-child { grid-column: 1 / -1; }
.csb-ed-photos.is-2 li:not(:first-child) { grid-column: 1 / -1; }
.csb-ed-photos.is-3 li:not(:first-child) { grid-column: span 2; }
.csb-ed-photos a { display: block; overflow: hidden; border-radius: 8px; background: var(--ed-pale); aspect-ratio: 3 / 2; }
.csb-ed-photos li:first-child a { aspect-ratio: 16 / 10; }
.csb-ed-photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ed-courbe); }
@media (hover: hover) { .csb-ed-photos a:hover img { transform: scale(1.04); } }
body .csb-ed .csb-ed-credit:not(#csb) { margin-top: 8px; font-size: 13px; color: var(--ed-doux); }
.csb-ed-entree > .csb-ed-lien { margin-top: 20px; }

/* Liens texte (soulignement qui se dessine) */
body .csb-ed a.csb-ed-lien:not(#csb) { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--ed-foret); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ed-courbe); }
@media (hover: hover) { body .csb-ed a.csb-ed-lien:hover:not(#csb) { background-size: 0 1.5px; background-position: 100% 100%; } }
.csb-ed-lien i { font-size: 13px; }

/* --- Étapes : vraie séquence décrite par la source --- */
.csb-ed-etapes { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ed-trait); }
body .csb-ed .csb-ed-etapes ol:not(#csb) { margin-top: 24px; counter-reset: etape; }
.csb-ed-etapes li { counter-increment: etape; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ed-trait); }
.csb-ed-etapes li:first-child { border-top: 1px solid var(--ed-trait); }
.csb-ed-etapes li::before { content: counter(etape); grid-row: span 2; font: 700 30px/1 var(--ed-titre); color: var(--ed-vegetal); font-variant-numeric: lining-nums; }
.csb-ed-etapes strong { font-size: 17.5px; font-weight: 700; color: var(--ed-encre); }
.csb-ed-etapes span { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--ed-texte); }

/* --- Repères : définitions générales --- */
.csb-ed-reperes { margin-top: 64px; padding: 32px; border-radius: 12px; background: var(--ed-pale); }
body .csb-ed .csb-ed-note:not(#csb) { margin-top: 8px; font-size: 15px; color: var(--ed-doux); }
body .csb-ed .csb-ed-reperes dl:not(#csb) { margin-top: 20px; }
.csb-ed-reperes dl > div { padding: 14px 0; border-top: 1px solid var(--ed-trait); }
.csb-ed-reperes dt { font-weight: 700; font-size: 16px; color: var(--ed-foret); }
body .csb-ed .csb-ed-reperes dd:not(#csb) { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--ed-texte); }

/* --- Fiche de la session (colonne de droite, collante) --- */
.csb-ed-aside { position: sticky; top: 110px; }
.csb-ed-fiche { padding: 28px; border: 1px solid var(--ed-trait); border-radius: 12px; background: #fff; }
.csb-ed-fiche-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body .csb-ed .csb-ed-fiche-titre:not(#csb) { font-size: 20px; }
.csb-ed-statut { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.csb-ed-statut.is-a-venir { background: var(--ed-mil); color: var(--ed-foret); }
.csb-ed-statut.is-en-cours { background: #E3F0E7; color: var(--ed-foret); }
.csb-ed-statut.is-en-cours::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ed-vegetal); }
.csb-ed-statut.is-passe { box-shadow: inset 0 0 0 1px rgba(22, 35, 26, .25); color: var(--ed-doux); }
body .csb-ed .csb-ed-rebours:not(#csb) { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ed-vegetal); }
body .csb-ed dl.csb-ed-infos:not(#csb) { margin-top: 18px; }
.csb-ed-infos > div { padding: 12px 0; border-top: 1px solid var(--ed-trait); }
.csb-ed-infos dt { font-size: 13px; font-weight: 600; color: var(--ed-doux); }
body .csb-ed .csb-ed-infos dd:not(#csb) { margin-top: 2px; font-size: 15.5px; line-height: 1.5; color: var(--ed-encre); }
.csb-ed-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ed-trait); }
body .csb-ed a.csb-ed-btn:not(#csb) { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 100px; background: var(--ed-foret); color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: background .25s ease, transform .25s var(--ed-courbe); }
@media (hover: hover) { body .csb-ed a.csb-ed-btn:hover:not(#csb) { background: var(--ed-vegetal); transform: translateY(-2px); } }
body .csb-ed .csb-ed-reserve:not(#csb) { font-size: 14.5px; line-height: 1.5; color: var(--ed-doux); }
.csb-ed-partage { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ed-trait); }
.csb-ed-partage[hidden] { display: none; }
body .csb-ed .csb-ed-partage p:not(#csb) { margin-right: auto; font-size: 13px; font-weight: 600; color: var(--ed-doux); }
.csb-ed-partage a, .csb-ed-copier { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 100px; background: var(--ed-pale); color: var(--ed-foret); font: 600 13.5px/1 var(--ed-sans); text-decoration: none; cursor: pointer; transition: background .25s ease; }
@media (hover: hover) { .csb-ed-partage a:hover, .csb-ed-copier:hover { background: #E3F0E7; } }

/* --- Autres sessions --- */
.csb-ed-autres { padding: 72px 0 96px; background: var(--ed-pale); }
.csb-ed-autres-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
body .csb-ed ul.csb-ed-autres-liste:not(#csb) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.csb-ed-autre { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; transition: transform .3s var(--ed-courbe); }
.csb-ed-autre img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.csb-ed-autre > div { padding: 18px 20px 22px; }
.csb-ed-autre-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ed-doux); }
body .csb-ed .csb-ed-autre h3:not(#csb) { margin-top: 10px; font-size: 19px; line-height: 1.3; }
.csb-ed-autre h3 a { color: inherit; text-decoration: none; }
.csb-ed-autre h3 a::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) { .csb-ed-autre:hover { transform: translateY(-4px); } .csb-ed-autre:hover h3 a { color: var(--ed-foret); } }

/* --- Responsive --- */
@media (max-width: 1199px) { .csb-ed-grille { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
@media (max-width: 991px) {
	.csb-ed-corps { padding: 48px 0 72px; }
	.csb-ed-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.csb-ed-article { max-width: none; }
	.csb-ed-aside { position: static; }   /* « La session en bref » après l'article (demande du 13 nov. 2026 ; avant : order: -1, en tête) */
	body .csb-ed ul.csb-ed-autres-liste:not(#csb) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csb-ed-autre:nth-child(3) { display: none; }
}
@media (max-width: 575px) {
	body .csb-ed .csb-ed-chapo:not(#csb) { font-size: 18px; }
	body .csb-ed ul.csb-ed-photos:not(#csb) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csb-ed-photos.is-3 li:not(:first-child) { grid-column: span 1; }
	.csb-ed-fiche { padding: 22px; }
	.csb-ed-reperes { padding: 24px 20px; }
	.csb-ed-autres { padding: 56px 0 72px; }
	body .csb-ed ul.csb-ed-autres-liste:not(#csb) { grid-template-columns: minmax(0, 1fr); }
	.csb-ed-autre:nth-child(3) { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .csb-ed *, .csb-ed *::before, .csb-ed *::after { transition: none !important; } }

/* Photo de la fiche quand la session n'a pas encore de compte rendu (mention « Photo d'illustration » conservée) */
.csb-ed-figure { margin: 32px 0 0; }
.csb-ed-figure:first-child { margin-top: 0; }
.csb-ed-figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--ed-pale); }
body .csb-ed .csb-ed-figure figcaption:not(#csb) { margin-top: 8px; font-size: 13px; color: var(--ed-doux); }

/* Textes justifiés sur toute la largeur de la colonne (demande de l'owner, 13 nov. 2026).
   Césure automatique (lang="fr") pour limiter les grands espaces entre les mots ; retirer `hyphens: auto` pour la supprimer. */
body .csb-ed :is(.csb-ed-chapo, .csb-ed-texte, .csb-ed-entree > p:not(.csb-ed-entree-date):not(.csb-ed-credit), .csb-ed-etapes span, .csb-ed-reperes dd, .csb-ed-note):not(#csb) { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Le style général `main p { max-width: 65ch }` de csb.css est levé ici : les textes occupent toute la largeur de la colonne (demande de l'owner, 13 nov. 2026). */
body main.csb-ed :is(.csb-ed-chapo, .csb-ed-texte, .csb-ed-entree > p, .csb-ed-etapes span, .csb-ed-reperes dd, .csb-ed-note):not(#csb) { max-width: none; }

/* --- Retouche minimaliste (13 nov. 2026, demande de l'owner) : textes plus petits, gris pour les paragraphes, noir pour les titres et les mots clés,
   espacements resserrés sur une grille de 4 px. Les textes restent justifiés (règle ci-dessus). --- */
.csb-ed { --ed-encre: #141A16; --ed-texte: #4E5450; --ed-doux: #6A706C; }
.csb-ed-corps { padding: 56px 0 80px; }
.csb-ed-grille { gap: 64px; }
/* Texte courant : 15 px, gris ; chapô : 17 px, noir */
body .csb-ed .csb-ed-chapo:not(#csb) { font: 500 17px/28px var(--ed-sans); color: var(--ed-encre); }
body .csb-ed .csb-ed-texte:not(#csb) { margin-top: 12px; font-size: 15px; line-height: 26px; color: var(--ed-texte); }
body .csb-ed .csb-ed-entree > p:not(.csb-ed-entree-date):not(.csb-ed-credit):not(#csb) { margin-top: 12px; font-size: 15px; line-height: 26px; color: var(--ed-texte); }
/* Titres : noirs, plus petits */
body .csb-ed .csb-ed-h2:not(#csb) { font-size: 24px; line-height: 1.25; color: var(--ed-encre); }
body .csb-ed .csb-ed-entree-titre:not(#csb) { margin-top: 4px; font-size: 20px; line-height: 1.3; color: var(--ed-encre); }
body .csb-ed .csb-ed-entree-date:not(#csb) { font-size: 13.5px; }
/* Compte rendu */
.csb-ed-journal { margin-top: 48px; padding-top: 32px; }
.csb-ed-entree { margin-top: 24px; }
.csb-ed-entree + .csb-ed-entree { margin-top: 40px; padding-top: 32px; }
body .csb-ed ul.csb-ed-photos:not(#csb) { margin-top: 24px; }
body .csb-ed .csb-ed-credit:not(#csb) { margin-top: 8px; font-size: 12.5px; }
.csb-ed-entree > .csb-ed-lien { margin-top: 16px; }
body .csb-ed a.csb-ed-lien:not(#csb) { font-size: 14.5px; }
/* Étapes et repères */
.csb-ed-etapes { margin-top: 48px; padding-top: 32px; }
body .csb-ed .csb-ed-etapes ol:not(#csb) { margin-top: 20px; }
.csb-ed-etapes li { padding: 16px 0; }
.csb-ed-etapes li::before { font-size: 24px; }
.csb-ed-etapes strong { font-size: 15.5px; color: var(--ed-encre); }
.csb-ed-etapes span { font-size: 15px; line-height: 24px; color: var(--ed-texte); }
.csb-ed-reperes { margin-top: 48px; padding: 24px; }
body .csb-ed .csb-ed-note:not(#csb) { font-size: 14px; }
body .csb-ed .csb-ed-reperes dl:not(#csb) { margin-top: 16px; }
.csb-ed-reperes dl > div { padding: 12px 0; }
.csb-ed-reperes dt { font-size: 15px; color: var(--ed-encre); }
body .csb-ed .csb-ed-reperes dd:not(#csb) { font-size: 14.5px; line-height: 24px; color: var(--ed-texte); }
/* Fiche de la session */
.csb-ed-fiche { padding: 24px; }
body .csb-ed .csb-ed-fiche-titre:not(#csb) { font-size: 18px; color: var(--ed-encre); }
.csb-ed-infos > div { padding: 12px 0; }
.csb-ed-infos dt { font-size: 12.5px; color: var(--ed-doux); }
body .csb-ed .csb-ed-infos dd:not(#csb) { font-size: 14.5px; line-height: 22px; color: var(--ed-encre); }
body .csb-ed .csb-ed-rebours:not(#csb) { font-size: 14px; }
body .csb-ed a.csb-ed-btn:not(#csb) { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
body .csb-ed .csb-ed-reserve:not(#csb) { font-size: 13px; color: var(--ed-doux); }
body .csb-ed .csb-ed-partage p:not(#csb) { font-size: 12.5px; }
/* Autres sessions */
.csb-ed-autres { padding: 56px 0 72px; }
body .csb-ed ul.csb-ed-autres-liste:not(#csb) { margin-top: 24px; gap: 24px; }
.csb-ed-autre > div { padding: 16px 20px 20px; }
.csb-ed-autre-meta { font-size: 13px; }
body .csb-ed .csb-ed-autre h3:not(#csb) { margin-top: 8px; font-size: 17px; line-height: 1.35; color: var(--ed-encre); }
@media (max-width: 991px) { .csb-ed-corps { padding: 40px 0 64px; } }
@media (max-width: 575px) {
	body .csb-ed .csb-ed-chapo:not(#csb) { font-size: 16px; line-height: 26px; }
	body .csb-ed .csb-ed-h2:not(#csb) { font-size: 22px; }
	.csb-ed-autres { padding: 48px 0 64px; }
}


/* Largeur figée sur mobile et tablette : aucun balayage horizontal */
@media (max-width: 991px) {
	html, body { max-width: 100%; overflow-x: clip; }
	.csb-ed, .csb-ed-corps .container { max-width: 100%; overflow-x: clip; }
	.csb-ed-grille > *, .csb-ed-article, .csb-ed-aside { min-width: 0; }
	.csb-ed-article { overflow-wrap: anywhere; }
	.csb-ed img, .csb-ed figure { max-width: 100%; }
}

/* « La session en bref » : une flèche devant chaque information */
body .csb-ed .csb-ed-infos dd:not(#csb) { display: flex; align-items: flex-start; gap: 10px; }
.csb-ed-infos dd > i { flex: none; margin-top: 5px; font-size: 13px; color: var(--ed-vegetal); }
.csb-ed-infos dd > span { min-width: 0; }

/* =====================================================================
   Fiche modulaire (phase B, 15 nov. 2026) : événements qui déclarent la clé « fiche » (partials/evenement-fiche.php)
   Informations essentielles, sections ordonnées, chronologie, recommandations, sommaire. Les autres fiches ne sont pas concernées.
   ===================================================================== */
.csb-ed-essentiel { border-bottom: 1px solid var(--ed-trait, rgba(0, 69, 64, .14)); background: #fff; }
.csb-ed-essentiel dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; margin: 0; padding: 0; }
.csb-ed-essentiel dl > div { padding: 22px 0 22px; }
.csb-ed-essentiel dt { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ed-doux); }
body .csb-ed .csb-ed-essentiel dd:not(#csb) { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--ed-encre); }

.csb-ed-section { margin-top: 64px; scroll-margin-top: 110px; }
.csb-ed-section:first-child { margin-top: 0; }
body .csb-ed .csb-ed-section > .csb-ed-h2:not(#csb) { margin-bottom: 20px; }
body .csb-ed .csb-ed-intro:not(#csb) { font: 500 18px/1.6 var(--ed-sans); color: var(--ed-encre); margin-bottom: 8px; }
body .csb-ed .csb-ed-section .csb-ed-texte:not(#csb) { margin-top: 16px; }
body .csb-ed .csb-ed-section .csb-ed-texte:first-child:not(#csb), body .csb-ed .csb-ed-section > .csb-ed-h2 + .csb-ed-texte:not(#csb) { margin-top: 0; }
body .csb-ed .csb-ed-puces:not(#csb) { margin-top: 14px; }
.csb-ed-puces li { position: relative; padding: 4px 0 4px 20px; font-size: 16.5px; line-height: 1.6; color: var(--ed-texte); }
.csb-ed-puces li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--ed-vegetal); }
body .csb-ed .csb-ed-note:not(#csb) { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ed-doux); }
body .csb-ed .csb-ed-limite:not(#csb) { margin-top: 32px; padding-left: 16px; border-left: 3px solid var(--ed-mil); }
body .csb-ed .csb-ed-lienligne:not(#csb) { margin-top: 18px; }

/* Chronologie : une entrée par date, ordre croissant */
.csb-ed-chrono { counter-reset: none; }
.csb-ed-jour { position: relative; padding: 0 0 40px 28px; border-left: 2px solid var(--ed-trait); }
.csb-ed-jour:last-child { padding-bottom: 0; border-left-color: transparent; }
.csb-ed-jour::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--ed-vegetal); }
.csb-ed-jour .csb-ed-entree-date { margin: 0; }
.csb-ed-precision { margin-left: 10px; font-weight: 400; color: var(--ed-doux); }
body .csb-ed .csb-ed-jour > p:not(.csb-ed-entree-date):not(.csb-ed-note):not(.csb-ed-credit):not(#csb) { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--ed-texte); }
.csb-ed-pas { counter-reset: pas; margin: 16px 0 0; padding: 0; list-style: none; }
.csb-ed-pas li { counter-increment: pas; position: relative; padding: 8px 0 8px 36px; border-top: 1px solid var(--ed-trait); font-size: 16.5px; line-height: 1.55; color: var(--ed-texte); }
.csb-ed-pas li:last-child { border-bottom: 1px solid var(--ed-trait); }
.csb-ed-pas li::before { content: counter(pas); position: absolute; left: 0; top: 8px; font: 700 18px/1.5 var(--ed-titre); color: var(--ed-vegetal); font-variant-numeric: lining-nums; }
.csb-ed-jour .csb-ed-lien { margin-top: 16px; }

/* Recommandations : texte suivi, pas de cartes */
.csb-ed-recos { counter-reset: reco; margin-top: 8px; padding: 0; list-style: none; }
.csb-ed-reco { counter-increment: reco; position: relative; padding: 32px 0 32px 64px; border-top: 1px solid var(--ed-trait); }
.csb-ed-reco:last-child { border-bottom: 1px solid var(--ed-trait); }
.csb-ed-reco::before { content: counter(reco); position: absolute; left: 0; top: 30px; font: 700 40px/1 var(--ed-titre); color: var(--ed-vegetal); font-variant-numeric: lining-nums; }
body .csb-ed .csb-ed-reco h3:not(#csb) { font-size: clamp(19px, 17px + .5vw, 22px); line-height: 1.35; font-weight: 700; }
body .csb-ed .csb-ed-reco p:not(#csb) { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--ed-texte); }

/* Publication Facebook intégrée (affiche ou photos) */
.csb-ed-embed { margin: 16px 0 0; }
.csb-ed-embed-cadre { position: relative; overflow: hidden; border-radius: 10px; background: #111; }
.csb-ed-embed-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body .csb-ed .csb-ed-embed-lien:not(#csb) { margin-top: 10px; }
body .csb-ed .csb-ed-embed .csb-ed-credit:not(#csb) { margin: 0 0 8px; }

/* Sources et contenus associés */
.csb-ed-sources { margin-top: 4px; }
.csb-ed-sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--ed-trait); }
.csb-ed-sources li:last-child { border-bottom: 1px solid var(--ed-trait); }
.csb-ed-sources li span { font-size: 14.5px; color: var(--ed-doux); }

/* Colonne latérale compacte : statut, dates, sommaire, actions */
.csb-ed-fiche-compacte { padding: 24px; }
body .csb-ed .csb-ed-fiche-dates:not(#csb) { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--ed-encre); }
.csb-ed-fiche-dates i { font-size: 14px; color: var(--ed-vegetal); }
body .csb-ed .csb-ed-fiche-note:not(#csb) { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ed-doux); }
.csb-ed-toc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ed-trait); }
body .csb-ed .csb-ed-toc-titre:not(#csb) { font-size: 13px; font-weight: 600; color: var(--ed-doux); }
.csb-ed-toc ol { margin: 8px 0 0; padding: 0; list-style: none; }
.csb-ed-toc a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.4; color: var(--ed-foret); text-decoration: none; }
@media (hover: hover) { .csb-ed-toc a:hover { text-decoration: underline; text-underline-offset: 4px; } }

@media (max-width: 575px) {
	.csb-ed-section { margin-top: 48px; }
	.csb-ed-jour { padding-left: 20px; }
	.csb-ed-reco { padding-left: 44px; }
	.csb-ed-reco::before { font-size: 30px; top: 32px; }
	.csb-ed-essentiel dl { grid-template-columns: 1fr; }
	.csb-ed-essentiel dl > div { padding: 14px 0; border-top: 1px solid var(--ed-trait); }
	.csb-ed-essentiel dl > div:first-child { border-top: 0; }
}
/* Fiche modulaire : texte aligné à gauche (la justification de csb.css ouvrait de grands blancs entre les mots, surtout sur mobile) */
body .csb-ed .csb-ed-article .csb-ed-section :is(p, li):not(#csb):not(#csb), body .csb-ed .csb-ed-essentiel dd:not(#csb):not(#csb) { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

/* Repères : définitions (fiche modulaire) */
.csb-ed-defs { margin: 12px 0 0; padding: 0; }
.csb-ed-defs > div { padding: 14px 0; border-top: 1px solid var(--ed-trait); }
.csb-ed-defs > div:last-child { border-bottom: 1px solid var(--ed-trait); }
.csb-ed-defs dt { font-weight: 700; font-size: 16px; color: var(--ed-foret); }
body .csb-ed .csb-ed-defs dd:not(#csb):not(#csb) { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--ed-texte); text-align: left; }

/* Dossiers programmes (programme.php, LOT 3, 15 nov. 2026) */
.csb-ed-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
body .csb-ed .csb-ed-liste > li:not(#csb) { position: relative; padding-left: 22px; text-align: left; line-height: 1.55; }
body .csb-ed .csb-ed-liste > li:not(#csb)::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--ed-foret, #004540); }
.csb-prog-evenements > li { display: grid; gap: 2px; }
.csb-prog-date { font-size: 14px; color: var(--ed-doux); }

/* =====================================================================
   Finition typographique et barre latérale (15 nov. 2026) : titres #171717, texte #262626, métadonnées #454545,
   liens noirs soulignés de jaune ; vert réservé aux statuts, icônes et interactions. Architecture inchangée.
   Sauvegarde : csb-docs/sauvegarde-2026-11-15-evenement/
   ===================================================================== */
body main.csb-ed { --ed-mil: #FFE06A; --ed-noir: #171717; --ed-corps: #262626; --ed-meta: #454545; }
/* Textes de lecture */
body main.csb-ed :is(.csb-ed-corps, .csb-ed-autres) :is(p, li, span, dd, small):not(.csb-ed-statut):not(.visually-hidden):not(.csb-ed-btn *):not(#csb) { color: var(--ed-corps); }
body main.csb-ed :is(.csb-ed-corps, .csb-ed-autres) :is(h2, h3, strong, dt.csb-x, .csb-ed-chapo):not(#csb) { color: var(--ed-noir); }
body main.csb-ed .csb-ed-corps :is(dt, .csb-ed-entree-date, .csb-ed-entree-date time, .csb-ed-note, .csb-ed-fiche-note, .csb-ed-toc-titre, .csb-ed-reserve, .csb-ed-autre-meta time, .csb-ed-partage p):not(#csb),
body main.csb-ed .csb-ed-autres :is(.csb-ed-autre-meta time):not(#csb) { color: var(--ed-meta); }
body main.csb-ed .csb-ed-corps dt:not(#csb) { font-weight: 700; color: var(--ed-noir); }
body main.csb-ed .csb-ed-corps .csb-ed-entree-date:not(#csb) { font-weight: 600; }
body main.csb-ed .csb-ed-corps time:not(#csb) { color: inherit; }
/* Liens : noirs, soulignement jaune qui se dessine ; vert au survol */
body main.csb-ed a.csb-ed-lien:not(#csb), body main.csb-ed .csb-ed-corps p a:not(.csb-ed-btn):not(#csb), body main.csb-ed .csb-ed-autres h3 a:not(#csb) { color: var(--ed-noir); }
body main.csb-ed a.csb-ed-lien:not(#csb) { background-image: linear-gradient(var(--ed-mil), var(--ed-mil)); background-size: 100% 2px; padding-bottom: 3px; }
body main.csb-ed a.csb-ed-lien:not(#csb) i { color: var(--ed-foret); transition: transform .2s var(--ed-courbe); }
@media (hover: hover) {
  body main.csb-ed a.csb-ed-lien:hover:not(#csb) { background-size: 100% 2px; background-position: 0 100%; color: var(--ed-foret); }
  body main.csb-ed a.csb-ed-lien:hover:not(#csb) i { transform: translateX(3px); }
}
/* Barre latérale « La session en bref » */
body main.csb-ed .csb-ed-fiche { padding: 24px; border-radius: 10px; box-shadow: none; }
body main.csb-ed .csb-ed-fiche-titre:not(#csb) { color: var(--ed-noir); }
body main.csb-ed .csb-ed-fiche-compacte .csb-ed-rebours:not(#csb) { display: flex; align-items: center; gap: 8px; color: var(--ed-noir); font-weight: 600; }
body main.csb-ed .csb-ed-rebours:not([hidden]):not(#csb)::before { content: "\f017"; font-family: var(--icon-font, "Font Awesome 6 Pro", "Font Awesome 6 Free"); font-weight: 300; font-size: 14px; color: var(--ed-vegetal); }
body main.csb-ed .csb-ed-fiche-dates:not(#csb) { color: var(--ed-noir); }
body main.csb-ed .csb-ed-fiche-dates i { color: var(--ed-foret); }
body main.csb-ed .csb-ed-toc { margin-top: 18px; padding-top: 16px; }
body main.csb-ed .csb-ed-toc-titre:not(#csb) { font-size: 13px; font-weight: 700; color: var(--ed-noir); }
body main.csb-ed .csb-ed-toc ol { margin-top: 6px; border-top: 0; }
body main.csb-ed .csb-ed-toc li { border-bottom: 1px solid var(--ed-trait); }
body main.csb-ed .csb-ed-toc li:last-child { border-bottom: 0; }
body main.csb-ed .csb-ed-toc a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 14.5px; line-height: 1.4; color: var(--ed-noir); transition: color .2s ease; }
body main.csb-ed .csb-ed-toc a::before { content: "\f061"; flex: none; width: 14px; margin-top: 1px; font-family: var(--icon-font, "Font Awesome 6 Pro", "Font Awesome 6 Free"); font-weight: 300; font-size: 12px; line-height: 1.7; color: var(--ed-foret); transition: transform .2s var(--ed-courbe); }
@media (hover: hover) { body main.csb-ed .csb-ed-toc a:hover { color: var(--ed-foret); text-decoration: none; } body main.csb-ed .csb-ed-toc a:hover::before { transform: translateX(3px); } }
/* Actions : bouton principal jaune compact, lien secondaire fléché */
body main.csb-ed a.csb-ed-btn:not(#csb) { min-height: 44px; padding: 0 20px; background: var(--ed-mil); color: var(--ed-noir); font-size: 14.5px; }
body main.csb-ed a.csb-ed-btn:not(#csb) i { color: var(--ed-noir); transition: transform .2s var(--ed-courbe); }
@media (hover: hover) { body main.csb-ed a.csb-ed-btn:hover:not(#csb) { background: #f4c93f; transform: none; } body main.csb-ed a.csb-ed-btn:hover:not(#csb) i { transform: translateX(3px); } }
body main.csb-ed .csb-ed-actions { display: grid; gap: 14px; justify-items: start; }
/* Partage : icônes sobres */
body main.csb-ed .csb-ed-partage { margin-top: 18px; padding-top: 16px; }
body main.csb-ed .csb-ed-partage a, body main.csb-ed .csb-ed-copier { background: transparent; border: 1px solid var(--ed-trait); color: var(--ed-noir); transition: border-color .2s ease, color .2s ease; }
@media (hover: hover) { body main.csb-ed .csb-ed-partage a:hover, body main.csb-ed .csb-ed-copier:hover { background: transparent; border-color: var(--ed-foret); color: var(--ed-foret); } }
@media (prefers-reduced-motion: reduce) { body main.csb-ed :is(.csb-ed-toc a::before, a.csb-ed-lien i, a.csb-ed-btn i) { transition: none; } }
/* Bande des repères sous le bandeau (Public, Cadre, Thèmes, Filière) et définitions des repères */
body main.csb-ed > :not(.csb-ed-corps):not(.csb-ed-autres):not([class*="csb-ph"]):not(.csb-hero) dt:not(#csb) { color: var(--ed-meta); font-weight: 600; }
body main.csb-ed > :not(.csb-ed-corps):not(.csb-ed-autres):not([class*="csb-ph"]):not(.csb-hero) dd:not(#csb) { color: var(--ed-noir); }
body main.csb-ed dd.csb-ed-defs:not(#csb) { color: var(--ed-corps); }
body main.csb-ed .csb-ed-corps .csb-ed-note:not(#csb), body main.csb-ed .csb-ed-corps .csb-ed-fiche-note:not(#csb) { color: var(--ed-meta); }
body main.csb-ed .csb-ed-corps dd:not(#csb):not(.csb-ed-defs) { color: var(--ed-corps); }
@media (max-width: 575px) { body main.csb-ed .csb-ed-partage p:not(#csb) { flex-basis: 100%; margin-bottom: 2px; } }
/* Bouton principal de la barre latérale : texte plus petit, une seule ligne */
body main.csb-ed .csb-ed-fiche a.csb-ed-btn:not(#csb) { min-height: 40px; padding: 0 16px; gap: 8px; font-size: 13px; line-height: 1.2; white-space: nowrap; }
/* Paragraphes du compte rendu justifiés (césure automatique en français) ; à gauche sur petit mobile ; bouton de la fiche autorisé à passer à la ligne sous 360 px */
@media (min-width: 576px) {
  body main.csb-ed .csb-ed-article p:not(#csb) { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
}
@media (max-width: 359px) { body main.csb-ed .csb-ed-fiche a.csb-ed-btn:not(#csb) { white-space: normal; font-size: 12.5px; } }
/* « Autres sessions » : photos un peu moins hautes (16/9 au lieu de 3/2) */
body main.csb-ed .csb-ed-autre img:not(#csb) { aspect-ratio: 16 / 9; }
/* Photos « Autres sessions » : la hauteur suit le ratio 16/9 (l'attribut height ne l'impose plus) */
body main.csb-ed .csb-ed-autre img:not(#csb) { height: auto; }
/* Repères sous le bandeau : icône fine devant chaque intitulé */
body main.csb-ed .csb-ed-essentiel dt:not(#csb) { display: flex; align-items: center; gap: 8px; }
body main.csb-ed .csb-ed-essentiel dt i { flex: none; width: 16px; font-size: 14px; text-align: center; color: var(--ed-foret); }
