/* ==========================================================================
   FreeMoov — Global Experience 2026
   Header "Motion Navigation" + Footer "Industrial Signature"
   Scope strict : .fm-global-header / .fm-global-footer
   Aucune regle generique sur header, footer, .ast-container ou
   .elementor-container. Aucune police ni bibliotheque d icones ajoutee.
   ========================================================================== */

.fm-global-header,
.fm-global-footer {
  --fm-navy: #14213D;
  --fm-navy-2: #0B1730;
  --fm-navy-3: #08162D;
  --fm-cyan: #34B3F1;
  --fm-cyan-ink: #0A6390;
  --fm-orange: #FCA311;
  --fm-paper: #F8FAFC;
  --fm-line: #D3DEEB;
  --fm-mute: #D5DFEC;
  --fm-inner: 1480px;
  --fm-gut: clamp(18px, 3vw, 40px);
  --fm-ease: cubic-bezier(.22, .68, .28, 1);
}

/* ==========================================================================
   1. HEADER — geometrie et etat colle
   Le header est retire du flux et compense par une cale de hauteur fixe :
   la compaction ne peut donc jamais decaler le contenu (CLS = 0).
   ========================================================================== */

:root {
  --fm-gh-top: 0px;
  --fm-gh-h: 86px;
  --fm-gh-bar: 86px;
  --fm-gh-bar-compact: 72px;
}

body.admin-bar { --fm-gh-top: 32px; }
@media (max-width: 782px) {
  body.admin-bar { --fm-gh-top: 46px; }
}

@media (max-width: 921px) {
  :root { --fm-gh-h: 74px; --fm-gh-bar: 74px; --fm-gh-bar-compact: 64px; }
}

/* Cale de flux : hauteur constante, jamais animee. */
.fm-gh-spacer {
  height: var(--fm-gh-h);
  flex: 0 0 auto;
}

.fm-gh-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  opacity: 0;
}

header.fm-global-header {
  position: fixed;
  top: var(--fm-gh-top);
  left: 0;
  right: 0;
  z-index: 900;
  background: none;
  box-shadow: none;
  border: 0;
}

/* Barre peinte. Le prefixe #masthead est necessaire : le CSS dynamique
   d Astra cible lui aussi #masthead et l emporterait sinon. La portee
   reste conditionnee par .fm-global-header. */
#masthead.fm-global-header .ast-main-header-wrap {
  position: relative;
  background: rgba(248, 250, 253, .94);
  border-bottom: 1px solid rgba(20, 33, 61, .08);
  box-shadow: none;
  transition: box-shadow .30s var(--fm-ease), background-color .30s var(--fm-ease);
}

@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
  #masthead.fm-global-header .ast-main-header-wrap {
    background: rgba(248, 250, 253, .86);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    backdrop-filter: saturate(150%) blur(10px);
  }
}

/* La hauteur est portee par la barre interne d Astra, dont la contrainte
   min-height native (80px) est neutralisee pour autoriser l etat compact. */
#masthead.fm-global-header .ast-primary-header-bar {
  height: var(--fm-gh-bar);
  min-height: 0;
  background: transparent;
  border: 0;
  transition: height .30s var(--fm-ease);
}

/* Enfant direct uniquement : sur mobile, la barre porte elle-meme cette
   classe et ne doit pas heriter d une hauteur de 100%. */
#masthead.fm-global-header .ast-primary-header-bar > .site-primary-header-wrap {
  min-height: 0;
  height: 100%;
}

#masthead.fm-global-header.is-compact { --fm-gh-bar: var(--fm-gh-bar-compact); }

#masthead.fm-global-header.is-compact .ast-main-header-wrap {
  box-shadow: 0 8px 26px rgba(8, 22, 45, .06);
}

/* Filet technique cyan -> orange, revele une seule fois a la compaction. */
#masthead.fm-global-header .ast-main-header-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--fm-cyan) 0%, var(--fm-cyan) 62%, var(--fm-orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .42s var(--fm-ease);
  pointer-events: none;
}

