/* ==========================================================================
   ADELA — Les Artisans de l’Arbre
   Design language: Swiss editorial grid. Sharp corners, 1 px rules, monospace
   indices, a single grotesque (Archivo, width axis). ADELA green is an
   accent, never a dark background.
   ========================================================================== */

:root {
	--c-canvas: var(--wp--preset--color--canvas, #F6F6F1);
	--c-surface: var(--wp--preset--color--surface, #FFFFFF);
	--c-sage-50: var(--wp--preset--color--sage-50, #EEF1E6);
	--c-sage-100: var(--wp--preset--color--sage-100, #DFE5D0);
	--c-brand: var(--wp--preset--color--brand, #667B34);
	--c-brand-deep: var(--wp--preset--color--brand-deep, #4D5E22);
	--c-ink: var(--wp--preset--color--ink, #333331);
	--c-ink-soft: var(--wp--preset--color--ink-soft, #5A6152);
	--c-rule: #CBCFC1;
	--c-rule-strong: var(--wp--preset--color--rule, #1d1d1b);
	--c-rule-soft: var(--wp--preset--color--rule-soft, #D6D9CC);

	--f-sans: var(--wp--preset--font-family--sans, Archivo, sans-serif);
	--f-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);

	--gutter: clamp(1rem, 4vw, 3rem);
	--wide: 1360px;
	--header-h: 72px;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-inout: cubic-bezier(.76, 0, .24, 1);
}

@media (max-width: 1080px) {
	:root { --header-h: 62px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-canvas);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
	color: var(--c-ink); text-underline-offset: .2em; text-decoration-thickness: 1px;
	transition: color .3s ease, background-color .3s ease, border-color .3s ease, text-decoration-color .3s ease, text-underline-offset .3s ease, background-size .45s var(--ease-inout);
}
a:hover { color: var(--c-brand-deep); }

/* Links in running text: the underline fades in, then settles */
.entry-content :is(p, li, td) a:not([class]) { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.entry-content :is(p, li, td) a:not([class]):hover { text-decoration-color: currentColor; text-underline-offset: .32em; }

/* Links without underline: the rule draws from left to right */
.link-draw,
.adela-contact__item a,
.site-footer__col a,
.site-footer__legal a,
.site-footer__credit a,
.breadcrumbs a,
.header-phone {
	text-decoration: none !important;
	background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 1px) / 0 1px;
}
.link-draw:hover,
.adela-contact__item a:hover,
.site-footer__col a:hover,
.site-footer__legal a:hover,
.site-footer__credit a:hover,
.breadcrumbs a:hover,
.header-phone:hover { background-size: 100% 1px; }

:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }

::selection { background: var(--c-ink); color: #fff; }

h1, h2, h3, h4 { text-wrap: balance; margin-top: 0; }
h1, h2 { font-stretch: 108%; }
/* Coloured words (editor "Highlight" format): colour only, no highlighter background */
mark.has-inline-color { background: none; }
/* Set by main.js while checking that the longest word of a title fits */
.is-measuring { overflow-wrap: normal !important; word-break: normal !important; }
p { text-wrap: pretty; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: fixed; top: .75rem; left: .75rem; z-index: 200;
	padding: .75rem 1rem; background: var(--c-ink); color: #fff; text-decoration: none;
	transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* Monospace indices */
.mono {
	font-family: var(--f-mono) !important;
	font-size: .78rem !important;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--c-ink-soft);
	line-height: 1.4;
	margin-top: 0;
	margin-bottom: 1.25rem;
}
/* Section subtitles ("01 — Notre métier"): regular upright type, as written (client request 2026-11-13) */
.is-style-adela-eyebrow,
p.is-style-adela-eyebrow {
	font-family: var(--f-sans) !important;
	font-size: 1rem !important;
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: none;
	color: var(--c-brand-deep);
	line-height: 1.4;
	margin-top: 0;
	margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */

.btn,
.wp-block-button__link {
	position: relative; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
	min-height: 48px;
	padding: .95rem 1.4rem;
	border: 1px solid var(--c-ink);
	background: var(--c-ink); color: #fff;
	font: 500 .9rem/1 var(--f-sans);
	letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none;
	overflow: hidden;
	transition: color .35s var(--ease-inout), border-color .35s;
}
/* The fill slides in from the left */
.btn::before,
.wp-block-button__link::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--c-brand);
	transform: scaleX(0); transform-origin: left;
	transition: transform .45s var(--ease-inout);
}
.btn:hover::before,
.wp-block-button__link:hover::before { transform: scaleX(1); }
.btn:hover, .wp-block-button__link:hover { color: #fff; border-color: var(--c-brand); }
.btn .icon { width: 1rem; height: 1rem; }

.btn--ghost,
.is-style-adela-ghost .wp-block-button__link {
	background: transparent; color: var(--c-ink);
}
.btn--ghost::before,
.is-style-adela-ghost .wp-block-button__link::before { background: var(--c-ink); }
.btn--ghost:hover,
.is-style-adela-ghost .wp-block-button__link:hover { color: #fff; border-color: var(--c-ink); }

.is-style-adela-arrow .wp-block-button__link::after,
.btn--arrow::after {
	content: "→"; font-family: var(--f-sans); font-size: 1.1em; line-height: 1;
	transition: transform .35s var(--ease-out);
}
.is-style-adela-arrow .wp-block-button__link:hover::after,
.btn--arrow:hover::after { transform: translateX(.35em); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 90;
	height: var(--header-h);
	background: var(--c-canvas);
	border-bottom: 1px solid var(--c-rule);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner {
	height: 100%;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex; align-items: stretch; gap: 0;
}

.site-brand {
	display: flex; align-items: center; gap: .85rem;
	padding-right: clamp(1rem, 2.5vw, 2.5rem);
	color: var(--c-ink); text-decoration: none; flex: none;
}
.site-brand:hover { color: var(--c-ink); }
.site-brand__name { transition: color .3s ease; }
.site-brand:hover .site-brand__name { color: var(--c-brand-deep); }
.site-brand__logo { width: 50px; height: 47px; display: block; }
.site-brand__logo .adela-logo { height: 100%; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand__name { font-weight: 500; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; font-stretch: 105%; }
.site-brand__tagline { font-family: var(--f-mono); font-size: .68rem; color: var(--c-ink-soft); margin-top: .3rem; letter-spacing: .02em; }

/* Logo: the ring of letters rotates slowly (as on the former site), the emblem stays still.
   Two stacked SVGs (see adela_logo_svg()): the ring rotates as a whole element, on the compositor.
   Rotation centre (500, 525) of the viewBox "58 80 892 834" = 49.552% 53.357%. */
.adela-logo { position: relative; display: block; aspect-ratio: 892 / 834; color: #1d1d1b; }
.adela-logo > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 49.552% 53.357%; }
.adela-logo__letters { animation: logo-orbit 140s linear infinite; }
.adela-logo__emblem { transition: transform .6s var(--ease-out); }
.site-brand:hover .adela-logo__emblem { transform: scale(1.06); }
@keyframes logo-orbit { to { transform: rotate(360deg); } }

/* Main menu (desktop) */
.primary-nav { display: flex; align-items: stretch; flex: 1; }
.primary-menu { list-style: none; margin: 0; padding: 0 0 0 clamp(.5rem, 1.5vw, 1.5rem); display: flex; align-items: stretch; gap: 0; flex: 1; }
.primary-menu > li { position: relative; display: flex; align-items: center; }
.primary-menu a {
	display: flex; align-items: center; height: 100%; min-height: 44px;
	padding: 0 clamp(.6rem, 1vw, .85rem);
	font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
	color: var(--c-ink); text-decoration: none;
	background: linear-gradient(var(--c-ink), var(--c-ink)) no-repeat left bottom / 0 2px;
	transition: background-size .45s var(--ease-inout), color .25s;
}
.primary-menu > li > a:hover,
.primary-menu > li:focus-within > a,
.primary-menu > li.is-open > a,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a,
.primary-menu > .current-menu-parent > a { background-size: 100% 2px; }
.primary-menu > li.menu-item-has-children > a { padding-right: .3rem; }

.submenu-toggle {
	display: inline-grid; place-items: center;
	width: 26px; height: 26px; margin-right: .3rem;
	border: 0; background: transparent; color: var(--c-ink); cursor: pointer;
}
.submenu-toggle .icon { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.primary-menu .sub-menu {
	list-style: none; margin: 0;
	position: absolute; top: 100%; left: 0;
	min-width: 280px; padding: .5rem 0;
	background: var(--c-surface);
	border: 1px solid var(--c-rule); border-top: 0;
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	transition: clip-path .4s var(--ease-inout), visibility 0s .4s;
	counter-reset: sub;
}
.primary-menu .sub-menu li { display: block; }
.primary-menu .sub-menu a {
	padding: .7rem 1.1rem; font-size: .82rem; letter-spacing: .04em; text-transform: none; font-weight: 400;
	background: none; width: 100%;
	counter-increment: sub;
}
.primary-menu .sub-menu a { transition: background-color .3s ease, color .3s ease, padding-left .35s var(--ease-out); }
.primary-menu .sub-menu a:hover { padding-left: 1.4rem; }
/* No numbers in the sub-menus: they clashed with the section numbers of the pages (client 2026-11-13) */
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a,
.primary-menu .sub-menu .is-current > a { background: var(--c-sage-50); color: var(--c-brand-deep); }
.primary-menu .sub-menu .current-menu-item > a::before,
.primary-menu .sub-menu .is-current > a::before { color: var(--c-brand); }

@media (min-width: 1081px) {
	.primary-menu > li:hover > .sub-menu,
	.primary-menu > li.is-open > .sub-menu { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
	.primary-menu .menu-cta { margin-left: auto; }
	/* Contact: soft fade from black to green */
	.primary-menu .menu-cta > a { padding-inline: 1.3rem; }
	.primary-menu .menu-cta > a,
	.primary-menu .menu-cta > a:hover,
	.primary-menu > .menu-cta:focus-within > a,
	.primary-menu > .menu-cta.current-menu-item > a {
		color: #fff; background-image: none; background-color: var(--c-ink);
		transition: background-color .35s cubic-bezier(.25, .1, .25, 1);
	}
	.primary-menu .menu-cta > a:hover,
	.primary-menu > .menu-cta:focus-within > a,
	.primary-menu > .menu-cta.current-menu-item > a { background-color: var(--c-brand); }
	.primary-nav__foot { display: none; }
}

/* Phone with the e-mail underneath, right of the menu */
.header-contact {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem;
	align-self: center; margin-left: clamp(1rem, 2.5vw, 2.5rem);
}
.header-phone {
	display: inline-flex; align-items: center;
	padding: 0 0 2px !important;
	font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; line-height: 1.2;
	color: var(--c-ink); text-decoration: none; white-space: nowrap;
}
.header-email { font-size: .72rem; color: var(--c-ink-soft); }
.header-phone:hover { color: var(--c-brand-deep); }

.nav-toggle { display: none; }

/* Header breakpoints: drop the tagline first, then the phone, so everything fits on one line */
@media (max-width: 1500px) and (min-width: 1081px) {
	.site-brand__tagline { display: none; }
}
@media (max-width: 1360px) and (min-width: 1081px) {
	.header-contact { display: none; }
	.primary-menu a { padding-inline: .55rem; font-size: .74rem; }
}
@media (max-width: 1160px) and (min-width: 1081px) {
	.primary-menu a { padding-inline: .4rem; }
	.primary-menu .menu-cta > a { padding-inline: 1rem; }
}

/* Full-screen menu (mobile / tablet) */
@media (max-width: 1080px) {
	.site-brand { border-right: 0; padding-right: 0; }
	.site-brand__logo { width: 42px; height: 40px; }
	.site-brand__name { font-size: .82rem; }
	.site-brand__tagline { display: none; }
	.header-contact { display: none; }
	@media (max-width: 480px) {
		.site-brand__name { font-size: .68rem; max-width: 9rem; line-height: 1.15; }
	}

	.nav-toggle {
		display: inline-flex; align-items: center; gap: .7rem; margin-left: auto;
		padding: 0; border: 0;
		background: transparent; color: var(--c-ink);
		font: 500 .8rem/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
		transition: color .3s ease;
	}
	.nav-toggle__icon { position: relative; width: 22px; height: 12px; transition: transform .4s var(--ease-inout); }
	.nav-toggle__icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-inout), top .35s var(--ease-inout), left .35s var(--ease-inout), width .35s var(--ease-inout); }
	.nav-toggle__icon i:first-child { top: 1px; }
	.nav-toggle__icon i:last-child { top: 9px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child { top: 5px; transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child { top: 5px; transform: rotate(-45deg); }
	/* Hover (mouse): the button turns green, the bottom line shortens; the cross rotates slightly */
	@media (hover: hover) {
		.nav-toggle:hover, .nav-toggle:focus-visible { color: var(--c-brand-deep); }
		.nav-toggle[aria-expanded="false"]:hover .nav-toggle__icon i:last-child { left: 40%; width: 60%; }
		.nav-toggle[aria-expanded="true"]:hover .nav-toggle__icon { transform: rotate(90deg); }
	}

	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 85;
		display: block;
		padding: 0 var(--gutter) calc(6rem + env(safe-area-inset-bottom));
		background: var(--c-canvas);
		overflow-y: auto; overscroll-behavior: contain;
		clip-path: inset(0 0 100% 0);
		visibility: hidden;
		transition: clip-path .55s var(--ease-inout), visibility 0s .55s;
	}
	.nav-open .primary-nav { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
	.nav-open { overflow: hidden; }

	.primary-menu { flex-direction: column; align-items: stretch; padding: 0; counter-reset: nav; }
	.primary-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--c-rule); transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; transition-delay: calc(.1s + var(--n, 0) * 60ms); }
	.nav-open .primary-menu > li { transform: none; opacity: 1; }
	.primary-menu a { white-space: normal; height: auto; }
	.primary-menu > li > a {
		flex: 1; min-width: 0; min-height: 64px; padding: 1rem 0;
		font-size: clamp(1.4rem, 5.6vw, 2.2rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.05;
		overflow-wrap: anywhere;
		background: none; counter-increment: nav;
	}
	.primary-menu > li > a::before { content: counter(nav, decimal-leading-zero); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: var(--c-ink-soft); margin-right: 1rem; align-self: flex-start; margin-top: .5rem; }
	.submenu-toggle { width: 44px; height: 44px; border: 0; margin: 0; flex: none; align-self: center; }
	.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .45s var(--ease-inout); }

	/* Submenus: height animated by main.js (0 → real height) */
	.primary-menu .sub-menu {
		position: static; flex-basis: 100%;
		min-width: 0; padding: 0 0 0 2.4rem; border: 0; background: none;
		clip-path: none; transition: none;
		height: 0; overflow: hidden; visibility: hidden;
	}
	.primary-menu .is-open > .sub-menu { height: auto; visibility: visible; }
	.primary-menu .sub-menu li:last-child { padding-bottom: 1rem; }
	.primary-menu .sub-menu li { opacity: 0; transform: translateY(-8px); transition: opacity .4s ease, transform .5s var(--ease-out); transition-delay: calc(var(--s, 0) * 45ms); }
	.primary-menu .is-open > .sub-menu li { opacity: 1; transform: none; }
	/* Rows fade out while a submenu panel closes */
	.primary-menu .is-open > .sub-menu.is-closing li { opacity: 0; }
	/* Stagger index of menu rows (used by the transition delays above) */
	.primary-menu > li:nth-child(2) { --n: 1; }
	.primary-menu > li:nth-child(3) { --n: 2; }
	.primary-menu > li:nth-child(4) { --n: 3; }
	.primary-menu > li:nth-child(5) { --n: 4; }
	.primary-menu > li:nth-child(6) { --n: 5; }
	.primary-menu > li:nth-child(7) { --n: 6; }
	.primary-menu > li:nth-child(8) { --n: 7; }
	.primary-menu > li:nth-child(9) { --n: 8; }
	.primary-menu > li:nth-child(10) { --n: 9; }
	.primary-menu .sub-menu > li:nth-child(2) { --s: 1; }
	.primary-menu .sub-menu > li:nth-child(3) { --s: 2; }
	.primary-menu .sub-menu > li:nth-child(4) { --s: 3; }
	.primary-menu .sub-menu > li:nth-child(5) { --s: 4; }
	.primary-menu .sub-menu > li:nth-child(6) { --s: 5; }
	.primary-menu .sub-menu > li:nth-child(7) { --s: 6; }
	.primary-menu .sub-menu > li:nth-child(8) { --s: 7; }
	.primary-menu .sub-menu > li:nth-child(9) { --s: 8; }
	.primary-menu .sub-menu > li:nth-child(10) { --s: 9; }
	.primary-menu .sub-menu > li:nth-child(11) { --s: 10; }
	.primary-menu .sub-menu > li:nth-child(12) { --s: 11; }
	.primary-menu .sub-menu a { display: flex; align-items: baseline; padding: .55rem 0; font-size: 1rem; line-height: 1.3; }
	.primary-menu .sub-menu a::before { flex: none; }
	.primary-menu .sub-menu a:hover { background: none; padding-left: .4rem; }

	.primary-nav__foot { margin-top: 2rem; }
}

/* ---------- Section structure ---------- */

.site-main { display: block; }
.entry-content > * + * { margin-block-start: var(--wp--style--block-gap, 1.25rem); }
.site-main--home .entry-content > .alignfull { margin-block: 0; }

.adela-section {
	position: relative;
	padding-block: var(--wp--preset--spacing--60, 5rem) !important;
	margin-block: 0 !important;
}
.adela-col-pad { padding-left: clamp(1rem, 4vw, 4rem); }
@media (max-width: 781px) { .adela-col-pad { padding-left: 0; } }

/* Section title: mono index + title, separated by a rule */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem) !important; }
.section-head h2 { margin: 0; }

.is-style-adela-lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important; line-height: 1.45; font-weight: 400; color: var(--c-ink); }

.is-style-adela-card {
	background: var(--c-surface);
}

/* Images: sharp corners, wipe reveal */
.wp-block-image img { border-radius: 0; }
.wp-block-image.adela-ratio-4-3 img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.wp-block-image.adela-ratio-3-2 img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.wp-block-image.adela-ratio-16-9 img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.wp-block-image.adela-ratio-4-5 img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
/* The clip is applied to the image, not to the observed element: a fully
   clipped element never "intersects" and the animation would never start. */
.js [data-wipe] { overflow: hidden; }
.js [data-wipe] img { clip-path: inset(0 100% 0 0); transform: scale(1.12); transform-origin: left center; transition: clip-path 1.2s var(--ease-inout), transform 1.6s var(--ease-out); }
.js [data-wipe].is-visible img { clip-path: inset(0); transform: none; }

/* Leaf list (dark green leaf instead of a dash, client request 2026-11-13) */
.is-style-adela-checks { list-style: none; padding: 0; margin: 0; }
.is-style-adela-checks li { position: relative; padding: .35rem 0 .35rem 1.75rem; }
.is-style-adela-checks li::before {
	content: ""; position: absolute; left: 0; top: calc(.35rem + .2em); width: 1em; height: 1em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20c0-9 6-15 17-17-1 11-7 17-17 17Z' fill='%234D5E22'/%3E%3Cpath d='M5.5 18.5 14 10' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Key figures: ruled table */
.is-style-adela-figures { gap: clamp(1rem, 3vw, 3rem) !important; }
.is-style-adela-figures > .wp-block-column { padding: 0; }
.is-style-adela-figures .adela-figure {
	margin: 0 0 .75rem;
	font: 500 clamp(2.6rem, 5vw, 4.2rem)/.9 var(--f-sans); font-stretch: 112%; letter-spacing: -.03em;
	color: var(--c-ink);
	font-variant-numeric: tabular-nums;
}
.is-style-adela-figures .adela-figure + p { margin: 0; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; color: var(--c-ink-soft); line-height: 1.5; }
@media (max-width: 781px) {
	.is-style-adela-figures { display: grid !important; grid-template-columns: 1fr 1fr; }
	.is-style-adela-figures { gap: 1.5rem 1rem !important; }
}

/* ---------- Hero ---------- */

.adela-hero {
	position: relative;
	height: calc(100svh - var(--header-h));
	min-height: 560px; max-height: 1100px;
	overflow: hidden; isolation: isolate;
	margin-block: 0 !important;
	border-bottom: 1px solid var(--c-rule);
}
.adela-hero__media { position: absolute; inset: 0; z-index: -1; background: var(--c-sage-100); overflow: hidden; }
.adela-hero__image {
	width: 100%; height: 100%; object-fit: cover;
	animation: hero-drift 20s ease-in-out 1.8s infinite alternate backwards;
}
/* "Iris" opening: a mask around the photo widens from the centre.
   The photo is painted from the first frame (better LCP); only the mask animates. */
.adela-hero__media::before {
	content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
	background: var(--c-sage-100);
	animation: hero-iris 1.8s var(--ease-inout) both;
}
/* No heavy gradient: just a very light veil to balance the blacks */
.adela-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(29, 29, 27, .12); }

.adela-hero__center {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 0 var(--gutter);
	gap: clamp(1rem, 3vh, 2rem);
}
.adela-hero__logo { width: min(38svh, 62vw, 340px); }
/* White glow on each part (not on the wrapper): the glow turns with the ring instead of being redrawn every frame */
.adela-hero__logo .adela-logo > svg { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 10px rgba(255, 255, 255, .95)) drop-shadow(0 0 28px rgba(255, 255, 255, .9)); }
.adela-hero__logo .adela-logo__emblem { animation: hero-emblem 2.6s var(--ease-inout) .3s both; }
.adela-hero__logo .adela-logo__letters { animation: hero-letters 1.6s ease 1.6s both, logo-orbit 240s linear 1.6s infinite; }

.adela-hero__title {
	margin: 0;
	text-align: center;
	color: #fff;
	line-height: 1;
	text-shadow: 0 1px 3px rgba(10, 14, 8, .6), 0 0 18px rgba(10, 14, 8, .45);
}
.adela-hero__line, .adela-hero__sub { display: block; white-space: nowrap; }
.adela-hero__line { font-size: clamp(1.6rem, 4.2vw, 3.8rem); font-weight: 500; font-stretch: 112%; letter-spacing: .03em; text-transform: uppercase; padding-bottom: .08em; }
.adela-hero__sub { margin-top: .4em; font-family: var(--f-mono); font-size: clamp(.78rem, 1.2vw, 1.05rem); letter-spacing: .32em; color: #fff; text-transform: uppercase; }
.hero-w { display: inline-block; white-space: nowrap; }
.hero-l { display: inline-block; animation: hero-letter .9s var(--ease-out) both; animation-delay: calc(2.6s + var(--i) * 28ms); }
.hero-l--space { width: .32em; }

.adela-hero__foot {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column; align-items: center; gap: 1rem;
	padding: 0 var(--gutter);
	animation: hero-fade 1s ease 3s both;
}
.adela-hero__tags {
	margin: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 0;
	font-family: var(--f-mono); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase;
	color: #fff; text-shadow: 0 1px 2px rgba(10, 14, 8, .6), 0 0 14px rgba(10, 14, 8, .5);
}
.adela-hero__tags span + span::before { content: "·"; margin: 0 .8rem; opacity: .7; }

.scroll-cue {
	display: inline-grid; place-items: center;
	text-decoration: none;
}
/* White square that stays legible on the photo; the arrow drops in a loop */
.scroll-cue__icon {
	position: relative;
	display: grid; place-items: center;
	width: 52px; height: 52px;
	background: var(--c-surface); color: var(--c-ink);
	overflow: hidden;
	transition: background-color .35s ease, color .35s ease;
}
.scroll-cue__icon .icon { width: 22px; height: 22px; animation: cue-fall 2s var(--ease-inout) infinite; }
.scroll-cue:hover .scroll-cue__icon { background: var(--c-brand); color: #fff; }
.adela-hero__foot .scroll-cue { margin-bottom: clamp(1rem, 3vh, 2rem); }

/* Mask with a central window (evenodd rule) that grows to the edges */
@keyframes hero-iris {
	from { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 44% 40%, 56% 40%, 56% 60%, 44% 60%, 44% 40%); }
	to   { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
}
/* Slow but noticeable drift; the offset stays below the margin created by the zoom (no edge ever visible) */
@keyframes hero-drift { from { transform: scale(1.08) translate(-2.5%, 1.5%); } to { transform: scale(1.18) translate(3%, -2.5%); } }
@keyframes hero-emblem { from { opacity: 0; transform: scale(.04); } to { opacity: 1; transform: scale(1); } }
@keyframes hero-letters { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-letter { from { transform: translateY(.6em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue-fall {
	0% { transform: translateY(-190%); opacity: 0; }
	30%, 60% { transform: translateY(0); opacity: 1; }
	100% { transform: translateY(190%); opacity: 0; }
}

@media (max-width: 781px) {
	/* The fixed action bar takes the bottom of the screen: the hero stops just above it */
	.adela-hero { min-height: 480px; height: calc(100svh - var(--header-h) - 60px - env(safe-area-inset-bottom)); }
	.adela-hero__center { justify-content: flex-start; padding-top: 8vh; }
	.adela-hero__logo { width: min(34svh, 58vw); }
	.adela-hero__line, .adela-hero__sub { white-space: normal; }
	.adela-hero__foot { gap: .75rem; }
	.adela-hero__tags { flex-direction: column; align-items: center; gap: .2rem; }
	.adela-hero__tags span + span::before { display: none; }
	.scroll-cue__icon { width: 46px; height: 46px; }
	.adela-hero__foot .scroll-cue { margin-bottom: 1rem; }
}

/* ---------- Title revealed on scroll ---------- */

.is-style-adela-reveal {
	position: relative;
	font-size: clamp(1.7rem, 3.6vw, 3.4rem) !important;
	line-height: 1.05 !important;
	font-weight: 500; font-stretch: 105%; letter-spacing: -.02em;
	text-transform: none !important;
}
/* Words "read" one after another: --read goes from 0 (pale) to 1 (ink) */
.is-style-adela-reveal mark { background: none; color: var(--c-brand); }
.is-style-adela-reveal.is-split .reading-word {
	color: color-mix(in srgb, var(--c-ink) calc(18% + var(--read, 0) * 82%), transparent);
}
.is-style-adela-reveal.is-split mark .reading-word {
	color: color-mix(in srgb, var(--c-brand) calc(25% + var(--read, 0) * 75%), transparent);
}

/* ---------- Photo band (background) + light panel ---------- */

.adela-section--flush-top { padding-top: 0 !important; }
/* clip, not hidden: overflow:hidden makes the band a scroll container and the CSS parallax timeline would never move */
.adela-photo-band { position: relative; overflow: clip; margin-top: 0 !important; }
.adela-photo-band > .wp-block-image { margin: 0 !important; height: clamp(460px, 78vh, 760px); overflow: hidden; }
.adela-photo-band > .wp-block-image img {
	width: 100%; height: 118%; object-fit: cover; object-position: 62% 50%;
	transform: translate3d(0, var(--parallax, 0), 0);
}
/* Parallax tied to the scroll in CSS (runs with the scrolling itself, no lag, no jitter).
   Browsers without scroll-driven animations use the JS fallback in main.js (--parallax). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.adela-photo-band > .adela-parallax { view-timeline: --band block; }
		.adela-photo-band > .adela-parallax img { animation: band-parallax linear both; animation-timeline: --band; animation-range: cover 0% cover 100%; }
	}
}
@keyframes band-parallax { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -15%, 0); } }
.adela-photo-band__panel {
	position: absolute; z-index: 1;
	left: max(var(--gutter), calc((100% - var(--wide)) / 2));
	top: 50%; transform: translateY(-50%);
	width: min(620px, 46%);
	margin: 0 !important;
	padding: clamp(1.75rem, 3.5vw, 3.25rem) !important;
	/* Translucent panel: the photo stays visible behind the text (client request 2026-11-13) */
	background: color-mix(in srgb, var(--c-surface) 46%, transparent);
	-webkit-backdrop-filter: blur(4px) saturate(1.5);
	backdrop-filter: blur(4px) saturate(1.5);
}
.adela-photo-band__panel .is-style-adela-reveal { font-size: clamp(1.5rem, 2.5vw, 2.4rem) !important; margin: 0; }
/* Readable on the photo seen through the panel: darker ink, a soft light halo, and the
   "not yet read" words never fade below half strength */
.adela-photo-band__panel { --c-ink: #1d1d1b; --c-brand: var(--c-brand-deep); color: var(--c-ink); }
.adela-photo-band__panel :is(p, .is-style-adela-reveal) { text-shadow: 0 0 .9em rgb(255 255 255 / .55), 0 0 .2em rgb(255 255 255 / .45); }
.adela-photo-band__panel .is-style-adela-eyebrow { color: var(--c-brand-deep); font-weight: 600; }
.adela-photo-band__panel .is-style-adela-reveal.is-split .reading-word {
	color: color-mix(in srgb, var(--c-ink) calc(50% + var(--read, 0) * 50%), transparent);
}
.adela-photo-band__panel .is-style-adela-reveal.is-split mark .reading-word {
	color: color-mix(in srgb, var(--c-brand) calc(55% + var(--read, 0) * 45%), transparent);
}
.adela-photo-band--right .adela-photo-band__panel { left: auto; right: max(var(--gutter), calc((100% - var(--wide)) / 2)); }
/* Framing chosen in the editor ("Bandeau photo" panel); the image is taller than the band for the parallax */
.adela-photo-band--top > .wp-block-image img { object-position: 62% 0%; }
.adela-photo-band--bottom > .wp-block-image img { object-position: 62% 100%; }
@media (max-width: 900px) {
	.adela-photo-band { overflow: visible; }
	.adela-photo-band > .wp-block-image { height: 62vw; min-height: 260px; }
	.adela-photo-band__panel,
	.adela-photo-band--right .adela-photo-band__panel { position: relative; left: auto; right: auto; top: auto; transform: none; width: auto; margin: -2.5rem var(--gutter) 0 !important; background: var(--c-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Steps ---------- */

.adela-steps { counter-reset: step; gap: clamp(1.5rem, 3vw, 3rem) !important; }
.adela-steps > .wp-block-column { position: relative; padding: 0; }
.adela-steps > .wp-block-column::before {
	counter-increment: step; content: "0" counter(step);
	display: block; margin-bottom: 1rem;
	font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; color: var(--c-brand);
}
.adela-steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin: 0 0 .75rem; }
.adela-steps p { color: var(--c-ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 781px) {
	.adela-steps { gap: 1.5rem !important; }
}

/* ---------- Services grid ---------- */

.adela-services__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: clamp(1rem, 2vw, 1.75rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.adela-services--cols-2 .adela-services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adela-services--cols-4 .adela-services__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Cards of one row appear one after another (left to right) */
.adela-services--cols-2 .adela-services__item:nth-child(2n+2),
.adela-services--cols-3 .adela-services__item:nth-child(3n+2),
.adela-services--cols-4 .adela-services__item:nth-child(4n+2) { transition-delay: 80ms; }
.adela-services--cols-3 .adela-services__item:nth-child(3n+3),
.adela-services--cols-4 .adela-services__item:nth-child(4n+3) { transition-delay: 160ms; }
.adela-services--cols-4 .adela-services__item:nth-child(4n+4) { transition-delay: 240ms; }

.service-card {
	position: relative; height: 100%;
	display: flex; flex-direction: column;
	background: var(--c-surface);
	color: var(--c-ink); text-decoration: none;
}
.service-card::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--c-brand); transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--ease-inout);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { color: var(--c-ink); }
.service-card__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sage-50); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.4s var(--ease-out), filter .6s; }
.service-card:hover .service-card__media img { transform: scale(1.05); filter: saturate(1.05); }
.service-card__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1.4rem 1.5rem; }
.service-card__index { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; color: var(--c-ink-soft); }
.service-card__title { margin: .6rem 0 .6rem; font-size: 1.3rem; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.service-card__text { margin: 0 0 1.25rem; color: var(--c-ink-soft); font-size: .95rem; line-height: 1.5; }
.service-card__more {
	margin-top: auto;
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink);
}
.service-card__more .icon { width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
.service-card:hover .service-card__more { color: var(--c-brand-deep); }
.service-card:hover .service-card__more .icon { transform: translateX(5px); }

@media (max-width: 1024px) {
	.adela-services__list,
	.adela-services--cols-4 .adela-services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.adela-services__list,
	.adela-services--cols-2 .adela-services__list,
	.adela-services--cols-4 .adela-services__list { grid-template-columns: 1fr; gap: .75rem; }
	.service-card { flex-direction: row; }
	.service-card::after { width: 3px; height: auto; bottom: 0; right: auto; transform: scaleY(0); transform-origin: top; }
	.service-card:hover::after { transform: scaleY(1); }
	.service-card__media { flex: 0 0 36%; aspect-ratio: auto; min-height: 124px; }
	.service-card__body { padding: .9rem 1rem; }
	.service-card__title { font-size: 1.1rem; margin: .3rem 0; }
	.service-card__text { font-size: .86rem; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.service-card__more { font-size: .72rem; }
}

/* ---------- "Bureau d’étude" cards ---------- */

.adela-feature { display: flex; flex-direction: column; height: 100%; }
.adela-feature > .wp-block-image { margin: 0 !important; }
.adela-feature > .wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.adela-feature__body { padding: clamp(1.4rem, 3vw, 2.25rem) !important; display: flex; flex-direction: column; flex: 1; margin: 0 !important; }
.adela-feature__body > .wp-block-buttons { margin-top: auto; padding-top: 1.5rem; }
.adela-feature h3 { margin: 0; text-transform: uppercase; font-stretch: 105%; font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.adela-feature .is-style-adela-checks { font-size: .95rem; }

/* ---------- Engagements ---------- */

.adela-commitments { gap: clamp(1.5rem, 3vw, 3rem) !important; margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important; }
.adela-commitments:last-child { margin-bottom: 0 !important; }
.adela-commitments > .wp-block-column { padding: 0; }
.adela-commitments > .wp-block-column::before {
	content: "";
	display: block; width: 2.5rem; height: 3px; background: var(--c-brand); margin-bottom: 1rem;
	font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; color: var(--c-brand);
}
.adela-commitments h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; margin: 0 0 .6rem; text-transform: uppercase; font-stretch: 105%; }
.adela-commitments p { margin: 0; font-size: .95rem; color: var(--c-ink-soft); line-height: 1.55; }
@media (max-width: 781px) {
	.adela-commitments { gap: 1.5rem !important; }
}

/* ---------- Team (teaser) ---------- */

.adela-team-teaser { position: relative; }
.adela-team-teaser .wp-block-image { margin: 0 !important; }
.adela-team-teaser .wp-block-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 10%; }
/* The card only overlaps the bottom of the photo (the ground), never the faces */
.adela-team-teaser__card {
	position: relative; z-index: 1;
	max-width: 600px;
	margin: -4.5rem 0 0 clamp(1rem, 4vw, 4rem) !important;
	padding: clamp(1.5rem, 3vw, 2.5rem) !important;
	background: var(--c-surface);
}
.adela-team-teaser__card h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
@media (max-width: 781px) {
	.adela-team-teaser .wp-block-image img { aspect-ratio: 3 / 2; } /* = the group photo: nothing cropped */
	.adela-team-teaser__card { max-width: none; margin: -2rem .75rem 0 !important; }
}

/* ---------- FAQ ---------- */

.adela-faq { counter-reset: faq; }
.adela-faq .wp-block-details { border-bottom: 1px solid var(--c-rule); margin: 0 !important; }
.adela-faq .wp-block-details:first-child { border-top: 1px solid var(--c-rule); }

.adela-faq summary {
	position: relative; list-style: none; cursor: pointer;
	display: grid; grid-template-columns: 3rem 1fr 2.5rem; align-items: baseline; gap: .5rem;
	padding: 1.2rem 0;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; line-height: 1.3;
	counter-increment: faq;
	transition: color .3s ease, padding-left .4s var(--ease-out);
}
.adela-faq summary::-webkit-details-marker { display: none; }
.adela-faq summary::before { content: counter(faq, decimal-leading-zero); font-family: var(--f-mono); font-size: .74rem; font-weight: 400; color: var(--c-ink-soft); transition: color .3s ease; }
.adela-faq summary::after { content: "+"; justify-self: end; font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform .4s var(--ease-inout); }
.adela-faq details[open] summary::after { transform: rotate(45deg); }
.adela-faq summary:hover { color: var(--c-brand-deep); padding-left: .4rem; }
.adela-faq summary:hover::before { color: var(--c-brand); }
.adela-faq details > :not(summary) { margin: 0 0 1.5rem 3.5rem; color: var(--c-ink-soft); max-width: 66ch; }
/* Animated body (wrapper added by main.js) */
.wp-block-details .details-body { overflow: hidden; }
.adela-faq details > .details-body { margin: 0; max-width: none; padding: 0; }
.adela-faq .details-inner { padding: 0 0 1.5rem 3.5rem; color: var(--c-ink-soft); }
.adela-faq .details-inner > * { margin: 0; max-width: 66ch; }
.adela-faq .details-inner > * + * { margin-top: .75rem; }
@media (max-width: 600px) {
	.adela-faq summary { grid-template-columns: 2.2rem 1fr 2rem; }
	.adela-faq details > :not(summary) { margin-left: 0; }
	.adela-faq .details-inner { padding-left: 0; }
}

/* ---------- Legal pages ---------- */

.page-legal .page-header__title { font-size: clamp(2rem, 4vw, 3.5rem); }
.page-legal .entry-content h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); text-transform: none; font-stretch: 104%; letter-spacing: -.01em; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-rule); }
.page-legal .entry-content h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.page-legal .entry-content p, .page-legal .entry-content li, .page-legal .entry-content td { font-size: 1rem; line-height: 1.65; }
.page-legal .kncc-policy h3 { font-size: 1.05rem; font-weight: 500; }
.page-legal .kncc-policy__table { font-size: .9rem; }

/* ---------- Map ---------- */

.adela-map { margin: 0; background: var(--c-sage-100); }
.adela-map iframe { display: block; width: 100%; height: 520px; border: 0; filter: saturate(.8) contrast(1.02); }
.adela-map--sm iframe { height: 400px; }
.adela-map--lg iframe { height: 640px; }
.adela-map__bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
	padding: .9rem 1.25rem; background: var(--c-surface, #fff);
}
.adela-map__address { font-size: .95rem; }
.adela-map__link {
	display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	color: var(--c-brand-deep); text-decoration: none; transition: color .3s var(--ease-out);
}
.adela-map__link .icon { width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
.adela-map__link:hover { color: var(--c-ink); }
.adela-map__link:hover .icon { transform: translateX(5px); }
@media (max-width: 781px) { .adela-map iframe { height: 400px; } }

/* ---------- News ---------- */

.post-grid {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: clamp(2rem, 5vw, 4rem) var(--gutter) var(--wp--preset--spacing--60, 5rem);
	display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(3, minmax(0, 1fr));
}
.post-grid > .pagination, .post-grid > .no-posts { grid-column: 1 / -1; }
.post-card { position: relative; background: var(--c-surface); display: flex; flex-direction: column; }
.post-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-inout); }
.post-card:hover::after { transform: scaleX(1); }
.post-card a { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.post-card__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-sage-100); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card a:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .75rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink-soft); }
.post-card__title { margin: 0 0 .6rem; font-size: 1.3rem; font-weight: 500; line-height: 1.15; text-transform: none; font-stretch: 100%; letter-spacing: -.01em; transition: color .3s ease; }
.post-card a:hover .post-card__title { color: var(--c-brand-deep); }
.post-card__excerpt { margin: 0 0 1.25rem; font-size: .95rem; color: var(--c-ink-soft); line-height: 1.5; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.post-card__more .icon { width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
.post-card a:hover .post-card__more .icon { transform: translateX(5px); }
.no-posts { padding: clamp(2rem, 5vw, 4rem); background: var(--c-surface); text-align: center; }
.no-posts p { margin: 0 0 1rem; color: var(--c-ink-soft); }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding-top: 1rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; background: var(--c-surface); font-family: var(--f-mono); font-size: .82rem; color: var(--c-ink); text-decoration: none; transition: background-color .3s ease, color .3s ease; }
.pagination .page-numbers:hover { background: var(--c-sage-100); color: var(--c-brand-deep); }
.pagination .page-numbers.current { background: var(--c-ink); color: #fff; }

/* News post */
.single-post .page-header__title { font-size: clamp(2rem, 4.4vw, 4rem); max-width: 22ch; text-transform: none; font-stretch: 104%; letter-spacing: -.02em; line-height: 1.02; }
.single-post .page-header__media { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter); }
.single-post .page-header__frame img { height: clamp(260px, 50vh, 600px); }
@media (max-width: 700px) { .single-post .page-header__frame img { height: auto; aspect-ratio: 4 / 3; } }
.single-post .page-header__seal { right: calc(var(--gutter) + 1.5rem); bottom: 0; translate: 0 50%; }
.single-post .entry-content { padding-block: clamp(2rem, 5vw, 4rem) !important; }
.single-post .entry-content > * { max-width: 760px; margin-inline: auto; }
.single-post .entry-content > .alignwide { max-width: var(--wide); }
.single-post .entry-content > .alignfull { max-width: none; }
.single-post .entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: 2.5rem; }
.single-post .entry-content h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-top: 2rem; }
.single-post .entry-content p, .single-post .entry-content li { font-size: 1.08rem; line-height: 1.7; }
.single-post .entry-content figure { margin-block: 2rem; }
.single-post .entry-content figcaption,
.wp-block-image .wp-element-caption { font-family: var(--f-mono); font-size: .72rem; color: var(--c-ink-soft); margin-top: .5rem; }
.post-nav { border-top: 1px solid var(--c-rule); padding: 0 var(--gutter); }
.post-nav__inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.post-nav .service-nav__all { justify-content: center; min-height: 4.5rem; }
.post-nav--solo .post-nav__inner { grid-template-columns: 1fr; }
.post-nav--solo .service-nav__all { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 700px) { .post-nav:not(.post-nav--solo) .post-nav__inner { grid-template-columns: 1fr 1fr; } .post-nav .service-nav__all { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 0 0 1.5rem; } }

/* ---------- Inner page header ---------- */

.page-header { padding: clamp(1.5rem, 4vw, 3.5rem) 0 0; }
.page-header__inner { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.page-header__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.page-header__eyebrow { font-family: var(--f-sans); font-size: 1rem; font-weight: 500; letter-spacing: .01em; color: var(--c-brand-deep); margin: 0 0 1.25rem; animation: rise .9s var(--ease-out) .1s both; }
.page-header__title { font-size: clamp(2.2rem, 5.2vw, 5rem); margin: 0; animation: rise 1s var(--ease-out) .2s both; }
.page-header__lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--c-ink); margin: 0 0 .4rem; max-width: 46ch; animation: rise 1s var(--ease-out) .35s both; }
.page-header__media { position: relative; margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.page-header__frame { position: relative; overflow: hidden; }
/* Curtain withdrawing downwards: same effect as a clip, without hiding the photo from the browser */
.page-header__frame::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: var(--c-canvas); transform-origin: 50% 100%;
	animation: header-curtain 1.5s var(--ease-inout) .2s both;
}
.page-header__seal {
	position: absolute; z-index: 2;
	/* Placed in the bottom-right corner of the photo (also on very wide screens):
	   can never overlap the text that follows */
	right: max(var(--gutter), 2.5vw);
	bottom: clamp(1rem, 2.5vw, 2rem);
	animation: seal-in 1s var(--ease-out) 1.1s both;
}
/* Up to 640 px tall; on very wide screens (> 2400 px) the height keeps growing with the width
   (ratio ~3.75:1), so the photo is not cropped ever thinner and heads stay in the frame */
.page-header__frame img { width: 100%; height: clamp(280px, 56vh, max(640px, 26.7vw)); object-fit: cover; animation: header-zoom 1.5s var(--ease-inout) .2s both; }
/* Crop focus chosen in the "En-tête de page" meta box */
.page-header__img--top { object-position: center 15%; }
.page-header__img--bottom { object-position: center 82%; }
/* Group photo (3:2): the frame is never taller than the photo, so the sides (people at the edges)
   are never cut on narrow screens; on wide screens the frame is at most ~3:1 and anchored near
   the top, so only the legs are cropped and every face stays in the frame */
.page-header__frame .page-header__img--group,
.single-post .page-header__frame .page-header__img--group {
	height: auto; aspect-ratio: 3 / 2;
	max-height: max(clamp(280px, 56vh, max(640px, 26.7vw)), 32vw);
	object-position: center 10%;
}
/* Group photo: the seal goes to the top-right corner (sky) instead of over the people */
body:not(.single-post) .page-header__media:has(.page-header__img--group) .page-header__seal { top: clamp(1rem, 2.5vw, 2rem); bottom: auto; }
/* Phones: the photo is too small for the seal, it hangs below the frame instead (over the legs at most) */
@media (max-width: 781px) {
	body:not(.single-post) .page-header__media:has(.page-header__img--group) .page-header__seal { top: auto; bottom: 0; translate: 0 50%; }
}
/* News: the photo is at most 1360 px wide */
.single-post .page-header__frame .page-header__img--group { max-height: max(clamp(260px, 50vh, 600px), min(32vw, 450px)); }
.page-header + .entry-content { padding-block: 0; }
.page-header + .entry-content > :not(.alignfull):first-child { margin-top: clamp(2rem, 5vw, 4rem); }
.page-header + .entry-content > :not(.alignfull):last-child { margin-bottom: clamp(2rem, 5vw, 4rem); }
.site-main .entry-content > .alignfull { margin-block: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes header-curtain { to { transform: scaleY(0); } }
@keyframes header-zoom { from { transform: scale(1.08); } to { transform: none; } }
@media (max-width: 900px) {
	.page-header__grid { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
}

/* ---------- Text + image sections of inner pages ---------- */

.adela-split { gap: clamp(1.5rem, 5vw, 5rem) !important; }
.adela-split h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); margin-bottom: 1.25rem; }
.adela-split p { max-width: 58ch; }
.adela-split p + p { margin-top: 1rem; }
.adela-split .wp-block-image { margin: 0; }
.adela-statement { text-align: center; }
.adela-statement .is-style-adela-eyebrow { display: block; }
@media (max-width: 781px) {
	/* The image always comes before the text on mobile */
	.adela-split--reverse { flex-direction: column-reverse; }
}

.breadcrumbs { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .03em; color: var(--c-ink-soft); margin-bottom: 2rem; }
.breadcrumbs a { color: var(--c-ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-brand-deep); text-decoration: underline; }

.related-services { background: var(--c-sage-50); padding: var(--wp--preset--spacing--60, 5rem) var(--gutter); }
.related-services__inner { max-width: var(--wide); margin: 0 auto; }
.related-services h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.related-services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.related-services a {
	position: relative;
	display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; align-items: center; gap: 1rem;
	min-height: 72px; padding: 1rem 1.25rem; background: var(--c-surface);
	color: var(--c-ink); text-decoration: none; font-weight: 500;
}
.related-services__index { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .72rem; color: var(--c-ink-soft); }
.related-services__title { align-self: end; line-height: 1.2; }
.related-services a .icon { align-self: end; width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
@media (max-width: 1100px) {
	.related-services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.related-services li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.related-services ul { grid-template-columns: 1fr; }
	.related-services a { min-height: 72px; grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; }
	.related-services__index { grid-column: auto; }
	.related-services__title, .related-services a .icon { align-self: center; }
}
.related-services a::after {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
	background: var(--c-brand); transform: scaleY(0); transform-origin: top;
	transition: transform .45s var(--ease-inout);
}
.related-services a:hover::after { transform: scaleY(1); }
.related-services a:hover { color: var(--c-brand-deep); }
.related-services a:hover .icon { transform: translateX(5px); }

/* ---------- Tiles (methods, tools) ---------- */

.adela-tiles { gap: .75rem !important; counter-reset: tile; --tiles: 4; container-type: inline-size; }
.adela-tiles:has(> :nth-child(3):last-child) { --tiles: 3; }
.adela-tiles:has(> :nth-child(2):last-child) { --tiles: 2; }
.adela-tiles:has(> :nth-child(1):last-child) { --tiles: 1; }
/* Tablet: four tiles switch to 2 × 2 so long words stay readable */
@media (min-width: 782px) and (max-width: 960px) {
	.adela-tiles:has(> :nth-child(4)) { flex-wrap: wrap !important; --tiles: 2 !important; }
	.adela-tiles:has(> :nth-child(4)) > .wp-block-column { flex: 0 0 calc(50% - .375rem) !important; }
}
@media (max-width: 781px) { .adela-tiles:not(.is-not-stacked-on-mobile) { --tiles: 1 !important; } }
/* The row is the container for the title (size based on the width of one tile).
   Never the tile itself: a container isolates the counter (01, 01, 01…).
   Chained rows: no container, so the numbering continues (03, 04…). */
.adela-tiles:has(+ .adela-tiles), .adela-tiles + .adela-tiles { container-type: normal; }
/* In a container row, the counter must be created inside the containment */
.adela-tiles:not(:has(+ .adela-tiles)):not(.adela-tiles + .adela-tiles) > .wp-block-column:first-child { counter-reset: tile; }
.adela-tiles > .wp-block-column { position: relative; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--c-surface); overflow: hidden; }
.adela-tiles > .wp-block-column::before {
	counter-increment: tile; content: counter(tile, decimal-leading-zero);
	display: block; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; color: var(--c-brand);
}
.adela-tiles > .wp-block-column::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--c-brand); transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--ease-inout);
}
.adela-tiles > .wp-block-column:hover::after { transform: scaleX(1); }
/* The title follows the tile width: a long word ("Environnement") stays on one line */
.adela-tiles .wp-block-column h3 { margin: 0 0 .5rem; font-size: clamp(1rem, calc(((100cqw - (var(--tiles) - 1) * .75rem) / var(--tiles) - 2 * clamp(1.25rem, 2.5vw, 2rem)) * .085), 2.2rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: normal; }
/* Illustration at the top of a tile (charts on white, photos): same 4:3 frame for all, click to enlarge */
.adela-tiles .adela-tile-figure { margin: 0 0 1.1rem !important; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--c-rule); }
.adela-tiles .adela-tile-figure img { width: 100%; height: 100%; object-fit: cover; }
.adela-tiles > .wp-block-column:has(> .adela-tile-figure)::before { margin-bottom: .9rem; }
.adela-tiles.adela-tiles--small .wp-block-column h3 { font-size: 1.1rem; line-height: 1.2; text-transform: none; font-stretch: 100%; letter-spacing: 0; }
.adela-tiles p { margin: 0; font-size: .95rem; color: var(--c-ink-soft); line-height: 1.5; }
/* Tile whose title is a link (e.g. a method's reference site): the whole tile is clickable, arrow top right */
.adela-tiles h3 a { color: inherit; text-decoration: none; }
.adela-tiles h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.adela-tiles h3 a::before {
	content: ""; position: absolute; top: clamp(1.25rem, 2.5vw, 2rem); right: clamp(1.25rem, 2.5vw, 2rem);
	width: 1.1rem; height: 1.1rem; background: var(--c-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .3s var(--ease-out);
}
.adela-tiles > .wp-block-column:hover h3 a::before { transform: translate(2px, -2px); }
.adela-tiles h3 a:focus-visible { outline: none; }
.adela-tiles > .wp-block-column:has(h3 a:focus-visible) { outline: 2px solid var(--c-brand); outline-offset: 2px; }
/* A second row of tiles continues the numbering of the first (03, 04…) */
.adela-tiles + .adela-tiles { margin-top: .75rem !important; counter-reset: none; }
.has-sage-50-background-color .adela-tiles > .wp-block-column { background: var(--c-surface); }
.adela-section:not(.has-background) .adela-tiles > .wp-block-column { background: var(--c-sage-50); }

/* Two-column list */
.adela-list-cols { columns: 2; column-gap: 2rem; }
.adela-list-cols li { break-inside: avoid; }
@media (max-width: 600px) { .adela-list-cols { columns: 1; } }

/* Section subtitle */
.adela-split > .wp-block-column > h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); text-transform: uppercase; font-stretch: 105%; margin-bottom: 1rem; }
.adela-stack > * + * { margin-top: clamp(3rem, 6vw, 5.5rem) !important; }

/* ---------- Note box (regulatory framework, note) ---------- */

.adela-note { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--c-surface); border-left: 3px solid var(--c-brand); }
.adela-note p { margin: 0; max-width: none; }
.adela-note p + p { margin-top: .75rem; }
.adela-note .is-style-adela-eyebrow { margin-bottom: .75rem; }
.adela-section:not(.has-background) .adela-note { background: var(--c-sage-50); }

/* ---------- Phases (before / during / after) ---------- */

.adela-phases { counter-reset: phase; }
.adela-phase { gap: clamp(1.5rem, 5vw, 5rem) !important; padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--c-rule); align-items: flex-start !important; }
.adela-phase:last-child { padding-bottom: 0; }
.adela-phase > .wp-block-column:first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
.admin-bar .adela-phase > .wp-block-column:first-child { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px) + 2rem); }
.adela-phase > .wp-block-column:first-child::before {
	counter-increment: phase; content: "Phase " counter(phase, decimal-leading-zero);
	display: block; margin-bottom: 1rem;
	font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--c-brand);
}
.adela-phase h3 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 500; font-stretch: 108%; text-transform: uppercase; line-height: .98; letter-spacing: -.02em; }
.adela-phase .adela-phase__sub { margin: 0 0 1.5rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.35; color: var(--c-ink-soft); max-width: 28ch; }
.adela-phase .wp-block-image { margin: 0; }
.adela-phase > .wp-block-column:last-child p { max-width: 62ch; }
.adela-phase > .wp-block-column:last-child p + p,
.adela-phase > .wp-block-column:last-child ul + p { margin-top: 1.1rem; }
.adela-phase .is-style-adela-checks { margin: 1rem 0; }
@media (max-width: 781px) {
	.adela-phase > .wp-block-column:first-child { position: static; }
}

