/*
 * Fondation Biomed — design system and site shell (phase 05).
 * Source: reference mockup v2-2/a/_style.css, including its later v2/v2-2 overrides.
 * Breakpoints: 1200px (menu collapses), 1000px (major layout), 520px (phone).
 * Fonts are self-hosted (assets/fonts/fonts.css, decision D21) with system fallbacks.
 */

/* ========== Tokens ========== */
:root {
	color-scheme: only light;

	--fb-color-bg: #ffffff;
	--fb-color-ink: #17251c;
	--fb-color-text: #3b4a40;
	--fb-color-muted: #5f6e64;
	--fb-color-accent: #4d775a;
	--fb-color-accent-dark: #365c42;
	--fb-color-on-accent: #ffffff;
	--fb-color-accent-on-dark: #c9de9a;
	--fb-color-tint: #ecf3ea;
	--fb-color-tint-strong: #dde9da;
	--fb-color-dark: #1e3527;
	--fb-color-line: #dce5db;
	--fb-color-line-strong: #bfcfc0;
	--fb-color-focus: #2f5a3d;

	--fb-font-heading: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--fb-font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	--fb-font-size-body: 1.0625rem;
	--fb-heading-weight: 400;
	--fb-heading-tracking: -0.02em;
	--fb-h1: clamp(2.3rem, 4.6vw, 3.9rem);
	--fb-h2: clamp(1.75rem, 3vw, 2.6rem);
	--fb-h3: 1.2rem;
	--fb-lead: clamp(1.1rem, 1.5vw, 1.3rem);
	--fb-nav-font: 500 0.85rem/1 var(--fb-font-heading);
	--fb-nav-gap: 2rem;

	--fb-content-width: 76rem;
	--fb-gutter: clamp(1rem, 4vw, 2.5rem);
	--fb-section-space: clamp(4rem, 8vw, 7.5rem);
	--fb-radius: 10px;
	--fb-radius-button: 99px;
	--fb-header-height: 5.25rem;
	--fb-logo-height: 2.6rem;
	--fb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	--fb-footer-bg: #4d775a;
	--fb-footer-text: rgb(255 255 255 / 0.9);
	--fb-footer-muted: rgb(255 255 255 / 0.9); /* reference 0.78 = 3.8:1 on the footer green; 0.9 reaches WCAG AA 4.6:1 */
	--fb-footer-line: rgb(255 255 255 / 0.25);

	/* WordPress admin bar height (0 when absent). */
	--fb-admin-bar: 0px;
}
.admin-bar { --fb-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --fb-admin-bar: 46px; } }
@media (max-width: 600px) { .admin-bar { --fb-admin-bar: 0px; } } /* the admin bar scrolls away here */

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

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

body {
	margin: 0;
	background: var(--fb-color-bg);
	color: var(--fb-color-text);
	font: var(--fb-font-size-body)/1.6 var(--fb-font-body);
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img,
video,
iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--fb-color-accent-dark); }
a:hover { color: var(--fb-color-accent); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	color: var(--fb-color-ink);
	font-family: var(--fb-font-heading);
	font-weight: var(--fb-heading-weight);
	letter-spacing: var(--fb-heading-tracking);
	line-height: 1.15;
	text-wrap: balance;
}
h1 { font-size: var(--fb-h1); }
h2 { font-size: var(--fb-h2); }
h3 { font-size: var(--fb-h3); line-height: 1.3; }

:focus-visible { outline: 2px solid var(--fb-color-focus); outline-offset: 3px; border-radius: 2px; }
/* On dark or green backgrounds the focus ring is white, so it stays visible (WCAG 2.4.7). */
.hero :focus-visible,
.site-footer :focus-visible,
.support-call :focus-visible,
.project-call :focus-visible { outline-color: #fff; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: calc(var(--fb-admin-bar) + 1rem);
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--fb-color-bg);
	color: var(--fb-color-ink);
	white-space: normal;
}

/* ========== Layout ========== */
.container { width: min(100% - 2 * var(--fb-gutter), var(--fb-content-width)); margin-inline: auto; }
.site-main { flex: 1; padding-block: calc(var(--fb-section-space) / 2); }
.site-main:focus { outline: none; }

/* ========== Buttons ========== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.85em 1.4em;
	border: 1.5px solid var(--fb-color-accent);
	border-radius: var(--fb-radius-button);
	background: var(--fb-color-accent);
	color: var(--fb-color-on-accent);
	font: 400 0.95rem/1.1 var(--fb-font-body);
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 150ms var(--fb-ease-out), border-color 150ms var(--fb-ease-out), color 150ms var(--fb-ease-out), translate 150ms var(--fb-ease-out);
}
.button:hover { background: var(--fb-color-accent-dark); border-color: var(--fb-color-accent-dark); color: var(--fb-color-on-accent); }
.button:active { translate: 0 1px; }
.button--outline { background: transparent; color: var(--fb-color-accent-dark); }
.button--outline:hover { background: var(--fb-color-accent); color: var(--fb-color-on-accent); }
.button--light { background: #fff; border-color: #fff; color: var(--fb-color-ink); }
.button--light:hover { background: var(--fb-color-tint); border-color: var(--fb-color-tint); color: var(--fb-color-ink); }
.button--donate { background: var(--fb-color-accent); border-color: var(--fb-color-accent); color: var(--fb-color-on-accent); }
.button--donate:hover { background: var(--fb-color-accent-dark); border-color: var(--fb-color-accent-dark); color: var(--fb-color-on-accent); }

/* ========== Header ========== */
.site-header {
	position: sticky;
	top: var(--fb-admin-bar);
	z-index: 50;
	background: rgb(255 255 255 / 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--fb-color-line);
}
.site-header__bar { display: flex; align-items: center; gap: 2rem; min-height: var(--fb-header-height); }
.site-branding { flex: none; }
.site-branding a { display: block; }
.custom-logo { height: var(--fb-logo-height); width: auto; }
.site-title { color: var(--fb-color-ink); font-family: var(--fb-font-heading); font-size: 1.25rem; text-decoration: none; }

.site-nav { margin-left: auto; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: var(--fb-nav-gap); list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; }
.site-nav__list > li > a {
	display: flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.6em 0;
	font: var(--fb-nav-font);
	color: var(--fb-color-ink);
	text-decoration: none;
	/* Short labels stay on one line (reference); an unusually long label wraps instead of widening the bar. */
	max-width: 12em;
	line-height: 1.25;
}
.site-nav__list > li > a:hover,
.site-nav__list > .current-menu-item > a,
.site-nav__list > .current-menu-ancestor > a,
.site-nav__list > .current-page-ancestor > a,
.site-nav__list > .current_page_parent > a {
	color: var(--fb-color-accent-dark);
	text-decoration: underline 2px var(--fb-color-accent);
	text-underline-offset: 0.45em;
}
.site-nav__chevron { width: 0.75em; height: 0.75em; transition: rotate 200ms var(--fb-ease-out); }

