/* ============================================================
   DECIVISION — POPUP DE REMERCIEMENT
============================================================ */

.dv-popup-thanks {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dv-popup-thanks[hidden] {
	display: none;
}

.dv-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 17, 74, 0.72);
	backdrop-filter: blur(4px);
	animation: dvPopupFade .25s ease both;
}

.dv-popup-panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #FFFFFF;
	border-radius: 20px;
	padding: 40px 32px 32px;
	box-shadow: 0 24px 64px rgba(20, 17, 74, 0.28);
	animation: dvPopupRise .3s cubic-bezier(.2,.9,.3,1.05) both;
}

@keyframes dvPopupFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes dvPopupRise {
	from { opacity: 0; transform: translateY(16px) scale(.98); }
	to   { opacity: 1; transform: translateY(0)   scale(1);    }
}


/* ---------- Fermeture ---------- */

.dv-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: #6B6A8E;
	transition: background .15s, color .15s;
}

.dv-popup-close:hover {
	background: #F1F2F9;
	color: #28217D;
}

.dv-popup-close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}


/* ---------- En-tête ---------- */

.dv-popup-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #FF8533;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.dv-popup-title {
	font-size: clamp(22px, 3vw, 26px);
	font-weight: 800;
	color: #28217D;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.dv-popup-intro {
	font-size: 15px;
	color: #4A4A6A;
	line-height: 1.6;
	margin: 0 0 24px;
}


/* ---------- Bloc événement ---------- */

.dv-popup-event {
	background: #F7F8FB;
	border: 1px solid #E8EAF6;
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 24px;
}

.dv-popup-event-label {
	font-size: 10px;
	font-weight: 700;
	color: #9B97C0;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.dv-popup-event-title {
	font-size: 16px;
	font-weight: 700;
	color: #14114A;
	line-height: 1.35;
	margin-bottom: 10px;
}

.dv-popup-event-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #5A5A7A;
}

.dv-popup-event-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dv-popup-event-meta-item svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #FF8533;
	stroke-width: 2;
	flex-shrink: 0;
}

.dv-popup-event-meta-sep {
	color: #C7CDF0;
}


/* ---------- Actions ---------- */

.dv-popup-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.dv-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background .18s, transform .18s, box-shadow .18s;
	cursor: pointer;
	border: 0;
}

.dv-popup-btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	flex-shrink: 0;
}

.dv-popup-btn--primary {
	background: #28217D;
	color: #FFFFFF !important;
	box-shadow: 0 4px 14px rgba(40, 33, 125, 0.22);
}

.dv-popup-btn--primary:hover {
	background: #1D1863;
	color: #FFFFFF !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(40, 33, 125, 0.30);
	text-decoration: none;
}

.dv-popup-btn--secondary {
	background: #FFF3EC;
	color: #E8631F !important;
}

.dv-popup-btn--secondary:hover {
	background: #FFE6D6;
	color: #E8631F !important;
	transform: translateY(-1px);
	text-decoration: none;
}


/* ---------- Dismiss ---------- */

.dv-popup-dismiss {
	width: 100%;
	background: transparent;
	border: 0;
	color: #9B97C0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 8px;
	transition: color .15s;
}

.dv-popup-dismiss:hover {
	color: #28217D;
}


/* ---------- Mobile ---------- */

@media (max-width: 520px) {

	.dv-popup-panel {
		padding: 32px 22px 22px;
		border-radius: 16px;
	}

	.dv-popup-title {
		font-size: 20px;
	}

	.dv-popup-intro {
		font-size: 14px;
	}

	.dv-popup-btn {
		padding: 12px 18px;
		font-size: 13px;
	}
}