/* ============================================================
   LUMIO V4 — Simulateur crédit immobilier
   Hero deep blue + house image · No header · Poppins
   ============================================================ */

:root {
  /* Hero blues — palette plus lumineuse */
  --navy-deep: #112A6E;
  --navy: #0B1F4D;
  --navy-mid: #1E3A8A;
  --navy-soft: #2952C2;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --sky: #38BDF8;
  --sky-soft: #BAE6FD;
  --indigo: #6366F1;

  /* Neutral */
  --ink: #0B1F4D;
  --ink-soft: #4B5677;
  --ink-mute: #7A86A3;
  --line: rgba(11, 31, 77, 0.10);
  --line-soft: rgba(11, 31, 77, 0.06);

  --bg: #F8FAFC;
  --bg-soft: #EEF2F8;
  --white: #FFFFFF;

  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);

  --grad-blue: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
  --grad-light: linear-gradient(135deg, #38BDF8 0%, #BAE6FD 100%);
  --grad-deep: linear-gradient(140deg, #0B1F4D 0%, #1E3A8A 50%, #2952C2 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }


/* ============================================================
   TEXT / SECTION HELPERS
   ============================================================ */
.text-grad {
  background: var(--grad-blue);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-grad-light {
  background: var(--grad-light);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section__eyebrow--light { color: var(--sky); }
.section__head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.section__title--light { color: var(--white); }
.section__lead {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 620px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease-back), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 14px 32px -10px rgba(37, 99, 235, 0.45);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -10px rgba(37, 99, 235, 0.6);
}
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn--lg { padding: 18px 32px; font-size: 15.5px; }
.btn--xl { padding: 22px 40px; font-size: 17px; }
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { color: var(--navy); border-color: var(--ink-mute); }
.btn--white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 22px 50px -10px rgba(11, 31, 77, 0.4);
  font-weight: 700;
}
.btn--white:hover { transform: translateY(-3px) scale(1.02); }
.btn--block { width: 100%; }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }


/* ============================================================
   TOPBAR — Translucent over hero, becomes opaque on scroll
   ============================================================ */
:root { --topbar-h: 64px; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 1);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11, 31, 77, 0.08);
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.brand__mark { display: inline-flex; }
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.topbar__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.topbar__links a {
  position: relative;
  transition: color 0.2s;
  padding: 4px 0;
}
.topbar__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.topbar__links a:hover { color: var(--navy); }
.topbar__links a:hover::after { transform: scaleX(1); }
.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.topbar__cta:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
}

body { padding-top: var(--topbar-h); }


/* ============================================================
   HERO — Deep blue with house image
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  padding: clamp(24px, 3vw, 48px) 0 clamp(60px, 7vw, 90px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-deep);
  overflow: hidden;
}
.hero__bg-house {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: saturate(1.15) contrast(1.05);
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 8%, black 25%, black 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 8%, black 25%, black 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, transparent 70%);
  animation: glowFloat 18s ease-in-out infinite;
}
.hero__glow--2 {
  width: 520px; height: 520px;
  bottom: -160px; right: 5%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
  animation: glowFloat2 22s ease-in-out infinite;
}
@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -30px); }
}

.hero__inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 200px);
}

/* LEFT : copy + badges + CTA */
.hero__copy { color: var(--white); }
.hero__title {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 18px;
  max-width: 540px;
}
.hero__lead {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero__badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hero-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--sky);
  flex-shrink: 0;
}
.hero-badge div { display: flex; flex-direction: column; gap: 2px; }
.hero-badge strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.hero-badge span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}


/* ============================================================
   SIMULATOR
   ============================================================ */
.simulator {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 2.4vw, 36px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 20px 60px -20px rgba(0, 0, 0, 0.25),
    0 50px 100px -40px rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  align-self: center;
  position: relative;
}

/* ============================================================
   RATE STAMP — Sticker publicitaire pro
   ============================================================ */
