/* =====================================================================
   Actualités v2 (8 nov. 2026) : refonte « journal ». Chargée par actualites.php et actualite.php. Préfixe .csb-jn-
   Parti pris : un journal de terrain, pas une grille de cartes. Une seule « une » en grand, puis un index en lignes
   (vignette carrée, rubrique, titre, résumé) que l'on peut filtrer par rubrique. La fiche d'article se lit comme un
   article de presse : titre unique, couverture large, colonne de lecture, photos en grille régulière dans la visionneuse.
   L'ancienne feuille csb-actualites.css n'est plus chargée par ces pages.
   v3 (8 nov. 2026) : en-tête aligné sur la page Événements ; fiche d'article selon le modèle Econest « blog-details »
   (colonne d'article + barre latérale de widgets), préfixe .csb-bd-.
   ===================================================================== */
.csb-jn-page {
	--jn-foret: #004540; --jn-encre: #16231A; --jn-noir: #111; --jn-vegetal: #23734A; --jn-mil: #FFE06A;
	--jn-craie: #F8F7F0; --jn-trait: rgba(0, 69, 64, .12); --jn-doux: rgba(22, 35, 26, .72);
	--jn-section: clamp(56px, 32px + 4vw, 104px);
}
.csb-jn p, .csb-jn li, .csb-jn dd { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
body.csb-jn-page .csb-jn p:not(#csb) { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--jn-encre); }
.csb-jn a:focus-visible, .csb-jn button:focus-visible { outline: 2px solid var(--jn-foret); outline-offset: 3px; border-radius: 4px; }

/* --- Éléments communs --- */
.csb-jn-fil { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 clamp(28px, 3.5vw, 48px); padding: 0; list-style: none; font-size: 14px; color: var(--jn-doux); }
.csb-jn-fil li + li::before { content: "/"; margin: 0 10px; color: rgba(0, 69, 64, .35); }
.csb-jn-fil a { color: var(--jn-foret); text-decoration: underline; text-decoration-color: rgba(0, 69, 64, .3); text-underline-offset: 4px; }
body.csb-jn-page p.csb-jn-sur:not(#csb) { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--jn-vegetal); }
.csb-jn-sur::before { content: ""; flex: none; width: 28px; height: 4px; border-radius: 2px; background: var(--jn-mil); }
body.csb-jn-page h2.csb-jn-h2:not(#csb) { margin: 0 0 24px; font-family: var(--csb-font-texte); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jn-vegetal); }
.csb-jn-h2 span { margin-left: 6px; color: var(--jn-doux); }
body.csb-jn-page p.csb-jn-meta:not(#csb) { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--jn-foret); }
.csb-jn-meta > * + * { padding-left: 12px; margin-left: 12px; border-left: 1px solid var(--jn-trait); }
.csb-jn-meta > *:not(:first-child) { color: var(--jn-doux); font-weight: 500; }
.csb-jn-meta a { text-decoration: underline; text-decoration-color: var(--jn-mil); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.csb-jn-lien { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--jn-foret); text-decoration: underline; text-decoration-color: var(--jn-mil); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.csb-jn-lien:hover { color: var(--jn-foret); text-decoration-color: var(--jn-foret); }

/* --- En-tête (identique à la page Événements, .csb-ag-tete) et filtres --- */
.csb-jn-tete { padding: clamp(28px, 3vw, 44px) 0 clamp(40px, 4vw, 64px); border-bottom: 1px solid var(--jn-trait); background: #fff; }
.csb-jn-tete .csb-jn-fil { margin-bottom: clamp(32px, 4vw, 56px); }
.csb-jn-tete-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
body.csb-jn-page .csb-jn-tete h1:not(#csb) { margin: 0; font-family: var(--csb-font-titre); font-size: clamp(34px, 24px + 2vw, 54px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--jn-noir); text-wrap: balance; }
body.csb-jn-page p.csb-jn-intro:not(#csb) { margin: 0; max-width: 46ch; font-size: 17px; color: var(--jn-doux); }
.csb-jn-outils { padding-top: clamp(20px, 2.5vw, 32px); }
.csb-jn-filtres { display: flex; gap: 0 24px; border-bottom: 1px solid var(--jn-trait); overflow-x: auto; scrollbar-width: thin; }
.csb-jn-filtres[hidden], .csb-jn-recherche-etat[hidden] { display: none; }
.csb-jn-filtres button { flex: none; min-height: 48px; padding: 0; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; font: 600 15px/1 var(--csb-font-texte); color: var(--jn-doux); cursor: pointer; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.csb-jn-filtres button span { margin-left: 4px; font-size: 12px; color: rgba(22, 35, 26, .45); }
.csb-jn-filtres button:hover { color: var(--jn-noir); }
.csb-jn-filtres button[aria-pressed="true"] { color: var(--jn-noir); border-bottom-color: var(--jn-foret); }
body.csb-jn-page p.csb-jn-recherche-etat:not(#csb) { margin: 16px 0 0; font-size: 15px; }
.csb-jn-recherche-etat a, .csb-jn-vide a { margin-left: 6px; font-weight: 700; color: var(--jn-foret); text-decoration: underline; text-decoration-color: var(--jn-mil); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* --- Liste : grille de cartes (modèle « blog-grid » du thème : 3 colonnes, photo, date, rubrique, titre, lien) --- */
.csb-jn-index { padding: var(--jn-section) 0; }
.csb-jn-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.csb-jn-item[hidden] { display: none; }
.csb-jn-carte { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--jn-trait); border-radius: 10px; background: #fff; transition: box-shadow .3s ease, border-color .3s ease; }
.csb-jn-carte:hover { border-color: rgba(0, 69, 64, .3); box-shadow: 0 14px 34px -18px rgba(0, 69, 64, .35); }
.csb-jn-carte-photo { position: relative; display: block; overflow: hidden; background: var(--jn-craie); }
.csb-jn-carte-photo img:not(#csb) { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.csb-jn-carte:hover .csb-jn-carte-photo img { transform: scale(1.04); }
.csb-jn-carte-date { position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 8px 10px; border-radius: 8px; background: var(--jn-mil); color: var(--jn-foret); line-height: 1.1; }
.csb-jn-carte-date strong { font-family: var(--csb-font-titre); font-size: 24px; font-weight: 600; }
.csb-jn-carte-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.csb-jn-carte-corps { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
body.csb-jn-page .csb-jn-carte h3:not(#csb) { margin: 0 0 10px; font-family: var(--csb-font-titre); font-size: 22px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.csb-jn-carte h3 a { color: var(--jn-noir); text-decoration: none; background-image: linear-gradient(var(--jn-mil), var(--jn-mil)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; }
.csb-jn-carte:hover h3 a, .csb-jn-carte h3 a:focus-visible { background-size: 100% 3px; }
.csb-jn-carte h3 a::after { content: ""; position: absolute; inset: 0; }
.csb-jn-carte:has(h3 a:focus-visible) { outline: 2px solid var(--jn-foret); outline-offset: 3px; }
.csb-jn-carte h3 a:focus-visible { outline: none; }
body.csb-jn-page .csb-jn-carte p.csb-jn-resume:not(#csb) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--jn-doux); }
.csb-jn-lire { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: 15px; font-weight: 700; color: var(--jn-foret); }
.csb-jn-lire i { transition: transform .25s ease; }
.csb-jn-carte:hover .csb-jn-lire i { transform: translateX(4px); }
body.csb-jn-page p.csb-jn-vide:not(#csb) { margin: 24px 0 0; padding: 18px 22px; border-left: 3px solid var(--jn-mil); background: var(--jn-craie); }

/* --- Fiche d'article : mise en page du modèle « blog-details » (préfixe .csb-bd-) --- */
.csb-bd { padding: clamp(40px, 5vw, 80px) 0 var(--jn-section); }
.csb-bd-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 4vw, 60px); align-items: start; }
.csb-bd-couverture { margin: 0 0 24px; }
.csb-bd-couverture a { display: block; overflow: hidden; border-radius: 10px; }
.csb-bd-couverture img:not(#csb) { display: block; width: 100%; height: auto; aspect-ratio: 922 / 540; object-fit: cover; transition: transform .6s ease; }
.csb-bd-couverture a:hover img { transform: scale(1.02); }
.csb-bd-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 0 0 20px; list-style: none; border-bottom: 2px solid var(--jn-trait); }
.csb-bd-meta li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--jn-doux); }
.csb-bd-meta i { font-size: 17px; color: var(--jn-vegetal); }
.csb-bd-meta a { color: var(--jn-doux); text-decoration: none; }
.csb-bd-meta a:hover { color: var(--jn-foret); text-decoration: underline; text-underline-offset: 4px; }
body.csb-jn-page .csb-bd-texte h2:not(#csb) { margin: clamp(32px, 3.5vw, 44px) 0 14px; font-family: var(--csb-font-titre); font-size: clamp(22px, 19px + .6vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--jn-noir); text-wrap: balance; }
body.csb-jn-page .csb-bd-texte p:not(#csb) { max-width: none; margin: 0 0 18px; font-size: 17px; line-height: 1.75; color: var(--jn-noir); }
body.csb-jn-page .csb-bd-texte p.csb-bd-chapo:not(#csb) { font-family: var(--csb-font-titre); font-size: clamp(20px, 18px + .4vw, 23px); line-height: 1.55; color: var(--jn-noir); }
.csb-bd-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; padding: 0; list-style: none; }
.csb-bd-minis a { display: block; overflow: hidden; border-radius: 8px; background: var(--jn-craie); }
.csb-bd-minis img:not(#csb) { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.csb-bd-minis a:hover img { transform: scale(1.05); }
.csb-bd-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(36px, 4vw, 56px); padding: 28px 0; border-top: 2px solid var(--jn-trait); border-bottom: 2px solid var(--jn-trait); }
.csb-bd-tags, .csb-bd-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.csb-bd-partage[hidden] { display: none; }
body.csb-jn-page .csb-bd-pied p:not(#csb) { margin: 0; font-size: 17px; font-weight: 600; color: var(--jn-foret); }
.csb-bd-tags ul, .csb-bd-partage ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.csb-bd-tags li { padding: 7px 12px; border: 1px solid #fff; border-radius: 10px; background: var(--jn-craie); box-shadow: 0 6px 30px rgba(0, 69, 64, .09); font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--jn-encre); }
.csb-bd-partage a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--jn-craie); color: var(--jn-foret); transition: background .2s ease, color .2s ease; }
.csb-bd-partage a:hover { background: var(--jn-foret); color: var(--jn-mil); }
.csb-bd-suite { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.csb-bd-suite a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.csb-bd-suite-suiv { text-align: right; align-items: flex-end; }
.csb-bd-suite span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jn-vegetal); }
.csb-bd-suite strong { font-family: var(--csb-font-titre); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--jn-noir); text-wrap: balance; }
.csb-bd-suite a:hover strong { text-decoration: underline; text-decoration-color: var(--jn-mil); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Barre latérale (widgets du modèle : fond craie, titre vert avec filet et pastille) */
.csb-bd-aside-int { position: sticky; top: 110px; display: grid; gap: 30px; }
.csb-bd-widget { padding: 30px 40px; border-radius: 10px; background: var(--jn-craie); }
body.csb-jn-page h2.csb-bd-wtitre:not(#csb) { position: relative; margin: 0 0 30px; padding-bottom: 14px; font-family: var(--csb-font-titre); font-size: 24px; font-weight: 600; line-height: 1.4; color: var(--jn-foret); border-bottom: 2px solid var(--jn-trait); }
.csb-bd-wtitre::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 36px; height: 2px; background: var(--jn-vegetal); }
.csb-bd-recentes { margin: 0; padding: 0; list-style: none; }
.csb-bd-recentes li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 2px solid var(--jn-trait); }
.csb-bd-recentes li:last-child { padding: 0; margin: 0; border: 0; }
.csb-bd-recentes img:not(#csb) { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
body.csb-jn-page .csb-bd-recentes p:not(#csb) { margin: 0 0 4px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #6f7174; }
.csb-bd-recentes a { display: block; font-family: var(--csb-font-titre); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--jn-noir); text-decoration: none; }
.csb-bd-recentes a::after { content: ""; position: absolute; inset: 0; }
.csb-bd-recentes li:hover a { color: var(--jn-foret); text-decoration: underline; text-decoration-color: var(--jn-mil); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.csb-bd-rubriques { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.csb-bd-rubriques a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px 10px 20px; border-radius: 4px; background: #fff; font-size: 15px; font-weight: 500; color: #5f625c; text-decoration: none; transition: background .25s ease, color .25s ease; }
.csb-bd-rubriques a span { color: rgba(22, 35, 26, .45); }
.csb-bd-rubriques a i { margin-left: auto; color: var(--jn-foret); }
.csb-bd-rubriques a:hover, .csb-bd-rubriques a[aria-current] { background: var(--jn-foret); color: #fff; }
.csb-bd-rubriques a:hover span, .csb-bd-rubriques a[aria-current] span { color: rgba(255, 255, 255, .65); }
.csb-bd-rubriques a:hover i, .csb-bd-rubriques a[aria-current] i { color: var(--jn-mil); }

/* --- Responsive --- */
@media (max-width: 1199px) { .csb-jn-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .csb-bd-grille { grid-template-columns: minmax(0, 1fr) 320px; } .csb-bd-widget { padding: 26px 28px; } }
@media (max-width: 991px) {
	.csb-jn-tete-grille, .csb-bd-grille { grid-template-columns: minmax(0, 1fr); }
	.csb-bd-aside-int { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) { .csb-jn-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
	.csb-bd-aside-int { grid-template-columns: minmax(0, 1fr); }
	.csb-bd-widget { padding: 22px 20px; }
	.csb-bd-suite { grid-template-columns: minmax(0, 1fr); }
	.csb-bd-suite-suiv { text-align: left; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.csb-jn *, .csb-jn *::before, .csb-jn *::after { transition: none !important; }
	.csb-jn article:hover img, .csb-bd-couverture a:hover img { transform: none !important; }
}
