/*
Theme Name: FlowMétier
Theme URI: https://flowmetier.com
Description: Thème enfant de Kadence pour FlowMétier : jetons de la charte, polices locales, composants et gabarits du site.
Author: FlowMétier
Template: kadence
Version: 0.16.1
Text Domain: flowmetier-child
*/

/* ==========================================================================
   1. Polices (hébergées ici, aucune requête vers Google)
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 75% 112%;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("fonts/plex-mono-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("fonts/plex-mono-500-latin.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* Police de secours : Arial recalée sur Archivo (valeurs lues dans le fichier de police :
   ascent 87,8 %, descent 21 %). À affiner par mesure du décalage de mise en page après lancement. */
@font-face {
	font-family: "Archivo Fallback";
	src: local("Arial"), local("Helvetica"), local("Liberation Sans");
	size-adjust: 100%;
	ascent-override: 88%;
	descent-override: 21%;
	line-gap-override: 0%;
}

/* ==========================================================================
   2. Jetons de la charte (voir docs/charte et tokens.json)
   ========================================================================== */

:root {
	--fm-sans: "Archivo", "Archivo Fallback", Arial, system-ui, sans-serif;
	--fm-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	/* Symboles d'état (✓ ▲ ◇ ×) : absents du sous-ensemble de police, donc pile dédiée. */
	--fm-symbols: "IBM Plex Mono", "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", ui-monospace, monospace;

	--fm-surface: #F5F6F2;
	--fm-surface-lit: #FBFCF9;
	--fm-surface-shade: #ECEEE8;
	--fm-surface-raised: #FFFFFF;
	--fm-surface-dense: #E6E9E2;
	--fm-rule: #DDE1D9;

	--fm-ink: #14211C;
	--fm-text: #27342E;
	--fm-text-muted: #4A5650;
	--fm-text-subtle: #5A645E;

	--fm-action: #0B6B4C;
	--fm-action-hover: #08513A;
	--fm-on-action: #FFFFFF;
	--fm-link: #0B6B4C;
	--fm-focus: #14211C;

	--fm-copper: #9C4520;
	--fm-lamp: #F2B33D;
	--fm-field-border: #7A847E;

	--fm-success: #0B6B4C;
	--fm-success-soft: #E4F1EA;
	--fm-warning: #8A5300;
	--fm-warning-soft: #FBF0D9;
	--fm-error: #B42318;
	--fm-error-soft: #FBEAE7;
	--fm-info: #2F5D8A;
	--fm-info-soft: #E8EEF5;

	--fm-space-4: 4px;
	--fm-space-8: 8px;
	--fm-space-12: 12px;
	--fm-space-16: 16px;
	--fm-space-24: 24px;
	--fm-space-32: 32px;
	--fm-space-48: 48px;
	--fm-space-64: 64px;
	--fm-space-96: 96px;
	--fm-space-128: 128px;

	--fm-radius-chip: 2px;
	--fm-radius-card: 4px;

	--fm-shadow-1: 0 1px 0 rgba(20, 33, 28, 0.06), 1px 2px 3px rgba(20, 33, 28, 0.06);
	--fm-shadow-2: 0 1px 0 rgba(20, 33, 28, 0.05), 4px 14px 28px -14px rgba(20, 33, 28, 0.28);
	--fm-shadow-tag: 1px 2px 0 rgba(20, 33, 28, 0.08), 3px 6px 12px -6px rgba(20, 33, 28, 0.25);

	--fm-measure: 58ch;
	--fm-control-height: 52px;

	--fm-dur-micro: 140ms;
	--fm-dur-small: 200ms;
	--fm-dur-reveal: 480ms;
	--fm-dur-lamp: 2400ms;
	--fm-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
	--fm-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

	/* Échelle typographique : huit crans, et rien d'autre (revue du 14 nov. 2026, 2.1). Les champs de formulaire restent à 17 (jamais sous 16 : zoom d'iOS). */
	--fm-fs-meta: 13px;     /* minimum de la charte pour un texte informatif */
	--fm-fs-small: 15px;
	--fm-fs-body: 17px;
	--fm-fs-h3: 20px;
	--fm-fs-h2s: 26px;      /* H2 secondaire, titres de colonne */
	--fm-fs-h2: 40px;       /* H2 de section */
	--fm-fs-h1: 56px;       /* H1 qui partage la ligne avec un visuel ou une fiche */
	--fm-fs-display: 68px;  /* H1 court sur une colonne pleine */
	/* Rayons : 2 et 4, la pilule (999px), et les bulles de conversation (2.6). */
	--fm-radius-bubble: 16px;
	/* Ombre portée vers le haut (barre d'action fixe en bas d'écran). */
	--fm-shadow-up: 0 -6px 16px -10px rgba(20, 33, 28, 0.3);

	--global-body-font-family: var(--fm-sans);
	--global-heading-font-family: var(--fm-sans);
}

/* Sections « nuit » (Offres, Journal des tests, pied de page). Les jetons s'inversent et la
   palette de Kadence suit : sans cela, le texte courant resterait sombre sur fond sombre. */
[data-theme="nuit"], .fm-night {
	--mx: 82%;
	--my: 18%;
	--fm-surface: #14211C;
	--fm-surface-lit: #1C2B25;
	--fm-surface-shade: #14211C;
	--fm-surface-raised: #1C2B25;
	--fm-surface-dense: #1C2B25;
	--fm-rule: #2E3D36;
	--fm-ink: #F4F2EC;
	--fm-text: #F4F2EC;
	--fm-text-muted: #A7B2AC;
	--fm-text-subtle: #A7B2AC;
	--fm-action: #F4F2EC;
	--fm-action-hover: #FFFFFF;
	--fm-on-action: #14211C;
	--fm-link: #5CC79A;
	--fm-focus: #F4F2EC;
	--fm-copper: #E0915F;

	--global-palette1: #F4F2EC;
	--global-palette2: #FFFFFF;
	--global-palette3: #F4F2EC;
	--global-palette4: #F4F2EC;
	--global-palette5: #A7B2AC;
	--global-palette6: #A7B2AC;
	--global-palette7: #1C2B25;
	--global-palette8: #14211C;
	--global-palette9: #1C2B25;

	background: radial-gradient(40% 55% at var(--mx) var(--my), rgba(242, 179, 61, calc(0.17 * var(--fm-glow, 1) * var(--fm-lamp-on, 1))), transparent 70%), var(--fm-surface);
	color: var(--fm-text);
	color-scheme: dark;
}

/* ==========================================================================
   3. Typographie de base
   ========================================================================== */

html { scroll-padding-top: 96px; scroll-padding-bottom: 96px; }

body {
	font-family: var(--fm-sans);
	font-size: var(--fm-fs-body);
	line-height: 1.6;
	color: var(--fm-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fm-sans);
	color: var(--fm-ink);
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: manual;
}

h1, h1.entry-title { font-size: var(--fm-fs-display); line-height: 1.02; font-weight: 640; letter-spacing: -0.025em; font-stretch: 112%; }
h2 { font-size: var(--fm-fs-h2); line-height: 1.08; font-weight: 620; letter-spacing: -0.02em; font-stretch: 110%; }
h3 { font-size: var(--fm-fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; font-stretch: 104%; }
h4 { font-size: var(--fm-fs-body); line-height: 1.4; font-weight: 600; font-stretch: 100%; }

/* H1 long de la page d'accueil (Décision 1) */
.fm-h1-long { font-size: var(--fm-fs-h1); }

@media (max-width: 1024px) {
	h1, h1.entry-title { font-size: var(--fm-fs-h1); }
	.fm-h1-long { font-size: var(--fm-fs-h2); }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	h1, h1.entry-title, .fm-h1-long { font-size: var(--fm-fs-h2); line-height: 1.06; }
	h2 { font-size: var(--fm-fs-h2s); }
	h3 { font-size: var(--fm-fs-h3); }
	h4 { font-size: var(--fm-fs-body); }
}

.entry-content > p,
.entry-content > ul > li,
.entry-content > ol > li { max-width: var(--fm-measure); }

.fm-lead { font-size: var(--fm-fs-h3); line-height: 1.5; color: var(--fm-text-muted); max-width: 34em; margin: 0; }
.fm-small { font-size: var(--fm-fs-small); line-height: 1.5; letter-spacing: 0.005em; }
.fm-muted { color: var(--fm-text-muted); }
.fm-mono { font-family: var(--fm-mono); }

@media (max-width: 1024px) { .fm-lead { font-size: var(--fm-fs-h3); } }
@media (max-width: 760px)  { .fm-lead { font-size: var(--fm-fs-body); } }

.fm-label {
	font-size: var(--fm-fs-meta);
	line-height: 1.2;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-stretch: 75%;
	color: var(--fm-text-subtle);
}

code, kbd, samp, .fm-data {
	font-family: var(--fm-mono);
	font-size: var(--fm-fs-meta);
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

/* Le cuivre ne s'emploie en texte qu'en Plex Mono 500, 12 px et plus. */
.fm-section-number {
	font-family: var(--fm-mono);
	font-size: var(--fm-fs-meta);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	color: var(--fm-copper);
}

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

/* ==========================================================================
   4. Liens et focus clavier
   ========================================================================== */

.entry-content :where(p, li, dd, td, blockquote, figcaption) a:where(:not(.wp-block-button__link, .kb-button, .fm-btn)) {
	color: var(--fm-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--fm-dur-micro) var(--fm-ease-out), text-decoration-thickness var(--fm-dur-micro) var(--fm-ease-out);
}
.entry-content :where(p, li, dd, td, blockquote, figcaption) a:where(:not(.wp-block-button__link, .kb-button, .fm-btn)):hover {
	color: var(--fm-action-hover);
	text-decoration-thickness: 2px;
}

:is(a, button, input, select, textarea, summary, audio, video, [tabindex]):focus-visible {
	outline: 2px solid var(--fm-focus);
	outline-offset: 3px;
}

/* ==========================================================================
   5. Mise en page : cadre, sections, marge de planche
   ========================================================================== */

#colophon { display: none; } /* le pied de page est celui de .fm-footer (inc/footer.php) */
.content-area.fm-area { margin: 0; }
.fm-area { overflow-x: clip; }

.fm-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
/* Rythme vertical. Deux sections voisines s'ajoutent : 64 + 64 = 128 px entre leurs contenus (desktop),
   48 + 48 (tablette), 40 + 40 (téléphone). Sections serrées : 48, 40, 32 de chaque côté. */
.fm-sec { padding-block: 64px; }
.fm-sec-tight { padding-block: 48px; }
@media (max-width: 1024px) {
	.fm-sec { padding-block: 48px; }
	.fm-sec-tight { padding-block: 40px; }
}
.fm-dense-bg { background: var(--fm-surface-dense); }

.fm-display {
	margin: 0;
	font-weight: 640;
	font-size: var(--fm-fs-h1);
	line-height: 1.02;
	font-stretch: 112%;
	letter-spacing: -0.025em;
	color: var(--fm-ink);
}

.fm-h4 { font-size: var(--fm-fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: 0; font-stretch: 100%; }
@media (max-width: 760px) { .fm-h4 { font-size: var(--fm-fs-body); } }

.fm-h2 {
	margin: 0;
	padding-top: 16px;
	border-top: 2px solid var(--fm-ink);
	max-width: 16em;
}

.fm-plate { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; }
.fm-margin { border-right: 1px solid color-mix(in srgb, var(--fm-copper) 40%, transparent); padding-right: 16px; align-self: start; }
.fm-margin .num { display: block; font: 500 var(--fm-fs-meta)/1 var(--fm-mono); letter-spacing: 0.04em; color: var(--fm-copper); margin-bottom: 8px; }
.fm-margin .lab { font-size: var(--fm-fs-meta); font-weight: 650; font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-text-subtle); }
.fm-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
@media (max-width: 760px) { .fm-sec-head { margin-bottom: 32px; } }

.fm-crumb { font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-subtle); margin-bottom: var(--fm-space-24); }
.fm-crumb a { color: var(--fm-text-subtle); }

.fm-page-head { padding-block: 48px 32px; background: radial-gradient(120% 90% at 10% 0%, var(--fm-surface-lit) 0%, var(--fm-surface) 55%, var(--fm-surface-shade) 100%); border-bottom: 1px solid var(--fm-rule); }
.fm-page-head + .fm-sec, .fm-page-head + .fm-sec-tight { padding-top: 32px; }
@media (max-width: 1024px) {
	.fm-page-head { padding-block: 40px 24px; }
	.fm-page-head + .fm-sec, .fm-page-head + .fm-sec-tight { padding-top: 24px; }
}
@media (max-width: 760px) { .fm-page-head + .fm-sec, .fm-page-head + .fm-sec-tight { padding-top: 16px; } }
.fm-page-head .fm-wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.fm-page-head h1 { margin: 0; max-width: 18em; }
.fm-page-head .fm-small, .fm-wf-head .fm-small { margin: 0; }

/* ==========================================================================
   6. Boutons, liens d'action, recherche
   ========================================================================== */

.fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: var(--fm-control-height);
	padding: 0 24px;
	border-radius: var(--fm-radius-card);
	border: 1.5px solid transparent;
	font-family: var(--fm-sans);
	font-size: var(--fm-fs-body);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--fm-dur-micro) var(--fm-ease-out), border-color var(--fm-dur-micro) var(--fm-ease-out), color var(--fm-dur-micro) var(--fm-ease-out);
}
.fm-btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--fm-dur-small) var(--fm-ease-out); }
.fm-btn:hover svg { transform: translateX(3px); }
.fm-btn:active { transform: translateY(1px); }

a.fm-btn, a.fm-btn:hover, a.fm-btn:focus, a.fm-btn:active { text-decoration: none; }
a.fm-btn-primary, a.fm-btn-primary:focus, a.fm-btn-primary:active { background: var(--fm-action); border-color: var(--fm-action); color: var(--fm-on-action); }
a.fm-btn-primary:hover { background: var(--fm-action-hover); border-color: var(--fm-action-hover); color: var(--fm-on-action); }
a.fm-btn-secondary, a.fm-btn-secondary:focus, a.fm-btn-secondary:active { background: transparent; border-color: var(--fm-ink); color: var(--fm-ink); }
a.fm-btn-secondary:hover { background: var(--fm-ink); border-color: var(--fm-ink); color: var(--fm-surface); }
button.fm-btn-primary { background: var(--fm-action); border-color: var(--fm-action); color: var(--fm-on-action); }
button.fm-btn-primary:hover { background: var(--fm-action-hover); border-color: var(--fm-action-hover); }

.fm-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--fm-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
a.fm-link:hover { text-decoration-thickness: 2px; color: var(--fm-link); }
.fm-link { min-height: 28px; }
.fm-link svg { width: 16px; height: 16px; transition: transform var(--fm-dur-small) var(--fm-ease-out); }
.fm-link:hover svg { transform: translateX(3px); }

.fm-actions { display: flex; flex-wrap: wrap; gap: var(--fm-space-16); margin: var(--fm-space-24) 0; }

.fm-search { display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; max-width: 620px; padding: 0 8px 0 16px; background: var(--fm-surface-raised); border: 1.5px solid var(--fm-field-border); border-radius: var(--fm-radius-card); }
.fm-search:focus-within { border-color: var(--fm-ink); outline: 2px solid var(--fm-focus); outline-offset: 3px; }
.fm-search svg { width: 20px; height: 20px; color: var(--fm-text-muted); flex: none; }
.fm-search input[type="search"] { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: 400 var(--fm-fs-body) var(--fm-sans); color: var(--fm-text); outline: none; box-shadow: none; }
.fm-search input::placeholder { color: var(--fm-text-subtle); }
.fm-search .fm-btn { min-height: 48px; }

.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chips a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-chip); background: var(--fm-surface-raised); font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text); text-decoration: none; }
.fm-chips a:hover { border-color: var(--fm-field-border); }

