/* Section "doc-engagements" (sections/doc-engagements.php, prefix de-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.de-root { /* plain dark band, as on the home page (client, 2026-11-26), the logo's crescent in mustard at the bottom right */
	--de-wm: clamp(20rem, 40vw, 35rem);
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: clamp(4.5rem, 2.6rem + 7.6vw, 8rem);
	background: var(--c-dark);
	color: var(--c-ivoire-100);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.de-root::before {
	content: "";
	position: absolute;
	right: calc(var(--de-wm) * -0.12);
	bottom: calc(var(--de-wm) * -0.3);
	z-index: -1;
	width: var(--de-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;
}
.de-root .de-halo { top: -12rem; left: 50%; width: min(40rem, 140vw); margin-left: -20rem; opacity: 0.55; }
.de-inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-gutter); }

/* Wide photo of the doctor at his desk, between the title and the cards */
.de-media {
	max-width: 68rem;
	margin: 0 auto var(--space-7);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--c-ivoire-100) 14%, transparent);
	border-radius: 3rem var(--radius-lg);
	aspect-ratio: 4 / 3;
}
.de-root .de-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 768px) {
	.de-media { aspect-ratio: 21 / 9; }
}
.de-head { margin-bottom: var(--space-7); text-align: center; }
.de-root .hec-eyebrow.hec-eyebrow { justify-content: center; }
.de-root .de-title { /* canvas title style, as on the home page */
	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;
}
.de-title-em { color: var(--c-ambre-500); font-style: italic; font-weight: 400; }
.de-root .de-grid { display: grid; gap: var(--space-5); max-width: 68rem; margin: 0 auto; padding: 0; list-style: none; }
/* Cards in the same language as the "Ses expertises" cards (client, 2026-10-09), on the dark
   band: alternating very rounded corners, a top row with the number, a hairline and the icon
   in the logo's turning arc, a mustard line drawn along the bottom edge on hover. */
.de-card {
	position: relative;
	overflow: hidden;
	padding: var(--space-6) var(--space-6) var(--space-7);
	border: 1px solid color-mix(in srgb, var(--c-ivoire-100) 14%, transparent);
	border-radius: 3rem var(--radius-lg);
	background: linear-gradient(160deg, color-mix(in srgb, var(--c-ivoire-100) 9%, transparent), color-mix(in srgb, var(--c-ivoire-100) 3%, transparent));
	transition: transform 0.35s, border-color 0.35s, background-color 0.35s;
}
.de-card:nth-child(even) { border-radius: var(--radius-lg) 3rem; }
.de-card::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--c-ambre-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.de-card:hover {
	border-color: color-mix(in srgb, var(--c-ambre-500) 60%, transparent);
	transform: translateY(-6px);
}
.de-card:hover::after { transform: scaleX(1); }
.de-top { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.de-num { color: var(--c-ambre-500); font-family: var(--f-serif); font-size: 2.25rem; font-style: italic; line-height: 1; }
.de-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-ambre-500), transparent); opacity: 0.6; }
.de-chip { width: 3.25rem; height: 3.25rem; } /* 3D pictogram, no frame (.hec3 in sections.css; client 2026-11-27) */
.de-root .de-term {
	margin: 0 0 var(--space-3);
	color: var(--c-ivoire-100);
	font-family: var(--f-serif);
	font-size: var(--fs-citation);
	font-weight: 400;
	line-height: 1.2;
}
.de-text { margin: 0; color: var(--c-on-dark-text); }

@media (min-width: 768px) {
	.de-root .de-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.de-root .de-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.de-card, .de-card::after { transition: none; }
	.de-card:hover { transform: none; }
}