/* Clickable tiles (phase summary) */
.adela-tiles h3 a { color: inherit; text-decoration: none; }
.adela-tiles h3 a::after { content: ""; position: absolute; inset: 0; }
.adela-tiles > .wp-block-column:has(h3 a):hover h3 { color: var(--c-brand-deep); }
.adela-tiles h3 { transition: color .3s ease; }

/* ---------- Labels / partner logos ---------- */

.adela-labels { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2vw, 2rem); align-items: center; justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--c-surface); }
.adela-labels .wp-block-image { margin: 0; flex: 1 1 160px; max-width: 220px; }
.adela-labels .wp-block-image img { width: 100%; height: auto; object-fit: contain; }
.adela-section:not(.has-background) .adela-labels { background: var(--c-sage-50); }

/* ---------- Service page ---------- */

.adela-service { gap: clamp(1.5rem, 5vw, 5rem) !important; align-items: flex-start !important; }
.adela-service > .wp-block-column:last-child p { max-width: 62ch; }
.adela-service > .wp-block-column:last-child p + p { margin-top: 1.1rem; }
.adela-aside { position: sticky; top: calc(var(--header-h) + 2rem); padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--c-surface); }
.admin-bar .adela-aside { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px) + 2rem); }
.adela-aside h2, .adela-aside h3 { font-size: 1.05rem; font-weight: 500; text-transform: uppercase; font-stretch: 105%; letter-spacing: 0; line-height: 1.2; margin: 0 0 .75rem; }
.adela-aside .is-style-adela-checks { font-size: .98rem; }
.adela-aside .is-style-adela-eyebrow { margin-bottom: .75rem; }
@media (max-width: 781px) {
	.adela-aside { position: static; }
}

