/* Section "doc-approche" (sections/doc-approche.php, prefix da-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.da-root {
	--da-wm: clamp(22rem, 40vw, 36rem);
	position: relative;
	overflow: clip;
	padding-block: var(--space-section);
	background: /* linen to ivory with warm amber light; plain at both edges */
		radial-gradient(ellipse 45% 55% at 78% 50%, color-mix(in srgb, var(--c-ambre-200) 55%, transparent), transparent 70%),
		radial-gradient(ellipse 35% 40% at 0% 60%, color-mix(in srgb, var(--c-ambre-200) 35%, transparent), transparent 70%),
		linear-gradient(180deg, var(--c-lin-200), var(--c-ivoire-100));
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.da-root::before { /* watermark: the logo's arc in mustard, bottom left, clear of the edges */
	content: "";
	position: absolute;
	bottom: var(--space-6);
	left: calc(var(--da-wm) * -0.2);
	width: var(--da-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.22;
	pointer-events: none;
}
.da-inner {
	position: relative;
	display: grid;
	gap: var(--space-8);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-gutter);
}

/* Copy */
.da-copy { display: flex; flex-direction: column; min-width: 0; }
.da-root .da-title { /* canvas title style, as on the home page */
	max-width: 12em;
	margin: 0 0 var(--space-6);
	color: var(--c-cacao-900);
	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;
}
.da-title-em { color: var(--c-brun-500); font-style: italic; font-weight: 400; }
.da-text { max-width: 36em; margin: 0; color: var(--c-cacao-700); }

/* The key sentence on an ivory card with a large mustard quote mark */
.da-root .da-quote {
	position: relative;
	max-width: 34em;
	margin: var(--space-7) 0 0;
	padding: var(--space-7) var(--space-6) var(--space-6);
	border: 1px solid var(--c-lin-300);
	border-left: 3px solid var(--c-ambre-500);
	border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-sm);
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-md);
	color: var(--c-brun-500);
	font-family: var(--f-serif);
	font-size: var(--fs-citation);
	font-style: italic;
	font-weight: 400;
	line-height: 1.4;
}
.da-quote::before { /* the quote mark, overlapping the top edge */
	content: "\201C";
	position: absolute;
	top: -0.42em;
	left: var(--space-5);
	color: var(--c-ambre-500);
	font-size: 4.5rem;
	font-style: normal;
	line-height: 1;
}

/* Photo of the doctor: one large curved corner (top right, the outer side), a thin mustard frame
   offset up and to the right behind it */
.da-media {
	position: relative;
	isolation: isolate;
	justify-self: center;
	width: min(88%, 26rem);
	aspect-ratio: 4 / 5;
}
.da-media::before {
	content: "";
	position: absolute;
	inset: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4) var(--space-4);
	z-index: -1;
	border: 1px solid var(--c-ambre-500);
	border-radius: var(--radius-lg) 9rem var(--radius-lg) var(--radius-lg);
	pointer-events: none;
}
.da-frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--radius-lg) 9rem var(--radius-lg) var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.da-root .da-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }

@media (min-width: 1200px) {
	.da-inner { /* copy on the left, photo on the right (client, 2026-11-26: the photo above, in
	               doc-formation, is on the left, so the two photos must not stand one under the other) */
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		grid-template-areas: "copy media";
		gap: var(--space-9);
	}
	/* The photo keeps its size (4:5, at most 30rem wide) and both columns share the row's height:
	   the photo's top is level with the index label, its bottom with the quote card's bottom
	   (the quote is pushed down if the photo is the taller of the two). */
	.da-media { grid-area: media; align-self: stretch; justify-self: end; width: min(100%, 30rem); }
	.da-copy { grid-area: copy; align-self: stretch; }
	.da-root .da-quote { margin-top: auto; }
	.da-text { margin-bottom: var(--space-7); }
}
