/* ═══ Nuancier ═══ */
.eh-ed-nuancier {
	--nu-cream: #f6f2ec;
}

#eh-ed .eh-nu-eyebrow {
	margin: 0 0 1.25rem;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

#eh-ed .eh-nu-h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(2rem, 4.2vw, 3.75rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

/* 1. Ouverture */
.eh-nu-hero {
	--p: 0;
	--t: clamp(0, calc(var(--p) / 0.45), 1);
	--l: clamp(0, calc((var(--p) - 0.4) / 0.35), 1);
	position: relative;
	height: 240vh;
	background: var(--nu-cream);
}

.eh-nu-hero__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.eh-nu-hero__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

#eh-ed .eh-nu-hero__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 62%;
	transform: scale(calc(1.06 + var(--p) * 0.3));
	transform-origin: 50% 62%;
	animation: eh-nu-zoom 2.4s var(--ease) both;
}

.eh-nu-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(246, 242, 236, 0.9) 0%, rgba(246, 242, 236, 0.55) 30%, rgba(246, 242, 236, 0) 52%);
}

.eh-nu-hero__intro {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(6.5rem, 15vh, 10rem) var(--pad) 0;
	text-align: center;
	opacity: calc(1 - var(--t) * 1.3);
	transform: translateY(calc(var(--t) * -8vh));
}

#eh-ed .eh-nu-kicker {
	margin: 0 0 1.25rem;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	animation: eh-nu-fade 1.2s var(--ease) 0.2s both;
}

#eh-ed .eh-nu-hero__title {
	margin: 0;
	color: var(--ink);
	font-size: clamp(2.9rem, 7.4vw, 7.5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.05em;
}

.eh-nu-line {
	display: block;
	overflow: hidden;
	margin-bottom: -0.18em;
	padding: 0 0.04em 0.18em;
}

.eh-nu-line > span {
	display: inline-block;
	animation: eh-nu-rise 1.3s var(--ease) 0.2s both;
}

.eh-nu-hero__sub {
	display: block;
	margin-top: 0.75rem;
	color: rgba(17, 17, 17, 0.7);
	font-size: clamp(1rem, 1.5vw, 1.35rem);
	letter-spacing: -0.005em;
	animation: eh-nu-fade 1.2s var(--ease) 0.45s both;
}

#eh-ed .eh-nu-hero__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
}

#eh-ed .eh-nu-hero__dots li {
	animation: eh-nu-pop 0.8s var(--ease) both;
	animation-delay: calc(0.6s + var(--i) * 60ms);
}

#eh-ed .eh-nu-hero__dots a {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 10px -4px rgba(0, 0, 0, 0.25);
	transition: transform 0.35s var(--ease);
}

#eh-ed .eh-nu-hero__dots a:hover,
#eh-ed .eh-nu-hero__dots a:focus-visible {
	transform: scale(1.35);
}

.eh-nu-hero__lead {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--pad);
	background: rgba(246, 242, 236, 0.94);
	opacity: clamp(0, calc(var(--l) * 2.2), 1);
	pointer-events: none;
}

#eh-ed .eh-nu-hero__lead p {
	max-width: 50rem;
	margin: 0;
	color: var(--ink);
	font-size: clamp(1.35rem, 2.5vw, 2.25rem);
	line-height: 1.3;
	letter-spacing: -0.015em;
	text-align: center;
	transform: translateY(calc((1 - var(--l)) * 40px));
}

@keyframes eh-nu-zoom {
	from { opacity: 0; transform: scale(1.2); }
}

@keyframes eh-nu-rise {
	from { transform: translateY(110%); }
	to { transform: none; }
}

@keyframes eh-nu-fade {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@keyframes eh-nu-pop {
	from { opacity: 0; transform: scale(0.3); }
	to { opacity: 1; transform: none; }
}

/* 2. Séquence des coloris */
.eh-nu-seq {
	--p: 0;
	--tint: #fffcfc;
	position: relative;
	height: calc(100vh + var(--n) * 62vh);
	background: var(--nu-cream);
}

.eh-nu-seq__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.eh-nu-seq__wash {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(55% 70% at 30% 55%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 72%),
		color-mix(in srgb, var(--tint) 14%, var(--nu-cream));
	transition: background 0.9s var(--ease);
}

.eh-nu-seq__head {
	position: absolute;
	top: clamp(5.5rem, 12vh, 7rem);
	right: var(--pad);
	left: var(--pad);
	z-index: 3;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

#eh-ed .eh-nu-seq__head .eh-nu-eyebrow {
	margin: 0;
	color: rgba(17, 17, 17, 0.62);
}

#eh-ed .eh-nu-seq__count {
	margin: 0;
	color: rgba(17, 17, 17, 0.55);
	font-size: 13px;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

#eh-ed .eh-nu-seq__count span {
	color: var(--ink);
}

