/*
 * Fenêtre de sortie vers la démo (includes/exit-demo.php, view.js).
 * Ordinateur : carte centrée. Téléphone : panneau qui monte du bas.
 */
.opx-exit {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.opx-exit__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 24, 42, 0.55);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.opx-exit__panel {
	position: relative;
	width: min(460px, 100%);
	box-sizing: border-box;
	padding: 26px 28px 22px;
	border-radius: 22px;
	background: linear-gradient(150deg, #01182a 0%, #082a6e 55%, #0d36d0 100%);
	color: #fefffa;
	box-shadow: 0 30px 80px rgba(1, 24, 42, 0.45);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.opx-exit.is-open .opx-exit__backdrop {
	opacity: 1;
}

.opx-exit.is-open .opx-exit__panel {
	opacity: 1;
	transform: none;
}

.opx-exit__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fefffa;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.opx-exit__close:hover,
.opx-exit__close:focus-visible {
	background: rgba(255, 255, 255, 0.22);
}

.opx-exit__art svg {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 18px;
}

.opx-exit__eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1fcdff;
}

.opx-exit__title {
	margin: 0.35rem 0 0.6rem;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
}

.opx-exit__text {
	margin: 0 0 1rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: rgba(254, 255, 250, 0.85);
}

.opx-exit__perks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.opx-exit__perks li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
	font-weight: 600;
}

.opx-exit__perks li::before {
	content: "";
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: #16c784 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
	flex: none;
}

.opx-exit__btn {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.95rem 1.25rem;
	border-radius: 14px;
	background: #fefffa;
	color: #0d36d0;
	font-size: 1.05rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.opx-exit__btn::after {
	content: " \2197";
}

.opx-exit__btn:hover,
.opx-exit__btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
	color: #0d36d0;
}

.opx-exit__small {
	margin: 0.85rem 0 0;
	font-size: 0.72rem;
	line-height: 1.5;
	text-align: center;
	color: rgba(254, 255, 250, 0.65);
}

/* Téléphone : panneau en bas de l'écran. */
.opx-exit--sheet {
	align-items: flex-end;
	padding: 0;
}

.opx-exit--sheet .opx-exit__panel {
	width: 100%;
	padding: 26px 20px calc(18px + env(safe-area-inset-bottom));
	border-radius: 22px 22px 0 0;
	transform: translateY(100%);
}

.opx-exit--sheet .opx-exit__panel::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 50%;
	width: 40px;
	height: 4px;
	margin-left: -20px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.3);
}

.opx-exit--sheet .opx-exit__art {
	display: none;
}

.opx-exit--sheet .opx-exit__title {
	font-size: 1.35rem;
}

@media (prefers-reduced-motion: reduce) {
	.opx-exit__backdrop,
	.opx-exit__panel,
	.opx-exit__btn {
		transition: none;
	}
}