.rate-stamp {
  position: absolute;
  bottom: 80px;
  left: clamp(40px, 42vw, 660px);
  z-index: 6;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px;
  transform: rotate(-14deg);
  /* Bordure intérieure blanche (effet "sceau") */
  border: 3px solid rgba(255, 255, 255, 0.95);
  /* Bordure extérieure dashed (effet "publicité") */
  outline: 2px dashed rgba(255, 255, 255, 0.45);
  outline-offset: 6px;
  /* Shadow forte pour effet décollé */
  box-shadow:
    0 26px 50px -12px rgba(0, 0, 0, 0.5),
    0 10px 24px -6px rgba(37, 99, 235, 0.55),
    inset 0 -3px 12px rgba(0, 0, 0, 0.15);
  animation: stampIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both,
             stampWobble 7s ease-in-out 1.6s infinite;
  text-align: center;
}
@keyframes stampIn {
  from { opacity: 0; transform: rotate(0deg) scale(0.3); }
  to   { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@keyframes stampWobble {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50%      { transform: rotate(-11deg) translateY(-5px); }
}

.rate-stamp__top {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: -2px;
}
.rate-stamp__rate {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  color: var(--white);
}
.rate-stamp__rate strong {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.rate-stamp__pct {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rate-stamp__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  width: 70%;
}

/* Tablettes (entre 1100 et 720) : reste visible mais ajuste position */
@media (max-width: 1100px) {
  .rate-stamp {
    bottom: 30px;
    left: 20px;
    width: 120px; height: 120px;
  }
  .rate-stamp__rate strong { font-size: 1.85rem; }
  .rate-stamp__pct { font-size: 0.9rem; }
}

/* Mobile : stamp masqué pour ne pas encombrer */
@media (max-width: 720px) {
  .rate-stamp { display: none; }
}

.simulator__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.simulator__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.simulator__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
}
.simulator__badge strong {
  background: var(--grad-blue);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Progress */
.progress {
  position: relative;
  margin-bottom: 22px;
}
.progress__track {
  position: absolute;
  top: 14px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--grad-blue);
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.progress__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.progress__step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  transition: all 0.4s var(--ease-back);
}
.progress__step.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: scale(1.1);
}
.progress__step.is-done {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.progress__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
}

/* Steps */
.sim-form { position: relative; }
.step {
  border: none;
  display: none;
  animation: stepIn 0.45s var(--ease) both;
}
.step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.step__legend {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.2;
}
.step__actions { margin-top: 22px; }
.step__actions--split { display: flex; gap: 12px; justify-content: space-between; }
.step__actions--split .btn--primary { flex: 1; }


/* Project cards (Step 1) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.project-card { cursor: pointer; user-select: none; }
.project-card input { position: absolute; opacity: 0; pointer-events: none; }
.project-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 12px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 2px solid transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.project-card__img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-sm);
  transition: transform 0.5s var(--ease);
}
.project-card__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.project-card:hover .project-card__inner {
  background: var(--white);
  border-color: rgba(11, 31, 77, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(11, 31, 77, 0.18);
}
.project-card:hover .project-card__img { transform: scale(1.05); }
.project-card input:checked + .project-card__inner {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
}
.project-card input:checked + .project-card__inner::after {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 13l4 4L19 7' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}


/* Slider rows */
.slider-row {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.slider-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.slider-row__head label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.slider-row__head strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.slider-row__head strong span { transition: transform 0.2s var(--ease-back); display: inline-block; }
.slider-row__head strong span.is-bumping { transform: scale(1.06); }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--blue) 0%, var(--blue) var(--p, 20%), rgba(11,31,77,0.1) var(--p, 20%), rgba(11,31,77,0.1) 100%);
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  cursor: grab;
  transition: transform 0.2s var(--ease-back);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid var(--white);
  cursor: grab;
}
.range__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
  font-family: var(--sans);
}
.chip:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Duration pills */
.pill-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.pill {
  padding: 12px 4px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
  font-family: var(--sans);
}
.pill:hover { border-color: var(--blue); color: var(--navy); }
.pill.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.rate-note {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 6px;
  line-height: 1.45;
}


/* Estimate card */
.estimate {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.estimate__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.estimate__row span:first-child { font-size: 13px; color: var(--ink-soft); }
.estimate__monthly {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.estimate__row--mute { margin-bottom: 0; }
.estimate__row--mute span { color: var(--ink-mute); font-size: 12px; }
.estimate__total { font-weight: 700; color: var(--navy); font-size: 13px; }


/* Situation cards */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sit-card { cursor: pointer; user-select: none; }
.sit-card input { position: absolute; opacity: 0; pointer-events: none; }
.sit-card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  transition: all 0.25s var(--ease);
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}
.sit-card:hover .sit-card__inner {
  background: var(--white);
  border-color: rgba(11, 31, 77, 0.16);
  transform: translateY(-1px);
}
.sit-card input:checked + .sit-card__inner {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}


/* Recap (step 5) */
.recap {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 18px 20px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.recap__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}
.recap__row:last-child { margin-bottom: 0; }
.recap__row span { color: rgba(255, 255, 255, 0.6); }
.recap__row strong { color: var(--white); font-weight: 600; }
.recap__row--big {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}
.recap__row--big strong {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-light);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Fields */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.field--full { grid-column: 1 / -1; }
.field__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.25s var(--ease);
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 16px;
  cursor: pointer;
}
.consent input { margin-top: 2px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }


