/* FMAC — Pages modulables (contenu en blocs WordPress).
   Le design s’appuie sur des classes de sections (fm-sec--…) et de composants : les textes restent
   dans l’éditeur. Couleurs, arrondis et police viennent des réglages « Apparence » (variables --fm-…). */

.fmac .fm-blocks {
	--fm-gutter: max(48px, calc((100% - var(--fm-max)) / 2));
	--ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5l7 7-7 7'/%3E%3C/svg%3E");
	--ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
	--ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 15 12-10 12 10M7 13v14h18V13M13 27v-9h6v9'/%3E%3C/svg%3E");
	--ic-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 27h22M8 27V7h16v20M12 12h2m4 0h2m-8 5h2m4 0h2m-7 10v-5h6v5'/%3E%3C/svg%3E");
	--ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 4 11 4v8c0 7-11 12-11 12S5 23 5 16V8Z'/%3E%3Cpath d='m11 15 4 4 7-8'/%3E%3C/svg%3E");
	--ic-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26 13c0 8-10 16-10 16S6 21 6 13a10 10 0 0 1 20 0Z'/%3E%3Ccircle cx='16' cy='13' r='3'/%3E%3C/svg%3E");
	--ic-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13' cy='11' r='5'/%3E%3Cpath d='M4 28v-4a9 9 0 0 1 18 0v4M23 6a5 5 0 0 1 0 10m3 4c3 1 4 4 4 8'/%3E%3C/svg%3E");
	color: var(--fm-text);
}
.fmac .fm-blocks :where(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-cover__inner-container) > * { margin-block-start: 0; }
.fmac .fm-blocks .wp-block-group, .fmac .fm-blocks .wp-block-column { min-width: 0; }

