/* FMAC — Page d’accueil. Valeurs reprises de la maquette validée (version 2). */

/* Grand visuel : vidéo en plein cadre, voile bleu et texte qui apparaissent au défilement.
   --p : avancée du voile (0 = vidéo bien visible, 1 = voile complet) ; --t : apparition du texte.
   Sans script, ou si l’utilisateur réduit les animations, l’état final s’affiche directement. */
.fmac .fm-hero { position: relative; background: var(--fm-deep); color: #fff; --p: 1; --t: 1; --cue: 0; }
.fmac .fm-hero__stage { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 92% 0%, var(--fm-glow-65), transparent 52%), radial-gradient(ellipse at 0% 100%, var(--fm-glow-b), transparent 45%), linear-gradient(113deg, var(--fm-hero-a), var(--fm-hero-b)); }
.fmac .fm-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 - .06 * var(--p))); transform-origin: 50% 40%; will-change: transform; }
.fmac .fm-hero__veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 92% 0%, var(--fm-glow-80), transparent 55%), linear-gradient(113deg, var(--fm-veil-a), var(--fm-veil-b)); opacity: calc(var(--fm-veil-0) + (var(--fm-veil-1) - var(--fm-veil-0)) * var(--p)); }
.fmac .fm-hero__layout { padding: 72px 0; display: flex; justify-content: center; text-align: center; }
.fmac .fm-hero__copy { width: 100%; min-width: 0; max-width: 900px; margin: 0 auto; position: relative; }
.fmac .fm-hero__copy > * { opacity: clamp(0, calc(var(--t) * 1.8 - var(--i, 0) * .2), 1); transform: translateY(calc((1 - clamp(0, calc(var(--t) * 1.8 - var(--i, 0) * .2), 1)) * 30px)); }
.fmac .fm-hero__title { font-size: clamp(28px, calc((100vw - 60px) / 9.6), var(--fm-title-max)); font-weight: 740; line-height: 1.05; letter-spacing: -.06em; white-space: nowrap; margin: 0 0 19px; color: #fff; text-shadow: 0 2px 24px #0f183466; }
.fmac .fm-hero__subtitle { font-size: clamp(21px, 2.1vw, 29px); font-weight: 500; line-height: 1.4; letter-spacing: -.03em; color: var(--fm-subtitle); max-width: 720px; margin: 0 auto 33px; text-wrap: balance; text-shadow: 0 1px 16px #0f183466; }
.fmac .fm-hero__text { color: #e9eef9; font-size: 14px; margin: 0 auto 22px; line-height: 1.75; max-width: 620px; text-wrap: pretty; }
.fmac .fm-hero__text p { margin: 0 0 8px; }
.fmac .fm-hero__text p:last-child { margin-bottom: 0; }
.fmac .fm-hero__label { color: #fff; display: block; margin-bottom: 4px; font-weight: 700; }
.fmac .fm-hero__text strong, .fmac .fm-hero__text b { font-weight: 700; color: #fff; }
body .fmac .fm-hero__text a { color: #fff; text-decoration: underline; }
.fmac .fm-hero__copy .fm-btn { margin-top: 9px; }
.fmac .fm-hero__cue { display: none; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); border: 1px solid #ffffff59; border-radius: 99px; background: var(--fm-deep-73); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; padding: 10px 18px; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: var(--cue); pointer-events: none; transition: background .2s; }
.fmac .fm-hero__cue span { display: inline-block; margin-left: 6px; animation: fm-cue 1.6s ease-in-out infinite; }
.fmac .fm-hero__cue:hover { background: var(--fm-deep-b3); }
@keyframes fm-cue { 50% { transform: translateY(4px); } }
.fmac .fm-hero__toggle { position: absolute; z-index: 2; right: 22px; bottom: 22px; border: 0; border-radius: 50%; background: var(--fm-deep-bd); color: #fff; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; font-size: 15px; line-height: 1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s; }
.fmac .fm-hero__toggle:hover { background: var(--fm-deep); }
.fmac .fm-hero.is-video-off .fm-hero__video, .fmac .fm-hero.is-video-off .fm-hero__toggle { display: none; }

/* Mode « défilement » (activé par le script) : la scène reste fixe pendant que le voile monte. */
.fmac .fm-hero--scrolly { height: calc(100vh - var(--fm-header-h, 83px) + 55vh); height: calc(100svh - var(--fm-header-h, 83px) + 55svh); }
.fmac .fm-hero--scrolly .fm-hero__stage { position: sticky; top: var(--fm-header-h, 83px); height: calc(100vh - var(--fm-header-h, 83px)); height: calc(100svh - var(--fm-header-h, 83px)); min-height: 0; }
.fmac .fm-hero--scrolly .fm-hero__cue { display: block; pointer-events: auto; }
.fmac .fm-hero--scrolly:not(.is-revealed) .fm-hero__copy { pointer-events: none; }
.fmac .fm-hero.is-forced { --p: 1 !important; --t: 1 !important; --cue: 0 !important; }

/* Logos partenaires */
.fmac .fm-partners { padding: 24px 0 30px; border-bottom: 1px solid var(--fm-border); background: #fff; overflow: hidden; }
.fmac .fm-logo-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); overflow: hidden; }
.fmac .fm-partner-track { display: flex; align-items: center; gap: 35px; width: max-content; padding: 0 18px; animation: fm-marquee 35s linear infinite; }
.fmac .fm-partner-track:hover, .fmac .fm-partner-track:focus-within { animation-play-state: paused; }
.fmac .fm-partner-track .fm-partner { width: 104px; height: 68px; object-fit: contain; filter: saturate(.72); opacity: .82; transition: .2s; }
.fmac .fm-partner-track .fm-partner:hover { filter: none; opacity: 1; }
@keyframes fm-marquee { to { transform: translateX(-50%); } }

/* Opportunités */
.fmac .fm-opp { background: #fff; border: 1px solid var(--fm-border); border-radius: calc(17px * var(--fm-r)); overflow: hidden; min-height: 310px; box-shadow: 0 5px 22px #2431510b; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; color: var(--fm-text); }
.fmac .fm-opp:hover { transform: translateY(-3px); box-shadow: var(--fm-shadow); }
.fmac .fm-opp__visual { height: 138px; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--fm-opp-a), var(--fm-opp-b)); flex-shrink: 0; }
.fmac .fm-opp__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.fmac .fm-opp:hover .fm-opp__visual img { transform: scale(1.05); }
.fmac .fm-opp__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--fm-opp-shade-a), var(--fm-opp-shade-b)); pointer-events: none; }
.fmac .fm-opp__visual--illustrated { background: radial-gradient(circle at 80% 35%, var(--fm-ill-a), var(--fm-ill-b) 37%, var(--fm-ill-c) 100%); }
.fmac .fm-opp__visual--illustrated svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.fmac .fm-opp__tag { position: absolute; z-index: 1; top: 15px; left: 15px; background: #fff; color: var(--fm-navy); border-radius: 99px; font-weight: 700; font-size: 10px; letter-spacing: .08em; padding: 5px 11px; line-height: 1.4; }
.fmac .fm-opp__content { padding: 21px 21px 20px; display: flex; flex-direction: column; flex: 1; }
.fmac .fm-opp__title { font-size: 17px; letter-spacing: -.025em; line-height: 1.4; font-weight: 700; margin-bottom: 17px; }
.fmac .fm-meta { font-size: 11px; color: var(--fm-muted); display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.fmac .fm-meta > span { background: var(--fm-tint-2); padding: 5px 9px; border-radius: calc(5px * var(--fm-r)); }
.fmac .fm-opp-foot { margin-top: 21px; text-align: center; }

/* Équipe : triptyque de portraits */
.fmac .fm-team { background: var(--fm-tint-1); padding-top: 89px; padding-bottom: 92px; }
.fmac .fm-team__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.fmac .fm-team__top .fm-section-head { margin: 0; }
.fmac .fm-team__top .fm-kicker { margin-bottom: 8px; }
.fmac .fm-team__editorial { display: grid; grid-template-columns: 1.5fr .85fr; gap: clamp(27px, 4vw, 64px); align-items: center; }
.fmac .fm-portraits { display: grid; grid-template-columns: 2.1fr 1fr 1fr; gap: 9px; min-height: 365px; transition: grid-template-columns .55s cubic-bezier(.22, .8, .2, 1); overflow: hidden; border-radius: calc(18px * var(--fm-r)); }
.fmac .fm-portraits[data-active="1"] { grid-template-columns: 1fr 2.1fr 1fr; }
.fmac .fm-portraits[data-active="2"] { grid-template-columns: 1fr 1fr 2.1fr; }
.fmac .fm-portrait { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; min-width: 0; border: 0; padding: 0; margin: 0; border-radius: calc(15px * var(--fm-r)); overflow: hidden; isolation: isolate; background: var(--fm-portrait-bg); text-align: left; color: #fff; cursor: pointer; }
.fmac .fm-portrait::before { position: absolute; content: ""; inset: 0; background: linear-gradient(0deg, #101b39d9 0%, #101b3940 37%, transparent 66%); z-index: 1; }
.fmac .fm-portrait img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 64% center; filter: saturate(.73) brightness(.91); transition: filter .4s, transform .6s; }
.fmac .fm-portrait[data-member="1"] img { object-position: 62% center; }
.fmac .fm-portrait[data-member="2"] img { object-position: center 39%; }
.fmac .fm-portrait[aria-pressed="true"] img, .fmac .fm-portrait:hover img { filter: saturate(1) brightness(1); transform: scale(1.025); }
.fmac .fm-portrait__name { font-size: clamp(10px, 1.05vw, 14px); font-weight: 700; line-height: 1.36; letter-spacing: -.025em; display: block; position: relative; z-index: 2; padding: 18px 10px; width: 100%; }
.fmac .fm-portrait[aria-pressed="true"] .fm-portrait__name { font-size: clamp(14px, 1.45vw, 20px); padding: 20px 16px; }
.fmac .fm-portrait[aria-pressed="true"] .fm-portrait__name::after { content: "  →"; white-space: pre; color: var(--fm-arrow); }
.fmac .fm-portrait:focus-visible { outline: 3px solid var(--fm-pink); outline-offset: -4px; }
.fmac .fm-team__hint { font-size: 12px; color: var(--fm-muted); margin: 16px 0 0; }
.fmac .fm-team__details { min-height: 280px; display: grid; align-items: center; }
.fmac .fm-member { display: flex; flex-direction: column; gap: 10px; animation: fm-detail-in .45s ease-out both; }
.fmac .fm-member[hidden] { display: none; }
.fmac .fm-member h3 { font-size: clamp(26px, 3.5vw, 43px); letter-spacing: -.05em; margin-bottom: 5px; }
.fmac .fm-member p { font-size: 15px; color: var(--fm-muted); margin-bottom: 6px; font-weight: 500; }
body .fmac .fm-member__credential { font-size: 12px; color: var(--fm-accent-dark); margin-bottom: 13px; }
body .fmac .fm-member__credential:hover { text-decoration: underline; }
.fmac .fm-member .fm-btn { align-self: flex-start; margin-top: 8px; }

/* Services : sommaire en onglets */
.fmac .fm-services { padding-bottom: 95px; }
.fmac .fm-explorer { display: grid; grid-template-columns: minmax(230px, .82fr) minmax(0, 1.65fr); gap: 28px; align-items: start; }
.fmac .fm-explorer__index { display: flex; flex-direction: column; gap: 9px; }
.fmac .fm-explorer__tab { border: 0; border-radius: calc(11px * var(--fm-r)); background: var(--fm-tint-1); color: var(--fm-navy); text-align: left; padding: 19px 17px; display: grid; grid-template-columns: 1fr 19px; gap: 15px; align-items: center; min-height: 61px; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: normal; text-transform: none; transition: background .25s, color .25s, transform .25s; }
.fmac .fm-explorer__tab:hover { background: var(--fm-tint-6); transform: translateX(3px); }
.fmac .fm-explorer__tab[aria-selected="true"] { background: var(--fm-navy); color: #fff; box-shadow: 0 7px 20px #24315124; transform: none; }
.fmac .fm-explorer__tab span { font-size: 20px; }
.fmac .fm-explorer__detail { border-radius: calc(19px * var(--fm-r)); overflow: hidden; background: var(--fm-tint-2); }
.fmac .fm-explorer__panel { display: grid; grid-template-columns: 38% 1fr; min-height: 345px; animation: fm-detail-in .4s ease-out both; }
.fmac .fm-explorer__panel[hidden] { display: none; }
.fmac .fm-explorer__image { min-height: 100%; position: relative; overflow: hidden; background: var(--fm-service-bg); }
.fmac .fm-explorer__image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transform: scale(1.025); filter: brightness(1.17) saturate(.9); }
.fmac .fm-explorer__text { padding: clamp(23px, 3vw, 39px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.fmac .fm-explorer__text h3 { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.035em; margin-bottom: 15px; }
.fmac .fm-explorer__text p, .fmac .fm-explorer__text li { font-size: 13px; line-height: 1.65; color: var(--fm-muted); }
.fmac .fm-explorer__text p { margin-bottom: 10px; }
.fmac .fm-explorer__text ul { padding-left: 18px; margin: 0 0 15px; }
.fmac .fm-explorer__text .fm-btn { margin-top: 8px; }

/* Instagram : section fine, bandeau pleine largeur */
.fmac .fm-ig-section { padding: 58px 0 54px; background: var(--fm-tint-4); }
.fmac .fm-ig-title { margin: 0 0 26px; text-align: center; color: var(--fm-text); font-size: clamp(21px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.fmac .fm-ig-section .fm-admin-note { margin-top: 0; }
#fmac .fm-insta #sb_instagram { padding: 0 8px !important; width: 100% !important; max-width: none !important; }
#fmac .fm-insta #sb_instagram .sb_instagram_header, #fmac .fm-insta #sb_instagram .sbi_header { display: none !important; }

/* Témoignages */
.fmac .fm-quote { border: 1px solid var(--fm-border); border-radius: calc(16px * var(--fm-r)); background: #fff; padding: 26px; display: flex; flex-direction: column; height: 100%; min-height: 265px; box-shadow: 0 7px 22px #26315109; }
.fmac .fm-quote__mark { font-size: 60px; color: var(--fm-quote); font-weight: 800; line-height: .75; letter-spacing: -.09em; margin-bottom: 14px; }
.fmac .fm-quote blockquote { margin: 0 0 24px; padding: 0; border: 0; font-size: 13px; line-height: 1.75; color: #46516e; font-style: normal; quotes: none; }
.fmac .fm-quote blockquote::before, .fmac .fm-quote blockquote::after { content: none; }
.fmac .fm-quote blockquote p { margin: 0 0 10px; font-size: inherit; }
.fmac .fm-quote__name { padding-top: 17px; display: flex; gap: 12px; align-items: center; margin-top: auto; }
.fmac .fm-avatar { flex-shrink: 0; border-radius: 50%; width: 41px; height: 41px; display: grid; place-items: center; background: var(--fm-tint-3); color: var(--fm-navy); font-size: 12px; font-weight: 700; }
.fmac .fm-quote__name strong { display: block; font-size: 13px; }
body .fmac .fm-quote__name a:hover { text-decoration: underline; }
.fmac .fm-quote__name small { font-size: 11px; color: var(--fm-muted); }

/* Évaluez votre bien */
.fmac .fm-valuation { background: linear-gradient(135deg, var(--fm-val-a), var(--fm-val-b)); color: #fff; position: relative; overflow: hidden; }
.fmac .fm-valuation::before { content: ""; position: absolute; right: -160px; top: -250px; border-radius: 50%; height: 660px; width: 660px; border: 1px solid var(--fm-ring); box-shadow: 0 0 0 60px var(--fm-ring-09), 0 0 0 130px var(--fm-ring-08); pointer-events: none; }
.fmac .fm-valuation .fm-container { position: relative; }
.fmac .fm-valuation .fm-h2 { color: #fff; }
.fmac .fm-valuation__panel { background: #fff; border-radius: calc(22px * var(--fm-r)); padding: 34px 38px; color: var(--fm-navy); box-shadow: 0 22px 70px #11213f4d; }
.fmac .fm-valuation__panel .fm-admin-note { width: auto; margin: 0; }

/* Contact */
.fmac .fm-contact { background: var(--fm-tint-5); }
.fmac .fm-contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.fmac .fm-contact__copy p { max-width: 470px; color: var(--fm-muted); line-height: 1.85; }
.fmac .fm-contact__icon { width: 58px; height: 58px; background: var(--fm-tint-3); display: grid; place-items: center; border-radius: calc(14px * var(--fm-r)); color: var(--fm-accent-dark); margin-bottom: 27px; }
.fmac .fm-contact__icon svg { width: 29px; height: 29px; stroke-width: 1.7; }
.fmac .fm-contact-panel { background: #fff; border: 1px solid var(--fm-border); box-shadow: var(--fm-shadow); padding: 32px; border-radius: calc(19px * var(--fm-r)); position: relative; }

@media (max-width: 1100px) {
	.fmac .fm-portraits { min-height: 325px; }
	.fmac .fm-team__editorial { gap: 26px; }
	.fmac .fm-explorer { gap: 19px; }
	.fmac .fm-contact__grid { gap: 40px; }
}
@media (max-width: 860px) {
	.fmac .fm-hero__layout { padding: 55px 0 70px; }
	.fmac .fm-hero__subtitle { max-width: 600px; font-size: 26px; }
	.fmac .fm-team__editorial { grid-template-columns: 1fr; gap: 24px; }
	.fmac .fm-portraits { min-height: 330px; }
	.fmac .fm-team__details { min-height: 0; }
	.fmac .fm-member { max-width: 650px; }
	.fmac .fm-team__hint { margin-top: 12px; }
	.fmac .fm-explorer { grid-template-columns: minmax(200px, .85fr) 1.35fr; gap: 15px; }
	.fmac .fm-explorer__panel { grid-template-columns: 1fr; min-height: 0; }
	.fmac .fm-explorer__image { min-height: 160px; }
	.fmac .fm-explorer__text { padding: 24px; }
	.fmac .fm-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.fmac .fm-hero__layout { padding: 42px 0 74px; }
	.fmac .fm-hero__subtitle { font-size: 21px; margin-bottom: 27px; }
	.fmac .fm-hero__text { font-size: 13px; }
	.fmac .fm-hero__toggle { width: 34px; height: 34px; bottom: 14px; right: 14px; }
	.fmac .fm-hero__cue { bottom: 18px; }
	.fmac .fm-partners { padding: 19px 0; }
	.fmac .fm-partner-track { gap: 20px; }
	.fmac .fm-partner-track .fm-partner { width: 78px; height: 50px; }
	.fmac .fm-opp { min-height: 295px; }
	.fmac .fm-team__top { flex-direction: column; align-items: flex-start; gap: 12px; }
	.fmac .fm-portraits { min-height: 250px; gap: 6px; grid-template-columns: 1.7fr 1fr 1fr; }
	.fmac .fm-portraits[data-active="1"] { grid-template-columns: 1fr 1.7fr 1fr; }
	.fmac .fm-portraits[data-active="2"] { grid-template-columns: 1fr 1fr 1.7fr; }
	.fmac .fm-portrait { border-radius: calc(10px * var(--fm-r)); }
	.fmac .fm-portrait__name { font-size: 10px; padding: 13px 6px; }
	.fmac .fm-portrait[aria-pressed="true"] .fm-portrait__name { font-size: 12px; padding: 15px 8px; }
	.fmac .fm-team__editorial { gap: 22px; }
	.fmac .fm-member h3 { font-size: 30px; }
	.fmac .fm-member p { font-size: 14px; }
	.fmac .fm-team__hint { font-size: 11px; }
	.fmac .fm-explorer { grid-template-columns: 1fr; gap: 13px; }
	.fmac .fm-explorer__index { gap: 6px; }
	.fmac .fm-explorer__tab { padding: 12px 15px; min-height: 45px; font-size: 13px; }
	.fmac .fm-explorer__image { min-height: 155px; }
	.fmac .fm-explorer__text { padding: 21px; }
	.fmac .fm-explorer__detail { border-radius: calc(13px * var(--fm-r)); }
	.fmac .fm-valuation__panel, .fmac .fm-contact-panel { padding: 22px 17px; border-radius: calc(15px * var(--fm-r)); }
}
@media (prefers-reduced-motion: reduce) {
	.fmac .fm-partner-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
	.fmac .fm-partner-track [aria-hidden="true"] { display: none; }
}