#masthead.fm-global-header.is-compact .ast-main-header-wrap::after { transform: scaleX(1); }

/* Conteneur interieur : aligne sur les sections de contenu. */
#masthead.fm-global-header .ast-container {
  max-width: var(--fm-inner);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--fm-gut);
  padding-right: var(--fm-gut);
  height: 100%;
}

/* La barre mobile porte elle-meme les gouttieres ; sa hauteur reste celle
   definie plus haut et ne doit surtout pas etre ramenee a 100%. */
#masthead.fm-global-header #ast-mobile-header .ast-primary-header-bar {
  max-width: var(--fm-inner);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--fm-gut);
  padding-right: var(--fm-gut);
}

#masthead.fm-global-header .ast-builder-grid-row {
  height: 100%;
  align-items: center;
}

#masthead.fm-global-header .site-header-section { height: 100%; align-items: center; }

/* Logo : ratio strictement preserve, aucune deformation, aucun recadrage. */
#masthead.fm-global-header .custom-logo {
  width: 177px;
  height: auto;
  max-width: 100%;
  display: block;
  transition: width .30s var(--fm-ease);
}

#masthead.fm-global-header.is-compact .custom-logo { width: 163px; }

.fm-global-header .site-logo-img,
.fm-global-header .custom-logo-link { display: block; line-height: 0; }

.fm-global-header .custom-logo-link:focus-visible {
  outline: 2px solid var(--fm-cyan-ink);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 921px) {
  #masthead.fm-global-header .custom-logo { width: 152px; }
}
@media (max-width: 400px) {
  #masthead.fm-global-header .custom-logo { width: 134px; }
}

/* ==========================================================================
   2. HEADER — navigation "trajectoire industrielle"
   depart -> ligne cyan -> destination orange. One-shot, jamais en boucle.
   ========================================================================== */

.fm-global-header .ast-builder-menu-1 { height: 100%; }
.fm-global-header .ast-builder-menu-1 .main-header-bar-navigation,
.fm-global-header .ast-builder-menu-1 .site-navigation,
.fm-global-header .ast-builder-menu-1 .main-navigation { height: 100%; }

.fm-global-header #ast-hf-menu-1 {
  height: 100%;
  align-items: center;
  gap: clamp(2px, .9vw, 14px);
}

.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 6px;
  margin: 0 4px;
  font-family: 'Exo', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
  color: var(--fm-navy);
  background: none;
  border-radius: 6px;
  transition: color .22s var(--fm-ease);
}

/* Point de depart */
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link::before {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fm-orange);
  opacity: 0;
  transform: scale(.3);
  transition: opacity .20s var(--fm-ease) .20s, transform .24s var(--fm-ease) .20s;
  pointer-events: none;
}

/* Trajectoire cyan */
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--fm-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--fm-ease);
  pointer-events: none;
}

.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:hover,
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:focus-visible,
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link[aria-current="page"] {
  color: var(--fm-navy);
}

.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:hover::after,
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:focus-visible::after,
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:hover::before,
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:focus-visible::before,
.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
  left: auto;
  right: 6px;
}

.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link[aria-current="page"] {
  font-weight: 700;
}

.fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link:focus-visible {
  outline: 2px solid var(--fm-cyan-ink);
  outline-offset: 2px;
}

/* Contact : action principale compacte. Aucun second lien Contact ajoute. */
.fm-global-header #ast-hf-menu-1 > .menu-item-16 > .menu-link {
  height: 44px;
  padding: 0 20px;
  margin-left: 12px;
  border-radius: 11px;
  background: var(--fm-navy);
  border: 1px solid var(--fm-navy);
  color: #FFFFFF;
  font-weight: 600;
  transition: background-color .24s var(--fm-ease), border-color .24s var(--fm-ease),
              color .24s var(--fm-ease);
}

