/* ==========================================================================
   Holding France — Fondations
   Jetons de design, surfaces, typographie, boutons, composants partagés.
   Chargé sur le site ET dans l'éditeur de blocs (iframe).
   Convention : préfixe « hf- », BEM (hf-bloc__element--modificateur).
   ========================================================================== */

/* ---------- Polices auto-hébergées (licence SIL OFL) ---------- */
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-roman.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-variable-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
	/* Couleurs de marque (relevées sur le logo) */
	--hf-navy-950: #021431;
	--hf-navy-900: #04204F;
	--hf-navy-800: #0A2C63;
	--hf-navy-700: #143A78;
	--hf-blue: #0359F7;
	--hf-blue-700: #0247C7;
	--hf-blue-300: #7FA6FF;
	--hf-blue-50: #EDF2FE;
	--hf-red: #FC2C31;
	--hf-red-700: #D9161C;

	/* Neutres */
	--hf-white: #FFFFFF;
	--hf-ivory: #F5F3EE;
	--hf-sand: #E9E5DC;
	--hf-ink: #0B1733;
	--hf-ink-2: #2B3651;
	--hf-slate: #5E677C;
	--hf-line: rgba(4, 32, 79, 0.12);
	--hf-line-strong: rgba(4, 32, 79, 0.24);

	/* Typographie */
	--hf-font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--hf-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hf-fs-display: clamp(2.75rem, 1.35rem + 4.7vw, 6rem);
	--hf-fs-h1: clamp(2.5rem, 1.55rem + 3.3vw, 4.5rem);
	--hf-fs-h2: clamp(2rem, 1.4rem + 2.1vw, 3.25rem);
	--hf-fs-h3: clamp(1.375rem, 1.2rem + 0.55vw, 1.75rem);
	--hf-fs-h4: 1.125rem;
	--hf-fs-lead: clamp(1.125rem, 1.04rem + 0.35vw, 1.375rem);
	--hf-fs-body: 1.0625rem;
	--hf-fs-small: 0.875rem;
	--hf-fs-xs: 0.8125rem;
	--hf-fs-eyebrow: 0.75rem;

	/* Mise en page */
	--hf-container: 1320px;
	--hf-container-narrow: 820px;
	--hf-gutter: clamp(20px, 5vw, 64px);
	--hf-section-y: clamp(80px, 9vw, 152px);
	--hf-section-y-compact: clamp(56px, 6vw, 96px);
	--hf-header-h: 88px;
	--hf-radius: 2px;
	--hf-radius-lg: 4px;

	/* Mouvement & profondeur */
	--hf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--hf-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--hf-dur: 0.45s;
	--hf-shadow-sm: 0 1px 2px rgba(2, 20, 49, 0.06);
	--hf-shadow: 0 1px 2px rgba(2, 20, 49, 0.05), 0 18px 40px -18px rgba(2, 20, 49, 0.22);
	--hf-shadow-lg: 0 2px 4px rgba(2, 20, 49, 0.04), 0 32px 64px -24px rgba(2, 20, 49, 0.32);

	/* Traitement photographique unique du site (toutes les photos, tous les blocs) :
	   img { filter: var(--hf-photo-filter) } + calque ::after { background: var(--hf-photo-wash); mix-blend-mode: color }
	   + dégradé de lisibilité propre au contexte si du texte est posé dessus. */
	--hf-photo-filter: saturate(0.5) contrast(1.06) brightness(0.97);
	--hf-photo-wash: rgba(4, 32, 79, 0.42);

	/* Filet tricolore (signature du logo) */
	--hf-tricolor: linear-gradient(90deg, var(--hf-blue) 0 33.333%, var(--hf-tricolor-mid) 33.333% 66.666%, var(--hf-red) 66.666% 100%);
}

/* ---------- Surfaces ----------
   Chaque section porte une surface ; les composants lisent ces variables
   et s'adaptent automatiquement aux fonds clairs et sombres. */
