/*
 * tdn-hero-home — Home immersive hero
 * Spec : Figma 8115:5867, CHECK 1 validé Phase C.5 bloc 1.
 *
 * STRUCTURE :
 *   .tdn-hero-home (section, min-h:100vh, max-h:977px desktop, overflow hidden, isolation)
 *     .tdn-hero-home__bg (wrapper absolute inset, z:0)
 *       .tdn-hero-home__bg-image (img cover, top:-82px = continuité visuelle sous nav fixed)
 *       .tdn-hero-home__bg-overlay (linear-gradient midnight 30→60% bottom — lisibilité texte renforcée)
 *     .tdn-hero-home__inner (flex col centered, gap 32, max-w 1100, z:1)
 *       .tdn-hero-home__pill ("Production Événementielle Corporate", border white, gradient inset, glow CSS pur via ::after)
 *       .tdn-hero-home__title (h1 2 lignes, Nunito Sans 900 capitalize, clamp 56-92, letter-spacing display, text-shadow)
 *       .tdn-hero-home__subtitle (p Nunito 400 24, nowrap desktop / normal <1024)
 *       .tdn-hero-home__cta (a pill primary pink-500 + icon container midnight + arrow-up-right)
 *
 * Décisions §9 CHECK 1 :
 *   - Avenir → Nunito Sans (Heavy→900, Roman→400, Medium→400 fallback car 500 non self-hosted)
 *   - Glow blob Ellipse 8709 → CSS pur (radial-gradient pink-100, pas d'asset PNG)
 *   - CTA href : /contact (pas #contact-form)
 *   - Subtitle white-space : nowrap desktop, normal <1024
 *   - Hauteur : min-h:100vh max-h:977 desktop / max-h:none <1024
 *
 * Asset hero placeholder — photo IA Figma utilisée pour le dev.
 * À REMPLACER par photo TDN production réelle avant mise en production.
 */

.tdn-hero-home {
	position: relative;
	min-height: 100vh;
	max-height: 977px;
	background: var(--tdn-color-pink-50, #FEF6F9);
	overflow: hidden;
	isolation: isolate;
}

/* --- Background ----------------------------------------------- */

.tdn-hero-home__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.tdn-hero-home__bg-image,
.tdn-hero-home__bg-video {
	position: absolute;
	top: -82px;
	left: 50%;
	transform: translateX(-50%);
	width: max(100%, 1440px);
	height: calc(100% + 82px);
	object-fit: cover;
	max-width: none;
	user-select: none;
}

.tdn-hero-home__bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(26, 26, 46, 0.30) 0%,
		rgba(26, 26, 46, 0.60) 100%
	);
}

/* --- Inner column (centered) ---------------------------------- */

.tdn-hero-home__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	max-width: 1100px;
	min-height: inherit;
	margin: 0 auto;
	padding: 24px;
	text-align: center;
}

/* --- Pill catégorie + glow CSS pur --------------------------- */

.tdn-hero-home__pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 24px;
	border: 1px solid var(--tdn-color-neutral-0, #ffffff);
	border-radius: 80px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.04) 0%,
		rgba(255, 255, 255, 0.30) 100%
	);
	box-shadow: var(--tdn-shadow-inset-glow, inset 0 4px 8px 0 rgba(244, 244, 254, 0.25));
	font-family: var(--tdn-font-family-brand, 'Nunito Sans', sans-serif);
	font-weight: var(--tdn-font-weight-regular, 400);
	font-size: 16px;
	line-height: 24px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tdn-color-neutral-0, #ffffff);
	white-space: nowrap;
}

.tdn-hero-home__pill::after {
	content: '';
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 100px;
	background: radial-gradient(
		ellipse at center,
		rgba(242, 194, 202, 0.55) 0%,
		rgba(242, 194, 202, 0.25) 30%,
		rgba(242, 194, 202, 0) 70%
	);
	pointer-events: none;
	z-index: -1;
}

/* --- Title H1 (2 lignes capitalize) -------------------------- */