/* Done */
.done { text-align: center; padding: 16px 0; }
.done__check { width: 64px; height: 64px; margin: 0 auto 22px; }
#checkPath {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.7s var(--ease) 0.2s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.done__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.done__txt { color: var(--ink-soft); font-size: 14px; }


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.stats-bar__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-item strong {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-item span { font-size: 12px; color: var(--ink-mute); font-weight: 500; }


/* ============================================================
   TRUST BAND
   ============================================================ */
.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.trust-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.trustpilot { display: flex; align-items: center; gap: 16px; }
.trustpilot__rating { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trustpilot__rating strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.trustpilot__stars { color: #00B67A; letter-spacing: 2px; font-size: 14px; }
.trustpilot__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--ink-soft);
}
.trustpilot__label {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.trustpilot__txt strong { color: var(--navy); font-weight: 600; }
.trustpilot__brand {
  margin-top: 4px;
  font-weight: 600;
  font-size: 12px;
  color: #00B67A;
}
.press { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.press__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.press__logos { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.press__logo {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-mute);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.press__logo:hover { opacity: 1; color: var(--navy); }


/* ============================================================
   MONEY EXAMPLES
   ============================================================ */
.examples .section__head {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.examples__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ex-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease-back), box-shadow 0.4s, border-color 0.3s;
  cursor: pointer;
  overflow: hidden;
}
.ex-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(11, 31, 77, 0.18);
  border-color: rgba(11, 31, 77, 0.16);
}
.ex-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ex-card__amount {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ex-card__duration { font-size: 13px; color: var(--ink-soft); }
.ex-card__bottom {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
}
.ex-card__bottom span { font-size: 12px; color: var(--ink-mute); }
.ex-card__monthly {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.ex-card__monthly small {
  font-size: 0.55em;
  font-weight: 600;
  -webkit-text-fill-color: var(--ink-mute);
  background: none;
  letter-spacing: 0;
}
.ex-card--featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-color: transparent;
}
.ex-card--featured .ex-card__tag { color: var(--sky); }
.ex-card--featured .ex-card__amount { color: var(--white); }
.ex-card--featured .ex-card__duration { color: rgba(255, 255, 255, 0.65); }
.ex-card--featured .ex-card__bottom { background: rgba(255, 255, 255, 0.06); }
.ex-card--featured .ex-card__bottom span { color: rgba(255, 255, 255, 0.65); }
.ex-card--featured .ex-card__monthly { background: var(--grad-light); -webkit-background-clip: text; background-clip: text; }
.ex-card--featured .ex-card__monthly small { -webkit-text-fill-color: rgba(255, 255, 255, 0.5); }
.ex-card__pill {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-light);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.65); }
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.how-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.5s var(--ease-back), border-color 0.3s;
}
.how-step:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}
.how-step__num {
  font-size: 13px;
  font-weight: 700;
  background: var(--grad-light);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}
.how-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.how-step p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}


