/* FMAC — Pages modernes : styles communs à toutes les pages FMAC.
   Tout est rangé sous .fmac (et préfixé fm-) : rien ne s’applique au reste du site. */

@font-face {
	font-family: "FMAC Montserrat";
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

html:has(body.fmac-template) { scroll-behavior: smooth; scroll-padding-top: 98px; }
body.fmac-template { margin: 0; padding: 0; background: #fff; overflow-x: hidden; }

.fmac {
	--fm-navy: #253152;
	--fm-deep: #17213f;
	--fm-accent: #96a9dc;
	--fm-accent-dark: #596ea9;
	--fm-pale: #eef1fa;
	--fm-pink: #b4509c;
	--fm-text: #253151;
	--fm-muted: #626e87;
	--fm-border: #e0e5f0;
	--fm-max: 1240px;
	--fm-shadow: 0 18px 45px #26315112;
	--fm-font: "FMAC Montserrat", Montserrat, Arial, sans-serif;
	color: var(--fm-text);
	background: #fff;
	font-family: var(--fm-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.fmac *, .fmac *::before, .fmac *::after { box-sizing: border-box; }
.fmac button, .fmac input, .fmac select, .fmac textarea { font: inherit; }
.fmac button, .fmac a { -webkit-tap-highlight-color: transparent; }
body .fmac a { color: inherit; text-decoration: none; }
.fmac button { cursor: pointer; }
.fmac img { display: block; max-width: 100%; height: auto; }
.fmac h1, .fmac h2, .fmac h3, .fmac h4, .fmac p { margin-top: 0; }
.fmac h1, .fmac h2, .fmac h3 { font-family: var(--fm-font); line-height: 1.16; letter-spacing: -.045em; color: inherit; text-transform: none; }
.fmac h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.fmac p { margin-bottom: 18px; }
.fmac ul { margin: 0; padding-left: 19px; }
.fmac svg { vertical-align: middle; }
.fmac a:focus-visible, .fmac button:focus-visible, .fmac input:focus-visible, .fmac textarea:focus-visible, .fmac select:focus-visible, .fmac [tabindex]:focus-visible { outline: 3px solid var(--fm-pink); outline-offset: 3px; }
.fmac .fm-main:focus { outline: none; }

.fmac .fm-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fm-navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.fmac .fm-skip:focus { top: 12px; }
.fmac .fm-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fmac .fm-anchor { display: block; position: relative; top: -98px; visibility: hidden; }

/* Mise en page */
.fmac .fm-container { width: min(var(--fm-max), calc(100% - 96px)); margin-left: auto; margin-right: auto; }
.fmac .fm-section { padding: 96px 0; }
.fmac .fm-h2 { font-size: clamp(29px, 3.25vw, 48px); font-weight: 700; line-height: 1.16; letter-spacing: -.045em; margin-bottom: 16px; }
.fmac .fm-section-head { max-width: 800px; margin-bottom: 40px; }
.fmac .fm-section-head p { color: var(--fm-muted); max-width: 730px; font-size: 16px; }
.fmac .fm-kicker { display: flex; gap: 10px; align-items: center; color: var(--fm-accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.fmac .fm-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 32px; }
.fmac .fm-head-row .fm-section-head { margin: 0; }
.fmac .fm-controls { display: flex; gap: 9px; flex-shrink: 0; }
.fmac .fm-empty { color: var(--fm-muted); }

/* Boutons à flèche horizontale */
.fmac .fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 9px; padding: 15px 21px; font-family: var(--fm-font); font-weight: 700; font-size: 13px; line-height: 1.35; min-height: 49px; letter-spacing: normal; text-transform: none; text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, box-shadow .25s; }
.fmac .fm-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #20305024; }
body .fmac .fm-btn--primary { background: var(--fm-navy); color: #fff; }
body .fmac .fm-btn--outline { border-color: var(--fm-border); color: var(--fm-navy); background: #fff; }
body .fmac .fm-btn--lavender { background: #a8b9eb; color: var(--fm-deep); }
.fmac .fm-btn--block { width: 100%; }
.fmac .fm-arrow { font-size: 18px; line-height: 1; transition: transform .2s; }
.fmac .fm-btn:hover .fm-arrow { transform: translateX(3px); }
.fmac .fm-circle-btn { border: 1px solid var(--fm-border); background: #fff; border-radius: 50%; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: var(--fm-navy); font-size: 21px; line-height: 1; transition: all .2s; }
.fmac .fm-circle-btn:hover { background: var(--fm-navy); color: #fff; border-color: var(--fm-navy); }

/* En-tête */
.fmac .fm-header { position: sticky; top: 0; z-index: 50; background: #fffffff2; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid #e6eaf2; }
.admin-bar .fmac .fm-header { top: 32px; }
.fmac .fm-header__wrap { width: min(1440px, calc(100% - 64px)); margin: auto; height: 83px; display: flex; align-items: center; gap: 28px; justify-content: space-between; position: relative; }
.fmac .fm-brand { flex: 0 0 auto; }
.fmac .fm-brand__img { width: 166px; height: auto; }
.fmac .fm-nav { display: flex; align-items: center; margin-left: auto; }
.fmac .fm-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; }
.fmac .fm-nav__item { position: relative; list-style: none; margin: 0; }
body .fmac .fm-nav__link, .fmac .fm-nav__toggle { display: inline-block; font-weight: 600; font-size: 12px; white-space: nowrap; letter-spacing: -.025em; background: none; border: 0; color: var(--fm-navy); padding: 14px 0; line-height: 1.4; text-transform: none; }
body .fmac .fm-nav__link:hover, .fmac .fm-nav__toggle:hover, body .fmac .fm-nav__link[aria-current="page"] { color: var(--fm-accent-dark); }
.fmac .fm-chev { font-size: 10px; margin-left: 5px; display: inline-block; transition: transform .2s; }
.fmac .fm-dropdown { position: absolute; top: 100%; left: -18px; min-width: 220px; background: #fff; border: 1px solid var(--fm-border); padding: 8px; border-radius: 12px; box-shadow: var(--fm-shadow); list-style: none; margin: 0; visibility: hidden; opacity: 0; transform: translateY(8px); transition: .2s; z-index: 5; }
.fmac .fm-nav__item--sub:hover .fm-dropdown, .fmac .fm-nav__item--sub.is-open .fm-dropdown { opacity: 1; visibility: visible; transform: none; }
.fmac .fm-nav__item--sub.is-open .fm-chev { transform: rotate(180deg); }
.fmac .fm-dropdown li { list-style: none; margin: 0; }
body .fmac .fm-dropdown a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--fm-navy); }
body .fmac .fm-dropdown a:hover, body .fmac .fm-dropdown a[aria-current="page"] { background: var(--fm-pale); }
.fmac .fm-nav__item--cta { display: none; }
.fmac .fm-nav-cta { white-space: nowrap; padding: 14px 20px; }
.fmac .fm-menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; background: transparent; border: 0; color: var(--fm-navy); position: relative; }
.fmac .fm-menu-toggle span, .fmac .fm-menu-toggle span::before, .fmac .fm-menu-toggle span::after { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, background .25s; }
.fmac .fm-menu-toggle span { top: 21px; }
.fmac .fm-menu-toggle span::before, .fmac .fm-menu-toggle span::after { content: ""; left: 0; }
.fmac .fm-menu-toggle span::before { top: -7px; }
.fmac .fm-menu-toggle span::after { top: 7px; }
.fmac .fm-menu-toggle[aria-expanded="true"] span { background: transparent; }
.fmac .fm-menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.fmac .fm-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Pied de page */
.fmac .fm-footer { background: #1e2949; color: #e2e8f7; padding: 45px 0 24px; }
.fmac .fm-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.fmac .fm-footer__brand { display: inline-block; }
.fmac .fm-footer__logo { width: 177px; height: auto; background: #fff; padding: 11px 15px; border-radius: 8px; }
.fmac .fm-footer strong { color: #fff; font-size: 13px; }
.fmac .fm-footer p { font-size: 12px; margin: 13px 0 0; color: #c7d1e9; }
body .fmac .fm-footer__address a { display: inline-block; margin-top: 13px; font-size: 12px; color: #c7d1e9; }
body .fmac .fm-footer__address a:hover { color: #fff; }
.fmac .fm-socials { display: flex; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.fmac .fm-socials li { list-style: none; }
body .fmac .fm-socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c2cee74d; border-radius: 50%; color: #e2e8f7; transition: background .2s, color .2s; }
body .fmac .fm-socials a:hover { background: #fff; color: var(--fm-navy); }
.fmac .fm-footer__bottom { margin-top: 35px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #c7d1e9; font-size: 10px; }
.fmac .fm-legal { display: flex; gap: 17px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
body .fmac .fm-legal a:hover { color: #fff; text-decoration: underline; }

/* Retour en haut */
.fmac .fm-backtop { position: fixed; right: 24px; bottom: 24px; z-index: 40; border: 0; background: #fff; color: var(--fm-navy); box-shadow: 0 8px 26px #1b26464a; width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; opacity: 0; pointer-events: none; transition: .25s; }
.fmac .fm-backtop.is-visible { opacity: 1; pointer-events: auto; }

/* Carrousels horizontaux */
.fmac .fm-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px 3px 22px; }
.fmac .fm-rail::-webkit-scrollbar { display: none; }
.fmac .fm-rail > * { scroll-snap-align: start; }
.fmac .fm-rail:focus-visible { outline-offset: 0; }

/* Formulaires (formulaire de contact de l’extension) */
.fmac .fm-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
.fmac .fm-form-grid--two { grid-template-columns: 1fr 1fr; }
.fmac .fm-full { grid-column: 1 / -1; }
.fmac .fm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fmac .fm-field > label:not(.fm-check) { font-size: 12px; font-weight: 700; color: var(--fm-navy); }
.fmac .fm-field input:not([type="checkbox"]):not([type="radio"]), .fmac .fm-field select, .fmac .fm-field textarea { width: 100%; border: 1px solid #dce2ef; background: #f9fafd; border-radius: 8px; padding: 12px 13px; min-height: 46px; color: var(--fm-navy); font-size: 13px; line-height: 1.4; box-shadow: none; transition: border .2s, background .2s, box-shadow .2s; }
.fmac .fm-field textarea { min-height: 115px; resize: vertical; }
.fmac .fm-field input:focus, .fmac .fm-field select:focus, .fmac .fm-field textarea:focus { outline: none; border-color: #94a8de; background: #fff; box-shadow: 0 0 0 3px #aab9e537; }
.fmac .fm-field [aria-invalid="true"] { border-color: #b3261e; background: #fff8f8; }
.fmac .fm-field__error { font-size: 11px; color: #b3261e; font-weight: 600; }
.fmac .fm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; line-height: 1.5; color: #58647d; font-weight: 400; }
.fmac .fm-check input { width: 17px; height: 17px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--fm-navy); }
body .fmac .fm-check a { text-decoration: underline; }
.fmac .fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmac .fm-form-status { margin: 14px 0 0; font-size: 12px; font-weight: 600; }
.fmac .fm-form-status:empty { display: none; }
.fmac .fm-form-status.is-ok { color: #1d6b3f; }
.fmac .fm-form-status.is-error { color: #b3261e; }
.fmac .fm-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* Habillage des formulaires intégrés (outil d’évaluation, autres extensions) */
#fmac .fm-skin label { font-size: 12px; font-weight: 700; color: var(--fm-navy); }
#fmac .fm-skin input[type="text"], #fmac .fm-skin input[type="email"], #fmac .fm-skin input[type="tel"], #fmac .fm-skin input[type="number"], #fmac .fm-skin input[type="date"], #fmac .fm-skin input[type="url"], #fmac .fm-skin input:not([type]), #fmac .fm-skin select, #fmac .fm-skin textarea { width: 100%; max-width: 100%; border: 1px solid #dce2ef; background-color: #f9fafd; border-radius: 8px; padding: 12px 13px; min-height: 46px; color: var(--fm-navy); font-family: var(--fm-font); font-size: 13px; line-height: 1.4; box-shadow: none; }
#fmac .fm-skin textarea { min-height: 115px; }
#fmac .fm-skin input:focus, #fmac .fm-skin select:focus, #fmac .fm-skin textarea:focus { outline: none; border-color: #94a8de; background-color: #fff; box-shadow: 0 0 0 3px #aab9e537; }
#fmac .fm-skin input[type="checkbox"], #fmac .fm-skin input[type="radio"] { width: 17px; height: 17px; margin: 1px 8px 0 0; flex-shrink: 0; accent-color: var(--fm-navy); vertical-align: top; }
#fmac .fm-skin label:has(> input[type="checkbox"]), #fmac .fm-skin label:has(> input[type="radio"]) { display: inline-flex; align-items: flex-start; font-size: 11px; font-weight: 400; line-height: 1.5; color: #58647d; margin-top: 6px; }
#fmac .fm-skin small, #fmac .fm-skin .description, #fmac .fm-skin .hint { font-size: 10px; line-height: 1.45; color: var(--fm-muted); }
#fmac .fm-skin button[type="submit"], #fmac .fm-skin input[type="submit"], #fmac .fm-skin .button, #fmac .fm-skin .elementor-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; background: var(--fm-navy); color: #fff; border: 1px solid transparent; border-radius: 9px; padding: 15px 21px; min-height: 49px; font-family: var(--fm-font); font-weight: 700; font-size: 13px; line-height: 1.35; cursor: pointer; transition: transform .25s, box-shadow .25s; }
#fmac .fm-skin button[type="submit"]:hover, #fmac .fm-skin input[type="submit"]:hover, #fmac .fm-skin .button:hover, #fmac .fm-skin .elementor-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #20305024; }
#fmac .fm-skin button[type="submit"]::after { content: "→"; font-size: 18px; line-height: 1; }
#fmac .fm-skin a { text-decoration: underline; }

/* Message pour les administrateurs (bloc à configurer) */
.fmac .fm-admin-note { margin: 18px auto; width: min(var(--fm-max), calc(100% - 48px)); padding: 14px 18px; border: 2px dashed #e08a2e; border-radius: 10px; background: #fff8ef; color: #6b3d0a; font-size: 13px; font-weight: 600; }
body .fmac .fm-admin-note a { text-decoration: underline; }
.fmac .fm-admin-note small { display: block; font-weight: 400; opacity: .8; }

/* Apparitions au défilement (activées par le script, donc jamais de contenu caché sans JS) */
.fmac .fm-reveal { transition: opacity .72s cubic-bezier(.2, .75, .25, 1), transform .72s cubic-bezier(.2, .75, .25, 1); transition-delay: var(--delay, 0ms); }
.fmac.fm-motion .fm-reveal:not(.is-seen) { opacity: 0; transform: translateY(35px); }
.fmac.fm-motion .fm-reveal[data-reveal="left"]:not(.is-seen) { transform: translateX(-36px); }
.fmac.fm-motion .fm-reveal[data-reveal="right"]:not(.is-seen) { transform: translateX(36px); }
.fmac.fm-motion .fm-reveal[data-reveal="scale"]:not(.is-seen) { transform: translateY(20px) scale(.965); }
.fmac .fm-reveal.is-seen { opacity: 1; transform: none; }

@keyframes fm-detail-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
	.fmac .fm-header__wrap { width: calc(100% - 38px); gap: 16px; }
	.fmac .fm-nav__list { gap: 14px; }
	body .fmac .fm-nav__link, .fmac .fm-nav__toggle { font-size: 11px; }
	.fmac .fm-brand__img { width: 142px; }
	.fmac .fm-nav-cta { padding: 12px 15px; }
	.fmac .fm-container { width: calc(100% - 60px); }
	.fmac .fm-section { padding: 75px 0; }
}
@media (max-width: 860px) {
	.fmac .fm-header__wrap { height: 70px; }
	.fmac .fm-menu-toggle { display: block; }
	.fmac .fm-nav-cta { display: none; }
	.fmac .fm-nav { position: absolute; top: 69px; left: -19px; right: -19px; display: none; background: #fff; border-bottom: 1px solid var(--fm-border); padding: 15px 25px; box-shadow: var(--fm-shadow); max-height: calc(100vh - 70px); overflow-y: auto; }
	.fmac .fm-nav.is-open { display: block; }
	.fmac .fm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	body .fmac .fm-nav__link, .fmac .fm-nav__toggle { font-size: 14px; display: block; width: 100%; text-align: left; padding: 13px 0; }
	.fmac .fm-dropdown { position: static; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
	.fmac .fm-nav__item--sub.is-open .fm-dropdown { display: block; }
	.fmac .fm-nav__item--cta { display: block; }
	.fmac .fm-rail { grid-auto-columns: calc((100% - 22px) / 2); }
	.fmac .fm-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .fmac .fm-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .fmac .fm-header { top: 0; }
}
@media (max-width: 560px) {
	.fmac .fm-container { width: calc(100% - 36px); }
	.fmac .fm-section { padding: 57px 0; }
	.fmac .fm-header__wrap { width: calc(100% - 36px); }
	.fmac .fm-nav { left: -18px; right: -18px; }
	.fmac .fm-head-row { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
	.fmac .fm-section-head { margin-bottom: 26px; }
	.fmac .fm-section-head p { font-size: 14px; }
	.fmac .fm-controls { margin-left: auto; }
	.fmac .fm-rail { grid-auto-columns: 87%; gap: 13px; }
	.fmac .fm-form-grid, .fmac .fm-form-grid--two { grid-template-columns: 1fr; gap: 15px; }
	.fmac .fm-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.fmac .fm-footer__bottom { gap: 14px; }
	.fmac .fm-backtop { bottom: 15px; right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	html:has(body.fmac-template) { scroll-behavior: auto; }
	.fmac *, .fmac *::before, .fmac *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.fmac .fm-reveal { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 560px) {
	#fmac .fm-skin [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
