/* Bouton Vidéo Yolo — bouton pilule + popup overlay */

/* ── Bouton ── */
.beekom-video-button {
	display: flex;
	justify-content: flex-start;
}
.vbtn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	border: none;
	cursor: pointer;
	padding: 16px 26px;
	border-radius: 999px;
	background: #5A4DFF;
	color: #fff;
	font: inherit;
	line-height: 1.2;
	transition: background .25s ease, transform .2s ease;
}
.vbtn:hover { background: #3A2EE0; }
.vbtn:active { transform: scale(.98); }
.vbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vbtn__label { font-size: 18px; font-weight: 600; }
.vbtn__icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #1A0B4D;
}
.vbtn__icon svg { width: 42%; height: auto; display: block; margin-left: 2px; }

/* ── Popup overlay (singleton, attaché au body) ── */
.yolo-vpop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 6, 30, 0.88);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s ease, visibility .28s ease;
}
.yolo-vpop.is-open { opacity: 1; visibility: visible; }

.yolo-vpop__frame {
	position: relative;
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
	transform: translateY(12px) scale(.98);
	transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.yolo-vpop.is-open .yolo-vpop__frame { transform: none; }
.yolo-vpop__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 14px;
}

.yolo-vpop__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: #fff;
	color: #1A0B4D;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
	transition: transform .2s ease;
}
.yolo-vpop__close:hover { transform: scale(1.08); }
.yolo-vpop__close svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
	.yolo-vpop__close { top: -52px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.yolo-vpop, .yolo-vpop__frame { transition: opacity .15s ease, visibility .15s ease; }
	.yolo-vpop.is-open .yolo-vpop__frame { transform: none; }
}
