/**
 * Lecteur YouTube différé (php/youtube.php, js/fas-youtube.js).
 */

@layer composants {

.fas-yt {
	width: 100%;
	max-width: 1000px;
	margin: 1.25rem auto;
}

.fas-yt__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: var(--fas-salle, #12100e);
	box-shadow: var(--fas-ombre-1, 0 2px 10px rgb(0 0 0 / 12%));
}

.fas-yt__thumb,
.fas-yt__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	object-fit: cover;
}

.fas-yt__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 35%), rgb(0 0 0 / 5%));
	box-shadow: none;
	cursor: pointer;
}

.fas-yt__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: var(--fas-accent, #2aa6e8);
	color: var(--fas-blanc, #fff);
	box-shadow: 0 6px 24px rgb(0 0 0 / 35%);
	transition: transform 0.2s ease;
}

.fas-yt__icon svg {
	width: 2rem;
	height: 2rem;
	margin-left: 0.2rem;
	fill: currentColor;
}

.fas-yt__play:hover .fas-yt__icon,
.fas-yt__play:focus-visible .fas-yt__icon {
	transform: scale(1.08);
}

.fas-yt__play:focus-visible {
	outline: 3px solid var(--fas-accent, #2aa6e8);
	outline-offset: -3px;
}

.fas-yt__notice {
	margin: 0.45rem 0 0;
	padding: 0;
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: center;
	color: var(--fas-gris-texte, #7e7e7e);
}

.fas-yt__notice a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fas-yt.is-playing .fas-yt__notice {
	visibility: hidden;
}

}
