/* ==========================================================================
   TILT — page « Votre profil TILT est prêt ! » (création de compte)
   Dernière page du questionnaire, avant le choix de la formule.
   ========================================================================== */

.tilt-register-wrapper {
	--tilt-gold: #b8935a;
	--tilt-gold-dark: #9a773f;
	--tilt-gold-light: #f5ede0;
	--tilt-black: #1a1a1a;
	--tilt-gray: #6b6b6b;
	--tilt-border: #e5ddd0;
	--tilt-cream: #faf6ef;
	--tilt-serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;

	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--tilt-black);
	box-sizing: border-box;
}

.tilt-register-wrapper *,
.tilt-register-wrapper *::before,
.tilt-register-wrapper *::after {
	box-sizing: border-box;
}

.tilt-register-wrapper-narrow {
	max-width: 460px;
	padding-top: 56px;
	text-align: center;
}

/* ---------- Photo de fond (box en bas à gauche, sous les réassurances) ---------- */
.tilt-register-stage {
	position: relative;
}

.tilt-register-bg {
	position: absolute;
	left: -20px;
	bottom: 0;
	width: min(900px, 70%);
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: left bottom;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
	/* Les 4 bords de la photo se fondent dans le fond crème de la page. */
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 62%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 62%, transparent 100%);
	mask-composite: intersect;
}

.tilt-register-stage-inner {
	position: relative;
	z-index: 1;
}

/* ---------- Progression 100 % ---------- */
.tilt-register-progress {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 620px;
	margin: 0 auto 28px;
}

.tilt-register-progress-bar {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--tilt-border);
	overflow: hidden;
}

.tilt-register-progress-fill {
	width: 100%;
	height: 100%;
	background: var(--tilt-gold);
}

.tilt-register-progress-pct {
	font-size: 14px;
	color: var(--tilt-gold);
}

/* ---------- En-tête ---------- */
.tilt-register-check {
	width: 52px;
	height: 52px;
	margin: 0 auto 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #cba66a, var(--tilt-gold-dark));
}

.tilt-register-check .tilt-register-icon {
	width: 26px;
	height: 26px;
	stroke-width: 2;
}

.tilt-register-title {
	text-align: center;
	font-family: var(--tilt-serif);
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 18px;
}

.tilt-register-subtitle {
	text-align: center;
	color: var(--tilt-gray);
	font-size: clamp(15px, 2.2vw, 19px);
	line-height: 1.55;
	max-width: 640px;
	margin: 0 auto 40px;
}

.tilt-register-subtitle strong {
	color: var(--tilt-black);
	font-weight: 600;
}

/* ---------- Deux colonnes ---------- */
.tilt-register-columns {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 40px;
	align-items: start;
}

.tilt-register-left {
	position: relative;
	padding-top: 28px;
	padding-bottom: 380px; /* laisse la box du fond visible sous les réassurances */
}

.tilt-register-script {
	font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", "Snell Roundhand", cursive;
	font-style: italic;
	font-size: 22px;
	line-height: 1.25;
	color: var(--tilt-gold-dark);
	transform: rotate(-6deg);
	transform-origin: left center;
	margin: 0 0 14px 4px;
}

.tilt-register-reassurance {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.tilt-register-reassurance li {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.tilt-register-reassurance li::before { content: none; }

.tilt-register-reassurance-icon {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tilt-gold-light);
	color: var(--tilt-gold-dark);
}

.tilt-register-reassurance-icon .tilt-register-icon {
	width: 28px;
	height: 28px;
}

.tilt-register-reassurance strong {
	display: block;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
}

.tilt-register-reassurance small {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--tilt-gray);
}

/* ---------- Carte formulaire ---------- */
.tilt-register-form {
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--tilt-border);
	border-radius: 22px;
	padding: 34px 30px 28px;
	box-shadow: 0 14px 40px rgba(60, 40, 10, 0.08);
}

.tilt-register-form-title {
	text-align: center;
	font-family: var(--tilt-serif);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.tilt-register-form-subtitle {
	text-align: center;
	color: var(--tilt-gray);
	font-size: 16px;
	margin: 0 0 28px;
}

.tilt-register-field {
	margin: 0 0 20px;
}

.tilt-register-field label {
	display: block;
	font-size: 14.5px;
	font-weight: 500;
	margin-bottom: 8px;
}

.tilt-register-input-wrap {
	position: relative;
	display: block;
}

.tilt-register-input-wrap .tilt-register-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	color: var(--tilt-black);
	pointer-events: none;
}

.tilt-register-input {
	width: 100%;
	height: 52px;
	border: 1px solid var(--tilt-border);
	border-radius: 12px;
	padding: 0 16px;
	font-size: 16px; /* 16px minimum : évite le zoom automatique d'iOS sur le focus */
	font-family: inherit;
	background: #fff;
	color: var(--tilt-black);
}