/* Typographie */
.fmac .fm-blocks p { margin: 0 0 16px; color: var(--fm-muted); font-size: 15px; line-height: 1.8; }
.fmac .fm-blocks p:last-child { margin-bottom: 0; }
.fmac .fm-blocks h1, .fmac .fm-blocks h2, .fmac .fm-blocks h3 { color: var(--fm-text); font-family: var(--fm-font); text-wrap: balance; overflow-wrap: break-word; }
.fmac .fm-blocks h2 { font-size: clamp(29px, 3.25vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; margin: 0 0 18px; }
.fmac .fm-blocks h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 14px; }
.fmac .fm-blocks em { font-style: normal; color: var(--fm-accent-dark); }
body .fmac .fm-blocks p a { color: var(--fm-navy); text-decoration: underline; text-decoration-color: var(--fm-accent); text-underline-offset: 3px; }
.fmac .fm-blocks .fm-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--fm-accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; }
.fmac .fm-blocks .fm-eyebrow::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--fm-pink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fm-pink) 12%, transparent); }
.fmac .fm-blocks .fm-micro { margin-bottom: 10px; color: var(--fm-accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.fmac .fm-blocks .wp-block-list { margin: 0 0 18px; padding-left: 20px; }
.fmac .fm-blocks .wp-block-list li { color: var(--fm-muted); font-size: 14px; line-height: 1.7; margin-bottom: 6px; }

/* Sections : chaque groupe « fm-sec » est une section pleine largeur, déplaçable et duplicable */
.fmac .fm-sec { position: relative; padding: 96px var(--fm-gutter); }
.fmac .fm-sec .fm-heading { max-width: 820px; margin-bottom: 42px; }
.fmac .fm-sec--soft { background: var(--fm-tint-1); }
.fmac .fm-sec--dark { background: var(--fm-deep); color: #fff; overflow: hidden; isolation: isolate; }
.fmac .fm-sec--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 5% 100%, var(--fm-glow-80), transparent 60%), linear-gradient(120deg, var(--fm-val-a), var(--fm-val-b)); }
.fmac .fm-sec--dark h2, .fmac .fm-sec--dark h3, .fmac .fm-sec--closing h2 { color: #fff; }
.fmac .fm-sec--dark p, .fmac .fm-sec--dark li { color: #d6ddf0; }
.fmac .fm-sec--dark em, .fmac .fm-sec--closing em { color: var(--fm-subtitle); }
.fmac .fm-sec--dark .fm-eyebrow, .fmac .fm-sec--closing .fm-eyebrow, .fmac .fm-sec--dark .fm-micro { color: var(--fm-subtitle); }

/* Colonnes : grille souple, empilée sur tablette verticale et mobile */
.fmac .fm-blocks .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin: 0; align-items: start; }
.fmac .fm-blocks .wp-block-column { flex-basis: auto !important; }

/* Boutons à flèche (bloc Boutons) — styles « Lien fléché » et « Bouton clair » dans l’éditeur */
.fmac .fm-blocks .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 26px 0 0; }
.fmac .fm-blocks .wp-block-button { margin: 0; }
body .fmac .fm-blocks .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 49px; padding: 15px 21px; border: 1px solid transparent; border-radius: calc(9px * var(--fm-r)); background: var(--fm-navy); color: #fff; font-family: var(--fm-font); font-size: 13px; font-weight: 700; line-height: 1.35; text-align: left; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s; }
body .fmac .fm-blocks .wp-block-button__link::after { content: ""; flex-shrink: 0; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic-arrow) center / contain no-repeat; mask: var(--ic-arrow) center / contain no-repeat; transition: transform .25s; }
body .fmac .fm-blocks .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #20305024; }
body .fmac .fm-blocks .wp-block-button__link:hover::after { transform: translateX(4px); }
body .fmac .fm-blocks .is-style-fm-light .wp-block-button__link { background: #fff; color: var(--fm-navy); }
body .fmac .fm-blocks .is-style-fm-link .wp-block-button__link { min-height: 0; padding: 7px 0; border: 0; border-bottom: 1px solid var(--fm-accent); border-radius: 0; background: none; color: var(--fm-navy); gap: 12px; }
body .fmac .fm-blocks .is-style-fm-link .wp-block-button__link:hover { transform: none; box-shadow: none; gap: 18px; color: var(--fm-accent-dark); }
body .fmac .fm-sec--dark .is-style-fm-link .wp-block-button__link, body .fmac .fm-sec--closing .is-style-fm-link .wp-block-button__link { color: #fff; border-color: var(--fm-subtitle); }

/* Grand visuel */
.fmac .fm-sec--hero { padding-top: 40px; padding-bottom: 70px; }
.fmac .fm-hero-cols.wp-block-columns { grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 4.5vw, 64px); align-items: center; }
.fmac .fm-blocks .fm-breadcrumb { margin-bottom: 40px; font-size: 11px; color: var(--fm-muted); }
body .fmac .fm-blocks .fm-breadcrumb a { color: inherit; text-decoration: none; }
body .fmac .fm-blocks .fm-breadcrumb a:hover { color: var(--fm-accent-dark); }
.fmac .fm-blocks .fm-hero-title { font-size: clamp(38px, 4.45vw, 68px); font-weight: 800; letter-spacing: -.05em; line-height: 1.07; margin: 0 0 26px; }
.fmac .fm-blocks .fm-hero-title em, .fmac .fm-blocks h2 em.fm-gradient, .fmac .fm-sec--horizons h2 em { background: linear-gradient(105deg, var(--fm-pink) -4%, var(--fm-accent-dark) 58%, var(--fm-accent) 112%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fmac .fm-blocks .fm-lead { max-width: 520px; color: var(--fm-text); font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; }
.fmac .fm-hero-copy > p:not([class]) { max-width: 520px; font-size: 14px; line-height: 1.9; }
.fmac .fm-blocks .fm-proof { display: flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 11px; }
.fmac .fm-blocks .fm-proof::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; background: var(--fm-accent); -webkit-mask: var(--ic-shield) center / contain no-repeat; mask: var(--ic-shield) center / contain no-repeat; }
.fmac .fm-hero-visual { position: relative; padding-top: 30px; }
.fmac .fm-blocks .fm-hero-photo.wp-block-cover { min-height: clamp(380px, 40vw, 555px) !important; padding: 0 38px 92px; border-radius: calc(120px * var(--fm-r)) calc(20px * var(--fm-r)) calc(20px * var(--fm-r)) calc(20px * var(--fm-r)); overflow: hidden; background: var(--fm-tint-1); }
.fmac .fm-hero-photo .wp-block-cover__image-background { object-position: 55% center; }
.fmac.fm-motion .fm-hero-photo .wp-block-cover__image-background { animation: fm-image-in 1.7s cubic-bezier(.2, .7, .2, 1) both; }
.fmac .fm-hero-photo .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(0deg, color-mix(in srgb, var(--fm-deep) 70%, transparent), transparent 62%) !important; }
.fmac .fm-hero-photo .wp-block-cover__inner-container { color: #fff; }
.fmac .fm-blocks .fm-hero-photo .fm-eyebrow { color: #fff; margin-bottom: 8px; font-size: 10px; letter-spacing: .2em; }
.fmac .fm-blocks .fm-hero-photo .fm-eyebrow::before { display: none; }
.fmac .fm-blocks .fm-hero-photo__text { color: #fff; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.fmac .fm-hero-link { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: -62px 22px 0 -24px; padding: 17px 20px; border-radius: calc(16px * var(--fm-r)); background: #fff; box-shadow: 0 18px 45px color-mix(in srgb, var(--fm-deep) 14%, transparent); }
.fmac .fm-hero-link__item { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.fmac .fm-hero-link__item::before { content: ""; grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--fm-tint-3) var(--fm-icon-mask, none); }
.fmac .fm-hero-link__item > p { grid-column: 2; margin: 0; font-size: 12px; line-height: 1.45; color: var(--fm-text); }
.fmac .fm-blocks .fm-hero-link .fm-micro { margin: 0 0 2px; font-size: 8px; color: var(--fm-muted); }
.fmac .fm-blocks .fm-hero-link__and { margin: 0; color: var(--fm-pink); font-weight: 800; font-size: 16px; }
.fmac .fm-hero-index { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 22px; }
.fmac .fm-blocks .fm-hero-index p { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fm-muted); }
.fmac .fm-hero-index p:first-child::after { content: ""; display: inline-block; width: 60px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--fm-border); }

/* Icônes des composants (pictogrammes dans un rond) */
.fmac .fm-icon-building, .fmac .fm-icon-home, .fmac .fm-icon-shield { --fm-icon: var(--ic-building); }
.fmac .fm-icon-home { --fm-icon: var(--ic-home); }
.fmac .fm-icon-shield { --fm-icon: var(--ic-shield); }
.fmac .fm-hero-link__item::before, .fmac .fm-node::before { -webkit-mask: none; background-image: none; position: relative; }
.fmac .fm-hero-link__item, .fmac .fm-node { position: relative; }
.fmac .fm-hero-link__item::after, .fmac .fm-node::after { content: ""; position: absolute; width: 20px; height: 20px; background: var(--fm-navy); -webkit-mask: var(--fm-icon) center / contain no-repeat; mask: var(--fm-icon) center / contain no-repeat; pointer-events: none; }
.fmac .fm-hero-link__item::after { left: 9px; top: 50%; transform: translateY(-50%); }
.fmac .fm-icon-home::after { background: var(--fm-pink) !important; }

/* Bandeau */
.fmac .fm-sec--band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; padding-top: 22px; padding-bottom: 22px; background: var(--fm-navy); }
.fmac .fm-blocks .fm-sec--band p { margin: 0; color: #e3e8f6; font-size: 13px; }
.fmac .fm-blocks .fm-sec--band .fm-band__next { display: inline-flex; align-items: center; gap: 18px; color: #fff; }
.fmac .fm-blocks .fm-band__next::after { content: ""; width: 20px; height: 20px; background: var(--fm-subtitle); -webkit-mask: var(--ic-arrow) center / contain no-repeat; mask: var(--ic-arrow) center / contain no-repeat; }
.fmac .fm-sec--band strong { color: #fff; }

/* Sommaire de la page (reste visible sous l’en-tête) */
.fmac .fm-sec--toc { position: sticky; top: var(--fm-header-h, 83px); z-index: 30; padding-top: 0; padding-bottom: 0; background: color-mix(in srgb, #fff 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--fm-header-line); }
.fmac .fm-blocks .fm-toc { display: flex; justify-content: center; gap: clamp(18px, 4vw, 52px); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.fmac .fm-toc::-webkit-scrollbar { display: none; }
.fmac .fm-blocks .fm-toc li { margin: 0; flex-shrink: 0; font-size: 12px; }
body .fmac .fm-blocks .fm-toc a { position: relative; display: block; padding: 17px 0; color: var(--fm-muted); font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .25s; }
body .fmac .fm-blocks .fm-toc a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--fm-pink); transform: scaleX(0); transition: transform .35s; }
body .fmac .fm-blocks .fm-toc a:hover, body .fmac .fm-blocks .fm-toc a[aria-current] { color: var(--fm-text); }
body .fmac .fm-blocks .fm-toc a[aria-current]::after { transform: scaleX(1); }

/* Onglets (construits par le script à partir des groupes « fm-tab ») */
.fmac .fm-tablist { display: flex; gap: 12px; margin-bottom: 40px; }
.fmac .fm-tablist__btn { display: flex; align-items: center; gap: 14px; border: 1px solid var(--fm-border); background: #fff; color: var(--fm-text); font-family: var(--fm-font); font-weight: 700; text-align: left; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.fmac .fm-tab[hidden] { display: none !important; }
.fmac .fm-tab.is-changing { animation: fm-content-change .45s cubic-bezier(.2, .7, .2, 1); }
.fmac .fm-js .fm-tab__label, .fmac .fm-js .fm-tab__hint { display: none; }
.fmac.fm-js .fm-tab > .fm-tab__label, .fmac.fm-js .fm-tab > .fm-tab__hint, .fmac.fm-js .fm-tab__label--hidden { display: none; }
.fmac .fm-tabs--steps.is-stacked .fm-tab .fm-tab__label--hidden { display: block !important; }
.fmac .fm-blocks .fm-tab__label { font-size: 13px; color: var(--fm-accent-dark); text-transform: uppercase; letter-spacing: .1em; }

/* Situations : deux grands boutons */
.fmac .fm-tablist--switch { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--fm-border); }
.fmac .fm-tablist--switch .fm-tablist__btn { flex: 0 1 330px; padding: 17px 22px; border-radius: calc(14px * var(--fm-r)); font-size: 13px; }
.fmac .fm-tablist--switch .fm-tablist__btn::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ic-building) center / contain no-repeat; mask: var(--ic-building) center / contain no-repeat; }
.fmac .fm-tablist--switch .fm-tablist__btn:nth-child(2)::before { -webkit-mask-image: var(--ic-home); mask-image: var(--ic-home); }
.fmac .fm-tablist--switch .fm-tablist__btn::after { content: ""; margin-left: auto; flex-shrink: 0; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic-arrow) center / contain no-repeat; mask: var(--ic-arrow) center / contain no-repeat; transition: transform .25s; }
.fmac .fm-tablist--switch .fm-tablist__btn:hover { border-color: var(--fm-accent); }
.fmac .fm-tablist--switch .fm-tablist__btn:hover::after { transform: translateX(3px); }
.fmac .fm-tablist--switch .fm-tablist__btn[aria-selected="true"] { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--fm-navy) 22%, transparent); }
.fmac .fm-tab__cols.wp-block-columns { align-items: center; }
.fmac .fm-blocks .fm-tab__title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.04em; line-height: 1.2; }
.fmac .fm-blocks .fm-checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.fmac .fm-blocks .fm-checklist li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: 13px; color: var(--fm-text); }
.fmac .fm-blocks .fm-checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--fm-accent-dark); -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; }