.tdn-hero-home__title {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	/* Phase 3.6 — migré sur semantic layer (hero-home = weight medium 500, less bold) */
	font-family: var(--tdn-hero-home-family);
	font-weight: var(--tdn-hero-home-weight);
	font-size: var(--tdn-hero-home-size);
	line-height: var(--tdn-hero-home-lh);
	letter-spacing: var(--tdn-hero-home-ls);
	text-transform: var(--tdn-hero-home-tt);
	color: var(--tdn-color-neutral-0, #ffffff);
	text-shadow: var(--tdn-shadow-text-hero, 0 4px 4px rgba(0, 0, 0, 0.25));
}

.tdn-hero-home__title-line {
	display: block;
	white-space: nowrap;
}

/* --- Subtitle ------------------------------------------------ */

.tdn-hero-home__subtitle {
	margin: 0;
	font-family: var(--tdn-font-family-brand, 'Nunito Sans', sans-serif);
	font-weight: var(--tdn-font-weight-regular, 400);
	font-size: 24px;
	line-height: 1.5;
	letter-spacing: -0.72px;
	text-transform: none;
	color: var(--tdn-color-neutral-0, #ffffff);
	text-shadow: var(--tdn-shadow-text-hero, 0 4px 4px rgba(0, 0, 0, 0.25));
	white-space: nowrap;
}

/* --- CTA primary --------------------------------------------- */

.tdn-hero-home__cta {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	/* padding droit 8→16 : décolle le cercle/flèche du bord droit (était collé) */
	padding: 12px 16px 12px 32px;
	background: var(--tdn-color-pink-500, #C06D80);
	border-radius: 40px;
	text-decoration: none;
	transition: transform 200ms ease, background-color 200ms ease;
}

.tdn-hero-home__cta-label {
	font-family: var(--tdn-font-family-brand, 'Nunito Sans', sans-serif);
	/* Phase 3.6 — retour Morgan : CTA trop gras, 900 → bold 700 */
	font-weight: var(--tdn-button-weight);
	font-size: 20px;
	line-height: 24px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tdn-color-neutral-0, #ffffff);
}

.tdn-hero-home__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--tdn-color-midnight-900, #1a1a2e);
	border-radius: 40px;
	transition: transform 200ms ease;
}

.tdn-hero-home__cta-icon img {
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

.tdn-hero-home__cta:hover {
	transform: scale(1.02);
	filter: brightness(0.9);
}

.tdn-hero-home__cta:hover .tdn-hero-home__cta-icon {
	transform: translateX(2px);
}

.tdn-hero-home__cta:focus-visible {
	outline: 2px solid var(--tdn-color-neutral-0, #ffffff);
	outline-offset: 4px;
}

/* --- Reduced motion ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.tdn-hero-home__cta,
	.tdn-hero-home__cta-icon {
		transition: none;
	}

	.tdn-hero-home__cta:hover,
	.tdn-hero-home__cta:hover .tdn-hero-home__cta-icon {
		transform: none;
	}
}

/* --- Tablet 768-1023 ----------------------------------------- */

@media (max-width: 1023px) {
	.tdn-hero-home {
		min-height: 70vh; /* Morgan 2026-06-29 : réduit vs 100vh, aligné autres heros */
		max-height: none;
	}

	.tdn-hero-home__inner {
		gap: 24px;
		padding: 32px;
	}

	.tdn-hero-home__title {
		font-size: clamp(48px, 8vw, 72px);
		letter-spacing: -2.88px;
	}

	.tdn-hero-home__title-line {
		white-space: normal;
	}

	.tdn-hero-home__subtitle {
		font-size: 20px;
		white-space: normal;
	}
}

/* --- Mobile <768 -------------------------------------------- */

@media (max-width: 767px) {
	.tdn-hero-home__inner {
		gap: 20px;
		padding: 16px;
	}

	.tdn-hero-home__title {
		font-size: clamp(40px, 11vw, 56px);
		letter-spacing: -1.8px;
		gap: 8px;
	}

	.tdn-hero-home__subtitle {
		font-size: 18px;
	}

	.tdn-hero-home__cta-label {
		font-size: 18px;
	}

	.tdn-hero-home__pill {
		font-size: 14px;
	}
}
