/* L'Imprimerie – Vidéo neutre */
.lpvh {
	--lpvh-accent: #fff;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #111;
	isolation: isolate;
}

/* Lecture d'ambiance : l'iframe est agrandie puis rognée pour masquer tout habillage */
.lpvh__stage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lpvh__frame {
	position: absolute;
	top: 50%; left: 50%;
	width: 100%; height: 100%;
	transform: translate(-50%, -50%) scale(1.2);
}
.lpvh__frame iframe, .lpvh__frame video { width: 100%; height: 100%; border: 0; display: block; }
.lpvh__frame video { object-fit: cover; }
.lpvh--file .lpvh__frame { transform: translate(-50%, -50%); }

/* Mode « vidéo à la une » : l'image du thème reste dans le flux et fixe la taille */
.lpvh--thumb { aspect-ratio: auto; height: 100%; border-radius: inherit; background: transparent; }
.lpvh--thumb .lpvh__poster { position: relative; inset: auto; display: block; }
.lpvh--thumb:not(:has(.lpvh__poster)) { aspect-ratio: 16 / 9; }
.lpvh--ambient .lpvh__poster { transition-duration: 1.2s; }

.lpvh__poster {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: opacity .9s ease;
	z-index: 1;
}
.lpvh.is-playing .lpvh__poster { opacity: 0; }

.lpvh__veil {
	position: absolute; inset: 0; z-index: 2;
	background: radial-gradient(ellipse at center, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 100%);
	transition: background .4s ease;
}

/* Bouton de lecture */
.lpvh__play {
	position: absolute; inset: 0; z-index: 3;
	width: 100%; height: 100%; margin: 0; padding: 0;
	background: transparent; border: 0; cursor: pointer;
	color: var(--lpvh-accent); font: inherit;
	--d: 88px;
}
.lpvh__play::before, .lpvh__ring {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: var(--d); height: var(--d); border-radius: 50%;
	margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
}
.lpvh__play::before {
	background: rgba(255,255,255,.12);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.7);
	transition: transform .4s cubic-bezier(.2,.8,.2,1), background .4s ease;
}
.lpvh__ring { border: 1px solid rgba(255,255,255,.55); animation: lpvh-pulse 2.8s ease-out infinite; }
.lpvh__icon {
	position: absolute; top: 50%; left: 50%;
	width: 26px; height: 26px; margin: -13px 0 0 -11px;
	fill: currentColor;
}
.lpvh__label {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, calc(var(--d) / 2 + 18px));
	white-space: nowrap;
	font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .9;
	text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.lpvh__play:hover::before, .lpvh__play:focus-visible::before { transform: scale(1.08); background: rgba(255,255,255,.24); }
.lpvh__play:focus-visible { outline: none; }
.lpvh__play:focus-visible::before { box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.lpvh:hover .lpvh__veil { background: radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%); }

@keyframes lpvh-pulse {
	0%   { transform: scale(1);   opacity: .7; }
	100% { transform: scale(1.6); opacity: 0; }
}

/* Lightbox */
.lpvh-box {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(8,8,8,.94);
	opacity: 0; transition: opacity .35s ease;
	padding: 4vmin;
}
.lpvh-box.is-open { opacity: 1; }
.lpvh-box__inner {
	position: relative;
	width: min(100%, calc((100vh - 8vmin) * 16 / 9));
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	transform: scale(.96); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.lpvh-box.is-open .lpvh-box__inner { transform: scale(1); }
.lpvh-box__frame { position: absolute; inset: 0; }
.lpvh-box__frame iframe, .lpvh-box__frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain; }
/* Calque qui intercepte les clics : aucune interface de la plateforme n'est accessible */
.lpvh-box__shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.lpvh-box__cover {
	position: absolute; inset: 0; z-index: 3;
	background: #000 center / cover no-repeat;
	transition: opacity .5s ease;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.lpvh-box__cover.is-hidden { opacity: 0; pointer-events: none; }
.lpvh-box__cover svg { width: 64px; height: 64px; fill: #fff; opacity: .9; filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); }

.lpvh-box__bar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
	display: flex; align-items: center; gap: 14px;
	padding: 28px 18px 14px;
	background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
	color: #fff;
	opacity: 0; transition: opacity .3s ease;
}
.lpvh-box__inner:hover .lpvh-box__bar, .lpvh-box__inner.is-paused .lpvh-box__bar, .lpvh-box__bar:focus-within { opacity: 1; }
.lpvh-box__btn {
	flex: none; width: 36px; height: 36px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	background: transparent; border: 0; color: #fff; cursor: pointer; border-radius: 50%;
}
.lpvh-box__btn:hover, .lpvh-box__btn:focus-visible { background: rgba(255,255,255,.15); outline: none; }
.lpvh-box__btn svg { width: 20px; height: 20px; fill: currentColor; }
.lpvh-box__progress {
	flex: 1; height: 3px; background: rgba(255,255,255,.3); position: relative; cursor: pointer; border-radius: 3px;
}
.lpvh-box__progress::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.lpvh-box__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: 3px; }
.lpvh-box__time { flex: none; font: 12px/1 system-ui, sans-serif; letter-spacing: .05em; opacity: .85; min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }

.lpvh-box__close {
	position: absolute; top: 18px; right: 18px; z-index: 5;
	width: 44px; height: 44px; border-radius: 50%;
	background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center; padding: 0;
	transition: background .25s ease, transform .25s ease;
}
.lpvh-box__close:hover, .lpvh-box__close:focus-visible { background: rgba(255,255,255,.15); transform: rotate(90deg); outline: none; }
.lpvh-box__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }

html.lpvh-lock { overflow: hidden; }

@media (max-width: 600px) {
	.lpvh__play { --d: 68px; }
	.lpvh__label { font-size: 10px; }
	.lpvh-box__time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lpvh__ring { animation: none; opacity: 0; }
}

/* ---------- Effet "mouse follow" du bouton lecture (type Salient) ---------- */
.lpvh__play { --mx: 0px; --my: 0px; --s: 1; }
.lpvh__play::before,
.lpvh__ring,
.lpvh__icon,
.lpvh__label { translate: var(--mx) var(--my); }
.lpvh__play::before {
	scale: var(--s);
	transition: transform .4s cubic-bezier(.2,.8,.2,1), scale .5s cubic-bezier(.2,.8,.2,1), background .4s;
}
.lpvh__play.is-following::before { transform: none; }
.lpvh__ring, .lpvh__label { transition: opacity .3s; }
.lpvh__play.is-following .lpvh__ring,
.lpvh__play.is-following .lpvh__label { opacity: 0; }
