/**
 * Page "Promo 3 ans de Keurti".
 * Design moderne, festif, responsive - couleur d'ancrage : #f51957
 * (couleur primaire du thème OneListing Pro utilisé par Keurti).
 */

.kp3a-promo {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 64px 20px 80px;
	margin: 0 auto;
	border-radius: 24px;
	text-align: center;
	color: #ffffff;
	background: radial-gradient(circle at 20% 20%, #ff7a18 0%, transparent 45%),
	            radial-gradient(circle at 85% 15%, #ffd400 0%, transparent 40%),
	            linear-gradient(160deg, #f51957 0%, #b3115f 60%, #6a0f56 100%);
}

.kp3a-confetti-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.kp3a-promo__inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	margin: 0 auto;
}

.kp3a-promo__title {
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 800;
	margin: 0 0 18px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
	animation: kp3a-title-pop 0.6s ease;
}

.kp3a-promo__subtitle {
	font-size: 16px;
	line-height: 1.7;
	max-width: 480px;
	margin: 0 auto 40px;
	color: rgba(255, 255, 255, 0.92);
}

@keyframes kp3a-title-pop {
	from { opacity: 0; transform: translateY(-14px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------------------------------------------- */
/* Boutons                                                           */
/* ---------------------------------------------------------------- */

.kp3a-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
}

.kp3a-btn--participer {
	padding: 22px 56px;
	font-size: 22px;
	font-weight: 800;
	color: #7a0e3a;
	background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
	border-radius: 60px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.15);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.kp3a-btn--participer:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(255, 255, 255, 0.2);
	filter: brightness(1.04);
}

.kp3a-btn--participer:active {
	transform: translateY(0) scale(0.97);
}

.kp3a-btn--pulse {
	animation: kp3a-btn-pulse 2s ease-in-out infinite;
}

@keyframes kp3a-btn-pulse {
	0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.15); }
	50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(255, 255, 255, 0.05); }
}

.kp3a-btn--submit {
	width: 100%;
	margin-top: 8px;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff2e63 0%, #f51957 100%);
	box-shadow: 0 6px 18px rgba(245, 25, 87, 0.35);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.kp3a-btn--submit:hover {
	filter: brightness(1.05);
}

.kp3a-btn--submit:active {
	transform: scale(0.98);
}

.kp3a-btn--submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* ---------------------------------------------------------------- */
/* États / cartes                                                    */
/* ---------------------------------------------------------------- */

.kp3a-state {
	animation: kp3a-fade-in 0.4s ease;
}

@keyframes kp3a-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.kp3a-card {
	max-width: 420px;
	margin: 0 auto;
	padding: 32px 28px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.kp3a-card p {
	margin: 0 0 20px;
	font-size: 16px;
}

.kp3a-card--confirmation .kp3a-card__emoji {
	font-size: 44px;
	margin-bottom: 6px;
}

.kp3a-card--confirmation h2 {
	font-size: 24px;
	margin: 0 0 8px;
}

.kp3a-ticket-label {
	margin-top: 18px !important;
	font-size: 13px !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	opacity: 0.85;
}

.kp3a-ticket-number {
	font-size: 52px;
	font-weight: 900;
	line-height: 1;
	margin: 6px 0 16px;
	background: linear-gradient(135deg, #ffe259, #ffa751);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.kp3a-small {
	font-size: 13px !important;
	opacity: 0.85;
	margin: 0 !important;
}

.kp3a-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	animation: kp3a-spin 0.8s linear infinite;
}

@keyframes kp3a-spin {
	to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------- */
/* Modal de participation                                            */
/* ---------------------------------------------------------------- */

.kp3a-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 5, 15, 0.65);
	backdrop-filter: blur(3px);
	animation: kp3a-fade-in 0.2s ease;
}

.kp3a-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 36px 30px 30px;
	border-radius: 22px;
	background: #ffffff;
	color: #23232b;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	animation: kp3a-modal-pop 0.25s ease;
}

@keyframes kp3a-modal-pop {
	from { opacity: 0; transform: scale(0.92) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.kp3a-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: #f4f4f6;
	color: #666;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.kp3a-modal__close:hover {
	background: #eaeaee;
}

.kp3a-modal__title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 22px;
	text-align: center;
	color: #23232b;
}

.kp3a-form-group {
	margin-bottom: 18px;
	text-align: left;
}

.kp3a-form-group label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #4a4a55;
}

.kp3a-form-group input {
	width: 100%;
	padding: 13px 14px;
	font-size: 15px;
	border: 2px solid #e6e6ec;
	border-radius: 10px;
	background: #fafafc;
	transition: border-color 0.15s ease, background 0.15s ease;
	box-sizing: border-box;
}

.kp3a-form-group input:focus {
	outline: none;
	border-color: #f51957;
	background: #ffffff;
}

.kp3a-form-group input.kp3a-input-error {
	border-color: #e63946;
}

.kp3a-form-feedback {
	min-height: 18px;
	margin: 4px 0 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: #e63946;
	text-align: center;
}

.kp3a-form-feedback.kp3a-success {
	color: #1a9e5c;
}

/* Champ honeypot : invisible pour un humain, présent pour un bot. */
.kp3a-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                        */
/* ---------------------------------------------------------------- */

@media (max-width: 600px) {
	.kp3a-promo {
		padding: 44px 16px 60px;
		border-radius: 16px;
	}

	.kp3a-btn--participer {
		width: 100%;
		padding: 18px 20px;
		font-size: 19px;
	}

	.kp3a-modal {
		padding: 30px 22px 24px;
	}
}
