/* Devio Care: inner page layouts. A page opts in by wrapping its content in a
   ".dc-page" group (see deploy/page-*.html); everything here is scoped to it.

   Editorial system, deliberately plain: left-aligned text, hairline rules instead
   of boxed cards, real photos instead of icon tiles, flat colour instead of
   gradients and soft shadows. Type and spacing carry the hierarchy. */

/* The sidebar is empty sitewide: an opted-in page uses the full width. */
#primary:has(.dc-page) {
	width: 100%;
	float: none;
	padding-left: 15px; /* same left edge as the banner title */
	padding-right: 15px;
}
@media screen and (max-width: 600px) {
	/* Phones: M from the screen edge, like the logo (see .wrapper in style.css). */
	#primary:has(.dc-page) {
		padding-left: var(--dc-space-m);
		padding-right: var(--dc-space-m);
	}
}
:root {
	--dc-rule: #dbe5f0;
	--dc-radius-media: 16px;
}
.dc-page {
	max-width: none;
	margin: 0;
	padding-bottom: 0;
}
.dc-page p {
	color: var(--dc-gray);
}
/* Plugins (Open User Map) bring WordPress's default dark button back: restate ours. */
.dc-page .wp-block-button__link {
	background-color: var(--dc-blue);
	border-color: var(--dc-blue);
	color: #fff;
	font-weight: 700; /* core's global styles (font-weight: inherit) can print after ours */
}
.dc-page ul,
.dc-page ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.dc-page li::before {
	content: none !important;
}
.dc-page h1,
.dc-page h2,
.dc-page h3 {
	text-wrap: balance;
}
/* Running text defaults, at zero specificity so every component below keeps its
   own values: a heading sits S above its text and L below what came before. */
:where(.dc-page) p {
	margin: 0 0 var(--dc-space-m);
}
:where(.dc-page) :is(h2, h3, h4) {
	margin: 0 0 var(--dc-space-s);
}
:where(.dc-page) :is(p, ul, ol, figure) + :is(h2, h3, h4) {
	margin-top: var(--dc-space-l);
}
:where(.dc-page) :is(p, h2, h3, h4):last-child {
	margin-bottom: 0;
}

/*--------------------------------------------------------------
# Intro: one clear sentence, the action, then the photo
--------------------------------------------------------------*/
.dc-page .dc-intro {
	align-items: center;
	gap: var(--dc-space-xxl);
	margin: 0 0 var(--dc-gap-section);
}
.dc-intro__text {
	flex-basis: 56% !important;
}
.dc-intro__media {
	flex-basis: 44% !important;
}
/* Intro titles are the page H1 (integrated hero) or an H2: same look. */
.dc-intro :is(h1, h2),
.dc-split :is(h1, h2) {
	margin: 0 0 var(--dc-space-s);
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}
/* Beside a form (Contacts, Devis) the column is narrower: two lines at most. */
.dc-split :is(h1, h2) {
	font-size: clamp(2rem, 2.6vw, 2.25rem);
}
/* As the page's first block, the photo's badge needs room under the breadcrumb. */
.dc-showcase.dc-intro--hero {
	margin-top: var(--dc-space-l);
}
/* Text under a page or section title: the size of body text (it was 19px, the
   user found it too big); the unitless line-height scales the leading with it. */
.dc-lead {
	margin: 0 0 var(--dc-space-l);
	font-size: 16px;
	line-height: 1.6;
}
/* Pages without a photo: same left alignment as everything else, narrower measure. */
.dc-page .dc-intro--center {
	max-width: 760px;
	margin-bottom: var(--dc-gap-section);
}
.dc-page .wp-block-buttons {
	gap: var(--dc-space-s);
}
.dc-page .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--dc-blue);
	color: var(--dc-blue);
}
@media (hover: hover) and (pointer: fine) {
	.dc-page .is-style-outline .wp-block-button__link:hover {
		background: var(--dc-blue);
		color: #fff;
	}
}
.dc-page .dc-note {
	margin: var(--dc-space-s) 0 0;
	font-size: 15px;
}
.dc-card-image {
	max-width: 420px;
	margin: 0 0 0 auto !important;
}
.dc-card-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--dc-radius-media);
}
/* Intro whose landscape photo takes exactly the height of the text beside it
   (add .dc-intro--fill), instead of a tall portrait setting the section's height.
   A wider text column keeps the title on two lines. */
