/*
 * Cadre visuel Franault — éditorial, courbes, fondus, bulles liquides.
 * Tout se règle par variables (:root) et par des classes à coller dans Elementor > Avancé > Classes CSS.
 *
 * Sections  : fx-dark, fx-paper, fx-hero, fx-blobs (bulles liquides), fx-aurora (dégradé animé)
 * Texte     : <span class="fx-grad"> dans un titre (dégradé animé), fx-kicker, fx-h1, fx-h2, fx-lead, fx-pull
 * Mise en page : fx-split (2 colonnes asymétriques), fx-col, fx-col-side, fx-offset (décalage), fx-wide
 * Listes    : fx-row (rangée éditoriale numérotée), fx-check
 * Images    : fx-bgimg (photo de fond en fondu), fx-mask-b, fx-mask-r, fx-organic (forme organique)
 * Boutons   : fx-btn (plein), fx-link (texte + flèche)
 * Effets    : fx-reveal (apparition au défilement)
 */
:root {
  --fx-ink: #0b1330;
  --fx-ink-2: #141f47;
  --fx-paper: #faf9f6;
  --fx-text: #1a2220;
  --fx-muted: #55605c;
  --fx-green: #75ac51;       /* vert du logo */
  --fx-green-d: #4a7f30;     /* vert foncé, texte sur fond clair */
  --fx-grey: #adaeae;        /* gris du logo */
  --fx-periwinkle: #9db8ff;
  --fx-coral: #ff7a59;
  --fx-hair: rgba(26, 34, 32, .16);
  --fx-ease: cubic-bezier(.22, 1, .36, 1);
  --fx-head: "Fraunces", Georgia, "Times New Roman", serif;
  --fx-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--fx-body); color: var(--fx-text); background: var(--fx-paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .elementor-heading-title { font-family: var(--fx-head); font-weight: 500; letter-spacing: -.015em; }
a { text-underline-offset: .2em; }

/* ---------- Sections ---------- */
.fx-section { position: relative; isolation: isolate; overflow: hidden; }
.fx-paper { background: var(--fx-paper); }
.fx-dark { background: var(--fx-ink); color: #dfe5ff; }
.fx-dark h1, .fx-dark h2, .fx-dark h3, .fx-dark .elementor-heading-title { color: #fff; }
.fx-dark p, .fx-dark .elementor-widget-text-editor { color: #c5cdf0; }
.fx-dark a { color: #e8ecff; }

.fx-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(110% 90% at 12% 8%, #1d2c70 0%, var(--fx-ink) 58%, #060a1c 100%); }
.fx-hero p, .fx-hero .elementor-widget-text-editor { color: #ccd4f6; }
.fx-wide { width: 100%; }

/* ---------- Texte ---------- */
.fx-h1 .elementor-heading-title, h1.fx-h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.03; font-weight: 500; }
.fx-h2 .elementor-heading-title, h2.fx-h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.1; font-weight: 500; }
.fx-lead, .fx-lead p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; max-width: 38em; }
.fx-pull .elementor-heading-title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.2; font-style: italic; font-weight: 400; max-width: 22em; }

/* Étiquette sobre : un trait + texte, pas de pastille */
.fx-kicker .elementor-heading-title {
  display: flex; align-items: center; gap: 14px; font-family: var(--fx-body); font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  color: var(--fx-green-d);
}
.fx-kicker .elementor-heading-title::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.fx-dark .fx-kicker .elementor-heading-title, .fx-hero .fx-kicker .elementor-heading-title { color: var(--fx-green); }

/* Dégradé animé dans le texte (à placer sur un <span> dans le titre) */
.fx-grad, .fx-gradient-text .elementor-heading-title {
  background: linear-gradient(90deg, var(--fx-periwinkle), #c9a2c2, var(--fx-coral), #c9a2c2, var(--fx-periwinkle));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: fx-shift 9s linear infinite;
}
@keyframes fx-shift { to { background-position: 250% 0; } }

/* ---------- Mise en page asymétrique ---------- */
.fx-col { flex: 1 1 420px; min-width: 0; }
.fx-col-side { flex: 0 1 380px; min-width: 0; }
.fx-offset { margin-top: clamp(0px, 6vw, 72px); }
.fx-offset-2 { margin-top: clamp(0px, 12vw, 144px); }

/* ---------- Rangées éditoriales ---------- */
.fx-row { position: relative; width: 100%; border-top: 1px solid var(--fx-hair); padding: clamp(20px, 2.6vw, 34px) 0; align-items: baseline !important;
  transition: padding-left .5s var(--fx-ease); }
.fx-row:last-child { border-bottom: 1px solid var(--fx-hair); }
.fx-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--fx-green), var(--fx-periwinkle), var(--fx-coral)); transition: width .7s var(--fx-ease); }
.fx-row:hover { padding-left: 14px; }
.fx-row:hover::after { width: 100%; }
.fx-row .fx-num .elementor-heading-title { font-family: var(--fx-body); font-size: .95rem; color: var(--fx-green-d); font-weight: 500; min-width: 2.2em; }
.fx-row h3, .fx-row .fx-row-title .elementor-heading-title { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.fx-row p { margin: 0; color: var(--fx-muted); }
.fx-dark .fx-row { border-color: rgba(255,255,255,.18); }

.fx-check ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fx-check li { position: relative; padding-left: 28px; line-height: 1.5; }
.fx-check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--fx-green-d); border-bottom: 2px solid var(--fx-green-d); transform: rotate(-45deg) scale(.9); }
.fx-dark .fx-check li::before { border-color: var(--fx-green); }

