/* ==========================================================================
   TILT Formule — page de choix de budget (après création de compte)
   ========================================================================== */

.tilt-f-wrapper {
	--tilt-gold: #b8935a;
	--tilt-gold-light: #f5ede0;
	--tilt-black: #1a1a1a;
	--tilt-gray: #6b6b6b;
	--tilt-border: #e5ddd0;

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

.tilt-f-eyebrow {
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tilt-gold);
	margin: 0 0 12px;
}

.tilt-f-title {
	text-align: center;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 16px;
}

.tilt-f-title span {
	color: var(--tilt-gold);
	font-style: italic;
}

.tilt-f-subtitle {
	text-align: center;
	color: var(--tilt-gray);
	font-size: 15px;
	line-height: 1.5;
	max-width: 640px;
	margin: 0 auto 44px;
}

.tilt-f-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 780px) {
	.tilt-f-cards { grid-template-columns: 1fr; }
}

.tilt-f-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--tilt-border);
	border-radius: 16px;
	padding: 36px 24px 30px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.tilt-f-card:focus-visible {
	outline: 2px solid var(--tilt-gold);
	outline-offset: 2px;
}

.tilt-f-card.has-badge {
	border-color: var(--tilt-gold);
}

.tilt-f-card.is-selected {
	border-color: var(--tilt-gold);
	background: var(--tilt-gold-light);
}

.tilt-f-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--tilt-gold);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.08em;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.tilt-f-icon {
	font-size: 26px;
	color: var(--tilt-gold);
	display: block;
	margin-bottom: 14px;
}

.tilt-f-name {
	font-size: 20px;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
}

.tilt-f-tagline {
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--tilt-gray);
	margin: 0 0 20px;
}

.tilt-f-desc {
	font-size: 13.5px;
	color: var(--tilt-gray);
	line-height: 1.5;
	min-height: 60px;
	margin: 0 0 18px;
}

.tilt-f-price {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 18px;
}

.tilt-f-radio {
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--tilt-border);
}

.tilt-f-card.is-selected .tilt-f-radio {
	border-color: var(--tilt-gold);
	background: var(--tilt-gold);
	box-shadow: inset 0 0 0 4px #fff;
}

/* Cartes avec photo de fond (bois / terrazzo / marbre selon la formule).
   L'image vit dans un calque ::before indépendant : seule l'image zoome légèrement
   au survol/sélection, la carte (bordure, texte, badge) ne bouge jamais. */
.tilt-f-card-photo {
	background-color: #1a1a1a; /* fallback pendant le chargement de l'image */
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	overflow: hidden;
	min-height: 380px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.tilt-f-card-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--tilt-f-bg);
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform 0.5s ease;
	z-index: 0;
}

.tilt-f-card-photo:hover::before,
.tilt-f-card-photo.is-selected::before {
	transform: scale(1.05); /* mini zoom volontaire, contenu par overflow:hidden — la carte ne bouge pas */
}

.tilt-f-card-photo > *:not(.tilt-f-badge) {
	position: relative;
	z-index: 1;
}

.tilt-f-card-photo .tilt-f-badge {
	z-index: 2; /* reste au-dessus du calque photo tout en gardant son position:absolute existant */
}

.tilt-f-card-photo:hover {
	border-color: rgba(255, 255, 255, 0.35);
}

.tilt-f-card-photo.has-badge {
	border-color: var(--tilt-gold);
}

.tilt-f-card-photo.is-selected {
	border-color: var(--tilt-gold);
	background-color: #1a1a1a;
	box-shadow: 0 0 0 2px var(--tilt-gold);
}

.tilt-f-card-photo .tilt-f-icon {
	color: var(--tilt-gold);
}

.tilt-f-card-photo .tilt-f-name,
.tilt-f-card-photo .tilt-f-price {
	color: #fff;
}

.tilt-f-card-photo .tilt-f-tagline {
	color: rgba(255, 255, 255, 0.78);
}

.tilt-f-card-photo .tilt-f-desc {
	color: rgba(255, 255, 255, 0.85);
}