.dc-page .dc-intro--fill {
	align-items: stretch;
}
.dc-intro--fill .dc-intro__text {
	flex-basis: 58% !important;
	align-self: center;
}
.dc-intro--fill .dc-intro__media {
	flex-basis: 42% !important;
	position: relative;
	min-height: 240px; /* only a floor: the photo normally takes the text's height */
}
.dc-intro--fill .dc-card-image {
	position: absolute;
	inset: 0;
	max-width: none;
	margin: 0 !important;
}
.dc-intro--fill .dc-card-image img {
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%; /* keep headroom: wide crops cut the table, not heads */
}
.dc-intro--fill :is(h1, h2) {
	font-size: clamp(2rem, 3vw, 2.625rem);
}
/* Below 1024px the photo column would turn into a thin portrait strip: stack the
   text and the photo (WordPress only stacks columns at 781px), photo full width, 3:2. */
@media screen and (max-width: 1023px) {
	.dc-page .dc-intro--fill {
		flex-wrap: wrap !important;
		gap: var(--dc-space-xl);
	}
	.dc-intro--fill .dc-intro__text,
	.dc-intro--fill .dc-intro__media {
		flex-basis: 100% !important;
	}
	.dc-intro--fill .dc-intro__media {
		min-height: 0;
	}
	.dc-intro--fill .dc-card-image {
		position: static;
	}
	.dc-intro--fill .dc-card-image img {
		height: auto;
		aspect-ratio: 3 / 2;
	}
}
/*--------------------------------------------------------------
# Split hero: a tinted panel with the text, a photo bleeding to the right edge
--------------------------------------------------------------*/
/* Opt-in with .dc-split-hero (functions.php drops the banner and the top padding).
   The section spans the full width of #content (container query units, so the
   scrollbar doesn't count); its text stays on the site's left edge through an inner
   .wrapper, and the photo covers the right half up to the edge of the screen. */
.dc-has-split-hero #content {
	container-type: inline-size;
}
.dc-has-split-hero .page-section.dc-page-top.dc-page-top--flush {
	padding-top: 0;
}
.dc-split-hero {
	position: relative;
	width: 100cqw;
	margin: 0 0 var(--dc-gap-section) calc(50% - 50cqw);
	background: var(--dc-blue-light);
}
.dc-split-hero__content {
	width: 50%;
	padding: var(--dc-space-xxxl) var(--dc-space-xl) var(--dc-space-xxxl) 0;
}
.dc-page .dc-split-hero h1 {
	margin: 0 0 var(--dc-space-s);
	font-size: clamp(1.875rem, 2.75vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
/* One sentence per line; the question never breaks (the font scales down on
   phones so it fits), the second sentence may wrap on a phone, evenly. */
.dc-split-hero h1 .dc-line {
	display: block;
	text-wrap: balance;
}
.dc-split-hero h1 .dc-line:first-child {
	white-space: nowrap;
}
.dc-split-hero .dc-lead {
	margin: 0 0 var(--dc-space-l);
}
.dc-split-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 50%;
	margin: 0;
}
.dc-split-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 70%;
}
/* Advantages: short one-line items, each with a small duotone icon. Two columns
   when both fit at 246px (the longest item on one line), else one: never three. */