:root,
.hf-surface--white {
	--hf-bg: var(--hf-white);
	--hf-fg: var(--hf-ink);
	--hf-fg-2: var(--hf-ink-2);
	--hf-fg-muted: var(--hf-slate);
	--hf-border: var(--hf-line);
	--hf-border-strong: var(--hf-line-strong);
	--hf-accent: var(--hf-blue);
	--hf-card: var(--hf-ivory);
	--hf-card-hover: var(--hf-sand);
	--hf-tricolor-mid: #D2D8E4;
}
.hf-surface--ivory {
	--hf-bg: var(--hf-ivory);
	--hf-fg: var(--hf-ink);
	--hf-fg-2: var(--hf-ink-2);
	--hf-fg-muted: var(--hf-slate);
	--hf-border: rgba(4, 32, 79, 0.13);
	--hf-border-strong: rgba(4, 32, 79, 0.26);
	--hf-accent: var(--hf-blue);
	--hf-card: var(--hf-white);
	--hf-card-hover: var(--hf-white);
	--hf-tricolor-mid: #CDD3DF;
}
.hf-surface--navy,
.hf-surface--deep {
	--hf-bg: var(--hf-navy-900);
	--hf-fg: var(--hf-white);
	--hf-fg-2: rgba(255, 255, 255, 0.8);
	--hf-fg-muted: rgba(255, 255, 255, 0.6);
	--hf-border: rgba(255, 255, 255, 0.14);
	--hf-border-strong: rgba(255, 255, 255, 0.32);
	--hf-accent: var(--hf-blue-300);
	--hf-card: rgba(255, 255, 255, 0.04);
	--hf-card-hover: rgba(255, 255, 255, 0.08);
	--hf-tricolor-mid: var(--hf-white);
}
.hf-surface--deep {
	--hf-bg: var(--hf-navy-950);
}
[class*="hf-surface--"] {
	/* Redéclaré ici pour que le segment central suive la surface (blanc sur fond sombre). */
	--hf-tricolor: linear-gradient(90deg, var(--hf-blue) 0 33.333%, var(--hf-tricolor-mid) 33.333% 66.666%, var(--hf-red) 66.666% 100%);
	background-color: var(--hf-bg);
	color: var(--hf-fg-2);
}

/* ---------- Base ---------- */
:where(body:not(.wp-admin)),
:where(body:not(.wp-admin)) *,
:where(body:not(.wp-admin)) *::before,
:where(body:not(.wp-admin)) *::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
/* Règles globales limitées au site et au canevas de l'éditeur : l'interface de WordPress
   (document parent de l'éditeur, body.wp-admin) n'est jamais restylée. */
:where(body:not(.wp-admin)) {
	margin: 0;
	font-family: var(--hf-font-sans);
	font-size: var(--hf-fs-body);
	font-weight: 400;
	line-height: 1.7;
	color: var(--hf-fg-2);
	background-color: var(--hf-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga", "calt";
}
:where(body:not(.wp-admin)) :where(img, video) {
	max-width: 100%;
	height: auto;
}
:where(body:not(.wp-admin)) :where(svg) {
	max-width: 100%;
}
:where(body:not(.wp-admin)) :where(a) {
	color: inherit;
}
:where(body:not(.wp-admin)) :focus-visible {
	outline: 2px solid var(--hf-accent);
	outline-offset: 3px;
}
:where(body:not(.wp-admin)) ::selection {
	background: var(--hf-navy-900);
	color: var(--hf-white);
}

/* ---------- Typographie ---------- */
.hf-display,
.hf-h1,
.hf-h2,
.hf-h3 {
	margin: 0;
	font-family: var(--hf-font-serif);
	font-weight: 400;
	font-optical-sizing: auto;
	color: var(--hf-fg);
	text-wrap: balance;
}
.hf-display {
	font-size: var(--hf-fs-display);
	line-height: 1.02;
	letter-spacing: -0.028em;
}
.hf-h1 {
	font-size: var(--hf-fs-h1);
	line-height: 1.05;
	letter-spacing: -0.022em;
}
.hf-h2 {
	font-size: var(--hf-fs-h2);
	line-height: 1.1;
	letter-spacing: -0.018em;
}
.hf-h3 {
	font-size: var(--hf-fs-h3);
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.hf-h4 {
	margin: 0;
	font-family: var(--hf-font-sans);
	font-size: var(--hf-fs-h4);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: var(--hf-fg);
}
:is(.hf-display, .hf-h1, .hf-h2, .hf-h3) :is(em, i) {
	font-style: italic;
	color: var(--hf-accent);
}
.hf-lead {
	margin: 0;
	font-size: var(--hf-fs-lead);
	line-height: 1.6;
	color: var(--hf-fg-2);
	text-wrap: pretty;
}
.hf-text {
	margin: 0;
	color: var(--hf-fg-2);
	text-wrap: pretty;
}
.hf-small {
	font-size: var(--hf-fs-small);
}
.hf-muted {
	color: var(--hf-fg-muted);
}

/* Surtitre : filet tricolore + capitales espacées (repris du logo) */
.hf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	margin: 0;
	font-family: var(--hf-font-sans);
	font-size: var(--hf-fs-eyebrow);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hf-fg);
}
.hf-eyebrow::before {
	content: "";
	flex: none;
	width: 36px;
	height: 2px;
	background: var(--hf-tricolor);
}
.hf-eyebrow--plain::before {
	display: none;
}
.hf-eyebrow__num {
	font-variant-numeric: tabular-nums;
	color: var(--hf-fg-muted);
	letter-spacing: 0.08em;
}

