/*
 * /match/ — l'entonnoir en trois questions.
 *
 * Un écran = une question = un tap. Rien d'autre à l'écran, pas de menu, pas
 * de contenu à côté : ce qui fait aboutir un entonnoir, c'est qu'à chaque
 * étape il n'y a qu'une chose à faire.
 *
 * Les réponses sont de grosses cibles — 60 px de haut minimum, deux par ligne
 * sur mobile. Un choix qu'on hésite à toucher est un choix qu'on ne fait pas.
 */

/*
 * Univers /match/ : bleu nuit et bleu ciel. Ces variables restent limitées à
 * cette landing afin de ne pas recolorer /tonight/, qui partage le socle LP.
 */
.mt-page {
	--lp-bg: #071426;
	--lp-bg-2: #0b1d35;
	--lp-surface: #102a4a;
	--lp-surface-2: #173b64;
	--lp-line: rgba(183, 219, 255, .16);
	--lp-line-strong: rgba(47, 155, 255, .55);
	--lp-text: #f5faff;
	--lp-muted: #a9bed2;
	--lp-accent: #2f9bff;
	--lp-accent-2: #176bd1;
	--lp-secondary: #68c6ff;
}

body.mt-page {
	background:
		radial-gradient(90% 55% at 15% 0, rgba(47, 155, 255, .18), transparent 66%),
		radial-gradient(90% 58% at 100% 8%, rgba(104, 198, 255, .13), transparent 64%),
		var(--lp-bg);
}

.mt-page .lp-eyebrow { background: rgba(47, 155, 255, .14); }

.mt-page .lp-btn {
	box-shadow: 0 12px 30px -14px rgba(47, 155, 255, .7);
}

.mt-page .lp-form { background: #091c30; }

/* Le visuel TwinkLove est conçu sur blanc : le header reprend ce fond. */
.mt-offer--prelinker .lp-top {
	background: rgba(255, 255, 255, .97);
	border-bottom-color: #dbe7f3;
	color: #10243b;
	box-shadow: 0 4px 18px rgba(8, 35, 65, .1);
}

.mt-offer--prelinker .lp-top__age {
	border-color: #c9d8e6;
	background: #f4f8fc;
	color: #536b82;
}

.mt-offer--prelinker .lp-brand__logo-wrap {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.mt-offer--prelinker .lp-brand__logo { width: 112px; }

.mt-offer--manfinder .lp-top {
	background: rgba(7, 20, 38, .9);
	border-bottom-color: var(--lp-line);
}

.mt-main {
	min-height: 100vh;
	min-height: 100dvh;
	padding-top: 24px;
	padding-bottom: 40px;
}

.mt-screen { animation: mt-in .26s cubic-bezier(.2, .8, .2, 1) both; }

/*
 * L'attribut « hidden » ne pose qu'un « display: none » de feuille par défaut :
 * n'importe quelle règle de classe le bat. L'écran de calcul est en
 * « display: flex » — il restait donc affiché SOUS l'accroche, spinner compris,
 * et la page s'ouvrait sur deux écrans empilés.
 */
.mt-screen[hidden] { display: none !important; }

@keyframes mt-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* ---------- écran d'accroche ---------- */

.mt-teaser {
	position: relative;
	display: flex;
	margin: 22px 0 24px;
	gap: 10px;
}

.mt-teaser__shot {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	flex: 1 1 0;
	border: 1px solid var(--lp-line);
	border-radius: 14px;
	background: #08161f;
}

.mt-teaser__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Le voile. Les visages sont là mais retenus : c'est la question suivante qui
 * les révèle. Une promesse visible vaut mieux qu'une promesse écrite.
 */
.mt-teaser__veil {
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(6, 16, 24, .05), rgba(6, 16, 24, .84));
	backdrop-filter: blur(2px);
	pointer-events: none;
}

.mt-start { margin-top: 4px; }

/* ---------- progression ---------- */

.mt-progress {
	display: flex;
	margin: 0 0 20px;
	gap: 6px;
}

.mt-progress__dot {
	height: 4px;
	flex: 1 1 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .13);
	transition: background .24s ease;
}

.mt-progress__dot.is-on { background: var(--lp-accent); }

.mt-step {
	margin: 0 0 6px;
	color: var(--lp-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mt-question {
	margin: 0 0 22px;
	font-family: var(--lp-display);
	font-size: clamp(24px, 6.5vw, 32px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.03em;
	text-wrap: balance;
}

/* ---------- réponses ---------- */

.mt-choices {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-choice {
	min-height: 76px;
	padding: 14px 15px;
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	color: var(--lp-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-align: start;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, transform .12s ease;
}

.mt-choice:hover,
.mt-choice:focus-visible {
	border-color: var(--lp-line-strong);
	background: var(--lp-surface-2);
}

.mt-choice:active { transform: scale(.985); }

/* Le choix retenu reste marqué le temps de la transition : le tap se voit. */
.mt-choice.is-picked {
	border-color: transparent;
	background: linear-gradient(180deg, var(--lp-accent), var(--lp-accent-2));
	color: #fff;
}

.mt-back {
	min-height: 44px;
	margin: 18px 0 0;
	padding: 10px 4px;
	border: 0;
	background: transparent;
	color: var(--lp-muted);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- calcul ---------- */

.mt-computing {
	display: flex;
	min-height: 46vh;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.mt-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(47, 155, 255, .22);
	border-top-color: var(--lp-accent);
	border-radius: 50%;
	animation: mt-spin .8s linear infinite;
}

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

.mt-computing__text {
	margin: 0;
	color: var(--lp-muted);
	font-size: 14.5px;
}

/* ---------- résultat ---------- */

.mt-grid {
	display: grid;
	margin: 20px 0 22px;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mt-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border: 1px solid var(--lp-line);
	border-radius: 14px;
	background: #08161f;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	animation: mt-pop .3s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes mt-pop {
	from { opacity: 0; transform: scale(.94); }
	to { opacity: 1; transform: none; }
}

.mt-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mt-card__name {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 20px 8px 7px;
	background: linear-gradient(180deg, transparent, rgba(2, 10, 15, .9) 62%);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mt-card__dot {
	position: absolute;
	top: 7px;
	inset-inline-end: 7px;
	width: 9px;
	height: 9px;
	border: 2px solid rgba(2, 10, 15, .65);
	border-radius: 50%;
	background: var(--lp-online);
}

.mt-result__cta { margin-top: 2px; }

@media (min-width: 520px) {
	.mt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mt-choice { min-height: 84px; font-size: 16px; }
}