/* Dropdown: opens on hover and when focus is inside (keyboard). */
.site-nav .sub-menu {
	position: absolute;
	left: -1.25rem;
	top: 100%;
	min-width: 13rem;
	list-style: none;
	margin: 0;
	padding: 0.6rem;
	background: var(--fb-color-bg);
	border: 1px solid var(--fb-color-line);
	border-radius: var(--fb-radius);
	box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.25);
	opacity: 0;
	visibility: hidden;
	translate: 0 6px;
	transition: opacity 200ms var(--fb-ease-out), translate 200ms var(--fb-ease-out), visibility 0s 200ms;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.site-nav .menu-item-has-children:hover .site-nav__chevron,
.site-nav .menu-item-has-children:focus-within .site-nav__chevron { rotate: 180deg; }
.site-nav .sub-menu a { display: block; padding: 0.65rem 0.8rem; border-radius: calc(var(--fb-radius) - 2px); color: var(--fb-color-ink); text-decoration: none; }
.site-nav .sub-menu a:hover,
.site-nav .sub-menu .current-menu-item > a { background: var(--fb-color-tint); }
.site-nav__footer { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.site-header__actions .button { padding: 0.7em 1.1em; font-size: 0.88rem; }

/* Language switcher: current language as a pill, other languages in a small popover. */
.lang-switcher { position: relative; }
.lang-switcher__current {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.45em 0.6em;
	border: 1px solid var(--fb-color-line-strong);
	border-radius: 99px;
	background: transparent;
	font: 400 0.8rem/1 var(--fb-font-body);
	letter-spacing: 0.02em;
	color: var(--fb-color-ink);
	cursor: pointer;
}
.lang-switcher__chevron { width: 0.7rem; height: 0.7rem; transition: rotate 200ms var(--fb-ease-out); }
.lang-switcher__list {
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 4px;
	list-style: none;
	margin: 0;
	padding: 0.3rem;
	background: var(--fb-color-bg);
	border: 1px solid var(--fb-color-line);
	border-radius: 10px;
	box-shadow: 0 12px 30px -14px rgb(0 0 0 / 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms var(--fb-ease-out), translate 180ms var(--fb-ease-out), visibility 0s 180ms;
}
.lang-switcher::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.lang-switcher:hover .lang-switcher__list,
.lang-switcher:focus-within .lang-switcher__list,
.lang-switcher__current[aria-expanded="true"] + .lang-switcher__list { opacity: 1; visibility: visible; translate: -50% 8px; transition-delay: 0s; }
.lang-switcher:hover .lang-switcher__chevron,
.lang-switcher__current[aria-expanded="true"] .lang-switcher__chevron { rotate: 180deg; }
/* In the header the switcher sits at the right edge: align the popover to it. */
.lang-switcher--header .lang-switcher__list { left: auto; right: 0; translate: 0 4px; }
.lang-switcher--header:hover .lang-switcher__list,
.lang-switcher--header:focus-within .lang-switcher__list,
.lang-switcher--header .lang-switcher__current[aria-expanded="true"] + .lang-switcher__list { translate: 0 8px; }
.lang-switcher__list a { display: block; padding: 0.45em 0.9em; border-radius: 6px; font: 400 0.8rem/1 var(--fb-font-body); color: var(--fb-color-ink); text-decoration: none; }
.lang-switcher__list a:hover { background: var(--fb-color-tint); }

.menu-toggle { display: none; align-items: center; padding: 0.5rem; margin: -0.5rem; border: 0; background: transparent; color: var(--fb-color-ink); cursor: pointer; }
.menu-toggle__bars { display: grid; gap: 6px; width: 24px; }
.menu-toggle__bars i { display: block; height: 2px; background: currentColor; transition: rotate 220ms var(--fb-ease-out), translate 220ms var(--fb-ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { translate: 0 4px; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { translate: 0 -4px; rotate: -45deg; }

/* Mobile and tablet: the menu collapses at 1200px (six entries no longer fit on one line). */
@media (max-width: 1200px) {
	.js .menu-toggle { display: inline-flex; }
	.site-header__actions { margin-left: auto; }

	/* With JavaScript: full-height white panel under the header. */
	.js .site-nav {
		position: fixed;
		inset: calc(var(--fb-header-height) + var(--fb-admin-bar)) 0 auto 0;
		height: calc(100dvh - var(--fb-header-height) - var(--fb-admin-bar));
		margin: 0;
		padding: 1.5rem var(--fb-gutter) 2rem;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		z-index: 50;
		opacity: 0;
		visibility: hidden;
		translate: 0 -8px;
	}
	/* Animate only while the menu is being opened or closed (set by main.js), so crossing the
	   breakpoint switches state instantly instead of fading a full-screen panel. */
	.is-menu-animating .site-nav { transition: opacity 250ms var(--fb-ease-out), translate 250ms var(--fb-ease-out), visibility 0s 250ms; }
	.has-open-menu .site-nav { opacity: 1; visibility: visible; translate: 0 0; box-shadow: 0 -1px 0 var(--fb-color-line); }
	.is-menu-animating.has-open-menu .site-nav { transition-delay: 0s; }
	.has-open-menu,
	.has-open-menu body { overflow: hidden; }
	.has-open-menu .site-header { background: #fff; }

	/* Without JavaScript: the menu stays visible as a list below the bar. */
	html:not(.js) .site-header__bar { flex-wrap: wrap; }
	html:not(.js) .site-nav { order: 3; flex-basis: 100%; margin: 0 0 1rem; }

	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__list > li > a { max-width: none; padding: 1rem 0; font-size: 1.15rem; line-height: 1.3; border-bottom: 1px solid var(--fb-color-line); }
	.site-nav__chevron { display: none; }
	.site-nav .sub-menu { position: static; min-width: 0; padding: 0.25rem 0 0.75rem 1rem; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; translate: none; }
	.site-nav__footer { display: block; margin-top: 2rem; font-size: 0.85rem; color: var(--fb-color-muted); }
	.site-nav__footer .lang-switcher { display: inline-block; margin-bottom: 1rem; }
	.site-nav__footer .lang-switcher__list { left: 0; translate: 0 4px; }
	.site-nav__footer .lang-switcher:hover .lang-switcher__list,
	.site-nav__footer .lang-switcher:focus-within .lang-switcher__list,
	.site-nav__footer .lang-switcher__current[aria-expanded="true"] + .lang-switcher__list { translate: 0 8px; }
}
@media (max-width: 520px) {
	.site-header__bar { gap: 0.75rem; }
	.site-header__actions { gap: 0.6rem; }
	.site-header__actions .lang-switcher { display: none; }
	.site-header__actions .button--donate { padding: 0.6em 0.8em; font-size: 0.8rem; }
	.custom-logo { height: calc(var(--fb-logo-height) * 0.82); }
}

/* ========== Footer ========== */
.site-footer { padding-top: var(--fb-section-space); background: var(--fb-footer-bg); color: var(--fb-footer-text); font-size: 0.92rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer__logo { height: 2.6rem; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.site-footer__brand p { max-width: 22rem; }
.site-footer .button--donate { background: #fff; border-color: #fff; color: var(--fb-footer-bg); }
.site-footer .button--donate:hover { background: rgb(255 255 255 / 0.85); border-color: transparent; color: var(--fb-footer-bg); }
.site-footer__title { margin-bottom: 0.75rem; color: #fff; font-weight: 700; }
.iban { font-variant-numeric: tabular-nums; color: #fff; }
.site-footer__members { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--fb-footer-line); }
.site-footer__members .site-footer__title { margin: 0; }
.site-footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer__logos img { height: 1.8rem; width: auto; opacity: 0.85; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-block: 1.75rem; border-top: 1px solid var(--fb-footer-line); font-size: 0.8rem; color: var(--fb-footer-muted); }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__menu { display: contents; list-style: none; margin: 0; padding: 0; }
.site-footer__menu li { display: inline; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ========== Content (page title, entries, pagination) ========== */
.entry + .entry { margin-top: 3rem; }
.entry-meta { color: var(--fb-color-muted); font-size: 0.9rem; }
.entry-content > * { max-width: 48rem; }
.entry-content > .alignwide,
.entry-content > .alignfull { max-width: none; }
.entry--page .entry-header { margin-bottom: 0; }
.pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--fb-color-line); border-radius: var(--fb-radius); text-decoration: none; }
.pagination .current { background: var(--fb-color-tint); }

/* ========== Sections (reference: .sec, .sec--menthe, .prose--large) ========== */
.site-main:has(.section:first-child) { padding-bottom: 0; }
.section { padding-block: var(--fb-section-space); color: var(--fb-color-text); }
.section--white { background: var(--fb-color-bg); }
.section--mint { background: var(--fb-color-tint); }
.section--white + .section--white { padding-top: 0; }
.prose { max-width: 42rem; }
.prose--large { max-width: 48rem; }
.prose--large p { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.7; } /* reference .prose--large p */
.prose > :last-child { margin-bottom: 0; }
.prose ul,
.prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose h3 { margin: 1.8em 0 0.5em; }

/* ========== Foundation section components (phase 06; reference final rules) ========== */
/* Section headings in text sections: the reference "intertitres" style (small, green). */
.section--rich-text .prose h2,
.section--feature-list .prose h2,
.section--text-media .prose h2 { margin: 2.75rem 0 0.9rem; font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.3 var(--fb-font-heading); letter-spacing: 0; color: var(--fb-color-accent-dark); }
.section--rich-text .prose h2:first-child,
.section--feature-list .prose h2:first-child,
.section--text-media .prose h2:first-child { margin-top: 0; }
.section-title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }

/* Sub-navigation between pages of a section (tinted bar, current page underlined). */
.subnav { background: color-mix(in srgb, var(--fb-color-tint) 50%, #fff); }
.subnav__links { display: flex; gap: var(--fb-nav-gap); overflow-x: auto; scrollbar-width: none; }
.subnav__links a { flex: none; padding: 1rem 0; border-bottom: 2px solid transparent; color: var(--fb-color-muted); text-decoration: none; }
.subnav__links a:hover { color: var(--fb-color-ink); }
.subnav__links a[aria-current] { color: var(--fb-color-ink); border-color: var(--fb-color-accent); }

/* Page heading (H1 + intro). */
.page-heading { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 2vw, 1.5rem); }
.subnav + .page-heading { padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-heading__title { max-width: calc((100% - clamp(2rem, 6vw, 5rem)) * 7 / 12); margin: 0; line-height: 1.04; } /* reference .entete--titre-seul: H1 in the 7/12 column */
@media (max-width: 1000px) { .page-heading__title { max-width: none; } }
.page-heading__intro { max-width: 46rem; margin-top: 1.25rem; font-size: var(--fb-lead); }
.page-heading + .section--white { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
/* Pages built only from sections: the sections control their own spacing. */
.site-main:has(> .entry--sections-only) { padding-block: 0; }
.entry--sections-only > .page-heading:first-child { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

/* Document link (e.g. statutes). */
.document-link a { display: inline-flex; align-items: center; gap: 0.45em; color: var(--fb-color-accent-dark); }
.document-link__icon { width: 1.15em; height: 1.15em; flex: none; }

/* Feature list: one column (axes) or two columns (values, last item full width). */
.feature-list { list-style: none; padding: 0 !important; margin: 1.25rem 0 1.5rem !important; display: grid; gap: 0.75rem; }
.feature-list li { margin: 0 !important; padding: 1rem 1.25rem 1.4rem; background: var(--fb-color-tint); border-radius: var(--fb-radius); }
.section--mint .feature-list li { background: #fff; }
.feature-list strong { display: block; margin-bottom: 0.35rem; font: 400 1.05rem/1.3 var(--fb-font-heading); color: var(--fb-color-ink); }
.feature-list--grid { grid-template-columns: 1fr 1fr; }
.feature-list--grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .feature-list--grid { grid-template-columns: 1fr; } }

/* Text and image. */
.text-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.text-media--image-left .text-media__image { order: -1; }
.text-media__image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--fb-radius); clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%); }
@media (max-width: 1000px) { .text-media { grid-template-columns: 1fr; } .text-media--image-left .text-media__image { order: 0; } }

/* Documents (report covers). */
.documents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.document__link { display: block; text-decoration: none; }
.document__cover { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; border-radius: calc(var(--fb-radius) / 2); box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.5); transition: translate 250ms var(--fb-ease-out); }
.document__link:hover .document__cover { translate: 0 -6px; }
.document__title { display: block; margin-top: 1rem; color: var(--fb-color-ink); }
.document__type { color: var(--fb-color-muted); }
@media (max-width: 1000px) { .documents { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .documents { gap: 1rem; } }

/* People groups (tabs). Without JS all groups are listed with their headings. */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.25rem; }
.tabs__tab { padding: 0.75em 1.25em; border: 1px solid var(--fb-color-line-strong); border-radius: 99px; background: #fff; font: 400 0.95rem/1 var(--fb-font-heading); letter-spacing: 0.02em; color: var(--fb-color-ink); cursor: pointer; transition: background-color 150ms var(--fb-ease-out), color 150ms var(--fb-ease-out); }
.tabs__tab:hover { border-color: var(--fb-color-accent); }
.tabs__tab[aria-selected="true"] { background: var(--fb-color-accent); border-color: var(--fb-color-accent); color: #fff; }
.people-group + .people-group { margin-top: 3rem; }
.has-tabs .people-group + .people-group { margin-top: 0; }
.people-group__title { margin-bottom: 1.25rem; font-size: var(--fb-h3); line-height: 1.3; }
.people-group[hidden] { display: none; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.1rem; background: #fff; border-radius: var(--fb-radius); }
.section--white .person { background: var(--fb-color-tint); }
.person__portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--fb-radius); }
.person__initials { display: grid; place-items: center; background: var(--fb-color-tint-strong); color: var(--fb-color-accent-dark); font: 400 2rem/1 var(--fb-font-heading); }
.person__name { display: block; color: var(--fb-color-ink); }
.person__role { display: block; margin-top: -0.6rem; font-size: 0.88rem; line-height: 1.4; color: var(--fb-color-muted); }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* Profiles: sheets (logo tile + text) or cards (grid). */
.profiles { list-style: none; margin: 0; padding: 0; }
.profiles--sheets .profile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--fb-color-line); }
.profiles--sheets .profile:first-child { border-top: 0; padding-top: 0; }
.profiles--sheets .profile__logo { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 1.5rem; background: var(--fb-color-tint); border-radius: var(--fb-radius); }
.profiles--sheets .profile__logo img { max-width: 80%; max-height: 4rem; width: auto; height: auto; }
.profile__name { margin-bottom: 0.75rem; font-size: var(--fb-h3); line-height: 1.3; }
.profile__text p { max-width: 44rem; }
.profiles--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.profiles--cards .profile { display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem; border: 1px solid var(--fb-color-line); border-radius: var(--fb-radius); background: var(--fb-color-bg); }
.profiles--cards .profile__logo { display: flex; align-items: center; height: 5.5rem; margin-bottom: 0.5rem; }
.profiles--cards .profile__logo img { max-height: 100%; max-width: 75%; width: auto; height: auto; object-fit: contain; }
.profiles--cards .profile__name { margin: 0; font: 400 1.05rem/1.3 var(--fb-font-heading); }
.profiles--cards .profile__text p { font-size: 0.9rem; color: var(--fb-color-muted); }
@media (max-width: 1000px) { .profiles--sheets .profile { grid-template-columns: 1fr; } .profiles--sheets .profile__logo { max-width: 20rem; } }

/* ========== Projects (phase 07; reference: .carte-projet, .filtres-projets, .fiche-projet) ========== */
:root { --fb-status-progress-bg: #ffffff; --fb-status-progress-text: #365c42; --fb-status-seeking-bg: #c9de9a; --fb-status-seeking-text: #1e3527; }
.section-intro { margin: -0.5rem 0 2rem; }
.section-footer { margin: 2.5rem 0 0; }

/* Two text columns (e.g. /nos-projets/ introduction). */
.text-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.text-columns__col { max-width: none; }
.text-columns__col h3:first-child,
.text-columns__col h2:first-child { margin-top: 0; }
.text-columns__col h2 { margin: 1.8em 0 0.5em; font-size: var(--fb-h3); line-height: 1.3; }
.text-columns a { color: var(--fb-color-accent-dark); }
@media (max-width: 1000px) { .text-columns { grid-template-columns: 1fr; } }
.text-flow { max-width: none; columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4.5rem); }
.text-flow p { break-inside: avoid; }
.text-flow a { color: var(--fb-color-accent-dark); }

/* Status badge. */
.status { display: inline-block; padding: 0.35rem 0.7rem; border-radius: var(--fb-radius-button); font: 400 0.75rem/1.2 var(--fb-font-body); background: var(--fb-status-progress-bg); color: var(--fb-status-progress-text); }
.status--seeking { background: var(--fb-status-seeking-bg); color: var(--fb-status-seeking-text); }

/* Cards. */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.project-card { height: 100%; }
.project-card[hidden] { display: none; }
.project-card__link { display: flex; flex-direction: column; height: 100%; padding: 0.6rem; background: #fff; border: 1px solid var(--fb-color-line); border-radius: var(--fb-radius); color: inherit; text-decoration: none; transition: border-color 200ms, box-shadow 200ms; }
.project-card__link:hover { border-color: #84ac85; box-shadow: 0 20px 40px -28px rgb(30 53 39 / 0.45); color: inherit; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 7px; background: var(--fb-color-tint); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 500ms var(--fb-ease-out); }
.project-card__link:hover .project-card__media img { scale: 1.04; }
.project-card__statuses { position: absolute; left: 0.85rem; top: 0.85rem; right: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 0.75rem 0.75rem; }
.project-card__meta { margin: 0 0 0.6rem; font: 500 0.82rem/1.3 var(--fb-font-body); color: var(--fb-color-muted); }
.project-card__title { margin: 0 0 0.6rem; font-size: var(--fb-h3); line-height: 1.25; letter-spacing: 0; overflow-wrap: break-word; }
.project-card__teaser { margin: 0 0 1em; font-size: 0.95rem; color: var(--fb-color-text); }
/* Older projects have a whole paragraph as excerpt: cards show at most 3 lines, like the reference teasers. */
.project-card__teaser { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.project-card__more { display: inline-flex; align-items: center; gap: 0.5em; margin-top: auto; padding-top: 1rem; font-weight: 400; color: var(--fb-color-accent-dark); }
.project-card__more .arrow { flex: none; width: 1.1em; height: 1.1em; transition: translate 180ms var(--fb-ease-out); }
.project-card__link:hover .arrow { translate: 4px 0; }
.project-card__link:hover .project-card__more { -webkit-text-stroke-width: 0.45px; }
.project-grid__empty { margin: 0; color: var(--fb-color-muted); }
/* Pagination of a project grid (built by main.js; no reference in the mockup: same look as the filter chips). */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2.5rem; }
.pager[hidden] { display: none; }
.pager__button { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; border: 1px solid var(--fb-color-line-strong); border-radius: var(--fb-radius-button); background: #fff; color: var(--fb-color-ink); font: inherit; font-size: 0.9rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 150ms var(--fb-ease-out), border-color 150ms var(--fb-ease-out), color 150ms var(--fb-ease-out); }
.pager__button:hover:not(:disabled) { border-color: var(--fb-color-accent); }
.pager__button[aria-current="page"] { background: var(--fb-color-accent); border-color: var(--fb-color-accent); color: #fff; }
.pager__button:disabled { opacity: 0.4; cursor: default; }
.pager__button--arrow { padding: 0; width: 2.5rem; }
.pager__button svg { width: 1.1rem; height: 1.1rem; }

/* Filters (shown by main.js). */
.project-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 2rem; margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; background: #fff; border-radius: var(--fb-radius); }
.project-filters[hidden] { display: none; }
.project-filters__title { width: 100%; margin: 0; color: var(--fb-color-ink); }
.project-filters__group { display: flex; flex-direction: column; min-width: 0; }
.project-filters__group--search { width: 100%; }
.project-filters__label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; line-height: 1.2; color: var(--fb-color-muted); }
.project-filters__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 0.95em; border: 1px solid var(--fb-color-line-strong); border-radius: var(--fb-radius-button); background: transparent; color: var(--fb-color-ink); font: inherit; font-size: 0.85rem; letter-spacing: 0.02em; cursor: pointer; transition: background-color 150ms var(--fb-ease-out), color 150ms var(--fb-ease-out), border-color 150ms; }
.chip:hover { border-color: var(--fb-color-accent); }
.chip[aria-pressed="true"] { background: var(--fb-color-accent); border-color: var(--fb-color-accent); color: #fff; }
.search-field { position: relative; display: block; max-width: 32rem; }
.search-field svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1rem; height: 1rem; color: var(--fb-color-muted); pointer-events: none; }
.search-field input { width: 100%; height: 2.6rem; padding: 0 1rem 0 2.6rem; border: 1px solid var(--fb-color-line-strong); border-radius: var(--fb-radius-button); background: #fff; font: inherit; font-size: 0.92rem; color: var(--fb-color-ink); }
.search-field input:hover,
.project-filters select:hover { border-color: var(--fb-color-accent); }
.project-filters select { -webkit-appearance: none; appearance: none; height: 2.25rem; max-width: 100%; padding: 0 2.4rem 0 1rem; border: 1px solid var(--fb-color-line-strong); border-radius: var(--fb-radius-button); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%235f6e64' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 1rem center / 0.75rem; font: inherit; font-size: 0.85rem; line-height: 1; color: var(--fb-color-text); cursor: pointer; }
.project-filters__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; width: 100%; }
.project-filters__count { margin: 0; font-size: 0.85rem; color: var(--fb-color-muted); }
.project-filters__count:empty { display: none; }
.project-filters__reset { padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--fb-color-accent-dark); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.project-filters__reset[hidden] { display: none; }
.project-filters__footer:not(:has(:not([hidden]):not(:empty))) { display: none; }
@media (max-width: 520px) {
	.project-filters { padding: 1.1rem; }
	.project-filters__group { width: 100%; }
	.project-filters select { width: 100%; }
}

/* Project detail (reference: .detail-entete, .detail, .detail__fiche, .prose--detail). */
.site-main:has(> .project) { padding-block: 0; }
.project-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(0.75rem, 1.5vw, 1.25rem); }
.back-link { display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: clamp(1.25rem, 3vw, 2rem); font-size: 0.95rem; color: var(--fb-color-accent-dark); text-decoration: none; }
.back-link svg { width: 1.1em; height: 1.1em; rotate: 180deg; transition: translate 200ms var(--fb-ease-out); }
.back-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.back-link:hover svg { translate: -4px 0; }
.project-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; padding: clamp(1.5rem, 4vw, 3rem); background: color-mix(in srgb, var(--fb-color-tint) 50%, #fff); border-radius: var(--fb-radius); }
.project-hero__grid--no-image { grid-template-columns: minmax(0, 1fr); }
.project-hero__statuses { margin: 0 0 1.25rem; } /* inline badges in a text line, as in the reference (.detail-etat) */
/* Two statuses (live data, no reference): wrap with a gap. */
.project-hero__statuses:has(.status + .status) { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-hero .status { background: var(--fb-color-tint); }
.project-hero .status--seeking { background: var(--fb-status-seeking-bg); }
.project-hero__title { margin: 0; font-size: var(--fb-h2); line-height: 1.12; overflow-wrap: break-word; }
.project-hero__lead { margin: 1.25rem 0 0; font-size: var(--fb-lead); line-height: 1.5; color: var(--fb-color-text); text-wrap: pretty; }
.project-hero__image { position: relative; margin: 0; overflow: hidden; border-radius: var(--fb-radius); background: var(--fb-color-tint); }
.project-hero__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-hero__image::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 1.15; background: linear-gradient(135deg, transparent 50%, rgb(201 222 154 / 0.85) 50%); mix-blend-mode: multiply; pointer-events: none; }
@media (max-width: 1000px) { .project-hero__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.project-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.project-detail { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.project-detail__aside { position: sticky; top: calc(var(--fb-admin-bar) + var(--fb-header-height) + 1.5rem); display: grid; gap: 1.5rem; padding: 1.75rem; background: var(--fb-color-tint); border-radius: var(--fb-radius); }
.project-facts { margin: 0; display: grid; gap: 1.1rem; }
.project-facts > div { padding-bottom: 1.1rem; border-bottom: 1px solid var(--fb-color-line-strong); }
.project-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.project-facts dt { margin-bottom: 0.35rem; font-size: 0.78rem; color: var(--fb-color-muted); }
.project-facts dd { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--fb-color-ink); }
.leaders { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.leaders li { display: flex; gap: 0.75rem; align-items: flex-start; }
.leaders__initials { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #dde9da; color: #365c42; font: 400 0.8rem/1 var(--fb-font-heading); }
.leaders p { margin: 0; }
.leaders strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--fb-color-ink); }
.leaders p span { display: block; font-size: 0.8rem; line-height: 1.35; color: var(--fb-color-muted); }
.project-detail__aside .button { width: 100%; justify-content: center; padding-block: 1.1em; }
.project-detail__body { max-width: 44rem; }
.project-detail__body p { font-size: clamp(1.03rem, 1.2vw, 1.12rem); line-height: 1.75; }
.project-detail__body p[data-intro] { margin-bottom: 1.5em; font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.55 var(--fb-font-heading); color: var(--fb-color-ink); }
.project-detail__body h2 { margin: 3rem 0 1.5rem; font: 400 clamp(1.35rem, 2vw, 1.7rem)/1.25 var(--fb-font-heading); letter-spacing: 0; }
.project-detail__body > :first-child { margin-top: 0; }
.project-detail__body img { border-radius: var(--fb-radius); }
/* Live bodies use column blocks; in this reading column they flow as one column. */
.project-detail__body .wp-block-columns { display: block; margin: 0; }
.project-detail__body .wp-block-column > :last-child { margin-bottom: 1em; }
.project-detail__body .wp-block-image,
.project-detail__body figure { margin: 2.5rem 0; }
.project-detail__body figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--fb-color-muted); }
.project-detail__body a { color: var(--fb-color-accent-dark); }
.project-columns { margin: 0 0 1em; } /* legacy two-column block: one reading column, like core columns */
.project-gallery { list-style: none; padding: 0 !important; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.project-gallery li { margin: 0 !important; }
.project-gallery figure { margin: 0; }
/* Body blocks (reference: .detail__figure, .implications, .detail__appel). */
.project-detail__body .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fb-radius); }
/* .key-points: see assets/css/blocks.css (also loaded in the editor). */
/* Support call box (reference .detail__appel), added by single-project.php. */
.support-call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.75rem; background: var(--fb-color-accent, #4d775a); border-radius: var(--fb-radius, 10px); }
.project-detail__body .support-call p,
.support-call p { margin: 0; font: 400 1.15rem/1.4 var(--fb-font-heading, "Sora", system-ui, sans-serif); color: #fff; }
.support-call .button { display: inline-flex; align-items: center; padding: 0.85em 1.4em; border: 1.5px solid #fff; border-radius: var(--fb-radius-button, 99px); background: #fff; color: var(--fb-color-accent-dark, #365c42); font: 400 0.95rem/1.1 var(--fb-font-body, "Atkinson Hyperlegible Next", system-ui, sans-serif); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.support-call .button:hover { background: var(--fb-color-tint, #ecf3ea); border-color: var(--fb-color-tint, #ecf3ea); color: var(--fb-color-accent-dark, #365c42); }
@media (max-width: 1000px) {
	.project-detail { grid-template-columns: 1fr; }
	.project-detail__aside { position: static; order: 2; }
}

/* À propos: all section headings in the donation-button green, weight 600 (reference .page-a-propos main h2). */
.page-a-propos main h2,
.page-a-propos main .section .prose h2 { color: var(--fb-color-accent); font-weight: 600; }

/* ========== Calls and support (phase 08; reference: appel-a-projets.html, nous-soutenir.html) ========== */
:root { --fb-meta: 500 0.82rem/1.3 var(--fb-font-body); --fb-call-open-bg: #e3f0d2; --fb-call-open-text: #2f5a3d; }

/* Call heading: H1, then tinted box with the theme (H2), status pill and image (.entete__surtitre, .entete__grille--haut). */
.call-heading { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.call-heading + .section--white { padding-top: clamp(1.5rem, 3vw, 2.5rem); } /* reference: .entete + .sec */
.call-heading__kicker { margin: 0 0 clamp(1.25rem, 3vw, 2.25rem); font-size: var(--fb-h1); line-height: 1.04; }
.call-heading__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: clamp(1.5rem, 4vw, 3rem); background: color-mix(in srgb, var(--fb-color-tint) 50%, #fff); border-radius: var(--fb-radius); }
.call-heading__grid--no-image { grid-template-columns: minmax(0, 1fr); }
.call-heading__title { margin: -0.12em 0 0; font-size: var(--fb-h2); line-height: 1.12; color: var(--fb-color-ink); }
.call-heading__image { position: relative; margin: 0; overflow: hidden; border-radius: var(--fb-radius); background: var(--fb-color-tint); }
.call-heading__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.call-heading__image::after,
.band-image::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 1.15; background: linear-gradient(135deg, transparent 50%, rgb(201 222 154 / 0.85) 50%); mix-blend-mode: multiply; pointer-events: none; }
.call-status { display: inline-flex; align-items: center; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0.5rem 0.9rem; border-radius: var(--fb-radius-button); background: var(--fb-call-open-bg); color: var(--fb-call-open-text); font-size: 0.9rem; }
.call-status__dot { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.call-status--open .call-status__dot { animation: fb-pulse 2.4s ease-in-out infinite; }
.call-status--closed { background: var(--fb-color-tint); color: var(--fb-color-muted); }
@keyframes fb-pulse { 50% { opacity: 0.35; } }
@media (max-width: 1000px) { .call-heading__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Lists side by side: numbered (.liste--numerotee) and check marks (.coches). */
.list-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.list-columns--single { grid-template-columns: minmax(0, 48rem); }
.numbered-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.numbered-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.25rem 0.75rem; padding-block: 1.5rem; border-top: 1px solid var(--fb-color-line); }
.numbered-list__num { grid-row: span 3; font: 400 0.9rem/1.7rem var(--fb-font-heading); color: var(--fb-color-accent); }
.numbered-list p { grid-column: 2; margin: 0; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0.9rem 0 0.9rem 2rem; border-bottom: 1px solid var(--fb-color-line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1rem; height: 0.55rem; border-left: 2px solid var(--fb-color-accent); border-bottom: 2px solid var(--fb-color-accent); rotate: -45deg; }
.list-columns__note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--fb-color-muted); }
@media (max-width: 1000px) { .list-columns { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .numbered-list li { grid-template-columns: 2.75rem 1fr; gap: 0.25rem 1rem; } }

/* Timeline (.frise). */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.timeline li { position: relative; padding-top: 2.25rem; }
.timeline li::before { content: ""; position: absolute; top: 0.45rem; left: 0; right: -1.5rem; height: 2px; background: var(--fb-color-line); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--fb-color-bg); border: 2px solid var(--fb-color-accent); }
.timeline li.is-current::after { background: var(--fb-color-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fb-color-accent) 25%, transparent); }
.timeline li:last-child::before { right: 0; }
.timeline p { margin: 0; }
.timeline .timeline__date { margin-bottom: 0.4rem; font: var(--fb-meta); color: var(--fb-color-accent-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } .timeline li:nth-child(2)::before { right: 0; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } .timeline li::before { display: none; } }

/* Files (.fichiers--ligne). */
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.file { position: relative; display: block; height: 100%; padding: 1.1rem 3.75rem 1.1rem 1.25rem; border: 1px solid var(--fb-color-line-strong); border-radius: var(--fb-radius); background: var(--fb-color-bg); color: var(--fb-color-ink); text-decoration: none; transition: border-color 150ms; }
a.file:hover { border-color: var(--fb-color-accent); color: var(--fb-color-ink); }
.file__type { display: block; margin-bottom: 0.25rem; font: var(--fb-meta); color: var(--fb-color-muted); }
.file__icon { position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; width: 1.6rem; height: 1.6rem; color: #b9bfbb; transition: color 150ms; }
a.file:hover .file__icon { color: var(--fb-color-accent); }
.file--missing { border-style: dashed; color: var(--fb-color-muted); }
@media (max-width: 520px) { .files { grid-template-columns: 1fr; } }

/* Link cards (.archives--cartes). */
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.link-card { display: block; height: 100%; padding-bottom: 1rem; border-bottom: 2px solid var(--fb-color-accent); color: inherit; text-decoration: none; }
a.link-card:hover { color: inherit; }
.link-card__image { margin: 0; overflow: hidden; border-radius: var(--fb-radius); }
.link-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale 500ms var(--fb-ease-out); }
a.link-card:hover .link-card__image img { scale: 1.04; }
.link-card__body { padding-top: 1.1rem; }
.link-card__label { margin: 0 0 0.6rem; font: var(--fb-meta); color: var(--fb-color-accent-dark); font-weight: 400; }
.link-card__title { margin: 0 0 0.4rem; font-size: var(--fb-h3); line-height: 1.6; letter-spacing: 0; }
.link-more { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1.25rem; color: var(--fb-color-accent-dark); }
.link-more .arrow { flex: none; width: 1.1em; height: 1.1em; transition: translate 180ms var(--fb-ease-out); }
a:hover .link-more .arrow { translate: 4px 0; }
@media (max-width: 1000px) { .link-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .link-cards { grid-template-columns: 1fr; } }

/* Wide image under a text (.bandeau-sec .entete__bandeau). */
.band-image { position: relative; margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0; overflow: hidden; border-radius: var(--fb-radius); }
.band-image img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 40%; }
.band-image::after { width: 26%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
@media (max-width: 1000px) { .band-image img { aspect-ratio: 16 / 8; } }
@media (max-width: 520px) { .band-image img { aspect-ratio: 4 / 3; } }

/* Donation (.don, .virement-carte). */
.donation { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.donation__text { max-width: none; }
.donation__text .section-title { margin-bottom: 1rem; }
.donation__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.transfer-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border-radius: var(--fb-radius); box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.35); }
.transfer-card__title { margin: 0 0 1.25rem; font-size: var(--fb-h3); line-height: 1.6; letter-spacing: 0; }
.transfer-card dl { margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.transfer-card dt { margin-bottom: 0.2rem; font-size: 0.8rem; color: var(--fb-color-muted); }
.transfer-card dd { margin: 0; color: var(--fb-color-ink); }
.transfer-card__iban { font-size: 1.25rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.copy-iban[hidden] { display: none; }
.copy-iban__status { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--fb-color-accent-dark); }
.copy-iban__status:empty { display: none; }
.copy-iban__status.is-error { color: #8a3b12; }
@media (max-width: 1000px) { .donation { grid-template-columns: 1fr; } }

/* ========== News and events (phase 09; reference: actualites.html, actualite.html) ========== */
.news-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0 0 0.6rem; font: var(--fb-meta); color: var(--fb-color-muted); }
.news-meta__cat { color: var(--fb-color-accent-dark); font-weight: 400; }

/* Featured news (.une). */
.featured-news__link { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: color-mix(in srgb, var(--fb-color-tint) 50%, #fff); border-radius: var(--fb-radius); color: inherit; text-decoration: none; }
.featured-news__link:hover { color: inherit; }
.featured-news__media { position: relative; margin: 0; }
.featured-news__media img { width: 100%; aspect-ratio: 3 / 1.6; object-fit: cover; border-radius: var(--fb-radius); }
.featured-news__title { margin: 0 0 1rem; font-size: var(--fb-h2); line-height: 1.12; }
.featured-news__info { margin: 1rem 0 1em; padding: 1rem 0; border-block: 1px solid var(--fb-color-line); font-size: 0.92rem; }
.featured-news__link:hover .link-more .arrow { translate: 4px 0; }
@media (max-width: 1000px) { .featured-news__link { grid-template-columns: 1fr; } }

/* News filters and grid (.filtres--seuls, .actus--grille). */
.news-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 2rem; }
.news-filters[hidden] { display: none; }
.news-filters .chip { height: auto; padding: 0.5em 0.95em; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.news-card { height: 100%; }
.news-card[hidden] { display: none; }
.news-card__link { display: block; height: 100%; padding: 0.6rem 0.6rem 1.25rem; background: #fff; border-radius: var(--fb-radius); color: inherit; text-decoration: none; }
.news-card__link:hover { color: inherit; }
.news-card__media { margin: 0; overflow: hidden; border-radius: 7px; background: var(--fb-color-tint); }
.news-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale 500ms var(--fb-ease-out); }
.news-card__media:empty { aspect-ratio: 16 / 10; }
.news-card__link:hover .news-card__media img { scale: 1.04; }
.news-card__body { padding: 1.1rem 0.6rem 0; }
.news-card__title { margin: 0.2rem 0 0.5rem; font-size: var(--fb-h3); line-height: 1.3; letter-spacing: 0; overflow-wrap: break-word; }
.section--white .news-card__link { background: var(--fb-color-tint); }
@media (max-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .news-grid { grid-template-columns: 1fr; } }

/* News detail (.detail-entete--actu, .detail-visuel). */
.site-main:has(> .news) { padding-block: 0; }
.news-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.news-hero__text { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.news-hero__text > * { max-width: 56rem; }
.news-hero .news-meta { margin-bottom: 1rem; }
.news-hero__title { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; overflow-wrap: break-word; }
.news-hero__lead { margin: 1.25rem 0 0; font-size: var(--fb-lead); line-height: 1.5; color: var(--fb-color-accent-dark); text-wrap: pretty; }
.news-visual { margin: 0; overflow: hidden; border-radius: var(--fb-radius); }
.news-visual img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 520px) { .news-visual img { aspect-ratio: 2 / 1; } }
.news-hero + .news-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.event-facts__title { margin: 0; font: 400 1.15rem/1.3 var(--fb-font-heading); color: var(--fb-color-ink); }
.registration-status { margin: 0; padding: 0.85em 1.4em; border: 1.5px solid var(--fb-color-line-strong); border-radius: var(--fb-radius-button); color: var(--fb-color-muted); text-align: center; font-size: 0.95rem; }

/* Programme: see assets/css/blocks.css (also loaded in the editor). */
/* Speakers (.intervenants). */
.speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.speaker { display: flex; gap: 1rem; padding: 1.25rem; background: #fff; border-radius: var(--fb-radius); }
.speaker__initials,
.speaker__portrait { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.speaker__initials { display: grid; place-items: center; background: #dde9da; color: #365c42; font: 400 1.1rem/1 var(--fb-font-heading); }
.speaker__name { margin: 0; font: 400 1.02rem/1.3 var(--fb-font-heading); letter-spacing: 0; }
.speaker__institution { margin: 0.15rem 0 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--fb-color-accent-dark); }
.speaker__bio { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--fb-color-text); }

/* Call-to-action band (.appel--bandeau). */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: center; }
.cta-band__title { max-width: 20ch; margin: 0 0 0.8rem; font-size: var(--fb-h2); line-height: 1.12; }
.cta-band__text p { max-width: 38rem; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 1000px) { .cta-band { grid-template-columns: 1fr; } }

/* ========== Homepage (phase 10; reference: accueil.html) ========== */
/* Hero: photo, overlay, triangle mosaic (.hero, .mosaique). */
.hero { position: relative; display: flex; align-items: center; min-height: min(88vh, 780px); overflow: hidden; background: #1e3527; }
.hero__image { position: absolute; inset: 0; margin: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 30 20 / 0.82) 0%, rgb(15 30 20 / 0.45) 45%, transparent 70%), linear-gradient(0deg, rgb(15 30 20 / 0.55), transparent 45%); }
.mosaic { pointer-events: none; }
.hero__mosaic { position: absolute; right: 0; bottom: 0; z-index: 1; width: 56%; height: 78%; }
.hero__mosaic polygon { transform-box: fill-box; transform-origin: center; animation: fb-triangle 900ms var(--fb-ease-out) backwards; }
.hero__mosaic polygon:nth-child(3n) { animation-delay: 120ms; }
.hero__mosaic polygon:nth-child(3n+1) { animation-delay: 260ms; }
.hero__mosaic polygon:nth-child(5n) { animation-delay: 400ms; }
@keyframes fb-triangle { from { opacity: 0; scale: 0.6; } }
.hero__text { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); color: #fff; }
.hero__title { max-width: 14ch; margin: 0; font-size: var(--fb-h1); line-height: 1.04; color: #fff; }
.hero__lead { max-width: 34rem; margin: 1.1rem 0 0; font-size: var(--fb-lead); line-height: 1.5; letter-spacing: 0.04em; color: rgb(255 255 255 / 0.88); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
@media (max-width: 1000px) { .hero__mosaic { width: 100%; height: 55%; -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.35) 30%, #000 75%); mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.35) 30%, #000 75%); } }
@media (max-width: 520px) { .hero { min-height: 86vh; } }
@media (prefers-reduced-motion: reduce) { .hero__mosaic polygon { animation: none; } }

/* Mission and logo tiles (.mission, .inst-tuile). */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.mission__text p { margin: 0 0 1.1em; font: 400 clamp(1.1rem, 1.5vw, 1.3rem)/1.6 var(--fb-font-heading); color: var(--fb-color-ink); }
.mission__text .link-more { margin-top: 0.5rem; text-decoration: none; }
.mission__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.mission__logos li { grid-column: span 2; }
.mission__logos li:nth-child(4) { grid-column: 2 / span 2; }
.logo-tile { display: grid; place-items: center; height: 100%; aspect-ratio: 3 / 2; padding: 1.25rem; background: #fff; border-radius: var(--fb-radius); transition: box-shadow 200ms var(--fb-ease-out), translate 200ms var(--fb-ease-out); }
a.logo-tile:hover { translate: 0 -3px; box-shadow: 0 16px 30px -20px rgb(30 53 39 / 0.45); }
.logo-tile img { width: auto; height: auto; max-width: 100%; max-height: 3rem; object-fit: contain; }
@media (max-width: 1000px) { .mission { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mission__logos { gap: 0.5rem; } .logo-tile { padding: 0.7rem; } .logo-tile img { max-height: 2rem; } }

/* Large heading with lead (.titraille). */
.heading-block { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.heading-block__title { margin: 0; font-size: var(--fb-h2); line-height: 1.12; }
.heading-block__lead p { margin: 1.1rem 0 0; font-size: var(--fb-lead); line-height: 1.5; color: var(--fb-color-text); text-wrap: pretty; }

/* Call teaser (.appel--encart with .mosaique--petite). */
.section--white + .section--call-teaser.section--white { padding-top: 0; }
.call-teaser { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: center; padding: clamp(2rem, 4vw, 3.25rem); overflow: hidden; background: var(--fb-color-tint); border-radius: var(--fb-radius); }
.call-teaser__mosaic { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; width: 55%; height: 100%; opacity: 0.55; -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); }
.call-teaser > :not(.mosaic) { position: relative; z-index: 1; }
.call-teaser__title { margin: 0 0 0.8rem; font-size: var(--fb-h2); line-height: 1.12; }
.call-teaser__text p { max-width: 38rem; margin: 0; }
.call-teaser__text .call-status { margin-top: 1.25rem; }
.call-teaser__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
@media (max-width: 1000px) { .call-teaser { grid-template-columns: 1fr; } .call-teaser__mosaic { width: 80%; opacity: 0.4; } }

/* Testimonials (.temoignages, .diapo-citation). */
.testimonials { max-width: 56rem; margin-inline: auto; text-align: center; }
.testimonials__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonials__track:focus-visible { outline-offset: 6px; }
.testimonial { margin: 0; padding-inline: clamp(0rem, 3vw, 2rem); scroll-snap-align: start; }
.testimonial blockquote { margin: 0 0 2rem; }
.testimonial blockquote p { margin: 0; font: 500 clamp(1.45rem, 2.7vw, 2.25rem)/1.35 var(--fb-font-heading); letter-spacing: -0.015em; color: var(--fb-color-ink); text-wrap: balance; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 0.9rem; text-align: left; font-size: 0.92rem; color: var(--fb-color-muted); }
.testimonial figcaption strong { display: block; color: var(--fb-color-ink); }
.testimonial__portrait { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.testimonial__initials { display: grid; place-items: center; background: #dde9da; color: #365c42; font: 400 1.1rem/1 var(--fb-font-heading); }
.testimonials__controls { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }
.testimonials__controls[hidden] { display: none; }
.testimonials__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--fb-color-line-strong); border-radius: 50%; background: transparent; color: var(--fb-color-ink); cursor: pointer; transition: background-color 150ms var(--fb-ease-out), color 150ms var(--fb-ease-out); }
.testimonials__arrow svg { width: 1rem; height: 1rem; }
.testimonials__arrow:hover { background: var(--fb-color-ink); color: var(--fb-color-bg); }
.testimonials__dots { display: flex; gap: 0.5rem; }
.testimonials__dots button { width: 0.6rem; height: 0.6rem; padding: 0; border: 0; border-radius: 50%; background: var(--fb-color-line-strong); cursor: pointer; transition: background-color 150ms, width 200ms var(--fb-ease-out); }
.testimonials__dots button[aria-current] { width: 1.6rem; border-radius: 99px; background: var(--fb-color-accent); }

/* Annual report feature (.texte--rapport, .texte__img--couverture). */
.report-feature { display: grid; grid-template-columns: minmax(0, 22rem) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.report-feature__cover { margin: 0; }
.report-feature__cover img { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.5); }
.report-feature__title { max-width: 46rem; margin: 0; font-size: var(--fb-h2); line-height: 1.12; }
.report-feature__lead { max-width: 46rem; margin: 1.1rem 0 0; font-size: var(--fb-lead); line-height: 1.5; color: var(--fb-color-text); }
.report-feature__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
@media (max-width: 1000px) { .report-feature { grid-template-columns: 1fr; } .report-feature__cover { max-width: 16rem; } }

/* ========== Reveal on scroll (see assets/js/reveal.js) ========== */
:root { --reveal-duration: 600ms; --reveal-distance: 16px; --reveal-step: 70ms; }
.has-reveal .reveal:not(.is-revealed) { opacity: 0; }
.has-reveal .reveal.is-revealed { animation: fb-reveal var(--reveal-duration) var(--fb-ease-out) backwards; animation-delay: calc(var(--reveal-rank, 0) * var(--reveal-step)); }
.has-reveal .reveal--image.is-revealed { animation-name: fb-reveal-image; }
@keyframes fb-reveal { from { opacity: 0; translate: 0 var(--reveal-distance); } }
@keyframes fb-reveal-image { from { opacity: 0; scale: 1.04; } }
@media print { .has-reveal .reveal { opacity: 1 !important; animation: none !important; } }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
