/* ==========================================================================
   Vidéo de présentation de l'accueil (widget .video-bca-petite, assets/js/bca-video.js)
   Carte inclinée en 3D, bouton lecture blanc avec ondes, main animée qui invite au clic.
   ========================================================================== */
.video-bca-petite.bca-v3d { perspective: 1100px; }
.video-bca-petite.bca-v3d .e-hosted-video {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	transform: rotateY(-14deg) rotateX(7deg);
	transform-origin: 50% 50%;
	box-shadow: 22px 26px 50px -18px rgba(21, 0, 255, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.35) inset;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
	background: #05041a;
}
.video-bca-petite.bca-v3d:hover .e-hosted-video,
.video-bca-petite.bca-v3d.lecture .e-hosted-video {
	transform: rotateY(0) rotateX(0);
	box-shadow: 0 18px 46px -12px rgba(21, 0, 255, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.35) inset;
}
.video-bca-petite.bca-v3d video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-bca-petite.bca-v3d .e-hosted-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%);
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.video-bca-petite.bca-v3d.lecture .e-hosted-video::after { opacity: 0; }

/* Bouton lecture blanc */
.bca-v-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(5, 4, 26, 0.45);
	animation: bca-v-appui 2.8s ease-in-out infinite;
}
.bca-v-play svg { width: 28px; height: 28px; margin-left: 4px; fill: #1500ff; position: relative; z-index: 1; }
.bca-v-play:hover { animation-play-state: paused; transform: scale(1.08); }
.bca-v-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.bca-v-onde {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.9);
	animation: bca-v-onde 2.8s ease-out infinite;
}
.bca-v-onde + .bca-v-onde { animation-delay: 0.5s; }

/* Main qui vient cliquer sur le bouton */
.bca-v-main {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40px;
	height: 40px;
	z-index: 4;
	pointer-events: none;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
	animation: bca-v-main 2.8s ease-in-out infinite;
}
.bca-v-main svg { width: 100%; height: 100%; }

.video-bca-petite.lecture .bca-v-play,
.video-bca-petite.lecture .bca-v-main { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }

@keyframes bca-v-main {
	0%   { transform: translate(70px, 60px) scale(1); opacity: 0; }
	15%  { opacity: 1; }
	45%  { transform: translate(4px, 6px) scale(1); }
	52%  { transform: translate(4px, 6px) scale(0.82); }
	60%  { transform: translate(4px, 6px) scale(1); opacity: 1; }
	85%  { transform: translate(70px, 60px) scale(1); opacity: 0; }
	100% { transform: translate(70px, 60px) scale(1); opacity: 0; }
}
@keyframes bca-v-appui {
	0%, 48%, 62%, 100% { transform: scale(1); }
	53% { transform: scale(0.88); }
}
@keyframes bca-v-onde {
	0%, 50% { transform: scale(1); opacity: 0; }
	53% { opacity: 0.9; }
	100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 767px) {
	.video-bca-petite.bca-v3d .e-hosted-video { transform: rotateY(-8deg) rotateX(5deg); }
}
@media (prefers-reduced-motion: reduce) {
	.bca-v-play, .bca-v-onde, .bca-v-main { animation: none; }
	.bca-v-main { display: none; }
	.video-bca-petite.bca-v3d .e-hosted-video { transition: none; }
}

/* Bouton de vitesse de lecture (ajout du 16/11/2026, voir la fin de bca-video.js) */
.bca-vitesse {
	position: absolute;
	right: 14px;
	bottom: 56px;
	z-index: 5;
	min-width: 52px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font: 600 14px/1 Poppins, Inter, Arial, sans-serif;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}
.bca-vitesse.est-visible { opacity: 1; pointer-events: auto; }
.bca-vitesse:hover,
.bca-vitesse:focus-visible { background: rgba(0, 0, 0, 0.85); outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
	.bca-vitesse { right: 10px; bottom: 48px; font-size: 13px; padding: 6px 10px; }
}