/* ============================================================
   STORY — Famille à la maison (remplace l'ancien bento)
   ============================================================ */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.story__visual {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: visible;
  aspect-ratio: 4 / 5;
  max-width: 540px;
  box-shadow: 0 30px 80px -20px rgba(11, 31, 77, 0.25), 0 8px 20px -8px rgba(11, 31, 77, 0.08);
}
.story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-2xl);
  display: block;
}
.story__float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 12px 30px -10px rgba(11, 31, 77, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.story__float-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story__float-stat strong {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad-blue);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.story__float-stat span {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.story__float-avatars { display: flex; flex-shrink: 0; }
.avatar-mini {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--white);
  margin-left: -10px;
  background-color: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.avatar-mini:first-child { margin-left: 0; }

.story__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.story__copy .section__lead { font-size: 1.05rem; }
.story__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 12px;
}
.story__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.story__points li > div { display: flex; flex-direction: column; gap: 2px; }
.story__points strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.story__points span {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.story__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
}


/* ============================================================
   (ancien BENTO conservé pour compatibilité — non utilisé)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: minmax(280px, 1fr) minmax(220px, auto);
  gap: 18px;
}
.bento__card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-back), box-shadow 0.35s, border-color 0.3s;
}
.bento__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -18px rgba(11, 31, 77, 0.18);
  border-color: rgba(11, 31, 77, 0.16);
}
.bento__card--hero {
  grid-column: 1;
  grid-row: 1;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  justify-content: flex-end;
}
.bento__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
  transition: transform 0.7s var(--ease);
  filter: saturate(0.85);
}
.bento__card:hover .bento__bg { transform: scale(1.06); }
.bento__card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 77, 0.35) 0%, rgba(11, 31, 77, 0.78) 45%, rgba(11, 31, 77, 0.96) 100%);
  z-index: 1;
}
.bento__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 4px;
}
.bento__card--hero h3,
.bento__card--photo h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.bento__card--hero p,
.bento__card--photo p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 460px;
}
.bento__icon {
  display: inline-flex;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 6px;
  transition: transform 0.4s var(--ease-back);
}
.bento__card:hover .bento__icon { transform: scale(1.08); }
.bento__card h3:not(.bento__card--hero h3):not(.bento__card--photo h3) {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.bento__card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.bento__card--blue {
  background: var(--grad-blue);
  color: var(--white);
  border-color: transparent;
}
.bento__card--blue h3 { color: var(--white); }
.bento__card--blue p { color: rgba(255, 255, 255, 0.88); }
.bento__card--blue .bento__icon { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.bento__card--accent {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: rgba(37, 99, 235, 0.18);
  grid-column: 3;
  grid-row: 2;
}
.bento__card--accent .bento__icon { background: rgba(37, 99, 235, 0.15); color: var(--blue); }
.bento__card--photo {
  grid-column: 1 / 3;
  grid-row: 2;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  justify-content: flex-end;
}
.bento__card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 77, 0.3) 0%, rgba(11, 31, 77, 0.78) 50%, rgba(11, 31, 77, 0.96) 100%);
  z-index: 1;
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.section--soft { background: var(--bg-soft); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.testi {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-back), box-shadow 0.4s;
}
.testi:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(11, 31, 77, 0.18);
}
.testi__stars { color: #F59E0B; letter-spacing: 2px; font-size: 14px; }
.testi blockquote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
}
.testi footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.testi__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.testi footer strong { display: block; font-size: 13.5px; color: var(--navy); font-weight: 600; }
.testi footer span { font-size: 12px; color: var(--ink-mute); }


/* ============================================================
   FAQ
   ============================================================ */
.faq__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq__intro { position: sticky; top: 30px; }
.faq__list { display: grid; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--ink-mute); }
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.3s var(--ease-back); }
.faq-item__icon::before,
.faq-item__icon::after { content: ""; position: absolute; background: var(--navy); top: 50%; left: 50%; transition: transform 0.3s var(--ease); }
.faq-item__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-item__icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item[open] .faq-item__icon { transform: rotate(180deg); }
.faq-item__body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  animation: faqOpen 0.4s var(--ease) both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { padding: 0 0 clamp(60px, 8vw, 120px); }
.cta-final__box {
  position: relative;
  background: var(--navy);
  border-radius: var(--r-2xl);
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 4vw, 64px);
  text-align: center;
  isolation: isolate;
}
.cta-final__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-final__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-final h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  max-width: 760px;
  margin: 6px 0;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 540px;
  margin-bottom: 18px;
}
.cta-final__sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  margin-top: 14px;
  margin-bottom: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-soft);
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  gap: 22px;
  text-align: center;
}
.footer__brand { font-weight: 600; font-size: 15px; color: var(--navy); }
.footer__disclaimer {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__disclaimer strong { color: var(--navy); font-weight: 600; }
.footer__disclaimer-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-mute);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-mute);
}
.footer__legal a:hover { color: var(--navy); }


/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 14px 32px -10px rgba(37, 99, 235, 0.45);
}
.sticky-cta strong { font-size: 14px; display: block; font-weight: 700; }
.sticky-cta small { font-size: 11px; opacity: 0.85; }
.sticky-cta__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   LEGAL MODAL
   ============================================================ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: modalIn 0.3s var(--ease);
}
.legal-modal[hidden] { display: none; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 77, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.legal-modal__card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 740px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -20px rgba(11, 31, 77, 0.4);
  animation: modalCardIn 0.4s var(--ease-back);
  overflow: hidden;
}
@keyframes modalCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.legal-modal__title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}
.legal-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  transition: background 0.25s, transform 0.25s;
}
.legal-modal__close:hover {
  background: var(--navy);
  color: var(--white);
  transform: rotate(90deg);
}
.legal-modal__body {
  padding: 24px clamp(24px, 3vw, 36px) 32px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal-modal__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 22px;
  margin-bottom: 8px;
}
.legal-modal__body h3:first-child { margin-top: 0; }
.legal-modal__body p { margin-bottom: 12px; }
.legal-modal__body ul { margin: 0 0 12px 18px; }
.legal-modal__body ul li { margin-bottom: 4px; list-style: disc; }
.legal-modal__body strong { color: var(--navy); font-weight: 600; }
.legal-modal__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-modal__body a:hover { color: var(--navy); }
body.modal-open { overflow: hidden; }