/* ==========================================================================
   7. Étiquette de contrôle, puces d'applications, carte workflow
   ========================================================================== */

.fm-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	padding: 4px 12px 4px 8px;
	font: 500 var(--fm-fs-meta)/1.3 var(--fm-symbols);
	letter-spacing: 0.02em;
	border-radius: var(--fm-radius-chip);
	box-shadow: var(--fm-shadow-tag);
	border: 1px solid currentColor;
}
.fm-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.fm-tag b { font-weight: 500; text-transform: uppercase; }
.fm-tag-ok { color: var(--fm-success); background: var(--fm-success-soft); }
.fm-tag-retest { color: var(--fm-warning); background: var(--fm-warning-soft); }
.fm-tag-beta { color: var(--fm-info); background: var(--fm-info-soft); }
.fm-tag-retired { color: var(--fm-text-muted); background: var(--fm-surface-dense); }
.fm-tag-lg { min-height: 38px; font-size: var(--fm-fs-small); padding: 4px 12px 4px 11px; }

.fm-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-app { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-chip); background: var(--fm-surface-raised); font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text); }
/* Plus de fil entre les puces : il pendait en fin de ligne quand la rangée passait à la ligne (revue du 14 nov. 2026, 3.5). */

.fm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* La grille suit le nombre de cartes : pas de colonnes vides (3.2). */
.fm-cards:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
.fm-cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.fm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--fm-surface-raised);
	border: 1px solid var(--fm-rule);
	border-radius: var(--fm-radius-card);
	box-shadow: var(--fm-shadow-1);
	transition: transform var(--fm-dur-small) var(--fm-ease-out), box-shadow var(--fm-dur-small) var(--fm-ease-out), border-color var(--fm-dur-small) var(--fm-ease-out);
}
.fm-card:hover, .fm-card:focus-within { transform: translateY(-2px); box-shadow: var(--fm-shadow-2); border-color: var(--fm-field-border); }
.fm-card-top { display: flex; justify-content: space-between; font: 500 var(--fm-fs-meta) var(--fm-mono); text-transform: uppercase; color: var(--fm-text-subtle); letter-spacing: 0.04em; }
.fm-card-top .n { color: var(--fm-copper); }
.fm-card h3 { margin: 0; font-size: var(--fm-fs-h3); line-height: 1.25; font-weight: 600; font-stretch: 106%; }
.fm-card h3 a { color: inherit; text-decoration: none; }
.fm-card h3 a::after { content: ""; position: absolute; inset: 0; }
.fm-card p { margin: 0; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-muted); }
.fm-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--fm-rule); font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-muted); }
.fm-level { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: -1px; }
.fm-level i { width: 8px; height: 8px; border: 1px solid var(--fm-ink); }
.fm-level i.on { background: var(--fm-ink); }

.fm-empty { padding: 32px; background: var(--fm-surface-raised); border: 1.5px dashed var(--fm-field-border); border-radius: var(--fm-radius-card); max-width: 640px; }
.fm-empty h3 { margin: 0 0 8px; }
.fm-empty p { margin: 0 0 20px; color: var(--fm-text-muted); }

/* ==========================================================================
   8. Schéma du workflow (la planche)
   ========================================================================== */

.fm-schema { margin: var(--fm-space-48) 0; }

.fm-diagram {
	list-style: none;
	margin: 0;
	padding: 12px 0 0;
	display: grid;
	grid-template-columns: repeat(var(--fm-cols-d, 5), minmax(0, 1fr));
	gap: 32px 40px;
}

.fm-node {
	position: relative;
	min-width: 0;
	min-height: 64px;
	padding: 12px 12px;
	background: var(--fm-surface-raised);
	border: 1.25px solid var(--fm-ink);
	border-radius: var(--fm-radius-card);
	overflow-wrap: anywhere;
}
.fm-node .app, .fm-node .act, .fm-node .note { display: block; }
.fm-node .app { font: 500 var(--fm-fs-meta) var(--fm-mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--fm-text-subtle); }
.fm-node .act { font-size: var(--fm-fs-small); font-weight: 500; line-height: 1.3; color: var(--fm-ink); }
.fm-node .note { margin-top: 4px; font-size: var(--fm-fs-small); line-height: 1.4; color: var(--fm-text-muted); }
.fm-node .fig {
	position: absolute;
	left: -11px;
	top: -11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.25px solid var(--fm-copper);
	background: var(--fm-surface);
	color: var(--fm-copper);
	font: 500 var(--fm-fs-meta)/20px var(--fm-mono);
	text-align: center;
}

/* Types distingués par la forme, pas par la couleur seule */
.fm-node-trigger { border-left: 3px solid var(--fm-ink); }
.fm-node-ai { outline: 1.25px solid var(--fm-ink); outline-offset: -5.5px; }
.fm-node-human { border-style: dashed; }
.fm-node-cond { padding-left: 24px; }
.fm-node-cond::before { content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--fm-surface-raised); border: 1.25px solid var(--fm-ink); transform: rotate(45deg); }
.fm-node-error { border-color: var(--fm-error); border-style: dashed; }
.fm-node-error .act { color: var(--fm-error); }

/* Le fil de cuivre : un seul pseudo-élément (trait + flèche ouverte), en masque, donc recolorié en mode nuit */
.fm-node:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(50% - 6px);
	left: 100%;
	width: 40px;
	height: 12px;
	background: var(--fm-copper);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6h38M33 2l5 4-5 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6h38M33 2l5 4-5 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.fm-node:not(:last-child):has(+ .fm-node-error)::after { background: var(--fm-error); }

/* Le fil s'arrête en bout de rangée : 5 colonnes, puis 3, puis 1 */
.fm-node:nth-child(5n):not(:last-child)::after { display: none; }

@media (max-width: 1100px) {
	.fm-diagram { grid-template-columns: repeat(var(--fm-cols-t, 3), minmax(0, 1fr)); }
	.fm-node:nth-child(5n):not(:last-child)::after { display: block; }
	.fm-node:nth-child(3n):not(:last-child)::after { display: none; }
}

/* Une colonne : fil vertical. Même mise en forme pour le schéma étroit de l'accueil (.v). */
@media (max-width: 760px) {
	.fm-diagram { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.fm-node:nth-child(3n):not(:last-child)::after { display: block; }
	.fm-node:not(:last-child)::after {
		top: 100%;
		left: 28px;
		width: 12px;
		height: 40px;
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 40'%3E%3Cpath d='M6 0v38M2 33l4 5 4-5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 40'%3E%3Cpath d='M6 0v38M2 33l4 5 4-5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}
}

.fm-diagram.v { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 300px; }
.fm-diagram.v .fm-node:not(:last-child)::after {
	top: 100%;
	left: 28px;
	width: 12px;
	height: 28px;
	display: block;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 28'%3E%3Cpath d='M6 0v26M2 21l4 5 4-5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 28'%3E%3Cpath d='M6 0v26M2 21l4 5 4-5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.fm-schema__caption { margin-top: var(--fm-space-24); }

/* ==========================================================================
   9. Page d'accueil
   ========================================================================== */

.fm-hero { position: relative; overflow: hidden; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(242, 179, 61, calc(0.22 * var(--fm-lamp-on, 1))), transparent 70%), radial-gradient(120% 90% at 10% 0%, var(--fm-surface-lit) 0%, var(--fm-surface) 55%, var(--fm-surface-shade) 100%); padding-block: 48px 64px; }
@media (max-width: 1024px) { .fm-hero { padding-block: 40px 48px; } }
.fm-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 0 36%, rgba(20, 33, 28, 0.03) 37.5% 40%, transparent 41.5% 61%, rgba(20, 33, 28, 0.02) 62.5% 64%, transparent 65.5%); }
/* Héros « plan sous la lampe » (dérogation assumée à la charte, Décision 5, 18 oct. 2026) : un quadrillage de planche n'apparaît
   que sous la lampe (elle suit le curseur), trois fils de cuivre sont parcourus par des comètes à traînée ambre, les nœuds pulsent.
   Décor pur (aria-hidden), jamais sur le texte (tools/qa/threads.mjs), aucun filtre flou, tout s'arrête après environ 30 s.
   --mx et --my ne sont pas héritées : déplacer la lampe ne recalcule que l'élément, pas le dessin des fils. */
@property --mx { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
/* Intensité de la lampe : elle s'éteint en douceur quand le curseur passe sur un lien ou un bouton (classe fm-lamp-off,
   posée par inc/setup.php), pour ne jamais teinter le fond sous l'élément survolé ; elle se rallume en le quittant. */
@property --fm-lamp-on { syntax: "<number>"; inherits: true; initial-value: 1; }
.fm-hero, [data-theme="nuit"] { transition: --fm-lamp-on 280ms var(--fm-ease-out); }
.fm-lamp-off { --fm-lamp-on: 0; }
.fm-hero { --mx: 76%; --my: 26%; container-type: inline-size; }
.fm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(20, 33, 28, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 33, 28, 0.16) 1px, transparent 1px); background-size: 48px 48px; background-position: mod(max(32px, calc((100cqw - 1240px) / 2 + 32px)), 48px) 0; -webkit-mask-image: radial-gradient(circle 360px at var(--mx) var(--my), #000 0%, transparent 100%); mask-image: radial-gradient(circle 360px at var(--mx) var(--my), #000 0%, transparent 100%); opacity: var(--fm-lamp-on, 1); }
.fm-hero-thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fm-hero-thread .base { fill: none; stroke: var(--fm-copper); stroke-width: 1.5; opacity: var(--o, 0.4); vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 0; animation: fm-thread 2800ms var(--fm-ease-inout) 200ms backwards; }
.fm-hero-thread .comet, .fm-hero-thread .tail { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; animation-duration: 9s; animation-timing-function: linear; animation-delay: 2600ms; animation-iteration-count: 3; animation-fill-mode: both; }
.fm-hero-thread .comet { stroke: var(--fm-copper); stroke-width: 2.25; stroke-dasharray: 5 95; stroke-dashoffset: 5; animation-name: fm-comet; }
.fm-hero-thread .tail { stroke: var(--fm-lamp); stroke-width: 6; opacity: 0.4; stroke-dasharray: 17 83; stroke-dashoffset: 17; animation-name: fm-comet-tail; }
.fm-hero-thread .t2 .comet, .fm-hero-thread .t2 .tail { animation-duration: 12s; animation-delay: 3400ms; }
.fm-hero-thread .t3 .comet, .fm-hero-thread .t3 .tail { animation-duration: 10s; animation-delay: 4200ms; }
.fm-hero-thread .t2 .base { animation-delay: 500ms; }
.fm-hero-thread .t3 .base { animation-delay: 800ms; }
.fm-hero-thread .node { fill: var(--fm-surface); stroke: var(--fm-copper); stroke-width: 1.5; animation: fm-thread-node 400ms var(--fm-ease-out) 2000ms backwards; }
.fm-hero-thread .ring { fill: none; stroke: var(--fm-copper); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: fm-ring 4.5s var(--fm-ease-out) 3200ms 6 backwards; }
.fm-hero-thread .ring.r2 { animation-delay: 4400ms; }
.fm-hero-thread .ring.r3 { animation-delay: 5600ms; }
.fm-hero-thread .ring.r4 { animation-delay: 6800ms; }
@keyframes fm-thread { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fm-comet { from { stroke-dashoffset: 5; } to { stroke-dashoffset: -112; } }
@keyframes fm-comet-tail { from { stroke-dashoffset: 17; } to { stroke-dashoffset: -100; } }
@keyframes fm-thread-node { from { opacity: 0; } to { opacity: 1; } }
@keyframes fm-ring { 0% { opacity: 0.7; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(4.5); } }
@media (max-width: 1024px) { .fm-hero-thread { display: none; } }
@media (prefers-reduced-motion: reduce) { .fm-hero-thread .base, .fm-hero-thread .node { animation: none; } .fm-hero-thread .comet, .fm-hero-thread .tail, .fm-hero-thread .ring { display: none; } }
.fm-hero .in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.fm-hero .copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.fm-hero-install { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-crop { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fm-crop::before, .fm-crop::after { content: "+"; position: absolute; font: 400 var(--fm-fs-body)/1 var(--fm-mono); color: var(--fm-text-subtle); }
.fm-crop::before { left: 0; top: 0; }
.fm-crop::after { right: 0; bottom: 0; }

.fm-index { border-top: 1px solid var(--fm-rule); }
.fm-index a { display: grid; grid-template-columns: 56px minmax(0, 3fr) minmax(0, 4fr) 32px; gap: 24px; align-items: center; min-height: 104px; padding: 16px 0; border-bottom: 1px solid var(--fm-rule); color: inherit; text-decoration: none; }
.fm-index a:hover .name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fm-index .n { font: 500 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-copper); }
.fm-index .name { font-size: var(--fm-fs-h2); line-height: 1.05; font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; color: var(--fm-ink); overflow-wrap: break-word; }
.fm-index .tasks { font: 400 var(--fm-fs-meta)/1.6 var(--fm-mono); color: var(--fm-text-muted); }
.fm-index .arrow { color: var(--fm-ink); }

.fm-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fm-rule); }
.fm-tasks a { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--fm-rule); color: inherit; text-decoration: none; }
.fm-tasks a:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.fm-tasks .t { font-size: var(--fm-fs-h2s); line-height: 1.1; font-weight: 600; font-stretch: 108%; color: var(--fm-ink); }
.fm-tasks .d { font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-tasks .c { font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-copper); }

.fm-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fm-steps::before { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 1.5px; background: var(--fm-copper); }
.fm-step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.fm-step .dot { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--fm-copper); background: var(--fm-surface); color: var(--fm-copper); font: 500 var(--fm-fs-small)/29px var(--fm-mono); text-align: center; }
.fm-step h3 { margin: 0; }
.fm-step p { margin: 0; color: var(--fm-text-muted); font-size: var(--fm-fs-body); }

.fm-annot { display: flex; flex-direction: column; gap: 16px; border-left: 1.5px solid var(--fm-copper); padding-left: 20px; max-width: 640px; }
.fm-annot div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.fm-annot .k { width: 24px; height: 24px; border-radius: 50%; border: 1.25px solid var(--fm-copper); color: var(--fm-copper); font: 500 var(--fm-fs-meta)/22px var(--fm-mono); text-align: center; }

.fm-compare { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--fm-ink); }
.fm-compare .r { display: contents; }
.fm-compare .r > div { padding: 12px 16px 12px 0; border-bottom: 1px solid #D6D1C4; font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-compare .h { font-size: var(--fm-fs-meta); font-weight: 650; font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-ink); }
.fm-compare .t { color: var(--fm-ink); font-weight: 600; }
.fm-compare .t span { display: block; font-weight: 400; font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-compare .y { font: 500 var(--fm-fs-small) var(--fm-mono); color: var(--fm-success); }
.fm-compare .n { font: 400 var(--fm-fs-small) var(--fm-mono); color: var(--fm-text-subtle); }

.fm-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-offer { padding: 0 24px 8px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fm-offer:first-child { padding-left: 0; }
.fm-offer + .fm-offer { border-left: 1px solid var(--fm-rule); }
.fm-offer .who { font: 500 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-copper); letter-spacing: 0.04em; }
.fm-offer h3 { margin: 0; display: flex; align-items: center; gap: 12px; }
.fm-offer p { margin: 0; font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-offer ul { margin: 0; padding-left: 16px; font: 400 var(--fm-fs-meta)/1.8 var(--fm-mono); color: var(--fm-text); }
.fm-price { font: 500 var(--fm-fs-small) var(--fm-mono); color: var(--fm-ink); margin-top: 4px; }
.fm-lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--fm-lamp); box-shadow: 0 0 14px rgba(242, 179, 61, 0.6); animation: fm-breathe var(--fm-dur-lamp) var(--fm-ease-inout) 7 alternate; }
@keyframes fm-breathe { from { opacity: 0.55; } to { opacity: 1; } }

.fm-log { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--fm-rule); max-width: 760px; }
.fm-log time { font: 500 var(--fm-fs-small) var(--fm-mono); color: var(--fm-ink); }
.fm-log .wf { font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-copper); margin-bottom: 8px; }
.fm-log .wf a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-log .wf a:hover { text-decoration-thickness: 2px; }
.fm-log .kind { margin-left: 8px; font-size: var(--fm-fs-meta); font-weight: 650; font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-link); }
.fm-log p { margin: 0; font-size: var(--fm-fs-body); color: var(--fm-text); max-width: 60ch; }

