/* Section "etapes" (sections/etapes.php, prefix et-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.et-root { /* dark band of the canvas (2026-11-26), the logo's crescent in mustard at the bottom right */
	--et-wm: clamp(20rem, 40vw, 35rem);
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: clamp(4.5rem, 2.6rem + 7.6vw, 8rem);
	border-top: 1px solid color-mix(in srgb, var(--c-on-dark-muted) 14%, transparent); /* keeps two dark bands apart */
	background: var(--c-dark);
	color: var(--c-ivoire-100);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.et-root::before {
	content: "";
	position: absolute;
	right: calc(var(--et-wm) * -0.12);
	bottom: calc(var(--et-wm) * -0.3);
	z-index: -1;
	width: var(--et-wm);
	aspect-ratio: 732 / 788;
	background: var(--c-ambre-500);
	-webkit-mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	opacity: 0.14;
	transform: scaleX(-1);
	pointer-events: none;
}
.et-root .et-halo { top: -12rem; left: -14rem; width: min(40rem, 140vw); opacity: 0.55; }
.et-inner {
	position: relative;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-gutter);
}

/* Title */
.et-root .et-title {
	max-width: 15em;
	margin: 0;
	color: var(--c-ivoire-100);
	font-family: var(--f-serif);
	font-size: var(--fs-title);
	font-weight: var(--fw-title);
	font-variation-settings: "opsz" 144, "SOFT" 100;
	line-height: var(--lh-title);
	letter-spacing: var(--ls-title);
	text-wrap: balance;
}
.et-title-em {
	color: var(--c-ambre-500);
	font-style: italic;
	font-weight: 400;
}

/* Steps: a mustard rule with its dot on top, a large outline numeral, the title and the text */
.et-list {
	display: grid;
	gap: var(--space-8);
	margin: clamp(3.5rem, 2.5rem + 3.5vw, 5rem) 0 0;
	padding: 0;
	list-style: none;
}
.et-step {
	position: relative;
	min-width: 0;
	padding-top: var(--space-6);
}
.et-rule {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: color-mix(in srgb, var(--c-ambre-500) 40%, transparent);
}
.et-dot { /* the dot, apart from the rule so it stays round while the rule draws */
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--c-ambre-500);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-ambre-500) 18%, transparent);
}
.et-num { /* outline numeral; fills softly on hover */
	display: block;
	color: transparent;
	font-family: var(--f-serif);
	font-size: clamp(5rem, 3.5rem + 5vw, 7rem);
	font-weight: 300;
	line-height: 0.9;
	-webkit-text-stroke: 1px var(--c-ambre-500);
	transition: color 0.6s var(--ease-doux);
}
.et-step:hover .et-num { color: color-mix(in srgb, var(--c-ambre-500) 22%, transparent); }
.et-root .et-step-title {
	margin: var(--space-5) 0 0;
	color: var(--c-ivoire-100);
	font-family: var(--f-serif);
	font-size: clamp(1.5rem, 1.38rem + 0.5vw, 1.75rem);
	font-weight: 400;
	font-variation-settings: "opsz" 48, "SOFT" 100;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.et-text { /* the site's paragraph style, on dark */
	margin: var(--space-4) 0 0;
	color: var(--c-on-dark-text);
}

/* Button */
.et-cta {
	margin: clamp(3rem, 2.3rem + 2.8vw, 4.5rem) 0 0;
}

/* Light band (page Le cabinet) */
.et-root--light {
	border-top: 0;
	background: var(--c-ivoire-100);
	color: var(--c-cacao-900);
}
.et-root--light::before { opacity: 0.16; }
.et-root--light .et-halo { opacity: 0.75; }
.et-root--light .et-title, .et-root--light .et-step-title { color: var(--c-cacao-900); }
.et-root--light .et-title-em { color: var(--c-brun-500); }
.et-root--light .et-rule { background: color-mix(in srgb, var(--c-ambre-500) 60%, transparent); }
.et-root--light .et-text { color: var(--c-cacao-700); }

@media (min-width: 768px) {
	.et-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
}
@media (min-width: 1024px) {
	.et-list { gap: var(--space-8); }
}
@media (prefers-reduced-motion: no-preference) {
	.et-dot { animation: et-pulse 4.5s ease-in-out infinite; }
	.et-step:nth-child(2) .et-dot { animation-delay: 0.6s; }
	.et-step:nth-child(3) .et-dot { animation-delay: 1.2s; }
}
@keyframes et-pulse {
	0%, 40%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-ambre-500) 18%, transparent); }
	20% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--c-ambre-500) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
	.et-num { transition: none; }
}