.fm-global-header #ast-hf-menu-1 > .menu-item-16 > .menu-link::after {
  left: 20px;
  right: 20px;
  bottom: 9px;
  background: var(--fm-cyan);
}

.fm-global-header #ast-hf-menu-1 > .menu-item-16 > .menu-link::before { display: none; }

.fm-global-header #ast-hf-menu-1 > .menu-item-16 > .menu-link:hover,
.fm-global-header #ast-hf-menu-1 > .menu-item-16 > .menu-link:focus-visible {
  background: var(--fm-cyan-ink);
  border-color: var(--fm-cyan-ink);
  color: #FFFFFF;
}

.fm-global-header #ast-hf-menu-1 > .menu-item-16 > .menu-link:focus-visible {
  outline: 2px solid var(--fm-navy);
  outline-offset: 3px;
}

/* ==========================================================================
   3. HEADER — reseaux sociaux (LinkedIn, Instagram, YouTube)
   ========================================================================== */

.fm-global-header .ast-header-social-1-wrap { margin-left: 14px; }

.fm-global-header .header-social-inner-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fm-global-header .ast-builder-social-element.header-social-item {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: transparent;
  border: 1px solid rgba(20, 33, 61, .16);
  color: var(--fm-navy);
  transition: color .22s var(--fm-ease), border-color .22s var(--fm-ease),
              background-color .22s var(--fm-ease);
}

.fm-global-header .ast-builder-social-element.header-social-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.fm-global-header .ast-builder-social-element.header-social-item:hover,
.fm-global-header .ast-builder-social-element.header-social-item:focus-visible {
  color: var(--fm-cyan-ink);
  border-color: var(--fm-cyan);
  background: rgba(52, 179, 241, .10);
}

.fm-global-header .ast-builder-social-element.header-social-item:focus-visible {
  outline: 2px solid var(--fm-cyan-ink);
  outline-offset: 2px;
}

/* ==========================================================================
   4. HEADER — tablette et mobile
   ========================================================================== */

.fm-global-header #ast-mobile-header .ast-main-header-wrap { position: relative; }

.fm-global-header #ast-mobile-header .site-header-primary-section-left,
.fm-global-header #ast-mobile-header .site-header-primary-section-right {
  align-items: center;
}

#masthead.fm-global-header .menu-toggle.main-header-menu-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(20, 33, 61, .16);
  color: var(--fm-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color .22s var(--fm-ease), border-color .22s var(--fm-ease),
              color .22s var(--fm-ease);
}

#masthead.fm-global-header .menu-toggle.main-header-menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#masthead.fm-global-header .menu-toggle.main-header-menu-toggle:hover,
#masthead.fm-global-header .menu-toggle.main-header-menu-toggle:focus-visible {
  border-color: var(--fm-cyan);
  color: var(--fm-cyan-ink);
  background: rgba(52, 179, 241, .10);
}

#masthead.fm-global-header .menu-toggle.main-header-menu-toggle:focus-visible {
  outline: 2px solid var(--fm-cyan-ink);
  outline-offset: 2px;
}

#masthead.fm-global-header .menu-toggle.main-header-menu-toggle[aria-expanded="true"] {
  background: var(--fm-navy);
  border-color: var(--fm-navy);
  color: #FFFFFF;
}