/* Schéma « entreprise & logement » */
.fmac .fm-link-diagram { padding: clamp(22px, 3vw, 38px); border-radius: calc(22px * var(--fm-r)); background: var(--fm-tint-1); }
.fmac .fm-node { display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 16px; padding: 16px 20px; border: 1px solid #fff; border-radius: calc(12px * var(--fm-r)); background: color-mix(in srgb, #fff 70%, transparent); box-shadow: 0 4px 18px color-mix(in srgb, var(--fm-deep) 4%, transparent); }
.fmac .fm-node::before { content: ""; grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--fm-tint-3); }
.fmac .fm-node--home::before { background: color-mix(in srgb, var(--fm-pink) 14%, #fff); }
.fmac .fm-node::after { left: 32px; top: 50%; transform: translateY(-50%); }
.fmac .fm-blocks .fm-node > p { grid-column: 2; margin: 0; color: var(--fm-text); font-size: 13px; line-height: 1.6; }
.fmac .fm-blocks .fm-node .fm-node__tag { order: -1; margin-bottom: 2px; color: var(--fm-muted); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fmac .fm-blocks .fm-link-diagram__connector { position: relative; margin: 0 0 0 42px; padding: 14px 0 14px 18px; border-left: 1px dashed var(--fm-accent); color: var(--fm-muted); font-size: 10px; font-style: italic; }
.fmac .fm-link-diagram__center { display: flex; align-items: center; gap: 22px; padding: 16px 20px; border: 1px solid var(--fm-border); border-radius: calc(12px * var(--fm-r)); background: #fff; box-shadow: 0 8px 30px color-mix(in srgb, var(--fm-deep) 7%, transparent); }
.fmac .fm-blocks .fm-link-diagram__logo { flex-shrink: 0; margin: 0; }
.fmac .fm-blocks .fm-link-diagram__logo img { width: 130px; height: auto; }
.fmac .fm-blocks .fm-link-diagram__center p { margin: 0; padding-left: 20px; border-left: 1px solid var(--fm-border); color: var(--fm-text); font-size: 11px; line-height: 1.7; }

/* Accompagnement (section foncée) */
.fmac .fm-sec--accompagnement .wp-block-columns { grid-template-columns: .9fr 1.1fr; align-items: center; }
.fmac .fm-blocks .fm-sec--dark .fm-note { display: flex; align-items: center; gap: 14px; margin-top: 36px; color: #b9c3de; font-size: 12px; line-height: 1.7; }
.fmac .fm-blocks .fm-sec--dark .fm-note::before { content: ""; flex-shrink: 0; width: 26px; height: 26px; background: var(--fm-subtitle); -webkit-mask: var(--ic-people) center / contain no-repeat; mask: var(--ic-people) center / contain no-repeat; }
.fmac .fm-roles { counter-reset: fm-role; }
.fmac .fm-role { position: relative; counter-increment: fm-role; padding: 26px 56px 26px 46px; border-bottom: 1px solid #ffffff24; }
.fmac .fm-role:first-child { padding-top: 6px; }
.fmac .fm-role:last-child { border-bottom: 0; }
.fmac .fm-role::before { content: counter(fm-role, decimal-leading-zero); position: absolute; left: 0; top: 28px; color: #8e9bc0; font-size: 11px; }
.fmac .fm-role:first-child::before { top: 8px; }
.fmac .fm-role::after { content: ""; position: absolute; right: 6px; top: 30px; width: 22px; height: 22px; background: var(--fm-subtitle); -webkit-mask: var(--fm-icon) center / contain no-repeat; mask: var(--fm-icon) center / contain no-repeat; }
.fmac .fm-role:first-child::after { top: 10px; }
.fmac .fm-blocks .fm-role h3 { margin-bottom: 10px; font-size: 19px; }
.fmac .fm-blocks .fm-role p:not(.fm-micro) { font-size: 13px; line-height: 1.8; }

/* Étapes */
.fmac .fm-tablist--steps { display: grid; grid-template-columns: repeat(var(--fm-count, 4), minmax(0, 1fr)); gap: 0; margin-bottom: 0; border-bottom: 1px solid var(--fm-border); }
.fmac .fm-tablist--steps .fm-tablist__btn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px 22px 0; border: 0; border-radius: 0; background: none; }
.fmac .fm-tablist--steps .fm-tablist__num { margin-bottom: 12px; color: var(--fm-accent); font-size: 14px; font-weight: 600; }
.fmac .fm-tablist--steps .fm-tablist__btn strong { font-size: 14px; line-height: 1.5; }
.fmac .fm-tablist--steps .fm-tablist__btn small { margin-top: 4px; color: var(--fm-muted); font-size: 11px; font-weight: 500; }
.fmac .fm-tablist--steps .fm-tablist__btn::after { content: ""; position: absolute; left: 0; right: 20px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--fm-pink); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.fmac .fm-tablist--steps .fm-tablist__btn[aria-selected="true"]::after { transform: scaleX(1); }
.fmac .fm-tablist--steps .fm-tablist__btn[aria-selected="true"] .fm-tablist__num { color: var(--fm-pink); font-weight: 800; }
.fmac .fm-tablist--steps .fm-tablist__btn:not([aria-selected="true"]):hover { opacity: .7; }
.fmac .fm-tabs--steps .fm-tab { padding-top: 44px; }
.fmac .fm-tabs--steps .fm-tab__cols.wp-block-columns { grid-template-columns: 1.1fr 1fr; align-items: start; }
.fmac .fm-blocks .fm-step-count { margin-bottom: 14px; color: var(--fm-accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.fmac .fm-step-output { position: relative; padding-left: 44px; border-left: 1px solid var(--fm-border); }
.fmac .fm-step-output::before { content: ""; position: absolute; left: -15px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--fm-tint-3) var(--ic-check) center / 0 no-repeat; box-shadow: 0 0 0 6px #fff; }
.fmac .fm-step-output::after { content: ""; position: absolute; left: -7px; top: 8px; width: 14px; height: 14px; background: var(--fm-accent-dark); -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; }
.fmac .fm-blocks .fm-step-output .wp-block-list { list-style: none; padding: 0; }
.fmac .fm-blocks .fm-step-output .wp-block-list li { position: relative; padding-left: 20px; }
.fmac .fm-blocks .fm-step-output .wp-block-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--fm-accent); }

/* Vos horizons : carte de France ou du monde selon l’onglet choisi */
.fmac .fm-sec--horizons .wp-block-columns { grid-template-columns: 1fr 1fr; align-items: center; }
.fmac .fm-map-col { position: relative; }
.fmac .fm-map { --map-ratio: 484 / 467; --map-w: min(86%, 430px); --map-shape: url("../img/cartes/carte-france.svg"); --map-routes: url("../img/cartes/carte-france-trajets.svg"); position: relative; min-height: clamp(360px, 38vw, 520px); display: grid; place-items: center; isolation: isolate; }
.fmac .fm-sec--horizons.is-tab-1 .fm-map { --map-ratio: 1000 / 392; --map-w: 100%; --map-shape: url("../img/cartes/carte-monde.svg"); --map-routes: url("../img/cartes/carte-monde-trajets.svg"); }
.fmac .fm-map::before, .fmac .fm-map::after { content: ""; position: absolute; inset: 0; margin: auto; width: var(--map-w); height: auto; aspect-ratio: var(--map-ratio); }
.fmac .fm-map::before { z-index: 0; background: linear-gradient(135deg, var(--fm-accent), var(--fm-tint-3)); -webkit-mask: var(--map-shape) center / contain no-repeat; mask: var(--map-shape) center / contain no-repeat; filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--fm-deep) 6%, transparent)); }
.fmac .fm-map::after { z-index: 1; background: var(--map-routes) center / contain no-repeat; }
.fmac .fm-map.is-switching::before, .fmac .fm-map.is-switching::after { animation: fm-map-in .65s cubic-bezier(.2, .7, .2, 1); }
@keyframes fm-map-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.fmac .fm-sec--horizons.is-tab-1 .fm-map-col::before, .fmac .fm-sec--horizons.is-tab-1 .fm-map-col::after { opacity: .35; }
.fmac .fm-map-col::before, .fmac .fm-map-col::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(98%, 560px); aspect-ratio: 1; border: 1px solid var(--fm-border); border-radius: 50%; transform: translate(-50%, -50%) rotate(-20deg) scaleY(.8); pointer-events: none; }
.fmac .fm-map-col::after { width: min(112%, 640px); border-style: dashed; transform: translate(-50%, -50%) rotate(35deg) scaleY(.7); }
.fmac .fm-blocks .fm-map__label { position: absolute; top: 4%; left: 6%; z-index: 2; margin: 0; color: var(--fm-muted); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; }
.fmac .fm-blocks .fm-map__caption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; margin: 0; color: var(--fm-muted); font-size: 9px; text-align: center; }
.fmac .fm-map__pill { position: absolute; z-index: 3; left: 14%; bottom: 14%; display: flex; align-items: center; gap: 10px; max-width: 80%; padding: 12px 20px; border-radius: 50px; background: #fff; color: var(--fm-text); font-size: 11px; font-weight: 700; box-shadow: 0 8px 24px color-mix(in srgb, var(--fm-deep) 8%, transparent); }
.fmac .fm-map__pill::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; background: var(--fm-pink); -webkit-mask: var(--ic-pin) center / contain no-repeat; mask: var(--ic-pin) center / contain no-repeat; }
.fmac .fm-map__pill.is-changing { animation: fm-content-change .45s cubic-bezier(.2, .7, .2, 1); }
.fmac.fm-js .fm-map-note { display: none; }
.fmac .fm-tablist--toggle { display: inline-flex; gap: 4px; margin: 26px 0 26px; padding: 4px; border: 1px solid var(--fm-border); border-radius: 50px; background: var(--fm-tint-2); }
.fmac .fm-tablist--toggle .fm-tablist__btn { border: 0; background: none; padding: 11px 22px; border-radius: 40px; font-size: 12px; }
.fmac .fm-tablist--toggle .fm-tablist__btn[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--fm-deep) 8%, transparent); }
.fmac .fm-blocks .fm-sec--horizons h3 { font-size: 18px; margin-bottom: 12px; }
.fmac .fm-blocks .fm-sec--horizons .fm-tab p { max-width: 470px; font-size: 14px; }
.fmac .fm-blocks .fm-detail { font-size: 12px !important; color: var(--fm-muted); opacity: .85; }