/* Previous / next navigation */
.service-nav { padding: 0 var(--gutter); border-top: 1px solid var(--c-rule); }
.service-nav__inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.service-nav__link { display: flex; flex-direction: column; gap: .5rem; padding: clamp(1.5rem, 3vw, 2.5rem) 0; text-decoration: none; color: var(--c-ink); }
.service-nav__link--next { text-align: right; align-items: flex-end; }
.service-nav__label { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink-soft); }
.service-nav__label .icon { width: 1rem; height: 1rem; transition: transform .35s var(--ease-out); }
.service-nav__link--prev .icon { transform: rotate(180deg); }
.service-nav__link--prev:hover .icon { transform: rotate(180deg) translateX(5px); }
.service-nav__link--next:hover .icon { transform: translateX(5px); }
.service-nav__title { font-size: clamp(1.1rem, 1.8vw, 1.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; transition: color .3s ease; }
.service-nav__link:hover .service-nav__title { color: var(--c-brand-deep); }
.service-nav__all {
	display: flex; align-items: center; padding: 0 clamp(1rem, 3vw, 3rem);
	font: 500 .78rem/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase;
	color: var(--c-ink); text-decoration: none;
}
.service-nav__all span { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 0 1px; transition: background-size .45s var(--ease-inout); }
.service-nav__all:hover span { background-size: 100% 1px; }
@media (max-width: 700px) {
	.service-nav__inner { grid-template-columns: 1fr 1fr; }
	.service-nav__all { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 0 0 1.5rem; }
	.service-nav__link { padding-bottom: 1.25rem; }
}

/* ---------- Contact details ---------- */

.adela-contact__list { font-style: normal; display: grid; gap: 0; }
.adela-contact__company { margin: 0 0 .5rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.adela-contact__item { display: flex; gap: .9rem; align-items: flex-start; line-height: 1.4; padding: .5rem 0; }
.adela-contact__item .icon { color: var(--c-brand); margin-top: .1rem; width: 1.1rem; height: 1.1rem; }
.adela-contact__label { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: .15rem; }
.adela-contact__item a { color: var(--c-ink); text-decoration: none; }
.adela-contact__item a:hover { color: var(--c-brand-deep); text-decoration: underline; }
.adela-contact__hours { color: var(--c-ink-soft); font-size: .95rem; }
.adela-contact--cards .adela-contact__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.adela-contact--cards .adela-contact__company { grid-column: 1 / -1; margin: 0; }
.adela-contact--cards .adela-contact__item { padding: 1.5rem; background: var(--c-surface); }

.adela-social { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; gap: .5rem; }
.adela-social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--c-ink); background: var(--c-surface); transition: background-color .3s ease, color .3s ease, transform .35s var(--ease-out); }
.adela-social a:hover { transform: translateY(-2px); background: var(--c-sage-50); color: var(--c-brand-deep); }