.tilt-f-card-photo .tilt-f-radio {
	border-color: rgba(255, 255, 255, 0.6);
}

.tilt-f-card-photo.is-selected .tilt-f-radio {
	border-color: var(--tilt-gold);
	background: var(--tilt-gold);
	box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.9);
}

@media (max-width: 780px) {
	.tilt-f-card-photo {
		min-height: 320px;
	}
}

.tilt-f-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	background: #faf7f2;
	border-radius: 14px;
	padding: 24px 28px;
	margin: 40px 0;
	color: var(--tilt-gray);
}

.tilt-f-info-main {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-width: 220px;
}

.tilt-f-info-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--tilt-gold);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.tilt-f-info-title {
	color: var(--tilt-black);
	font-weight: 600;
	font-size: 16px;
	margin: 0 0 2px;
}

.tilt-f-info-subtitle {
	font-size: 13.5px;
	margin: 0;
}

.tilt-f-info-divider {
	width: 1px;
	align-self: stretch;
	background: var(--tilt-border);
}

.tilt-f-info-items {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.tilt-f-info-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	font-size: 12.5px;
	max-width: 110px;
}

.tilt-f-info-item-icon {
	font-size: 20px;
}

@media (max-width: 640px) {
	.tilt-f-info {
		flex-direction: column;
		align-items: stretch;
	}
	.tilt-f-info-divider {
		width: 100%;
		height: 1px;
	}
	.tilt-f-info-items {
		justify-content: center;
	}
}

.tilt-f-nav {
	text-align: center;
}

.tilt-f-submit {
	background: var(--tilt-black);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 15px 36px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tilt-f-submit:hover {
	opacity: 0.85;
}

.tilt-f-submit:disabled {
	opacity: 0.6;
	cursor: default;
}


/* ---------- Résumé du profil (au-dessus du choix de formule) ---------- */
.tilt-f-recap {
	max-width: 820px;
	margin: 0 auto 40px;
	padding: 24px 28px;
	background: var(--tilt-cream, #faf6ef);
	border: 1px solid var(--tilt-border);
	border-radius: 18px;
}

.tilt-f-recap-title {
	margin: 0 0 14px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tilt-gold);
	text-align: center;
}

.tilt-f-recap-row {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 9px 0;
	border-top: 1px solid var(--tilt-border);
}

.tilt-f-recap-row:first-of-type { border-top: none; }

.tilt-f-recap-label {
	flex: 0 0 190px;
	font-size: 13.5px;
	color: var(--tilt-gray);
}

.tilt-f-recap-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tilt-f-recap-chip {
	background: #fff;
	border: 1px solid var(--tilt-border);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.tilt-f-recap { padding: 18px 16px; margin-bottom: 28px; }
	.tilt-f-recap-row { flex-direction: column; gap: 6px; }
	.tilt-f-recap-label { flex: none; }
}


/* ---- Formules « à offrir » : destinataire + petit mot ---- */
.tilt-f-gift-fields {
	max-width: 640px;
	margin: 0 auto 32px;
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	box-sizing: border-box;
	position: relative;
}
.tilt-f-gift-heading {
	margin: 0 0 14px;
	font-weight: 600;
	font-size: 1.05rem;
}
.tilt-f-gift-label {
	display: block;
	margin: 14px 0 6px;
	font-size: 0.9rem;
	font-weight: 500;
}
.tilt-f-gift-label span {
	font-weight: 400;
	opacity: 0.65;
}
.tilt-f-gift-recipient,
.tilt-f-gift-message {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	font: inherit;
	background: #fff;
}
.tilt-f-gift-recipient:focus,
.tilt-f-gift-message:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}
.tilt-f-gift-count {
	display: block;
	text-align: right;
	font-size: 0.75rem;
	opacity: 0.6;
	margin-top: 4px;
}
.tilt-f-gift-privacy {
	margin: 14px 0 0;
	font-size: 0.8rem;
	opacity: 0.7;
}
a.tilt-f-submit {
	display: inline-block;
	text-decoration: none;
}