.dc-ticks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(246px, calc(50% - var(--dc-space-m))), 1fr));
	gap: var(--dc-space-s) var(--dc-space-m);
	margin: 0 0 var(--dc-space-xl) !important;
}
.dc-ticks li {
	display: flex;
	align-items: flex-start;
	gap: var(--dc-space-s);
	color: var(--dc-ink);
	font-size: 15px;
	line-height: 1.4;
}
.dc-ticks .dc-ph {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--dc-blue);
}
@media screen and (min-width: 1024px) {
	/* The photo is square: the panel is as tall as the photo is wide, so nothing
	   is cut, unless that would overflow the screen (then it fills the screen under
	   the 80px header, and only the very top and bottom of the photo are trimmed).
	   The text sits in the middle. */
	.dc-split-hero {
		display: grid;
		align-content: center;
		min-height: min(50cqw, calc(100svh - 80px));
	}
}
@media screen and (max-width: 1023px) {
	/* Stacked: text first, the photo under it in 4:3. */
	.dc-split-hero__content {
		width: auto;
		padding: var(--dc-space-xl) 0;
	}
	.dc-page .dc-split-hero h1 {
		font-size: clamp(1.5rem, 7vw, 2rem);
	}
	.dc-split-hero__media {
		position: static;
	}
	.dc-split-hero__media img {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}
@media screen and (max-width: 600px) {
	/* Phones: the whole square photo. */
	.dc-split-hero__media img {
		aspect-ratio: 1;
	}
}

/*--------------------------------------------------------------
# Showcase intro: a shaped photo on the left, a second photo and a badge on it
--------------------------------------------------------------*/
/* For a page whose main photo is real and must not be regenerated (Matinée): the
   photo is cropped 4:3, given a pebble shape and an offset tint behind it; a small
   round photo and an icon badge sit on its edges. Text on the right. */
.dc-showcase {
	display: grid;
	grid-template-columns: minmax(0, 10fr) minmax(0, 13fr); /* room for a two-line title */
	align-items: center;
	gap: var(--dc-space-xxl);
	margin: 0 0 var(--dc-gap-section);
}
.dc-showcase__media {
	position: relative;
	padding: 0 var(--dc-space-m) var(--dc-space-m) 0;
}
.dc-showcase__media::before,
.dc-showcase__photo {
	border-radius: 28% 22% 26% 28% / 50% 34% 40% 50%;
}
/* The tint, offset down and right by M. */
.dc-showcase__media::before {
	content: "";
	position: absolute;
	inset: var(--dc-space-m) 0 0 var(--dc-space-m);
	background: #cfe1f5;
}
.dc-showcase__photo {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.dc-showcase__inset,
.dc-showcase__badge {
	position: absolute;
	z-index: 1;
	border: 6px solid #fff;
	border-radius: 50%;
	box-shadow: 0 12px 28px rgba(10, 61, 112, 0.18);
}
.dc-showcase__inset {
	right: 0;
	bottom: 4%;
	width: 31%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.dc-showcase__badge {
	top: calc(-1 * var(--dc-space-m));
	left: 6%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	background: var(--dc-blue);
	color: #fff;
}
.dc-showcase__badge .dc-ph {
	width: 40px;
	height: 40px;
}
.dc-showcase :is(h1, h2) {
	margin: 0 0 var(--dc-space-s);
	font-size: clamp(1.875rem, 2.3vw, 2.125rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/* Entrance, once on load (the intro is above the fold): the text rises, the tint
   settles in behind the photo, then the round photo and the badge pop on its edges.
   After that the two of them drift 6px up and down, slowly, like the reference's
   floating thumbnails but calmer: they are decoration next to text being read. */
.dc-showcase__text > * {
	animation: dc-rise 0.5s var(--ease-out) both;
}
.dc-showcase__text > :nth-child(2) { animation-delay: 0.05s; }
.dc-showcase__text > :nth-child(3) { animation-delay: 0.1s; }
.dc-showcase__media::before {
	animation: dc-tint-in 0.6s var(--ease-out) 0.15s both;
}
@keyframes dc-tint-in {
	from {
		opacity: 0;
		transform: translate(calc(-1 * var(--dc-space-m)), calc(-1 * var(--dc-space-m)));
	}
}
@keyframes dc-drift {
	to {
		translate: 0 -6px;
	}
}
.dc-showcase__inset {
	animation: dc-pop 0.45s var(--ease-out) 0.35s both, dc-drift 6s ease-in-out 1s infinite alternate;
}
.dc-showcase__badge {
	animation: dc-pop 0.45s var(--ease-out) 0.45s both, dc-drift 6s ease-in-out 3s infinite alternate;
}
@media screen and (max-width: 1023px) {
	.dc-showcase {
		grid-template-columns: 1fr;
	}
	.dc-showcase__media {
		max-width: 620px;
	}
}
@media screen and (max-width: 600px) {
	.dc-showcase {
		gap: var(--dc-space-xl);
	}
	.dc-showcase__badge {
		width: 64px;
		height: 64px;
		border-width: 4px;
	}
	.dc-showcase__badge .dc-ph {
		width: 30px;
		height: 30px;
	}
	.dc-showcase__inset {
		border-width: 4px;
	}
}

/*--------------------------------------------------------------
# Section titles: left-aligned, like the rest of the text
--------------------------------------------------------------*/
.dc-page .dc-section-title {
	margin: 0 0 var(--dc-space-l);
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	letter-spacing: -0.015em;
}
.dc-page .dc-section-lead {
	max-width: 640px;
	margin: calc(var(--dc-space-s) - var(--dc-space-l)) 0 var(--dc-space-l); /* S under the section title */
	font-size: 16px; /* never larger than the .dc-lead under the page title */
	line-height: 1.6;
}
.dc-page [id] {
	scroll-margin-top: 96px;
}

/*--------------------------------------------------------------
# Lists of points: hairline above each, no box, no icon tile
--------------------------------------------------------------*/
.dc-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--dc-space-l) var(--dc-space-xl); /* rows L apart: no padding under the last row adds to the section gap */
	margin: 0 0 var(--dc-gap-section) !important;
}
.dc-features li {
	padding: var(--dc-space-m) 0 0;
	border-top: 1px solid var(--dc-rule);
}
.dc-features__icon {
	display: none;
}
.dc-features h3,
.dc-steps h3 {
	margin: 0 0 var(--dc-space-xs);
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.dc-features p,
.dc-steps p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}
.dc-page .dc-features__eg {
	margin-top: var(--dc-space-xs);
	font-size: 15px;
	font-style: italic;
}

/*--------------------------------------------------------------
# Feature cards: a hexagon badge astride the card's left edge
--------------------------------------------------------------*/
/* Variant of .dc-features (add .dc-features--cards). The badge sits half outside
   its card, so each card keeps half a badge of room on its left. */
.dc-features--cards {
	--dc-hex-w: 64px;
	--dc-hex-h: 72px;
	gap: var(--dc-space-l) var(--dc-space-xl);
}
.dc-features--cards li {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(var(--dc-hex-h) + 2 * var(--dc-space-l));
	margin-left: calc(var(--dc-hex-w) / 2);
	padding: var(--dc-space-l) var(--dc-space-l) var(--dc-space-l) calc(var(--dc-hex-w) / 2 + var(--dc-space-m));
	border: 1px solid var(--dc-rule);
	border-radius: var(--dc-radius-media);
	background: #fff;
}
/* Pointy-top hexagon with rounded corners, as a mask so its fill can change colour. */
.dc-features--cards .dc-hex {
	position: absolute;
	top: calc(50% - var(--dc-hex-h) / 2);
	left: calc(var(--dc-hex-w) / -2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--dc-hex-w);
	height: var(--dc-hex-h);
	background-color: var(--dc-blue-light);
	color: var(--dc-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cpath d='M32 4 60 20v32L32 68 4 52V20z' stroke='%23000' stroke-width='8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cpath d='M32 4 60 20v32L32 68 4 52V20z' stroke='%23000' stroke-width='8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.dc-features--cards .dc-ph {
	width: 32px;
	height: 32px;
}
@media screen and (max-width: 1199px) {
	/* Below 1200px three cards leave titles on two lines: two per row. */
	.dc-features--cards {
		grid-template-columns: repeat(2, 1fr);
	}
	/* An odd last card takes the whole row rather than leaving half of it empty. */
	.dc-features--cards li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
@media screen and (max-width: 600px) {
	/* Phones: a smaller badge and an M right edge leave the text a wider column. */
	.dc-features--cards {
		--dc-hex-w: 52px;
		--dc-hex-h: 60px;
	}
	.dc-features--cards li {
		padding-right: var(--dc-space-m);
	}
	.dc-features--cards .dc-ph {
		width: 26px;
		height: 26px;
	}
}
/* Pointing at a card fills its badge, like the reference's flip without the
   600ms 3D turn: the cards aren't links, so the cue stays on the badge. */
@media (hover: hover) and (pointer: fine) {
	.dc-features--cards li:hover .dc-hex {
		background-color: var(--dc-blue);
		color: #fff;
	}
}

/*--------------------------------------------------------------
# Photo cards: the whole card is the link
--------------------------------------------------------------*/
.dc-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--dc-space-xl);
	margin: 0 0 var(--dc-gap-section) !important;
}
.dc-cards a {
	display: block;
	color: inherit;
	transition: transform 0.16s var(--ease-out);
}
.dc-cards img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--dc-radius-media);
	transition: filter 0.2s ease;
}
.dc-cards h3 {
	margin: var(--dc-space-m) 0 var(--dc-space-xs);
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.dc-cards p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}
.dc-cards a:active {
	transform: scale(0.98);
	transition-duration: 0.08s;
}
@media (hover: hover) and (pointer: fine) {
	.dc-cards a:hover img {
		filter: brightness(1.06);
	}
	.dc-cards a:hover h3 {
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 4px;
	}
}

/*--------------------------------------------------------------
# Steps: a plain numbered sequence
--------------------------------------------------------------*/
.dc-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--dc-space-xs) var(--dc-space-xl);
	margin: 0 0 var(--dc-gap-section) !important;
	counter-reset: dc-step;
}
.dc-steps li {
	padding: var(--dc-space-m) 0 0;
	border-top: 2px solid var(--dc-blue);
	counter-increment: dc-step;
}
.dc-steps li::after {
	content: none;
}
.dc-steps h3::before {
	content: counter(dc-step) ". ";
	color: var(--dc-blue);
}
.dc-steps a {
	font-weight: 700;
}

