/* =====================================================================
   INVEST-ENLIGNE — Bloc « hero » accueil (sections du haut)
   Source de design : gemini-code-1780647543273.html (reproduit fidèlement)
   Tout est SCOPÉ sous #ie-home-hero pour ne pas fuir dans le reste de la page.
   Les règles globales body{height:100vh;overflow:hidden} de la maquette
   ont été VOLONTAIREMENT supprimées (la page WP doit continuer à défiler).
   ===================================================================== */

/* ---- Police DM Sans auto-hébergée (RGPD / portabilité) — variable font ---- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Racine scopée : tokens + pleine largeur (sort du conteneur Elementor) ---- */
#ie-home-hero {
  --navy: #07124a;
  --orange: #f18815;
  --orange-hover: #d97612;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #edf2f9;
  --bg: #ffffff;
  --cards-bg: #f4f6fa;
  /* Precision Liquid Glass Rendering Tokens */
  --liquid-base: rgba(255, 255, 255, 0.15);
  --liquid-border: rgba(255, 255, 255, 0.65);
  --liquid-highlight: rgba(255, 255, 255, 0.85);
  --blue-tx: #48597e;
  --blue-deep: #2d3f63;

  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;

  /* Pleine largeur bord-à-bord (la maquette était full-screen) */
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

#ie-home-hero *,
#ie-home-hero *::before,
#ie-home-hero *::after { margin: 0; padding: 0; box-sizing: border-box; }
#ie-home-hero a { text-decoration: none; color: inherit; }
#ie-home-hero .wrap { width: min(92%, 1280px); margin: auto; position: relative; }

/* ===================== HERO ZONE ===================== */
#ie-home-hero .hero {
  position: relative;
  display: flex;
  align-items: center;
  /* padding-top : le menu du site est un en-tête superposé (position absolute) ;
     dégage la 1re ligne du H1 sous ce menu flottant + un peu d'air. */
  padding: 178px 0 52px;
  background: radial-gradient(circle at 86% 46%, #b0d2ff 0%, #eef4fe 35%, #ffffff 64%);
}
#ie-home-hero .hero-grid { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 64px; align-items: center; width: 100%; }

#ie-home-hero .hero h1 { font-size: 3.4rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); }
#ie-home-hero .hero h1 em { color: var(--orange); font-style: normal; }
#ie-home-hero .hero .sub { margin-top: 16px; font-size: 0.98rem; color: var(--muted); max-width: 48ch; line-height: 1.55; }

#ie-home-hero .cta-row { margin-top: 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
#ie-home-hero .btn-cta {
  background: var(--navy);
  color: #fff;
  height: 60px;
  padding: 0 16px 0 24px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(7,18,74,0.08);
}
#ie-home-hero .btn-cta:hover { background: #112273; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7,18,74,0.18); }
#ie-home-hero .btn-cta .a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.2, 1), background 0.25s ease;
}
#ie-home-hero .btn-cta .a svg { width: 14px; height: 14px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.2, 1); }
/* Animation au survol : la pastille orange tourne + grossit, l'icône catalogue contre-tourne */
#ie-home-hero .btn-cta:hover .a { transform: rotate(180deg) scale(1.14); background: var(--orange-hover); }
#ie-home-hero .btn-cta:hover .a svg { transform: rotate(-180deg); }

#ie-home-hero .talk {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  height: 60px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(7,18,74,0.01);
  transition: all 0.2s ease;
}
#ie-home-hero .talk:hover { border-color: #cbd5e1; box-shadow: 0 6px 16px rgba(7,18,74,0.06); }
#ie-home-hero .talk .tt { font-weight: 700; color: var(--navy); font-size: 0.88rem; white-space: nowrap; }
/* Avatars conseillers dans le bouton « Discuter avec un conseiller » */
#ie-home-hero .talk .faces { display: inline-flex; }
#ie-home-hero .talk .faces .f { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center top; background: #dbe6f7; border: 2px solid #fff; margin-left: -14px; box-shadow: 0 1px 3px rgba(7,18,74,0.12); }
#ie-home-hero .talk .faces .f:first-child { margin-left: 0; }

