.video-gallery-modern,
.video-gallery-modern body {
	max-width: 100%;
	overflow-x: hidden;
}

.video-gallery-modern * {
	box-sizing: border-box;
}

.video-gallery-modern .navigation-annees {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: min(1100px, calc(100% - 32px));
	margin: 34px auto 18px;
}

.video-gallery-modern .navigation-annees a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 9px 16px;
	border: 1px solid rgba(255, 226, 105, .75);
	border-radius: 999px;
	background: rgba(119, 4, 18, .42);
	color: #ffe269;
	font: 700 18px/1.1 Arial, sans-serif;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.video-gallery-modern .navigation-annees a:hover,
.video-gallery-modern .navigation-annees a:focus-visible {
	background: #ffe269;
	color: #8b0718;
	transform: translateY(-1px);
	outline: none;
}

.video-gallery-modern .navigation-annees a[aria-current="page"] {
	background: #ffe88e;
	color: #8b0718;
	box-shadow: 0 5px 14px rgba(96, 0, 13, .25);
}

.video-gallery-modern .navigation-annees .annee-en-cours {
	flex-basis: 100%;
	margin-top: 8px;
	color: #ffe269;
	font: 700 36px/1.1 Arial, sans-serif;
	letter-spacing: .3em;
	text-align: center;
	text-shadow: 1px 2px 0 #790716;
}

.video-gallery-modern .legacy-video-grid {
	width: min(1100px, calc(100% - 32px)) !important;
	margin: 18px auto 56px !important;
	border-collapse: separate !important;
	border-spacing: 0 18px !important;
	table-layout: fixed;
}

.video-gallery-modern .legacy-animation-grid,
.video-gallery-modern .legacy-animation-grid tbody,
.video-gallery-modern .legacy-animation-grid tr,
.video-gallery-modern .legacy-animation-grid td {
	display: block;
	width: 100% !important;
}

.video-gallery-modern .legacy-animation-grid {
	width: min(900px, calc(100% - 32px)) !important;
	margin: 24px auto 60px !important;
	border: 0;
}

.video-gallery-modern .legacy-animation-grid tr > td:first-child {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 0 !important;
}

.video-gallery-modern .legacy-animation-grid tr > td:first-child > br,
.video-gallery-modern .legacy-animation-grid tr > td:empty {
	display: none;
}

.video-gallery-modern .legacy-animation-grid a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 16px;
	border: 1px solid rgba(255, 226, 105, .72);
	border-radius: 14px;
	background: rgba(115, 3, 20, .68);
	color: #ffe269;
	font: 700 18px/1.25 Arial, sans-serif;
	text-align: center;
	text-decoration: none;
}

.video-gallery-modern .legacy-animation-grid a:hover,
.video-gallery-modern .legacy-animation-grid a:focus-visible {
	background: #ffe269;
	color: #790716;
	outline: none;
}

.video-gallery-modern .legacy-animation-grid .sous_titre {
	color: inherit;
	font: inherit;
}

.video-gallery-modern .legacy-video-grid tr.video-entry > td {
	padding: 20px !important;
	vertical-align: middle !important;
}

.video-gallery-modern .legacy-video-grid tr.video-entry > td:first-child {
	width: 31% !important;
	border-radius: 16px 0 0 16px;
	background: linear-gradient(145deg, #ffe98b, #ffd45c);
	color: #650313;
	font: 700 18px/1.35 Arial, sans-serif;
	text-align: center;
}

.video-gallery-modern .legacy-video-grid tr.video-entry > td:last-child {
	border-radius: 0 16px 16px 0;
	background: rgba(115, 3, 20, .68);
}

.video-gallery-modern .legacy-video-grid iframe,
.video-gallery-modern .wrapper iframe,
.video-gallery-modern .wrapper1 iframe,
.video-gallery-modern .wrapper2 iframe,
.video-gallery-modern .video-2025 iframe {
	display: block;
	width: 100% !important;
	max-width: 760px;
	height: auto !important;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
}

.video-gallery-modern .wrapper,
.video-gallery-modern .wrapper1,
.video-gallery-modern .wrapper2 {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: none !important;
	grid-auto-rows: auto !important;
	gap: 24px !important;
	width: min(1100px, calc(100% - 32px)) !important;
	margin: 24px auto 56px !important;
}

.video-gallery-modern .wrapper > div,
.video-gallery-modern .wrapper1 > div,
.video-gallery-modern .wrapper2 > div {
	position: static !important;
	width: auto !important;
	height: auto !important;
	padding: 18px !important;
	border-radius: 16px;
	background: rgba(115, 3, 20, .68);
}

.video-gallery-modern .wrapper .font_texte,
.video-gallery-modern .wrapper1 .font_texte,
.video-gallery-modern .wrapper2 .font_texte {
	display: block;
	margin-bottom: 14px;
	color: #ffe269;
	font-weight: 700;
	text-align: center;
}

@media (max-width: 760px) {
	.video-gallery-modern .navigation-annees {
		gap: 8px;
		width: calc(100% - 20px);
		margin-top: 24px;
	}

	.video-gallery-modern .navigation-annees a {
		min-height: 42px;
		padding: 8px 13px;
		font-size: 16px;
	}

	.video-gallery-modern .navigation-annees .annee-en-cours {
		font-size: 28px;
	}

	.video-gallery-modern .legacy-video-grid,
	.video-gallery-modern .legacy-video-grid tbody,
	.video-gallery-modern .legacy-video-grid tr.video-entry,
	.video-gallery-modern .legacy-video-grid tr.video-entry > td {
		display: block;
		width: 100% !important;
	}

	.video-gallery-modern .legacy-video-grid {
		width: calc(100% - 20px) !important;
		border-spacing: 0 20px !important;
	}

	.video-gallery-modern .legacy-animation-grid {
		width: calc(100% - 20px) !important;
	}

	.video-gallery-modern .legacy-animation-grid tr > td:first-child {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.video-gallery-modern .legacy-video-grid tr.video-entry > td:first-child {
		border-radius: 14px 14px 0 0;
	}

	.video-gallery-modern .legacy-video-grid tr.video-entry > td:last-child {
		border-radius: 0 0 14px 14px;
	}

	.video-gallery-modern .wrapper,
	.video-gallery-modern .wrapper1,
	.video-gallery-modern .wrapper2 {
		grid-template-columns: 1fr !important;
		width: calc(100% - 20px) !important;
	}
}