.fm-person { display: flex; gap: 24px; align-items: flex-start; max-width: 720px; }
.fm-portrait { flex: none; width: 112px; height: 140px; border-radius: var(--fm-radius-card); background: var(--fm-surface-dense); border: 1px solid var(--fm-rule); overflow: hidden; }
.fm-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fm-guides { border-top: 1px solid var(--fm-rule); }
.fm-guides a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 140px; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--fm-rule); text-decoration: none; color: inherit; }
.fm-guides .n { font: 500 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-copper); }
.fm-guides .t { font-size: var(--fm-fs-h2s); font-weight: 600; line-height: 1.25; color: var(--fm-ink); }
.fm-guides .m { font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-subtle); text-align: right; }

.fm-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.fm-cta h2 { margin: 0; max-width: 15em; font-size: var(--fm-fs-h1); }
.fm-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fm-choices a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border: 1.5px solid var(--fm-field-border); border-radius: var(--fm-radius-card); background: var(--fm-surface-raised); font: 500 var(--fm-fs-body) var(--fm-sans); color: var(--fm-ink); text-decoration: none; }
.fm-choices a:hover { border-color: var(--fm-ink); }

/* ==========================================================================
   10. Page workflow
   ========================================================================== */

.fm-wf-head { padding-block: 40px 40px; border-bottom: 1px solid var(--fm-rule); background: radial-gradient(120% 90% at 10% 0%, var(--fm-surface-lit) 0%, var(--fm-surface) 60%); }
.fm-wf-head .fm-wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.fm-wf-head h1 { margin: 0; max-width: 20em; font-size: var(--fm-fs-h1); }
.fm-wf { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; padding-block: 48px 64px; }
.fm-wf-main > section + section { margin-top: var(--fm-space-64); }
/* Devis, Audit, Téléchargement réutilisent la grille .fm-wf à l'intérieur d'une section : le rythme est celui de la section, pas un second remplissage. */
section > .fm-wf { padding-block: 0; }
.fm-wf-plan { padding-top: 40px; }
.fm-wf-plan > h2 { margin: 0; }
.fm-wf--after-plan { padding-block-start: 24px; }
/* Dans la fiche, les puces d’applications n’ont pas de fils (colonne étroite) */
.fm-sheet .fm-apps { gap: 8px; }
.fm-sheet .fm-app:not(:last-child) { margin-right: 0; }
.fm-sheet .fm-app:not(:last-child)::after { display: none; }
.fm-wf-main h2.fm-h3 { margin: 0 0 var(--fm-space-16); font-size: var(--fm-fs-h2s); }
.fm-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }

.fm-sheet { padding: 24px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-sheet dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; font-family: var(--fm-mono); font-variant-numeric: tabular-nums; }
.fm-sheet dt { font-size: var(--fm-fs-meta); color: var(--fm-text-subtle); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.fm-sheet dd { margin: 0; font-size: var(--fm-fs-small); font-weight: 500; color: var(--fm-ink); overflow-wrap: anywhere; }

.fm-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--fm-ink); }
.fm-ba > div { padding: 24px 24px 24px 0; }
.fm-ba > div + div { padding-left: 24px; border-left: 1px solid var(--fm-rule); }
.fm-ba h4 { margin: 0 0 8px; font-size: var(--fm-fs-meta); font-weight: 650; font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-text-subtle); }
.fm-ba .after h4 { color: var(--fm-success); }
.fm-ba p { margin: 0; font-size: var(--fm-fs-body); line-height: 1.55; }

.fm-receive { padding: 24px; background: var(--fm-surface-raised); border: 1.5px dashed var(--fm-field-border); border-radius: var(--fm-radius-card); }
.fm-receive h3 { margin: 0; font-size: var(--fm-fs-h3); }
.fm-receive ul { list-style: none; margin: 12px 0 16px; padding: 0; font: 400 var(--fm-fs-small) var(--fm-mono); font-variant-numeric: tabular-nums; }
.fm-receive li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--fm-rule); color: var(--fm-ink); overflow-wrap: anywhere; }
.fm-receive li span { color: var(--fm-text-subtle); flex: none; }
.fm-receive .lic { font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-muted); margin: 0 0 16px; }

.fm-prerequis { padding-left: 1.2em; margin: 0; }
/* Repère visible d'une information à compléter (pages légales) */
.fm-todo { background: var(--fm-warning-soft); color: var(--fm-warning); padding: 0 4px; border-radius: var(--fm-radius-chip); font-weight: 600; }
.fm-faq { border-bottom: 1px solid var(--fm-rule); padding: 16px 0; }
.fm-faq summary { font-size: var(--fm-fs-body); font-weight: 600; color: var(--fm-ink); cursor: pointer; padding-block: 12px; min-height: 44px; }
.fm-faq p { margin: 12px 0 0; color: var(--fm-text-muted); max-width: var(--fm-measure); }

.fm-video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 800px; border-radius: var(--fm-radius-card); overflow: hidden; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); }
.fm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fm-video__btn { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; background: transparent; font: 600 var(--fm-fs-body) var(--fm-sans); color: var(--fm-ink); cursor: pointer; }
.fm-video__btn small { font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-subtle); }
.fm-video__play { width: 72px; height: 72px; border-radius: 50%; background: var(--fm-ink); position: relative; }
.fm-video__play::after { content: ""; position: absolute; left: 28px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--fm-surface); }

.fm-mobilebar { display: none; }
.fm-sec-related { padding-block: 48px 64px; border-top: 1px solid var(--fm-rule); }

/* ==========================================================================
   11. Formulaires, messages
   ========================================================================== */

.fm-form { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.fm-field { display: flex; flex-direction: column; gap: 8px; }
.fm-field > label { font-size: var(--fm-fs-body); font-weight: 600; color: var(--fm-ink); }
.fm-field input[type="text"], .fm-field input[type="email"], .fm-field input[type="tel"], .fm-field select, .fm-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--fm-field-border);
	border-radius: var(--fm-radius-card);
	background: var(--fm-surface-raised);
	font: 400 var(--fm-fs-body) var(--fm-sans);
	color: var(--fm-text);
}
.fm-field textarea { min-height: 120px; resize: vertical; }
.fm-field input:focus, .fm-field select:focus, .fm-field textarea:focus { border-color: var(--fm-ink); }
.fm-field :is(input, select, textarea):focus-visible, .fm-consent input:focus-visible { outline: 2px solid var(--fm-focus); outline-offset: 2px; }
.fm-req { color: var(--fm-text-muted); }
.fm-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: var(--fm-fs-small); color: var(--fm-text); }
.fm-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #14211C; flex: none; }
.fm-form__help { margin: 0; color: var(--fm-text-muted); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-form .fm-btn { align-self: flex-start; }

.fm-notice { padding: 20px 24px; border-radius: var(--fm-radius-card); border: 1.5px solid currentColor; max-width: 640px; }
.fm-notice p { margin: 0; }
.fm-notice__title { font-weight: 650; margin-bottom: 6px !important; }
.fm-notice-ok { color: var(--fm-success); background: var(--fm-success-soft); }
.fm-notice-error { color: var(--fm-error); background: var(--fm-error-soft); margin-bottom: 8px; }
.fm-notice-ok p:not(.fm-notice__title), .fm-notice-error p:not(.fm-notice__title) { color: var(--fm-ink); }

.fm-next { display: flex; flex-direction: column; border-top: 2px solid var(--fm-ink); max-width: 640px; }
.fm-next > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--fm-rule); }
.fm-next .k { width: 28px; height: 28px; border-radius: 50%; border: 1.25px solid var(--fm-copper); color: var(--fm-copper); font: 500 var(--fm-fs-meta)/26px var(--fm-mono); text-align: center; }
.fm-next b { color: var(--fm-ink); }
.fm-panel { padding: 24px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }

.fm-pagination { margin-top: var(--fm-space-48); display: flex; flex-wrap: wrap; gap: 8px; }
.fm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--fm-field-border); border-radius: var(--fm-radius-card); background: var(--fm-surface-raised); font: 500 var(--fm-fs-small) var(--fm-sans); color: var(--fm-ink); text-decoration: none; }
.fm-pagination .page-numbers.current { background: var(--fm-ink); color: var(--fm-surface); border-color: var(--fm-ink); }

/* ==========================================================================
   12. Pied de page
   ========================================================================== */

.fm-footer { padding-block: 64px 40px; }
.fm-footer .cols { display: grid; grid-template-columns: 2fr repeat(var(--fm-pied-cols, 4), minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--fm-rule); }
.fm-footer .brand { display: flex; flex-direction: column; gap: 16px; }
.fm-footer .brand img { width: 200px; height: auto; }
.fm-footer .brand p { margin: 0; font-size: var(--fm-fs-small); max-width: 30ch; color: var(--fm-text-muted); }
.fm-footer h3 { margin: 0 0 16px; font-size: var(--fm-fs-meta); font-weight: 650; font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-text-subtle); }
.fm-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fm-footer a { color: var(--fm-ink); text-decoration: none; font-size: var(--fm-fs-small); }
.fm-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Mot géant : signature de marque, décor pur (aria-hidden). Les lettres se fondent vers le bas, coupées aux deux tiers. */
.fm-footer { overflow: hidden; }
.fm-footer .wordmark { container-type: inline-size; margin-top: 32px; }
.fm-footer .wordmark span { display: block; height: 0.66em; margin-left: -0.079em; overflow: hidden; font-family: var(--fm-sans); font-size: 18.35cqw; font-weight: 640; font-stretch: 112%; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; user-select: none; color: color-mix(in srgb, var(--fm-ink) 22%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, transparent 100%); }
.fm-footer .state { padding-top: 24px; font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   13. Tablette
   ========================================================================== */

@media (max-width: 1100px) {
	.fm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-hero .in { grid-template-columns: minmax(0, 1fr); }
	.fm-wf { grid-template-columns: minmax(0, 1fr); }
	.fm-aside { position: static; }
	.fm-wf-head h1 { font-size: var(--fm-fs-h2); }
	.fm-cta h2 { font-size: var(--fm-fs-h2); }
}

/* ==========================================================================
   14. Mobile
   ========================================================================== */

@media (max-width: 760px) {
	.fm-wrap { padding-inline: 20px; }
	.fm-sec { padding-block: 40px; }
	.fm-sec-tight { padding-block: 32px; }
	.fm-hero { padding-block: 32px 40px; }
	.fm-display { font-size: var(--fm-fs-h2); line-height: 1.06; }
	.fm-hide-mobile { display: none; }
	.fm-search { min-height: 56px; }
	.fm-search .fm-btn { padding: 0 16px; }
	.fm-chips a { min-height: 44px; }
	.fm-tag { align-items: flex-start; }
	.fm-tag::before { margin-top: 4px; }

	.fm-plate { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
	.fm-margin { border-right: 0; padding-right: 0; display: flex; gap: 12px; align-items: baseline; }
	.fm-margin .num { margin: 0; }
	.fm-index a { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "name arrow" "tasks arrow"; gap: 8px 16px; min-height: 0; }
	.fm-index .n { display: none; }
	.fm-index .arrow { grid-area: arrow; }
	.fm-index .name { grid-area: name; font-size: var(--fm-fs-h2s); }
	.fm-index .tasks { grid-area: tasks; }

	.fm-cards, .fm-tasks, .fm-steps, .fm-offers, .fm-ba { grid-template-columns: minmax(0, 1fr); }
	.fm-person { flex-direction: column; }
	.fm-steps::before { left: 15px; right: auto; top: 16px; bottom: 16px; width: 1.5px; height: auto; }
	.fm-step { padding-left: 48px; }
	.fm-step .dot { position: absolute; left: 0; top: 0; }
	.fm-offer, .fm-offer:first-child { padding: 24px 0; }
	.fm-offer + .fm-offer { border-left: 0; border-top: 1px solid var(--fm-rule); }
	.fm-log { grid-template-columns: 1fr; gap: 8px; }
	.fm-link { min-height: 44px; }
	.menu-toggle-open.drawer-toggle { min-width: 44px; min-height: 44px; }
	.fm-guides a { grid-template-columns: 40px minmax(0, 1fr); }
	.fm-guides .m { display: none; }
	.fm-cta h2 { font-size: var(--fm-fs-h2s); }
	.fm-compare { grid-template-columns: minmax(0, 1fr) 68px 96px; }
	.fm-compare .r > div { padding-right: 8px; font-size: var(--fm-fs-small); }
	.fm-ba > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--fm-rule); }
	.fm-ba > div { padding-right: 0; }
	.fm-sheet dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.fm-sheet dd { margin-bottom: 8px; }
	.fm-footer .cols { grid-template-columns: 1fr 1fr; }
	.fm-footer .brand { grid-column: 1 / -1; }
	.fm-wf-head h1 { font-size: var(--fm-fs-h2s); }
	.fm-wf { padding-block: 32px 48px; }
	.fm-sec-related { padding-block: 40px 48px; }
	/* Réserve pour la barre d'actions fixe (environ 92 px) : à la fin de la page, pas entre deux blocs. */
	body.single-workflow .fm-footer { padding-bottom: calc(40px + 96px + env(safe-area-inset-bottom, 0px)); }

	.fm-btn { width: 100%; min-height: 48px; }
	.fm-search .fm-btn, .fm-hero-install .fm-btn { width: auto; }
	.fm-form .fm-btn { align-self: stretch; }

	/* Sur mobile, « Faire installer » devient le bouton principal (styles seulement : l'ordre de tabulation ne change pas) */
	.fm-actions .fm-act-dl, .fm-mobilebar .fm-act-dl { background: transparent; border-color: var(--fm-ink); color: var(--fm-ink); }
	a.fm-btn.fm-act-dl, a.fm-btn.fm-act-dl:focus, a.fm-btn.fm-act-dl:active { background: transparent; border-color: var(--fm-ink); color: var(--fm-ink); }
	a.fm-btn.fm-act-install, a.fm-btn.fm-act-install:focus, a.fm-btn.fm-act-install:active { background: var(--fm-action); border-color: var(--fm-action); color: var(--fm-on-action); }

	.fm-mobilebar { display: flex; flex-direction: column; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--fm-surface-raised); border-top: 1px solid var(--fm-rule); box-shadow: var(--fm-shadow-up); }
	.fm-mobilebar .fm-actions { margin: 0; flex-wrap: nowrap; gap: 8px; }
	.fm-mobilebar .fm-btn { font-size: var(--fm-fs-small); padding: 0 12px; }
	.fm-mobilebar .note { margin: 0; font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-muted); text-align: center; }
	.fm-wf-head .fm-actions { display: none; }
}

/* ==========================================================================
   15. Mouvement réduit : seuls les composants FlowMétier sont neutralisés.
   Les indicateurs de chargement des extensions gardent leur animation (ils portent du sens).
   ========================================================================== */

/* Téléphone étroit : la barre de recherche passe sur deux lignes (le texte d'aide n'est plus coupé). */
@media (max-width: 480px) {
	.fm-search { flex-wrap: wrap; padding: 6px 12px 12px; row-gap: 8px; min-height: 0; }
	.fm-search input[type="search"] { flex: 1 1 calc(100% - 40px); min-height: 44px; }
	.fm-search .fm-btn { flex: 1 1 100%; width: 100%; }
}

