/**
 * tdn-quote-founders — Phase C.5 Bloc 6 (V2 — adapté tdn-team-grid)
 *
 * Section citation centrée + 3 cards portraits founders.
 *
 * Layout :
 *   - Top : quote-mark décoratif (guillemet pink-500 + 2 lignes pink-100 + halo blur)
 *   - Citation Nunito 900 clamp avec --accent pink-500
 *   - Signature uppercase tracking wider pink-500
 *   - 3 cards portraits 379×391 (architecture identique tdn-team-grid Phase C.4) :
 *     IMG shape-big (top:0 left:20 200×200 pink-primary)
 *     IMG shape-small (bottom:0 right:20 160×160 pink-100)
 *     IMG photo (right:2 bottom:0 311×350 grayscale)
 *     DIV info (top:277 left:0 250 — name + role, sans LinkedIn)
 *     ::after gradient line bottom
 *   - Bandeau bottom : reuse divider-shapes.svg
 *
 * Spec Figma : node 8115:6201 + référence design system tdn-team-grid (Phase C.4).
 * Reuse assets : decorations/team/ (big-star, big-x, big-d, small-ring, small-corner, small-arc).
 */

/* ===== 1. Bloc racine =========================================== */
.tdn-quote-founders {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 100px 0; /* bandeau bottom retiré → padding symétrique */
	background: var(--tdn-color-pink-50, #fef6f9);
	font-family: var(--tdn-font-family-brand, 'Nunito Sans', sans-serif);
}

/* ===== 2. Inner wrapper ========================================= */
.tdn-quote-founders__inner {
	max-width: 1336px;
	margin: 0 auto;
	padding: 0 52px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
}

/* ===== 3. Quote-mark (dividers + guillemet) ===================== */
.tdn-quote-founders__quote-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 1104px;
	gap: 8px;
}

