/* Homepage hero: headline, layout and the 3-step simulator funnel.
   Loaded after styles.css and conversion.css on the homepage only. */

/* ---- Headline and layout ------------------------------------------------ */
.hero .hero-grid {
  grid-template-areas: "copy sim" "reassure sim";
  grid-template-rows: auto 1fr;
  row-gap: 26px;
}
.hero .hero-copy { grid-area: copy; }
.hero .hero-sim-col { grid-area: sim; min-width: 0; }
.hero .simulator { position: relative; margin-top: 0; }
.hero .hero-sim-proof { margin: 0 0 14px; }

/* Adviser face next to the trust badges (one per visit, see app.js). */
.hero-adviser {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin-top: 22px;
  border: 1px solid rgba(3,31,148,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  padding: 12px 16px 12px 12px;
  box-shadow: 0 12px 28px -22px rgba(3,31,148,.5);
  backdrop-filter: blur(12px);
}
.hero-adviser img { flex: none; width: 64px; height: 64px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 18px -10px rgba(3,31,148,.7); }
.hero-adviser p { display: grid; gap: 1px; margin: 0; line-height: 1.3; }
.hero-adviser strong { color: var(--ink); font-family: "League Spartan", sans-serif; font-size: 16px; font-weight: 800; }
.hero-adviser span { color: var(--blue); font-size: 13px; font-weight: 600; }
.hero-adviser small { margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.hero .hero-reassure { grid-area: reassure; min-width: 0; }

.hero h1 { max-width: 15ch; font-size: clamp(3rem, 5vw, 4.6rem); }
.hero h1 em { display: inline-block; animation: hero-now 900ms cubic-bezier(.2,.9,.25,1.2) 250ms both; }
.hero-h1-sub {
  display: block;
  max-width: 24ch;
  margin-top: .42em;
  color: var(--ink);
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1.3rem, 2.05vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
  text-transform: none;
}
@keyframes hero-now { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .hero-grid { grid-template-areas: "copy" "sim" "reassure"; grid-template-rows: auto; row-gap: 22px; }
  .hero .simulator { scroll-margin-top: calc(var(--header-height) + 8px); }
}
@media (max-width: 640px) {
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.3rem); }
  .hero-h1-sub { font-size: 1.18rem; }
}

