/* Styles supplémentaires pour améliorer l'affichage des événements */
.past-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.past-event-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.past-event-card:hover {
	transform: translateY(-5px);
}

.event-image {
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.past-event-card:hover .event-image img {
	transform: scale(1.05);
}

.event-content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.event-meta {
	display: flex;
	gap: 15px;
	margin: 15px 0;
	flex-wrap: wrap;
}

.event-date, .event-location {
	background: #f8f9fa;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.9em;
	color: #666;
}

.event-content p {
	margin-bottom: 20px;
	flex-grow: 1;
}

.btn-outline {
	background: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	align-self: flex-start;
	margin-top: auto;
}

.btn-outline:hover {
	background: var(--primary-color);
	color: white;
}

.events-timeline {
	max-width: 900px;
	margin: 0 auto;
}

.event-item {
	display: flex;
	margin-bottom: 30px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-date {
	background: var(--primary-color);
	color: white;
	padding: 25px 20px;
	text-align: center;
	min-width: 120px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex-shrink: 0;
}

.event-date .day {
	font-size: 2.2em;
	font-weight: bold;
	line-height: 1;
}

.event-date .month {
	font-size: 1.3em;
	margin-top: 8px;
	text-transform: uppercase;
}

.event-content-wrapper {
	padding: 30px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.event-content-wrapper h3 {
	margin-bottom: 10px;
	color: var(--primary-dark);
}

.event-location {
	background: none;
	padding: 0;
	color: #666;
	font-weight: 500;
	margin-bottom: 15px;
}

.event-content-wrapper p {
	margin-bottom: 20px;
	flex-grow: 1;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 40px;
}

.gallery-item {
	border-radius: 8px;
	overflow: hidden;
	height: 250px;
	position: relative;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* Styles améliorés pour les vidéos */
.video-section {
	margin-bottom: 60px;
	padding: 30px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.video-container video {
	width: 100%;
	height: auto;
	max-height: 400px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	background: #000;
}

/* Pour les vidéos avec une seule vidéo, on peut centrer */
.video-container:has(video:only-child) {
	display: flex;
	justify-content: center;
}

.video-container:has(video:only-child) video {
	max-width: 600px;
}

.video-section h3 {
	margin: 20px 0 10px;
	color: var(--primary-dark);
}

.video-section p {
	margin-bottom: 20px;
	color: #666;
}

@media (max-width: 768px) {
	.event-item {
		flex-direction: column;
	}
	
	.event-date {
		flex-direction: row;
		justify-content: center;
		gap: 15px;
		min-width: auto;
		padding: 15px;
	}
	
	.event-date .day {
		font-size: 1.8em;
	}
	
	.event-date .month {
		margin-top: 0;
		font-size: 1.1em;
	}
	
	.past-events-grid {
		grid-template-columns: 1fr;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	
	.video-container {
		grid-template-columns: 1fr;
	}
	
	.video-section {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.event-content-wrapper {
		padding: 20px;
	}
	
	.event-meta {
		flex-direction: column;
		gap: 8px;
	}
	
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	
	.video-container video {
		max-height: 250px;
	}
}