/* EH Editorial : Contact et Collaboration */

/* ═══ Contact : ouverture ═══ */
.eh-ct-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: end;
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(8rem, 14vw, 11rem) var(--pad) clamp(3rem, 6vw, 5rem);
}

.eh-ct-channels {
	border-top: 1px solid var(--ink);
}

#eh-ed .eh-ct-channel {
	position: relative;
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.25rem 1.5rem;
	padding: 1.5rem 0.25rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
}

#eh-ed .eh-ct-channel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cream);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.5s var(--ease);
}

#eh-ed .eh-ct-channel:hover::before,
#eh-ed .eh-ct-channel:focus-visible::before {
	transform: scaleY(1);
}

.eh-ct-channel__k {
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eh-ct-channel__v {
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.eh-ct-channel__go {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease);
}

.eh-ct-channel__go svg {
	width: 18px;
	height: 18px;
}

#eh-ed .eh-ct-channel:hover .eh-ct-channel__go {
	background: var(--ink);
	color: #fff;
	transform: rotate(-45deg);
}

#eh-ed .eh-ct-status {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	grid-column: 2;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

#eh-ed .eh-ct-status em {
	font-style: normal;
}

.eh-ct-status > span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b9b3aa;
}

#eh-ed .eh-ct-status.is-open {
	color: #2f6b3a;
}

.eh-ct-status.is-open > span {
	background: #3c8b4b;
	box-shadow: 0 0 0 4px rgba(60, 139, 75, 0.18);
}

/* ═══ Collaboration : ouverture ═══ */
.eh-cb-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 92vh;
	min-height: 92svh;
	padding: 8rem var(--pad) clamp(3rem, 7vw, 6rem);
	overflow: hidden;
	color: #fff;
}

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

.eh-cb-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.62));
}

#eh-ed .eh-cb-hero__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transform: scale(1.12);
}

.eh-cb-hero__text {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
}

#eh-ed .eh-cb-hero__text .eh-ed-eyebrow,
#eh-ed .eh-cb-hero__text .eh-ed-lead {
	color: rgba(255, 255, 255, 0.82);
}

#eh-ed .eh-cb-hero__text .eh-ed-eyebrow span {
	color: #fff;
}

#eh-ed .eh-cb-hero__text .eh-ed-h1 {
	max-width: 12ch;
	color: #fff;
}

#eh-ed .eh-cb-hero__text .eh-ed-lead {
	max-width: 36rem;
	margin: 1.5rem 0 2rem;
}

.eh-cb-head {
	max-width: var(--max);
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	padding: 0 var(--pad);
}

.eh-cb-paths {
	padding: clamp(4rem, 9vw, 8rem) 0;
}

.eh-cb-paths__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.eh-cb-path {
	display: flex;
	flex-direction: column;
	background: var(--cream);
	transition: transform 0.6s var(--ease);
}

.eh-cb-path:hover {
	transform: translateY(-6px);
}

.eh-cb-path__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

#eh-ed .eh-cb-path__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.eh-cb-path:hover .eh-cb-path__media img {
	transform: scale(1.06);
}

.eh-cb-path__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem;
}

.eh-cb-path__num {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

#eh-ed .eh-cb-path h3 {
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}

#eh-ed .eh-cb-path p {
	flex: 1;
	color: var(--muted);
	font-size: 0.95rem;
}

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

#eh-ed .eh-cb-path__go {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	margin-top: 0.5rem;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid currentColor;
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.eh-cb-path__go svg {
	width: 15px;
	height: 15px;
	transition: transform 0.4s var(--ease);
}

.eh-cb-path__go:hover svg {
	transform: translateX(4px);
}

.eh-cb-why {
	padding: clamp(4rem, 9vw, 8rem) 0;
	background: var(--ink);
	color: #fff;
}

.eh-cb-why__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

#eh-ed .eh-cb-why .eh-ed-eyebrow {
	color: rgba(255, 255, 255, 0.55);
}

#eh-ed .eh-cb-why .eh-ed-eyebrow span {
	color: #fff;
}

#eh-ed .eh-cb-why .eh-ed-h2 {
	color: #fff;
}

.eh-cb-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}

.eh-cb-why__grid div {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

#eh-ed .eh-cb-why__grid dt {
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: -0.02em;
}

#eh-ed .eh-cb-why__grid dd {
	margin-top: 0.5rem;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.95rem;
}

#eh-ed .eh-cb-why__partners {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.1rem;
}

#eh-ed .eh-cb-why__partners strong {
	color: #fff;
	font-weight: 500;
}

#eh-ed .eh-cb-why__partners a {
	margin-left: 0.5rem;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ═══ Formulaire ═══ */
.eh-form-sec {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(4rem, 9vw, 8rem) var(--pad);
	scroll-margin-top: 60px;
}

.eh-form-sec__aside {
	position: sticky;
	top: 110px;
}

#eh-ed .eh-form-sec__aside > p:not(.eh-ed-eyebrow) {
	margin-top: 1.25rem;
	color: var(--muted);
}

#eh-ed .eh-form-sec__media {
	margin: 2rem 0 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

#eh-ed .eh-form-sec__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.eh-form-sec__direct {
	display: grid;
	gap: 0.4rem;
	margin-top: 2rem !important;
	font-size: 1.15rem;
}