/* ==========================================================================
   En-tête : même cadre que le contenu (.fm-wrap : 1240 px au plus, gouttières de 32 px, 20 px sur
   téléphone). Le logo s'aligne sur le titre de la page et le bouton sur le bord droit des blocs.
   Aucun changement de couleur, de taille ni de hauteur.
   ========================================================================== */
body #masthead .site-header-row-container-inner > .site-container { max-width: 1240px; padding-inline: 32px; }
@media (max-width: 760px) { body #masthead .site-header-row-container-inner > .site-container { padding-inline: 20px; } }

/* ==========================================================================
   Pages courantes (Contact, Confidentialité, Mentions légales…) : papier plat de la charte,
   colonne de lecture d'environ 68 caractères, titre h1 aligné sur les autres gabarits.
   ========================================================================== */
body.page-template-default:not(.home):not(.fm-custom-page) .entry.content-bg { background: transparent; box-shadow: none; margin-inline: 0; }
body.page-template-default:not(.home):not(.fm-custom-page) .content-container { max-width: 1240px; padding-inline: 32px; }
body.page-template-default:not(.home):not(.fm-custom-page) .entry-content-wrap { max-width: 760px; padding: 64px 0 96px; }
body.page-template-default:not(.home):not(.fm-custom-page) .entry-title { margin: 0 0 32px; font-size: clamp(var(--fm-fs-h2), 5vw, var(--fm-fs-h1)); line-height: 1.08; font-weight: 640; color: var(--fm-ink); text-wrap: balance; }
body.page-template-default:not(.home):not(.fm-custom-page) .entry-content { font-size: var(--fm-fs-body); line-height: 1.65; }
body.page-template-default:not(.home):not(.fm-custom-page) .entry-content :where(h2, h3) { margin: 48px 0 12px; line-height: 1.2; color: var(--fm-ink); }
@media (max-width: 760px) {
	body.page-template-default:not(.home):not(.fm-custom-page) .content-container { padding-inline: 20px; }
	body.page-template-default:not(.home):not(.fm-custom-page) .entry-content { font-size: var(--fm-fs-body); }
}

/* Boutons de l'en-tête : contour de focus de la charte (Kadence le met en blanc) */
#masthead :is(a, button):focus-visible { outline: 2px solid var(--fm-focus) !important; outline-offset: 3px !important; }

/* ==========================================================================
   Pages de contenu éditable : légales (sommaire + colonne de lecture) et À propos (sections numérotées).
   Le texte vient de l'éditeur WordPress ; ici, seulement la mise en page (inc/pages.php).
   ========================================================================== */

/* En-tête : ligne « Dernière mise à jour » */
.fm-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding: 8px 12px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-chip); font: 400 var(--fm-fs-meta)/1.4 var(--fm-mono); color: var(--fm-text-subtle); }
.fm-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fm-copper); flex: none; }
.fm-meta b { font-weight: 500; color: var(--fm-ink); }
.fm-page-head .fm-wrap > .fm-meta { align-self: flex-start; }

/* Légal : sommaire collant à gauche, texte à droite */
.fm-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 64px; align-items: start; }
.fm-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.fm-toc .fm-label { display: block; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--fm-ink); }
.fm-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: fm-toc; }
.fm-toc li { counter-increment: fm-toc; margin: 0; }
.fm-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--fm-rule); font-size: var(--fm-fs-small); line-height: 1.35; color: var(--fm-text-muted); text-decoration: none; transition: color var(--fm-dur-micro) var(--fm-ease-out), padding-left var(--fm-dur-small) var(--fm-ease-out); }
.fm-toc a::before { content: counter(fm-toc, decimal-leading-zero); font: 500 var(--fm-fs-meta)/1.4 var(--fm-mono); letter-spacing: 0.04em; color: var(--fm-copper); }
.fm-toc a:hover { color: var(--fm-ink); padding-left: 4px; }

.fm-prose { counter-reset: fm-h; max-width: 720px; font-size: var(--fm-fs-body); line-height: 1.7; color: var(--fm-text); }
.fm-prose > p, .fm-prose > ul > li { max-width: none; }
.fm-prose > p { margin: 0 0 20px; }
.fm-prose > h2 { counter-increment: fm-h; margin: 48px 0 16px; padding-top: 16px; border-top: 2px solid var(--fm-ink); font-size: var(--fm-fs-h2s); line-height: 1.2; letter-spacing: -0.01em; font-stretch: 106%; scroll-margin-top: 96px; }
.fm-prose > h2::before { content: counter(fm-h, decimal-leading-zero); display: block; margin-bottom: 8px; font: 500 var(--fm-fs-meta)/1 var(--fm-mono); letter-spacing: 0.04em; color: var(--fm-copper); }
.fm-prose > .fm-note + h2 { margin-top: 40px; }
.fm-prose > h2:first-child { margin-top: 0; }
.fm-prose ul { list-style: none; margin: 0 0 24px; padding: 0; }
.fm-prose li { position: relative; margin: 0 0 8px; padding-left: 24px; }
.fm-prose li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 12px; height: 1px; background: var(--fm-copper); }
.fm-prose strong { font-weight: 650; color: var(--fm-ink); }
.fm-prose .fm-note { margin: 0 0 8px; padding: 16px 20px; background: var(--fm-warning-soft); border-left: 3px solid var(--fm-warning); border-radius: 0 var(--fm-radius-card) var(--fm-radius-card) 0; font-size: var(--fm-fs-small); line-height: 1.55; color: var(--fm-text); }
.fm-prose .fm-note .fm-todo { background: rgba(138, 83, 0, 0.12); }
.fm-prose pre { margin: 0 0 24px; padding: 20px 24px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); font: 400 var(--fm-fs-meta)/1.65 var(--fm-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fm-text); }
.fm-toc-m { display: none; }
@media (max-width: 1024px) {
	.fm-legal { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
	.fm-toc { display: none; }
	.fm-toc-m { display: block; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); }
	.fm-toc-m summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 0 20px; font-weight: 600; color: var(--fm-ink); cursor: pointer; list-style: none; }
	.fm-toc-m summary::-webkit-details-marker { display: none; }
	.fm-toc-m summary::after { content: "+"; font: 500 var(--fm-fs-h3)/1 var(--fm-mono); color: var(--fm-copper); }
	.fm-toc-m[open] summary::after { content: "\2212"; }
	.fm-toc-m summary span { margin-left: auto; font: 400 var(--fm-fs-meta) var(--fm-mono); color: var(--fm-text-subtle); }
	.fm-toc-m ol { list-style: none; margin: 0; padding: 0 20px 8px; counter-reset: fm-toc; columns: 2; column-gap: 40px; }
	.fm-toc-m li { counter-increment: fm-toc; break-inside: avoid; }
	.fm-toc-m a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--fm-rule); font-size: var(--fm-fs-small); line-height: 1.35; color: var(--fm-text-muted); text-decoration: none; }
	.fm-toc-m a::before { content: counter(fm-toc, decimal-leading-zero); font: 500 var(--fm-fs-meta)/1.4 var(--fm-mono); letter-spacing: 0.04em; color: var(--fm-copper); }
}
@media (max-width: 760px) {
	.fm-prose { font-size: var(--fm-fs-body); }
	.fm-prose > h2 { font-size: var(--fm-fs-h2s); margin-top: 40px; }
	.fm-toc-m ol { columns: 1; }
}
@media print { .fm-toc, .fm-toc-m, .fm-meta::before { display: none; } .fm-legal { display: block; } }


/* Engagements : liste à coches vertes */
.fm-checks { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.fm-checks li { position: relative; margin: 0; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--fm-rule); font-size: var(--fm-fs-body); line-height: 1.5; }
.fm-checks li:first-child { border-top: 1px solid var(--fm-rule); }
.fm-checks li::before { content: "\2713"; position: absolute; left: 4px; top: 16px; font: 500 var(--fm-fs-body)/1.6 var(--fm-symbols); color: var(--fm-success); }

/* ==========================================================================
   Mouvement (charte § 8) : « le mouvement montre le flux, rien d'autre ».
   CSS seul, aucun JavaScript, rien sur le titre ni le chapeau du hero (visibles au premier rendu).
   1. Le fil se dessine (hero : au chargement ; fiche : à l'entrée dans l'écran, une fois).
   2. Le jeton parcourt le schéma du hero (cycle de 6 s : 600 ms de trajet, 400 ms d'arrêt par nœud).
   3. Les blocs apparaissent en entrant dans l'écran (fondu + 12 px), jamais masqués si non pris en charge.
   ========================================================================== */
@keyframes fm-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fm-draw-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Jeton : un point de cuivre qui descend le fil en 600 ms (10 % du cycle de 6 s), puis attend le nœud suivant. */
@keyframes fm-token { 0% { opacity: 1; transform: translateY(0); } 9% { opacity: 1; } 10% { opacity: 1; transform: translateY(28px); } 11%, 100% { opacity: 0; transform: translateY(28px); } }
@keyframes fm-lit {
	0%, 14% { background: var(--fm-copper); color: #fff; }
	17%, 100% { background: var(--fm-surface); color: var(--fm-copper); }
}

/* 1 + 2. Schéma du hero (vertical, écran large : sur téléphone il est remplacé par la version compacte) */
@media (min-width: 761px) {
	.fm-crop .fm-diagram.v .fm-node:not(:last-child)::after {
		animation: fm-draw 900ms var(--fm-ease-inout) both;
	}
	.fm-crop .fm-diagram.v .fm-node:nth-child(1):not(:last-child)::after { animation-delay: 200ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(2):not(:last-child)::after { animation-delay: 320ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(3):not(:last-child)::after { animation-delay: 440ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(n+4):not(:last-child)::after { animation-delay: 560ms; }

	.fm-crop .fm-diagram.v .fm-node > .fm-token {
		display: block;
		position: absolute;
		left: 30px;
		top: calc(100% - 4px);
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--fm-copper);
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--fm-copper) 22%, transparent);
		opacity: 0;
		z-index: 2;
		animation: fm-token 6000ms linear 5;
	}
	.fm-crop .fm-diagram.v .fm-node:nth-child(1) > .fm-token { animation-delay: 1800ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(2) > .fm-token { animation-delay: 2800ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(3) > .fm-token { animation-delay: 3800ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(4) > .fm-token { animation-delay: 4800ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(n+5) > .fm-token { display: none; }

	/* Le jeton n'existe que dans le schéma du hero */
.fm-node > .fm-token { display: none; }

/* Le nœud « s'allume » quand le jeton l'atteint : son numéro passe du cuivre clair au cuivre plein */
	.fm-crop .fm-diagram.v .fm-node .fig { animation: fm-lit 6000ms linear 5; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(1) .fig { animation-delay: 1400ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(2) .fig { animation-delay: 2400ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(3) .fig { animation-delay: 3400ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(4) .fig { animation-delay: 4400ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(5) .fig { animation-delay: 5400ms; }
	.fm-crop .fm-diagram.v .fm-node:nth-child(n+6) .fig { animation: none; }
}

/* Navigateurs qui connaissent les animations liées au défilement : fil de la fiche + apparitions des blocs.
   Ailleurs : tout est simplement visible. */
@supports (animation-timeline: view()) {
	@keyframes fm-reveal { from { opacity: 0.001; transform: translateY(12px); } to { opacity: 1; transform: none; } }

	.fm-schema .fm-node { view-timeline: --fm-node block; }
	.fm-schema .fm-diagram:not(.v) .fm-node:not(:last-child)::after { animation: fm-draw-x linear backwards; animation-timeline: --fm-node; animation-range: entry 20% entry 70%; }
	@media (max-width: 760px) {
		.fm-schema .fm-diagram:not(.v) .fm-node:not(:last-child)::after { animation-name: fm-draw; }
	}

	/* Un groupe apparaît d'un bloc (titre de section, liste de cartes, index, étapes, offres…), pas chaque élément un à un. */
	.fm-sec-head, .fm-cards, .fm-index, .fm-tasks, .fm-steps, .fm-offers, .fm-compare, .fm-annot, .fm-person, .fm-guides, .fm-cta {
		animation: fm-reveal linear backwards;
		animation-timeline: view();
		animation-range: entry 0% entry 35%;
	}
}

/* ==========================================================================
   Mouvement, niveau 2 (au-delà de la charte § 8, validé par l'utilisateur).
   A. Le tampon « Testé » : l'étiquette s'imprime une fois (jamais pour un test à refaire).
   B. Transitions entre pages (CSS natif) : l'en-tête reste en place, le contenu fond en 200 ms.
   C. La lampe s'allume : la flaque de lumière des sections « nuit » monte à l'entrée dans l'écran.
   ========================================================================== */
@property --fm-glow { syntax: "<number>"; inherits: true; initial-value: 1; }
@keyframes fm-stamp {
	0% { opacity: 0.001; transform: scale(1.22) rotate(-4deg); }
	60% { opacity: 1; transform: scale(0.98) rotate(0.5deg); }
	100% { opacity: 1; transform: none; }
}
@keyframes fm-glow { from { --fm-glow: 0; } to { --fm-glow: 1; } }

/* A. Étiquettes déjà à l'écran au chargement (fiche, hero) : tampon dans le temps, après le premier rendu */
.fm-wf-head .fm-tag-ok { animation: fm-stamp 420ms var(--fm-ease-out) 350ms backwards; }
/* Héros : le tampon s'imprime quand le premier jeton atteint le dernier nœud (1800 + 3 x 1000 + 600 ms) */
.fm-crop .fm-tag-ok { animation: fm-stamp 420ms var(--fm-ease-out) 5400ms backwards; }

@supports (animation-timeline: view()) {
	/* A. Étiquettes des cartes : le tampon se pose quand la carte entre dans l'écran */
	.fm-card .fm-tag-ok { animation: fm-stamp linear backwards; animation-timeline: view(); animation-range: entry 20% entry 50%; }
	/* C. Sections « nuit » (offres, journal) : la lumière monte */
	section[data-theme="nuit"] { animation: fm-glow linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}

/* B. Transitions entre pages (Chrome, Edge, Safari récents ; ailleurs : navigation habituelle) */
@view-transition { navigation: auto; }
#masthead { view-transition-name: fm-header; }
.fm-mobilebar { view-transition-name: fm-bar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--fm-ease-out, ease-out); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
	.fm-lamp { animation: none !important; }
	.fm-tag-ok, section[data-theme="nuit"] { animation: none !important; }
	@view-transition { navigation: none; }
	.fm-diagram .fm-node::after, .fm-diagram .fm-node .fig, .fm-diagram .fm-node > .fm-token, .fm-sec-head, .fm-cards, .fm-index, .fm-tasks, .fm-steps, .fm-offers, .fm-card, .fm-index a, .fm-tasks a, .fm-step, .fm-offer, .fm-compare, .fm-annot, .fm-person, .fm-guides, .fm-guides a, .fm-cta { animation: none !important; clip-path: none !important; }
	.fm-btn, .fm-btn svg, .fm-card, .fm-link, .fm-link svg, .entry-content a { transition: none !important; animation: none !important; }
	.fm-card:hover, .fm-card:focus-within { transform: none; }
}

/* ==========================================================================
   Agence numérique 360 (prototype local, plan : docs/plan-agence-360.md)
   Fond « calque » froid, étiquettes en casse normale, une forme de nœud par service,
   numérotation réservée aux vraies suites. Le moment fort : le plan de câblage du héros.
   ========================================================================== */

/* Étiquettes : casse normale partout (le tampon « Testé » garde ses capitales : c'est un tampon) */
.fm-label, .fm-margin .lab, .fm-footer h3, .fm-ba h4, .fm-compare .h, .fm-log .kind, .fm-sheet dt { text-transform: none; letter-spacing: 0.01em; }
.fm-footer h3 { font-size: var(--fm-fs-small); font-weight: 650; line-height: 1.3; font-stretch: 100%; letter-spacing: 0.01em; color: var(--fm-text-muted); }

.fm-shape { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: none; transition: fill var(--fm-dur-micro) var(--fm-ease-out); }
.fm-ag-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fm-fs-small); font-weight: 600; font-stretch: 85%; color: var(--fm-text-muted); }
.fm-ag-kicker .fm-shape { color: var(--fm-copper); }
.fm-ag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fm-ag-promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-ag-promises li { position: relative; padding-left: 20px; }
.fm-ag-promises li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 9px; height: 5px; border-left: 2px solid var(--fm-success); border-bottom: 2px solid var(--fm-success); transform: rotate(-45deg); }

/* ---- Héros ---- */
.fm-ag-hero .in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 64px; }
.fm-ag-hero .copy { gap: 24px; }
.fm-ag-hero h1 { font-size: var(--fm-fs-h1); max-width: 13em; }

/* ---- En-têtes de section ---- */
.fm-ag-head { max-width: 760px; margin-bottom: 40px; }
.fm-ag-head h2 { margin: 0; max-width: 18em; font-size: var(--fm-fs-h2); line-height: 1.1; }
.fm-ag-head p { margin: 16px 0 0; max-width: 60ch; font-size: var(--fm-fs-body); line-height: 1.6; color: var(--fm-text-muted); }
.fm-ag-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.fm-ag-head-row > div { max-width: 760px; }
.fm-ag-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.fm-ag-split > .fm-ag-head { margin-bottom: 0; }
.fm-ag-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }

/* ---- Liste des services (en lignes, pas en cartes) ---- */
.fm-ag-svc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fm-ink); }
.fm-ag-svc li { margin: 0; border-bottom: 1px solid var(--fm-rule); }
.fm-ag-svc a { display: grid; grid-template-columns: 32px minmax(0, 5fr) minmax(0, 7fr) auto; gap: 24px; align-items: baseline; padding: 24px 8px; color: inherit; text-decoration: none; transition: background-color var(--fm-dur-micro) var(--fm-ease-out); }
.fm-ag-svc .fm-shape { align-self: center; color: var(--fm-copper); }
.fm-ag-svc .nm { font-size: var(--fm-fs-h2s); font-weight: 620; font-stretch: 108%; line-height: 1.2; letter-spacing: -0.01em; color: var(--fm-ink); }
.fm-ag-svc .rs { font-size: var(--fm-fs-body); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-svc .go { white-space: nowrap; font-weight: 600; color: var(--fm-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-ag-svc a:hover { background: var(--fm-surface-raised); }
.fm-ag-svc a:hover .fm-shape, .fm-ag-svc a:focus-visible .fm-shape { fill: var(--fm-copper); }
.fm-ag-svc a:hover .go { text-decoration-thickness: 2px; }
.fm-ag-svc-compact { border-top-width: 1px; }
.fm-ag-svc-compact a { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 16px 8px; }
.fm-ag-svc-compact .nm { font-size: var(--fm-fs-h3); }
.fm-ag-svc-compact .rs { grid-column: 2; font-size: var(--fm-fs-small); }

/* ---- Exemple de parcours (une vraie suite : mois 1 à 4) ---- */
.fm-ag-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm-ag-path li { position: relative; margin: 0; padding: 32px 24px 0 0; border-top: 2px solid var(--fm-copper); }
.fm-ag-path li::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border: 2px solid var(--fm-copper); border-radius: 50%; background: var(--fm-surface-dense); }
.fm-ag-path .when { display: block; margin-bottom: 8px; font: 500 var(--fm-fs-small)/1.2 var(--fm-mono); color: var(--fm-copper); }
.fm-ag-path .svc { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 650; color: var(--fm-ink); text-decoration: none; }
.fm-ag-path .svc .fm-shape { color: var(--fm-copper); }
.fm-ag-path .svc:hover { text-decoration: underline; text-underline-offset: 4px; }
.fm-ag-path p { margin: 0; max-width: 30ch; font-size: var(--fm-fs-body); line-height: 1.55; }

/* ---- Étapes numérotées (méthode, déroulement) ---- */
.fm-ag-steps { list-style: none; margin: 0; padding: 0; counter-reset: fm-st; }
.fm-ag-steps li { counter-increment: fm-st; position: relative; margin: 0; padding: 20px 0 20px 56px; border-top: 1px solid var(--fm-rule); }
.fm-ag-steps li:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-ag-steps li::before { content: counter(fm-st); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--fm-ink); border-radius: 50%; font-size: var(--fm-fs-small); font-weight: 650; color: var(--fm-ink); background: var(--fm-surface-raised); }
.fm-ag-steps h3 { margin: 0 0 4px; font-size: var(--fm-fs-h3); line-height: 1.3; }
.fm-ag-steps p { margin: 0; font-size: var(--fm-fs-body); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm-ag-steps-row li { padding: 40px 24px 0 0; border-top: 2px solid var(--fm-ink); border-bottom: 0; }
.fm-ag-steps-row li:last-child { border-bottom: 0; }
.fm-ag-steps-row li::before { top: -19px; }

/* ---- Pour qui, prestations, en bref ---- */
.fm-ag-trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--fm-rule); }
.fm-ag-trades li { margin: 0; border-bottom: 1px solid var(--fm-rule); }
.fm-ag-trades a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; color: inherit; text-decoration: none; }
.fm-ag-trades strong { font-size: var(--fm-fs-body); color: var(--fm-ink); }
.fm-ag-trades span { font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-muted); }
.fm-ag-trades a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.fm-ag-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.fm-ag-cell { padding: 24px 0; border-top: 1px solid var(--fm-rule); }
.fm-ag-cell h3 { margin: 0 0 8px; font-size: var(--fm-fs-h3); line-height: 1.25; }
.fm-ag-cell p { margin: 0; max-width: 46ch; font-size: var(--fm-fs-body); line-height: 1.6; color: var(--fm-text-muted); }

.fm-ag-svc-head { padding-block: 40px 48px; }
.fm-ag-svc-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; width: 100%; }
.fm-ag-svc-top .copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.fm-ag-svc-top h1 { margin: 0; max-width: 17em; font-size: var(--fm-fs-h1); }
.fm-ag-brief { padding: 24px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-brief .fm-ag-brief-title { margin: 0 0 8px; font-size: var(--fm-fs-body); font-weight: 650; font-stretch: 100%; letter-spacing: 0; }
.fm-ag-brief dl, .fm-ag-item dl { margin: 0; }
.fm-ag-brief dl > div, .fm-ag-item dl > div { padding: 12px 0; border-top: 1px solid var(--fm-rule); }
.fm-ag-brief dt, .fm-ag-item dt { font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-text-subtle); }
.fm-ag-brief dd, .fm-ag-item dd { margin: 4px 0 0; font-size: var(--fm-fs-body); line-height: 1.5; color: var(--fm-ink); }