/* Étapes qui se déroulent au défilement (ordinateur) */
.fmac .fm-tabs--steps.is-scrolly { position: relative; }
.fmac .fm-tabs--steps.is-scrolly .fm-steps-sticky { position: sticky; top: var(--fm-steps-top, 150px); }
.fmac .fm-tablist--steps { position: relative; }
.fmac .fm-steps-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--fm-steps-p, 0) * 100%); border-radius: 3px; background: color-mix(in srgb, var(--fm-pink) 30%, transparent); pointer-events: none; }
.fmac .fm-steps-hint { display: none; margin: 18px 0 0; color: var(--fm-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fmac .fm-tabs--steps.is-scrolly .fm-steps-hint { display: block; }

/* Étapes empilées qui s’ouvrent une à une (tablette verticale et mobile) */
.fmac .fm-tabs--steps.is-stacked .fm-tablist { display: none; }
.fmac .fm-tabs--steps.is-stacked .fm-tab { display: block !important; position: relative; margin-left: 16px; padding: 4px 0 44px 34px; border-left: 2px solid var(--fm-border); }
.fmac .fm-tabs--steps.is-stacked .fm-tab:last-child { padding-bottom: 0; border-left-color: transparent; }
.fmac .fm-tabs--steps.is-stacked .fm-tab::before { content: attr(data-num); position: absolute; left: -17px; top: 0; width: 32px; height: 32px; border: 2px solid var(--fm-border); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--fm-accent-dark); font-size: 12px; font-weight: 800; transition: background .4s, border-color .4s, color .4s; }
.fmac .fm-tabs--steps.is-stacked .fm-tab.is-open::before { background: var(--fm-pink); border-color: var(--fm-pink); color: #fff; }
.fmac .fm-tabs--steps.is-stacked .fm-tab > .fm-tab__label { display: block !important; margin: 4px 0 2px; color: var(--fm-accent-dark); font-size: 12px; }
.fmac .fm-tabs--steps.is-stacked .fm-tab > .fm-tab__hint { display: block !important; margin: 0 0 14px; font-size: 12px; }
.fmac .fm-tabs--steps.is-stacked .fm-tab > * { transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.fmac.fm-motion .fm-tabs--steps.is-stacked .fm-tab:not(.is-open) > * { opacity: 0; transform: translateY(18px); }
.fmac .fm-tabs--steps.is-stacked .fm-tab__cols.wp-block-columns { gap: 22px; }

/* Vos questions : accordéon (bloc Détails) */
.fmac .fm-sec--faq .wp-block-columns { grid-template-columns: .85fr 1.5fr; }
.fmac .fm-faq-intro { position: sticky; top: calc(var(--fm-header-h, 83px) + 90px); }
.fmac .fm-faq .wp-block-details { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--fm-border); }
.fmac .fm-faq .wp-block-details:first-child { padding-top: 0; }
.fmac .fm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--fm-text); font-size: 15px; font-weight: 700; line-height: 1.55; list-style: none; cursor: pointer; transition: color .2s; }
.fmac .fm-faq summary::-webkit-details-marker { display: none; }
.fmac .fm-faq summary::after { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat, var(--fm-tint-3); color: var(--fm-accent-dark); transition: transform .3s, background-size .3s; }
.fmac .fm-faq details[open] > summary::after { background-size: 10px 1.5px, 1.5px 0, auto; transform: rotate(180deg); }
.fmac .fm-faq summary:hover { color: var(--fm-accent-dark); }
.fmac .fm-faq .wp-block-details > :not(summary) { margin: 14px 40px 0 0; }
.fmac .fm-faq .wp-block-details p { font-size: 14px; }
.fmac .fm-faq .wp-block-details.is-opening > :not(summary) { animation: fm-fade-in .4s; }