/* ============================================================
   COOKIE CONSENT — banner + preferences panel
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  right: auto;
  z-index: 400;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px -16px rgba(11, 31, 77, 0.28), 0 4px 12px -4px rgba(11, 31, 77, 0.08);
  border: 1px solid var(--line);
  padding: 14px 16px;
  animation: cookieIn 0.5s var(--ease-back) 0.4s both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-banner__icon {
  display: none;
}
.cookie-banner__copy h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.cookie-banner__copy p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.cookie-banner__copy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.cookie-banner__copy a:hover { color: var(--navy); }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cookie-btn {
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  flex: 1;
  min-width: max-content;
}
.cookie-btn--ghost {
  background: var(--bg-soft);
  color: var(--ink);
}
.cookie-btn--ghost:hover {
  background: var(--line);
}
.cookie-btn--primary {
  background: var(--navy);
  color: var(--white);
}
.cookie-btn--primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.45);
}


/* Cookie preferences panel */
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: modalIn 0.3s var(--ease);
}
.cookie-panel[hidden] { display: none; }
.cookie-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 77, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.cookie-panel__card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -20px rgba(11, 31, 77, 0.4);
  animation: modalCardIn 0.4s var(--ease-back);
  overflow: hidden;
}
.cookie-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cookie-panel__head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}
.cookie-panel__body {
  padding: 22px 28px;
  overflow-y: auto;
}
.cookie-panel__intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.55;
}
.cookie-panel__foot {
  display: flex;
  gap: 10px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  justify-content: flex-end;
  background: var(--bg-soft);
}
.cookie-panel__foot .cookie-btn { flex: 0 0 auto; }

.cookie-cat {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  margin-bottom: 10px;
}
.cookie-cat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cookie-cat__head > div { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cookie-cat strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.cookie-cat span {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 42px; height: 24px;
  border-radius: 999px;
  background: rgba(11, 31, 77, 0.15);
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  margin: 0;
}
.cookie-toggle__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease-back);
}
.cookie-toggle input:checked ~ .cookie-toggle__dot,
.cookie-toggle:has(input:checked) .cookie-toggle__dot {
  transform: translateX(18px);
}
.cookie-toggle:has(input:checked) {
  background: var(--blue);
}
.cookie-toggle.is-locked {
  background: var(--blue);
  cursor: not-allowed;
  opacity: 0.5;
}
.cookie-toggle.is-locked .cookie-toggle__dot {
  transform: translateX(18px);
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 18px;
  }
  .cookie-banner__actions .cookie-btn {
    flex: 1 0 calc(50% - 4px);
    font-size: 12px;
  }
  .cookie-banner__actions .cookie-btn--primary {
    flex: 1 0 100%;
  }
  .cookie-panel__head, .cookie-panel__body, .cookie-panel__foot { padding-left: 20px; padding-right: 20px; }
  .cookie-panel__foot { flex-direction: column; }
  .cookie-panel__foot .cookie-btn { flex: 1; }
}


/* ============================================================
   REVEAL ON SCROLL — désactivé pour garantir la visibilité
   ============================================================ */
.reveal,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__bg-house {
    width: 110%;
    right: -5%;
    top: 70%;
    opacity: 0.45;
  }
  .examples__grid { grid-template-columns: repeat(2, 1fr); }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento__card--hero { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .bento__card--photo { grid-column: 1 / -1; grid-row: auto; min-height: 240px; }
  .bento__card--accent { grid-column: auto; grid-row: auto; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: relative; top: 0; }
  .story__grid { grid-template-columns: 1fr; gap: 36px; }
  .story__visual { max-width: 100%; justify-self: center; }
}

@media (max-width: 1100px) {
  .topbar__links { display: none; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 56px; }
  .topbar__cta { padding: 8px 14px; font-size: 12px; }
  .topbar__cta svg { display: none; }
  .hero { padding-top: 40px; }
  .hero__title { font-size: clamp(2rem, 8vw, 3.2rem); }
  .simulator { padding: 22px; border-radius: var(--r-xl); }
  .step__legend { font-size: 1.15rem; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .situation-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .examples__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-bar__inner { gap: 20px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
  .footer__legal { font-size: 11px; gap: 8px; }
  .legal-modal__card { max-height: 92vh; border-radius: var(--r-lg); }
  .legal-modal__head { padding: 20px 22px; }
  .legal-modal__body { padding: 20px 22px 28px; font-size: 14px; }
}

@media (max-width: 420px) {
  .pill-row { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
}