/* ---- Page Services : le catalogue ---- */
.fm-ag-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; padding: 40px 0; border-top: 2px solid var(--fm-ink); scroll-margin-top: 96px; }
.fm-ag-item:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-ag-item .head { display: flex; flex-direction: column; gap: 12px; }
.fm-ag-item .head .fm-shape { color: var(--fm-copper); }
.fm-ag-item h2 { margin: 0; font-size: var(--fm-fs-h2s); line-height: 1.15; }
.fm-ag-item h2 a { color: inherit; text-decoration: none; }
.fm-ag-item h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fm-ag-item .head p { margin: 0; font-size: var(--fm-fs-body); line-height: 1.6; color: var(--fm-text-muted); }
.fm-ag-item .list { list-style: none; margin: 0; padding: 0; }
.fm-ag-item .list li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--fm-rule); font-size: var(--fm-fs-body); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-item .list li:first-child { padding-top: 0; }
.fm-ag-item .list strong { display: block; color: var(--fm-ink); font-size: var(--fm-fs-body); }
.fm-ag-item .more { grid-column: 2; margin-top: 16px; }

/* ---- Offres d'automatisation dans la page de service ---- */
.fm-ag-offers .who { font: 600 var(--fm-fs-small)/1.2 var(--fm-sans); font-stretch: 85%; letter-spacing: 0; color: var(--fm-copper); }

/* ---- Appel final (nuit) ---- */
.fm-ag-cta { padding-block: 96px; border-bottom: 1px solid var(--fm-rule); }
.fm-ag-cta h2 { margin: 0; max-width: 16em; font-size: var(--fm-fs-h2); line-height: 1.08; }
.fm-ag-cta p { margin: 16px 0 32px; max-width: 58ch; font-size: var(--fm-fs-body); line-height: 1.6; color: var(--fm-text-muted); }
.fm-ag-cta .fm-ag-note { margin: 16px 0 0; font-size: var(--fm-fs-small); }

/* ---- Contact ---- */
.fm-ag-contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.fm-ag-formbox { padding: 32px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-next h2 { margin: 0 0 24px; font-size: var(--fm-fs-h2s); }
.fm-ag-alt { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--fm-ink); }
.fm-ag-alt h3 { margin: 0 0 8px; font-size: var(--fm-fs-body); }
.fm-ag-alt p { margin: 0; font-size: var(--fm-fs-body); line-height: 1.6; color: var(--fm-text-muted); }
.fm-ag-alt a { color: var(--fm-link); text-decoration: underline; text-underline-offset: 3px; }
.fm-choices-field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.fm-choices-field legend { margin-bottom: 8px; padding: 0; font-weight: 600; color: var(--fm-ink); }
.fm-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fm-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; background: var(--fm-surface-raised); border: 1px solid var(--fm-field-border); border-radius: var(--fm-radius-card); font-size: var(--fm-fs-small); line-height: 1.3; color: var(--fm-ink); cursor: pointer; transition: border-color var(--fm-dur-micro) var(--fm-ease-out), background-color var(--fm-dur-micro) var(--fm-ease-out); }
.fm-choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--fm-action); }
.fm-choice:hover { border-color: var(--fm-ink); }
.fm-choice:has(input:checked) { border-color: var(--fm-action); background: var(--fm-success-soft); }

/* ---- Pied de page ---- */
.fm-footer .brand p { max-width: 34ch; }
.fm-footer .brand .fm-btn { align-self: flex-start; }
.fm-footer a.fm-btn-primary, .fm-footer a.fm-btn-primary:hover { color: var(--fm-on-action); text-decoration: none; }
.fm-footer .state .legal { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.fm-footer .state .legal a { display: inline-block; padding-block: 8px; color: var(--fm-text-muted); font-size: var(--fm-fs-meta); }

/* ---- Tablette ---- */
@media (max-width: 1024px) {
	.fm-ag-hero .in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.fm-ag-hero h1 { font-size: var(--fm-fs-h2); }
	.fm-ag-head h2 { font-size: var(--fm-fs-h2); }
	.fm-ag-split, .fm-ag-two, .fm-ag-contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.fm-ag-svc a { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px 16px; }
	.fm-ag-svc .rs { grid-column: 2 / -1; }
	.fm-ag-path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.fm-ag-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.fm-ag-svc-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.fm-ag-svc-top h1 { font-size: var(--fm-fs-h2); }
	.fm-ag-item { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	.fm-ag-item .more { grid-column: 1; }
	.fm-ag-cta { padding-block: 64px; }
	.fm-ag-cta h2 { font-size: var(--fm-fs-h2); }
}

/* ---- Téléphone ---- */
@media (max-width: 760px) {
	.fm-ag-hero h1 { font-size: var(--fm-fs-h2); }
	.fm-ag-head { margin-bottom: 32px; }
	.fm-ag-head h2 { font-size: var(--fm-fs-h2s); }
	.fm-ag-head p { font-size: var(--fm-fs-body); }
	.fm-ag-svc a { grid-template-columns: 24px minmax(0, 1fr); padding: 20px 4px; }
	.fm-ag-svc .nm { font-size: var(--fm-fs-h3); }
	.fm-ag-svc .go { grid-column: 2; }
	.fm-ag-path { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
	.fm-ag-path li { padding: 0 0 32px 28px; border-top: 0; border-left: 2px solid var(--fm-copper); }
	.fm-ag-path li:last-child { padding-bottom: 0; }
	.fm-ag-path li::before { left: -8px; top: 0; }
	.fm-ag-steps-row { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
	.fm-ag-steps-row li { padding: 20px 0 20px 56px; border-top: 1px solid var(--fm-rule); }
	.fm-ag-steps-row li::before { top: 18px; }
	.fm-ag-trades, .fm-ag-grid2, .fm-choice-grid { grid-template-columns: minmax(0, 1fr); }
	.fm-ag-svc-top h1 { font-size: var(--fm-fs-h2); }
	.fm-ag-item h2 { font-size: var(--fm-fs-h2s); }
	.fm-ag-formbox { padding: 20px; }
	.fm-ag-cta { padding-block: 48px; }
	.fm-ag-cta h2 { font-size: var(--fm-fs-h2s); }
}

@media (prefers-reduced-motion: reduce) {
}
/* ==========================================================================
   Finitions (revue UX complète, méthode impeccable : audit + polish, 2026-10-25)
   Icônes dessinées (plus de caractères ✓ × ▶ →), Plex Mono réservée aux données, zones tactiles de 44 px,
   cohérence des anciennes pages avec l'agence, menus, surfaces du navigateur.
   ========================================================================== */

/* Icônes en SVG (masques, prennent la couleur du texte) */
:root {
	--fm-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
	--fm-i-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5.5 5.5l9 9M14.5 5.5l-9 9'/%3E%3C/svg%3E");
	--fm-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
	--fm-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h13M11 5l5 5-5 5'/%3E%3C/svg%3E");
}
.fm-checks li::before { content: ""; top: 19px; left: 2px; width: 18px; height: 18px; background: var(--fm-success); -webkit-mask: var(--fm-i-check) center / contain no-repeat; mask: var(--fm-i-check) center / contain no-repeat; font: inherit; }
.fm-card-top span[aria-hidden="true"], .fm-index .arrow { display: inline-block; width: 18px; height: 18px; font-size: 0; background: currentColor; -webkit-mask: var(--fm-i-arrow) center / contain no-repeat; mask: var(--fm-i-arrow) center / contain no-repeat; transition: transform var(--fm-dur-small) var(--fm-ease-out); }
.fm-card:hover .fm-card-top span[aria-hidden="true"], .fm-index a:hover .arrow { transform: translateX(3px); }

/* Questions fréquentes : chevron dessiné qui pivote à l'ouverture (le mouvement répond à l'action) */
.fm-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--fm-i-chevron) center / contain no-repeat; mask: var(--fm-i-chevron) center / contain no-repeat; transition: transform var(--fm-dur-small) var(--fm-ease-out); }
.fm-faq[open] summary::after { transform: rotate(180deg); }
.fm-faq summary:hover { color: var(--fm-action); }
.fm-faq { padding: 4px 0; }
.fm-faq p { margin: 0 0 16px; }

/* Plex Mono seulement pour les données ; casse normale */
.fm-crumb { font: 400 var(--fm-fs-small)/1.4 var(--fm-sans); }
.fm-footer .state { font-family: var(--fm-sans); font-size: var(--fm-fs-small); }
.fm-index .tasks { font: 400 var(--fm-fs-small)/1.5 var(--fm-sans); }
.fm-node .app { text-transform: none; letter-spacing: 0.01em; }
.fm-card-top { text-transform: none; letter-spacing: 0.01em; }

/* Listes « par métier » et « par tâche » : ce n'est pas une suite, donc pas de numéros */
.fm-index .n { display: none; }
.fm-index a { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) 24px; padding-inline: 8px; transition: background-color var(--fm-dur-micro) var(--fm-ease-out); }
.fm-index a:hover { background: var(--fm-surface-raised); }
.fm-index .name { font-size: var(--fm-fs-h2); }
@media (max-width: 760px) {
	.fm-index a { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 16px; min-height: 0; padding: 20px 4px; }
	.fm-index .name { font-size: var(--fm-fs-h2s); }
	.fm-index .tasks { grid-column: 1; grid-row: 2; }
	.fm-index .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Cartes de workflow : même titre, que la carte porte un h2 (listes) ou un h3 (accueil) */
.fm-card h2 { margin: 0; font-size: var(--fm-fs-h3); line-height: 1.25; font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; }
.fm-card h2 a { color: inherit; text-decoration: none; }
.fm-card h2 a::after { content: ""; position: absolute; inset: 0; }

/* Pages de service : le nom du service en h1, la promesse juste dessous */
.fm-ag-svc-top h1 { display: flex; align-items: center; gap: 16px; font-size: var(--fm-fs-h1); }
.fm-ag-svc-top h1 .fm-shape { color: var(--fm-copper); stroke-width: 1.4; }
.fm-ag-promise { margin: 0; max-width: 24em; font-size: var(--fm-fs-h2s); line-height: 1.3; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; color: var(--fm-ink); }
@media (max-width: 1024px) { .fm-ag-svc-top h1 { font-size: var(--fm-fs-h2); } .fm-ag-promise { font-size: var(--fm-fs-h3); } }
@media (max-width: 760px) { .fm-ag-svc-top h1 { font-size: var(--fm-fs-h2); gap: 12px; } .fm-ag-svc-top h1 .fm-shape { width: 24px; height: 24px; } .fm-ag-promise { font-size: var(--fm-fs-h3); } }

/* Liste compacte sans icône (page introuvable) */
.fm-ag-svc-compact a > .nm:first-child { grid-column: 1 / -1; }

/* Encadré de relecture des pages légales : pas de filet coloré épais sur le côté */
.fm-prose .fm-note { border: 1px solid color-mix(in srgb, var(--fm-warning) 45%, transparent); border-radius: var(--fm-radius-card); }

/* Sous-menu Services (ordinateur) : surface claire, comme le reste du site */
body .header-navigation .header-menu-container ul ul.sub-menu, body .header-navigation .header-menu-container ul ul.submenu { background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-2); padding: 8px 0; }
body .header-navigation .header-menu-container ul ul li.menu-item > a { width: 280px; padding: 10px 16px; border-bottom: 0; color: var(--fm-ink); font-size: var(--fm-fs-small); font-weight: 500; }
body .header-navigation .header-menu-container ul ul li.menu-item > a:hover, body .header-navigation .header-menu-container ul ul li.menu-item > a:focus-visible { background: var(--fm-surface-shade); color: var(--fm-action); }
body .header-navigation .header-menu-container ul ul li.current-menu-item > a { color: var(--fm-action); }

/* Menu mobile : fond encre de la marque */
#mobile-drawer .drawer-inner { background: var(--fm-ink); }

/* Zones tactiles d'au moins 44 px sur téléphone */
.fm-crumb a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.fm-ag-path .svc { padding-block: 10px; margin-block: -10px 0; }
.site-branding a.brand { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
	.fm-footer ul { gap: 0; }
	.fm-footer ul a { display: inline-block; padding-block: 12px; }
	.fm-footer .state .legal a { padding-block: 12px; }
}

/* Surfaces du navigateur aux couleurs du site */
html { accent-color: var(--fm-action); caret-color: var(--fm-action); scrollbar-color: #9AA39E var(--fm-surface-shade); }
::selection { background: color-mix(in srgb, var(--fm-lamp) 45%, transparent); color: var(--fm-ink); }
[data-theme="nuit"] ::selection, .fm-night ::selection { background: rgba(242, 179, 61, 0.4); color: #FFFFFF; }
/* Zones tactiles : derniers ajustements mesurés */
.fm-crumb a { padding-block: 13px; margin-block: -13px; }
.fm-ag-item h2 a { display: inline-block; padding-block: 8px; margin-block: -8px; }
@media (max-width: 760px) { .fm-footer .state .legal a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; } }

/* ==========================================================================
   Pages de service (étape 3, 2026-10-27) : listes, autonomie des agents, faits, prix, « pas pour vous »
   ========================================================================== */
.fm-ag-list { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.fm-ag-list li { position: relative; margin: 0; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--fm-rule); font-size: var(--fm-fs-body); line-height: 1.55; }
.fm-ag-list li:first-child { border-top: 1px solid var(--fm-rule); }
.fm-ag-list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 8px; height: 8px; border: 1.5px solid var(--fm-copper); border-radius: 50%; }
.fm-ag-notfor li::before { top: 19px; left: 0; width: 18px; height: 18px; border: 0; border-radius: 0; background: var(--fm-text-subtle); -webkit-mask: var(--fm-i-cross) center / contain no-repeat; mask: var(--fm-i-cross) center / contain no-repeat; }
.fm-ag-auto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
.fm-ag-facts { margin: 0; max-width: 560px; }
.fm-ag-facts > div { padding: 16px 0; border-top: 1px solid var(--fm-rule); }
.fm-ag-facts > div:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-ag-facts dt { font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-text-subtle); }
.fm-ag-facts dd { margin: 4px 0 0; font-size: var(--fm-fs-body); line-height: 1.55; color: var(--fm-ink); }
.fm-ag-price .fm-ag-head { margin-bottom: 16px; }
.fm-ag-price .amount { margin: 0 0 24px; max-width: 34ch; font-size: var(--fm-fs-h3); font-weight: 600; line-height: 1.4; font-variant-numeric: lining-nums tabular-nums; color: var(--fm-ink); }
.fm-ag-price .fm-ag-list { margin-bottom: 24px; }
.fm-ag-svc-head .fm-small { margin: 0; }
.fm-ag-sec .fm-small { margin: 16px 0 0; }
@media (max-width: 1024px) {
	.fm-ag-auto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.fm-ag-list li { font-size: var(--fm-fs-body); }
	.fm-ag-price .amount { font-size: var(--fm-fs-h3); }
}