.eh-nu-seq__stage {
	position: absolute;
	inset: 0;
}

.eh-nu-color {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	padding: clamp(8rem, 18vh, 10rem) var(--pad) clamp(5.5rem, 12vh, 7rem);
	pointer-events: none;
}

.eh-nu-color.is-active {
	pointer-events: auto;
}

#eh-ed .eh-nu-color__giant {
	position: absolute;
	right: 0;
	bottom: -0.12em;
	left: 0;
	margin: 0;
	color: color-mix(in srgb, var(--c) 70%, #fff);
	font-size: clamp(7rem, 22vw, 22rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.06em;
	text-align: center;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(18%);
	transition: opacity 0.8s var(--ease), transform 1.1s var(--ease);
	pointer-events: none;
	user-select: none;
}

#eh-ed .eh-nu-color.is-active .eh-nu-color__giant {
	opacity: 0.35;
	transform: none;
}

.eh-nu-color__media {
	position: relative;
	justify-self: center;
	width: min(100%, 30rem);
	aspect-ratio: 1;
	margin: 0;
}

.eh-nu-color__disc {
	position: absolute;
	inset: -8%;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
	opacity: 0;
	transform: scale(0.55);
	transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
}

.eh-nu-color.is-active .eh-nu-color__disc {
	opacity: 1;
	transform: none;
}

#eh-ed .eh-nu-color__media img {
	position: relative;
	width: 100%;
	height: 100% !important;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 40px 80px -40px rgba(20, 16, 12, 0.6);
	opacity: 0;
	transform: scale(0.82) rotate(-6deg);
	transition: opacity 0.7s var(--ease) 0.08s, transform 1.1s var(--ease) 0.08s;
}

#eh-ed .eh-nu-color.is-active .eh-nu-color__media img {
	opacity: 1;
	transform: none;
}

.eh-nu-color__text {
	position: relative;
	max-width: 32rem;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.eh-nu-color.is-active .eh-nu-color__text {
	opacity: 1;
	transform: none;
	transition-delay: 0.15s;
}

#eh-ed .eh-nu-color__n {
	margin: 0 0 0.75rem;
	color: rgba(17, 17, 17, 0.5);
	font-size: 13px;
	letter-spacing: 0.1em;
}

#eh-ed .eh-nu-color__name {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.25rem;
	color: var(--ink);
	font-size: clamp(2.75rem, 5.6vw, 5.5rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.eh-nu-color__name i {
	flex: 0 0 auto;
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

#eh-ed .eh-nu-color__desc {
	margin: 0 0 1.75rem;
	color: rgba(17, 17, 17, 0.78);
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	line-height: 1.5;
}

#eh-ed .eh-nu-color__label {
	margin: 0 0 0.75rem;
	color: rgba(17, 17, 17, 0.55);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.eh-nu-color__products {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

#eh-ed .eh-nu-color__products a {
	display: inline-flex;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--ink);
	font-size: 0.85rem;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
	transition: background 0.25s ease, color 0.25s ease;
}

#eh-ed .eh-nu-color__products a:hover,
#eh-ed .eh-nu-color__products a:focus-visible {
	background: var(--ink);
	color: #fff;
}

#eh-ed .eh-nu-seq__rail {
	position: absolute;
	bottom: clamp(1.25rem, 4vh, 2.25rem);
	left: 50%;
	z-index: 4;
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	list-style: none;
	transform: translateX(-50%);
}

#eh-ed .eh-nu-seq__rail button {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c) !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
	cursor: pointer;
	transition: transform 0.35s var(--ease);
}

#eh-ed .eh-nu-seq__rail button.is-active {
	transform: scale(1.45);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 3px #fff;
}

#eh-ed .eh-nu-seq__rail button span {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	padding: 0.3rem 0.6rem;
	border-radius: 6px;
	background: var(--ink);
	color: #fff;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

