/* Façade YouTube : miniature + bouton lire, l'iframe ne charge qu'au clic. */

.rayan-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: #10181e;
	cursor: pointer;
	overflow: hidden;
	border-radius: inherit;
}

.rayan-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rayan-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: #ffffff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 30px rgba(16, 24, 30, 0.45);
}

.rayan-facade__play svg {
	width: 1.625rem;
	height: 1.625rem;
	fill: #10181e;
	margin-left: 0.25rem;
}

.rayan-facade:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.wp-block-embed__wrapper iframe.rayan-facade-iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.rayan-facade__play {
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.rayan-facade:hover .rayan-facade__play,
	.rayan-facade:focus-visible .rayan-facade__play {
		transform: translate(-50%, -50%) scale(1.08);
		background-color: #f2efe9;
	}
}