/* Filet tricolore autonome */
.hf-tricolor {
	display: block;
	width: var(--hf-tricolor-w, 72px);
	height: var(--hf-tricolor-h, 3px);
	background: var(--hf-tricolor);
	border: 0;
	margin: 0;
}

/* ---------- Mise en page ---------- */
.hf-container {
	width: min(100% - 2 * var(--hf-gutter), var(--hf-container));
	margin-inline: auto;
}
.hf-container--narrow {
	width: min(100% - 2 * var(--hf-gutter), var(--hf-container-narrow));
}
.hf-section-pad {
	padding-block: var(--hf-section-y);
}
.hf-section-pad--compact {
	padding-block: var(--hf-section-y-compact);
}

/* En-tête de section : surtitre + titre + introduction */
.hf-head {
	display: grid;
	gap: 1.375rem;
	align-content: start;
}
.hf-head__title {
	max-width: 22ch;
}
.hf-head__intro {
	max-width: 62ch;
}
.hf-head--center {
	justify-items: center;
	text-align: center;
	margin-inline: auto;
}
.hf-head--center .hf-head__title,
.hf-head--center .hf-head__intro {
	margin-inline: auto;
}
.hf-head--split {
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	align-items: end;
	column-gap: clamp(32px, 6vw, 112px);
}
.hf-head--split > .hf-eyebrow {
	grid-column: 1 / -1;
}
@media (max-width: 900px) {
	.hf-head--split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Boutons ---------- */
.hf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 52px;
	padding: 0.875rem 1.5rem;
	font-family: var(--hf-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.005em;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--hf-radius);
	cursor: pointer;
	transition: background-color var(--hf-dur) var(--hf-ease), color var(--hf-dur) var(--hf-ease), border-color var(--hf-dur) var(--hf-ease), transform var(--hf-dur) var(--hf-ease);
}
.hf-btn .hf-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--hf-dur) var(--hf-ease);
}
.hf-btn:hover .hf-icon {
	transform: translateX(3px);
}
.hf-btn:hover .hf-icon[class*="arrow-up"],
.hf-btn[target="_blank"]:hover .hf-icon {
	transform: translate(2px, -2px);
}
/* Primaire : bleu nuit sur fond clair, blanc sur fond sombre */
.hf-btn--primary {
	background-color: var(--hf-navy-900);
	color: var(--hf-white);
}
.hf-btn--primary:hover {
	background-color: var(--hf-blue);
	color: var(--hf-white);
}
:is(.hf-surface--navy, .hf-surface--deep) .hf-btn--primary,
.hf-btn--light {
	background-color: var(--hf-white);
	color: var(--hf-navy-900);
}
:is(.hf-surface--navy, .hf-surface--deep) .hf-btn--primary:hover,
.hf-btn--light:hover {
	background-color: var(--hf-blue);
	color: var(--hf-white);
}
/* Contour */
.hf-btn--outline {
	background-color: transparent;
	color: var(--hf-fg);
	border-color: var(--hf-border-strong);
}
.hf-btn--outline:hover {
	border-color: var(--hf-fg);
	color: var(--hf-fg);
}
.hf-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

/* Lien fléché */
.hf-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding-bottom: 0.3rem;
	font-family: var(--hf-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hf-fg);
	text-decoration: none;
	border-bottom: 1px solid var(--hf-border-strong);
	transition: border-color var(--hf-dur) var(--hf-ease), color var(--hf-dur) var(--hf-ease);
}
.hf-link:hover {
	border-bottom-color: currentColor;
}
.hf-link .hf-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--hf-dur) var(--hf-ease);
}
.hf-link:hover .hf-icon {
	transform: translateX(4px);
}
.hf-link[target="_blank"]:hover .hf-icon {
	transform: translate(2px, -2px);
}

/* ---------- Composants partagés ---------- */
.hf-icon {
	display: inline-block;
	flex: none;
	width: 24px;
	height: 24px;
	vertical-align: middle;
}

/* Pastille d'icône */
.hf-icon-box {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--hf-border);
	border-radius: var(--hf-radius);
	color: var(--hf-accent);
	background: transparent;
}
.hf-icon-box .hf-icon {
	width: 26px;
	height: 26px;
}