/* ---------- Contact band ---------- */

.contact-band { padding: var(--wp--preset--spacing--60, 5rem) var(--gutter); background: var(--c-sage-50); }
.contact-band__inner {
	max-width: var(--wide); margin: 0 auto;
	display: grid; grid-template-columns: 1fr 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.contact-band__media { margin: 0; }
.contact-band__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-band h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.contact-band h2::after { content: "."; color: var(--c-brand); }
.contact-band p { margin: 0; color: var(--c-ink-soft); font-size: 1.05rem; max-width: 46ch; }
.contact-band__actions { display: grid; gap: .5rem; }
.contact-band__actions .btn { border: 0; background: var(--c-surface); color: var(--c-ink); justify-content: space-between; padding: 1.1rem 1.25rem; text-transform: none; letter-spacing: 0; font-family: var(--f-mono); font-size: .95rem; }
.contact-band__actions .btn::before { background: var(--c-ink); }
.contact-band__actions .btn:hover { color: #fff; }
.contact-band__actions .btn .icon { order: 2; }
@media (max-width: 1024px) {
	.contact-band__inner { grid-template-columns: 1fr 1fr; }
	.contact-band__media { grid-column: 1 / -1; }
	.contact-band__media img { aspect-ratio: 21 / 9; }
}
@media (max-width: 640px) {
	.contact-band__inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--c-rule-strong); background: var(--c-surface); }
.site-footer__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem);
}
.site-footer__inner > * { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.site-footer__logo img { width: 84px; height: auto; }
.site-footer__brand > p { color: var(--c-ink-soft); font-size: .95rem; line-height: 1.55; max-width: 34ch; }
.site-footer__assa { display: flex; align-items: center; gap: .85rem; font-size: .8rem !important; line-height: 1.4 !important; margin-top: 1.5rem; }
.site-footer__assa img { width: 38px; flex: none; }
.site-footer__title {
	margin: .3rem 0 1.25rem;
	font-family: var(--f-sans); font-size: .9rem; font-weight: 500; letter-spacing: .01em; text-transform: none; font-stretch: 100%; color: var(--c-brand-deep);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { padding: .3rem 0; }
.site-footer__col a { color: var(--c-ink); font-size: .95rem; padding-bottom: 2px; }
.site-footer__col a:hover { color: var(--c-brand-deep); }
.site-footer__contact .adela-contact__company { display: none; }
.site-footer__contact .adela-contact__item { padding: .45rem 0; }
.site-footer__contact .adela-contact__item .icon { margin-top: .2rem; }
.site-footer__contact .adela-contact__item a { line-height: 1.45; }

.site-footer__bottom { border-top: 1px solid var(--c-rule); }
.site-footer__bottom-inner {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
	display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: .75rem clamp(1.5rem, 3vw, 3rem);
}
.site-footer__bottom p { margin: 0; }

/* 1. Legal links: the useful information, in plain sight */
.site-footer__legal { order: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-footer__legal a { font-size: .85rem; font-weight: 500; color: var(--c-ink); padding-bottom: 2px; }
.site-footer__legal a:hover { color: var(--c-brand-deep); }

/* 2. Copyright: secondary */
.site-footer__copy { order: 1; font-size: .82rem; color: var(--c-ink-soft); line-height: 1.5; }
.site-footer__copy-name { color: var(--c-ink); font-weight: 500; }
.site-footer__copy-note::before { content: "·"; margin: 0 .6rem; }

/* 3. Credit: discreet */
.site-footer__credit { order: 3; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; color: color-mix(in srgb, var(--c-ink-soft) 70%, transparent); }
.site-footer__credit a { color: inherit; padding-bottom: 2px; }
.site-footer__credit a:hover { color: var(--c-brand-deep); }

@media (max-width: 781px) {
	.site-footer__bottom-inner { grid-template-columns: 1fr; gap: 0; padding-top: 1.5rem; }
	.site-footer__legal { order: 1; flex-direction: column; gap: 0; }
	.site-footer__legal li { border-bottom: 1px solid var(--c-rule-soft); }
	.site-footer__legal a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: .95rem; background: none !important; }
	.site-footer__legal a::after { content: "→"; color: var(--c-ink-soft); transition: transform .35s var(--ease-out), color .3s ease; }
	.site-footer__legal a:hover::after { transform: translateX(4px); color: var(--c-brand-deep); }
	.site-footer__copy { order: 2; padding-top: 1.5rem; font-size: .85rem; }
	.site-footer__copy span { display: block; }
	.site-footer__copy-note::before { display: none; }
	.site-footer__credit { order: 3; margin-top: 1.25rem !important; padding-top: 1rem; border-top: 1px solid var(--c-rule-soft); text-align: center; }
}

@media (max-width: 1024px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; padding-bottom: 0; }
}
@media (max-width: 600px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 0; }
	.site-footer__inner > * { padding: 1.5rem 0 !important; }
}

