/* Popin Pro — styles front */

.ppro-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--ppro-veil, rgba(15, 23, 42, .6));
	opacity: 0;
	transition: opacity .25s ease;
	overflow-y: auto;
}

.ppro-overlay[hidden] {
	display: none;
}

.ppro-overlay.is-visible {
	opacity: 1;
}

.ppro-dialog {
	position: relative;
	width: 100%;
	max-width: var(--ppro-maxw, 520px);
	transform: translateY(14px) scale(.98);
	transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}

.ppro-overlay.is-visible .ppro-dialog {
	transform: none;
}

.ppro-card {
	box-sizing: border-box;
	padding: 30px 28px 26px;
	border-radius: var(--ppro-radius, 18px);
	background: #fff;
	box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
	text-align: center;
	font-family: inherit;
}

.ppro-eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ppro-accent, #1f7a4d);
	margin-bottom: 8px;
	text-transform: none;
}

.ppro-title {
	margin: 0 0 14px;
	font-size: 25px;
	line-height: 1.25;
	color: var(--ppro-title, #111827);
}

.ppro-intro {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ppro-text, #4b5563);
}

.ppro-benefits {
	list-style: none;
	margin: 0 0 20px;
	padding: 16px 18px;
	border-radius: calc(var(--ppro-radius, 18px) - 4px);
	background: var(--ppro-box, #f3f7f5);
	text-align: left;
}

.ppro-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ppro-title, #111827);
}

.ppro-benefits li:last-child {
	margin-bottom: 0;
}

.ppro-benefits li::before {
	content: none;
}

.ppro-check {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
}

.ppro-check circle {
	fill: var(--ppro-accent, #1f7a4d);
}

.ppro-reassurance {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--ppro-text, #4b5563);
}

.ppro-cta {
	display: inline-block;
	max-width: 100%;
	padding: 14px 26px;
	border-radius: 10px;
	background: var(--ppro-accent, #1f7a4d);
	color: var(--ppro-accent-text, #fff) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
	transition: filter .2s ease, transform .2s ease;
}

.ppro-cta:hover,
.ppro-cta:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: var(--ppro-accent-text, #fff) !important;
}

.ppro-footnote {
	margin: 16px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.ppro-close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 36px;
	height: 36px;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	cursor: pointer;
	line-height: 0;
}

.ppro-close svg {
	width: 100%;
	height: 100%;
}

.ppro-close:hover {
	background: #f3f4f6;
}

body.ppro-locked {
	overflow: hidden;
}

/* Version shortcode (bloc intégré dans une page) */
.ppro-overlay.ppro-inline {
	position: static;
	display: block;
	padding: 0;
	margin: 30px auto;
	max-width: var(--ppro-maxw, 520px);
	background: none;
	opacity: 1;
	overflow: visible;
}

/* Mobile */
@media (max-width: 600px) {
	.ppro-overlay {
		padding: 14px;
		align-items: flex-start;
	}

	.ppro-dialog {
		margin-top: 40px;
	}

	.ppro-card {
		padding: 24px 18px 20px;
	}

	.ppro-title {
		font-size: 21px;
	}

	.ppro-intro {
		font-size: 15px;
	}

	.ppro-cta {
		display: block;
		padding: 14px 18px;
	}

	.ppro-close {
		top: -14px;
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ppro-overlay,
	.ppro-dialog,
	.ppro-cta {
		transition: none;
	}
}