/* Panneau : pleine largeur sous le header, fond navy profond. */
.fm-global-header .ast-mobile-header-content {
  background: var(--fm-navy-3);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 8px var(--fm-gut) 22px;
  max-height: calc(100dvh - var(--fm-gh-h) - var(--fm-gh-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 48px rgba(8, 22, 45, .28);
}

.fm-global-header .ast-mobile-header-content .main-header-menu {
  counter-reset: fmnav;
  display: block;
  background: transparent;
  border: 0;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item {
  display: block;
  border-bottom: 1px solid rgba(213, 223, 236, .12);
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link {
  counter-increment: fmnav;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 4px 8px 0;
  font-family: 'Exo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  background: transparent;
  border: 0;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link::before {
  content: "0" counter(fmnav);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(213, 223, 236, .52);
  min-width: 22px;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: 10px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--fm-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--fm-ease);
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link[aria-current="page"]::after,
.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link:hover::after,
.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link:focus-visible::after {
  transform: scaleX(1);
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link:focus-visible {
  outline: 2px solid var(--fm-cyan);
  outline-offset: -2px;
  border-radius: 8px;
}

/* Contact : action visible dans le panneau, point orange de destination. */
.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 {
  border-bottom: 0;
  margin-top: 14px;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 > .menu-link {
  justify-content: flex-start;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--fm-cyan-ink);
  color: #FFFFFF;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 > .menu-link::after {
  display: none;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 > .menu-link > span,
.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 > .menu-link {
  position: relative;
}

.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 > .menu-link:hover,
.fm-global-header .ast-mobile-header-content .main-header-menu > .menu-item-16 > .menu-link:focus-visible {
  background: var(--fm-cyan);
  color: var(--fm-navy-3);
}

/* Reseaux sociaux du panneau : une ligne en bas. */
.fm-global-header .ast-mobile-header-content .ast-header-social-1-wrap {
  margin: 20px 0 0;
}

.fm-global-header .ast-mobile-header-content .header-social-inner-wrap {
  gap: 10px;
  justify-content: flex-start;
}

.fm-global-header .ast-mobile-header-content .ast-builder-social-element.header-social-item {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border-color: rgba(213, 223, 236, .26);
  color: #FFFFFF;
}

.fm-global-header .ast-mobile-header-content .ast-builder-social-element.header-social-item:hover,
.fm-global-header .ast-mobile-header-content .ast-builder-social-element.header-social-item:focus-visible {
  color: var(--fm-navy-3);
  background: var(--fm-cyan);
  border-color: var(--fm-cyan);
}

/* ==========================================================================
   5. Ancrages : compense la barre fixe pour toutes les cibles #id
   ========================================================================== */

html { scroll-padding-top: calc(var(--fm-gh-bar-compact) + var(--fm-gh-top) + 12px); }

/* ==========================================================================
   6. FOOTER — Industrial Signature 2026
   ========================================================================== */

.fm-global-footer {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--fm-navy-3) 0%, #0A1A33 46%, var(--fm-navy-2) 100%);
  color: var(--fm-mute);
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
}

.fm-global-footer * { box-sizing: border-box; }

/* Grille technique + halo cyan : purement decoratifs. */
.fm-global-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(213, 223, 236, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(213, 223, 236, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.fm-global-footer::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 12%;
  width: 720px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(52, 179, 241, .13), rgba(52, 179, 241, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.fm-global-footer > .elementor-container {
  position: relative;
  z-index: 1;
  max-width: var(--fm-inner);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--fm-gut);
}

.fm-global-footer .elementor-widget-wrap,
.fm-global-footer .elementor-widget-wrap.elementor-element-populated { padding: 0; }
.fm-global-footer .elementor-column { width: 100%; max-width: 100%; }
.fm-global-footer .elementor-widget:not(:last-child) { margin-bottom: 0; }
.fm-global-footer .elementor-widget-container { margin: 0; padding: 0; }

/* Trajectoire cyan -> orange, dessinee une seule fois a l entree. */
/* Etat de repos = VISIBLE. Le masquage n existe que si le runtime a pu
   armer la revelation (.is-armed) : sans JS, JS en erreur, ou
   IntersectionObserver indisponible, le footer reste integralement lisible. */
.fm-gf-trace {
  position: relative;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--fm-cyan) 0%, var(--fm-cyan) 58%, var(--fm-orange) 100%);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform .9s var(--fm-ease);
  border-radius: 2px;
}

.fm-gf-block {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--fm-ease), transform .5s var(--fm-ease);
}

.fm-global-footer.is-armed:not(.is-revealed) .fm-gf-trace { transform: scaleX(0); }

.fm-global-footer.is-armed:not(.is-revealed) .fm-gf-block {
  opacity: 0;
  transform: translateY(8px);
}

.fm-global-footer.is-revealed .fm-gf-block[data-fm-step="1"] { transition-delay: .06s; }
.fm-global-footer.is-revealed .fm-gf-block[data-fm-step="2"] { transition-delay: .12s; }
.fm-global-footer.is-revealed .fm-gf-block[data-fm-step="3"] { transition-delay: .18s; }
.fm-global-footer.is-revealed .fm-gf-block[data-fm-step="4"] { transition-delay: .24s; }

/* --- Bande de signature ------------------------------------------------- */

.fm-gf-sig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 34px 0 20px;
}

.fm-gf-sig__logo {
  width: 186px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.fm-gf-sig__line {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fm-mute);
}

.fm-gf-social {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.fm-gf-social li { margin: 0; padding: 0; list-style: none; }

.fm-gf-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(213, 223, 236, .24);
  color: #FFFFFF;
  text-decoration: none;
  transition: color .22s var(--fm-ease), border-color .22s var(--fm-ease),
              background-color .22s var(--fm-ease);
}

.fm-gf-social a svg { width: 19px; height: 19px; fill: currentColor; display: block; }

.fm-gf-social a:hover,
.fm-gf-social a:focus-visible {
  color: var(--fm-navy-3);
  background: var(--fm-cyan);
  border-color: var(--fm-cyan);
}

.fm-gf-social a:focus-visible { outline: 2px solid var(--fm-cyan); outline-offset: 3px; }

.fm-gf-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 13px;
  background: var(--fm-orange);
  color: var(--fm-navy-3);
  font-family: 'Exo', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--fm-orange);
  transition: background-color .24s var(--fm-ease), color .24s var(--fm-ease),
              border-color .24s var(--fm-ease);
}

.fm-gf-cta__arrow { transition: transform .26s var(--fm-ease); }
.fm-gf-cta:hover .fm-gf-cta__arrow,
.fm-gf-cta:focus-visible .fm-gf-cta__arrow { transform: translateX(4px); }

.fm-gf-cta:hover,
.fm-gf-cta:focus-visible {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--fm-navy-3);
}

.fm-gf-cta:focus-visible { outline: 2px solid var(--fm-cyan); outline-offset: 3px; }

/* --- Grille principale --------------------------------------------------- */

.fm-gf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 40px;
  padding: 32px 0 34px;
  border-top: 1px solid rgba(213, 223, 236, .12);
}