/* ===================== LIQUID GLASS — SIMULATEUR ===================== */
#ie-home-hero .finder-wrapper { position: relative; }
#ie-home-hero .finder {
  background: var(--liquid-base);
  backdrop-filter: blur(45px) saturate(230%);
  -webkit-backdrop-filter: blur(45px) saturate(230%);
  border: 1px solid var(--liquid-border);
  border-radius: 24px;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    inset 0 4px 12px var(--liquid-highlight),
    inset 0 -2px 6px rgba(255, 255, 255, 0.2),
    inset 0 0 0 8px rgba(255, 255, 255, 0.12),
    0 30px 60px -20px rgba(7, 18, 74, 0.08);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.2, 1);
}
#ie-home-hero .finder::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
#ie-home-hero .finder .fq { font-size: 1.1rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 16px; letter-spacing: -0.01em; line-height: 1.35; }
#ie-home-hero .simrow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
#ie-home-hero .simval { font-size: 3rem; font-weight: 800; color: var(--blue-deep); line-height: 1; letter-spacing: -0.02em; }
#ie-home-hero .simval span { font-size: 1rem; font-weight: 500; color: var(--blue-tx); margin-left: 2px; }
#ie-home-hero .simrisk { font-size: 0.72rem; font-weight: 700; color: #2563eb; background: #fff; border: 1px solid rgba(37,99,235,0.15); padding: 2px 10px; border-radius: 99px; }

#ie-home-hero .slider-input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-deep) var(--p,50%), rgba(7,18,74,0.06) var(--p,50%), rgba(7,18,74,0.06) 100%); outline: none; margin: 12px 0 4px; cursor: pointer; }
#ie-home-hero .slider-input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-deep); cursor: pointer; box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2); }
#ie-home-hero .slider-input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-deep); cursor: pointer; box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2); }
#ie-home-hero .simscale { display: flex; justify-content: space-between; font-size: 0.65rem; color: #8ba2cc; margin-bottom: 18px; font-weight: 500; }

#ie-home-hero .btn-validate {
  background: var(--navy); color: #fff; border: none; border-radius: 12px; padding: 12px 16px; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease; width: 100%;
}
#ie-home-hero .btn-validate:hover { background: #112273; }

#ie-home-hero .simres { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s cubic-bezier(0.25, 1, 0.2, 1), opacity 0.3s ease; }
#ie-home-hero .simres.show { grid-template-rows: 1fr; opacity: 1; }
#ie-home-hero .simres-inner { overflow: hidden; }
#ie-home-hero .simres-content { border-top: 1px solid rgba(255, 255, 255, 0.4); padding-top: 16px; margin-top: 16px; }
#ie-home-hero .rlab { font-size: 0.72rem; color: var(--blue-deep); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.8; }
#ie-home-hero .rgrid { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; }
#ie-home-hero .rchip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 99px; padding: 8px 18px;
  font-size: 0.82rem; font-weight: 700; color: var(--blue-deep);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: background-color 0.15s, border-color 0.15s;
}
#ie-home-hero .rchip:hover { background-color: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.7); }
#ie-home-hero .rchip .rarr { color: var(--orange); font-weight: 800; font-size: 0.85rem; }

/* ===================== SECTION PRODUITS (carrousel) ===================== */
#ie-home-hero .products-section { padding: 18px 0 24px; background: var(--cards-bg); position: relative; z-index: 10; border-top: 1px solid #edf2f7; }

/* Carrousel : piste + flèches dans des gouttières latérales (jamais sur les cartes) */
#ie-home-hero .slider { position: relative; padding: 0 56px; }
#ie-home-hero .slider .ie-prev,
#ie-home-hero .slider .ie-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  /* Liquid glass — mêmes tokens que le simulateur (.finder) */
  background: var(--liquid-base);
  -webkit-backdrop-filter: blur(45px) saturate(230%);
  backdrop-filter: blur(45px) saturate(230%);
  border: 1px solid var(--liquid-border);
  color: var(--blue-deep);
  box-shadow:
    inset 0 2px 6px var(--liquid-highlight),
    inset 0 0 0 4px rgba(255, 255, 255, 0.12),
    0 12px 28px -10px rgba(7, 18, 74, 0.18);
  transition: all 0.2s ease;
}
#ie-home-hero .slider .ie-prev { left: 0; }
#ie-home-hero .slider .ie-next { right: 0; }
#ie-home-hero .slider .ie-prev:hover,
#ie-home-hero .slider .ie-next:hover { background: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.85); color: var(--navy); }

/* Piste défilante */
#ie-home-hero .cards-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
  /* marge verticale : laisse respirer le survol (translateY + ombre) sans rogner la carte.
     overflow-x:auto force overflow-y:auto -> sans ce padding la carte soulevée serait coupée. */
  padding: 10px 2px 16px;
}
#ie-home-hero .cards-track::-webkit-scrollbar { display: none; }
#ie-home-hero .cards-track.is-grabbing { scroll-behavior: auto; cursor: grabbing; scroll-snap-type: none; }

