/* Section "doc-formation" (sections/doc-formation.php, prefix df-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.df-root {
	--df-wm: clamp(20rem, 38vw, 34rem);
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: clamp(4.5rem, 2.6rem + 7.6vw, 8rem);
	background: var(--c-lin-200);
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.df-root::before { /* watermark: the logo's crescent in mustard, top right */
	content: "";
	position: absolute;
	top: calc(var(--df-wm) * -0.14);
	right: calc(var(--df-wm) * -0.16);
	z-index: -1;
	width: var(--df-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.16;
	transform: scaleX(-1);
	pointer-events: none;
}
.df-root .df-halo { top: 50%; left: -10rem; width: min(44rem, 140vw); margin-top: -22rem; opacity: 0.8; }
.df-inner {
	position: relative;
	display: grid;
	gap: var(--space-9);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-gutter);
}

/* Large portrait in an arch, with the gliding mustard line (same drawing as the home page's doctor section) */
.df-media {
	position: relative;
	container-type: inline-size;
	justify-self: center;
	width: min(88%, 27rem);
	aspect-ratio: 3 / 4;
}
.df-root .df-ring { position: absolute; top: -4.5%; left: -6%; width: 112%; height: 90.5%; overflow: visible; pointer-events: none; }
.df-ring-line { fill: none; stroke: var(--c-ambre-500); stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 46 100; stroke-dashoffset: -8; }
.df-ring-dot { offset-path: path("M0 120.67V56A56 56 0 0 1 112 56V120.67"); offset-distance: 54%; offset-rotate: 0deg; fill: var(--c-ambre-500); }
.df-ring-halo { opacity: 0.22; }
.df-frame { width: 100%; height: 100%; overflow: hidden; border-radius: 50cqi 50cqi var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.df-root .df-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.df-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--c-ambre-200); color: var(--c-brun-500); }
.df-ph-icon { width: 30%; height: 30%; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }

/* Name card on the portrait: the doctor's name and speciality */
.df-root .df-badge {
	position: absolute;
	bottom: 7%;
	left: -5%;
	display: grid;
	gap: 0.125rem;
	max-width: 86%;
	margin: 0;
	padding: var(--space-4) var(--space-5) var(--space-4) var(--space-6);
	border: 1px solid var(--c-lin-300);
	border-radius: var(--radius-lg);
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-md);
	line-height: 1.3;
}
.df-badge::before { /* mustard dot in front of the name */
	content: "";
	position: absolute;
	top: calc(var(--space-4) + 0.45em);
	left: var(--space-4);
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--c-ambre-500);
}
.df-badge-name { color: var(--c-cacao-900); font-family: var(--f-serif); font-size: var(--fs-citation); font-style: italic; }
.df-badge-role { color: var(--c-cacao-700); font-size: var(--fs-body-sm); }
@media (prefers-reduced-motion: no-preference) {
	.df-ring-line { animation: df-sweep-line 24s ease-in-out infinite alternate; }
	.df-ring-dot { animation: df-sweep-dot 24s ease-in-out infinite alternate; }
}
@keyframes df-sweep-line { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -54; } }
@keyframes df-sweep-dot { from { offset-distance: 46%; } to { offset-distance: 100%; } }

/* Copy */
.df-copy { min-width: 0; }
.df-root .df-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;
}
.df-title-em { color: var(--c-brun-500); font-style: italic; font-weight: 400; }
.df-text { max-width: 36em; margin: 0 0 var(--space-7); color: var(--c-cacao-700); }

/* Diplomas: numbered circles on a mustard line */
.df-root .df-list { display: grid; margin: 0; padding: 0; list-style: none; }
.df-step { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--space-4); }
.df-step-top { display: flex; flex-direction: column; align-items: center; }
.df-num {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1.5px solid var(--c-ambre-500);
	border-radius: 50%;
	background: var(--c-ivoire-50);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-ambre-500) 16%, transparent);
	color: var(--c-ambre-700); /* warm text on light: never mustard (README) */
	font-size: var(--fs-body-sm);
	font-weight: 600;
	line-height: 1;
}
.df-line { flex: 1; width: 1px; min-height: var(--space-3); margin-block: var(--space-2); background: color-mix(in srgb, var(--c-ambre-500) 70%, transparent); }
.df-step:last-child .df-line { visibility: hidden; }
.df-step-body { padding: 0.3rem 0 var(--space-5); }
.df-step:last-child .df-step-body { padding-bottom: 0; }
.df-root .df-uni { margin: 0; color: var(--c-cacao-900); font-weight: 600; line-height: var(--lh-ui); }
.df-root .df-dip { margin: var(--space-1) 0 0; color: var(--c-cacao-700); }

@media (min-width: 1024px) {
	.df-inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
	}
	.df-media { width: min(100%, 33rem); }
	.df-root .df-badge { left: -9%; }
}