.fm-gf-col > summary,
.fm-gf-col__title {
  font-family: 'Exo', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 12px;
  list-style: none;
}

.fm-gf-col > summary::-webkit-details-marker { display: none; }
.fm-gf-col > summary::marker { content: ""; }

.fm-gf-col > summary::after,
.fm-gf-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--fm-cyan);
}

.fm-gf-list { list-style: none; margin: 0; padding: 0; }

.fm-gf-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fm-mute);
  text-decoration: none;
  transition: color .22s var(--fm-ease);
}

.fm-gf-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--fm-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--fm-ease);
}

.fm-gf-list a:hover,
.fm-gf-list a:focus-visible { color: #FFFFFF; }

.fm-gf-list a:hover::after,
.fm-gf-list a:focus-visible::after { transform: scaleX(1); }

.fm-gf-list a:focus-visible {
  outline: 2px solid var(--fm-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Colonne contact ----------------------------------------------------- */

.fm-gf-contact { list-style: none; margin: 0; padding: 0; }

.fm-gf-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.fm-gf-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(213, 223, 236, .20);
  background: rgba(52, 179, 241, .07);
  color: var(--fm-cyan);
}

.fm-gf-ico svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.fm-gf-contact__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(213, 223, 236, .58);
  margin-bottom: 2px;
}

.fm-gf-contact__value {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fm-mute);
  text-decoration: none;
}