#eh-ed .eh-form-sec__direct a {
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.45s var(--ease);
}

#eh-ed .eh-form-sec__direct a:hover {
	background-size: 100% 1px;
}

.eh-form {
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--cream);
}

.eh-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eh-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.25rem;
}

.eh-form__field {
	position: relative;
	margin: 0 !important;
}

#eh-ed .eh-form__field input,
#eh-ed .eh-form__field textarea {
	display: block;
	width: 100%;
	height: auto;
	min-height: 58px;
	margin: 0;
	padding: 1.5rem 0 0.5rem;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, 0.28);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	font: inherit;
	font-size: 1.05rem;
	line-height: 1.4;
	transition: border-color 0.3s ease;
	-webkit-appearance: none;
}

#eh-ed .eh-form__field textarea {
	min-height: 150px;
	resize: vertical;
}

#eh-ed .eh-form__field input:focus,
#eh-ed .eh-form__field textarea:focus {
	border-bottom-color: var(--ink);
	outline: none;
}

#eh-ed .eh-form__field > label:not(.eh-chip) {
	position: absolute;
	top: 1.35rem;
	left: 0;
	margin: 0;
	color: var(--muted);
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.35s var(--ease), color 0.3s ease;
}

#eh-ed .eh-form__field > label small {
	font-size: 0.8em;
}

#eh-ed .eh-form__field input:focus + label:not(.eh-chip),
#eh-ed .eh-form__field input:not(:placeholder-shown) + label:not(.eh-chip),
#eh-ed .eh-form__field textarea:focus + label,
#eh-ed .eh-form__field textarea:not(:placeholder-shown) + label {
	color: var(--ink);
	transform: translateY(-1.15rem) scale(0.72);
}

.eh-form__field::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
	pointer-events: none;
}

.eh-form__field:focus-within::after {
	transform: scaleX(1);
}

.eh-form__chips::after {
	display: none;
}

.eh-form__err {
	display: block;
	min-height: 0;
	color: #a2362f;
	font-size: 13px;
}

.eh-form__err:empty {
	display: none;
}

.eh-form__field.is-error input,
.eh-form__field.is-error textarea {
	border-bottom-color: #a2362f !important;
}

#eh-ed .eh-form__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	border: 0;
}

#eh-ed .eh-form__chips legend {
	width: 100%;
	margin-bottom: 0.9rem;
	padding: 0;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eh-form__chips .eh-form__err {
	width: 100%;
}

.eh-chip {
	position: relative;
	margin: 0 !important;
	cursor: pointer;
}

#eh-ed .eh-form__field .eh-chip input {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0;
	pointer-events: none;
}

.eh-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 1.1rem;
	border: 1px solid rgba(17, 17, 17, 0.22);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-transform: none;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s ease;
}

.eh-chip:hover span {
	border-color: var(--ink);
}

.eh-chip input:checked + span {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.eh-chip input:focus-visible + span {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.eh-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 0.5rem;
}

#eh-ed .eh-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 56px;
	padding: 0 2rem;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), opacity 0.3s ease;
}

#eh-ed .eh-form__submit svg {
	width: 18px;
	height: 18px;
	transition: transform 0.4s var(--ease);
}

#eh-ed .eh-form__submit:hover {
	background: transparent;
	color: var(--ink);
}

#eh-ed .eh-form__submit:hover svg {
	transform: translateX(4px);
}

#eh-ed .eh-form__submit[disabled] {
	opacity: 0.5;
	cursor: wait;
}

#eh-ed .eh-form__legal {
	flex: 1;
	min-width: 14rem;
	color: var(--muted);
	font-size: 13px;
}

#eh-ed .eh-form__legal a {
	color: inherit;
	text-decoration: underline;
}

#eh-ed .eh-form__status {
	margin: 0;
	font-size: 15px;
}

#eh-ed .eh-form__status:empty {
	display: none;
}

#eh-ed .eh-form__status.is-ok {
	padding: 1rem 1.25rem;
	border-left: 3px solid #3c8b4b;
	background: #fff;
	color: #2f6b3a;
}

#eh-ed .eh-form__status.is-ko {
	padding: 1rem 1.25rem;
	border-left: 3px solid #a2362f;
	background: #fff;
	color: #a2362f;
}

/* ═══ Responsive ═══ */
@media (max-width: 1023px) {
	.eh-ct-hero,
	.eh-form-sec {
		grid-template-columns: minmax(0, 1fr);
	}

	.eh-form-sec__aside {
		position: relative;
		top: 0;
	}

	#eh-ed .eh-form-sec__media {
		display: none;
	}

	.eh-cb-paths__grid,
	.eh-cb-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.eh-ct-hero {
		padding-top: 7rem;
	}

	#eh-ed .eh-ct-channel {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.eh-ct-channel__k {
		grid-column: 1 / -1;
	}

	#eh-ed .eh-ct-status {
		grid-column: 1;
	}

	.eh-ct-channel__go {
		grid-row: 2;
		grid-column: 2;
	}

	.eh-form__row,
	.eh-cb-paths__grid,
	.eh-cb-why__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.eh-form {
		margin: 0 calc(var(--pad) * -1);
	}

	#eh-ed .eh-form__submit {
		justify-content: center;
		width: 100%;
	}

	.eh-cb-hero {
		min-height: 86svh;
	}
}