/* ==========================================================================
   Services (vue d'ensemble) et Tarifs (étape 4, 2026-10-27)
   ========================================================================== */
.fm-ag-poles-nav { margin-top: 24px; }
.fm-ag-poles-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fm-ag-poles-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-chip); background: var(--fm-surface-raised); color: var(--fm-ink); font-size: var(--fm-fs-small); font-weight: 600; text-decoration: none; }
.fm-ag-poles-nav a:hover, .fm-ag-poles-nav a:focus-visible { border-color: var(--fm-ink); }
.fm-ag-poles-nav .fm-shape, .fm-ag-pole-title .fm-shape { color: var(--fm-copper); }
.fm-ag-pole-title { display: flex; align-items: center; gap: 12px; }
[id="demarrer"], [id="automatiser"], [id="ia"], [id="accompagner"] { scroll-margin-top: 96px; }
.fm-ag-svc:not(.fm-ag-svc-compact) a > .fm-shape { align-self: start; margin-top: 8px; }
.fm-ag-svc .px { display: block; margin-top: 8px; font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-ink); font-variant-numeric: lining-nums tabular-nums; }
.fm-ag-combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
.fm-ag-combos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-ag-combos .chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; padding: 0; }
.fm-ag-combos .chain li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.fm-ag-combos .chain li + li::before { content: ""; width: 16px; height: 16px; background: var(--fm-text-subtle); -webkit-mask: var(--fm-i-arrow) center / contain no-repeat; mask: var(--fm-i-arrow) center / contain no-repeat; }
.fm-ag-combos .chain a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fm-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-ag-combos .chain .fm-shape { color: var(--fm-copper); }
.fm-ag-rates + .fm-ag-rates { margin-top: 64px; }
.fm-ag-rates .fm-ag-pole-title { margin: 0 0 16px; font-size: var(--fm-fs-h2s); }
.fm-ag-table { width: 100%; border-collapse: collapse; font-size: var(--fm-fs-body); line-height: 1.5; }
.fm-ag-table thead th { padding: 0 16px 12px 0; border-bottom: 2px solid var(--fm-ink); font-size: var(--fm-fs-small); font-weight: 600; text-align: left; color: var(--fm-text-subtle); }
.fm-ag-table tbody th, .fm-ag-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--fm-rule); text-align: left; vertical-align: top; }
.fm-ag-table tbody th { width: 28%; font-weight: 600; }
.fm-ag-table tbody th a { color: var(--fm-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-ag-table td:nth-child(2) { width: 40%; font-weight: 600; color: var(--fm-ink); font-variant-numeric: lining-nums tabular-nums; }
.fm-ag-table td { color: var(--fm-text-muted); }
.fm-ag-guarantee { padding: 32px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-guarantee .fm-ag-head { margin-bottom: 16px; }
.fm-ag-guarantee > p { margin: 0 0 16px; font-size: var(--fm-fs-body); line-height: 1.55; }
@media (max-width: 1024px) {
	.fm-ag-combos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.fm-ag-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.fm-ag-table, .fm-ag-table tbody, .fm-ag-table tr, .fm-ag-table th, .fm-ag-table td { display: block; width: auto; }
	.fm-ag-table tr { padding: 16px 0; border-bottom: 1px solid var(--fm-rule); }
	.fm-ag-table tbody th, .fm-ag-table td { padding: 4px 0; border: 0; width: auto; }
	.fm-ag-table td::before { content: attr(data-label) " : "; font-weight: 600; color: var(--fm-text-subtle); }
	.fm-ag-table tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
	.fm-ag-table td:nth-child(2) { width: auto; }
	.fm-ag-guarantee { padding: 24px; }
	.fm-ag-rates .fm-ag-pole-title { font-size: var(--fm-fs-h2s); }
}

/* ==========================================================================
   Navigation (étape 5, 2026-10-27) : méga-menu Services, bouton WhatsApp flottant, pied de page
   Kadence gratuit n'a pas de méga-menu : le sous-menu « Services » (classe fm-mega, posée dans le menu
   WordPress) s'affiche en grille de 4 pôles, et leurs services (3e niveau) y restent visibles.
   ========================================================================== */
:root {
	--fm-i-cercle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3C/svg%3E");
	--fm-i-losange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M10 1.8 L18.2 10 L10 18.2 L1.8 10 Z'/%3E%3C/svg%3E");
	--fm-i-hexagone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M10 2 L17 6 V14 L10 18 L3 14 V6 Z'/%3E%3C/svg%3E");
	--fm-i-gelule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='1.8' y='5.5' width='16.4' height='9' rx='4.5'/%3E%3C/svg%3E");
}
@media (min-width: 1025px) {
	.site-main-header-inner-wrap { position: relative; }
	.header-navigation, .header-navigation .header-menu-container, .header-navigation .header-menu-container > ul, body .header-navigation li.fm-mega { position: static; }
	body .header-navigation .header-menu-container li.fm-mega > ul.sub-menu { left: auto; right: 0; top: 100%; width: min(960px, 100%); padding: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
	.nav--toggle-sub li.fm-mega:hover > ul.sub-menu, .nav--toggle-sub li.fm-mega.menu-item--toggled-on > ul.sub-menu, .nav--toggle-sub li.fm-mega:focus-within > ul.sub-menu { display: grid; }
	body .header-navigation .header-menu-container li.fm-mega ul.sub-menu ul.sub-menu { display: block; position: static; left: auto; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; }
	body .header-navigation .header-menu-container li.fm-mega ul ul li.menu-item > a { width: auto; }
	body .header-navigation .header-menu-container ul ul li.menu-item.fm-mega-pole > a { width: auto; display: flex; align-items: center; gap: 8px; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--fm-rule); font-size: var(--fm-fs-small); font-weight: 700; color: var(--fm-text-subtle); }
	body .header-navigation .header-menu-container ul ul li.menu-item.fm-mega-pole > a:hover { background: none; color: var(--fm-action); }
	body .header-navigation .header-menu-container li.fm-mega-pole ul li.menu-item > a { padding: 10px 0; }
	body .header-navigation .header-menu-container li.fm-mega-pole ul li.menu-item > a:hover, body .header-navigation .header-menu-container li.fm-mega-pole ul li.menu-item > a:focus-visible { background: none; color: var(--fm-action); text-decoration: underline; text-underline-offset: 4px; }
	.header-navigation li.fm-mega .sub-menu .dropdown-nav-toggle, .header-navigation li.fm-mega .sub-menu .dropdown-nav-special-toggle { display: none; }
	/* Bouton clavier de Kadence (ouvre le panneau) : l’entrée est « static » pour le panneau pleine largeur, le bouton se plaçait donc
	   au bout de l’en-tête. On le remet dans le flux, sur le chevron de « Services ». */
	body .header-navigation li.fm-mega { display: flex; align-items: stretch; }
	body .header-navigation li.fm-mega > a { flex: none; }
	.wp-site-blocks .nav--toggle-sub li.fm-mega > .dropdown-nav-special-toggle { position: relative !important; right: auto; flex: none; width: .9em; margin: 0 0 0 -.9em !important; }
	body .header-navigation .header-menu-container li.fm-mega-foot { grid-column: 1 / -1; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--fm-rule); }
	body .header-navigation .header-menu-container ul ul li.menu-item.fm-mega-foot > a { width: auto; padding: 8px 0; font-weight: 600; color: var(--fm-link); text-decoration: underline; text-underline-offset: 4px; }
}
li.fm-mega-pole > a::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--fm-copper); -webkit-mask: var(--fm-i-cercle) center / contain no-repeat; mask: var(--fm-i-cercle) center / contain no-repeat; }
li.fm-pole-losange > a::before { -webkit-mask-image: var(--fm-i-losange); mask-image: var(--fm-i-losange); }
li.fm-pole-hexagone > a::before { -webkit-mask-image: var(--fm-i-hexagone); mask-image: var(--fm-i-hexagone); }
li.fm-pole-gelule > a::before { -webkit-mask-image: var(--fm-i-gelule); mask-image: var(--fm-i-gelule); }
#mobile-drawer li.fm-mega-pole > a { display: flex; align-items: center; gap: 8px; }

/* Bouton WhatsApp flottant : pastille sur ordinateur, rond de 56 px sur téléphone */
.fm-wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--fm-action); color: var(--fm-on-action); font-weight: 600; text-decoration: none; box-shadow: var(--fm-shadow-2); transition: transform var(--fm-dur-small) var(--fm-ease-out), background-color var(--fm-dur-micro) var(--fm-ease-out); }
.fm-wa-float:hover { background: var(--fm-action-hover, var(--fm-action)); color: var(--fm-on-action); transform: translateY(-2px); }
.fm-wa-float:focus-visible { outline: 3px solid var(--fm-focus, var(--fm-ink)); outline-offset: 3px; }
/* Revue du 14 nov. 2026 (1.2) : sous 1100 px, l'icône seule, pour ne plus recouvrir les fins de ligne */
@media (max-width: 1100px) {
	.fm-wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; }
	.fm-wa-float .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 760px) {
	.fm-wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
	.fm-wa-float .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.single-workflow .fm-wa-float { bottom: 96px; }
}
/* 1.2 : la pastille s'efface là où une action WhatsApp ou l'appel final est déjà à l'écran (héros, appel final, pied de page ; inc/setup.php). */
.fm-wa-float { transition: transform var(--fm-dur-small) var(--fm-ease-out), background-color var(--fm-dur-micro) var(--fm-ease-out), opacity var(--fm-dur-small) var(--fm-ease-out), visibility 0s; }
.fm-wa-float.is-away { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: transform var(--fm-dur-small) var(--fm-ease-out), opacity var(--fm-dur-small) var(--fm-ease-out), visibility 0s linear var(--fm-dur-small); }
@media (prefers-reduced-motion: reduce) { .fm-wa-float { transition: none; } .fm-wa-float:hover { transform: none; } }
@media print { .fm-wa-float { display: none; } }

