/**
 * Case study v4 — the restyle of the 21 v3 pages (template-parts/case-studies/
 * <slug>.php), 11/11/2026. Loaded after case-study-v3.css by
 * rmd_enqueue_case_study_v3() (inc/enqueue.php), on the views that render a v3
 * part only; every rule is scoped to main.cs4 (single-case_study.php).
 *
 * The markup it styles comes from the ONE v4 transform, tools/case-studies/v3-kit/
 * v4.py, run by to_php.py when the templates are generated (the preview in
 * RMD-design-system/work-session-2026-11-11/case-study-v4/ runs the same module).
 * It restyles the v3 components by CLASS (never by slug), in the language of the
 * owner's About page (tools/pages/specs/a-propos/about-final.html) and service-page
 * mockups:
 *
 *   identity panel ......... About .ag-idband (panel, figures on Dawn rules, arcs
 *                            in a right gutter of their own, never behind text)
 *   bands .................. on white, split by a hairline at content width
 *   steps (1st, 3rd …) ..... About .ag-steps (numbered dots on a line)
 *   steps (2nd, 4th …) ..... the services' numbered Dawn rail (case-study-v4.js draws it)
 *   lessons ................ About .ag-facts rows, the number in Dawn
 *   notes .................. tinted panels
 *   quotes ................. plain text on the RMD gradient line (owner, 17/11)
 *   tables ................. the case-study kit's own table (case_study_kit.css)
 *   mid CTA ................ a light accent-indigo panel, as wide as its words
 *   related studies ........ the hub's own card (case_study.css), styled there
 *
 * Owner's refusals kept out: a side index, rank badges, tinted rows, dark bands
 * other than the closing band (case-study-v3.css) and the footer.
 * Tokens first, literals as fallbacks.
 */