/* Appel à l’action final */
.fmac .fm-sec--closing { width: min(var(--fm-max), calc(100% - 96px)); margin: 0 auto 96px; padding: clamp(46px, 6vw, 70px) clamp(24px, 5vw, 60px); border-radius: calc(22px * var(--fm-r)); background: linear-gradient(130deg, var(--fm-deep), var(--fm-val-b)); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.fmac .fm-sec--closing::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--fm-pink) 28%, transparent), transparent 70%); }
.fmac .fm-sec--closing::after { content: ""; position: absolute; z-index: -1; left: -160px; bottom: -220px; width: 460px; aspect-ratio: 1; border: 1px solid var(--fm-ring); border-radius: 50%; }
.fmac .fm-blocks .fm-sec--closing .fm-eyebrow { justify-content: center; }
.fmac .fm-blocks .fm-sec--closing p { color: #d6ddf0; }
.fmac .fm-blocks .fm-sec--closing .wp-block-buttons { justify-content: center; }
.fmac .fm-blocks .fm-closing__note { margin-top: 18px; font-size: 11px; opacity: .8; }

/* Fenêtre « Parlons de votre projet » */
.fmac .fm-sec--dialog { background: var(--fm-tint-1); }
.fmac .fm-sec--dialog .fm-dialog__step { margin-bottom: 40px; }
.fmac.fm-js .fm-blocks > .fm-sec--dialog { display: none; }
.fmac .fm-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: calc(20px * var(--fm-r)); background: #fff; color: var(--fm-text); box-shadow: 0 30px 80px color-mix(in srgb, var(--fm-deep) 35%, transparent); overflow: auto; overscroll-behavior: contain; }
.fmac .fm-dialog[open] { animation: fm-dialog-in .35s cubic-bezier(.2, .7, .2, 1); }
.fmac .fm-dialog::backdrop { background: color-mix(in srgb, var(--fm-deep) 55%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fmac .fm-dialog__top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; background: #fff; border-bottom: 1px solid var(--fm-border); }
.fmac .fm-dialog__top img { width: 120px; height: auto; }
.fmac .fm-dialog__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--fm-tint-2); color: var(--fm-text); font-size: 22px; line-height: 1; }
.fmac .fm-dialog__close:hover { background: var(--fm-tint-6); }
.fmac .fm-dialog__progress { display: flex; gap: 6px; padding: 18px 26px 0; }
.fmac .fm-dialog__progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--fm-tint-6); transition: background .3s; }
.fmac .fm-dialog__progress span.is-done { background: linear-gradient(90deg, var(--fm-accent-dark), var(--fm-pink)); }
.fmac .fm-dialog .fm-sec--dialog { padding: 24px 26px 28px; background: none; }
.fmac .fm-dialog .fm-dialog__step { margin: 0; }
.fmac .fm-dialog .fm-dialog__step.is-changing { animation: fm-content-change .4s cubic-bezier(.2, .7, .2, 1); }
.fmac .fm-dialog .fm-dialog__step[hidden] { display: none; }
.fmac .fm-blocks .fm-dialog h2, .fmac .fm-dialog h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; }
.fmac .fm-dialog .fm-eyebrow { margin-bottom: 12px; }
.fmac .fm-dialog .fm-dialog__intro { margin-bottom: 22px; font-size: 14px; }
.fmac .fm-dialog .fm-choices { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.fmac .fm-dialog .fm-choices li { margin: 0; padding: 0; }
.fmac .fm-choice { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--fm-border); border-radius: calc(12px * var(--fm-r)); background: #fff; color: var(--fm-text); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.fmac .fm-choice:hover { border-color: var(--fm-accent); }
.fmac .fm-choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--fm-navy); }
.fmac .fm-choice:has(input:checked) { border-color: var(--fm-navy); background: var(--fm-tint-1); box-shadow: 0 0 0 1px var(--fm-navy); }
.fmac .fm-dialog label.fm-dialog__field { display: block; margin: 8px 0 8px; color: var(--fm-text); font-size: 12px; font-weight: 700; }
.fmac .fm-dialog__input { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--fm-field-border); border-radius: calc(8px * var(--fm-r)); background: var(--fm-field-bg); color: var(--fm-text); font-size: 14px; }
.fmac .fm-dialog__input:focus { outline: none; border-color: var(--fm-focus); background: #fff; box-shadow: 0 0 0 3px var(--fm-focus-glow); }
.fmac .fm-dialog .fm-dialog__hint { margin-top: 8px; font-size: 11px; }
.fmac .fm-blocks .fm-dialog__error { margin: 0 0 12px; color: #b3261e; font-size: 12px; font-weight: 700; }
.fmac.fm-js .fm-dialog__error:not(.is-visible) { display: none; }
.fmac.fm-js .fm-dialog__nav { justify-content: space-between; }
.fmac.fm-js .fm-dialog__nav .wp-block-button[hidden] { display: none; }
.fmac:not(.fm-js) .fm-dialog__nav, .fmac:not(.fm-js) .fm-dialog__error { display: none; }
.fmac .fm-dialog .fm-contact-panel { padding: 0; border: 0; box-shadow: none; }
.fmac .fm-dialog .fm-form-grid--two { gap: 14px 16px; }

/* Barre de progression de lecture */
.fmac .fm-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: linear-gradient(90deg, var(--fm-accent), var(--fm-pink)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.admin-bar .fmac .fm-progress { top: 32px; }

@keyframes fm-content-change { from { opacity: .1; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes fm-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fm-image-in { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes fm-dialog-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Tablette */
@media (max-width: 1100px) {
	.fmac .fm-blocks { --fm-gutter: 30px; }
	.fmac .fm-sec { padding-top: 76px; padding-bottom: 76px; }
	.fmac .fm-sec--hero { padding-top: 32px; }
	.fmac .fm-hero-link { margin-left: -12px; margin-right: 10px; padding: 14px; }
	.fmac .fm-hero-link__item > p { font-size: 11px; }
	.fmac .fm-sec--closing { width: calc(100% - 60px); }
	.fmac .fm-tabs--steps .fm-tab__cols.wp-block-columns { gap: 44px; }
}
@media (max-width: 860px) {
	.fmac .fm-blocks .wp-block-columns, .fmac .fm-hero-cols.wp-block-columns, .fmac .fm-sec--accompagnement .wp-block-columns, .fmac .fm-tabs--steps .fm-tab__cols.wp-block-columns, .fmac .fm-sec--horizons .wp-block-columns, .fmac .fm-sec--faq .wp-block-columns { grid-template-columns: minmax(0, 1fr); }
	.fmac .fm-hero-link { margin: -56px 12px 0; }
	.fmac .fm-hero-index { justify-content: flex-start; }
	.fmac .fm-faq-intro { position: static; }
	.fmac .fm-tablist--steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.fmac .fm-tablist--steps::-webkit-scrollbar { display: none; }
	.fmac .fm-tablist--steps .fm-tablist__btn { flex: 0 0 min(46%, 220px); scroll-snap-align: start; }
	.fmac .fm-map { min-height: 340px; }
	.fmac .fm-sec--horizons .fm-map-col { order: 2; }
	.fmac .fm-toc { justify-content: flex-start; }
	.admin-bar .fmac .fm-progress { top: 46px; }
}
/* Mobile */
@media (max-width: 600px) {
	.admin-bar .fmac .fm-progress { top: 0; }
}
@media (max-width: 560px) {
	.fmac .fm-blocks { --fm-gutter: 18px; }
	.fmac .fm-sec { padding-top: 58px; padding-bottom: 58px; }
	.fmac .fm-sec .fm-heading { margin-bottom: 28px; }
	.fmac .fm-blocks .fm-breadcrumb { margin-bottom: 26px; }
	.fmac .fm-blocks .fm-lead { font-size: 15px; }
	.fmac .fm-blocks .fm-hero-photo.wp-block-cover { min-height: 360px !important; padding: 0 22px 84px; border-top-left-radius: calc(70px * var(--fm-r)); }
	.fmac .fm-hero-link { grid-template-columns: 1fr; margin: -60px 10px 0; gap: 10px; }
	.fmac .fm-blocks .fm-hero-link__and { display: none; }
	.fmac .fm-hero-index { display: none; }
	.fmac .fm-sec--band { flex-direction: column; align-items: flex-start; }
	.fmac .fm-tablist--switch { flex-direction: column; padding-bottom: 24px; margin-bottom: 30px; }
	.fmac .fm-tablist--switch .fm-tablist__btn { flex: none; }
	.fmac .fm-link-diagram__center { flex-direction: column; align-items: flex-start; gap: 12px; }
	.fmac .fm-blocks .fm-link-diagram__center p { padding-left: 0; border-left: 0; }
	.fmac .fm-role { padding-right: 40px; padding-left: 34px; }
	.fmac .fm-tablist--steps .fm-tablist__btn { flex-basis: 64%; }
	.fmac .fm-step-output { padding-left: 30px; }
	.fmac .fm-tablist--toggle { display: flex; }
	.fmac .fm-tablist--toggle .fm-tablist__btn { flex: 1; justify-content: center; padding: 11px 12px; }
	.fmac .fm-map__pill { left: 6%; bottom: 10%; }
	.fmac .fm-faq .wp-block-details > :not(summary) { margin-right: 0; }
	.fmac .fm-sec--closing { width: calc(100% - 28px); margin-bottom: 56px; }
	.fmac .fm-dialog__top, .fmac .fm-dialog__progress { padding-left: 18px; padding-right: 18px; }
	.fmac .fm-dialog .fm-sec--dialog { padding: 20px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.fmac .fm-tab.is-changing, .fmac .fm-dialog[open], .fmac .fm-dialog__step.is-changing { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fmac .fm-map.is-switching::before, .fmac .fm-map.is-switching::after { animation: none; }
}
