/**
 * La Flamande – Vidéos annonces
 *
 * Reprend les repères visuels du module annonces existant :
 * accent #ef792e, rayon 5px, titres en Viga.
 */

.lfa-video {
	max-width: 1140px;
	margin: 40px auto;
	padding: 0 15px;
}

.lfa-video__title {
	font-family: "Viga", Arial, sans-serif;
	font-size: 24px;
	line-height: 1.2;
	color: #000;
	margin: 0 0 18px;
}

.lfa-video__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.lfa-video__grid:has(> .lfa-video__player + .lfa-video__player) {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Façade : rien n'est chargé tant que l'on ne clique pas. */
.lfa-video__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 5px;
	overflow: hidden;
}

/* Repli pour les navigateurs sans aspect-ratio. */
@supports not (aspect-ratio: 16 / 9) {
	.lfa-video__player {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.lfa-video__facade {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.lfa-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lfa-video__poster--empty {
	background: #1a1a1a;
}

.lfa-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 51px;
	pointer-events: none;
}

.lfa-video__play svg {
	width: 100%;
	height: 100%;
	display: block;
}

.lfa-video__play-bg {
	fill: #000;
	fill-opacity: 0.75;
	transition: fill 0.15s ease, fill-opacity 0.15s ease;
}

.lfa-video__facade:hover .lfa-video__play-bg,
.lfa-video__facade:focus-visible .lfa-video__play-bg {
	fill: #ef792e;
	fill-opacity: 1;
}

.lfa-video__facade:focus-visible {
	outline: 3px solid #ef792e;
	outline-offset: 3px;
}

.lfa-video__player iframe,
.lfa-video__native {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.lfa-video__player--file {
	background: #000;
}

.lfa-video__legend {
	margin: 10px 0 0;
	font-family: Arial, sans-serif;
	font-size: 14px;
	color: #54595F;
}

/* Badge sur les cartes de la liste des annonces. */
.lfa-video-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 5px;
	background: #ef792e;
	color: #fff;
	font-family: "Viga", Arial, sans-serif;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.02em;
	pointer-events: none;
}

.lfa-video-badge svg {
	width: 12px;
	height: 12px;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.lfa-video__play-bg {
		transition: none;
	}
}