/*--------------------------------------------------------------
# Process panel: a photo on the left, the steps stacked on the right
--------------------------------------------------------------*/
/* Closes a service page: how to start, then the action. The photo takes the
   height of the steps; below 1024px it goes on top at 3:2. The panel stands in
   for a whole section, hence section-scale inner padding (XXL). */
.dc-process {
	display: grid;
	grid-template-columns: 5fr 6fr;
	margin: 0 0 var(--dc-gap-section);
	border: 1px solid var(--dc-rule);
	border-radius: var(--dc-radius-media);
	overflow: hidden;
	background: #fff;
}
.dc-process:last-child {
	margin-bottom: 0;
}
.dc-process__media {
	position: relative;
	min-height: 320px;
	margin: 0;
}
.dc-process__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%; /* short panels crop height: keep heads, lose the table */
}
.dc-process__body {
	align-self: center;
	padding: var(--dc-space-xxl);
}
.dc-page .dc-process .dc-section-title {
	margin-bottom: var(--dc-space-m);
}
.dc-page .dc-process .dc-section-title:has(+ .dc-lead) {
	margin-bottom: var(--dc-space-s); /* a title and its text are one group */
}
.dc-page .dc-steps--stack {
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0 0 var(--dc-space-xl) !important;
}
.dc-steps--stack li {
	padding: var(--dc-space-m) 0;
	border-top: 1px solid var(--dc-rule);
}
.dc-steps--stack li:last-child {
	padding-bottom: 0;
}
.dc-process__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--dc-space-s) var(--dc-space-l);
}
.dc-process__actions .dc-link-arrow {
	color: var(--dc-blue);
	font-weight: 700;
}
/* Below 1200px the photo column turns portrait and cuts people off: photo on top,
   wide (16:9) on tablets so it doesn't fill the screen, 3:2 on phones. */