.cs4 {
	--cs4-line: var(--color-border-surface-modals, #e2e8f0);
	--cs4-text: var(--color-content-primary, #0f172b);
	--cs4-body: var(--color-content-secondary, #1d293d);
	--cs4-muted: var(--color-content-tertiary, #3b4b62);
	--cs4-indigo: var(--color-accent-on-indigo, #4f39f6);
	--cs4-alt: var(--color-surface-canvas-alt, #f5f8fb);
	--cs4-head: var(--font-family-primary, "Poppins", ui-sans-serif, system-ui, sans-serif);
	--cs4-ease: cubic-bezier(.2, .7, .2, 1);
	/* About's two Dawn rules (--ab-rule-down / --ab-rule-up), literal as there */
	--cs4-rule-down: linear-gradient(to bottom, #fa9329 0%, #fa9329 12%, #f35e36 20%, #e92444 30%, #cb0a67 40%, #8824ae 50%, #433ef4 60%, #3943ff 65%, #3943ff 100%);
	--cs4-rule-up: linear-gradient(to bottom, #3842fe 0%, #9121a3 25%, #ec3a3e 50%, #f9842e 75%, #fa9329 100%);
	--cs4-dawn-text: linear-gradient(142.72deg, #ec003f 0%, #fb2c36 50%, #ff8904 100%);
	background: var(--color-surface-canvas, #fff);
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.cs4 .cs-hero { background: var(--color-surface-canvas, #fff); padding-bottom: 0; }
/* the hero pill carries no arrow (owner, 04/11) */
.cs4 .cs-hero .cs-hero__text > .cs-overline > img,
.cs4 .cs-hero .cs-hero__text > .cs-overline > svg,
.cs4 .cs-hero .cs4-h1 > .cs-overline > img,
.cs4 .cs-hero .cs4-h1 > .cs-overline > svg { display: none; }
/* descriptive H1 (GEO/SEO guide, 13/11/2026): v4.py hero_h1() moves the « Client ·
   service » pill INTO the h1. Same look and place as before: the pill keeps its own
   type (the h1's -2px tracking and balanced wrapping must not reach it) and the
   hero's 24px gap now sits between the pill and the hook, inside the heading. */
.cs4 .cs-hero .cs4-h1 { display: flex; flex-direction: column; align-items: flex-start; gap: var(--rmd-space-24); margin: 0; }
.cs4 .cs-hero .cs4-h1 > .cs4-kicker { letter-spacing: normal; text-wrap: wrap; text-transform: none; }
.cs4 .cs-hero .cs4-h1 > .cs4-h1-hook { display: block; max-width: 100%; }

/* E-E-A-T: who wrote it and when — rmd_cs_byline() (inc/case-study-kit.php): the
   post's dates, the author only when a filter names one. Plain text: « Publiée
   le » and its <time> one word space apart, a date never split over two lines.
   (The preview's dashed « à confirmer » slots, .cs4-tbc, and the inline-flex gap
   drawn around them, never reach the theme: with a real date that gap read as a
   double space.) */
.cs4-byline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs, 6px) var(--space-xl, 20px);
	margin: var(--space-xl, 20px) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--font-size-label-lg, 13px);
	line-height: 1.5;
	color: var(--cs4-muted);
}
.cs4-byline time { white-space: nowrap; }

/* ── identity panel (the hero's fiche) — About .ag-idband ─────────────── */
.cs4 .cs-hero .cs-fiche {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-3xl, 32px);
	margin: var(--space-5xl, 48px) 0 0;
	padding: var(--space-3xl, 32px);
	background: var(--color-surface-canvas, #fff);
	border: 1px solid var(--cs4-line);
	border-radius: var(--radius-16, 16px);
	box-shadow: var(--shadow-md, 0 3px 12px rgba(0, 0, 0, .04));
}
/* the arcs never run behind text (checkers, 11/11: they crossed the last figure
   at 1440 and the title at 390). From 1101px the panel keeps a right gutter of
   its own (padding-right 168) and the arcs live ONLY there; below 1101px there
   are no arcs.
   12/11 (owner: « adjust this. it's messy » — the arcs' tips hung in the white
   between the texts and faded before the edge): the drawing is anchored to the
   panel's top-right CORNER and clipped by the panel (overflow hidden, radius 16),
   so every arc ENTERS from the top edge and LEAVES through the right edge, and
   the visible slice is the arcs' coloured middle, never a tip. The drawing is
   identity-arcs.svg — features-side.svg without its crescent, the four thin arcs
   whose radii are 0.836–0.911 of the box — mirrored (scaleX(-1)) so its centre
   sits 765px right of and 215px above the corner, outside the panel: each arc
   crosses the top edge 45–125px left of the corner (angles 13–15°, the gradient
   already coloured) and the right edge 130–280px below it (24–33°, before the
   gradient fades at 35°). 125px < the 168px gutter, so the last column stays
   clear at 1101, 1440 and 1920. A box of 1000 and the two offsets are the whole
   geometry: change one, re-measure. tests/render/case-study-v4.php reads the url. */
.cs4 .cs-hero .cs-fiche::after { content: none; }
@media (min-width: 1101px) {
	.cs4 .cs-hero .cs-fiche { padding-right: 168px; }
	.cs4 .cs-hero .cs-fiche::after {
		content: "";
		position: absolute;
		top: -215px;
		right: -765px;
		width: 1000px;
		height: 1000px;
		background: url("../../img/sections/identity-arcs.svg") 0 0 / 1000px 1000px no-repeat;
		transform: scaleX(-1);
		pointer-events: none;
	}
}
.cs4 .cs-hero .cs-fiche > * { position: relative; z-index: 1; min-width: 0; }
.cs4 .cs-hero .cs-fiche:has(> .cs-fiche__head) { grid-template-columns: 260px minmax(0, 1fr); }
.cs4 .cs-hero .cs-fiche > .cs-fiche__head { align-self: center; padding: 0; border: 0; background: none; }
.cs4 .cs-hero .cs-fiche > .cs-fiche__head .cs-fiche__title { font-family: var(--cs4-head); font-size: var(--font-size-title-md, 18px); font-weight: 500; line-height: 1.4; color: var(--cs4-text); margin: var(--space-md, 12px) 0 0; }
.cs4 .cs-hero .cs-fiche > .cs-facts4 { grid-column: 1 / -1; }

/* figures — About .ag-num / .ag-idband-facts: value, label, source; Dawn rule */
.cs4 .cs-kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2xl, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	background: none;
	box-shadow: none;
}
.cs4 .cs-kpi {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: var(--space-sm, 8px) 0 var(--space-sm, 8px) var(--space-xl, 20px);
	border: 0;
	border-left: 2px solid transparent;
	border-image: var(--cs4-rule-down) 1;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.cs4 .cs-kpi:nth-child(even) { border-image: var(--cs4-rule-up) 1; }
.cs4 .cs-kpi__value {
	order: 0;
	align-self: flex-start;
	margin: 0;
	font-family: var(--cs4-head);
	font-size: clamp(var(--font-size-h4, 32px), 3vw, var(--font-size-h3, 40px));
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.8px;
	color: var(--cs4-text);
	font-variant-numeric: tabular-nums;
}
/* a value that is words, not a figure, reads at title size */
.cs4 .cs-kpi.cs4-word .cs-kpi__value { font-size: var(--font-size-h5, 24px); letter-spacing: 0; line-height: 1.25; }
.cs4 .cs-kpi__label {
	order: 1;
	margin: var(--space-md, 12px) 0 0;
	font-family: var(--cs4-head);
	font-size: var(--font-size-title-sm, 16px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cs4-text);
}
.cs4 .cs-kpi__text {
	order: 2;
	margin: var(--space-2xs, 4px) 0 0;
	font-size: var(--font-size-body-sm, 14px);
	line-height: 1.5;
	color: var(--cs4-muted);
}

/* facts — compact label / value columns under a hairline */
.cs4 .cs-hero .cs-facts4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-xl, 20px) var(--space-2xl, 24px);
	margin: 0;
	padding: var(--space-2xl, 24px) 0 0;
	border: 0;
	border-top: 1px solid var(--cs4-line);
	background: none;
}
.cs4 .cs-hero .cs-fact4 { margin: 0; padding: 0; border: 0; background: none; min-width: 0; }
.cs4 .cs-hero .cs-fact4 dt {
	margin: 0;
	font-family: var(--cs4-head);
	font-size: var(--font-size-label-lg, 13px);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cs4-muted);
}
.cs4 .cs-hero .cs-fact4 dd { margin: var(--space-2xs, 4px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-text); }

/* ── bands: full content width, on white, split by hairlines ─────────── */
/* No side index (owner, 11/11: « i dont want this layout on my case sudies »):
   every band keeps the content width the current pages give it. */
.cs4 .cs4-flow > section {
	margin: 0;
	padding: var(--space-6xl, 64px) 0;
	background: none;
	scroll-margin-top: 96px;
}
/* the hairline spans the CONTENT width (the container less its gutters), the
   way About splits its sections, never the full viewport */
.cs4 .cs4-flow > section + section > .rmd-container {
	background: linear-gradient(var(--cs4-line), var(--cs4-line)) top center / calc(100% - 48px) 1px no-repeat;
	padding-top: var(--space-6xl, 64px);
}
.cs4 .cs4-flow > section + section { padding-top: 0; }
/* section pills carry the arrow (owner, 04/11) — the theme's own tile */
.cs4 .cs4-flow .cs-overline { padding-right: 10px; }
.cs4 .cs4-flow .cs-overline::after {
	content: "";
	width: 32px;
	height: 20px;
	flex: none;
	background: url("../../img/sections/overline-arrow.svg") center / contain no-repeat;
}

/* ── steps, 1st/3rd/… grid of the page — About .ag-steps ───────────────── */
.cs4 .cs4-steps {
	display: grid;
	grid-template-columns: repeat(var(--cs4-n, 3), minmax(0, 1fr));
	/* 64 between two rows of steps (owner 18/11: more space between the first
	   row and the second), 40 once they stack on a phone */
	gap: var(--space-6xl, 64px) var(--space-xl, 20px);
	margin: var(--space-4xl, 40px) 0 0;
	padding: 0;
	list-style: none;
}
.cs4 .cs4-steps > li {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	padding: var(--space-2xl, 24px) 0 0;
	border: 0;
	border-top: 2px solid var(--cs4-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.cs4 .cs4-steps .rmd-icon-tile { display: none; }
.cs4 .cs4-steps .cs-card__num {
	position: absolute;
	top: -15px;
	left: 0;
	display: inline-grid;
	place-items: center;
	min-width: 28px;
	height: 28px;
	margin: 0;
	padding: 0 6px;
	border-radius: var(--radius-full, 9999px);
	background: var(--cs4-indigo);
	box-shadow: 0 0 0 4px var(--color-surface-canvas, #fff);
	font-family: var(--cs4-head);
	font-size: var(--font-size-label-lg, 13px);
	font-weight: 600;
	line-height: 1;
	color: #fff;
}
.cs4 .cs4-steps .cs-card__title { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-title-md, 18px); font-weight: 500; line-height: 1.35; color: var(--cs4-text); }
.cs4 .cs4-steps .cs-card__text { margin: var(--space-xs, 6px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: var(--line-height-body, 1.6); color: var(--cs4-muted); }
/* a step's takeaway line (Sun Trails): 16 between the text and its rule —
   the rule above sat right under the last line (owner 18/11) */
.cs4 .cs4-steps .cs-x-take { margin-top: var(--space-lg, 16px); }
/* …and every takeaway of a row starts on ONE line (owner 18/11: « make them all
   the same line »): each step lends its three parts to the list's rows
   (subgrid), so a short text no longer lifts its rule above its neighbours'.
   The step's 24 above the title moves onto the title: a subgrid's own padding
   does not push its first row down. */
.cs4 .cs4-steps:has(.cs-x-take) > li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; padding-top: 0; }
.cs4 .cs4-steps:has(.cs-x-take) .cs-card__title { padding-top: var(--space-2xl, 24px); }
.cs4 .cs4-steps:has(.cs-x-take) .cs-x-take { align-self: start; }
.cs4 .cs-x-tag {
	margin: var(--space-md, 12px) 0 0;
	font-family: var(--cs4-head);
	font-size: var(--font-size-label-lg, 13px);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cs4-indigo);
	background: none;
	padding: 0;
}

/* ── steps, 2nd/4th/… grid — the numbered Dawn guide rail ──────────────── */
.cs4 .cs4-flow ul.cs4-rail {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	max-width: 760px;
	margin: var(--space-4xl, 40px) auto 0;
	padding: 0;
	list-style: none;
}
.cs4 .cs4-rail::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 20px;
	bottom: 20px;
	width: 2px;
	background: var(--cs4-rule-up);
	transform-origin: top;
	transform: scaleY(var(--cs4-p, 1));
	transition: transform .1s linear;
}
.cs4 .cs4-rail > li {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: var(--space-2xl, 24px);
	align-items: start;
	min-width: 0;
	margin: 0;
	padding: 0 0 var(--space-3xl, 32px);
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.cs4 .cs4-rail > li:last-child { padding-bottom: 0; }
.cs4 .cs4-rail .rmd-icon-tile { display: none; }
.cs4 .cs4-rail .cs-card__num {
	grid-row: 1 / span 4;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: var(--radius-full, 9999px);
	background: var(--color-surface-canvas, #fff);
	box-shadow: 0 0 0 1px var(--cs4-line), 0 0 0 6px var(--color-surface-canvas, #fff);
	font-family: var(--cs4-head);
	font-size: var(--font-size-label-xl, 14px);
	font-weight: 600;
	line-height: 1;
	color: var(--cs4-indigo);
}
.cs4 .cs4-rail .cs-card__title { grid-column: 2; margin: 8px 0 0; font-family: var(--cs4-head); font-size: var(--font-size-title-md, 18px); font-weight: 500; line-height: 1.35; color: var(--cs4-text); }
.cs4 .cs4-rail .cs-card__text,
.cs4 .cs4-rail .cs-x-tag { grid-column: 2; }
.cs4 .cs4-rail .cs-card__text { margin: var(--space-xs, 6px) 0 0; font-size: var(--font-size-body-md, 16px); line-height: var(--line-height-body, 1.6); color: var(--cs4-body); }

/* ── lessons — About .ag-facts rows, the number in Dawn ────────────────── */
.cs4 .cs4-flow ul.cs4-lessons {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	max-width: 880px;
	margin: var(--space-4xl, 40px) auto 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--cs4-line);
}
.cs4 .cs4-lessons > li {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	column-gap: var(--space-2xl, 24px);
	align-items: start;
	margin: 0;
	padding: var(--space-2xl, 24px) 0;
	border: 0;
	border-bottom: 1px solid var(--cs4-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.cs4 .cs4-lessons .rmd-icon-tile { display: none; }
.cs4 .cs4-lessons .cs-card__bignum {
	grid-row: 1 / span 3;
	margin: 0;
	font-family: var(--cs4-head);
	font-size: var(--font-size-h3, 40px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.8px;
	color: var(--cs4-text);
}
.cs4 .cs4-lessons .cs-card__title { grid-column: 2; margin: 4px 0 0; font-family: var(--cs4-head); font-size: var(--font-size-title-md, 18px); font-weight: 500; line-height: 1.35; color: var(--cs4-text); }
.cs4 .cs4-lessons .cs-card__text { grid-column: 2; margin: var(--space-xs, 6px) 0 0; max-width: 68ch; font-size: var(--font-size-body-md, 16px); line-height: var(--line-height-body, 1.6); color: var(--cs4-body); }

/* any other card grid (no number): About .ag-sector cards */
.cs4 .cs4-flow .cs-cards3:not(.cs4-steps):not(.cs4-rail):not(.cs4-lessons):not(.cs-rels) > .cs-card {
	background: var(--color-surface-canvas, #fff);
	border: 1px solid var(--color-border-surface-container, #f4f7fa);
	border-radius: var(--radius-8, 8px);
	box-shadow: var(--shadow-md, 0 3px 12px rgba(0, 0, 0, .04));
}

/* ── notes and quotes — About .ag-why (tinted panel); a quote is plain text on the RMD gradient line (owner, 17/11) ─── */
.cs4 .cs4-flow .cs-note,
.cs4 .cs4-flow .cs-x-notebox {
	background: var(--cs4-alt);
	border: 0;
	border-radius: var(--radius-16, 16px);
	box-shadow: none;
}
.cs4 .cs4-flow .cs-x-quote {
	position: relative;
	margin-block: 0;
	padding: var(--space-3xs, 4px) 0 var(--space-3xs, 4px) calc(4px + var(--space-2xl, 24px));
	text-align: left;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.cs4 .cs4-flow .cs-x-quote::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	border-radius: 2px;
	background: var(--cs4-rule-down);
}
.cs4 .cs4-flow .cs-x-quote p:not(.cs-x-quote__by),
.cs4 .cs4-flow .cs-x-quote .cs-x-quote__text {
	margin: 0;
	max-width: 30ch;
	font-family: var(--cs4-head);
	font-size: clamp(var(--font-size-h6, 20px), 2.2vw, var(--font-size-h5, 24px));
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--cs4-text);
}
.cs4 .cs4-flow .cs-x-quote .cs-x-quote__by { margin: var(--space-xl, 20px) 0 0; font-size: var(--font-size-body-sm, 14px); color: var(--cs4-muted); }

/* ── results — big figure in Dawn, table on hairlines ───────────────────── */
/* The single-figure card (owner, 11/11: « Position 0 · extrait Google » set as a
   huge indigo heading in a pale indigo panel, a dead area beside it). Now the
   result treatment of the identity panel: no panel, the figure in Dawn on a Dawn
   rule, its label in ink, the source in tertiary. A POSITION card (label
   « Position ») also shows its query as a Google search field (.cs4-query,
   scripts/build.py): white pill, magnifier, the query in Google's ink, nothing
   else — no microphone, no lens, no fake control. « Position » becomes the small
   overline above the figure; the part of the figure after « · » becomes its
   label (« Position 0 » / « extrait Google »). Same words. */
.cs4 .cs4-flow .cs-res-top {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
	gap: var(--space-4xl, 40px) var(--space-6xl, 64px);
	align-items: center;
}
/* a heading with no lead is short: the card goes under it instead of across a
   dead column (giga-steel, dentiste-tanger, vapeol) */
.cs4 .cs4-flow .cs-res-top.cs4-res-stack { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xl, 32px); }
.cs4 .cs4-flow .cs-res-top.cs4-res-stack .cs-bigfig { max-width: 560px; }
.cs4 .cs4-flow .cs-bigfig {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	margin: 0;
	padding: var(--space-sm, 8px) 0 var(--space-sm, 8px) var(--space-2xl, 24px);
	background: none;
	border: 0;
	border-left: 2px solid transparent;
	border-image: var(--cs4-rule-down) 1;
	border-radius: 0;
	box-shadow: none;
}
/* the figure in INK on its Dawn rule (12/11, the DS Stats nodes: the number is
   H1 in content/primary, Dawn is the 2px border — never gradient text) */
.cs4 .cs4-flow .cs-bigfig .cs-bigfig__num,
.cs4 .cs4-flow .cs-bigfig .cs-bigfig__num.cs-x-bignum {
	order: 1;
	margin: 0;
	font-family: var(--cs4-head);
	font-size: clamp(var(--font-size-h3, 40px), 4vw, var(--font-size-h2, 48px));
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -1px;
	white-space: normal;
	color: var(--cs4-text);
}
.cs4 .cs4-flow .cs-bigfig .cs-bigfig__label {
	order: 2;
	margin: var(--space-md, 12px) 0 0;
	font-family: var(--cs4-head);
	font-size: var(--font-size-title-sm, 16px);
	font-weight: 500;
	line-height: 1.35;
	color: var(--cs4-text);
}
.cs4 .cs4-flow .cs-bigfig .cs-bigfig__sub { order: 3; margin: var(--space-2xs, 4px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-muted); }
/* the source line some cards print ABOVE the figure (Écran Moderne) stays first */
.cs4 .cs4-flow .cs-bigfig > .cs-bigfig__sub:first-child { order: 0; margin: 0 0 var(--space-sm, 8px); }
/* position card: « Position » as the overline, the figure, its label, the query */
.cs4 .cs4-flow .cs4-fig--query .cs-bigfig__label.cs4-fig-ov {
	order: 0;
	margin: 0 0 var(--space-sm, 8px);
	font-size: var(--font-size-label-lg, 13px);
	font-weight: 500;
	color: var(--cs4-muted);
}
/* « Position 0 · extrait Google »: the whole text stays in the figure's element;
   the part after « · » is drawn as the figure's label (ink, no gradient) and the
   separator is hidden from sight only */
.cs4 .cs4-flow .cs-bigfig__num .cs4-fig-label {
	display: block;
	margin: var(--space-sm, 8px) 0 0;
	font-family: var(--cs4-head);
	font-size: var(--font-size-title-sm, 16px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--cs4-text);
	-webkit-text-fill-color: var(--cs4-text);
	background: none;
}
.cs4 .cs4-flow .cs-bigfig__num .cs4-sep {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.cs4 .cs4-flow .cs4-query {
	order: 4;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 440px;
	min-height: 46px;
	margin: var(--space-xl, 20px) 0 0;
	padding: 0 20px;
	background: #fff;
	border: 1px solid #dfe1e5;
	border-radius: 24px;
	box-shadow: 0 1px 6px rgba(32, 33, 36, .12);
}
.cs4 .cs4-flow .cs4-query svg { width: 18px; height: 18px; flex: none; color: #9aa0a6; }
.cs4 .cs4-flow .cs4-query .cs-bigfig__sub {
	order: 0;
	margin: 0;
	min-width: 0;
	font-family: Arial, var(--font-family-secondary, Inter), sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #202124;
	overflow-wrap: anywhere;
}
.cs4 .cs4-flow .cs-fiche:not(.cs4-moved) { background: none; border: 0; box-shadow: none; padding: 0; }
.cs4 .cs4-flow .cs-kpis { margin-top: var(--space-3xl, 32px); }
/* tables: the case-study kit's own table, rule for rule (case_study_kit.css
   .rmd-ck-tablebox / .rmd-ck-table: a framed box, radius 12, header on
   canvas-alt in sentence case, 16 px cells on hairlines). The owner refused rank
   badges and tinted rows (11/11): nothing in a cell is boxed or tinted. Under the
   v3 breakpoint the table keeps its own stacked rows. */
.cs4 .cs4-flow .cs-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--color-border-surface-modals, #e2e8f0);
	border-radius: var(--radius-12, 12px);
	background: var(--color-surface-canvas, #fff);
	box-shadow: none;
}
.cs4 .cs4-flow .cs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--font-size-body-sm, 14px);
	line-height: 1.5;
	color: var(--color-content-secondary, #1d293d);
}
.cs4 .cs4-flow .cs-table th,
.cs4 .cs4-flow .cs-table td {
	padding: var(--space-lg, 16px);
	text-align: left;
	vertical-align: top;
	background: none;
	border-bottom: 1px solid var(--color-border-surface-modals, #e2e8f0);
}
.cs4 .cs4-flow .cs-table thead th {
	background: var(--color-surface-canvas-alt, #f5f8fb);
	font-family: inherit;
	font-size: var(--font-size-label-lg, 13px);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-content-tertiary, #3b4b62);
}
.cs4 .cs4-flow .cs-table tbody th { font-weight: 500; color: var(--color-content-primary, #0f172b); }
.cs4 .cs4-flow .cs-table tbody tr:last-child > :is(th, td) { border-bottom: 0; }
.cs4 .cs4-flow .cs-table tr.is-top { background: none; }

/* ── mid CTA. 11/11: a light accent-indigo panel with a navy button. 12/11
   (owner: « invent something for the boorish blue ctas »): variant A of the
   12/11 board (RMD-design-system/work-session-2026-11-12/cta-mid/) — no panel,
   no tint, no pill: the study's own KEY FIGURE (v3lib.key_figure(), the identity
   panel's first figure, quoted) in ink on its Dawn rule, the title and lead
   beside it, the DS primary button at the end; the band's own hairline above.
   Stacked on phones, the button full width. Not the closing band (navy, full
   width), not a note (canvas-alt, no button). ──────────────────────────── */
.cs4 .cs4-flow > section.cs-band--slim,
.cs4 .cs4-flow > section + section.cs-band--slim {
	padding: 0 0 var(--space-6xl, 64px);
	background: none;
	color: var(--cs4-text);
}
.cs4 .cs4-flow > .cs-band--slim .cs-band__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--space-2xl, 24px) var(--space-5xl, 48px);
	align-items: center;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	width: auto;
	max-width: none;
	margin: 0;
}
.cs4 .cs4-flow > .cs-band--slim .cs-band__fig {
	display: flex;
	flex-direction: column;
	align-self: center;
	min-width: 0;
	max-width: 260px;
	margin: 0;
	padding: var(--space-sm, 8px) 0 var(--space-sm, 8px) var(--space-xl, 20px);
	border-left: 2px solid transparent;
	border-image: var(--cs4-rule-down) 1;
}
.cs4 .cs4-flow > .cs-band--slim .cs-band__fig-value {
	font-family: var(--cs4-head);
	font-size: clamp(var(--font-size-h4, 32px), 3vw, var(--font-size-h3, 40px));
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.8px;
	color: var(--cs4-text);
	font-variant-numeric: tabular-nums;
	text-wrap: balance;
}
.cs4 .cs4-flow > .cs-band--slim .cs-band__fig-label { margin: var(--space-xs, 6px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-muted); }
.cs4 .cs4-flow > .cs-band--slim .cs-band__copy { min-width: 0; max-width: 640px; }
.cs4 .cs4-flow > .cs-band--slim .cs-band__title { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-h5, 24px); font-weight: 500; line-height: 1.35; color: var(--cs4-text); }
.cs4 .cs4-flow > .cs-band--slim .cs-band__text { margin: var(--space-xs, 6px) 0 0; font-size: var(--font-size-body-md, 16px); line-height: 1.6; color: var(--cs4-body); }
.cs4 .cs4-flow > .cs-band--slim .rmd-btn { justify-self: end; }

/* ── related studies — the hub's own card, an exact copy (owner, 11/11): the
   markup is template-parts/components/case-study-card.php as the staging hub
   prints it, styled by the hub's own sheet (assets/css/cpt/case_study.css,
   loaded by the page). Here only the band: its hairline at content width like
   the others (it spanned the viewport), and the list items left frameless. ─ */
.cs4 .cs4-related { padding: 0 0 var(--space-100, 100px); background: none; border-top: 0; }
.cs4 .cs4-related > .rmd-container {
	background: linear-gradient(var(--cs4-line), var(--cs4-line)) top center / calc(100% - 48px) 1px no-repeat;
	padding-top: var(--space-6xl, 64px);
}
.cs4 .cs4-related .cs-head--center { text-align: left; align-items: flex-start; margin-inline: 0; }
.cs4 .cs-rels { gap: var(--space-2xl, 24px); }
.cs4 .cs-rels > .cs-rel { display: flex; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.cs4 .cs-rels > .cs-rel > .rmd-cscard { flex: 1 1 auto; min-width: 0; }
/* the card's title at the hub's own size (sections.css .rmd-s-card-title): the
   page's h3 rules are unlayered and would otherwise size it as a section title */
.cs4 .cs-rels .rmd-cscard__title { font-family: var(--font-family-primary, "Poppins", ui-sans-serif, system-ui, sans-serif); font-size: var(--font-size-h5, 24px); font-weight: 500; line-height: var(--line-height-headline-sm, 1.4); letter-spacing: 0; color: var(--color-content-primary, #0f172b); }
@media (max-width: 760px) { .cs4 .cs-rels .rmd-cscard__title { font-size: var(--font-size-h6, 20px); } }

/* ── results, highlighted (owner, 11/11: « i want them to be highlighted
   better ») ──────────────────────────────────────────────────────────────
   1. A result FIGURE (a value holding a digit: « 1re position », « +60 % »,
      « × 2,9 », « 171 838 ») is drawn in the Dawn gradient, on its Dawn rule,
      the label in ink and the source line in tertiary: About's figures on Dawn
      rules, with the services pages' gradient figure. A value made of words
      (« Un même cap ») stays ink.
   2. A POSITION in a results table is typography only (owner, 11/11, on the
      rank badges and tinted rows first tried: « I dont want in my page fugly
      ai-made shit »): the leading rank token (scripts/build.py wraps it in
      .cs4-pos) in Poppins Medium, a step above the cell text, in ink; rank 1
      (and « Position 0 ») carries the Dawn gradient on the text itself. No box,
      pill, tint or glow. */
/* 12/11 — moderation (owner: « I noticed you are so focused on these colors »,
   then « don't change the colors, just ensure moderation »; the DS: one gradient
   keyword per heading, figures in ink with Dawn as a BORDER): the gradient text
   stays on the hero's H1 phrase and the closing band's phrase only. The figures
   keep their Dawn RULE and take the ink the DS gives figures (content/primary):
   the identity panel's values, the big result figure, the lessons' numbers, the
   rank « N°1 » in tables (one step larger, Poppins Medium, plain ink). */
.cs4 .cs-kpi:not(.cs4-word) .cs-kpi__value { font-weight: 500; color: var(--cs4-text); }
.cs4 .cs4-pos {
	font-family: var(--cs4-head);
	font-size: var(--font-size-body-md, 16px);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--cs4-text);
	white-space: nowrap;
}
/* « capture historique » opens its capture (owner, 11/11: it looked like a link
   and did nothing). A real <button class="cs-zoom"> — the page's own zoom dialog
   (.cs-lb, case-study-v3.js) opens on any button.cs-zoom — drawn as a text link
   with the internal link icon. A row with no capture on the page stays plain
   text (README). */
.cs4 .cs4-flow .cs-table button.cs4-caplink {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--cs4-indigo);
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: zoom-in;
}
.cs4 .cs4-flow .cs-table button.cs4-caplink:hover .cs4-ico,
.cs4 .cs4-flow .cs-table button.cs4-caplink:focus-visible .cs4-ico { transform: translateX(2px); }
.cs4 .cs4-flow .cs-table button.cs4-caplink:focus-visible { outline: 2px solid var(--color-border-control-focus, #2b7fff); outline-offset: 2px; border-radius: 2px; }

/* ── text links carry an icon (owner, 11/11: « add icon to indicate link in all
   case studies ») — Lucide arrow-up-right to another site, arrow-right inside
   rhillane.com. The icon is bound to the link's last word (scripts/build.py wraps
   both in .cs4-nw), so it never wraps onto a line of its own. Buttons and
   whole-card links keep their own arrow. ─────────────────────────────────── */
.cs4 .cs4-nw { white-space: nowrap; }
.cs4 .cs4-ico {
	display: inline-block;
	width: .95em;
	height: .95em;
	min-width: 14px;
	min-height: 14px;
	max-width: 16px;
	max-height: 16px;
	margin-left: .2em;
	vertical-align: -.14em;
	stroke: currentColor;
	transition: transform .2s var(--cs4-ease);
}
.cs4 a.cs4-lk--int:hover .cs4-ico,
.cs4 a.cs4-lk--int:focus-visible .cs4-ico { transform: translateX(2px); }
.cs4 .cs4-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── widths ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.cs4 .cs-hero .cs-fiche:has(> .cs-fiche__head) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
	.cs4 .cs4-flow .cs-res-top { grid-template-columns: minmax(0, 1fr); }
	.cs4 .cs4-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.cs4 .cs-hero .cs-fiche { padding: var(--space-xl, 20px); margin-top: var(--space-3xl, 32px); }
	.cs4 .cs4-flow > .cs-band--slim .cs-band__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl, 20px); }
	.cs4 .cs4-flow > .cs-band--slim .cs-band__fig { max-width: none; }
	.cs4 .cs4-flow > .cs-band--slim .cs-band__copy { max-width: none; }
	.cs4 .cs4-flow > .cs-band--slim .rmd-btn { width: 100%; justify-self: stretch; justify-content: center; }
	.cs4 .cs-kpis { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl, 20px); }
	.cs4 .cs-kpi { padding-left: var(--space-lg, 16px); }
	.cs4 .cs-kpi__value { font-size: var(--font-size-h4, 32px); }
	.cs4 .cs4-flow > section { padding: var(--space-5xl, 48px) 0; }
	.cs4 .cs4-flow > section + section { padding-top: 0; }
	.cs4 .cs4-flow > section + section > .rmd-container { padding-top: var(--space-5xl, 48px); }
	.cs4 .cs4-lessons > li { grid-template-columns: minmax(56px, max-content) minmax(0, 1fr); column-gap: var(--space-lg, 16px); }
	.cs4 .cs4-lessons .cs-card__bignum { font-size: var(--font-size-h4, 32px); }
	.cs4 .cs4-flow .cs-x-quote { padding-left: calc(4px + var(--space-xl, 20px)); }
}
@media (max-width: 640px) {
	.cs4 .cs4-steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4xl, 40px); }
}
@media (prefers-reduced-motion: reduce) {
	.cs4 .cs4-rail::before { transform: none; transition: none; }
	.cs4 .cs4-ico { transition: none; }
	.cs4 a.cs4-lk--int:hover .cs4-ico, .cs4 a.cs4-lk--int:focus-visible .cs4-ico,
	.cs4 .cs4-flow .cs-table button.cs4-caplink:hover .cs4-ico, .cs4 .cs4-flow .cs-table button.cs4-caplink:focus-visible .cs4-ico { transform: none; }
}


/* ═══ PHASE 1 FIXES (11/11, three checkers over the 21 studies) ═══════════════ */

/* A1 — the identity panel's facts: ONE rule (the hairline above the grid, none
   between rows), even 24px rows, label then value. Related facts share a column
   when the panel holds the eight (scripts/build.py facts_layout: Client/Secteur,
   Pays & marchés/Marché, Services/Accompagnement, Point de départ/Langues).
   Mariner's own inline rule (.cs-x-fiche .cs-fact4:nth-child(n+5){border-top})
   is outweighed here. */
.cs4 .cs-hero .cs-fiche .cs-facts4 {
	grid-template-columns: repeat(var(--cs4-n, 4), minmax(0, 1fr));
	grid-auto-flow: row;
	gap: var(--space-2xl, 24px) var(--space-2xl, 24px);
	align-items: start;
}
.cs4 .cs-hero .cs-fiche .cs-facts4.cs4-facts--pairs { grid-auto-flow: column; grid-template-rows: repeat(2, auto); }
.cs4 .cs-hero .cs-fiche .cs-facts4 > .cs-fact4 { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

/* B5 — chip groups and facts strips are plain fact lists, the identity panel's
   family: label then value, hairlines, no icon tile, no pill. Beside text: one
   column, a hairline between items. Elsewhere: a grid (columns chosen by
   scripts/build.py cols_for, no orphan row) under ONE hairline. */
.cs4 ul.cs4-chips { display: grid; grid-template-columns: repeat(var(--cs4-n, 3), minmax(0, 1fr)); gap: var(--space-xl, 20px) var(--space-2xl, 24px); margin: 0; padding: var(--space-xl, 20px) 0 0; list-style: none; border-top: 1px solid var(--cs4-line); }
.cs4 ul.cs4-chips.cs4-chips--col { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; border-top: 0; align-self: start; }
.cs4 ul.cs4-chips > .cs-chip { display: block; min-width: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.cs4 ul.cs4-chips.cs4-chips--col > .cs-chip { padding: var(--space-md, 12px) 0; border-top: 1px solid var(--cs4-line); }
.cs4 ul.cs4-chips.cs4-chips--col > .cs-chip:last-child { border-bottom: 1px solid var(--cs4-line); }
.cs4 ul.cs4-chips .rmd-icon-tile { display: none; }
.cs4 ul.cs4-chips .cs-chip__label { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-label-lg, 13px); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--cs4-muted); }
.cs4 ul.cs4-chips .cs-chip__value { margin: var(--space-2xs, 4px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-text); }
.cs4 .cs-facts4.cs4-facts--band { display: grid; grid-template-columns: repeat(var(--cs4-n, 4), minmax(0, 1fr)); gap: var(--space-xl, 20px) var(--space-2xl, 24px); margin: 0; padding: var(--space-xl, 20px) 0 0; border: 0; border-top: 1px solid var(--cs4-line); border-radius: 0; background: none; box-shadow: none; }
.cs4 .cs-facts4.cs4-facts--band > .cs-fact4 { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; min-width: 0; }
.cs4 .cs-facts4.cs4-facts--band dt { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-label-lg, 13px); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--cs4-muted); }
.cs4 .cs-facts4.cs4-facts--band dd { margin: var(--space-2xs, 4px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-text); }

/* B6 — every other card grid takes the generator's column count */
.cs4 .cs4-flow ul.cs4-cards { display: grid; grid-template-columns: repeat(var(--cs4-n, 3), minmax(0, 1fr)); }

/* B7 — a labelled number keeps only its digits in the dot / circle; the label is
   an overline above the title; the separator stays in the page, hidden from sight */
.cs4 .cs4-card-ov { margin: 0 0 var(--space-2xs, 4px); font-family: var(--cs4-head); font-size: var(--font-size-label-lg, 13px); font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--cs4-muted); }
.cs4 .cs4-rail > li > :not(.cs-card__num) { grid-column: 2; }
.cs4 .cs4-rail .cs4-card-ov { margin-top: 8px; }
.cs4 .cs4-rail .cs4-card-ov + .cs-card__title { margin-top: 0; }
.cs4 .cs4-sep { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* B2 — table cells as the kit draws them: Inter, body ink; no indigo anywhere
   (v3: every td Poppins 500 16 tertiary, the second one accent). The rest of a
   position cell is plain ink, never bold. One wrapper per cell (.cs4-cellv) keeps
   v3's phone flex row from splitting « 19e » and « → 4e ». */
.cs4 .cs4-flow .cs-table tbody td,
.cs4 .cs4-flow .cs-table tbody td:nth-child(2) {
	font-family: var(--font-family-secondary, "Inter", ui-sans-serif, system-ui, sans-serif);
	font-size: var(--font-size-body-sm, 14px);
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-content-secondary, #1d293d);
}
.cs4 .cs4-flow .cs-table tbody th {
	font-family: var(--font-family-secondary, "Inter", ui-sans-serif, system-ui, sans-serif);
	font-size: var(--font-size-body-sm, 14px);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-content-primary, #0f172b);
}
.cs4 .cs4-flow .cs-table :is(td, th) :is(strong, b) { font-weight: inherit; color: inherit; }
.cs4 .cs4-flow .cs-table .cs4-cellv { display: inline; min-width: 0; }
.cs4 .cs4-flow .cs-table-wrap.cs4-table--2 { max-width: 760px; margin-inline: auto; }

/* B4 — no word left alone: balanced titles and button labels, pretty paragraphs;
   compound words never break at their hyphen (scripts/build.py keep_compounds) */
.cs4 :is(h1, h2, h3, h4, summary, .cs-title, .cs-band__title, .cs-card__title, .cs-mailcard__title, .rmd-btn) { text-wrap: balance; }
.cs4 :is(p, li, dd, figcaption) { text-wrap: pretty; }

/* B10 — notes under a table: 12px between paragraphs, a reading measure */
.cs4 .cs4-flow .cs-note-line { max-width: 760px; }
.cs4 .cs4-flow .cs-note-line p + p { margin-top: var(--space-md, 12px); }

/* B11 — empty spacers take no room */
.cs4 .cs-x-sub:empty, .cs4 .cs4-flow .cs-prose:empty, .cs4 .cs4-flow p:empty { display: none; }

/* B12 — a source caption (.cs-x-note) is small plain text under its heading. NOT a callout:
   aside.cs-note.cs-x-note (icon + heading, 9 of them: IRIS, Rhillane, Maes, Grande distribution)
   keeps the tinted note panel — this rule made it a centred caption with its icon left behind (16/11). */
.cs4 .cs4-flow .cs-x-note:not(.cs-note) { max-width: 760px; margin-inline: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: center; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-muted); }

/* B13 — a tall capture beside text (ISIC's phone Reel) is capped; the zoom keeps
   the whole picture */
.cs4 .cs4-flow .cs-split .cs-shot__img { display: flex; justify-content: center; }
.cs4 .cs4-flow .cs-split .cs-shot__pic { width: auto; max-width: 100%; max-height: 560px; object-fit: contain; }

/* B15 — the lessons' number column takes « 53e → 8e » on one line */
.cs4 .cs4-lessons > li { grid-template-columns: minmax(88px, max-content) minmax(0, 1fr); }
.cs4 .cs4-lessons .cs-card__bignum { white-space: nowrap; }

/* B17 — quotes stay plain: no indigo quote-mark tile */
.cs4 .cs-x-quote > .rmd-icon-tile { display: none; }

@media (max-width: 1100px) {
	.cs4 .cs-hero .cs-fiche .cs-facts4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cs4 .cs-hero .cs-fiche .cs-facts4.cs4-facts--pairs { grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
}
@media (max-width: 1023px) {
	.cs4 :is(.cs4-steps, .cs4-cards, .cs4-chips, .cs4-facts--band)[style*="--cs4-n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.cs4 .cs-hero .cs-fiche .cs-facts4,
	.cs4 .cs-hero .cs-fiche .cs-facts4.cs4-facts--pairs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
	.cs4 :is(.cs4-steps, .cs4-cards, .cs4-chips, .cs4-facts--band) { grid-template-columns: minmax(0, 1fr) !important; }
	/* B14 — v3 keeps an odd last proof at half width; in one column it is full */
	.cs4 .cs-proofs > .cs-proof:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
}
@media (max-width: 600px) {
	/* B16 — the hero capture's caption stacks above its button */
	.cs4 .cs-x-herocap { flex-direction: column; align-items: flex-start; }
	/* C — long paragraphs read left-aligned on a phone, even under a centred heading */
	.cs4 .cs-head--center .cs-lead, .cs4 .cs-prose--center, .cs4 .cs-prose--center p { text-align: left; }
}


/* ═══ 12/11 — the owner's second pass over the 21 studies ═══════════════════ */

/* 2 — a two-column table with its prose is ONE block (v4.py table_blocks): the
   prose in a left column, the table beside it (560 at most), its caption right
   under the table in small tertiary text; stacked under 900px. */
.cs4 .cs4-flow .cs4-tblock {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
	gap: var(--space-4xl, 40px) var(--space-6xl, 64px);
	align-items: start;
	margin-top: var(--space-5xl, 48px);
}
.cs4 .cs4-flow .cs4-tblock__text { min-width: 0; }
.cs4 .cs4-flow .cs4-tblock__text .cs-prose,
.cs4 .cs4-flow .cs4-tblock__text .cs-prose--cols { columns: 1; max-width: 560px; }
.cs4 .cs4-flow .cs4-tblock__text .cs-prose--cols > p { margin: 0 0 var(--space-lg, 16px); }
.cs4 .cs4-flow .cs4-tblock__text .cs-prose--cols > p:last-child { margin-bottom: 0; }
.cs4 .cs4-flow .cs4-tblock__table { min-width: 0; }
.cs4 .cs4-flow .cs4-tblock .cs-table-wrap.cs4-table--2 { max-width: none; margin: 0; }
.cs4 .cs4-flow .cs4-tblock .cs-note-line { margin: var(--space-md, 12px) 0 0; max-width: none; font-size: var(--font-size-label-lg, 13px); line-height: 1.5; color: var(--cs4-muted); }

/* 4 — no underline over a whole card on hover (owner: « when I hover, there is
   the underline on all the card »): the v3 base rule `a:hover { underline }`
   reached the hub's card link in the related band. The hub's own hover is the
   lift and the sliding arrow (case_study.css, untouched); nothing underlines. */
.cs4 .cs-rels .rmd-cscard__link:hover,
.cs4 .cs-rels .rmd-cscard__link:focus-visible { text-decoration: none; }

/* 7 — a quote and the capture of that quote are ONE object (v4.py
   quote_captures): the quote panel left (text, name, role), the capture right
   with its « Agrandir », the same height; stacked under 900px, 24px between. */
.cs4 .cs4-flow .cs4-quotefig {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--space-2xl, 24px);
	align-items: stretch;
	margin-top: var(--space-5xl, 48px);
}
.cs4 .cs4-flow .cs4-quotefig > .cs-x-quote { margin: 0; max-width: none; display: flex; flex-direction: column; justify-content: center; align-self: center; } /* the line hugs the words, not the picture's height */
.cs4 .cs4-flow .cs4-quotefig > .cs-x-quote p:not(.cs-x-quote__by),
.cs4 .cs4-flow .cs4-quotefig > .cs-x-quote .cs-x-quote__text { max-width: none; }
.cs4 .cs4-flow .cs4-quotefig > figure { display: flex; flex-direction: column; min-width: 0; margin: 0; max-width: none; }
.cs4 .cs4-flow .cs4-quotefig > figure .cs-mailwin { flex: 1 1 auto; display: flex; flex-direction: column; }
.cs4 .cs4-flow .cs4-quotefig > figure :is(.cs-browser__img, .cs-shot__img) { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.cs4 .cs4-flow .cs4-quotefig > figure :is(.cs-browser__pic, .cs-shot__pic) { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.cs4 .cs4-flow .cs4-quotefig > figure figcaption { flex: none; }

/* 8 — the hero's picture card (Keeko, Mariner, Secuvision; owner: « messy », a
   tall product photo, a pale pill, two loose lines): the picture capped and
   cropped like a proof card, the claim as the card's title, the services line
   as plain small meta under it (no pill), then « Voir en entier » like the
   proof cards. The words are the kit's (v3lib builders), only the order and the
   dress changed. */
.cs4 .cs-hero .cs-x-herofig__img { position: relative; overflow: hidden; max-height: 340px; }
.cs4 .cs-hero .cs-x-herofig__img .cs-x-herofig__pic { width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: center top; }
.cs4 .cs-hero .cs-x-herofig__cap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs, 6px);
	padding: var(--space-lg, 16px) var(--space-xl, 20px) var(--space-xl, 20px);
	background: var(--color-surface-canvas, #fff);
	border-top: 1px solid var(--cs4-line);
}
.cs4 .cs-hero .cs-x-herofig__title { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-title-md, 18px); font-weight: 500; line-height: 1.35; color: var(--cs4-text); }
.cs4 .cs-hero .cs-x-herofig__meta { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font-family: var(--font-family-secondary, "Inter", ui-sans-serif, system-ui, sans-serif); font-size: var(--font-size-label-lg, 13px); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--cs4-muted); }
.cs4 .cs-hero .cs-x-herofig__cap .cs-zoom { margin-top: var(--space-sm, 8px); }

/* 9 — the FAQ band is the theme's own DS FAQ 02 (v3lib.faq_list(): the markup of
   rmd_section_faq(), sections.css draws it — one 880px column, hairlines, native
   details, the first open; case-study-v3.css carries the same rules for a page
   without sections.css). Here only the band: the centred heading group, the
   list under it. No boxes, no tinted rows. */
.cs4 .cs4-flow .cs-faq.rmd-s--faq-02 { display: block; margin-top: var(--space-5xl, 48px); }

/* 1 — the closing band is the Ads page's band (case-study-v3.css, v3lib
   cta_closing): nothing of it is restyled here. */

@media (max-width: 900px) {
	.cs4 .cs4-flow .cs4-tblock { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl, 24px); }
	.cs4 .cs4-flow .cs4-tblock__text .cs-prose { max-width: none; }
	.cs4 .cs4-flow .cs4-quotefig { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl, 24px); }
}
@media (max-width: 600px) {
	/* 2 — a two-column table stays a TABLE on a phone (two short columns fit):
	   the v3 « table to cards » rule would stack each row into a boxed card
	   with its labels, six cards for six lines. */
	.cs4 .cs4-flow .cs4-table--2 { border: 1px solid var(--color-border-surface-modals, #e2e8f0); border-radius: var(--radius-12, 12px); background: var(--color-surface-canvas, #fff); overflow: hidden; }
	.cs4 .cs4-flow .cs4-table--2 .cs-table { display: table; }
	.cs4 .cs4-flow .cs4-table--2 .cs-table thead { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; display: table-header-group; }
	.cs4 .cs4-flow .cs4-table--2 .cs-table tbody { display: table-row-group; gap: 0; }
	.cs4 .cs4-flow .cs4-table--2 .cs-table tr { display: table-row; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
	.cs4 .cs4-flow .cs4-table--2 .cs-table th,
	.cs4 .cs4-flow .cs4-table--2 .cs-table td { display: table-cell; padding: var(--space-md, 12px) var(--space-lg, 16px); border-bottom: 1px solid var(--color-border-surface-modals, #e2e8f0); }
	.cs4 .cs4-flow .cs4-table--2 .cs-table tbody tr:last-child > :is(th, td) { border-bottom: 0; }
	.cs4 .cs4-flow .cs4-table--2 .cs-table th::before,
	.cs4 .cs4-flow .cs4-table--2 .cs-table td::before { content: none; }
}

/* ═══ 12/11 — second batch (three checkers over the 21) ═══════════════════ */

/* headings: balanced lines; the generator glues the last two words (v4.py no_widows) */
.cs4 :is(.cs-h1, .cs-title) { text-wrap: balance; }

/* « Voir en entier » in a hero caption row never wraps (Écran Moderne, TBM) */
.cs4 .cs-hero .cs-x-herocap .cs-zoom { flex-shrink: 0; white-space: nowrap; }

/* a link's icon before punctuation: the Lucide arrow's empty right side (x 17–24)
   read as a space before the stop (v4.py link_punct) */
.cs4 a.cs4-lk--punct .cs4-ico { margin-right: -.22em; }

/* a 2-column proofs wall on a phone (ISIC 12-preuves, 5 cards): an odd last card
   spans the row (v3 centred it at half width; the earlier reset assumed 1 column) */
@media (max-width: 640px) {
	.cs4 .cs-proofs > .cs-proof:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: stretch; width: auto; }
}
/* a heading's last two words when too long to glue for a phone (v4.py no_widows):
   together from 1200px, free to break below, where they cannot share a line anyway */
@media (min-width: 1200px) { .cs4 .cs4-pair { white-space: nowrap; } }

/* ═══ 16/11 — the CTAs take the landing page's button ═════════════════════
   Owner, 16/11: the header CTA becomes /lp-creation-site-web-maroc/'s button
   « with the effect and all », and « in case studies cta, change them also ».
   The study's own buttons — the hero's lead and the mid band's (the PRIMARY
   ones; the hero's second, tertiary, stays a quiet outline) — wear it: the
   gradient #D7045A → #FC8831 from the half, the light sweeping across every 3s,
   95% opacity on hover, the card shadow, 8 radius, and the DS arrow-up-right at
   the end, a mask so it takes the label's white. Their size and words are the
   study's. Set through v3's own button variables, so hover, press and focus all
   keep the gradient (v3 restates `background` in each state). The closing band
   keeps its white button: it sits on the band's own gradient.
   Same day, later (owner: « the borders like [the DS button], and the colours
   also, but keep the same effect »): corners and colours are the DS promotional
   button's (« Button / Promotional », Sunrise, standard, lg — 46815:4801):
   radius/4, --gradient-promotional-sunrise, no shadow. Sweep, hover, arrow,
   size and words unchanged. ─────────────────────────────────────────────── */
.cs4 .rmd-btn--primary {
	--rmd-btn-bg: var(--gradient-promotional-sunrise, linear-gradient(142.72deg, #ec003f 0%, #fb2c36 50%, #ff8904 100%));
	--rmd-btn-bg-hover: var(--rmd-btn-bg);
	--rmd-btn-bg-active: var(--rmd-btn-bg);
	--rmd-btn-bg-focus: var(--rmd-btn-bg);
	--rmd-btn-fg: #fff;
	background-color: #ec003f;
	/* v3's 1px transparent border: from the padding box, the gradient tiled
	   into it and drew its own red start as a dark edge on the right and foot */
	background-origin: border-box;
	position: relative;
	overflow: hidden;
	gap: var(--space-sm, 8px);
	border-radius: var(--radius-4, 4px);
	transition: opacity .15s ease;
}
.cs4 .rmd-btn--primary::before {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	animation: rmdCs4Shine 3s ease-in-out infinite;
	pointer-events: none;
}
.cs4 .rmd-btn--primary::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	margin-inline: -6px -8px;
	background: currentColor;
	-webkit-mask: url("../../img/sections/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../../img/sections/arrow-up-right.svg") center / contain no-repeat;
}
.cs4 .rmd-btn--primary:is(:hover, :focus-visible, :active) { opacity: .95; color: #fff; background-origin: border-box; }
/* v3's inset focus ring sits under the gradient's white sweep and is hard to
   see: the header CTA's outline as well. */
.cs4 .rmd-btn--primary:focus-visible { outline: 2px solid #041135; outline-offset: 2px; }
/* The header's keyframes (rmd-chrome.css) under a name of their own: the
   editor's preview of a band loads this sheet without the chrome's. */
@keyframes rmdCs4Shine {
	0% { left: -75%; }
	25% { left: 125%; }
	100% { left: 125%; }
}
@media (prefers-reduced-motion: reduce) {
	.cs4 .rmd-btn--primary { transition: none; }
	.cs4 .rmd-btn--primary::before { animation: none; }
}

/* ══ Client reviews (17/11) ══════════════════════════════════════════════
   « Ce que disent nos clients. », the last band of the flow, generated by
   tools/case-studies/v3-kit/reviews.py: the DS's Testimonials 05 (the
   theme's own renderer) with a source pill on each quote linking to THAT
   review. The DS's own sizes (owner: « look how it looks in the design
   system »). sections.css is layered and this sheet is not, so these win. */
.cs4 .cs4-avis { padding-top: var(--space-6xl, 64px); }
.cs4 .cs4-avis .rmd-s { padding: 0; background: none; }
.cs4 .cs4-avis .rmd-s-wrap { padding: 0; max-width: none; }
.cs4 .cs4-avis .rmd-s-quote-body { align-items: center; }
/* the track is as tall as its longest slide: the family's margin-top:auto
   left a hole between a short quote and its name, so the slide is centred */
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote { justify-content: center; }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-by { margin-top: 0; }
/* one avatar colour per reviewer, in the DS's order (Testimonials 04/07, the
   CTA band's portraits): rose, indigo, orange — owner, 17/11 */
.cs4 .cs4-avis .rmd-s-quotes > li:nth-child(3n+2) {
	--rmd-av-from: var(--color-indigo-300, #a3b3ff);
	--rmd-av-to: var(--color-indigo-600, #4f39f6);
}
.cs4 .cs4-avis .rmd-s-quotes > li:nth-child(3n) {
	--rmd-av-from: var(--color-orange-300, #ffb86a);
	--rmd-av-to: var(--color-orange-600, #f54900);
}
/* the source pill: white, platform logo, five stars, score (owner's reference) */
.cs4 .cs4-pill {
	display: inline-flex; align-items: center; gap: var(--space-sm, 8px); margin: 0; padding: 10px var(--space-xl, 20px);
	border: 1px solid var(--color-border-surface-modals, #e2e8f0); border-radius: var(--radius-full, 9999px);
	background: var(--color-surface-canvas, #fff); box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 43, .06));
	font-family: var(--font-family-primary, Poppins, system-ui, sans-serif); font-size: var(--font-size-label-lg, 14px);
	font-weight: 500; line-height: 1; color: var(--color-content-tertiary, #45556c); text-decoration: none;
	transition: border-color .15s ease;
}
.cs4 .cs4-pill svg { width: 18px; height: 18px; flex: none; }
.cs4 .cs4-pill b { font-weight: 600; color: var(--color-content-primary, #0f172b); }
.cs4 .cs4-pill__stars { color: var(--color-orange-400, #ff8904); letter-spacing: 1px; font-size: 13px; }
.cs4 .cs4-pill:hover, .cs4 .cs4-pill:focus-visible { border-color: var(--color-accent-on-indigo, #4f39f6); }
/* the DS arrows (sections.css .rmd-s-arrow), restated: this sheet resets
   buttons unlayered, so the chevron came out dark and the tint went */
.cs4 .cs4-avis .rmd-s-arrow {
	width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-4, 4px);
	background: var(--color-surface-accent-indigo, #eef2ff); color: var(--color-accent-on-indigo, #4f39f6); cursor: pointer; box-shadow: none;
	transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.cs4 .cs4-avis .rmd-s-arrow svg { width: 24px; height: 24px; }
.cs4 .cs4-avis .rmd-s-arrow:hover:not(:disabled), .cs4 .cs4-avis .rmd-s-arrow:focus-visible {
	background: var(--color-accent-on-indigo, #4f39f6); color: var(--color-surface-accent-indigo, #eef2ff);
}
.cs4 .cs4-avis .rmd-s-arrow:disabled { opacity: .35; cursor: default; }

/* ══ Client identity card (17/11) ════════════════════════════════════════
   The client's logo tile with its facts under it (v4.py: the facts row of
   the band moves into the tile) — owner's « B · Carte d'identité » over a
   lone logo. A dark tile (IH Invest) keeps its logo on dark, the facts on
   white. */
.cs4 .cs-plate.cs4-idcard { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.cs4 .cs4-idcard > .cs-plate__img { width: auto; max-width: 200px; max-height: 96px; margin: var(--space-4xl, 40px) auto; object-fit: contain; }
.cs4 .cs4-id { margin: 0; padding: var(--space-sm, 8px) var(--space-2xl, 24px); background: var(--color-surface-canvas, #fff); border-top: 1px solid var(--cs4-line, #e2e8f0); }
.cs4 .cs4-id > div { padding: var(--space-lg, 16px) 0; border-top: 1px solid var(--cs4-line, #e2e8f0); }
.cs4 .cs4-id > div:first-child { border-top: 0; }
.cs4 .cs4-id dt { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-label-sm, 12px); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cs4-muted); }
.cs4 .cs4-id dd { margin: var(--space-2xs, 4px) 0 0; font-family: var(--cs4-head); font-size: var(--font-size-label-2xl, 16px); font-weight: 500; line-height: 1.4; color: var(--cs4-text); }
@media (max-width: 900px) {
	.cs4 .cs-plate.cs4-idcard { width: 100%; max-width: none; justify-self: stretch; }
	.cs4 .cs4-idcard > .cs-plate__img { margin: var(--space-2xl, 24px) auto; }
}

/* ══ Hero stage (17/11) ═══════════════════════════════════════════════════
   The kit's hero visual, owner's « I want the hero like this » (Al Jazeera,
   Giga Steel; v3lib.hero_stage()): a light panel, the brand on top (logo in
   a white box, or a banner), the pictures WHOLE side by side or stacked —
   never cropped, never scrolled, each opening in the zoom view — and one
   caption line. */
.cs4 .cs-stage { display: flex; flex-direction: column; gap: var(--space-2xl, 24px); margin: 0; padding: var(--space-2xl, 24px); min-width: 0;
	background: var(--color-surface-canvas-alt, #f5f8fb); border: 1px solid var(--cs4-line, #e2e8f0); border-radius: var(--radius-16, 16px); }
.cs4 .cs-stage__logo { display: flex; align-items: center; justify-content: center; padding: var(--space-2xl, 24px);
	background: var(--color-surface-canvas, #fff); border: 1px solid var(--cs4-line, #e2e8f0); border-radius: var(--radius-12, 12px); }
.cs4 .cs-stage__logoimg { display: block; width: 100%; max-width: 232px; height: auto; }
.cs4 .cs-stage__banner { overflow: hidden; border-radius: var(--radius-8, 8px); }
.cs4 .cs-stage__bannerimg { display: block; width: 100%; height: 200px; object-fit: cover; }
.cs4 .cs-stage__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg, 16px); align-items: center; }
.cs4 .cs-stage__pics--stack { grid-template-columns: minmax(0, 1fr); }
.cs4 .cs-stage .cs-stage__pic { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: var(--radius-12, 12px);
	overflow: hidden; background: var(--color-surface-canvas, #fff); box-shadow: 0 1px 2px rgba(15, 23, 43, .06), 0 12px 32px rgba(15, 23, 43, .12); cursor: zoom-in;
	transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.cs4 .cs-stage .cs-stage__pic:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15, 23, 43, .06), 0 18px 40px rgba(15, 23, 43, .16); }
}
.cs4 .cs-stage .cs-stage__pic:focus-visible { outline: 2px solid var(--color-accent-on-indigo, #4f39f6); outline-offset: 3px; }
.cs4 .cs-stage__img { display: block; width: 100%; height: auto; }
.cs4 .cs-stage__cap { margin: 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.5; color: var(--cs4-muted, #45556c); }
.cs4 .cs-stage > .cs-stage__cap { text-align: center; }
/* one hero picture, whole at its own proportions (Giga Steel, v3lib.hero_picture()) */
.cs4 .cs-heropic { display: flex; flex-direction: column; gap: var(--space-md, 12px); margin: 0; min-width: 0; }
.cs4 .cs-heropic__img { display: block; width: 100%; height: auto; border-radius: var(--radius-16, 16px);
	box-shadow: 0 1px 2px rgba(15, 23, 43, .06), 0 16px 40px rgba(15, 23, 43, .14); }
@media (max-width: 900px) {
	.cs4 .cs-stage { padding: var(--space-lg, 16px); gap: var(--space-lg, 16px); }
	.cs4 .cs-stage__logo { padding: var(--space-2xl, 24px) var(--space-lg, 16px); }
	.cs4 .cs-stage__bannerimg { height: 160px; }
	.cs4 .cs-stage__pics { gap: var(--space-md, 12px); }
}

/* ══ Captures without scrolling (17/11) ═══════════════════════════════════
   Owner: « I don't want those illustrations to be scrollable » — preview
   option A. A .cs-frame is a fixed window, never a scroll box: the picture
   is cut on a clean edge — no fade (owner 18/11: « I don't like this white
   effect in images »; case-study-v4.js still marks .cs4-cut / .cs4-cut-top,
   nothing styles them) —, the window opens on the client's framed result, and the
   card's « Voir en entier » (or a click on the picture) shows all of it. */
.cs4 .cs-frame { overflow: hidden; overscroll-behavior: auto; scrollbar-width: none; }
.cs4 .cs-frame::-webkit-scrollbar { display: none; }

/* ══ Zoom view at the picture's own size (17/11) ══════════════════════════
   Owner: a tall email opened in « Voir en entier » « should not be like
   this » — it was stretched to the 1280 panel, blown up and cut. A picture
   now opens at its own width (an email at 700, as in a mail client), capped
   by the screen, never enlarged; the panel wraps it and it scrolls down. */
.cs4 .cs-lb__panel { width: fit-content; min-width: min(100%, 480px); max-width: min(100%, 1280px); }
.cs4 .cs-lb__scroll { display: flex; justify-content: center; align-items: flex-start; }
.cs4 .cs-lb__scroll img { width: auto; max-width: 100%; height: auto; margin: 0; }
.cs4 .cs-lb__scroll video { max-width: 100%; }

/* ══ Never drawn larger than it is (17/11) ═════════════════════════════════
   Audit of the 21 studies: a capture narrower than its window was stretched
   to fill it — IRIS's Instagram strip at ×1.37, a ChatGPT capture of Lily
   Billy at ×1.19, soft and blurry. A capture now keeps its own width at
   most, centred in its window; wide ones still fill it. */
.cs4 .cs-frame__img, .cs4 .cs-x-nat img { width: auto; max-width: 100%; margin-inline: auto; }

/* ══ Reviews band at the study's scale (17/11) ════════════════════════════
   Owner: « is not the testimony so big for the case studies? font so big and
   container so big ». The DS's Testimonials 05 is a page section (40px
   quote, full-width panel); inside a case study it reads at the study's own
   sizes: a panel of 880, a 24px quote (20 on phones), a 48 avatar. */
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-panel { max-width: 880px; margin-inline: auto; padding: var(--space-5xl, 48px) var(--space-8xl, 80px); }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-arrows { padding-inline: var(--space-2xl, 24px); }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote { gap: var(--space-2xl, 24px); }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-text { max-width: 640px; font-size: var(--font-size-h5, 24px); line-height: 1.45; letter-spacing: 0; }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-by { gap: var(--space-md, 12px); }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-avatar { width: 48px; height: 48px; font-size: var(--font-size-label-lg, 14px); }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-name { font-size: var(--font-size-label-2xl, 16px); }
.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-role { font-size: var(--font-size-body-xs, 13px); }
.cs4 .cs4-avis .cs4-pill { padding: 8px var(--space-lg, 16px); font-size: var(--font-size-label-md, 13px); }
@media (max-width: 900px) {
	.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-panel { padding: var(--space-3xl, 32px) var(--space-xl, 20px); }
	.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-quote-text { font-size: var(--font-size-h6, 20px); }
	.cs4 .cs4-avis .rmd-s--testimonials-05 .rmd-s-arrows { padding-inline: 0; margin-top: var(--space-2xl, 24px); }
}

/* ══ A result as a chart (18/11) ═════════════════════════════════════════
   build_vapeol.py result_chart(): the design system's Content 04 row — the
   words left, a DS chart card right (Chart asset: title, period pill, legend,
   light grid, gradient bars, the orange value pill). Owner's « D », no grey
   band behind the bars. The bars are an index (the study gives the gain). */
.cs4 .cs4-chartrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6xl, 64px); align-items: center; }
.cs4 .cs4-chartrow__title { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-h5, 24px); font-weight: 500; line-height: 1.35; color: var(--cs4-text); }
.cs4 .cs4-chartrow__text { margin: var(--space-md, 12px) 0 0; font-size: var(--font-size-body-md, 16px); line-height: 1.6; color: var(--cs4-muted); }
.cs4 .cs4-chart { padding: 22px 24px 18px; background: var(--color-surface-canvas, #fff); border: 1px solid var(--cs4-line, #e2e8f0); border-radius: var(--radius-8, 8px); }
.cs4 .cs4-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs4 .cs4-chart__title { margin: 0; font-family: var(--cs4-head); font-size: var(--font-size-title-md, 18px); font-weight: 500; line-height: 1.3; color: var(--cs4-text); }
.cs4 .cs4-chart__pill { padding: 6px 12px; border: 1px solid var(--cs4-line, #e2e8f0); border-radius: var(--radius-full, 999px); font-family: var(--cs4-head); font-size: 12px; font-weight: 500; line-height: 1; color: var(--cs4-muted); }
.cs4 .cs4-chart__key { display: flex; gap: 16px; margin: 10px 0 18px; padding: 0; list-style: none; font-family: var(--cs4-head); font-size: 12px; line-height: 1; color: var(--cs4-muted); }
.cs4 .cs4-chart__key li { display: flex; align-items: center; gap: 6px; }
.cs4 .cs4-chart__key i { width: 10px; height: 10px; border-radius: 2px; }
.cs4 .cs4-chart__key .is-before { background: #4f39f6; }
.cs4 .cs4-chart__key .is-after { background: #00bba7; }
.cs4 .cs4-chart__plot { display: grid; grid-template-columns: 32px 1fr; height: 220px; }
.cs4 .cs4-chart__y { display: flex; flex-direction: column; justify-content: space-between; margin: -5.5px 0 16.5px; padding: 0; list-style: none; font-family: var(--cs4-head); font-size: 11px; line-height: 1; color: #62748e; }
.cs4 .cs4-chart__bars { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 10% 22px;
	background: repeating-linear-gradient(to bottom, #eef2f6 0 1px, transparent 1px calc((100% - 22px) / 6)) top / 100% calc(100% - 22px) no-repeat; }
.cs4 .cs4-chart__col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.cs4 .cs4-chart__bar { position: relative; display: block; height: calc(var(--v) / var(--top) * 100%); border-radius: 4px 4px 0 0; }
.cs4 .cs4-chart__bar.is-before { background: linear-gradient(#4f39f6, #c6d2ff); }
.cs4 .cs4-chart__bar.is-after { background: linear-gradient(#00bba7, #96f7e4); }
.cs4 .cs4-chart__x { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-family: var(--cs4-head); font-size: 12px; line-height: 1; color: var(--cs4-muted); }
.cs4 .cs4-chart__tip { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 5px 10px; border-radius: var(--radius-full, 999px); background: #ff6900; color: #fff; font-family: var(--cs4-head); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.cs4 .cs4-chart__tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: #ff6900; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.cs4 .cs4-chart__note { margin: 8px 0 0; font-size: 12px; color: #62748e; }
@media (max-width: 900px) {
	.cs4 .cs4-chartrow { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl, 24px); }
	.cs4 .cs4-chartrow__title { font-size: var(--font-size-h6, 20px); }
}

/* ══ A capture cell reads as « view the capture », not a link (18/11) ═════
   Owner: « this appears like links but they lead to images », then « I don't
   like the pill look ». The same button (.cs4-caplink, it opens the page's zoom
   view), drawn plain: the date in the table's own ink, the expand icon before
   it in indigo, no underline and no → (a → promises another page); underlined
   on hover only. CSS only, so the copies saved on staging change too. */
.cs4 .cs4-flow .cs-table button.cs4-caplink {
	display: inline; padding: 0; border: 0; background: none;
	color: var(--cs4-text, #0f172b); text-decoration: none; cursor: zoom-in;
}
.cs4 .cs4-flow .cs-table button.cs4-caplink::before {
	content: ""; display: inline-block; vertical-align: -2px; width: 14px; height: 14px; margin-right: 6px; background: var(--cs4-indigo, #4f39f6);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='m21 3-7 7'/%3E%3Cpath d='m3 21 7-7'/%3E%3Cpath d='M9 21H3v-6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='m21 3-7 7'/%3E%3Cpath d='m3 21 7-7'/%3E%3Cpath d='M9 21H3v-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cs4 .cs4-flow .cs-table button.cs4-caplink .cs4-ico { display: none; }
.cs4 .cs4-flow .cs-table button.cs4-caplink:hover { color: var(--cs4-indigo, #4f39f6); text-decoration: underline; text-underline-offset: 3px; }

/* ══ « Pour un projet comparable » — the service cards (18/11) ═════════════
   v4.py service_cards(): the owner's « E », the lever cards of the lead-
   generation page (« Où nous allons chercher vos futurs clients ») — a light
   card, the 50px indigo icon tile, the service page's name at 24px, its line,
   « Voir … ↗ ». Up to three across; one or two keep their own width.
   Tightened 18/11 (owner: « why so much space here »): no margin above the cards —
   the section's own 48 gap is the only space under the text —, 24 inside, 20 from the tile to the title. */
.cs4 .cs4-svc { list-style: none; display: grid; grid-template-columns: repeat(var(--cs4-n, 3), minmax(0, 1fr)); gap: var(--space-lg, 16px);
	max-width: calc(var(--cs4-n, 3) * 380px); margin: 0; padding: 0; }
.cs4 .cs4-svc__card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: var(--space-2xl, 24px);
	background: var(--color-surface-canvas-alt, #f8fafc); border: 1px solid var(--cs4-line, #eef2f6); border-radius: var(--radius-16, 16px); }
.cs4 .cs4-svc__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 6px;
	background: var(--color-surface-accent-indigo, #eef2ff); color: var(--color-accent-on-indigo, #4f39f6); }
.cs4 .cs4-svc__ico svg { width: 24px; height: 24px; }
.cs4 .cs4-svc__title { margin: var(--space-xl, 20px) 0 0; font-family: var(--cs4-head); font-size: var(--font-size-h5, 24px); font-weight: 500;
	line-height: 1.4; color: var(--cs4-text); }
.cs4 .cs4-svc__text { margin: var(--space-sm, 10px) 0 0; font-size: var(--font-size-body-sm, 14px); line-height: 1.55; color: var(--cs4-muted); }
.cs4 .cs4-svc__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--space-lg, 16px);
	font-family: var(--cs4-head); font-size: 13px; font-weight: 500; color: var(--color-accent-on-indigo, #4f39f6); text-decoration: none; }
.cs4 .cs4-svc__link:hover, .cs4 .cs4-svc__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
	.cs4 .cs4-svc { grid-template-columns: minmax(0, 1fr); max-width: none; }
	.cs4 .cs4-svc__title { font-size: var(--font-size-h6, 20px); margin-top: var(--space-lg, 16px); }
}