/* Étiquettes (HTA, HTB, BT…) */
.hf-tag {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0.2rem 0.625rem;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hf-fg);
	border: 1px solid var(--hf-border-strong);
	border-radius: var(--hf-radius);
}
.hf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Statut « Prochainement » */
.hf-soon {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hf-fg);
}
.hf-soon::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hf-red);
	box-shadow: 0 0 0 0 rgba(252, 44, 49, 0.5);
	animation: hf-pulse 2.4s var(--hf-ease) infinite;
}
@keyframes hf-pulse {
	0% { box-shadow: 0 0 0 0 rgba(252, 44, 49, 0.45); }
	70% { box-shadow: 0 0 0 8px rgba(252, 44, 49, 0); }
	100% { box-shadow: 0 0 0 0 rgba(252, 44, 49, 0); }
}

/* Médias */
.hf-media {
	position: relative;
	overflow: hidden;
	margin: 0;
	background-color: var(--hf-navy-900);
}
.hf-media > img,
.hf-media > video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Traitement unique : désaturation + lavis bleu nuit (harmonise des photos d'origines différentes) */
.hf-media--tint > img {
	filter: var(--hf-photo-filter);
}
.hf-media--tint::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hf-photo-wash);
	mix-blend-mode: color;
	pointer-events: none;
}
.hf-caption {
	margin-top: 0.75rem;
	font-size: var(--hf-fs-xs);
	color: var(--hf-fg-muted);
}

/* Filets */
.hf-rule {
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--hf-border);
}

