/* ============================================================
   Cartes événements
   ============================================================ */

.event_clickable {
	display: flex;
	justify-content: center;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.evenements-wrapper {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.evenements-wrapper .event_clickable:nth-child(even) .events_container {
	flex-direction: row-reverse;
}

.events_row {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.events_container {
	display: flex;
	align-items: center;
	width: 1000px;
	box-sizing: border-box;
	color: white;
	padding: 20px;
	margin: 20px auto;
	border: 2px solid white;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Variante couleur bordeaux pour la page agenda */
.events_container.red {
	color: #8C1A3B;
	border-color: #8C1A3B;
}

.events_container:hover {
	transform: scale(1.03);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Empêche la sélection accidentelle de texte au clic */
.events_container *,
.events_container *::before,
.events_container *::after {
	user-select: none;
}

.no-event-message {
	color: white;
}

.events_infos-wrapper {
	display: flex;
	flex-direction: column;
	padding: 10px;
	width: 100%;
}

.events_infos {
	display: flex;
	flex-direction: column;
}

.events_infos h3 {
	font-size: 1.5em;
}

/* Variante titre bordeaux pour la page agenda */
.events_container.red .title h3 {
	color: #8C1A3B;
}

/* Catégories : suppression des puces et désactivation des liens */
ul.event-categories li {
	list-style: none;
	margin-left: -40px !important;
	margin-top: -40px;
	padding: 0 !important;
	pointer-events: none;
	cursor: default;
	color: white;
}

.events_container.red .event-categories li {
	color: #8C1A3B;
}

/* Dates */
.dates {
	font-size: 1em;
}

.dates span {
	display: block;
	font-weight: 500;
	font-style: normal;
}

.dates i {
	margin-right: 5px;
}

/* Texte descriptif */
.text {
	font-size: 1em;
	margin-top: 10px;
	color: white;
}

.events_container.red .text {
	color: #8C1A3B;
}

/* Image ronde */
.events_row .image {
	flex: 0 0 250px;
	max-width: 250px;
	margin-left: 20px;
	margin-right: 25px;
	margin-bottom: 0 !important;
	overflow: hidden;
}

.events_row .image img {
	width: 250px;
	height: 250px;
	object-fit: cover;
	border-radius: 50%;
}

/* Tablettes (jusqu'à 1024px) */
@media screen and (max-width: 1024px) {
	.events_container {
		width: 100%;
		flex-direction: column;
		text-align: left;
	}

	.evenements-wrapper .event_clickable:nth-child(even) .events_container {
		flex-direction: column;
	}

	.events_row .image {
		margin: 15px auto;
	}
}

/* Mobiles (jusqu'à 768px) */
@media screen and (max-width: 768px) {
	.event_clickable {
		display: block;
	}

	.events_container {
		flex-direction: column;
		padding: 15px;
		margin: 20px auto;
	}

	.events_container.one {
		width: 90% !important;
	}

	.events_row .image {
		flex: 0 0 150px;
		max-width: 50%;
		margin: 15px 0 0 0;
	}

	.events_row .image img {
		width: 140px;
		height: 140px;
		border-radius: 50%;
	}

	.events_infos h3 {
		font-size: 1.3em;
	}

	.dates {
		font-size: 0.9em;
	}

	.text {
		font-size: 0.9em;
	}
}


/* ============================================================
   Single événement
   ============================================================ */

.location-info span {
	vertical-align: middle;
}

/*
 * Retrait négatif pour aligner location-full sous l'icône de lieu.
 * La valeur -60px compense la hauteur de la ligne du nom de lieu.
 */
.location-info span.location-full {
	display: inline-block;
	margin-left: 1.2em;
	margin-top: -60px;
	vertical-align: middle;
}

/* Mobiles (jusqu'à 768px) */
@media screen and (max-width: 768px) {
	.thumbnail-event {
		margin-bottom: 60px !important;
	}
}
