/* ----------- CSS AGENDA EVENTS -------------- */
.agenda-section-title {
	 margin: 48px 0px 16px 0px;
}

.agenda-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--korolev);
}
.agenda-nav a {
	text-decoration: none;
}
.agenda-nav .nav-disabled {
	opacity: .5;
}
#agenda_nav_current_month {
	color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--custom-events);
    padding: 8px 24px;
    border-radius: 32px;
}

.agenda-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 2rem;
}
.filter-btn {
	padding: .5rem 1rem;
	border: 1px solid var(--wp--preset--color--custom-events, #dca831);
	border-radius: 24px;
	text-decoration: none;
	color: var(--wp--preset--color--custom-events, #dca831);
	transition: background .2s, color .2s;
	font-size: 1rem;
}
.filter-btn.active,
.filter-btn:hover {
	background: var(--wp--preset--color--custom-events, #dca831);
	color: var(--wp--preset--color--base, #fefffe);
}

.agenda-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
	gap: clamp(14px,3vw,28px);
}
@media (max-width: 728px) {
	.agenda-grid{
		grid-template-columns: 1fr;
	}
}

.event-card {
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0px 0px 5px 0px #eddfbe;
	background: var(--wp--preset--color--base, #fefffe);
}
/* Neutralise les <p> et <br> ajoutés par wpautop autour des cartes */
.event-card > p { 
	margin: 0; 
	display: contents;   /* le <p> ne crée plus de boîte */
}
.event-card > a > br { 
	display: none;
}

.event-thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--wp--preset--aspect-ratio--3-2);
	object-fit: cover;
}

.event-content {
	padding: 16px;
}

.event-date {
	font-size: .95rem;
	opacity: .8;
	margin-bottom: 4px;
}

.event-title {
	margin: 16px 0px;
    font-size: 1.75rem;
}
.event-title a {
	font-size: inherit;
	text-decoration: none;
	line-height: 1;
}
.event-title a:hover {
	color: var(--wp--preset--color--custom-events, #dca831);
}

.event-excerpt {
	margin: 0;
}