/* ---------- Contenu libre (blocs natifs) ----------
   S'applique aux enfants directs de .hf-prose (corps de section, lettre, fiche société)
   et aux blocs natifs posés directement dans la page (.hf-entry). */
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :where(p, ul, ol, h2, h3, h4, h5, h6, blockquote, figure, table, .wp-block-table, .wp-block-buttons, .wp-block-image, .wp-block-quote, .wp-block-pullquote, .wp-block-columns, .wp-block-group, .wp-block-details, .wp-block-separator, .wp-block-embed, .wp-block-file, .wp-block-gallery, .wp-block-video) {
	margin-block: 0;
}
.hf-prose > * + * {
	margin-top: 1.25em;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(h2, h3, h4) {
	font-family: var(--hf-font-serif);
	font-weight: 400;
	color: var(--hf-fg);
	text-wrap: balance;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > h2 {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > h3 {
	font-size: var(--hf-fs-h3);
	line-height: 1.25;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > h4 {
	font-family: var(--hf-font-sans);
	font-size: var(--hf-fs-h4);
	font-weight: 600;
}
.hf-prose > :is(h2, h3, h4) {
	margin-top: 1.9em;
}
.hf-prose > :is(h2, h3, h4):first-child {
	margin-top: 0;
}
.hf-prose > :is(h2, h3, h4) + * {
	margin-top: 0.75em;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > p {
	text-wrap: pretty;
}
/* Mesure de lecture : ~70 signes par ligne au plus pour le texte courant */
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(p, ul, ol, blockquote, .wp-block-quote) {
	max-width: 70ch;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > p > a,
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(ul, ol) > li > a,
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > table a,
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-table a {
	color: var(--hf-fg);
	text-decoration: underline;
	text-decoration-color: var(--hf-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color var(--hf-dur) var(--hf-ease);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > p > a:hover,
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(ul, ol) > li > a:hover {
	color: var(--hf-accent);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(p, ul, ol) strong {
	font-weight: 600;
	color: var(--hf-fg);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ul {
	padding: 0;
	list-style: none;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ul > li {
	position: relative;
	padding-left: 1.75rem;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ul > li + li,
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ol > li + li {
	margin-top: 0.5em;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.82em;
	width: 14px;
	height: 0;
	border-top: 1px solid var(--hf-accent);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ol {
	padding-left: 1.5rem;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > ol > li::marker {
	font-variant-numeric: tabular-nums;
	color: var(--hf-fg-muted);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(blockquote, .wp-block-quote) {
	padding-left: 1.5rem;
	border-left: 2px solid var(--hf-accent);
	font-family: var(--hf-font-serif);
	font-size: 1.375rem;
	line-height: 1.5;
	color: var(--hf-fg);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(blockquote, .wp-block-quote) cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--hf-font-sans);
	font-size: var(--hf-fs-small);
	font-style: normal;
	color: var(--hf-fg-muted);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-pullquote {
	padding: 2.5rem 0;
	border-block: 1px solid var(--hf-border);
	text-align: left;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-pullquote blockquote p {
	font-family: var(--hf-font-serif);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
	line-height: 1.35;
	color: var(--hf-fg);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(.wp-block-separator, hr) {
	height: 1px;
	margin-block: 2.5rem;
	border: 0;
	background: var(--hf-border);
	opacity: 1;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(figure, .wp-block-image) img {
	display: block;
	border-radius: var(--hf-radius);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-table, .wp-block-embed, .wp-block-video) figcaption {
	margin-top: 0.75rem;
	font-size: var(--hf-fs-xs);
	color: var(--hf-fg-muted);
	text-align: left;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--hf-fs-small);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) :is(th, td) {
	padding: 0.875rem 1rem 0.875rem 0;
	border-bottom: 1px solid var(--hf-border);
	text-align: left;
	vertical-align: top;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) th {
	font-weight: 600;
	color: var(--hf-fg);
}
/* Boutons natifs harmonisés avec .hf-btn */
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0.875rem 1.5rem;
	font-family: var(--hf-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--hf-white);
	background-color: var(--hf-navy-900);
	border: 1px solid transparent;
	border-radius: var(--hf-radius);
	transition: background-color var(--hf-dur) var(--hf-ease), border-color var(--hf-dur) var(--hf-ease), color var(--hf-dur) var(--hf-ease);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-button__link:hover {
	background-color: var(--hf-blue);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .is-style-outline > .wp-block-button__link {
	color: var(--hf-fg);
	background-color: transparent;
	border-color: var(--hf-border-strong);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .is-style-outline > .wp-block-button__link:hover {
	border-color: var(--hf-fg);
}
:is(.hf-surface--navy, .hf-surface--deep) :is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	color: var(--hf-navy-900);
	background-color: var(--hf-white);
}
@media (max-width: 640px) {
	:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-buttons > .wp-block-button {
		width: 100%;
	}
	:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-button__link {
		justify-content: space-between;
		width: 100%;
	}
	:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) .wp-block-button__link::after {
		content: "→";
		margin-left: 1rem;
		font-weight: 400;
	}
}
/* Accordéon natif (FAQ) */
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-details {
	border-top: 1px solid var(--hf-border);
	border-bottom: 1px solid var(--hf-border);
	padding-block: 1.25rem;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-details + .wp-block-details {
	margin-top: -1px;
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--hf-fg);
}
:is(.hf-prose, .hf-entry, :where(.editor-styles-wrapper) .is-root-container) > .wp-block-details > :not(summary) {
	margin-top: 0.75rem;
}

/* ---------- Contenu de page ----------
   Les blocs Holding France (.hf-block) occupent toute la largeur ;
   les blocs natifs posés entre deux sections sont centrés en colonne de lecture. */
.hf-entry > :not(.hf-block) {
	/* Colonne de lecture alignée sur le bord gauche du conteneur (comme les en-têtes de page) */
	width: min(100% - 2 * var(--hf-gutter), var(--hf-container-narrow));
	margin-left: max(var(--hf-gutter), calc((100% - var(--hf-container)) / 2));
	margin-right: auto;
}
.hf-entry > :is(.alignwide, .wp-block-columns, .wp-block-gallery, .wp-block-table) {
	width: min(100% - 2 * var(--hf-gutter), var(--hf-container));
}
.hf-entry > :not(.hf-block) + :not(.hf-block) {
	margin-top: 1.25em;
}
.hf-entry > .hf-block + :not(.hf-block),
.hf-entry > :not(.hf-block):first-child,
.hf-entry > :not(.hf-block) + .hf-block {
	margin-top: var(--hf-section-y);
}
.hf-entry > :not(.hf-block):last-child {
	margin-bottom: var(--hf-section-y);
}

/* ---------- Apparition au défilement ----------
   Actif uniquement si JavaScript est disponible (classe hf-js posée par le thème).
   L'éditeur n'a pas cette classe : tout reste visible pendant l'édition. */
html.hf-js [data-hf-reveal] {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition: opacity 0.9s var(--hf-ease), transform 0.9s var(--hf-ease);
	transition-delay: calc(var(--hf-reveal-i, 0) * 80ms);
}
html.hf-js [data-hf-reveal].is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html.hf-js [data-hf-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.hf-soon::before {
		animation: none;
	}
}

/* ---------- Accessibilité ---------- */
.screen-reader-text,
.hf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
:where(body:not(.wp-admin)) .screen-reader-text:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	font-weight: 600;
	color: var(--hf-white);
	background: var(--hf-navy-900);
}