/* ---- Step indicator ----------------------------------------------------- */
.simulator-head.funnel-head { display: block; padding: 18px 26px 16px; }
.funnel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.funnel-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-family: "League Spartan", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
  transition: color .3s ease;
}
.funnel-step-dot {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(3, 31, 148, .22);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.funnel-step-dot b { font-weight: 800; }
.funnel-step-dot svg { position: absolute; width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.funnel-steps li.is-current { color: var(--ink); }
.funnel-steps li.is-current .funnel-step-dot { border-color: var(--orange); background: var(--orange); color: #fff; animation: step-pulse 1.8s ease-out infinite; }
.funnel-steps li.is-done { color: var(--blue); }
.funnel-steps li.is-done .funnel-step-dot { border-color: var(--blue); background: var(--blue); transform: scale(1.04); }
.funnel-steps li.is-done .funnel-step-dot b { opacity: 0; }
.funnel-steps li.is-done .funnel-step-dot svg { animation: check-draw .45s ease-out forwards; }
@keyframes step-pulse { 0% { box-shadow: 0 0 0 0 rgba(236,108,45,.45); } 70%,100% { box-shadow: 0 0 0 9px rgba(236,108,45,0); } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }

.funnel-progress { height: 5px; margin: 0 0 15px; overflow: hidden; border-radius: 999px; background: rgba(3, 31, 148, .08); }
.funnel-progress i {
  position: relative;
  display: block;
  width: 14%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ffad7f);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.funnel-progress i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  content: "";
  animation: progress-shine 2.2s ease-in-out infinite;
  transform: translateX(-100%);
}
@keyframes progress-shine { 60%,100% { transform: translateX(100%); } }

.funnel-head h2 { margin: 0; }
.funnel-why { margin: 7px 0 0; color: var(--body); font-size: 13.5px; line-height: 1.5; }
.funnel-why strong { color: var(--blue); }
.simulator[data-funnel-step="3"] .funnel-why,
.simulator[data-funnel-step="2"] .funnel-why { display: none; }
.simulator[data-funnel-step="2"] .funnel-head h2,
.simulator[data-funnel-screen="booking"] .funnel-head h2 { display: none; }
.simulator[data-funnel-step="2"] .funnel-progress { margin-bottom: 2px; }


/* ---- Step 2: teaser, questions, contact -------------------------------- */
.funnel-profile { padding-top: 18px; }
.funnel-teaser {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #dfe4fd;
  padding: 16px 18px 14px;
  text-align: center;
}
.funnel-teaser::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  content: "";
  animation: teaser-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes teaser-shine { from { transform: translateX(-100%); } 55%,to { transform: translateX(100%); } }
.funnel-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(70, 205, 135, .16);
  color: #8ff0bd;
  padding: 5px 11px;
  font-family: "League Spartan", sans-serif;
  font-size: 12px;
  font-weight: 800;
  animation: badge-in .5s cubic-bezier(.2,.9,.25,1.3) both;
}
.funnel-teaser-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes badge-in { from { opacity: 0; transform: scale(.7); } }
.funnel-teaser-lock { position: relative; display: grid; place-items: center; margin: 4px 0 2px; }
.funnel-teaser-value {
  color: var(--orange);
  font-family: "Anton", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  filter: blur(10px);
  user-select: none;
  animation: teaser-breathe 2.4s ease-in-out infinite;
}
@keyframes teaser-breathe { 50% { filter: blur(7px); } }
.funnel-teaser-padlock { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.funnel-teaser-padlock svg { width: 21px; height: 21px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; }
.funnel-teaser p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.funnel-teaser p strong { color: #fff; }

.funnel-form { display: grid; gap: 10px; }
.funnel-q { min-width: 0; margin: 0; border: 0; padding: 0; }
.funnel-q.is-open { animation: q-in .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } }
.funnel-q legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  padding: 0;
  color: var(--ink);
  font-family: "League Spartan", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.funnel-q legend b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet-light);
  color: var(--blue);
  font-size: 12px;
  transition: background .25s ease, color .25s ease;
}
.funnel-q.is-answered legend b { background: var(--green); color: transparent; position: relative; }
.funnel-q.is-answered legend b::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; content: "✓"; font-size: 13px; }

.funnel-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 7px; }
.funnel-chips-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.funnel-chips label { position: relative; display: block; cursor: pointer; }
.funnel-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.funnel-chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1.5px solid rgba(3, 31, 148, .16);
  border-radius: 13px;
  background: #fff;
  color: var(--blue);
  padding: 8px 10px;
  font-family: "League Spartan", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 20px -16px rgba(3,31,148,.5);
  transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.funnel-chips label:hover span { border-color: var(--blue); transform: translateY(-1px); }
.funnel-chips input:focus-visible + span { outline: 3px solid rgba(236,108,45,.45); outline-offset: 2px; }
.funnel-chips input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(3,31,148,.9);
  animation: chip-pop .38s cubic-bezier(.2,.9,.25,1.4);
}
@keyframes chip-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.05); } 100% { transform: none; } }