.tilt-register-input-wrap .tilt-register-input {
	padding-left: 52px;
}

.tilt-register-input:focus {
	outline: none;
	border-color: var(--tilt-gold);
	box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.18);
}

.tilt-register-input::placeholder { color: #9b9387; }

.tilt-register-info {
	font-size: 13px;
	color: var(--tilt-gray);
	background: var(--tilt-gold-light);
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0 0 18px;
}

.tilt-register-form .woocommerce-privacy-policy-text {
	margin: 0 0 30px;
}

.tilt-register-form .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tilt-gray);
}

.tilt-register-form .woocommerce-privacy-policy-text a {
	color: var(--tilt-gold-dark);
}

.tilt-register-submit-row {
	margin: 30px 0 0;
	text-align: center;
}

.tilt-register-submit {
	display: block;
	width: 100%;
	background: var(--tilt-black);
	color: #e9c98f;
	border: none;
	border-radius: 999px;
	padding: 17px 24px;
	font-size: 16px;
	font-weight: 500;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.tilt-register-submit:hover { opacity: 0.88; color: #e9c98f; }

.tilt-register-privacy {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--tilt-cream);
}

.tilt-register-privacy .tilt-register-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
}

.tilt-register-privacy p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--tilt-gray);
}

.tilt-register-privacy strong { color: var(--tilt-black); font-weight: 500; }

/* ---------- Et ensuite ? ---------- */
.tilt-register-next {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 44px;
	padding: 26px 32px;
	border-radius: 22px;
	background: var(--tilt-cream);
	border: 1px solid var(--tilt-border);
}

.tilt-register-next-icon {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tilt-gold-light);
	color: var(--tilt-gold-dark);
}

.tilt-register-next-icon .tilt-register-icon { width: 32px; height: 32px; }

.tilt-register-next-title {
	margin: 0 0 4px;
	font-family: var(--tilt-serif);
	font-size: 22px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tilt-register-next-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tilt-gray);
}

/* ---------- Notices WooCommerce ---------- */
.tilt-register-notices { margin-bottom: 16px; }

.tilt-register-notices:empty { display: none; }

.tilt-register-notices .woocommerce-error,
.tilt-register-notices .woocommerce-message {
	list-style: none;
	background: #fdeceb;
	color: #8a3b34;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	margin: 0 0 10px;
}

.tilt-register-already {
	text-align: center;
	color: var(--tilt-gray);
}

/* ---------- Tablette / mobile ---------- */
@media (max-width: 860px) {
	.tilt-register-columns {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	/* Sur mobile, le formulaire passe en premier (c'est l'action attendue) ;
	   les réassurances viennent juste après. */
	.tilt-register-right { order: -1; }

	.tilt-register-left { padding-top: 0; padding-bottom: 260px; }
	.tilt-register-script { display: none; }
	.tilt-register-bg { width: 100%; left: -10px; }
}

@media (max-width: 520px) {
	.tilt-register-wrapper { padding: 16px 16px 40px; }
	.tilt-register-progress { margin-bottom: 20px; }
	.tilt-register-check { width: 44px; height: 44px; margin-bottom: 16px; }
	.tilt-register-subtitle { margin-bottom: 26px; }
	.tilt-register-form { padding: 26px 18px 22px; border-radius: 18px; }
	.tilt-register-form-title { font-size: 23px; }
	.tilt-register-form-subtitle { margin-bottom: 22px; font-size: 15px; }
	.tilt-register-reassurance { gap: 16px; }
	.tilt-register-reassurance-icon { width: 52px; height: 52px; }
	.tilt-register-reassurance-icon .tilt-register-icon { width: 24px; height: 24px; }
	.tilt-register-reassurance strong { font-size: 15.5px; }
	.tilt-register-reassurance small { font-size: 13px; }
	.tilt-register-left { padding-bottom: 210px; }
	.tilt-register-bg { width: 125%; left: -12%; }
	.tilt-register-stage { overflow-x: clip; } /* évite tout défilement horizontal dû à la photo */
	.tilt-register-next { flex-direction: column; text-align: center; gap: 12px; padding: 22px 20px; margin-top: 28px; }
	.tilt-register-next-icon { width: 56px; height: 56px; }
	.tilt-register-next-text { font-size: 14.5px; }
}


/* ---- Période de naissance (liste déroulante) ---- */
.tilt-register-age-help {
	display: block;
	margin: 2px 0 8px;
	font-size: 13px;
	color: var(--tilt-gray);
}
.tilt-register-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23554f47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	text-overflow: ellipsis;
}