a.fm-gf-contact__value { position: relative; transition: color .22s var(--fm-ease); }
a.fm-gf-contact__value:hover,
a.fm-gf-contact__value:focus-visible { color: #FFFFFF; text-decoration: underline; }
a.fm-gf-contact__value:focus-visible { outline: 2px solid var(--fm-cyan); outline-offset: 3px; }

.fm-gf-contact li > div { min-width: 0; padding-top: 1px; }

/* --- Bande newsletter ---------------------------------------------------- */

.fm-gf-nl {
  padding: 26px 0 6px;
  border-top: 1px solid rgba(213, 223, 236, .12);
}

.fm-gf-nl__title {
  font-family: 'Exo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.fm-gf-nl__hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(213, 223, 236, .78);
  max-width: 58ch;
}

/* Le formulaire reste le widget Elementor d origine : seul le style change.
   Il se revele avec la bande newsletter pour rester solidaire. */
.fm-global-footer .elementor-widget-form {
  padding: 14px 0 40px;
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--fm-ease), transform .5s var(--fm-ease);
}

.fm-global-footer.is-armed:not(.is-revealed) .elementor-widget-form {
  opacity: 0;
  transform: translateY(8px);
}

.fm-global-footer.is-revealed .elementor-widget-form { transition-delay: .18s; }

.fm-global-footer .elementor-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  max-width: 620px;
}

/* Specificite volontairement superieure a la feuille de base Elementor,
   qui impose sinon width:100% et des gouttieres negatives aux champs. */
.fm-global-footer .elementor-widget-form .elementor-form .elementor-form-fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
  margin: 0;
}

.fm-global-footer .elementor-widget-form .elementor-form .elementor-field-group {
  padding: 0;
  margin: 0;
  width: auto;
  max-width: none;
  flex: 1 1 250px;
}

.fm-global-footer .elementor-widget-form .elementor-form .elementor-field-group.elementor-field-type-submit {
  flex: 0 0 auto;
  width: auto;
}

.fm-global-footer .elementor-form .elementor-field-label {
  display: block;
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(213, 223, 236, .68);
  margin-bottom: 8px;
}

.fm-global-footer .elementor-form input[type="email"],
.fm-global-footer .elementor-form input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(213, 223, 236, .26);
  background: rgba(8, 22, 45, .55);
  color: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 15.5px;
  box-shadow: none;
  transition: border-color .22s var(--fm-ease), background-color .22s var(--fm-ease);
}

.fm-global-footer .elementor-form input::placeholder { color: rgba(213, 223, 236, .48); }

.fm-global-footer .elementor-form input[type="email"]:focus,
.fm-global-footer .elementor-form input[type="text"]:focus {
  border-color: var(--fm-cyan);
  background: rgba(8, 22, 45, .78);
  outline: 2px solid var(--fm-cyan);
  outline-offset: 1px;
}

.fm-global-footer .elementor-form .elementor-button {
  height: 52px;
  min-width: 152px;
  padding: 0 26px;
  border-radius: 12px;
  border: 1px solid var(--fm-cyan);
  background: var(--fm-cyan);
  color: var(--fm-navy-3);
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
  transition: background-color .24s var(--fm-ease), color .24s var(--fm-ease),
              border-color .24s var(--fm-ease);
}

.fm-global-footer .elementor-form .elementor-button:hover,
.fm-global-footer .elementor-form .elementor-button:focus-visible {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--fm-navy-3);
}

.fm-global-footer .elementor-form .elementor-button:focus-visible {
  outline: 2px solid var(--fm-cyan);
  outline-offset: 3px;
}

.fm-global-footer .elementor-message {
  font-size: 15px;
  color: #FFFFFF;
  flex: 1 0 100%;
  margin-top: 4px;
}