.funnel-contact { display: grid; gap: 6px; }
.funnel-contact label { color: var(--ink); font-size: 13px; font-weight: 600; }
.funnel-contact input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid rgba(3, 31, 148, .18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: 500 16px/1.2 "Poppins", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.funnel-contact input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(3,31,148,.1); outline: none; }
.funnel-contact input.is-invalid { border-color: #d0421b; box-shadow: 0 0 0 4px rgba(208,66,27,.1); }
.funnel-error, .funnel-form [data-delivery-error] { margin: 2px 0 0; color: #b4320f; font-size: 13px; font-weight: 600; }
.funnel-unlock { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; min-height: 54px; font-size: 16.5px; animation: unlock-glow 2s ease-in-out 1s infinite; }
.funnel-unlock svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@keyframes unlock-glow { 50% { box-shadow: 0 0 0 7px rgba(236,108,45,.16), 0 16px 30px -14px rgba(236,108,45,.9); } }
.funnel-legal { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; text-align: center; }
.funnel-back { display: block; margin: 12px auto 0; color: var(--blue); }

/* ---- Step 3: result reveal --------------------------------------------- */
.funnel-boost {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -6px 0 15px;
  border: 1px solid rgba(143, 240, 189, .4);
  border-radius: 13px;
  background: rgba(70, 205, 135, .14);
  color: #d9ffe9;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.35;
}
.funnel-boost strong { color: #fff; font-family: "League Spartan", sans-serif; font-size: 18px; }
.funnel-boost-icon { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #46cd87; color: var(--blue-deep); font-size: 20px; font-weight: 800; }
.funnel-boost.is-revealing { animation: boost-in .6s cubic-bezier(.2,.9,.25,1.3) .9s both; }
@keyframes boost-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }

.result-chart.is-revealing .result-chart-total { stroke-dasharray: 700; stroke-dashoffset: 700; animation: chart-draw 1.4s cubic-bezier(.4,0,.2,1) .15s forwards; }
.result-chart.is-revealing [data-chart-bars] > * { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .7s cubic-bezier(.2,.8,.2,1) both; }
.result-chart.is-revealing [data-chart-bars] > *:nth-child(n+3) { animation-delay: .12s; }
.result-chart.is-revealing [data-chart-bars] > *:nth-child(n+5) { animation-delay: .24s; }
.result-chart.is-revealing [data-chart-bars] > *:nth-child(n+7) { animation-delay: .36s; }
.result-chart.is-revealing [data-chart-bars] > *:nth-child(n+9) { animation-delay: .48s; }
.result-chart.is-revealing [data-chart-bars] > *:nth-child(n+11) { animation-delay: .6s; }
.result-chart.is-revealing [data-chart-bars] > *:nth-child(n+13) { animation-delay: .72s; }
.result-chart.is-revealing .result-chart-dot { animation: dot-in .4s cubic-bezier(.2,.9,.25,1.6) 1.45s both; transform-box: fill-box; transform-origin: center; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes bar-grow { from { transform: scaleY(0); } }
@keyframes dot-in { from { opacity: 0; transform: scale(0); } }

.funnel-next-hint { margin: 0 0 9px; color: #dfe4fd; font-size: 13px; text-align: center; }
.funnel-book-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; font-size: 16.5px; animation: unlock-glow 2.2s ease-in-out 2s infinite; }
.funnel-book-button span { transition: transform .2s ease; }
.funnel-book-button:hover span { transform: translateX(4px); }
.funnel-alt { margin: 10px 0 0; color: rgba(223,228,253,.8); font-size: 12.5px; text-align: center; }
.funnel-alt a { color: #fff; font-weight: 700; }

/* ---- Booking ------------------------------------------------------------ */
.funnel-booking h3 { margin: 4px 0 6px; color: #fff; font-family: "League Spartan", sans-serif; font-size: 22px; line-height: 1.2; }
.funnel-booking-lede { margin: 0 0 14px; color: #dfe4fd; font-size: 13.5px; line-height: 1.5; }
.funnel-calendar iframe { display: block; width: 100%; height: 680px; border: 0; border-radius: 14px; background: #fff; }
.funnel-calendar-fallback { display: grid; justify-items: center; gap: 8px; padding: 18px 6px 6px; text-align: center; }
.funnel-calendar-fallback p { margin: 0; color: #dfe4fd; font-size: 15px; line-height: 1.5; }
.funnel-calendar-fallback strong { color: #fff; }
.funnel-calendar-fallback a, .funnel-booked a { color: #fff; font-weight: 800; }
.funnel-booked { margin: 12px 0 0; border-radius: 12px; background: rgba(70,205,135,.16); color: #d9ffe9; padding: 10px 12px; font-size: 14px; text-align: center; }

/* ---- Confetti ----------------------------------------------------------- */
.funnel-confetti { position: absolute; top: 30%; left: 50%; z-index: 6; width: 0; height: 0; pointer-events: none; }
.funnel-confetti i {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-burst 1.5s cubic-bezier(.12,.7,.3,1) var(--d, 0ms) forwards;
}
.funnel-confetti i:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.5); }
  65% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--r)) scale(1); }
}

@media (max-width: 640px) {
  .simulator-head.funnel-head { padding: 15px 16px 13px; }
  .funnel-steps li { gap: 5px; font-size: 11.5px; }
  .funnel-step-dot { width: 22px; height: 22px; font-size: 11px; }
  .funnel-calendar iframe { height: 760px; }
  .funnel-step-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .funnel-progress i::after, .funnel-teaser::after, .funnel-teaser-value, .funnel-unlock, .funnel-book-button,
  .funnel-steps li.is-current .funnel-step-dot, .funnel-q.is-open, .funnel-chips input:checked + span, .funnel-boost.is-revealing,
  .result-chart.is-revealing .result-chart-total, .result-chart.is-revealing [data-chart-bars] > *, .result-chart.is-revealing .result-chart-dot { animation: none !important; }
  .result-chart.is-revealing .result-chart-total { stroke-dashoffset: 0; }
  .funnel-steps li.is-done .funnel-step-dot svg { stroke-dashoffset: 0; animation: none; }
}

/* ---- Adviser portraits (rotating) -------------------------------------- */
.adviser-rotator-photo { position: relative; display: block; flex: none; width: 46px; height: 46px; border-radius: 50%; perspective: 400px; }
.adviser-rotator-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  box-shadow: 0 8px 18px -10px rgba(3,31,148,.7);
  transform: rotateY(90deg) scale(.9);
  transition: opacity .35s ease, transform .55s cubic-bezier(.2,.8,.2,1.2);
}
.adviser-rotator-photo img.is-active { opacity: 1; transform: none; }

.funnel-adviser {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(3,31,148,.08);
  background: linear-gradient(90deg, #f4f6ff, #fff 70%);
  padding: 12px 22px 11px;
}
.funnel-adviser .adviser-rotator-photo::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2fbf71;
  content: "";
}
.funnel-adviser-text { display: grid; min-width: 0; line-height: 1.2; }
.funnel-adviser-text strong { color: var(--ink); font-family: "League Spartan", sans-serif; font-size: 15px; font-weight: 800; }
.funnel-adviser-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.funnel-adviser-logo { width: auto; height: 26px; margin-left: auto; }

.funnel-adviser-inline { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; }
.funnel-adviser-inline p { margin: 0; color: #dfe4fd; font-size: 13px; line-height: 1.45; }
.funnel-adviser-inline strong { color: #fff; }

.funnel-booking-adviser { display: flex; align-items: center; gap: 13px; margin: 2px 0 12px; }
.funnel-booking-adviser .adviser-rotator-photo { width: 64px; height: 64px; }
.funnel-booking-adviser span:last-child { display: grid; line-height: 1.25; }
.funnel-booking-adviser strong { color: #fff; font-family: "League Spartan", sans-serif; font-size: 16px; }
.funnel-booking-adviser small { color: #b9c3fb; font-size: 12.5px; }

/* ---- /epargne#mon-resultat ---------------------------------------------- */
.funnel-result-page {
  position: relative;
  background: linear-gradient(180deg, #fbfaf7 0%, var(--beige) 100%);
  padding: 26px 0 44px;
  scroll-margin-top: 0;
}
.funnel-steps-page { max-width: 520px; margin: 0 0 16px; }
.funnel-steps-page li.is-done .funnel-step-dot svg { stroke-dashoffset: 0; }
.funnel-result-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.funnel-result-card, .funnel-result-booking {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #dfe4fd;
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-card);
}
.funnel-result-card .text-button { text-decoration: none; }
.funnel-result-booking h2 { margin: 2px 0 6px; color: #fff; font-family: "League Spartan", sans-serif; font-size: 23px; line-height: 1.2; }
.funnel-result-note { margin: 0; color: rgba(223,228,253,.7); font-size: 11.5px; line-height: 1.5; }
.funnel-result-chart svg { height: auto; margin-top: 6px; aspect-ratio: 420 / 190; }
.funnel-chart-grid { fill: none; stroke: rgba(174,185,249,.16); stroke-width: 1; stroke-dasharray: 2 4; }
.funnel-chart-axis-line { fill: none; stroke: rgba(174,185,249,.45); stroke-width: 1; }
.funnel-result-chart svg path, .funnel-result-chart svg text { stroke-linejoin: round; }
.funnel-chart-bar path { stroke: none; transition: opacity .15s ease; }
.funnel-chart-bar:hover path { opacity: .85; }
.funnel-chart-tick { fill: rgba(223,228,253,.62); stroke: none; font-family: "Poppins", sans-serif; font-size: 9px; font-weight: 500; }
.funnel-chart-tick.is-strong { fill: #fff; font-weight: 700; }
.funnel-chart-value { fill: #fff; stroke: none; font-family: "Poppins", sans-serif; font-size: 10px; font-weight: 700; }
.funnel-chart-bar .is-invested { fill: rgba(174,185,249,.62); }
.funnel-chart-bar .is-gains { fill: rgba(236,108,45,.8); }
.funnel-chart-bar .is-tax { fill: #46cd87; }
.funnel-chart-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.funnel-chart-label { fill: #8ff0bd; stroke: none; font-family: "Poppins", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.funnel-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: #dfe4fd; font-size: 10.5px; }
.funnel-chart-legend span::before { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; content: ""; vertical-align: -1px; }
.funnel-chart-legend .is-invested::before { background: rgba(174,185,249,.62); }
.funnel-chart-legend .is-gains::before { background: rgba(236,108,45,.8); }
.funnel-chart-legend .is-tax::before { background: #46cd87; }

.funnel-result-page.is-revealing .funnel-chart-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .7s cubic-bezier(.2,.8,.2,1) calc(.25s + var(--i) * .1s) both; }
.funnel-result-page.is-revealing .funnel-chart-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: chart-draw 1.4s cubic-bezier(.4,0,.2,1) .4s forwards; }
.funnel-result-page.is-revealing .funnel-chart-label,
.funnel-result-page.is-revealing .funnel-boost { animation: boost-in .6s cubic-bezier(.2,.9,.25,1.3) 1.2s both; }

@media (max-width: 900px) {
  .funnel-result-grid { grid-template-columns: 1fr; }
  .funnel-result-page { padding-top: 18px; }
}
@media (max-width: 640px) {
  .funnel-result-card, .funnel-result-booking { padding: 20px 18px; }
  .funnel-adviser { padding: 10px 16px; }
  .funnel-adviser-logo { height: 22px; }
  .funnel-chart-tick { font-size: 12.5px; }
  .funnel-chart-value { font-size: 13px; }
  .funnel-result-chart svg { aspect-ratio: 420 / 220; }
}
@media (prefers-reduced-motion: reduce) {
  .adviser-rotator-photo img { transition: none; }
  .funnel-result-page.is-revealing .funnel-chart-bar, .funnel-result-page.is-revealing .funnel-chart-line,
  .funnel-result-page.is-revealing .funnel-chart-label, .funnel-result-page.is-revealing .funnel-boost { animation: none; }
}

/* ---- Hero step 3: unlocked teaser above the booking ---------------------- */
.funnel-mini-result {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin: 0 0 16px;
  border: 1px solid rgba(174,185,249,.28);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  padding: 13px 15px 12px;
}
.funnel-mini-label { color: #b9c3fb; font-size: 12px; font-weight: 600; }
.funnel-mini-value { color: var(--orange); font-family: "Anton", sans-serif; font-size: clamp(2.3rem, 4.6vw, 2.9rem); font-weight: 400; line-height: 1.05; font-variant-numeric: tabular-nums; }
.funnel-mini-tax { display: flex; align-items: center; gap: 8px; color: #d9ffe9; font-size: 13.5px; }
.funnel-mini-tax b { color: #fff; font-family: "League Spartan", sans-serif; font-size: 16px; }
.funnel-mini-tax .funnel-boost-icon { width: 22px; height: 22px; font-size: 16px; }
.funnel-mini-link { margin-top: 4px; color: #fff; font-family: "League Spartan", sans-serif; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.funnel-mini-link:hover { text-decoration-color: #fff; }
.funnel-booking .funnel-booking-adviser { margin-top: 0; }

/* Phones: credentials above the simulator in one compact row. */
@media (max-width: 640px) {
  .hero .hero-partner-proof.hero-sim-proof { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; margin: 0 0 10px !important; }
  .hero .hero-partner-proof.hero-sim-proof > span { min-height: 0 !important; gap: 4px !important; padding: 7px 4px !important; border-radius: 12px !important; }
  .hero .hero-partner-proof.hero-sim-proof > span > small { font-size: 7.5px !important; line-height: 1.15 !important; }
  .hero .hero-partner-proof.hero-sim-proof .proof-logo img { max-width: 100% !important; max-height: 20px !important; }
  .hero .hero-partner-proof.hero-sim-proof .proof-logo .acpr-mark { max-height: 24px !important; }
}
.funnel-topline-actions { display: inline-flex; gap: 6px; }
.funnel-booking .funnel-mini-link { display: inline-block; margin: 0 0 14px; }

/* Desktop: compact credential logos above the simulator, labels on hover;
   the simulator card lines up with the top of the headline. */
@media (min-width: 901px) {
  .hero { padding-top: 34px; }
  .hero .hero-copy { padding-top: 70px; }
  .hero .hero-partner-proof.hero-sim-proof { gap: 8px !important; margin: 0 0 12px !important; }
  .hero .hero-partner-proof.hero-sim-proof > span { position: relative; min-height: 58px !important; padding: 8px 6px !important; overflow: visible !important; }
  .hero .hero-partner-proof.hero-sim-proof > span > small {
    position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 5; width: max-content; max-width: 170px;
    border-radius: 8px; background: var(--ink); color: #fff !important; padding: 6px 9px; font-size: 11px !important; line-height: 1.25;
    opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .18s ease, transform .18s ease;
  }
  .hero .hero-partner-proof.hero-sim-proof > span:hover > small { opacity: 1; transform: translate(-50%, 0); }
}
.hero-adviser-photo { flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .18s ease; }
.hero-adviser-photo:hover, .hero-adviser-photo:focus-visible { transform: scale(1.05); outline: none; }
.hero-adviser-photo:focus-visible img { box-shadow: 0 0 0 3px rgba(236,108,45,.5); }

/* ---- /epargne: 3-step simulator with the full result -------------------- */
.fe-flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.fe-intro h2 { margin: 0 0 12px; color: var(--blue); font-family: "Anton", sans-serif; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.fe-intro p:last-child { margin: 0; color: var(--body); font-size: 16px; line-height: 1.6; }
.fe-card { display: grid; border: 1px solid rgba(3,31,148,.13); border-radius: var(--radius-large); background: linear-gradient(180deg, #fffaf6 0%, #fdf5ed 100%); padding: 24px 26px; box-shadow: var(--shadow-card); }
.fe-card [data-fe-stage] { display: grid; gap: 16px; }
.fe-card [data-fe-stage][hidden] { display: none; }
.fe-card .range-field { margin: 0; }
.fe-card output { color: var(--blue); font-family: "League Spartan", sans-serif; font-size: 18px; font-weight: 800; }
.fe-card input[type="range"] { width: 100%; accent-color: var(--blue); }
.fe-profil legend { margin-bottom: 8px; }
.fe-note { margin: -6px 0 0; color: var(--muted); font-size: 11.5px; text-align: center; }
.funnel-result-page .funnel-result-grid[hidden] { display: none; }
@media (max-width: 900px) { .fe-flow { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 640px) { .fe-card { padding: 18px 16px; } }

/* Hero cleanup: the heading already says it, no hint or second title. */
.hero .simulator-entry-hint,
.hero .mode-panel[data-panel="B"] > h3 { display: none; }
.hero .simulator-screen[data-screen="input"] { padding-top: 20px; }
.funnel-save-warning { margin: 0 0 12px; border-radius: 12px; background: rgba(255,180,138,.16); color: #ffd9c4; padding: 10px 12px; font-size: 13.5px; } .funnel-save-warning a { color: #fff; font-weight: 800; }

/* Hero team card: a row of adviser faces (new team photos, no names). */
.hero-team-faces { display: flex; flex: none; align-items: center; padding: 0 0 0 10px; border: 0; background: none; cursor: pointer; }
.hero-team-faces img { width: 52px; height: 52px; margin-left: -10px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 14px -8px rgba(3,31,148,.7); transition: transform .18s ease; }
.hero-team-faces img[hidden] { display: none; }
.hero-team-faces:hover img, .hero-team-faces:focus-visible img { transform: translateY(-2px); }
.hero-team-more { display: grid; width: 52px; height: 52px; margin-left: -10px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--blue); color: #fff !important; font: 800 14px "League Spartan", sans-serif !important; }
.hero-team p strong { font-size: 15.5px; }
@media (max-width: 640px) { .hero-team { flex-direction: column; align-items: flex-start; } .hero-team-faces img, .hero-team-more { width: 46px; height: 46px; } }
.final-cta-fields { align-items: end; } .final-cta-form .field { align-content: end; }

/* "More advisers" bubble: three dots instead of a count. */
.hero-team-more { display: flex !important; align-items: center; justify-content: center; gap: 4px; }
.hero-team-more i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* Team strip: every adviser, slowly scrolling (pauses on hover). */
.staff-vignettes.staff-marquee { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.staff-track { display: flex; gap: 14px; width: max-content; animation: staff-scroll 70s linear infinite; }
.staff-marquee:hover .staff-track, .staff-marquee:focus-within .staff-track { animation-play-state: paused; }
.staff-marquee .staff-track figure { flex: 0 0 236px; min-width: 0; }
@keyframes staff-scroll { to { transform: translateX(calc(-50% - 7px)); } }
@media (max-width: 900px) { .staff-marquee .staff-track figure { flex-basis: 180px; } }
@media (prefers-reduced-motion: reduce) { .staff-track { animation: none; } .staff-vignettes.staff-marquee { overflow-x: auto; } }

/* Callback pop-up: a few adviser faces under the intro. */
.callback-team { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.callback-team-faces { display: flex; align-items: center; padding-left: 8px; }
.callback-team-faces img, .callback-team-faces .hero-team-more { width: 40px; height: 40px; margin-left: -8px; border: 2.5px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 12px -7px rgba(3,31,148,.7); }
.callback-team-faces .hero-team-more { gap: 3px; background: var(--blue); }
.callback-team-faces .hero-team-more i { width: 4.5px; height: 4.5px; }
.callback-team small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.callback-team-faces { flex: none; } .callback-team-faces img, .callback-team-faces .hero-team-more { flex: none; }
