/* ═══ Ouverture des catégories ═══ */
.eh-ch-active #primary {
	padding-top: 0 !important;
}

.eh-ch-active .woocommerce-breadcrumb,
.eh-ch-active .shop_header {
	display: none !important;
}

.eh-ch {
	--ink: #111;
	--muted: rgba(17, 17, 17, 0.58);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--pad: clamp(1.25rem, 4.5vw, 4.5rem);
	--p: 0;
	--t: clamp(0, calc(var(--p) / 0.4), 1);
	--a: clamp(0, calc((var(--p) - 0.08) / 0.55), 1);
	--c: clamp(0, calc((var(--p) - 0.62) / 0.25), 1);
	position: relative;
	height: 230vh;
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	background: radial-gradient(120% 80% at 50% 20%, #fbf8f3 0%, #f3eee6 60%, #ece5da 100%);
	color: var(--ink);
}

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

/* Texte d'ouverture */
.eh-ch__intro {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(6rem, 13vh, 8rem) var(--pad) 0;
	text-align: center;
	opacity: calc(1 - var(--t) * 1.2);
	transform: translateY(calc(var(--t) * -6vh));
}

.eh-ch__crumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	animation: eh-ch-fade 1s var(--ease) 0.1s both;
}

.eh-ch__crumbs a {
	color: var(--muted) !important;
	text-decoration: none !important;
}

.eh-ch__crumbs a:hover {
	color: var(--ink) !important;
}

.eh-ch__crumbs span {
	color: rgba(17, 17, 17, 0.25);
}

.eh-ch__crumbs span:last-child {
	display: none;
}

.eh-ch .eh-ch__title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--ink) !important;
	font-size: clamp(3rem, 8vw, 8.25rem) !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: -0.05em !important;
	text-transform: none !important;
}

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

.eh-ch__line > span {
	display: inline-block;
	animation: eh-ch-rise 1.3s var(--ease) 0.15s both;
}

.eh-ch__desc {
	max-width: 44rem;
	margin-top: 1.25rem;
	animation: eh-ch-fade 1.2s var(--ease) 0.35s both;
}

.eh-ch__desc p {
	margin: 0 !important;
	color: rgba(17, 17, 17, 0.7) !important;
	font-size: clamp(0.95rem, 1.05vw, 1.05rem) !important;
	line-height: 1.6 !important;
}

.eh-ch__desc a {
	color: var(--ink) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.eh-ch__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 1.5rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	animation: eh-ch-fade 1.2s var(--ease) 0.5s both;
}

.eh-ch__links li {
	margin: 0 !important;
}

.eh-ch__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: #fff;
	color: var(--ink) !important;
	font-size: 0.85rem;
	text-decoration: none !important;
	box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.1);
	transition: background 0.25s ease, color 0.25s ease;
}

.eh-ch__links small {
	color: rgba(17, 17, 17, 0.45);
	font-size: 0.75rem;
}

.eh-ch__links a:hover,
.eh-ch__links a[aria-current="page"] {
	background: var(--ink);
	color: #fff !important;
}

.eh-ch__links a:hover small,
.eh-ch__links a[aria-current="page"] small {
	color: rgba(255, 255, 255, 0.6);
}

/* Photo qui s'ouvre */
.eh-ch__media {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0 !important;
	clip-path: inset(calc((1 - var(--a)) * 66%) calc((1 - var(--a)) * 26%) calc((1 - var(--a)) * 5%) round calc((1 - var(--a)) * 18px + 0px));
	will-change: clip-path;
	animation: eh-ch-up 1.3s var(--ease) 0.4s both;
}

.eh-ch__media img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transform: scale(calc(1.25 - var(--a) * 0.25));
}

.eh-ch__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.5));
	opacity: var(--c);
}

.eh-ch__caption {
	position: absolute;
	right: var(--pad);
	bottom: clamp(2rem, 6vh, 4rem);
	left: var(--pad);
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	opacity: var(--c);
	transform: translateY(calc((1 - var(--c)) * 30px));
	pointer-events: none;
}

.eh-ch .eh-ch__caption-name {
	margin: 0 !important;
	color: #fff !important;
	font-size: clamp(2.5rem, 6vw, 6rem) !important;
	line-height: 1 !important;
	letter-spacing: -0.045em;
}

.eh-ch__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.5rem;
	border-radius: 999px;
	background: #fff !important;
	color: var(--ink) !important;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-decoration: none !important;
	text-transform: uppercase;
	pointer-events: auto;
	transition: background 0.25s ease, color 0.25s ease;
}

.eh-ch__cta svg {
	width: 16px;
	height: 16px;
}

.eh-ch__cta:hover {
	background: var(--ink) !important;
	color: #fff !important;
}

.eh-ch:not(.is-end) .eh-ch__cta {
	visibility: hidden;
}

.eh-ch__scroll {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin: 0 !important;
	color: #fff !important;
	font-size: 10px !important;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: calc(1 - var(--t) * 3);
	transform: translateX(-50%);
	mix-blend-mode: difference;
}

.eh-ch__scroll span {
	width: 1px;
	height: 34px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	animation: eh-ch-drip 2s ease-in-out infinite;
	transform-origin: top;
}

.eh-ch__anchor {
	display: block;
	scroll-margin-top: 90px;
}

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

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

@keyframes eh-ch-up {
	from { opacity: 0; translate: 0 60px; }
	to { opacity: 1; translate: 0 0; }
}

@keyframes eh-ch-drip {
	0% { transform: scaleY(0); opacity: 1; }
	60% { transform: scaleY(1); opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

/* Mobile : ouverture sans épinglage */
@media (max-width: 767px) {
	.eh-ch {
		height: auto;
		padding-bottom: 1.5rem;
	}

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

	.eh-ch__intro {
		position: relative;
		padding-top: 6.5rem;
		opacity: 1;
		transform: none;
	}

	.eh-ch .eh-ch__title {
		font-size: 14vw !important;
	}

	.eh-ch__desc p {
		text-align: left;
	}

	.eh-ch__media {
		position: relative;
		margin: 2rem var(--pad) 0 !important;
		aspect-ratio: 4 / 5;
		overflow: hidden;
		border-radius: 14px;
		clip-path: none;
	}

	.eh-ch__media img {
		transform: none;
	}

	.eh-ch__media::after {
		opacity: 1;
	}

	.eh-ch__caption {
		right: calc(var(--pad) * 2);
		bottom: 3rem;
		left: calc(var(--pad) * 2);
		opacity: 1;
		transform: none;
	}

	.eh-ch .eh-ch__caption-name {
		font-size: 2.5rem !important;
	}

	.eh-ch:not(.is-end) .eh-ch__cta {
		visibility: visible;
	}

	.eh-ch__scroll {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eh-ch {
		height: auto;
	}

	.eh-ch__sticky {
		position: relative;
		height: auto;
	}

	.eh-ch__intro,
	.eh-ch__media,
	.eh-ch__caption {
		position: relative;
		opacity: 1;
		transform: none;
		clip-path: none;
	}
}

/* ═══ Mouvement ═══ */
.eh-ch__media img {
	will-change: transform;
	backface-visibility: hidden;
}

.eh-ch__intro,
.eh-ch__caption {
	will-change: transform, opacity;
}