/* Pied de page : colonne « Nous joindre » */
.fm-footer .reach ul { list-style: none; margin: 0; padding: 0; }
.fm-footer .reach .note { color: var(--fm-text-muted); font-size: var(--fm-fs-small); }
@media (max-width: 1024px) { .fm-footer .cols { grid-template-columns: 1fr 1fr; } .fm-footer .brand { grid-column: 1 / -1; } }
/* Menu mobile (fond encre) : formes des pôles et page en cours lisible (le vert d'action manque de contraste sur l'encre) */
#mobile-drawer li.fm-mega-pole > .drawer-nav-drop-wrap > a { display: flex; align-items: center; gap: 8px; }
#mobile-drawer li.fm-mega-pole > .drawer-nav-drop-wrap > a::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--fm-lamp); -webkit-mask: var(--fm-i-cercle) center / contain no-repeat; mask: var(--fm-i-cercle) center / contain no-repeat; }
#mobile-drawer li.fm-pole-losange > .drawer-nav-drop-wrap > a::before { -webkit-mask-image: var(--fm-i-losange); mask-image: var(--fm-i-losange); }
#mobile-drawer li.fm-pole-hexagone > .drawer-nav-drop-wrap > a::before { -webkit-mask-image: var(--fm-i-hexagone); mask-image: var(--fm-i-hexagone); }
#mobile-drawer li.fm-pole-gelule > .drawer-nav-drop-wrap > a::before { -webkit-mask-image: var(--fm-i-gelule); mask-image: var(--fm-i-gelule); }
#mobile-drawer .menu-item.current-menu-item > a, #mobile-drawer .menu-item.current-menu-item > .drawer-nav-drop-wrap > a { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.fm-footer .nowrap { white-space: nowrap; }
@media (max-width: 760px) { .fm-footer ul a { min-width: 44px; } }

/* ==========================================================================
   Accueil de l'agence d'automatisation et d'IA (étape 6, 2026-10-27)
   ========================================================================== */

/* Conversation simulée (démonstration, clinique fictive) : les messages arrivent une fois, puis restent */
.fm-chat-demo { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.fm-chat-demo .phone { overflow: hidden; border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-bubble); background: var(--fm-surface-raised); box-shadow: var(--fm-shadow-2); }
.fm-chat-demo .bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--fm-ink); color: #FFFFFF; }
.fm-chat-demo .bar strong { display: block; font-size: var(--fm-fs-small); line-height: 1.3; }
.fm-chat-demo .bar small { display: block; font-size: var(--fm-fs-meta); color: rgba(255, 255, 255, 0.78); }
.fm-chat-demo .avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fm-lamp); color: var(--fm-ink); font-size: var(--fm-fs-meta); font-weight: 700; }
.fm-chat-demo .chat { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px 16px 24px; background: var(--fm-surface); }
.fm-chat-demo .chat li { display: flex; flex-direction: column; max-width: 86%; margin: 0; animation: fm-chat-in 420ms var(--fm-ease-out) both; animation-delay: calc(400ms + var(--d) * 1100ms); }
.fm-chat-demo .chat li span { padding: 12px 16px; border-radius: var(--fm-radius-bubble); font-size: var(--fm-fs-small); line-height: 1.45; }
.fm-chat-demo .chat time { margin-top: 4px; font-size: var(--fm-fs-meta); color: var(--fm-text-subtle); font-variant-numeric: lining-nums tabular-nums; }
.fm-chat-demo .chat .msg-in { align-self: flex-start; }
.fm-chat-demo .chat .msg-in span { background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-bottom-left-radius: 4px; color: var(--fm-ink); }
.fm-chat-demo .chat .msg-out { align-self: flex-end; align-items: flex-end; }
.fm-chat-demo .chat .msg-out span { background: #DFEDE7; border-bottom-right-radius: 4px; color: var(--fm-ink); }
.fm-chat-demo .chat .msg-sys { align-self: center; max-width: 100%; }
.fm-chat-demo .chat .msg-sys span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--fm-ink); color: #FFFFFF; font-size: var(--fm-fs-meta); }
.fm-chat-demo .chat .msg-sys span::before { content: ""; width: 14px; height: 14px; background: var(--fm-lamp); -webkit-mask: var(--fm-i-check) center / contain no-repeat; mask: var(--fm-i-check) center / contain no-repeat; }
.fm-chat-demo figcaption { margin-top: 12px; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-muted); text-align: center; }
@keyframes fm-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fm-chat-demo .chat li { animation: none; } }

/* Héros : le fil qui converge (fm_ag_wire_tools, docs/plan-animation.md). Les outils du client, à droite ;
   le script de inc/setup.php trace un fil de cuivre de chacun jusqu'au point du titre, une fois. Sous 1025 px :
   pas de fils, les outils passent en rangée sous les boutons. Sans JavaScript : les outils seuls. */
.fm-ag-hero .in { position: relative; }
.fm-nowrap { white-space: nowrap; }
.fm-ag-hero .copy, .fm-wire-tools { position: relative; z-index: 1; }
.fm-ag-pt { position: relative; display: inline-block; width: 0.18em; height: 0.18em; margin-left: 0.05em; border-radius: 50%; background: var(--fm-copper); }
.fm-ag-pt::after { content: ""; position: absolute; inset: -0.22em; border: 1.5px solid var(--fm-copper); border-radius: 50%; opacity: 0; }
.fm-wire-tools { justify-self: end; display: grid; gap: 14px; justify-items: start; }
.fm-wire-tools ul { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.fm-wire-tools li { margin: 0; }
.fm-wire-tools .chip { display: inline-flex; align-items: center; gap: 10px; margin-left: var(--dx, 0); padding: 9px 15px 9px 12px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: 999px; box-shadow: var(--fm-shadow-1); font-size: var(--fm-fs-small); font-weight: 550; line-height: 1.2; color: var(--fm-ink); white-space: nowrap; animation: fm-wire-chip 360ms var(--fm-ease-out) backwards; animation-delay: calc(120ms + var(--i) * 55ms); }
.fm-wire-tools .chip::before { content: ""; flex: none; box-sizing: border-box; width: 9px; height: 9px; border: 1.5px solid var(--fm-copper); border-radius: 50%; }
.fm-wire-tools .cap { margin: 6px 0 0; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-subtle); }
.fm-wire { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fm-wire path { fill: none; stroke: var(--fm-copper); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.fm-wire path.is-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: fm-wire-draw 900ms var(--fm-ease-inout) backwards; animation-delay: calc(450ms + var(--i) * 70ms); }
.fm-ag-hero .in.is-wired .fm-ag-pt::after { animation: fm-wire-ring 700ms var(--fm-ease-out) 1350ms; }
@keyframes fm-wire-chip { from { opacity: 0; transform: translateX(10px); } }
@keyframes fm-wire-draw { from { stroke-dashoffset: 1; } }
@keyframes fm-wire-ring { from { opacity: 0.8; transform: scale(0.6); } to { opacity: 0; transform: scale(1.6); } }
@media (max-width: 1024px) {
	.fm-wire { display: none; }
	.fm-wire-tools { justify-self: start; }
	.fm-wire-tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
	.fm-wire-tools .chip { margin-left: 0; padding: 7px 12px 7px 10px; font-size: var(--fm-fs-small); }
}

/* Journal des agents (fm_ag_journal_demo), section Exemples de l'accueil : l'écran qu'un client verrait le
   matin. inc/setup.php pose is-armed (fenêtre cachée) seulement si le journal est sous la ligne de flottaison,
   puis is-play quand il entre dans l'écran : la fenêtre monte, les lignes suivent, la notification se pose (1,4 s). */
.fm-home-examples { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.fm-home-examples .fm-ag-auto { grid-template-columns: minmax(0, 1fr); }
.fm-home-examples .fm-ag-cell:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-journal { position: relative; margin: 0; padding-top: 72px; } /* la notification ne chevauche plus l’en-tête (3.5) */
.fm-journal .win { overflow: hidden; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-2); }
.fm-journal .win-bar { padding: 14px 20px; background: var(--fm-surface); border-bottom: 1px solid var(--fm-rule); font-size: var(--fm-fs-small); font-weight: 650; line-height: 1.3; color: var(--fm-ink); }
.fm-journal .win-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 14px 20px 6px; font-size: var(--fm-fs-meta); line-height: 1.4; color: var(--fm-text-muted); }
.fm-journal .win-sum > span:not(.when) { padding: 3px 10px; border-radius: 999px; background: var(--fm-surface-dense); }
.fm-journal .win-sum b { font-weight: 650; color: var(--fm-ink); }
.fm-journal .when { margin-left: auto; font: 400 var(--fm-fs-meta)/1.4 var(--fm-mono); color: var(--fm-text-subtle); }
.fm-journal .log { list-style: none; margin: 0; padding: 4px 8px 8px; }
.fm-journal .row { display: grid; grid-template-columns: 56px 28px minmax(0, 1fr) auto; grid-template-areas: "t i x s"; gap: 0 12px; align-items: center; margin: 0; padding: 12px; border-radius: var(--fm-radius-card); }
.fm-journal .row + .row { box-shadow: 0 -1px 0 var(--fm-rule); }
.fm-journal .row.is-wait { background: var(--fm-warning-soft); box-shadow: none; }
.fm-journal .row.is-wait + .row { box-shadow: none; }
.fm-journal time { grid-area: t; font: 400 var(--fm-fs-meta)/1.4 var(--fm-mono); color: var(--fm-text-subtle); white-space: nowrap; }
.fm-journal .ic { grid-area: i; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fm-surface-dense); color: var(--fm-copper); }
.fm-journal .x { grid-area: x; min-width: 0; }
.fm-journal .x strong { display: block; font-size: var(--fm-fs-small); font-weight: 600; line-height: 1.3; color: var(--fm-ink); }
.fm-journal .m { display: block; margin-top: 2px; font-size: var(--fm-fs-meta); line-height: 1.4; color: var(--fm-text-subtle); }
.fm-journal .fm-tag { grid-area: s; justify-self: end; white-space: nowrap; }
.fm-journal .notif { position: absolute; top: 0; right: -16px; z-index: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; width: 264px; padding: 12px 14px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-2); }
.fm-journal .notif .ok { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--fm-success-soft); }
.fm-journal .notif .ok::before { content: ""; position: absolute; inset: 9px; background: var(--fm-success); -webkit-mask: var(--fm-i-check) center / contain no-repeat; mask: var(--fm-i-check) center / contain no-repeat; }
.fm-journal .notif strong { display: block; font-size: var(--fm-fs-small); line-height: 1.25; color: var(--fm-ink); }
.fm-journal figcaption { margin-top: 12px; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-muted); text-align: right; }
.fm-journal.is-armed .win, .fm-journal.is-armed .notif { opacity: 0; }
.fm-journal.is-play .win { animation: fm-j-rise 480ms var(--fm-ease-out) 80ms backwards; }
.fm-journal.is-play .row { animation: fm-j-row 320ms var(--fm-ease-out) backwards; animation-delay: calc(300ms + var(--i) * 60ms); }
.fm-journal.is-play .notif { animation: fm-j-drop 400ms var(--fm-ease-out) 950ms backwards; }
@keyframes fm-j-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fm-j-row { from { opacity: 0; transform: translateY(6px); } }
@keyframes fm-j-drop { from { opacity: 0; transform: translateY(-8px) scale(0.96); } }
@media (max-width: 1024px) {
	.fm-home-examples { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.fm-journal .notif { right: 0; }
}
@media (max-width: 560px) {
	.fm-journal { display: flex; flex-direction: column; padding-top: 0; }
	.fm-journal .notif { position: relative; top: auto; right: auto; order: -1; width: auto; margin: 0 0 12px 24px; }
	.fm-journal .win-bar { padding: 12px 14px; }
	.fm-journal .win-sum { padding: 12px 14px 4px; }
	.fm-journal .when { flex-basis: 100%; margin-left: 0; }
	.fm-journal .row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "i x s" "i t s"; padding: 10px 8px; }
	.fm-journal time { margin-top: 2px; }
	.fm-journal figcaption { text-align: left; }
}
@media print { .fm-journal.is-armed .win, .fm-journal.is-armed .notif { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.fm-wire-tools .chip, .fm-wire path.is-draw, .fm-ag-hero .in.is-wired .fm-ag-pt::after { animation: none; }
	.fm-journal .win, .fm-journal .row, .fm-journal .notif { animation: none !important; opacity: 1 !important; }
}

/* Tâches qui prennent du temps */
.fm-ag-pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fm-rule); }
.fm-ag-pains li { margin: 0; border-bottom: 1px solid var(--fm-rule); }
.fm-ag-pains a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 24px; padding: 20px 0; color: inherit; text-decoration: none; }
.fm-ag-pains .q { font-size: var(--fm-fs-h3); font-weight: 600; line-height: 1.35; color: var(--fm-ink); }
.fm-ag-pains .svc { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-ag-pains .svc .fm-shape { color: var(--fm-copper); }
.fm-ag-pains a:hover .q { text-decoration: underline; text-underline-offset: 4px; }

/* Les 4 pôles */
.fm-ag-poles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.fm-ag-poles .pole { padding-top: 24px; border-top: 2px solid var(--fm-ink); }
.fm-ag-poles h3 { margin: 0 0 8px; font-size: var(--fm-fs-h3); line-height: 1.25; }
.fm-ag-poles h3 a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--fm-ink); text-decoration: none; }
.fm-ag-poles h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fm-ag-poles h3 .fm-shape { color: var(--fm-copper); }
.fm-ag-poles .pole > p { margin: 0 0 16px; font-size: var(--fm-fs-small); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-poles ul { list-style: none; margin: 0; padding: 0; }
.fm-ag-poles li { margin: 0; border-top: 1px solid var(--fm-rule); }
.fm-ag-poles li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-weight: 600; color: var(--fm-ink); text-decoration: none; }
.fm-ag-poles li a:hover { color: var(--fm-action); text-decoration: underline; text-underline-offset: 4px; }
.fm-ag-auto .fm-ag-cell h3 { display: flex; align-items: center; gap: 12px; }
.fm-ag-auto .fm-ag-cell h3 .fm-shape { color: var(--fm-copper); }
.fm-ag-auto .fm-ag-cell p { margin-bottom: 16px; }

/* Outils */
.fm-ag-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fm-ag-tools li { margin: 0; padding: 8px 16px; border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-chip); background: var(--fm-surface-raised); font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-ink); }