#eh-ed .eh-nu-seq__rail button:hover span,
#eh-ed .eh-nu-seq__rail button:focus-visible span {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* 3. Composer sa table */
.eh-nu-mix {
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(5rem, 10vw, 8rem) var(--pad);
}

.eh-nu-mix__head {
	max-width: 44rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

#eh-ed .eh-nu-mix__head p:last-child,
#eh-ed .eh-nu-mix__more {
	color: rgba(17, 17, 17, 0.72);
	font-size: 1.05rem;
	line-height: 1.7;
}

#eh-ed .eh-nu-mix__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.eh-nu-mix__card {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.75rem;
	border-radius: 8px;
	background: var(--nu-cream);
	transition-delay: calc(var(--i) * 100ms) !important;
}

.eh-nu-mix__sets {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.eh-nu-mix__set {
	display: flex;
}

.eh-nu-mix__set i {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0 3px var(--nu-cream);
	transition: transform 0.5s var(--ease);
}

.eh-nu-mix__set i + i {
	margin-left: -16px;
}

.eh-nu-mix__card:hover .eh-nu-mix__set i + i {
	transform: translateX(10px);
}

#eh-ed .eh-nu-mix__card p {
	margin: 0;
	color: rgba(17, 17, 17, 0.75);
	font-size: 1rem;
	line-height: 1.6;
}

#eh-ed .eh-nu-mix__card strong {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--ink);
	font-size: 1.3rem;
	font-weight: 400;
	letter-spacing: -0.015em;
}

#eh-ed .eh-nu-mix__more a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tablette */
@media (max-width: 1100px) {
	.eh-nu-color {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	#eh-ed .eh-nu-color__products a {
		font-size: 0.8rem;
		padding: 0.35rem 0.7rem;
	}
}

/* Mobile : les coloris s'empilent */
@media (max-width: 900px) {
	.eh-nu-seq {
		height: auto;
		padding: 4rem 0 2rem;
	}

	.eh-nu-seq__sticky {
		position: relative;
		height: auto;
		overflow: visible;
	}

	.eh-nu-seq__wash,
	#eh-ed .eh-nu-seq__rail,
	.eh-nu-seq__count {
		display: none;
	}

	.eh-nu-seq__head {
		position: static;
		padding: 0 var(--pad) 1.5rem;
	}

	.eh-nu-seq__stage {
		position: static;
	}

	.eh-nu-color {
		position: relative;
		display: block;
		padding: 2.5rem var(--pad) 3rem;
		overflow: hidden;
		background: color-mix(in srgb, var(--c) 16%, var(--nu-cream));
		pointer-events: auto;
		scroll-margin-top: 72px;
	}

	.eh-nu-color + .eh-nu-color {
		margin-top: 0;
	}

	#eh-ed .eh-nu-color__giant {
		display: none;
	}

	#eh-ed .eh-nu-color__media {
		width: min(72%, 20rem);
		margin: 1rem auto 2.5rem;
	}

	.eh-nu-color__disc,
	#eh-ed .eh-nu-color__media img,
	.eh-nu-color__text {
		opacity: 1;
		transform: none;
	}

	#eh-ed .eh-nu-color__name {
		font-size: 2.6rem;
	}

	#eh-ed .eh-nu-mix__list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.eh-nu-hero {
		height: 200vh;
	}

	#eh-ed .eh-nu-hero__title {
		font-size: 12.5vw;
	}

	#eh-ed .eh-nu-hero__media img {
		object-position: 50% 62%;
	}

	#eh-ed .eh-nu-hero__lead p {
		font-size: 1.25rem;
		text-align: left;
	}

	#eh-ed .eh-nu-hero__dots a {
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eh-nu-hero,
	.eh-nu-seq {
		height: auto;
	}

	.eh-nu-hero__sticky {
		position: relative;
	}

	.eh-nu-hero__lead {
		position: relative;
		opacity: 1;
		padding: 3rem var(--pad);
	}
}

#eh-ed .eh-nu-hero__dots a::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
}

/* ═══ Mouvement ═══ */
#eh-ed .eh-nu-hero__media img {
	will-change: transform;
	backface-visibility: hidden;
}

.eh-nu-hero__intro,
#eh-ed .eh-nu-hero__lead p {
	will-change: transform, opacity;
}
