/* Peal Popup Vidéo — style calqué sur le popup Hustle DEXA */

.ppv-popup { display: none; }
.ppv-popup[data-ppv-open="1"] { display: block; }

.ppv-popup {
	position: fixed;
	inset: 0;
	z-index: 999990;
	overflow-x: hidden;
}

.ppv-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 40, .55);
	cursor: pointer;
}

.ppv-popup__box {
	position: relative;
	max-width: min(380px, calc(100vw - 32px));
	width: 100%;
	margin: 4vh auto 0;
	background: var(--ppv-bg, #3d5a7c);
	color: #fff;
	border-radius: 12px;
	padding: 20px 24px 24px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	max-height: 92vh;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
}
.ppv-popup__box * { box-sizing: border-box; max-width: 100%; }

.ppv-popup__close {
	position: absolute;
	top: 10px; right: 10px;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: #e07728;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	border: 2px solid #fff;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	padding: 0;
	font-family: Arial, sans-serif;
	z-index: 2;
}
.ppv-popup__close:hover { filter: brightness(1.1); }

.ppv-popup__title {
	margin: 4px 0 4px;
	color: var(--ppv-title, #e07728);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}
.ppv-popup__subtitle {
	color: var(--ppv-subtitle, #fff);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 14px;
}

.ppv-popup__video {
	position: relative;
	background: #223e5c;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 9 / 16;
	max-height: 55vh;
	margin: 0 auto 16px;
	max-width: 260px;
}
.ppv-popup__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ppv-popup__play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}
.ppv-popup__play svg { display: block; }
.ppv-popup__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Overlay consentement RGPD par vidéo */
.ppv-consent {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 40, .82);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 10;
}
.ppv-consent__box {
	max-width: 100%;
	background: #fff;
	color: #1d2939;
	border-radius: 10px;
	padding: 14px 16px;
	text-align: center;
}
.ppv-consent__title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.ppv-consent__text { font-size: 12px; color: #475467; line-height: 1.35; margin: 0 0 10px; }
.ppv-consent__actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.ppv-consent__btn {
	appearance: none;
	border: none;
	border-radius: 6px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.ppv-consent__btn--accept { background: #2ea3f2; color: #fff; }
.ppv-consent__btn--cancel { background: #eef2f6; color: #1d2939; }

.ppv-popup__ctas {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 10px;
}
.ppv-popup__cta {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ppv-popup__cta--1 { background: var(--ppv-cta1-bg, #e07728); color: var(--ppv-cta1-tx, #fff); }
.ppv-popup__cta--2 { background: var(--ppv-cta2-bg, #2ea3f2); color: var(--ppv-cta2-tx, #fff); }
.ppv-popup__cta:hover { filter: brightness(1.05); }

.ppv-popup__dismiss {
	display: block;
	margin: 16px auto 0;
	background: transparent;
	border: none;
	color: #fff;
	text-decoration: underline;
	font-size: 13px;
	cursor: pointer;
	opacity: .85;
}

@media (max-width: 600px) {
	.ppv-popup__box { margin-top: 2vh; padding: 18px 16px 20px; }
	.ppv-popup__title { font-size: 17px; }
	.ppv-popup__subtitle { font-size: 13px; }
	.ppv-popup__video { max-width: 200px; max-height: 44vh; }
	.ppv-popup__cta { font-size: 13px; padding: 10px 16px; }
}
@media (max-width: 380px) {
	.ppv-popup__box { padding: 16px 12px 18px; }
	.ppv-popup__title { font-size: 16px; }
	.ppv-popup__video { max-width: 180px; }
}