/* ---------- Mobile action bar ---------- */

.mobile-actions { display: none; }
@media (max-width: 781px) {
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	.mobile-actions {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--c-rule); border-top: 1px solid var(--c-rule);
	}
	.mobile-actions a {
		display: flex; align-items: center; justify-content: center; gap: .5rem;
		min-height: 58px; background: var(--c-surface);
		font: 500 .74rem/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase;
		color: var(--c-ink); text-decoration: none;
	}
	.mobile-actions a:first-child { background: var(--c-ink); color: #fff; }
	.mobile-actions a:active { background: var(--c-sage-100); color: var(--c-ink); }
	.mobile-actions .icon { width: 18px; height: 18px; }
	.nav-open .mobile-actions { z-index: 96; }
}

/* ---------- Cookie banner (Kansleri Cookie Consent) ---------- */

body .kncc-banner { font-family: var(--f-sans) !important; z-index: 120; }
body .kncc-banner--corner { left: var(--gutter); bottom: var(--gutter); max-width: 440px; width: calc(100% - 2 * var(--gutter)); animation: cookie-in .7s var(--ease-out) both; }
body .kncc-banner .kncc-inner {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: 1px solid var(--c-ink);
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
	background: var(--c-surface) !important;
}
body .kncc-banner .kncc-heading {
	font: 500 1.15rem/1.1 var(--f-sans) !important; font-stretch: 108% !important;
	text-transform: uppercase; letter-spacing: -.01em;
	color: var(--c-ink) !important;
	margin: 0 2rem .6rem 0 !important;
}
body .kncc-banner .kncc-desc { font: 400 .9rem/1.5 var(--f-sans) !important; color: var(--c-ink-soft) !important; margin: 0 0 1.1rem !important; }
body .kncc-banner .kncc-policy-link {
	color: var(--c-ink) !important; text-decoration: none !important;
	background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 100% 1px;
	transition: color .3s ease;
}
body .kncc-banner .kncc-policy-link:hover { color: var(--c-brand-deep) !important; }
body .kncc-banner .kncc-actions { display: flex; flex-wrap: wrap; gap: .5rem !important; align-items: center; }
body .kncc-banner .kncc-btn {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 44px; padding: .7rem 1rem !important;
	border-radius: 0 !important; box-shadow: none !important;
	font: 500 .74rem/1 var(--f-sans) !important; letter-spacing: .08em; text-transform: uppercase;
	transition: color .35s var(--ease-inout), border-color .35s !important;
}
body .kncc-banner .kncc-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--c-brand); transform: scaleX(0); transform-origin: left;
	transition: transform .45s var(--ease-inout);
}
body .kncc-banner .kncc-btn:hover::before { transform: scaleX(1); }
body .kncc-banner .kncc-btn--primary { background: var(--c-ink) !important; color: #fff !important; border: 1px solid var(--c-ink) !important; }
body .kncc-banner .kncc-btn--primary:hover { border-color: var(--c-brand) !important; }
body .kncc-banner .kncc-btn--secondary { background: transparent !important; color: var(--c-ink) !important; border: 1px solid var(--c-ink) !important; }
body .kncc-banner .kncc-btn--secondary::before { background: var(--c-ink); }
body .kncc-banner .kncc-btn--secondary:hover { color: #fff !important; }
body .kncc-banner .kncc-btn--link {
	background: none !important; color: var(--c-ink) !important; border: 0 !important;
	padding: .7rem .25rem !important; text-decoration: underline !important; text-underline-offset: .3em;
}
body .kncc-banner .kncc-btn--link::before { display: none; }
body .kncc-banner .kncc-btn--link:hover { color: var(--c-brand-deep) !important; }
body .kncc-banner .kncc-banner-close {
	top: .6rem; right: .6rem; width: 36px; height: 36px; border-radius: 0 !important;
	font: 300 1.6rem/1 var(--f-sans); color: var(--c-ink) !important;
	transition: background-color .3s ease, transform .4s var(--ease-out);
}
body .kncc-banner .kncc-banner-close:hover { background: var(--c-sage-50) !important; transform: rotate(90deg); }
body .kncc-banner .kncc-details { border-top: 1px solid var(--c-rule); margin-top: 1.1rem; padding-top: .5rem; }
body .kncc-banner .kncc-category { border-bottom: 1px solid var(--c-rule); padding: .8rem 0; }
body .kncc-banner .kncc-category__label { font: 500 .9rem/1.2 var(--f-sans) !important; color: var(--c-ink) !important; }
body .kncc-banner .kncc-category__desc,
body .kncc-banner .kncc-category__empty-note { font: 400 .82rem/1.45 var(--f-sans) !important; color: var(--c-ink-soft) !important; }
body .kncc-banner .kncc-category__toggle { border-radius: 0 !important; }
body .kncc-banner .kncc-category__toggle::after,
body .kncc-banner .kncc-category__toggle::before { border-radius: 0 !important; }
body .kncc-banner .kncc-category__check:checked + .kncc-category__toggle { background: var(--c-brand) !important; }
body .kncc-banner .kncc-details-actions { padding-top: 1rem; }

/* Cookie policy table */
body .kncc-policy { font-family: var(--f-sans); }
body .kncc-policy .kncc-policy__table { border-radius: 0; }
body .kncc-policy .kncc-btn { border-radius: 0; background: var(--c-ink); color: #fff; font: 500 .8rem/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; padding: .9rem 1.3rem; }
body .kncc-policy .kncc-btn:hover { background: var(--c-brand); }

@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 781px) {
	/* Above the mobile action bar */
	body .kncc-banner--corner { left: .75rem; width: calc(100% - 1.5rem); max-width: none; bottom: calc(60px + env(safe-area-inset-bottom) + .75rem); }
	body .kncc-banner .kncc-actions .kncc-btn--primary,
	body .kncc-banner .kncc-actions .kncc-btn--secondary { flex: 1 1 0; }
	body .kncc-banner .kncc-actions .kncc-btn--link { flex: 1 0 100%; justify-content: center; }
}

/* ---------- Team ---------- */

.adela-team { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
/* Top: the pole leads side by side, same card size (direction in the middle, by pole order) */
.adela-team__top { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); align-items: stretch; }
/* Departments stacked one under the other; on wide screens each one fits on a single row */
.adela-team__poles { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }
.adela-team__pole { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-content: start; min-width: 0; }
.adela-team__pole-title,
.member__pole {
	margin: 0; font-family: var(--f-sans); font-size: .9rem; font-weight: 500; letter-spacing: .01em; color: var(--c-brand-deep); line-height: 1.4;
}
.adela-team__members { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
@media (max-width: 1280px) { .adela-team__members { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adela-team__pole-title { padding-bottom: .75rem; border-bottom: 1px solid var(--c-rule); }

.member { position: relative; background: var(--c-surface); overflow: hidden; }
.member::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--c-brand); transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--ease-inout);
}
.member:hover::after { transform: scaleX(1); }
.member__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-sage-100); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease-out); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__placeholder { display: block; width: 100%; height: 100%; background: url("../img/emblem-mono.svg") center / 46% no-repeat; opacity: .16; }
.member__body { padding: 1rem 1.1rem 1.25rem; }
.member__name { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.2; letter-spacing: -.005em; text-transform: none; font-stretch: 100%; }
.member__lead { margin: .3rem 0 0; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-brand-deep); }
.member__role { margin: .35rem 0 0; font-size: .9rem; line-height: 1.35; color: var(--c-ink); }
.member__quals { list-style: none; margin: .6rem 0 0; padding: .6rem 0 0; border-top: 1px solid var(--c-rule-soft); font-size: .8rem; line-height: 1.4; color: var(--c-ink-soft); display: grid; gap: .25rem; }
.member__phone {
	display: inline-block; margin-top: .75rem; padding-bottom: 2px;
	font-family: var(--f-mono); font-size: .8rem; color: var(--c-ink); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 0 1px;
}
.member__phone:hover { background-size: 100% 1px; color: var(--c-brand-deep); }