@media screen and (max-width: 1199px) {
	.dc-process {
		grid-template-columns: 1fr;
	}
	.dc-process__media {
		min-height: 0;
	}
	.dc-process__media img {
		position: static;
		aspect-ratio: 16 / 9;
		object-position: 50% 40%;
	}
	.dc-process__body {
		padding: var(--dc-space-xl);
	}
}
@media screen and (max-width: 600px) {
	.dc-process__media img {
		aspect-ratio: 3 / 2;
	}
	.dc-process__body {
		padding: var(--dc-space-m);
	}
}

/*--------------------------------------------------------------
# Videos: portrait clips, no frame
--------------------------------------------------------------*/
.dc-videos {
	margin: 0 0 var(--dc-gap-section);
}
/* Classic themes wrap group content in an inner container: the grid goes there. */
.dc-videos:not(:has(> .wp-block-group__inner-container)),
.dc-videos > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--dc-space-l);
}
.dc-video-single {
	max-width: 360px;
	margin: 0 0 var(--dc-gap-section);
}
/* Text beside a portrait video (add .dc-media-split to a group): the whole 9:16
   video stays visible on the right, the text is centred on its height. */
.dc-media-split {
	margin: 0 0 var(--dc-gap-section);
}
.dc-media-split:not(:has(> .wp-block-group__inner-container)),
.dc-media-split > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: center;
	gap: var(--dc-space-xxl);
}
.dc-page .dc-media-split .dc-features {
	margin: 0 !important;
}
/* The activity types stacked in one column, hairline between them. */
.dc-page .dc-features--stack {
	grid-template-columns: 1fr;
	gap: 0;
}
.dc-features--stack li {
	padding-bottom: var(--dc-space-m);
}
.dc-features--stack li:last-child {
	padding-bottom: 0;
}
@media screen and (max-width: 781px) {
	.dc-media-split:not(:has(> .wp-block-group__inner-container)),
	.dc-media-split > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
		gap: var(--dc-space-xl);
	}
	.dc-media-split__video {
		max-width: 360px;
	}
}
.dc-page .wp-block-video {
	margin: 0;
}
.dc-page .wp-block-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: var(--dc-radius-media);
	background: var(--dc-blue-dark);
}
.dc-page .wp-block-video figcaption {
	margin: var(--dc-space-xs) 0 0;
	text-align: left;
	color: var(--dc-gray);
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
}

