/* =========================================================
   Event Announcements 9
   ========================================================= */

.ea-9-wrapper {
	width: 100%;
}

/* ---------- Barre de filtres ---------- */

.ea-9-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.ea-9-filter {
	font: inherit;
	line-height: 1;
	padding: 10px 18px;
	border-style: solid;
	border-width: 1px;
	border-color: rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	background-color: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, border-width 0.25s ease;
}

/* Neutralise le survol impose par le theme sur les balises button.
   Volontairement limite aux filtres inactifs : une regle sur l'etat
   actif prendrait le dessus sur le controle Elementor correspondant,
   qui a une specificite plus faible. */
.ea-9-wrapper .ea-9-filter:not(.is-active):hover,
.ea-9-wrapper .ea-9-filter:not(.is-active):focus {
	background-color: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.35);
	color: inherit;
}

.ea-9-filter.is-active {
	background-color: #000;
	border-color: #000;
	color: #fff;
}

.ea-9-filter:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ea-9-card.ea-9-hidden,
.ea-9-month.ea-9-hidden {
	display: none;
}

/* ---------- Regroupement par mois ---------- */

.ea-9-month + .ea-9-month {
	margin-top: 48px;
}

.ea-9-month-title {
	margin: 0 0 18px 0;
	font-size: 1.4rem;
	line-height: 1.2;
	padding-bottom: 6px;
}

/* ---------- Disposition ---------- */

.ea-9-container {
	display: flex;
	gap: 20px;
}

.ea-9-vertical {
	flex-direction: column;
}

.ea-9-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

/* ---------- Carte ---------- */

.ea-9-card {
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ea-9-top-bar {
	background: #000;
	color: #fff;
	padding: 5px 15px;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	/* L'alignement reel vient du controle Elementor, global ou par fiche. */
	text-align: center;
}

.ea-9-image {
	position: relative;
	overflow: hidden;
}

.ea-9-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.ea-9-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.ea-9-title {
	margin: 0 0 10px 0;
	font-size: 1.25rem;
}

.ea-9-meta {
	color: #666;
	margin-bottom: 15px;
	font-size: 0.9rem;
}

/* ---------- Lieu ---------- */

.ea-9-location {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 15px;
	color: #444;
	font-size: 0.9rem;
}

.ea-9-location-item {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
}

.ea-9-location-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	/* Recale l'icone sur la ligne de base du texte plutot que de
	   la centrer, ce qui la ferait flotter trop haut. */
	transform: translateY(0.15em);
}

.ea-9-desc {
	margin-bottom: 20px;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* ---------- Etiquettes de categorie ---------- */

.ea-9-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ea-9-tags-inline {
	margin-bottom: 15px;
}

.ea-9-tag {
	display: inline-block;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 16px;
	background-color: #7A296E;
	color: #fff;
}

/* Étiquettes posées par-dessus l'image.
   Le décalage depuis le bord est pilote par --ea9-tag-offset,
   defini par le controle Elementor sur le wrapper. */
.ea-9-tags-over {
	position: absolute;
	z-index: 2;
	margin: 0;
	max-width: calc(100% - (var(--ea9-tag-offset, 0px) * 2));
}

.ea-9-tags-top-left {
	top: var(--ea9-tag-offset, 0px);
	left: var(--ea9-tag-offset, 0px);
}

.ea-9-tags-top-right {
	top: var(--ea9-tag-offset, 0px);
	right: var(--ea9-tag-offset, 0px);
	justify-content: flex-end;
}

.ea-9-tags-bottom-left {
	bottom: var(--ea9-tag-offset, 0px);
	left: var(--ea9-tag-offset, 0px);
}

.ea-9-tags-bottom-right {
	bottom: var(--ea9-tag-offset, 0px);
	right: var(--ea9-tag-offset, 0px);
	justify-content: flex-end;
}

/* ---------- Actions ---------- */

/* Le rang d'actions porte le margin-top auto : les boutons restent
   colles en bas de carte quelle que soit la hauteur du contenu. */
.ea-9-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.ea-9-btn,
.ea-9-btn-2 {
	display: inline-block;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 4px;
	border: 0 solid transparent;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ea-9-btn {
	background: #000;
	color: #fff;
}

.ea-9-btn:hover {
	background: #333;
}

.ea-9-btn-2 {
	background: transparent;
	color: #000;
	border: 1px solid rgba(0, 0, 0, 0.3);
}

.ea-9-btn-2:hover {
	background: rgba(0, 0, 0, 0.06);
}

.ea-9-no-res {
	display: inline-block;
	font-size: 0.9rem;
	color: #888;
	font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
	.ea-9-grid {
		grid-template-columns: 1fr;
	}
}