/* Actualités — bandeau défilant (accueil) et page filtrable. Cartes de la page : classes .ccc-card (catalogue.css). */

/* ---- Méta « date | catégorie » ---- */
.actu-meta { margin: 0 0 10px; font-size: 16px; line-height: 1.3; color: #333; }
.actu-meta__sep { margin: 0 8px; color: #999; }

.actu-slide__plus {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	font-size: 16px;
	color: #333;
}
.actu-slide__plus .actu-fleche { color: #e5554f; width: 38px; height: auto; transition: transform 300ms; }
.actu-slide__lien:hover .actu-fleche,
.ccc-card__lien:hover .actu-fleche { transform: translateX(6px); }

/* ---- Bandeau défilant ---- */
.actu-slider { position: relative; }
.actu-slider__piste {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 2px;
}
.actu-slider__piste::-webkit-scrollbar { display: none; }
.actu-slider__piste:focus-visible { outline: 2px solid #184e7f; outline-offset: 2px; }

.actu-slide {
	/* --actu-visibles (attribut « visibles » du shortcode) cartes visibles à la fois ; 20 px d'écart entre les cartes */
	flex: 0 0 calc( ( 100% - 20px * ( var( --actu-visibles, 5 ) - 1 ) ) / var( --actu-visibles, 5 ) );
	scroll-snap-align: start;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 400ms ease;
}
.actu-slide:hover { box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.12 ); }
.actu-slide__lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.actu-slide__lien:hover,
.actu-slide__lien:focus { color: inherit; text-decoration: none; }

.actu-slide__image,
.ccc-card .actu-slide__image { background: #f0f0f0; }
.actu-slide__image img { display: block; width: 100%; height: auto; aspect-ratio: 24 / 17.5; object-fit: cover; }
.actu-slide__image--vide { aspect-ratio: 24 / 17.5; }

.actu-slide__corps { display: flex; flex: 1; flex-direction: column; padding: 20px clamp( 16px, 1.6vw, 30px ) 24px; }
.actu-slide__titre {
	margin: 0 0 18px;
	font-size: clamp( 17px, 1.35vw, 22px ) !important;
	font-weight: 700;
	line-height: 1.2em;
	color: #000;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.actu-slide__plus { margin-top: auto; }

.actu-slider__nav { display: flex; justify-content: flex-end; gap: 50px; margin-top: 30px; padding-right: 8%; }
.actu-slider .actu-slider__btn {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #5c5c5c;
	line-height: 0;
	cursor: pointer;
	transition: color 200ms, transform 200ms;
}
.actu-slider__btn svg { width: 100px; height: auto; }
.actu-slider .actu-slider__btn:hover,
.actu-slider .actu-slider__btn:focus { background: transparent; color: #e5554f; }
.actu-slider .actu-slider__btn--prev:hover { transform: translateX( -4px ); }
.actu-slider .actu-slider__btn--next:hover { transform: translateX( 4px ); }

/* ---- Page Actualités : navigation par mois (comme le calendrier culturel) ---- */
.actu-filtres { margin: 0 0 1rem; scroll-margin-top: 90px; }
.actu-mois {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
	border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
}
.actu-mois a { color: inherit; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.actu-mois a:hover,
.actu-mois a:focus { text-decoration: underline; }
.actu-mois__vide { min-width: 1px; }
.actu-mois__form { display: contents; }
select.actu-mois__courant {
	font-weight: 700;
	font-size: 1.05rem;
	text-align: center;
	text-align-last: center;
	color: inherit;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	cursor: pointer;
}
select.actu-mois__courant:hover,
select.actu-mois__courant:focus { text-decoration: underline; background: transparent; }
select.actu-mois__courant option { font-weight: 400; font-size: 0.95rem; text-align: left; }

.actu-page .catalogue-barre { margin-top: 1.25rem; }
.actu-page .actu-liste { margin-top: 2rem; }
.actu-page .ccc-card__image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.actu-page .ccc-card__titre { margin-bottom: 12px; }

.actu-pagination { margin: 20px 0 60px; }
.actu-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.actu-pagination a,
.actu-pagination span {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #000;
	text-align: center;
	text-decoration: none;
}
.actu-pagination a:hover { background: #184e7f; border-color: #184e7f; color: #fff; }
.actu-pagination .current { background: #184e7f; border-color: #184e7f; color: #fff; }

@media (max-width: 980px) {
	.actu-slide { flex-basis: calc( ( 100% - 20px * ( min( var( --actu-visibles, 5 ), 2.15 ) - 1 ) ) / min( var( --actu-visibles, 5 ), 2.15 ) ); }
	.actu-slider__btn svg { width: 70px; }
	.actu-slider__nav { gap: 30px; padding-right: 0; }
}
@media (max-width: 767px) {
	.actu-slide { flex-basis: 85%; }
	.actu-slide__corps { padding: 18px 20px 22px; }
	.actu-mois a span { display: none; }
}

/* Filtres de la page : largeur fixe comme au calendrier culturel (mot clé et catégorie ne remplissent pas la ligne). */
@media (min-width: 768px) {
	.actu-page .catalogue-barre__recherche,
	.actu-page .catalogue-barre__select { flex: 0 0 200px; min-width: 0; }
}