/*--------------------------------------------------------------
# Closing: one line and the action, on a flat tint
--------------------------------------------------------------*/
.dc-cta-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--dc-space-l) var(--dc-space-xxl);
	padding: var(--dc-space-l);
	border-radius: var(--dc-radius-media);
	background: var(--dc-blue-light);
}
.dc-cta-panel > .wp-block-group__inner-container {
	display: contents;
}
.dc-page .dc-cta-panel__quote {
	flex: 1 1 420px;
	max-width: 640px;
	margin: 0;
	color: var(--dc-ink);
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.dc-page .dc-cta-panel__motto {
	display: none;
}

/*--------------------------------------------------------------
# Split layouts: text and contact rows beside a form
--------------------------------------------------------------*/
.dc-page .dc-split {
	gap: var(--dc-space-xxl);
	align-items: flex-start;
}
.dc-split__aside {
	flex-basis: 40% !important;
}
.dc-split__main {
	flex-basis: 60% !important;
}
.dc-split--form-first .dc-split__main {
	flex-basis: 64% !important;
}
.dc-split--form-first .dc-split__aside {
	flex-basis: 36% !important;
}
@media screen and (min-width: 782px) {
	.dc-sticky {
		position: sticky;
		top: 104px; /* below the sticky header */
	}
}

/* Contact rows: label + value, hairline between, a small line icon. */
.dc-contact-list {
	margin-top: var(--dc-space-l) !important;
	border-top: 1px solid var(--dc-rule);
}
.dc-contact-list li {
	border-bottom: 1px solid var(--dc-rule);
}
.dc-contact-list a,
.dc-contact-list__static {
	display: flex;
	align-items: center;
	gap: var(--dc-space-s);
	padding: var(--dc-space-s) 0;
	color: var(--dc-gray);
	transition: color 0.15s ease;
}
.dc-contact-list .dc-features__icon {
	display: flex;
	color: var(--dc-blue);
}
.dc-contact-list .dc-icon {
	width: 20px;
	height: 20px;
}
.dc-contact-list strong {
	display: block;
	color: var(--dc-ink);
	font-weight: 700;
	font-size: 15px;
}
@media (hover: hover) and (pointer: fine) {
	.dc-contact-list a:hover {
		color: var(--dc-blue);
	}
}

/* Form cards: one hairline frame, no shadow. */
.dc-form-card {
	padding: var(--dc-space-l);
	border: 1px solid var(--dc-rule);
	border-radius: var(--dc-radius-media);
	background: #fff;
}
.dc-form-card h2,
.dc-form-card h3 {
	margin: 0 0 var(--dc-space-xs);
	font-size: 22px;
}
.dc-form-card--narrow {
	max-width: 820px;
	margin: 0;
}
/* Everest Forms v2 draws its own card (ID selector): the page card is enough. */
.dc-page .dc-form-card .evf-container,
.dc-page .dc-form-card .everest-forms {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

/* Aside next to the quote form. */
.dc-aside-card {
	padding: var(--dc-space-l);
	border-radius: var(--dc-radius-media);
	background: var(--dc-blue-light);
}
.dc-aside-card h3 {
	margin: 0 0 var(--dc-space-m);
	font-size: 20px;
}
.dc-steps--compact {
	grid-template-columns: 1fr !important;
	gap: 0 !important;
	margin: 0 0 var(--dc-space-m) !important;
}
.dc-steps--compact li {
	padding: var(--dc-space-s) 0 !important;
	border-top: 1px solid #cfe0f2 !important;
}
.dc-steps--compact h3 {
	margin: 0 0 var(--dc-space-xs) !important;
	font-size: 16px !important;
}
.dc-steps--compact p {
	font-size: 15px !important;
}
.dc-page .dc-aside-card__call {
	margin: 0;
	padding-top: var(--dc-space-m);
	border-top: 1px solid #cfe0f2;
	font-size: 15px;
}
.dc-aside-card__call a {
	font-weight: 700;
}

/* Map. */
.dc-map-card {
	overflow: hidden;
	margin: 0 0 var(--dc-gap-section);
	border-radius: var(--dc-radius-media);
}
.dc-map-card .open-user-map,
.dc-map-card .open-user-map .map-wrap {
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
/* Directory map (inc/annuaire.php): a wider bubble so the card can be read, the
   card image opens full size, and a clear button carries the profile number. */
.dc-map-card .leaflet-popup-content {
	width: min(380px, 72vw) !important;
}
.dc-zoom-link {
	display: block;
	cursor: zoom-in;
}
/* The button stays in view: it sticks to the bottom of the scrolling bubble (desktop)
   or panel (phone) while the card and text scroll under it. */
.dc-profile-cta {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: var(--dc-space-s) 0 0 !important;
	padding: var(--dc-space-s) 0;
	background: #fff;
	box-shadow: 0 -10px 12px -10px rgba(8, 28, 50, 0.25);
}
.dc-profile-cta .wp-block-button__link {
	width: 100%;
}
/* The plugin's link colour setting (.open-user-map .oum_location_text a, !important)
   turned the button's text blue on blue: out-rank it. */
.open-user-map .oum_location_text .dc-profile-cta a.wp-block-button__link {
	border-color: var(--dc-blue) !important;
	background-color: var(--dc-blue) !important; /* the phone panel sits outside .dc-page */
	color: #fff !important;
}
@media (hover: hover) and (pointer: fine) {
	.open-user-map .oum_location_text .dc-profile-cta a.wp-block-button__link:hover {
		border-color: var(--dc-blue-dark) !important;
		background-color: var(--dc-blue-dark) !important;
	}
}
/* Sticky needs the bubble/panel itself to be the scroller (the text block scrolled on
   its own), and the plugin's white fade at the bottom sat on top of the button. */
.open-user-map .leaflet-popup-content .oum_location_text,
.open-user-map #location-fullscreen-container .oum_location_text {
	overflow: visible !important;
}
.open-user-map .leaflet-popup-content-wrapper::after {
	display: none !important;
}
/* Standalone buttons (not inside .wp-block-button) keep the button box, not
   WordPress's extra padding on top of the min-height. */
.dc-profile-cta .wp-block-button__link,
.dc-profile__actions .wp-block-button__link,
.dc-process__actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: auto; /* core sets 100%, which stretches it to the wrapped actions row */
	min-height: 48px;
	padding: 0 var(--dc-space-l);
	font-size: 16px;
}
/* "Trouver un marqueur" is jargon, and the list under the map does that job. */
.dc-map-card .leaflet-control-search {
	display: none !important;
}
/* Cluster bubbles in the brand blue instead of the plugin's pink. */
.dc-map-card .marker-cluster {
	background-color: rgba(14, 85, 155, 0.22) !important;
}
.dc-map-card .marker-cluster div {
	background-color: var(--dc-blue) !important;
	color: #fff !important;
	font-weight: 700;
}

/* Profiles under the map: the team's card image, the profile number, the action. */
.dc-profiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* wide enough for both actions on one line */
	gap: var(--dc-space-xl) var(--dc-space-l);
	margin: 0 0 var(--dc-gap-section) !important;
}
.dc-profile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--dc-rule);
	border-radius: var(--dc-radius-media);
	background: #fff;
}
.dc-profile__image {
	display: block;
	cursor: zoom-in;
}
.dc-profile__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.dc-profile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: var(--dc-space-l);
}
.dc-page .dc-profile h3 {
	margin: 0 0 var(--dc-space-xs);
	font-size: 19px;
}
.dc-page .dc-profile__date {
	margin: 0 0 var(--dc-space-m);
	font-size: 15px;
}
/* Both actions on one line: a compact button, the link right after it. */
.dc-profile__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--dc-space-s) var(--dc-space-m);
	margin-top: auto;
}
.dc-profile__actions .wp-block-button__link {
	padding: 0 var(--dc-space-m);
	font-size: 15px;
	white-space: nowrap;
}
.dc-profile__actions .dc-link-arrow {
	color: var(--dc-blue);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}
