/* Actualités : filtre par année + cartes dépliables (reprise du bloc HTML d'origine). */
.news-layout {
	--news-blue: #01678f;
	--news-blue-2: #0280a5;
	--news-light: #f6fbfd;
	--news-dark: #1a2530;
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 40px;
	max-width: 1200px;
	padding: 40px 0;
}
@media (max-width: 1260px) { .news-layout { width: 90%; } }
@media (max-width: 767px) { .news-layout { width: calc((100% - 20px) * .9); } }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }

.news-filter {
	background: var(--news-light);
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 4px 16px rgba(1, 103, 143, .08);
}
.news-filter__title {
	font-size: 20px;
	line-height: 24px;
	color: var(--news-blue);
	margin-bottom: 16px;
}
.news-filter ul { list-style: none; margin: 0; padding: 0; }
.news-filter li { margin-bottom: 12px; }
.news-filter label {
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 700;
	line-height: 16px;
	color: var(--news-dark);
	cursor: pointer;
}
.news-filter input[type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	border: 1px solid var(--c-border);
	border-radius: 0;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.news-filter input[type=checkbox]:checked { background: var(--news-blue); border-color: var(--news-blue); }
.news-filter input[type=checkbox]:checked::after {
	content: '';
	position: absolute;
	left: 5px; top: 1px;
	width: 6px; height: 12px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.news-year-group { margin-bottom: 40px; }
.news-year-group h2 {
	font-size: 24px;
	line-height: 24px;
	color: var(--news-blue);
	border-bottom: 2px solid var(--news-blue);
	padding-bottom: 8px;
	margin-bottom: 20px;
}

.news-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	grid-auto-flow: dense;
	gap: 30px;
}
@media (min-width: 900px) {
	.news-list:not(.cols-2) { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
}

.news-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	background: var(--news-light);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(1, 103, 143, .08);
	transition: box-shadow .4s ease-in-out;
}
.news-card.expanded { box-shadow: 0 8px 24px rgba(1, 103, 143, .2); }
@media (min-width: 900px) { .news-card.expanded { grid-column: span 2; } }

.news-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.news-content {
	display: flex;
	flex-direction: column;
	padding: 20px;
}
.news-date {
	font-size: 14px;
	line-height: 21px;
	color: var(--news-blue); /* contraste AA sur le fond clair de la carte */
	margin-bottom: 8px;
}
.news-title { margin-bottom: 12px; }
.news-excerpt {
	font-size: 16px;
	line-height: 24px;
	color: var(--news-dark);
}
.news-extra {
	max-height: 0;
	overflow: hidden;
	visibility: hidden; /* fermé : hors du parcours clavier et des lecteurs d'écran */
	margin-top: 12px;
	transition: max-height .4s ease-in-out, visibility 0s .4s;
}
.news-card.expanded .news-extra {
	max-height: 4000px;
	visibility: visible;
	transition: max-height .4s ease-in-out, visibility 0s;
}
.news-empty { grid-column: 1 / -1; font-size: 18px; }
.news-extra a { color: var(--news-blue); text-decoration: underline; }
.news-link {
	align-self: flex-start;
	margin-top: 16px;
	padding: 0;
	border: 0;
	background: none;
	font: 600 16px/24px var(--font);
	color: var(--c-primary);
	cursor: pointer;
}
.news-link:hover { color: var(--news-blue-2); }