/* Grands chiffres des étapes : contour seulement */
.fx-numeral .elementor-heading-title { font-size: clamp(4rem, 9vw, 7rem); line-height: .9; font-weight: 300; color: transparent; -webkit-text-stroke: 1.2px var(--fx-green-d); }

/* ---------- Images : fondus et formes organiques ---------- */
.fx-bgimg { position: absolute !important; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0 !important; opacity: .6; }
.fx-bgimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-bgimg.fx-mask-r { -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 70%), linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to right, transparent 5%, #000 70%); }
.fx-mask-b img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.fx-mask-r img { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }
.fx-organic img { border-radius: 58% 42% 51% 49% / 46% 55% 45% 54%; animation: fx-morph 16s ease-in-out infinite; display: block; width: 100%; height: auto; }
.fx-band { position: relative; isolation: isolate; overflow: hidden; }
.fx-band .fx-bgimg { opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%); }
.fx-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,19,48,.78), rgba(11,19,48,.25)); }

/* ---------- Bulles liquides ---------- */
.fx-blobs::before, .fx-blobs::after, .fx-blobs-soft::before, .fx-blobs-soft::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: clamp(260px, 38vw, 600px); aspect-ratio: 1; will-change: transform, border-radius;
}
.fx-blobs::before { top: -14%; right: -8%; background: radial-gradient(circle at 30% 30%, var(--fx-green), #3f6fd8 78%); opacity: .55;
  animation: fx-morph 14s ease-in-out infinite, fx-drift 22s ease-in-out infinite; }
.fx-blobs::after { bottom: -20%; left: -10%; width: clamp(220px, 32vw, 500px); background: radial-gradient(circle at 70% 30%, var(--fx-coral), #7c5cff 80%); opacity: .4;
  animation: fx-morph 18s ease-in-out infinite reverse, fx-drift 26s ease-in-out infinite reverse; }
.fx-blobs-soft::before { top: -25%; left: -12%; background: radial-gradient(circle, rgba(117,172,81,.28), transparent 70%); animation: fx-morph 20s ease-in-out infinite; }
.fx-blobs-soft::after { bottom: -30%; right: -10%; background: radial-gradient(circle, rgba(124,92,255,.24), transparent 70%); animation: fx-morph 24s ease-in-out infinite reverse; }
@keyframes fx-morph {
  0%, 100% { border-radius: 62% 38% 46% 54% / 55% 42% 58% 45%; }
  25%      { border-radius: 40% 60% 62% 38% / 46% 58% 42% 54%; }
  50%      { border-radius: 53% 47% 33% 67% / 62% 37% 63% 38%; }
  75%      { border-radius: 36% 64% 54% 46% / 40% 62% 38% 60%; }
}
@keyframes fx-drift {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  33%      { transform: translate3d(-4%,6%,0) rotate(20deg) scale(1.06); }
  66%      { transform: translate3d(5%,-3%,0) rotate(-14deg) scale(.96); }
}
.fx-aurora { background: linear-gradient(120deg, #0b1330, #1d2a6e, #2f2a86, #0e5f6c, #0b1330); background-size: 300% 300%; animation: fx-aurora 18s ease infinite; }
@keyframes fx-aurora { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.fx-goo { filter: url(#fx-goo-filter); }

/* ---------- Boutons ---------- */
.fx-btn .elementor-button, a.fx-btn {
  position: relative; overflow: hidden; z-index: 0; border-radius: 6px !important; background: var(--fx-green) !important; color: #0b1330 !important;
  font-family: var(--fx-body); font-weight: 600; font-size: 1rem; padding: 16px 28px; border: 0; transition: transform .4s var(--fx-ease), box-shadow .4s var(--fx-ease);
}
.fx-btn .elementor-button::before, a.fx-btn::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 100%; height: 220%; z-index: -1; background: #fff;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0; transition: transform .6s var(--fx-ease);
}
.fx-btn .elementor-button:hover::before, a.fx-btn:hover::before { transform: translateY(-58%); }
.fx-btn .elementor-button:hover, a.fx-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(117,172,81,.8); }
.fx-link .elementor-button, a.fx-link { background: none !important; padding: 14px 2px !important; color: inherit !important; border-radius: 0 !important; font-weight: 500;
  border-bottom: 1.5px solid currentColor; transition: gap .3s, color .3s; }
.fx-link .elementor-button::after, a.fx-link::after { content: " →"; transition: margin-left .3s var(--fx-ease); }
.fx-link .elementor-button:hover::after, a.fx-link:hover::after { margin-left: 8px; }
.fx-link .elementor-button:hover, a.fx-link:hover { color: var(--fx-green) !important; }

/* ---------- Foire aux questions : lignes fines, pas de boîtes ---------- */
.fx-faq .elementor-accordion-item { border: 0 !important; border-top: 1px solid var(--fx-hair) !important; background: none; border-radius: 0 !important; }
.fx-faq .elementor-accordion-item:last-child { border-bottom: 1px solid var(--fx-hair) !important; }
.fx-faq .elementor-tab-title { padding: 22px 0 !important; font-family: var(--fx-head); font-size: 1.2rem; }
.fx-faq .elementor-tab-content { padding: 0 0 24px !important; border: 0 !important; color: var(--fx-muted); max-width: 46em; }

/* ---------- Formulaire ---------- */
.elementor-field-group input, .elementor-field-group textarea, .elementor-field-group select {
  border-radius: 6px !important; border: 1px solid #c9d0cc !important; padding: 14px 16px !important; background: #fff;
}
.elementor-field-group input:focus, .elementor-field-group textarea:focus { outline: 2px solid var(--fx-green); outline-offset: 2px; }
.fx-glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: clamp(20px, 2.6vw, 32px); }

/* ---------- En-tête flottant ---------- */
.fx-header { position: absolute; left: 0; right: 0; top: 0; z-index: 50; }
.fx-header-bar { width: 100%; }
.fx-nav .elementor-nav-menu--main .elementor-item, .fx-nav a { color: #e9edff; font-weight: 500; text-decoration: none; }
.fx-nav .elementor-nav-menu--main .elementor-item:hover, .fx-nav a:hover { color: var(--fx-green); }
.fx-logo img { height: 44px; width: auto; }
.fx-footer a { text-decoration: none; } .fx-footer a:hover { text-decoration: underline; }

/* ---------- Apparition au défilement (le contenu reste visible sans JavaScript) ---------- */
.js .fx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--fx-ease), transform .9s var(--fx-ease); }
.js .fx-reveal.fx-in { opacity: 1; transform: none; }

/* ---------- Bulle qui suit le curseur ---------- */
.fx-cursor { position: fixed; z-index: 9990; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, var(--fx-green), #6f7cff); mix-blend-mode: screen; opacity: 0;
  transition: opacity .3s, width .35s var(--fx-ease), height .35s var(--fx-ease), margin .35s var(--fx-ease); }
.fx-cursor.is-on { opacity: .8; }
.fx-cursor.is-big { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: .4; }

/* ---------- Accessibilité / mobile ---------- */
:focus-visible { outline: 3px solid var(--fx-green); outline-offset: 3px; }
@media (max-width: 767px) {
  .fx-blobs::before, .fx-blobs::after { opacity: .35; } .fx-cursor { display: none; }
  .fx-header-bar { flex-wrap: wrap; padding: 10px 16px !important; }
  .fx-hero { padding-top: 110px !important; }
  .fx-bgimg { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .fx-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Grille simple (pied de page) ---------- */
.e-con.fx-grid, .fx-grid { display: grid !important; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Étapes (3 colonnes décalées) et liens ---------- */
.fx-step { flex: 1 1 260px; min-width: 0; }
.fx-paper a:not(.elementor-button) { color: var(--fx-green-d); text-decoration-thickness: 1px; }
.fx-paper a:not(.elementor-button):hover { color: var(--fx-ink); }
.fx-numeral .elementor-heading-title { padding-bottom: .1em; }

/* Captures de l'espace client : cadre arrondi, ombre douce */
.fx-shot{flex:1 1 420px}
.fx-shot img{width:100%;height:auto;display:block;border-radius:22px;box-shadow:0 30px 60px -28px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.12)}
.fx-shot-cap{color:rgba(255,255,255,.8);font-size:.95rem}
.fx-shot-cap p{margin:0}

/* Photo de personne : occupe la moitié droite du hero, le visage reste hors du texte */
.fx-bgimg.fx-person { inset: 0 0 0 50%; width: 50%; opacity: .96; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%); }
.fx-bgimg.fx-person img { -webkit-mask-image: none; mask-image: none; object-position: 50% 30%; }
@media (max-width: 767px) { .fx-bgimg.fx-person { inset: 0; width: 100%; opacity: .35; } }
.fx-shot img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; }

/* ---------- Priorité sur les couleurs globales d'Elementor (kit par défaut : bleu pâle / gris) ---------- */
.elementor .fx-paper .elementor-heading-title, .elementor .fx-paper h1, .elementor .fx-paper h2, .elementor .fx-paper h3, .elementor .fx-paper h4 { color: var(--fx-ink); }
.elementor .fx-paper .elementor-widget-text-editor, .elementor .fx-paper .elementor-widget-text-editor p, .elementor .fx-paper .elementor-widget-text-editor li { color: var(--fx-text); }
.elementor .fx-dark .elementor-heading-title, .elementor .fx-dark h1, .elementor .fx-dark h2, .elementor .fx-dark h3, .elementor .fx-dark h4 { color: #fff; }
.elementor .fx-dark .elementor-widget-text-editor, .elementor .fx-dark .elementor-widget-text-editor p { color: #c5cdf0; }
.elementor .fx-hero .elementor-heading-title { color: #fff; }
.elementor .fx-hero .elementor-widget-text-editor, .elementor .fx-hero .elementor-widget-text-editor p { color: #ccd4f6; }
.elementor .fx-dark .fx-kicker .elementor-heading-title, .elementor .fx-hero .fx-kicker .elementor-heading-title { color: var(--fx-green); }
.elementor .fx-paper .fx-kicker .elementor-heading-title { color: var(--fx-green-d); }
.elementor .fx-row .fx-num .elementor-heading-title { color: var(--fx-green-d); }
.elementor .fx-numeral .elementor-heading-title { color: transparent; }
.elementor .fx-gradient-text .elementor-heading-title, .elementor .fx-grad { color: transparent; }
.elementor .fx-paper a:not(.elementor-button):not(.fx-btn), .elementor .fx-paper .fx-link .elementor-button { color: var(--fx-green-d); }
.elementor .fx-dark a:not(.elementor-button) { color: #e8ecff; }

/* Polices : priorité sur la typographie globale par défaut d'Elementor (Roboto) */
.elementor .elementor-heading-title, .elementor h1, .elementor h2, .elementor h3, .elementor h4 { font-family: var(--fx-head); font-weight: 500; }
.elementor .elementor-widget-text-editor, .elementor .elementor-button, .elementor .elementor-tab-title, .elementor .elementor-tab-content, .elementor .elementor-field { font-family: var(--fx-body); }
.elementor .fx-kicker .elementor-heading-title, .elementor .fx-num .elementor-heading-title { font-family: var(--fx-body); font-weight: 500; }
.elementor .fx-numeral .elementor-heading-title { font-weight: 300; }

/* Mise en page : colonnes et lignes (les conteneurs Elementor imposent width:100% par défaut) */
.elementor .e-con.fx-col { --width: auto; width: auto; flex: 1 1 420px; min-width: 0; }
.elementor .e-con.fx-col-side { --width: auto; width: auto; flex: 0 1 380px; min-width: 0; }
.elementor .fx-row > .elementor-widget { width: auto; max-width: none; flex: 1 1 300px; margin: 0; }
.elementor .fx-row > .elementor-widget.fx-num { flex: 0 0 3em; }
.elementor .fx-row > .elementor-widget.fx-row-title { flex: 1 1 280px; }
.elementor .fx-row > .elementor-widget.fx-link { flex: 0 0 auto; }

/* Menu et liens-boutons sous Elementor Pro */
.elementor .elementor-nav-menu a, .elementor .elementor-nav-menu--dropdown a, .elementor .elementor-menu-toggle { font-family: var(--fx-body); font-weight: 500; }
.elementor .fx-link .elementor-button-content-wrapper { flex-direction: row; gap: .45em; white-space: nowrap; }
.elementor .fx-link .elementor-button { white-space: nowrap; }

/* Pied de page en colonnes : en mode « boxed », Elementor place les enfants dans .e-con-inner */
.elementor .e-con.fx-grid > .e-con-inner { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); width: 100%; }
.elementor .fx-link .elementor-button { display: inline-flex; flex-direction: row; align-items: center; gap: .4em; }
.elementor .fx-link .elementor-button-content-wrapper { gap: 0; }

/* Sous-menus : fond bleu nuit arrondi, texte clair (modifiable aussi dans Elementor : widget Menu de navigation > Style > Menu déroulant) */
.elementor .fx-nav .elementor-nav-menu--dropdown,
.elementor .fx-nav .elementor-nav-menu--main .sub-menu{background:#0b1330;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px rgba(5,10,35,.35);border:1px solid rgba(255,255,255,.08);padding:8px 0}
.elementor .fx-nav .elementor-nav-menu--dropdown a,
.elementor .fx-nav .elementor-nav-menu--main .sub-menu a{color:#e9edff;background:transparent;font-weight:500;padding:11px 24px}
.elementor .fx-nav .elementor-nav-menu--dropdown a:hover,
.elementor .fx-nav .elementor-nav-menu--main .sub-menu a:hover,
.elementor .fx-nav .elementor-nav-menu--dropdown a.elementor-item-active{background:rgba(255,255,255,.07);color:#7fb85a}
.elementor .fx-nav .elementor-nav-menu--main .sub-menu{min-width:260px}
.elementor .fx-nav .elementor-nav-menu--main .sub-menu a{white-space:nowrap}

/* Bande photo : prolonge la section sombre au-dessus, sans vague blanche entre les deux */
.fx-band { background: linear-gradient(to bottom, #0b1330 0, #0b1330 12%, transparent 42%); }

/* Mobile : le bouton Soumission de l'en-tête ne passe plus par-dessus le texte (le menu burger donne accès à Contact) */
@media (max-width: 767px) {
  .elementor .fx-header-bar, .elementor .fx-header-bar > .e-con-inner { flex-wrap: nowrap; }
  .elementor .fx-header-bar .elementor-widget-button { display: none; }
  .elementor .e-con:has(> .elementor-shape-bottom) { padding-bottom: 120px !important; }
  .elementor .elementor-shape-bottom svg { height: 70px !important; }
}
.elementor .fx-foot-title .elementor-heading-title{font-size:1.05rem;line-height:1.3}