.dc-profile__actions .dc-link-arrow .dc-icon {
	width: 16px;
	height: 16px;
}
@media screen and (max-width: 600px) {
	.dc-profile__body {
		padding: var(--dc-space-m);
	}
}

/* Full-size profile card (devio.js). Opens like a modal: centred, a short fade-in. */
/* The whole card fits the window at once (no scrolling): the image is capped by the
   viewport height, and the dialog shrinks to it. */
.dc-zoom {
	width: fit-content;
	max-width: calc(100vw - 2 * var(--dc-space-m));
	max-height: calc(100dvh - 2 * var(--dc-space-m));
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--dc-radius-media);
	background: #fff;
}
.dc-zoom[open] {
	animation: dc-zoom-in 0.2s var(--ease-out);
}
@keyframes dc-zoom-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}
.dc-zoom::backdrop {
	background: rgba(8, 28, 50, 0.7);
}
.dc-zoom__scroll {
	max-height: calc(100dvh - 2 * var(--dc-space-m));
	overflow: auto;
}
.dc-zoom img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 2 * var(--dc-space-m));
	cursor: zoom-in;
}
/* Phones: a tap shows the card at its real size, to pan around with a finger. */
.dc-zoom.is-zoomed img {
	width: 1024px;
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}
.dc-zoom .dc-zoom__close {
	position: absolute;
	top: var(--dc-space-s);
	right: var(--dc-space-s);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92) !important;
	color: var(--dc-ink) !important;
	box-shadow: 0 4px 12px rgba(8, 28, 50, 0.18);
}
.dc-zoom__close .dc-icon {
	width: 22px;
	height: 22px;
}

