/* ── LeadArcade — Frontend ─────────────────────────────────────────── */

/* ── Popup overlay (pour les triggers auto) ─────────────────────────── */
.la-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.la-popup-overlay.is-open {
	opacity: 1;
	pointer-events: all;
}

.la-popup-box {
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 100vh;
	overflow-y: auto;
}

/* ── Wrapper principal ────────────────────────────────────────────────── */
.la-wheel-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 40px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(440px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
	text-align: center;
}

/* ── Container canvas ────────────────────────────────────────────────── */
.la-wheel-canvas-container {
	position: relative;
	width: 350px;
	max-width: 100%;
	aspect-ratio: 1;
}

.la-wheel-canvas {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	transform-origin: center center;
	will-change: transform;
}

/* ── Pointeur ────────────────────────────────────────────────────────── */
.la-pointer {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 26px solid var(--la-pointer-color, #e74c3c);
	z-index: 2;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ── Bouton spin ─────────────────────────────────────────────────────── */
.la-spin-btn {
	padding: 14px 44px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	background: var(--la-btn-color, #f6a623);
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
	line-height: 1;
	font-family: inherit;
}
.la-spin-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.la-spin-btn:active:not(:disabled) {
	transform: translateY(0);
}
.la-spin-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ── Message d'erreur ────────────────────────────────────────────────── */
.la-error-message {
	color: #c0392b;
	font-size: 14px;
	margin: 0;
	text-align: center;
}

/* ── Modals (lead + prize) ───────────────────────────────────────────── */
.la-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.70);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 999995;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.la-modal-overlay.is-open {
	opacity: 1;
	pointer-events: all;
}

.la-modal {
	background: #ffffff;
	border-radius: 20px;
	padding: 40px 36px;
	max-width: 440px;
	width: calc(100% - 40px);
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: scale(0.88) translateY(16px);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.la-modal-overlay.is-open .la-modal {
	transform: scale(1) translateY(0);
}

.la-modal-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}

/* ── Lead form ───────────────────────────────────────────────────────── */
.la-lead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.la-lead-form input[type="email"],
.la-lead-form input[type="tel"],
.la-lead-form input[type="text"] {
	padding: 13px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s;
	width: 100%;
	box-sizing: border-box;
}
.la-lead-form input:focus {
	outline: none;
	border-color: var(--la-btn-color, #f6a623);
}
.la-gdpr {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	font-size: 13px;
	color: #555;
	cursor: pointer;
}
.la-gdpr input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: var(--la-btn-color, #f6a623);
}

/* ── Submit / close ──────────────────────────────────────────────────── */
.la-submit-btn {
	padding: 13px 30px;
	background: var(--la-btn-color, #f6a623);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s;
}
.la-submit-btn:hover { opacity: 0.88; }

.la-modal-cancel {
	background: none;
	border: none;
	color: #999;
	font-size: 13px;
	cursor: pointer;
	padding: 4px;
	font-family: inherit;
}
.la-modal-cancel:hover { color: #555; }

/* ── Prize modal ─────────────────────────────────────────────────────── */
.la-prize-icon {
	font-size: 52px;
	margin-bottom: 12px;
	animation: la-bounce 0.5s 0.1s both;
}
@keyframes la-bounce {
	0%   { transform: scale(0); }
	60%  { transform: scale(1.15); }
	100% { transform: scale(1); }
}

.la-prize-title {
	font-size: 24px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 10px;
}
.la-prize-message {
	font-size: 17px;
	color: #444;
	margin: 0 0 16px;
}
.la-prize-coupon {
	background: #f8f4e8;
	border: 2px dashed #d4a017;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 15px;
	color: #555;
	margin-bottom: 20px;
}
.la-coupon-label {
	font-size: 13px;
	color: #777;
}
.la-coupon-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 6px;
}
.la-coupon-code {
	font-size: 22px;
	font-family: "Courier New", monospace;
	letter-spacing: 3px;
	color: #1a1a1a;
	user-select: all;
}
.la-copy-btn {
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	border: 1.5px solid #d4a017;
	border-radius: 6px;
	background: transparent;
	color: #d4a017;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}
.la-copy-btn:hover {
	background: #d4a017;
	color: #fff;
}
.la-copy-btn.copied {
	background: #27ae60;
	border-color: #27ae60;
	color: #fff;
}
.la-double-optin-msg {
	font-size: 14px;
	color: #2271b1;
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	padding: 10px 14px;
	border-radius: 4px;
	margin: 0 0 16px;
	text-align: left;
}

/* ── Confetti canvas (généré dynamiquement par JS) ───────────────────── */
#la-confetti-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 999999;
}

/* ── Bouton fermer (injecté par popup-queue.js) ──────────────────────── */
.la-queue-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}
.la-queue-close:hover {
	background: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.la-wheel-canvas-container { width: 100%; }
	.la-modal { padding: 28px 20px; }
	.la-spin-btn { padding: 13px 32px; font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Quiz Éclair (Trivia) — Redesign complet
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Carte principale ─────────────────────────────────────────────────── */
.la-trivia-wrapper {
	background: #ffffff;
	border-radius: 20px;
	width: min(500px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
}

/* ── Écrans (padding commun) ──────────────────────────────────────────── */
.la-trivia-screen {
	padding: 40px 36px 36px;
}

/* ── Écran démarrage ──────────────────────────────────────────────────── */
.la-trivia-start {
	text-align: center;
}

.la-trivia-icon {
	font-size: 64px;
	display: block;
	margin-bottom: 16px;
	animation: la-bounce 0.5s 0.1s both;
}

.la-trivia-title {
	font-size: 26px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 12px;
	letter-spacing: -0.4px;
}

.la-trivia-intro {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 32px;
	line-height: 1.65;
}

/* ── Barre de progression ─────────────────────────────────────────────── */
.la-trivia-progress {
	margin-bottom: 28px;
}

.la-trivia-progress-text {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.la-trivia-progress-bar {
	height: 6px;
	background: #f1f5f9;
	border-radius: 999px;
	overflow: hidden;
}

.la-trivia-progress-fill {
	height: 100%;
	background: var(--la-accent, #f6a623);
	border-radius: 999px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	width: 0%;
}

/* ── Texte de question ────────────────────────────────────────────────── */
.la-trivia-question-text {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 22px;
	line-height: 1.55;
	min-height: 28px;
}

/* ── Grille de réponses ───────────────────────────────────────────────── */
.la-trivia-answers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 22px;
}

.la-trivia-answer-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	line-height: 1.4;
	min-height: 58px;
	transition: border-color 0.15s ease, background 0.15s ease,
	            transform 0.12s ease, box-shadow 0.15s ease;
}

.la-trivia-answer-label {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.la-trivia-answer-text {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.la-trivia-answer-btn:hover:not(:disabled) {
	border-color: var(--la-accent, #f6a623);
	background: #fffdf5;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.la-trivia-answer-btn:hover:not(:disabled) .la-trivia-answer-label {
	background: var(--la-accent, #f6a623);
	color: #fff;
}

.la-trivia-answer-btn:disabled {
	cursor: default;
	transform: none;
	box-shadow: none;
}

/* ── États correct / faux ─────────────────────────────────────────────── */
.la-trivia-answer-btn.la-trivia-correct {
	border-color: #10b981;
	background: #ecfdf5;
	color: #065f46;
}

.la-trivia-answer-btn.la-trivia-correct .la-trivia-answer-label {
	background: #10b981;
	color: #fff;
}

.la-trivia-answer-btn.la-trivia-wrong {
	border-color: #ef4444;
	background: #fef2f2;
	color: #991b1b;
}

.la-trivia-answer-btn.la-trivia-wrong .la-trivia-answer-label {
	background: #ef4444;
	color: #fff;
}

/* ── Explication ──────────────────────────────────────────────────────── */
.la-trivia-explanation {
	background: #f0f9ff;
	border-left: 4px solid #38bdf8;
	border-radius: 0 10px 10px 0;
	padding: 12px 16px;
	font-size: 14px;
	color: #0369a1;
	margin: 0 0 20px;
	line-height: 1.55;
}

/* ── Boutons de navigation ────────────────────────────────────────────── */
.la-trivia-btn {
	display: block;
	width: 100%;
	padding: 16px 24px;
	background: var(--la-accent, #f6a623);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	letter-spacing: 0.3px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.la-trivia-btn:hover:not(:disabled) {
	opacity: 0.92;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.la-trivia-btn:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.la-trivia-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ── Écran résultat ───────────────────────────────────────────────────── */
.la-trivia-result {
	text-align: center;
	padding: 48px 36px 44px;
}

.la-trivia-score-display {
	margin-bottom: 20px;
}

.la-trivia-result-icon {
	font-size: 58px;
	margin-bottom: 14px;
	display: block;
	animation: la-bounce 0.5s 0.1s both;
}

.la-trivia-result-score {
	font-size: 60px;
	font-weight: 900;
	color: var(--la-accent, #f6a623);
	letter-spacing: -2px;
	line-height: 1;
	margin-bottom: 6px;
}

.la-trivia-result-score span {
	font-size: 30px;
	font-weight: 600;
	color: #cbd5e1;
	letter-spacing: 0;
}

.la-trivia-result-msg {
	font-size: 17px;
	font-weight: 600;
	color: #64748b;
	margin: 0;
}

.la-trivia-won  { color: #10b981; }
.la-trivia-lost { color: #94a3b8; }

/* Message d'erreur dans le contexte trivia */
.la-trivia-start .la-error-message {
	margin: 0;
	padding: 10px 16px;
	background: #fef2f2;
	border-radius: 8px;
	color: #991b1b;
	font-size: 14px;
	text-align: center;
}

/* ── Responsive trivia ────────────────────────────────────────────────── */
@media (max-width: 440px) {
	.la-trivia-screen   { padding: 28px 20px 24px; }
	.la-trivia-result   { padding: 36px 20px 32px; }
	.la-trivia-answers  { grid-template-columns: 1fr; }
	.la-trivia-question-text { font-size: 16px; }
	.la-trivia-title    { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Cartes à Gratter — Redesign fond blanc
   ═══════════════════════════════════════════════════════════════════════ */

.la-scratch-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 40px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(440px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
	text-align: center;
}

.la-scratch-container {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.la-scratch-canvas {
	display: block;
	width: 100%;
	/* Doit être au-dessus de la prize-layer pour que le grattage soit visible */
	position: relative;
	z-index: 2;
	cursor: crosshair;
	border-radius: 16px;
}

.la-scratch-prize-layer {
	/* Couche cachée SOUS le canvas — révélée par grattage.
	   Le JS fixe width/height via inline style (cf. _sizeCanvas()).
	   On positionne simplement en haut-gauche du container. */
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fff9e6 0%, #fff0c8 100%);
	border-radius: 16px;
}

.la-scratch-prize-text {
	font-size: 26px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0;
	padding: 20px;
	text-align: center;
	line-height: 1.35;
}

/* ── Bouton "Jouer" (scratch) ─────────────────────────────────────────── */
.la-play-btn {
	padding: 16px 44px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.4px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	background: var(--la-btn-color, #f6a623);
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
	line-height: 1;
	font-family: inherit;
}
.la-play-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.la-play-btn:active:not(:disabled) {
	transform: translateY(0);
}
.la-play-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.la-scratch-hint {
	font-size: 14px;
	color: #64748b;
	margin: 0;
	font-style: italic;
}

@media (max-width: 440px) {
	.la-scratch-wrapper { padding: 28px 20px 32px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mystery Box — Redesign fond blanc (styles déplacés depuis template PHP)
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes la-shake {
	0%, 100% { transform: rotate(0deg); }
	20%      { transform: rotate(-6deg); }
	40%      { transform: rotate(6deg); }
	60%      { transform: rotate(-4deg); }
	80%      { transform: rotate(4deg); }
}
@keyframes la-pop-open {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.25) rotate(-5deg); }
	70%  { transform: scale(0.92) rotate(3deg); }
	100% { transform: scale(1) rotate(0deg); }
}

.la-mystery-wrapper {
	text-align: center;
	padding: 40px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(460px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
}

.la-mystery-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-bottom: 24px;
}

.la-mystery-box {
	cursor: pointer;
	user-select: none;
	transition: transform 0.15s ease;
}

.la-mystery-box:hover:not(.is-open) {
	animation: la-shake 0.5s ease;
}

.la-mystery-box-inner {
	position: relative;
	width: 90px;
	height: 90px;
	perspective: 400px;
}

.la-mystery-box-front,
.la-mystery-box-back {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	border-radius: 16px;
	background: #f0f4ff;
	border: 2px solid #c8d5f0;
	backface-visibility: hidden;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.la-mystery-box-back {
	transform: rotateY(180deg);
	background: #fff8e1;
	border-color: #ffe082;
}

.la-mystery-box.is-open .la-mystery-box-front {
	transform: rotateY(-180deg);
}

.la-mystery-box.is-open .la-mystery-box-back {
	transform: rotateY(0deg);
}

.la-mystery-box.is-open {
	animation: la-pop-open 0.6s ease forwards;
}

.la-mystery-box.is-winner .la-mystery-box-back {
	background: #e8f5e9;
	border-color: #66bb6a;
	box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.25), 0 4px 16px rgba(102, 187, 106, 0.30);
}

.la-mystery-box-label {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-align: center;
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.la-mystery-hint {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 20px;
	line-height: 1.5;
}

.la-mystery-btn {
	display: inline-block;
	padding: 14px 40px;
	background: var(--la-btn-color, #f6a623);
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
}
.la-mystery-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.la-mystery-btn:active:not(:disabled) {
	transform: translateY(0);
}
.la-mystery-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 440px) {
	.la-mystery-wrapper { padding: 28px 20px 32px; }
	.la-mystery-box-inner { width: 76px; height: 76px; }
	.la-mystery-box-front,
	.la-mystery-box-back { font-size: 2.4rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Machine à Sous — Redesign fond blanc
   ═══════════════════════════════════════════════════════════════════════ */

.la-slot-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 40px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(420px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
	text-align: center;
}

.la-slot-machine {
	width: 100%;
}

/* ── Boîtier des rouleaux ─────────────────────────────────────────────── */
.la-slot-reels {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	background: #0f172a;
	border-radius: 18px;
	padding: 20px;
	box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.55),
	            0 6px 20px rgba(0, 0, 0, 0.20);
}

/* ── Fenêtre d'un rouleau ─────────────────────────────────────────────── */
.la-slot-reel {
	overflow: hidden;
	position: relative;
	border-radius: 14px;
	background: #1e293b;
	border: 2px solid #334155;
	box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.45),
	            inset 0 -4px 10px rgba(0, 0, 0, 0.45);
}

/* Reflets haut/bas sur la fenêtre du rouleau */
.la-slot-reel::before,
.la-slot-reel::after {
	content: '';
	position: absolute;
	left: 0; right: 0;
	height: 28%;
	z-index: 2;
	pointer-events: none;
}
.la-slot-reel::before {
	top: 0;
	background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), transparent);
}
.la-slot-reel::after {
	bottom: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
}

.la-reel-inner {
	display: flex;
	flex-direction: column;
	transform: translateY(0);
	will-change: transform;
}

.la-slot-symbol {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ── Ligne de gain ────────────────────────────────────────────────────── */
.la-slot-win-line {
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--la-btn-color, #f6a623), transparent);
	margin: 6px 20px;
	opacity: 0.6;
	border-radius: 999px;
}

/* ── Message de défaite ───────────────────────────────────────────────── */
.la-slot-lose-msg {
	font-size: 14px;
	font-weight: 600;
	color: #ef4444;
	margin: 0;
	padding: 10px 16px;
	background: #fef2f2;
	border-radius: 10px;
}

@media (max-width: 440px) {
	.la-slot-wrapper  { padding: 28px 16px 32px; }
	.la-slot-reels    { padding: 14px; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Calendrier de Déblocage — Design épuré
   ═══════════════════════════════════════════════════════════════════════ */

.la-calendar-wrapper {
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	background: #ffffff;
	border-radius: 20px;
	padding: 36px 32px 40px;
	width: min(640px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

.la-calendar-empty {
	color: #94a3b8;
	font-size: 15px;
	text-align: center;
	padding: 48px 0;
	margin: 0;
}

.la-calendar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 12px;
}

.la-calendar-day {
	position: relative;
	aspect-ratio: 1;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 8px 6px;
	text-align: center;
	user-select: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.la-calendar-day.is-past:hover,
.la-calendar-day.is-today:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
	border-color: var(--la-accent, #f6a623);
}

.la-calendar-day.is-today {
	border-color: var(--la-accent, #f6a623);
	background: #fffdf5;
	box-shadow: 0 0 0 3px rgba(246, 166, 35, 0.15);
}

.la-calendar-day.is-opened {
	background: #ecfdf5;
	border-color: #10b981;
	cursor: default;
}

.la-calendar-day.is-future {
	opacity: 0.42;
	cursor: not-allowed;
	pointer-events: none;
}

.la-calendar-day.is-locked {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.la-day-number {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.la-calendar-day.is-future .la-day-number,
.la-calendar-day.is-opened .la-day-number {
	color: #94a3b8;
}

.la-day-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	margin-top: 5px;
	line-height: 1.2;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   Jeu de Mémoire — Design popup blanc
   ═══════════════════════════════════════════════════════════════════════ */

.la-memory-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 36px 28px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(520px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0,0,0,0.20);
}

.la-memory-header {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 0 4px;
}

.la-memory-stat {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
}

.la-memory-stat strong {
	color: var(--la-accent, #f6a623);
	font-weight: 800;
}

.la-memory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 10px;
	width: 100%;
}

.la-memory-card {
	aspect-ratio: 1;
	perspective: 600px;
	cursor: pointer;
	border-radius: 12px;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.la-memory-card-inner {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.35s ease;
	border-radius: 12px;
}

.la-memory-card.la-flipped .la-memory-card-inner,
.la-memory-card.la-matched .la-memory-card-inner {
	transform: rotateY(180deg);
}

.la-memory-card-front,
.la-memory-card-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.la-memory-card-front {
	background: var(--la-accent, #f6a623);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	box-shadow: 0 3px 10px rgba(0,0,0,0.15);
	transition: transform 0.12s ease;
}

.la-memory-card:hover:not(.la-flipped):not(.la-matched) .la-memory-card-front {
	transform: translateY(-2px) rotateY(0);
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.la-memory-card-back {
	background: #fff;
	transform: rotateY(180deg);
	border: 2px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.la-memory-card.la-matched .la-memory-card-back {
	background: #f0fdf4;
	border-color: #22c55e;
	box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

.la-memory-actions {
	width: 100%;
	display: flex;
	justify-content: center;
}

@media (max-width: 480px) {
	.la-memory-wrapper { padding: 24px 16px 24px; }
	.la-memory-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
}

/* Icônes état — masquées par défaut, affichées par état CSS */
.la-day-lock,
.la-day-opened {
	display: none;
	position: absolute;
	top: 6px;
	right: 6px;
	font-size: 13px;
	line-height: 1;
}

.la-calendar-day.is-future .la-day-lock,
.la-calendar-day.is-locked .la-day-lock {
	display: block;
}

.la-calendar-day.is-opened .la-day-opened {
	display: block;
	color: #10b981;
	font-weight: 800;
}

@media (max-width: 480px) {
	.la-calendar-wrapper { padding: 24px 16px 28px; }
	.la-calendar-grid    { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
	.la-day-number       { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Easter Eggs — Compteur et badge flottant
   ═══════════════════════════════════════════════════════════════════════ */

.la-easter-counter {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99991;
	background: #ffffff;
	color: #1e293b;
	border: 2px solid #e2e8f0;
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	cursor: default;
	user-select: none;
	transition: opacity 0.3s, transform 0.3s;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.la-easter-counter .la-easter-count {
	color: var(--la-accent, #f6a623);
}

/* ── Bandeau d'annonce Easter ──────────────────────────────────────────── */

.la-easter-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99995;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 48px 10px 20px;
	font-size: 14px;
	font-weight: 600;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.la-easter-banner.is-hidden {
	transform: translateY( -100% );
	opacity: 0;
	pointer-events: none;
}

.la-easter-banner-text {
	flex: 1;
	text-align: center;
}

.la-easter-banner-close {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY( -50% );
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 4px;
	opacity: 0.65;
	transition: opacity 0.2s;
	color: inherit;
}

.la-easter-banner-close:hover {
	opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   Plinko — Design popup blanc
   ═══════════════════════════════════════════════════════════════════════ */

.la-plinko-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 40px 32px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(460px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
	text-align: center;
}

.la-plinko-canvas {
	display: block;
	width: 100%;
	max-width: 380px;
	background: #0f172a;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.25);
	margin-bottom: 24px;
}


.la-plinko-actions {
	width: 100%;
	display: flex;
	justify-content: center;
}

.la-plinko-btn {
	padding: 14px 44px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	background: var(--la-btn-color, #f6a623);
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
	line-height: 1;
	font-family: inherit;
}
.la-plinko-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.la-plinko-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.la-plinko-wrap { padding: 28px 16px 24px; }
	.la-plinko-slot-label { font-size: 9px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Memory — Wrapper popup blanc
   ═══════════════════════════════════════════════════════════════════════ */

.la-memory-wrapper {
	display: flex;
	flex-direction: column;
	padding: 40px 32px 32px;
	background: #ffffff;
	border-radius: 20px;
	width: min(500px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overflow-x: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
}

/* ═══════════════════════════════════════════════════════════════════════
   Responsive mobile — tous modules
   ═══════════════════════════════════════════════════════════════════════ */

/* Popup overlay : plein écran sur mobile */
@media (max-width: 600px) {
	.la-popup-overlay {
		align-items: flex-end;
	}
	.la-popup-overlay > *,
	.la-popup-box {
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 20px 20px 0 0 !important;
		max-height: 92vh;
		overflow-y: auto;
	}
	.la-queue-close {
		top: 12px;
		right: 12px;
	}
}

/* Boutons : zone de tap minimum 44px */
.la-spin-btn,
.la-submit-btn,
.la-play-btn,
.la-mystery-btn,
.la-trivia-btn,
.la-memory-start-btn,
.la-plinko-btn,
.la-calendar-day {
	min-height: 44px;
	touch-action: manipulation;
}

/* Empêcher zoom sur double-tap */
button, a {
	touch-action: manipulation;
}

@media (max-width: 480px) {
	/* Roue */
	.la-wheel-wrapper        { padding: 24px 16px 28px; gap: 20px; }
	.la-wheel-canvas-container { width: min(280px, 100%); }
	.la-spin-btn             { padding: 14px 32px; font-size: 15px; width: 100%; }

	/* Carte à gratter */
	.la-scratch-wrapper      { padding: 24px 16px 28px; }

	/* Mystery Box */
	.la-mystery-wrapper      { padding: 24px 16px 28px; }
	.la-mystery-box-inner    { width: 72px; height: 72px; }
	.la-mystery-box-front,
	.la-mystery-box-back     { font-size: 2.2rem; }

	/* Machine à sous */
	.la-slot-wrapper         { padding: 24px 12px 28px; }
	.la-slot-reels           { padding: 12px; gap: 6px; }

	/* Trivia */
	.la-trivia-screen        { padding: 24px 16px 20px; }
	.la-trivia-result        { padding: 32px 16px 28px; }
	.la-trivia-answers       { grid-template-columns: 1fr; }
	.la-trivia-title         { font-size: 20px; }
	.la-trivia-question-text { font-size: 15px; }

	/* Calendrier */
	.la-calendar-wrapper     { padding: 20px 12px 24px; }
	.la-calendar-grid        { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
	.la-day-number           { font-size: 18px; }

	/* Plinko */
	.la-plinko-wrap          { padding: 24px 12px 20px; }
	.la-plinko-btn           { width: 100%; padding: 14px 20px; font-size: 15px; }

	/* Memory */
	.la-memory-wrapper       { padding: 20px 12px 20px; gap: 12px; }

	/* Modals */
	.la-modal                { padding: 28px 18px; }
	.la-prize-title          { font-size: 20px; }
	.la-prize-message        { font-size: 15px; }
	.la-coupon-code          { font-size: 18px; }
}