/* Large cards: portrait on the left, text on the right */
.member--lg { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
/* The portrait fills the full card height, whatever the text length */
.member--lg .member__photo { aspect-ratio: auto; min-height: 240px; height: 100%; }
.member--lg .member__body { padding: clamp(1.25rem, 2.5vw, 2rem); align-self: end; }
.member--lg .member__pole { margin-bottom: 1rem; }
.member--lg .member__name { font-size: clamp(1.35rem, 2.1vw, 1.9rem); text-transform: uppercase; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.02; }
.member--lg .member__role { font-size: 1rem; margin-top: .6rem; }
.member--lg .member__quals { font-size: .85rem; }
.has-sage-50-background-color .member { background: var(--c-surface); }

@media (max-width: 1100px) {
	.adela-team__top { grid-auto-flow: row; max-width: 640px; margin-inline: auto; width: 100%; }
	.adela-team__members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.adela-team__members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.member--lg { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
	.member__body { padding: .8rem .85rem 1rem; }
	.member__name { font-size: .98rem; }
	.member__role { font-size: .84rem; }
	.member__quals { font-size: .76rem; }
}

/* ---------- Brand elements ---------- */

/* Seal: fixed emblem and slowly rotating ring of letters on a soft white glow
   (same treatment as the home hero logo); the logo fills the former disc size */
.brand-seal {
	position: relative; display: block;
	width: clamp(104px, 11vw, 164px); aspect-ratio: 1;
}
.brand-seal.page-header__seal { position: absolute; }
/* Glow on each image (not on the wrapper): it turns with the ring instead of being redrawn every frame */
.brand-seal img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px rgba(255, 255, 255, .95)) drop-shadow(0 0 16px rgba(255, 255, 255, .85)); }
.brand-seal__letters { animation: logo-orbit 90s linear infinite; }
.error-seal { margin-bottom: 2rem; background: none; padding: 0; }
.error-seal img { inset: 0; width: 100%; height: 100%; }
@keyframes seal-in { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }

/* Watermark: line-art emblem, very pale, behind the content */
.has-brand .contact-band,
.has-brand .adela-statement,
.is-style-adela-watermark { position: relative; overflow: hidden; isolation: isolate; }
.has-brand .contact-band::after,
.has-brand .adela-statement::after,
.is-style-adela-watermark::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	top: 50%; right: -4%;
	width: min(52vw, 640px); aspect-ratio: 628 / 670;
	background: url("../img/emblem-mono.svg") center / contain no-repeat;
	opacity: .055;
	transform: translateY(-50%) rotate(-10deg);
}
.has-brand .adela-statement::after { right: auto; left: 50%; width: min(70vw, 560px); transform: translate(-50%, -50%); opacity: .045; }
@media (max-width: 781px) {
	.has-brand .contact-band::after,
	.is-style-adela-watermark::after { top: auto; bottom: -8%; right: -18%; width: 78vw; transform: rotate(-10deg); }
}

/* Large name in the footer: spans the full width of the grid */
.site-footer__wordmark {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: 0 var(--gutter) clamp(1rem, 2vw, 1.75rem);
	container-type: inline-size;
	overflow: hidden;
}
.site-footer__wordmark span {
	display: block; white-space: nowrap;
	font-weight: 500; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.02em; line-height: .86;
	font-size: 6.9cqw;
	color: color-mix(in srgb, var(--c-brand) 38%, var(--c-surface));
}
/* Decorative text rendered in CSS: neither read out nor counted as content by accessibility tools */
.site-footer__wordmark span::before { content: attr(data-text); }