/* Quote form: the field filled from the directory shows it was filled for you. */
.evf-container .dc-prefilled input.input-text {
	border-color: var(--dc-blue) !important;
	background: var(--dc-blue-light) !important;
}

/*--------------------------------------------------------------
# Tablet & phone
--------------------------------------------------------------*/
@media screen and (max-width: 991px) {
	.dc-features,
	.dc-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (max-width: 781px) {
	/* WordPress stacks the columns here: text first, then the photo. */
	.dc-card-image {
		max-width: 360px;
		margin: 0 !important;
	}
	.dc-page .dc-intro,
	.dc-page .dc-split {
		gap: var(--dc-space-xl);
	}
	.dc-steps {
		grid-template-columns: 1fr;
		gap: var(--dc-space-l);
	}
}
@media screen and (max-width: 600px) {
	.dc-features,
	.dc-cards {
		grid-template-columns: 1fr;
	}
	/* Buttons share a row when they fit (each grows to fill it), otherwise each
	   takes its own row, full width. Compact like the profile cards. */
	.dc-page .wp-block-buttons > .wp-block-button {
		flex: 1 1 auto;
	}
	.dc-page .wp-block-buttons .wp-block-button__link {
		width: 100%;
		padding-left: var(--dc-space-m);
		padding-right: var(--dc-space-m);
		font-size: 15px;
	}
	/* "Appeler le +228…": tapping calls, the number shows in the dialer. */
	.dc-tel-number {
		display: none;
	}
	/* A button and a text link: each at its own width, side by side when they fit,
	   never stretched. */
	.dc-process__actions {
		gap: var(--dc-space-s) var(--dc-space-xs); /* XS beside: both fit from 375px */
	}
	.dc-process__actions .wp-block-button__link {
		padding: 0 var(--dc-space-m);
		font-size: 15px;
	}
	.dc-process__actions .dc-link-arrow {
		font-size: 15px;
	}
	.dc-process__actions .dc-link-arrow .dc-icon {
		width: 16px;
		height: 16px;
	}
	.dc-process__actions .dc-link-whatsapp .dc-ph {
		width: 20px;
		height: 20px;
	}
	/* Portrait videos: swipe sideways instead of three tall clips stacked. */
	.dc-videos:not(:has(> .wp-block-group__inner-container)),
	.dc-videos > .wp-block-group__inner-container {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		padding-bottom: var(--dc-space-xs);
		margin-right: calc(-1 * var(--dc-space-m)); /* to the screen edge */
		padding-right: var(--dc-space-m);
	}
	.dc-videos figure {
		scroll-snap-align: start;
	}
}

/*--------------------------------------------------------------
# Home: testimonials (real voices instead of a row of icon tiles)
--------------------------------------------------------------*/
.dc-home-voices {
	padding: var(--dc-space-xl) 0 var(--dc-gap-cloud);
}
.dc-home-voices .dc-videos {
	margin-bottom: 0;
}
.dc-home-voices .dc-section-lead a {
	font-weight: 700;
	white-space: nowrap;
}
/* On the home page the content already sits in a .wrapper: no extra inset. */
.home #primary:has(.dc-page) {
	padding-left: 0;
	padding-right: 0;
}
/* Shorter portrait crop so three testimonials don't take a whole screen. */
.dc-home-voices .wp-block-video video {
	aspect-ratio: 4 / 5;
}