/* ===== 4. Dividers latéraux ===================================== */
.tdn-quote-founders__divider {
	flex: 1 1 auto;
	height: 1px;
	background: var(--tdn-color-pink-100, #F6C9D0);
}

/* ===== 5. Quote-char (guillemet décoratif) ====================== */
.tdn-quote-founders__quote-char {
	position: relative;
	flex: 0 0 auto;
	width: 132px;
	height: 132px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-weight: 400;
	font-size: 160px;
	line-height: 1;
	color: var(--tdn-color-pink-500, #C06D80);
	user-select: none;
	font-style: normal;
}

.tdn-quote-founders__quote-char::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(192, 109, 128, 0.10);
	filter: blur(40px);
	border-radius: 50%;
	z-index: -1;
}

/* ===== 6. Quote (blockquote) ==================================== */
.tdn-quote-founders__quote {
	--accent: var(--tdn-color-pink-500, #C06D80);
	margin: 0;
	max-width: 1087px;
	/* Phase 3.6 — semantic layer : h2-sm (citation founders, weight medium 500) */
	font-family: var(--tdn-h2-sm-family);
	font-weight: var(--tdn-h2-sm-weight);
	font-size: var(--tdn-h2-sm-size);
	line-height: var(--tdn-h2-sm-lh);
	color: var(--tdn-color-midnight, #1a1a2e);
	text-align: center;
	font-style: normal;
	letter-spacing: var(--tdn-h2-sm-ls);
	text-transform: var(--tdn-h2-sm-tt);
}

/* ===== 7. Quote accent ========================================== */
.tdn-quote-founders__accent {
	color: var(--accent);
	font-weight: inherit;
	font-style: inherit;
	letter-spacing: inherit;
}

/* ===== 8. Signature ============================================= */
.tdn-quote-founders__signature {
	margin: -64px 0 0;
	/* Phase 3.6 — semantic layer : eyebrow (signature uppercase, weight bold 700). color pink-500 conservé (accent hero-like) */
	font-family: var(--tdn-eyebrow-family);
	font-weight: var(--tdn-eyebrow-weight);
	font-size: var(--tdn-eyebrow-size);
	line-height: var(--tdn-eyebrow-lh);
	letter-spacing: var(--tdn-eyebrow-ls);
	color: var(--tdn-color-pink-500, #C06D80);
	text-align: center;
	text-transform: var(--tdn-eyebrow-tt);
	font-style: normal;
}

/* ===== 9. Founders grid (3 cards, architecture team-grid) ======= */
.tdn-quote-founders__founders {
	display: grid;
	grid-template-columns: repeat(3, 379px);
	gap: 32px;
	justify-content: center;
	width: 100%;
}

/* Nav arrows : hidden par défaut (desktop), affichées en mobile via media query. */
.tdn-quote-founders__nav {
	display: none;
}

/* ===== 10. Founder card (379×391, architecture team-grid) ======= */
.tdn-quote-founders__founder {
	position: relative;
	width: 379px;
	height: 391px;
	background: transparent;
	overflow: visible;
}

/* Bottom gradient line (cohérent team-grid::after) */
.tdn-quote-founders__founder::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		to right,
		var(--tdn-color-pink-100, #F6C9D0) 0%,
		rgba(242, 194, 202, 0) 100%
	);
	z-index: 4;
	pointer-events: none;
}

/* ===== 11. Cool shape BIG (top-left, 200×200) =================== */
/* PNG source = pink-500 vif (team/big-*.png). Atténué via opacity 0.35
 * pour donner un effet pink-100 doux sur fond pink-50.
 * Approche pragmatique : pas de re-export couleur, juste filter CSS. */
.tdn-quote-founders__founder-shape-big {
	position: absolute;
	top: 0;
	left: 20px;
	width: 200px;
	height: 200px;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	max-width: none;
	opacity: 0.35;
}

/* ===== 12. Cool shape SMALL (bottom-right, 160×160) ============= */
/* PNG source = pink-100 (team/small-*.png) — déjà la bonne teinte,
 * juste légère atténuation pour cohérence avec big. */
.tdn-quote-founders__founder-shape-small {
	position: absolute;
	bottom: 0;
	right: 20px;
	width: 160px;
	height: 160px;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	max-width: none;
	opacity: 0.7;
}

/* ===== 13. Photo (right-center, 311×350, grayscale) ============= */
.tdn-quote-founders__founder-photo {
	position: absolute;
	bottom: 0;
	right: 2px;
	width: 311px;
	height: 350px;
	object-fit: cover;
	object-position: top center;
	display: block;
	z-index: 2;
	filter: grayscale(100%) contrast(1.05);
	max-width: none;
}

/* ===== 14. Info block (bottom-left, name + role) ================ */
.tdn-quote-founders__founder-info {
	position: absolute;
	top: 277px;
	left: 0;
	width: 250px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.tdn-quote-founders__founder-name {
	margin: 0;
	/* Phase 3.6 — semantic layer : h3-portrait (nom founder, weight medium 500) */
	font-family: var(--tdn-h3-portrait-family);
	font-weight: var(--tdn-h3-portrait-weight);
	font-size: var(--tdn-h3-portrait-size);
	line-height: var(--tdn-h3-portrait-lh);
	letter-spacing: var(--tdn-h3-portrait-ls);
	color: var(--tdn-color-midnight, #1a1a2e);
	text-transform: var(--tdn-h3-portrait-tt);
	font-style: normal;
}

.tdn-quote-founders__founder-role {
	margin: 0;
	font-family: var(--tdn-font-family-brand, 'Nunito Sans', sans-serif);
	font-weight: var(--tdn-font-weight-medium);
	font-size: 18px;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--tdn-color-midnight, #1a1a2e);
	text-transform: none;
	font-style: normal;
}

/* ===== 15. Bandeau bottom — RETIRÉ ============================== */
/* Ancienne section .tdn-quote-founders__divider-bottom supprimée
 * suite décision Morgan (session nocturne 04/05) : pas de bandeau
 * cool-shapes en bas pour ce bloc. */

/* ===== 16. Responsive 1280 (2 cards par row) ==================== */
@media (max-width: 1280px) {
	.tdn-quote-founders__founders {
		grid-template-columns: repeat(2, 379px);
	}
}

/* ===== 17. Responsive <1024 (mobile + tablette) — Pattern carrousel TDN ============ */
/* Carrousel Pure JS Control (cf. learnings.md règle 86). Spacers ::before/::after 64px
 * remplacent le padding-inline. justify-content: flex-start override le base. */
@media (max-width: 1023px) {
	.tdn-quote-founders {
		padding: 64px 0;
	}

	.tdn-quote-founders__inner {
		padding: 0;
		gap: 56px;
	}

	.tdn-quote-founders__quote-mark,
	.tdn-quote-founders__quote,
	.tdn-quote-founders__signature {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tdn-quote-founders__quote-char {
		width: 100px;
		height: 100px;
		font-size: 120px;
	}

	.tdn-quote-founders__signature {
		margin-top: -48px;
	}

	.tdn-quote-founders__founders {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		gap: 24px;
		grid-template-columns: none;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 4px 0 12px;
		overflow-x: auto;
		overflow-y: hidden;
		overflow-anchor: none;
		scroll-behavior: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		overscroll-behavior-x: contain;
	}

	.tdn-quote-founders__founders::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.tdn-quote-founders__founders::before,
	.tdn-quote-founders__founders::after {
		content: '';
		flex: 0 0 64px;
		align-self: stretch;
	}

	.tdn-quote-founders__founder {
		flex: 0 0 calc(100vw - 128px);
		width: auto;
		max-width: none;
		min-width: 0;
		height: auto;
	}

	/* Nav arrows mobile */
	.tdn-quote-founders__nav {
		display: flex;
		align-self: center;
		justify-content: center;
		align-items: center;
		gap: 32px;
		margin-block-start: 24px;
	}

	.tdn-quote-founders__nav-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 2px solid var(--tdn-color-pink-500, #C06D80);
		background: transparent;
		color: var(--tdn-color-pink-500, #C06D80);
		border-radius: 50%;
		cursor: pointer;
		transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	}

	.tdn-quote-founders__nav-btn:hover:not([disabled]),
	.tdn-quote-founders__nav-btn:focus-visible:not([disabled]) {
		background-color: var(--tdn-color-pink-500, #C06D80);
		color: #fff;
	}

	.tdn-quote-founders__nav-btn[disabled] {
		opacity: 0.35;
		cursor: not-allowed;
	}

	.tdn-quote-founders__nav-btn svg {
		width: 24px;
		height: 24px;
	}
}

/* ===== 18. Responsive <600 (mobile) ============================= */
@media (max-width: 600px) {
	.tdn-quote-founders {
		padding: 48px 0 60px;
	}

	.tdn-quote-founders__quote-char {
		width: 80px;
		height: 80px;
		font-size: 96px;
	}

	.tdn-quote-founders__signature {
		margin-top: -32px;
	}
}

/* ===== 19. Reduced-motion ======================================= */
@media (prefers-reduced-motion: reduce) {
	.tdn-quote-founders__quote-char::before {
		filter: none;
		opacity: 0.5;
	}
}

/* ===== 20. Ajouts défensifs ===================================== */
.tdn-quote-founders,
.tdn-quote-founders__quote,
.tdn-quote-founders__accent,
.tdn-quote-founders__signature,
.tdn-quote-founders__founder-name,
.tdn-quote-founders__founder-role {
	font-style: normal;
}

.tdn-quote-founders__quote,
.tdn-quote-founders__signature,
.tdn-quote-founders__founder-name {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Patch Morgan 2026-06-24 : aligner sur team-grid (rôle SOUS la ligne + LK+Nom rapprochés). */
.tdn-quote-founders__founder {
	height: 460px;
}
.tdn-quote-founders__founder-photo {
	top: 41px;
	bottom: auto;
}
.tdn-quote-founders__founder-shape-small {
	top: 231px;
	bottom: auto;
}
.tdn-quote-founders__founder::after {
	top: 391px;
	bottom: auto;
}
.tdn-quote-founders__founder-info {
	top: 320px;
	left: 0;
	width: 250px;
}
.tdn-quote-founders__founder-role {
	position: absolute;
	top: 80px;
	left: 0;
	width: 100%;
	margin: 0;
}
/* Cool-shapes en pleine opacité (alignement L'Agence) */
.tdn-quote-founders__founder-shape-big,
.tdn-quote-founders__founder-shape-small {
	opacity: 1 !important;
}
/* LinkedIn icon (équivalent team-grid__linkedin) */
.tdn-quote-founders__founder-linkedin {
	display: inline-block;
	width: 24px;
	height: 24px;
	transition: transform 0.15s ease;
}
.tdn-quote-founders__founder-linkedin:hover {
	transform: scale(1.1);
}
.tdn-quote-founders__founder-linkedin svg {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 4px;
}

/* Patch Morgan 2026-06-28 — MOBILE only : nom + poste TOUS LES DEUX sous la ligne.
   Avant : Photo / Nom / Ligne / Poste
   Après : Photo / Ligne / Nom / Poste (poste descendu encore un peu).
   Card allongée 460 → 540 pour absorber le texte sous la ligne. */
@media (max-width: 1023px) {
	.tdn-quote-founders__founder {
		height: 540px;
	}
	/* Ligne séparateur (::after) : déjà à top:391 (bas de photo). Inchangée. */
	/* Info (LinkedIn + Nom) : 320 → 405 (sous la ligne 391, +14px respiration) */
	.tdn-quote-founders__founder-info {
		top: 405px;
	}
	/* Role : ajusté pour resserrer Nom↔Poste mobile (Morgan 2026-06-28 : 92 → 84) */
	.tdn-quote-founders__founder-role {
		top: 84px;
	}
}