/* Prix d'appel */
.fm-ag-prices { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--fm-ink); }
.fm-ag-prices li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--fm-rule); }
.fm-ag-prices .k { font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-text-subtle); }
.fm-ag-prices .v { font-size: var(--fm-fs-h2s); font-weight: 650; line-height: 1.2; color: var(--fm-ink); font-variant-numeric: lining-nums tabular-nums; }
.fm-ag-prices .n { font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-ag-guarantee-line { margin: 0; max-width: 70ch; font-size: var(--fm-fs-body); line-height: 1.6; color: var(--fm-text); }
.fm-ag-text { margin: 0 0 16px; max-width: 60ch; font-size: var(--fm-fs-body); line-height: 1.6; }

@media (max-width: 1024px) {
	.fm-ag-poles, .fm-ag-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-chat-demo { justify-self: start; }
}
@media (max-width: 760px) {
	.fm-ag-poles, .fm-ag-prices { grid-template-columns: minmax(0, 1fr); }
	.fm-ag-pains .q { font-size: var(--fm-fs-body); }
	.fm-ag-prices .v { font-size: var(--fm-fs-h2s); }
}

/* ==========================================================================
   Étape 7 : Audit gratuit, Démonstrations, Financement, Merci, Contact, À propos
   ========================================================================== */
.fm-ag-formtitle { margin: 0 0 24px; font-size: var(--fm-fs-h2s); }
.fm-ag-alt .fm-btn { margin-top: 16px; }
.fm-ag-after { margin-top: 24px; }
.fm-ag-sec .fm-ag-list a, .fm-ag-text a, .fm-ag-cell p a { color: var(--fm-link); text-decoration: underline; text-underline-offset: 3px; }

/* Exemple de plan d'action (Audit gratuit) */
.fm-ag-sample { margin: 0; padding: 32px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-sample tbody th { padding-right: 16px; font-weight: 600; text-align: left; }
.fm-ag-sample td:nth-child(2) { width: auto; white-space: nowrap; }
.fm-ag-sample figcaption { margin-top: 16px; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-muted); }

/* Démonstrations : texte à gauche, démonstration à droite */
.fm-ag-demo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.fm-ag-demo .fm-ag-list { margin-bottom: 24px; }
.fm-ag-demo .fm-ag-steps { margin-bottom: 24px; }
.fm-ag-demo-link { margin: 0; }
.fm-ag-demo > .fm-chat-demo { justify-self: end; }
.fm-call-demo, .fm-doc-demo { margin: 0; width: 100%; max-width: 420px; justify-self: end; }
.fm-call-demo > .head, .fm-doc-demo > .head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--fm-ink); color: #FFFFFF; border-radius: var(--fm-radius-card) var(--fm-radius-card) 0 0; }
.fm-call-demo .head strong { display: block; font-size: var(--fm-fs-small); }
.fm-call-demo .head small { display: block; font-size: var(--fm-fs-meta); color: rgba(255, 255, 255, 0.78); }
.fm-call-demo .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fm-lamp); }
.fm-call-demo .lines, .fm-doc-demo dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 16px; margin: 0; padding: 20px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-top: 0; }
.fm-call-demo dt, .fm-doc-demo dt { font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-text-subtle); }
.fm-call-demo dd, .fm-doc-demo dd { margin: 0; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-ink); }
.fm-call-sum, .fm-doc-demo .why { margin: 0; padding: 16px 20px; background: #DFEDE7; border: 1px solid var(--fm-rule); border-top: 0; border-radius: 0 0 var(--fm-radius-card) var(--fm-radius-card); font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-ink); }
.fm-call-sum b { display: block; margin-bottom: 4px; }
.fm-doc-demo .head { justify-content: space-between; }
.fm-doc-demo .head .fm-tag { color: var(--fm-ink); background: var(--fm-lamp); border-color: var(--fm-lamp); }
.fm-doc-demo dd { font-variant-numeric: lining-nums tabular-nums; }
.fm-call-demo figcaption, .fm-doc-demo figcaption { margin-top: 12px; font-size: var(--fm-fs-small); line-height: 1.5; color: var(--fm-text-muted); text-align: center; }

/* Financement */
.fm-ag-fund-warn { max-width: 40em; margin: 0; padding: 16px 20px; background: var(--fm-warning-soft); border-left: 3px solid var(--fm-warning); border-radius: 0 var(--fm-radius-card) var(--fm-radius-card) 0; font-size: var(--fm-fs-body); line-height: 1.55; }
.fm-ag-funds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.fm-ag-fund { display: flex; flex-direction: column; padding: 24px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-fund .type { margin: 0 0 8px; font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-copper); }
.fm-ag-fund h3 { margin: 0 0 4px; font-size: var(--fm-fs-h3); line-height: 1.3; }
.fm-ag-fund .by { margin: 0 0 16px; font-size: var(--fm-fs-small); color: var(--fm-text-muted); }
.fm-ag-fund dl { margin: 0 0 20px; }
.fm-ag-fund dt { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fm-rule); font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-text-subtle); }
.fm-ag-fund dt:first-child { margin-top: 0; }
.fm-ag-fund dd { margin: 4px 0 0; font-size: var(--fm-fs-body); line-height: 1.55; }
.fm-ag-fund .fm-link { margin-top: auto; }

/* Merci : trois liens */
.fm-ag-links3 { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Contact : trois canaux */
.fm-ag-channels { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin: 0; padding: 0; }
.fm-ag-channels li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding-top: 24px; border-top: 2px solid var(--fm-ink); }
.fm-ag-channels h2 { margin: 0; font-size: var(--fm-fs-h3); }
.fm-ag-channels p { margin: 0; font-size: var(--fm-fs-body); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-channels .fm-btn { margin-top: auto; overflow-wrap: anywhere; }

/* À propos : fondateur */
.fm-ag-person { display: flex; gap: 24px; align-items: flex-start; padding: 32px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-person .photo { flex: none; width: 120px; height: 150px; object-fit: cover; border-radius: var(--fm-radius-card); }
.fm-ag-person h3 { margin: 0; font-size: var(--fm-fs-h2s); }
.fm-ag-person .role { margin: 4px 0 16px; font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-copper); }
.fm-ag-person p:not(.role) { margin: 0 0 12px; max-width: 60ch; font-size: var(--fm-fs-body); line-height: 1.6; }

@media (max-width: 1024px) {
	.fm-ag-demo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.fm-ag-demo > .fm-chat-demo, .fm-call-demo, .fm-doc-demo { justify-self: start; }
	.fm-ag-links3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.fm-ag-sample { padding: 20px; }
	.fm-ag-person { flex-direction: column; padding: 20px; }
	.fm-ag-formtitle { font-size: var(--fm-fs-h3); }
}

/* Textes selon le pays du visiteur (inc/pays.php) : une seule version visible ; sans pays reconnu, la version générale */
html:not([data-fm-zone]) .fm-loc:not(.fm-loc-def),
html[data-fm-zone="autre"] .fm-loc:not(.fm-loc-def),
html[data-fm-zone="qc"] .fm-loc:not(.fm-loc-qc),
html[data-fm-zone="eu"] .fm-loc:not(.fm-loc-eu),
html[data-fm-zone="ma"] .fm-loc:not(.fm-loc-ma),
html[data-fm-zone="ao"] .fm-loc:not(.fm-loc-ao) { display: none; }
.fm-footer .state { align-items: center; }

/* Étape 8 : encart de la bibliothèque, filtres groupés */
.fm-ag-wfband { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fm-ag-wfband .cell { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-radius: var(--fm-radius-card); box-shadow: var(--fm-shadow-1); }
.fm-ag-wfband h3 { margin: 0; font-size: var(--fm-fs-h3); }
.fm-ag-wfband p { margin: 0 0 8px; max-width: 46ch; font-size: var(--fm-fs-body); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-wfband .fm-btn { margin-top: auto; }
.fm-wf-filters { display: grid; gap: 16px; margin-bottom: 32px; }
.fm-wf-filters .row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 12px; }
.fm-wf-filters .lab { padding-top: 8px; font-size: var(--fm-fs-small); font-weight: 600; color: var(--fm-text-subtle); }
@media (max-width: 760px) {
	.fm-ag-wfband { grid-template-columns: minmax(0, 1fr); }
	.fm-ag-wfband .cell { padding: 20px; }
	.fm-wf-filters .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.fm-wf-filters .lab { padding-top: 0; }
}

/* Démonstrations : écoute de l'appel */
.fm-call-demo .listen { padding: 12px 20px; background: var(--fm-surface-raised); border: 1px solid var(--fm-rule); border-top: 0; }
.fm-call-demo .listen audio { display: block; width: 100%; height: 44px; }
.fm-call-demo dt.now, .fm-call-demo dd.now { color: var(--fm-ink); }
.fm-call-demo dd.now { background: var(--fm-warning-soft); box-shadow: -8px 0 0 var(--fm-warning-soft), 8px 0 0 var(--fm-warning-soft); border-radius: var(--fm-radius-chip); }
.fm-call-demo dt.now { color: var(--fm-copper); }

/* ==========================================================================
   États des liens et des boutons (survol, clic, toucher), une seule logique pour tout le site
   - Liens dans le texte (verts, soulignés) : au survol et au clic, vert plus foncé et trait plus épais.
     Dans les sections « nuit », --fm-action-hover vaut le blanc.
   - Fil d’Ariane et liens des tableaux (encre ou gris) : au survol, encre et trait plus épais.
   - Bouton d’en-tête (Kadence) : même réaction que .fm-btn, sans l’ombre ajoutée par Kadence.
   - Au toucher (téléphone) : un voile vert léger au lieu du rectangle bleu du navigateur.
   - Focus clavier : contour 2 px (règle :focus-visible du début de fichier).
   ========================================================================== */
html { -webkit-tap-highlight-color: rgba(11, 107, 76, 0.14); }
:is(.fm-link, .fm-ag-text a, .fm-ag-list a, .fm-ag-alt a, .fm-ag-cell p a, .fm-small a, .fm-ag-after a, .fm-prose a, .fm-legal a):is(:hover, :active) { color: var(--fm-action-hover); text-decoration-thickness: 2px; }
:is(.fm-crumb a, .fm-ag-table tbody th a):is(:hover, :active) { color: var(--fm-ink); text-decoration-thickness: 2px; }
#masthead .header-button:is(:hover, :focus, :active), #masthead .button:is(:hover, :focus, :active) { box-shadow: none; }
#masthead .header-button:active, #masthead .button:active { transform: translateY(1px); }


/* ==========================================================================
   Revue du design du 14 nov. 2026 (docs/revue-design-2026-11-14.md) : ajouts
   ========================================================================== */

/* 2.5 Mesure : environ 70 caractères au plus par ligne de texte courant. En em et non en ch : le zéro d’Archivo est large,
   68ch donnaient jusqu’à 90 caractères. Spécificité nulle : les classes plus étroites gardent leur valeur. */
:where(.fm-area) p, :where(.fm-prose) :where(p, li) { max-width: 36em; }
:where(.fm-area) :where(.fm-ag-list, .fm-checks) > li { max-width: 36em; }

/* 3.1 Trois gabarits de section.
   a) Titre à gauche, contenu long à droite : le titre reste à l'écran pendant le défilement. */
@media (min-width: 1025px) {
	.fm-ag-split > .fm-ag-head { position: sticky; top: 96px; }
}
/* b) Sections majeures : plus d'air (96 px, 128 px au-dessus des exemples). */
.fm-sec-major { padding-block: 96px; }
.fm-sec-showcase { padding-top: 128px; }
@media (max-width: 1024px) { .fm-sec-major { padding-block: 64px; } .fm-sec-showcase { padding-top: 72px; } }
@media (max-width: 760px)  { .fm-sec-major { padding-block: 48px; } .fm-sec-showcase { padding-top: 56px; } }
/* c) Fin de l'alternance stricte : deux sections claires qui se suivent sont séparées par un filet aligné sur le texte. */
.fm-ag-sec:not(.fm-dense-bg):not([data-theme]) + .fm-ag-sec:not(.fm-dense-bg):not([data-theme]) { padding-top: 0; }
.fm-ag-sec:not(.fm-dense-bg):not([data-theme]) + .fm-ag-sec:not(.fm-dense-bg):not([data-theme]) > .fm-wrap { padding-top: 64px; background: linear-gradient(var(--fm-rule), var(--fm-rule)) center top / calc(100% - 64px) 1px no-repeat; }
.fm-ag-sec.fm-sec-major:not(.fm-dense-bg):not([data-theme]) + .fm-ag-sec:not(.fm-dense-bg):not([data-theme]) > .fm-wrap,
.fm-ag-sec:not(.fm-dense-bg):not([data-theme]) + .fm-ag-sec.fm-sec-major:not(.fm-dense-bg):not([data-theme]) > .fm-wrap { padding-top: 96px; }
@media (max-width: 1024px) {
	.fm-ag-sec:not(.fm-dense-bg):not([data-theme]) + .fm-ag-sec:not(.fm-dense-bg):not([data-theme]) > .fm-wrap { padding-top: 48px; }
}
@media (max-width: 760px) {
	.fm-ag-sec:not(.fm-dense-bg):not([data-theme]) + .fm-ag-sec:not(.fm-dense-bg):not([data-theme]) > .fm-wrap { padding-top: 40px; background-size: calc(100% - 40px) 1px; }
}

/* 3.2 Grilles : un dernier élément seul s'étale sur toute la ligne. */
.fm-ag-grid2 > :last-child:nth-child(odd),
.fm-ag-trades > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.fm-ag-more { margin: 32px 0 0; }
/* Pôle d'un seul service (page Services) : titre à gauche, service à droite. */
.fm-ag-split > .fm-ag-svc a { grid-template-columns: 32px minmax(0, 1fr) auto; }
.fm-ag-split > .fm-ag-svc .go { grid-column: 3; grid-row: 1; }
.fm-ag-split > .fm-ag-svc .rs { grid-column: 2 / -1; grid-row: 2; }

/* 3.3 Héros de l'accueil : un seul motif de fond, le quadrillage révélé par la lampe ; plus de dégradé fixe ni de bandes obliques. */
.fm-ag-hero { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(242, 179, 61, calc(0.22 * var(--fm-lamp-on, 1))), transparent 70%), var(--fm-surface); }
.fm-ag-hero::after { content: none; }

/* 3.5 Ce qui vous prend du temps : le lien du service reste sur la ligne de sa question ; il passe dessous seulement sur téléphone. */
@media (max-width: 560px) { .fm-ag-pains a { grid-template-columns: minmax(0, 1fr); } }

/* Bande de liens de l'accueil (données, financement, métiers, outils), 1.3 */
.fm-ag-band { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin: 0; padding: 0; }
.fm-ag-band li { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 20px; border-top: 2px solid var(--fm-ink); }
.fm-ag-band h3 { margin: 0; font-size: var(--fm-fs-h3); line-height: 1.3; }
.fm-ag-band p { margin: 0 0 4px; font-size: var(--fm-fs-small); line-height: 1.55; color: var(--fm-text-muted); }
.fm-ag-band .fm-link { margin-top: auto; align-self: flex-start; }

/* 2.7 Zones cliquables des listes du pied de page (ordinateur ; le téléphone a déjà 44 px). */
@media (min-width: 761px) {
	.fm-footer ul { gap: 4px; }
	.fm-footer ul a { display: inline-block; padding-block: 4px; }
	.fm-footer .state .legal a { display: inline-block; padding-block: 4px; }
}

/* 3.5 Tarifs : la garantie et le paiement, deux cartes de même hauteur. */
.fm-ag-two:has(> .fm-ag-guarantee + .fm-ag-guarantee) { align-items: stretch; }

/* Méga-menu « Services » (ordinateur) : il se fermait dès que la souris quittait l'entrée, car un vide de 12 px
   sépare l'entrée du panneau et le chemin en diagonale vers un service sort de l'entrée. Correctif : un pont invisible
   comble le vide, et la fermeture attend 300 ms, le temps d'atteindre le panneau (ouverture immédiate). */
@media (min-width: 1025px) {
	body .header-navigation .header-menu-container li.fm-mega > ul.sub-menu { display: grid; visibility: hidden; opacity: 0; transition: opacity 120ms var(--fm-ease-out) 180ms, visibility 0s linear 300ms; }
	body .header-navigation .header-menu-container li.fm-mega:hover > ul.sub-menu,
	body .header-navigation .header-menu-container li.fm-mega.menu-item--toggled-on > ul.sub-menu,
	body .header-navigation .header-menu-container li.fm-mega:focus-within > ul.sub-menu { visibility: visible; opacity: 1; transition: opacity 120ms var(--fm-ease-out), visibility 0s; }
	body .header-navigation .header-menu-container li.fm-mega > ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
}
@media (min-width: 1025px) and (prefers-reduced-motion: reduce) {
	body .header-navigation .header-menu-container li.fm-mega > ul.sub-menu { transition: visibility 0s linear 300ms; }
	body .header-navigation .header-menu-container li.fm-mega:hover > ul.sub-menu,
	body .header-navigation .header-menu-container li.fm-mega.menu-item--toggled-on > ul.sub-menu,
	body .header-navigation .header-menu-container li.fm-mega:focus-within > ul.sub-menu { transition: none; }
}

/* Blocs FlowMétier (inc/blocs.php) : l'enveloppe ACF des blocs enfants est retirée côté public ; filet de sécurité si elle revenait. */
.acf-innerblocks-container { display: contents; }