.fm-global-footer .elementor-message.elementor-message-success { color: #8FE3B0; }
.fm-global-footer .elementor-message.elementor-message-danger { color: #FFB4A6; }

/* --- Bande legale -------------------------------------------------------- */

.fm-gf-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(213, 223, 236, .12);
  background: transparent;
}

.fm-gf-legal p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(213, 223, 236, .72);
}

.fm-gf-legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.fm-gf-legal a {
  font-size: 14.5px;
  color: rgba(213, 223, 236, .72);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color .22s var(--fm-ease);
}

.fm-gf-legal a:hover,
.fm-gf-legal a:focus-visible { color: #FFFFFF; text-decoration: underline; }
.fm-gf-legal a:focus-visible { outline: 2px solid var(--fm-cyan); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   7. FOOTER — responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .fm-gf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
}

@media (max-width: 900px) {
  .fm-gf-sig { grid-template-columns: minmax(0, 1fr); }
  .fm-gf-sig__cta { justify-self: start; }
}

@media (max-width: 719px) {
  .fm-gf-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 24px 0 30px;
  }

  .fm-gf-col.fm-gf-col--acc {
    border-bottom: 1px solid rgba(213, 223, 236, .12);
  }

  .fm-gf-col.fm-gf-col--acc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin: 0;
    padding: 0 2px 0 0;
    cursor: pointer;
  }

  .fm-gf-col.fm-gf-col--acc > summary::after { bottom: 12px; }

  .fm-gf-col.fm-gf-col--acc > summary .fm-gf-chevron {
    transition: transform .24s var(--fm-ease);
    flex: 0 0 auto;
    color: var(--fm-cyan);
  }

  .fm-gf-col.fm-gf-col--acc[open] > summary .fm-gf-chevron { transform: rotate(180deg); }

  .fm-gf-col.fm-gf-col--acc > .fm-gf-list { padding-bottom: 12px; }

  .fm-gf-col--contact { padding-top: 26px; }

  .fm-global-footer .elementor-form,
  .fm-global-footer .elementor-widget-form .elementor-form .elementor-form-fields-wrapper { flex-direction: column; align-items: stretch; }
  .fm-global-footer .elementor-widget-form .elementor-form .elementor-field-group { flex: 0 0 auto; width: 100%; }
  .fm-global-footer .elementor-form .elementor-button { width: 100%; }

  .fm-gf-legal { justify-content: flex-start; padding-bottom: 34px; }
  .fm-gf-sig { padding: 40px 0 26px; }
  .fm-gf-sig__logo { width: 158px; }
}

/* Le chevron n existe que dans l accordeon mobile. */
.fm-gf-chevron { display: none; }
@media (max-width: 719px) { .fm-gf-chevron { display: inline-flex; } }

/* ==========================================================================
   8. Mouvement reduit — tout est immediatement visible et fonctionnel
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  #masthead.fm-global-header .ast-main-header-wrap,
  #masthead.fm-global-header .ast-primary-header-bar,
  #masthead.fm-global-header .custom-logo,
  #masthead.fm-global-header .ast-main-header-wrap::after,
  .fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link,
  .fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link::before,
  .fm-global-header #ast-hf-menu-1 > .menu-item > .menu-link::after,
  .fm-global-footer .fm-gf-trace,
  .fm-global-footer .fm-gf-block,
  .fm-global-footer .fm-gf-list a::after,
  .fm-global-footer .fm-gf-cta__arrow {
    transition: none !important;
    animation: none !important;
  }

  .fm-global-footer .fm-gf-block,
  .fm-global-footer .elementor-widget-form { opacity: 1 !important; transform: none !important; }
  .fm-global-footer .fm-gf-trace { transform: scaleX(1) !important; }
  #masthead.fm-global-header .ast-main-header-wrap::after { transform: scaleX(0) !important; }
}