/* 4 cartes visibles desktop ; chaque carte conserve le design fourni */
#ie-home-hero .pcard {
  flex: 0 0 calc((100% - 3 * 16px) / 4);
  scroll-snap-align: start;
  background: #fff; border: 1px solid #edf2f7; border-radius: 16px;
  display: flex; flex-direction: column; gap: 0; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease; position: relative;
}
#ie-home-hero .pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(7, 18, 74, 0.06); }

#ie-home-hero .card-top { height: 80px; padding: 14px 18px; display: flex; align-items: center; position: relative; background: var(--navy); background-size: cover; background-position: center; }
#ie-home-hero .card-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7, 18, 74, 0.85), rgba(20, 45, 140, 0.75)); z-index: 1; }

#ie-home-hero .pcard-header { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
#ie-home-hero .pcard-header h3 { color: #fff; font-size: 0.95rem; line-height: 1.2; font-weight: 700; }

#ie-home-hero .pic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255, 255, 255, 0.15); color: #fff; }
#ie-home-hero .pic svg { width: 24px; height: 24px; }
/* Icône famille réelle (SVG du site) rendue en blanc pour coller au design */
#ie-home-hero .pic img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }

#ie-home-hero .card-body { padding: 14px 18px 14px; display: flex; flex-direction: column; flex: 1; }
#ie-home-hero .pcard-metric { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--orange); margin-bottom: 8px; letter-spacing: -0.02em; }
#ie-home-hero .adv { font-size: 0.82rem; line-height: 1.45; color: var(--muted); min-height: 30px; margin-bottom: 12px; }

#ie-home-hero .btn-ghost-navy {
  background: transparent; color: var(--navy); border: 1px solid rgba(7, 18, 74, 0.25);
  padding: 10px 18px; border-radius: 10px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; margin-top: auto;
}
#ie-home-hero .btn-ghost-navy:hover { background: rgba(7, 18, 74, 0.04); border-color: var(--navy); }

/* ===================== BANDEAU CONFIANCE ===================== */
#ie-home-hero .trust-banner { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; }

/* Réduit l'espace excessif entre notre bloc et la section suivante (« CLIENT+CONSEILLERS »).
   Cette section porte la classe .block-big (padding-top 7.5rem). On ne touche QUE ce conteneur
   (par son id Elementor) et UNIQUEMENT sur la page d'accueil (CSS chargé via is_front_page).
   Les autres sections .block-big du site ne sont pas affectées. */
.elementor-element-109f47e.block-big { padding-top: 3.5rem; }
#ie-home-hero .tb-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
#ie-home-hero .partners { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 280px; }
/* La bande partenaires (plugin) prend la largeur disponible à gauche */
#ie-home-hero .partners .partners-band { width: 100%; }
#ie-home-hero .stats { display: flex; gap: 32px; align-items: center; border-left: 1px solid var(--line); padding-left: 32px; }
#ie-home-hero .stat-item b { display: block; font-size: 1.2rem; color: var(--navy); font-weight: 700; line-height: 1.1; }
#ie-home-hero .stats span { font-size: 0.7rem; color: var(--muted); display: block; margin-top: 1px; }
#ie-home-hero .stat-item .st-green { color: #11a67a; font-weight: bold; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  #ie-home-hero .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  #ie-home-hero .hero h1 { font-size: 2.6rem; }
  #ie-home-hero .pcard { flex-basis: calc((100% - 16px) / 2); }   /* 2 cartes */
  #ie-home-hero .tb-grid { flex-direction: column; align-items: flex-start; }
  #ie-home-hero .stats { border-left: none; padding-left: 0; }
}
@media (max-width: 600px) {
  #ie-home-hero .hero { padding: 120px 0 24px; }
  #ie-home-hero .hero h1 { font-size: 2.1rem; }
  #ie-home-hero .pcard { flex-basis: 85%; }                       /* 1 carte */
  #ie-home-hero .stats { gap: 20px; }
  /* gouttières + flèches plus compactes */
  #ie-home-hero .slider { padding: 0 44px; }
  #ie-home-hero .slider .ie-prev,
  #ie-home-hero .slider .ie-next { width: 38px; height: 38px; }
}

/* ------------------------------------------------------------------
   Le conteneur Elementor qui enveloppe le shortcode est parfois « boxed »
   (avec un padding haut qui laisse une fine bande blanche tout en haut).
   On annule son padding vertical pour que le bloc remonte jusqu'en haut,
   sans rien déplacer à l'intérieur. (:has supporté par les navigateurs récents.)
   ------------------------------------------------------------------ */
.elementor .e-con:has(> .e-con-inner #ie-home-hero),
.elementor .e-con:has(> .e-con-inner #ie-home-hero) > .e-con-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
