/*
 * RGPD — Façade « cliquer pour charger » des vidéos YouTube.
 * Placeholder 100 % local (aucune image distante) : pas de requête vers Google
 * tant que l'utilisateur n'a pas cliqué.
 */

.yt-facade {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 180px;
	margin: 1.5rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	padding: 1rem;
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	border: 0;
	border-radius: 0.5rem;
	background: #141414;
	background: linear-gradient(135deg, #2b2b2b 0%, #121212 100%);
	transition: filter 0.2s ease;
}

.yt-facade:hover,
.yt-facade:focus-visible {
	filter: brightness(1.08);
	outline: none;
}

.yt-facade:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.yt-facade__btn {
	display: inline-flex;
	line-height: 0;
}

.yt-facade__icon {
	width: 68px;
	height: 48px;
	transition: transform 0.2s ease;
}

.yt-facade__icon-bg {
	fill: #212121;
	opacity: 0.85;
	transition: fill 0.2s ease, opacity 0.2s ease;
}

.yt-facade:hover .yt-facade__icon-bg,
.yt-facade:focus-visible .yt-facade__icon-bg {
	fill: #ff0000;
	opacity: 1;
}

.yt-facade:hover .yt-facade__icon,
.yt-facade:focus-visible .yt-facade__icon {
	transform: scale(1.06);
}

.yt-facade__text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-width: 42ch;
	color: #fff;
}

.yt-facade__title {
	font-size: 0.95rem;
	font-weight: 700;
}

.yt-facade__notice {
	font-size: 0.78rem;
	line-height: 1.45;
	opacity: 0.85;
}

/* État chargé : l'iframe remplit la boîte 16:9. */
.yt-facade.is-loaded {
	cursor: default;
	padding: 0;
	background: #000;
}

.yt-facade__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