/* ---------- Scroll reveals ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.js [data-wipe] img { transform: none; clip-path: none; }
	.adela-photo-band > .wp-block-image img { height: 100%; transform: none; }
}

/* ---------- Impression ---------- */

@media print {
	.site-header, .mobile-actions, .contact-band, .scroll-cue, .brand-seal, .site-footer__wordmark { display: none !important; }
	body { padding: 0; background: #fff; }
}

/* A phone number never breaks at the end of a line */
a[href^="tel:"] { white-space: nowrap; }

/* Titles inside a column: the size follows the column width, so a long word
   ("D’INTERVENIR", "L’ENVIRONNEMENT") is never split in two.
   Counter-numbered columns (steps, phases, tiles) are excluded: a container would isolate the counter. */
.wp-block-column:not(.adela-tiles > *):not(.adela-steps > *):not(.adela-phase > :first-child) { container-type: inline-size; }
.wp-block-column > h2.wp-block-heading { font-size: min(var(--wp--preset--font-size--xx-large), 10.5cqi); }

/* Partner logo under a text column (e.g. Sylvencia on the bureau d’étude page). */
.adela-partner-logo img {
	width: 180px;
	height: auto;
}
.wp-element-caption a { color: inherit; }
.wp-block-column > .adela-partner-logo { margin-top: 2rem; }

/* ==========================================================================
   References (block adela/references): client logos grouped by category
   ========================================================================== */
.adela-references { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.adela-references__title {
	display: flex; align-items: baseline; gap: .75rem;
	margin: 0 0 1.25rem; padding-bottom: .75rem;
	border-bottom: 1px solid var(--c-rule);
	font-size: var(--wp--preset--font-size--large); text-transform: uppercase;
}
.adela-references__count { font-family: var(--f-mono); font-size: .75rem; color: var(--c-ink-soft); font-weight: 400; }
.adela-references__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: .75rem;
	grid-template-columns: repeat(auto-fill, minmax(min(168px, 40vw), 1fr));
}
.reference-card {
	position: relative; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
	padding: clamp(.85rem, 1.6vw, 1.25rem);
	background: var(--c-surface); color: var(--c-ink); text-decoration: none;
	outline: 1px solid transparent; outline-offset: -1px;
	transition: outline-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.reference-card__logo { --k: 1; position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 5 / 3; }
/* The image box always has the logo's own proportions (--r = width / height, set by render.php):
   height = --k × box height, width = that × --r, capped at the box width. No reliance on object-fit,
   which some iOS versions ignore for SVG (logos came out stretched). */
.reference-card__logo img { display: block; width: min(100%, calc(var(--k) * var(--r, 1.667) * 60%)); height: auto; aspect-ratio: var(--r, auto); object-fit: contain; }
.reference-card__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.reference-card--square .reference-card__logo { --k: .8; }
.reference-card--wide .reference-card__logo { --k: .56; }
.reference-card--wider .reference-card__logo { --k: .42; }
.reference-card--widest .reference-card__logo { --k: .34; }
.reference-card__fallback { font-weight: 500; text-align: center; line-height: 1.2; }
.reference-card__name { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; text-align: center; color: var(--c-ink-soft); }
a.reference-card:hover,
a.reference-card:focus-visible { outline-color: var(--c-rule-strong); box-shadow: 0 10px 28px -18px rgba(29, 29, 27, .45); }
@media (prefers-reduced-motion: reduce) { .reference-card { transition: none; } }
