/**
 * Facade YouTube pré-consent CookieYes (nmMUMZQG).
 * Overlay sur le widget Elementor (Elementor remplace .elementor-video en iframe).
 */

.elementor-widget-video.mfa-yt-gated {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #122a4d;
	overflow: hidden;
}

.elementor-widget-video.mfa-yt-blocked .elementor-wrapper {
	visibility: hidden !important;
	pointer-events: none !important;
}

.elementor-widget-video.mfa-yt-gated > .mfa-yt-facade {
	position: absolute;
	inset: 0;
	z-index: 5;
}

[data-mfa-yt-embed].mfa-yt-gated {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #122a4d;
	overflow: hidden;
}

.mfa-yt-facade {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: #122a4d;
	color: #fff;
	text-align: center;
	font: inherit;
}

.mfa-yt-facade:focus-visible {
	outline: 3px solid #f5a623;
	outline-offset: 2px;
}

.mfa-yt-facade__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mfa-yt-facade__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 1.25rem;
	background: linear-gradient(180deg, rgba(18, 42, 77, 0.35) 0%, rgba(18, 42, 77, 0.72) 100%);
	transition: background 0.2s ease;
}

.mfa-yt-facade:hover .mfa-yt-facade__overlay,
.mfa-yt-facade:focus-visible .mfa-yt-facade__overlay {
	background: linear-gradient(180deg, rgba(18, 42, 77, 0.45) 0%, rgba(18, 42, 77, 0.82) 100%);
}

.mfa-yt-facade__play {
	width: 68px;
	height: 48px;
	border-radius: 14px;
	background: #ff0033;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
	position: relative;
	flex-shrink: 0;
}

.mfa-yt-facade__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.mfa-yt-facade__cta {
	display: inline-block;
	max-width: 20rem;
	padding: 0.65rem 1.1rem;
	border-radius: 4px;
	background: #fff;
	color: #122a4d;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	box-shadow: 0 6px 18px rgba(18, 42, 77, 0.22);
}

.mfa-yt-facade__iframe,
.elementor-widget-video.mfa-yt-gated .elementor-video,
.elementor-widget-video.mfa-yt-gated iframe.elementor-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mfa-product-video__frame.mfa-yt-gated,
.mfa-featured-review__video.mfa-yt-gated {
	padding-bottom: 0;
}

@media (max-width: 767px) {
	.mfa-yt-facade__cta {
		font-size: 0.875rem;
		padding: 0.55rem 0.9rem;
	}

	.mfa-yt-facade__play {
		width: 58px;
		height: 42px;
		border-radius: 12px;
	}
}
