/* cf_video — façade YouTube (cpg-core, voir cf-video.php).
 * Réglages par site : --cpg-video-rayon (16px), --cpg-video-accent (#002149). */
.cpg-video {
	margin: 0 0 1.5em;
	max-width: 100%;
}
.cpg-video__facade,
.cpg-video__cadre {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--cpg-video-rayon, 16px);
	background: #1b2430;
}
.cpg-video__facade {
	cursor: pointer;
	text-decoration: none !important;
	border: 0 !important;
}
.cpg-video__vignette {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0 !important;
	transition: transform .3s ease;
}
.cpg-video__facade:hover .cpg-video__vignette { transform: scale(1.02); }
.cpg-video__lecture {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.cpg-video__lecture svg { display: block; width: 100%; height: 100%; }
.cpg-video__lecture-fond { fill: #212121; fill-opacity: .82; transition: fill .16s ease, fill-opacity .16s ease; }
.cpg-video__lecture-triangle { fill: #fff; }
.cpg-video__facade:hover .cpg-video__lecture-fond,
.cpg-video__facade:focus-visible .cpg-video__lecture-fond { fill: #f00; fill-opacity: 1; }
.cpg-video__facade:focus-visible {
	outline: 3px solid var(--cpg-video-accent, #002149) !important;
	outline-offset: 3px;
}
.cpg-video__cadre iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.cpg-video__titre {
	margin: .6em 0 0 !important;
	font-size: .95em;
	font-weight: 600;
	line-height: 1.4;
}
