/*
 * tdn-promise-section — Phase C.6 Bloc 2 Page Entreprises (La Promesse)
 *
 * Section pink-50 avec :
 *   - Header eyebrow "— LA PROMESSE —" + H2 3 lignes (split text)
 *   - 2 sous-blocs alternés (text-left / text-right) : texte + polaroid stack
 *   - Citations (1 mark guillemet abs, 1 bordered left pink)
 *   - Phrase finale Heavy + italic accent pink
 *
 * Spec Figma : node 8115:2206. Pattern générique réutilisable potentiel KP/PS.
 */

/* ===== 1. Section root ============================================ */
.tdn-promise-section {
	background: var(--tdn-color-pink-50, #FEF6F9);
	padding: 80px 0;
	font-family: var(--tdn-font-family-brand, 'Nunito Sans', sans-serif);
}

.tdn-promise-section__inner {
	max-width: 1442px;
	margin: 0 auto;
	padding: 0 52px;
}

/* ===== 2. Header (eyebrow + title) ================================
 * Figma : flex gap 200px items-start (eyebrow gauche + H2 décalé à droite).
 * Le gap 200px positionne H2 à x=434 du container = mesure Figma exacte. */
.tdn-promise-section__header {
	display: flex;
	gap: 200px;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 80px;
}

/* Eyebrow */
.tdn-promise-section__eyebrow {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-shrink: 0;
	padding-top: 12px;
}

.tdn-promise-section__eyebrow-dash {
	display: block;
	width: 32px;
	height: 1px;
	background: var(--tdn-color-pink-200, #C06D80);
	flex-shrink: 0;
}

.tdn-promise-section__eyebrow-text {
	font-weight: var(--tdn-eyebrow-weight);
	font-size: 16px;
	letter-spacing: var(--tdn-letter-spacing-wider);
	text-transform: uppercase;
	color: var(--tdn-color-pink-200, #C06D80);
	white-space: nowrap;
	font-style: normal;
}

/* H2 title */
.tdn-promise-section__title {
	margin: 0;
	display: flex;
	flex-direction: column;
	font-weight: var(--tdn-h2-weight);
	font-size: clamp(40px, 4.5vw, 60px);
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--tdn-color-neutral-900, #2A2827);
	font-style: normal;
}

.tdn-promise-section__title-line {
	display: block;
}

.tdn-promise-section__title-italic {
	font-style: italic;
	color: var(--tdn-color-pink-500, #C06D80);
}

/* ===== 3. Row layout (text + photo) =============================== */
.tdn-promise-section__row {
	display: flex;
	gap: 60px;
	align-items: center;
	margin-bottom: 24px;
}

.tdn-promise-section__row:last-child {
	margin-bottom: 0;
}

/* --text-right : pas de flex-direction reverse. Le markup natif [photo, text]
 * donne visuellement photo gauche / texte droite (= layout inversé sub-bloc 2). */
.tdn-promise-section__row--text-right {
	/* hook BEM uniquement, pas de transform CSS */
}

/* ===== 4. Text column ============================================= */
.tdn-promise-section__text {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.tdn-promise-section__row--text-right .tdn-promise-section__text {
	gap: 40px;
}

.tdn-promise-section__paragraph {
	margin: 0;
	font-weight: var(--tdn-font-weight-medium);
	font-size: 18px;
	line-height: 1.5;
	color: var(--tdn-color-midnight-900, #1A1A2E);
	font-style: normal;
}

.tdn-promise-section__paragraph--neutral {
	color: var(--tdn-color-neutral-900, #2A2827);
}

/* ===== 5. Quote (sub-block 1, with floating « mark) ===============
 * Reset complet : pas de border-left ni style blockquote default WP.
 * Markup utilise <div> (pas <blockquote>) pour éviter cascade native. */
.tdn-promise-section__quote {
	position: relative;
	padding-left: 48px;
	padding-top: 0;
	margin: 0;
	border: 0;
	background: none;
}

.tdn-promise-section__quote-mark {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-family: 'Playfair Display', 'Georgia', serif;
	font-style: italic;
	font-size: 72px;
	line-height: 1;
	color: var(--tdn-color-pink-500, #C06D80);
}

.tdn-promise-section__quote-text {
	margin: 0;
	font-weight: var(--tdn-h2-weight);
	font-style: italic;
	font-size: clamp(22px, 2.5vw, 32px);
	line-height: 1.5;
	color: var(--tdn-color-pink-500, #C06D80);
}

/* Quote variant : bordered left (sub-block 2)
 * max-width 549px = spec Figma exacte pour wrap 3 lignes (sinon wrap 2 lignes). */
.tdn-promise-section__quote--bordered {
	padding-left: 28px;
	padding-top: 0;
	border-left: 4px solid var(--tdn-color-pink-500, #C06D80);
	max-width: 581px; /* 549 + 28 padding-left + 4 border */
}

.tdn-promise-section__quote--bordered .tdn-promise-section__quote-text {
	font-weight: var(--tdn-font-weight-medium);
	font-style: normal;
	font-size: 18px;
	line-height: 1.5;
	color: var(--tdn-color-midnight-900, #1A1A2E);
}

/* ===== 6. Final phrase (sub-block 2 only) ========================= */
.tdn-promise-section__final {
	margin: 0;
	font-weight: var(--tdn-h2-weight);
	font-size: clamp(22px, 2.5vw, 32px);
	line-height: 1.25;
	letter-spacing: -0.03em;
	color: var(--tdn-color-neutral-900, #2A2827);
	font-style: normal;
}

.tdn-promise-section__final-italic {
	font-style: italic;
	color: var(--tdn-color-pink-500, #C06D80);
}

/* ===== 7. Photo (polaroid stack) ================================== */
.tdn-promise-section__photo {
	flex-shrink: 0;
	position: relative;
	width: 595px;
	height: 532px;
	margin: 0;
}

/* Carte vide derrière (rotated -9.61deg) */
.tdn-promise-section__photo-shadow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 527px;
	height: 450px;
	background: #fff;
	border-radius: 32px;
	transform: translate(-50%, -50%) rotate(-9.61deg);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
	pointer-events: none;
	z-index: 1;
}

/* Photo principale dessus */
.tdn-promise-section__photo-card {
	position: absolute;
	top: 25px;
	left: 42px;
	width: 527px;
	height: 450px;
	background: #fff;
	border-radius: 32px;
	padding: 16px;
	box-shadow: 0 14px 16px rgba(0, 0, 0, 0.10);
	z-index: 2;
	box-sizing: border-box;
	overflow: hidden;
}

.tdn-promise-section__photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* ===== 8. Responsive <1024 (tablette) ============================= */
@media (max-width: 1023px) {
	.tdn-promise-section {
		padding: 60px 0;
	}

	.tdn-promise-section__inner {
		padding: 0 32px;
	}

	.tdn-promise-section__header {
		flex-direction: column;
		gap: 40px;
		margin-bottom: 60px;
	}

	.tdn-promise-section__title {
		font-size: 44px;
	}

	.tdn-promise-section__row,
	.tdn-promise-section__row--text-right {
		flex-direction: column;
		gap: 40px;
	}

	.tdn-promise-section__photo {
		width: 100%;
		max-width: 595px;
		margin: 0 auto;
	}
}

/* ===== 9. Responsive <768 (mobile) ================================ */
@media (max-width: 767px) {
	.tdn-promise-section {
		padding: 40px 0;
	}

	.tdn-promise-section__inner {
		padding: 0 16px;
	}

	/* Row 2 (--text-right) : DOM order = photo puis text. En mobile on inverse
	 * pour avoir text2 PUIS photo2 → narratif cohérent (texte d'abord, photo
	 * en illustration en bas). Row 1 (--text-left) garde l'ordre DOM = text+photo. */
	.tdn-promise-section__row--text-right {
		flex-direction: column-reverse;
	}

	.tdn-promise-section__title {
		font-size: 32px;
	}

	.tdn-promise-section__paragraph {
		font-size: 16px;
	}

	.tdn-promise-section__quote-mark {
		font-size: 48px;
	}

	.tdn-promise-section__quote-text,
	.tdn-promise-section__final {
		font-size: 22px;
	}

	/* Photo polaroid : reduce + simplify stack on mobile */
	.tdn-promise-section__photo {
		height: 400px;
	}

	.tdn-promise-section__photo-shadow {
		width: 90%;
		height: 320px;
		transform: translate(-50%, -50%) rotate(-5deg);
	}

	.tdn-promise-section__photo-card {
		top: 20px;
		left: 50%;
		width: 90%;
		max-width: 400px;
		height: 320px;
		transform: translateX(calc(-50% + 16px));
	}
}

/* ===== 10. Ajouts défensifs ======================================= */
.tdn-promise-section,
.tdn-promise-section__title,
.tdn-promise-section__paragraph,
.tdn-promise-section__quote-text,
.tdn-promise-section__final {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.tdn-promise-section__title,
.tdn-promise-section__final {
	text-transform: none;
}
