/* Barre latérale des actualités : « À lire aussi » et « Événements » (15 nov. 2026).
   Composant partagé : partials/csb-sidebar-publications.php. Chargé après csb-actualites-v2.css.
   Palette CSB : vert #004540, vert végétal #23734A, jaune #FFE06A. Fond blanc, aucune ombre ni bordure épaisse. */
.csb-sidebar-liste { --csb-sb-vignette: 72px; display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }

/* Titres de ces deux blocs : plus affirmés, trait jaune sous le début du titre */
body.csb-jn-page .csb-bd-wtitre.csb-sidebar-titre:not(#csb) { margin: 0 0 20px; font-family: var(--csb-font-titre); font-size: 18px; font-weight: 700; line-height: 1.25; color: #111; }
.csb-sidebar-titre::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 8px; border-radius: 2px; background: #FFE06A; }

/* Ligne : vignette carrée à gauche, texte à droite, alignés en haut ; toute la ligne est cliquable (lien étiré) */
.csb-related-post-item, .csb-sidebar-event-item { position: relative; display: grid; grid-template-columns: var(--csb-sb-vignette) minmax(0, 1fr); gap: 16px; align-items: start; }
.csb-related-post-media { display: block; width: var(--csb-sb-vignette); height: var(--csb-sb-vignette); overflow: hidden; border-radius: 8px; background: #F8F7F0; }
.csb-related-post-media img:not(#csb) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.csb-related-post-item:hover .csb-related-post-media img:not(#csb), .csb-sidebar-event-item:hover .csb-related-post-media img:not(#csb) { transform: scale(1.06); }
.csb-related-post-body { min-width: 0; }
body.csb-jn-page .csb-related-post-body > p:not(#csb) { margin: 0; text-align: left; line-height: 1.3; }

/* Titre : serif éditorial, 15 px, trois lignes au plus */
.csb-related-post-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-family: var(--csb-font-titre); font-size: 15px; font-weight: 700; line-height: 1.45; color: #111; text-decoration: none; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: pretty; transition: color .2s ease; }
.csb-related-post-title::after { content: ""; position: absolute; inset: 0; }
.csb-related-post-item:hover .csb-related-post-title, .csb-sidebar-event-item:hover .csb-related-post-title { color: #004540; }
.csb-related-post-title:focus-visible { outline: 2px solid #004540; outline-offset: 4px; border-radius: 4px; }

/* Métadonnées d'une actualité : étiquette de rubrique + date */
.csb-related-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.csb-post-category-label { --lab-bg: #E6F2EA; --lab-fg: #004540; display: inline-block; padding: 3px 7px; border-radius: 4px; background: var(--lab-bg); font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--lab-fg); text-decoration: none; }
/* Trois familles de teintes seulement : vert (par défaut), bleu-vert, sable */
.csb-post-category-label[data-rubrique="forum"], .csb-post-category-label[data-rubrique="evenement"], .csb-post-category-label[data-rubrique="visite"] { --lab-bg: #E2EEF0; --lab-fg: #0B3F4A; }
.csb-post-category-label[data-rubrique="produits"], .csb-post-category-label[data-rubrique="pepiniere"] { --lab-bg: #F6EFD6; --lab-fg: #5C4500; }
/* Étiquette en lien (fiche d'article, méta sous la photo) : garde ses couleurs, trait jaune au survol */
a.csb-post-category-label, .csb-bd-fiche-liste a.csb-post-category-label { color: var(--lab-fg); text-decoration: none; transition: box-shadow .2s ease; }
a.csb-post-category-label:hover, .csb-bd-fiche-liste a.csb-post-category-label:hover { color: var(--lab-fg); box-shadow: inset 0 -2px 0 #FFE06A; }
a.csb-post-category-label:focus-visible { outline: 2px solid #004540; outline-offset: 2px; }
.csb-post-date, body.csb-jn-page .csb-related-post-body p.csb-event-date:not(#csb) { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; line-height: 1.3; color: #555; font-variant-numeric: tabular-nums; }
.csb-post-date i, .csb-event-date i { flex: none; font-size: 11px; color: #555; }
.csb-post-date time, .csb-event-date time { white-space: normal; }

/* Événements : statut (puce + libellé), puis période, puis titre */
body.csb-jn-page .csb-related-post-body p.csb-event-status:not(#csb) { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1.2; }
body.csb-jn-page .csb-related-post-body p.csb-event-status:not(#csb)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.csb-jn-page .csb-related-post-body p.csb-event-status[data-statut="en-cours"]:not(#csb) { background: #E6F2EA; color: #004540; }
body.csb-jn-page .csb-related-post-body p.csb-event-status[data-statut="en-cours"]:not(#csb)::before { background: #23734A; }
body.csb-jn-page .csb-related-post-body p.csb-event-status[data-statut="a-venir"]:not(#csb) { background: #FFF4CC; color: #6B4E00; }
body.csb-jn-page .csb-related-post-body p.csb-event-status[data-statut="a-venir"]:not(#csb)::before { background: #C98A00; }
body.csb-jn-page .csb-related-post-body p.csb-event-status[data-statut="passe"]:not(#csb) { background: #EEEEEE; color: #444; }
body.csb-jn-page .csb-related-post-body p.csb-event-status[data-statut="passe"]:not(#csb)::before { background: #8A8A8A; }
body.csb-jn-page .csb-sidebar-event-item p.csb-event-date:not(#csb) { margin-top: 6px; }
.csb-sidebar-event-item .csb-related-post-title { margin-top: 6px; }

/* Tablette et mobile : même disposition (vignette à gauche), vignette un peu plus petite sur mobile */
@media (max-width: 575px) {
	.csb-sidebar-liste { --csb-sb-vignette: 64px; }
	.csb-related-post-item, .csb-sidebar-event-item { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.csb-related-post-media img:not(#csb), .csb-related-post-title { transition: none; }
	.csb-related-post-item:hover .csb-related-post-media img:not(#csb), .csb-sidebar-event-item:hover .csb-related-post-media img:not(#csb) { transform: none; }
}

/* Autres métadonnées (15 nov. 2026) : même composition que la barre latérale — étiquette de rubrique puis dates à icône */
/* Fiche d'article : méta sous la photo de couverture */
.csb-bd-meta { align-items: center; gap: 8px 16px; }
.csb-bd-meta li + li::before { content: none; }
.csb-bd-meta li { color: inherit; }
.csb-bd-meta .csb-post-date { font-size: 13px; }
/* Fiche de l'article (barre latérale) : valeurs alignées sur la colonne, dates en 13 px */
.csb-bd-fiche-liste dd { display: flex; align-items: center; min-height: 24px; }
.csb-bd-fiche-liste .csb-post-date { font-size: 13px; color: #111; }
.csb-bd-fiche-liste .csb-post-date i { color: #555; }
/* Liste des actualités : méta des cartes */
body.csb-jn-page p.csb-jn-meta.csb-related-post-meta:not(#csb) { gap: 6px 12px; margin: 0 0 12px; font-size: 12px; font-weight: 400; color: #555; }
.csb-jn-meta.csb-related-post-meta > * + * { padding-left: 0; margin-left: 0; border-left: 0; }
.csb-jn-meta.csb-related-post-meta > *:not(:first-child) { font-weight: 400; color: #555; }
/* Tablette et mobile : la méta sous la photo remplace la fiche ; ses icônes restent visibles (csb-actualites-v2.css les masquait) */
.csb-bd-meta .csb-post-date i { display: inline-block; }
