/* ============================================================
   PRAIMY v3 — "Agence de proximité chaleureuse"
   Direction : pas tech, pas startup — humain, terroir, premium
   ============================================================ */

:root {
  /* === Palette === */
  --forest:      #1A3C2E;
  --forest-dark: #112A20;
  --pine:        #2D6A4F;
  --sage:        #52B788;
  --sage-bright: #74C99B;
  --sage-tint:   #D5EDDE;
  --gold:        #C9A84C;
  --gold-deep:   #A8893A;
  --gold-tint:   #F0E5C3;

  --ink:         #1A2620;          /* near-black with green undertone */
  --ink-soft:    #3E4A45;
  --ink-mute:    #6F7A75;

  --cream:       #FAF7F2;          /* page background */
  --cream-2:     #F2EEE3;          /* deeper cream, sections */
  --cream-3:     #E8E2D2;
  --paper:       #FFFFFF;
  --line:        #DCD5C4;
  --line-soft:   #EAE5D6;

  /* === Type === */
  --font-display: "Montserrat", "Helvetica Neue", -apple-system, system-ui, sans-serif;
  --font-body:    "DM Sans", -apple-system, system-ui, "Helvetica Neue", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* === Layout === */
  --max:    1280px;
  --pad:    clamp(20px, 4vw, 56px);
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* === Shadows (warm-tinted) === */
  --shadow-xs: 0 1px 2px rgba(26, 60, 46, 0.05), 0 1px 1px rgba(26, 60, 46, 0.03);
  --shadow-sm: 0 4px 16px rgba(26, 60, 46, 0.06), 0 2px 4px rgba(26, 60, 46, 0.04);
  --shadow:    0 12px 32px rgba(26, 60, 46, 0.10), 0 4px 12px rgba(26, 60, 46, 0.06);
  --shadow-lg: 0 24px 64px rgba(26, 60, 46, 0.14), 0 8px 16px rgba(26, 60, 46, 0.08);
  --shadow-gold: 0 12px 30px rgba(201, 168, 76, 0.25);

  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 { font-size: clamp(48px, 6.8vw, 92px); font-weight: 500; }
h2 { font-size: clamp(38px, 5vw, 68px); font-weight: 500; }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; font-variation-settings: "opsz" 36, "SOFT" 50; }

p { margin: 0; }
.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
}
em.accent { font-style: normal; color: var(--gold); }
em.sage   { font-style: normal; color: var(--sage); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--gold);
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }

.mono { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); }

/* === Layout === */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { padding: clamp(80px, 9vw, 140px) 0; position: relative; }
section.tight { padding: clamp(56px, 6vw, 96px) 0; }
section.cream { background: var(--cream-2); }
section.forest {
  background: var(--forest);
  color: var(--cream);
}
section.forest h2, section.forest h3, section.forest h4 { color: var(--cream); }
section.forest .lead { color: rgba(250, 247, 242, 0.72); }
section.forest em.accent { color: var(--gold); }

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }
.reveal.delay-6 { transition-delay: .48s; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: all .2s var(--ease);
  cursor: pointer;
  border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-dark); box-shadow: var(--shadow); }
.btn-gold {
  background: var(--gold);
  color: var(--forest-dark);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-deep); }
.btn-sage { background: var(--sage); color: var(--forest); box-shadow: 0 4px 14px rgba(82, 183, 136, 0.3); }
.btn-sage:hover { background: var(--pine); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-ghost.on-dark { color: var(--cream); border-color: rgba(250,247,242,0.4); }
.btn-ghost.on-dark:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-arrow::after {
  content: "→";
  font-size: 16px;
  transition: transform .25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.96);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 48px;
}
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s var(--ease);
}
.nav-links a:hover { color: var(--forest); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-cta .btn-phone { gap: 8px; }
.nav-cta .btn-phone .phone-icon { display: inline-flex; align-items: center; }
.nav-cta .btn-phone .phone-text { display: inline; }
@media (max-width: 640px) {
  .nav-cta .btn-phone .phone-text { display: none; }
}

@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 640px) {
  /* On phones, the phone CTA becomes a compact icon button (still tappable) */
  .nav-cta .btn-ghost.btn-phone {
    padding: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 0;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .nav-cta .btn-ghost.btn-phone svg { display: block; }
  .nav-cta .btn-gold { padding: 11px 16px; font-size: 13px; }
  .nav-logo img { height: 44px; }
  .nav-inner { height: 72px; gap: 10px; }
  /* Move variant chip out of the way on phones */
  .variant-chip { display: none; }
}

/* === HERO === */
.hero {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(82, 183, 136, 0.10), transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(201, 168, 76, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Centered hero variant */
.hero-centered {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-centered .eyebrow {
  display: inline-flex;
  margin: 0 auto 28px;
}
.hero-centered h1 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero-centered h1 em.accent { color: var(--gold); font-style: normal; }
.hero-slogan {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--pine);
  letter-spacing: -0.01em;
  margin: 16px auto 0;
}
.hero-centered .lead {
  margin: 28px auto 0;
  max-width: 620px;
}
.hero-centered .hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-centered .hero-trust {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* Floating cards behind the centered hero */
.hero-floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-float {
  position: absolute;
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--forest);
  font-weight: 600;
  border: 1px solid var(--line);
}
.hero-float .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--sage-tint);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-float.tl { top: 14%;  left: 5%;  animation: heroFloat 7s ease-in-out infinite; }
.hero-float.tr { top: 22%;  right: 4%; animation: heroFloat 8s 0.4s ease-in-out infinite; }
.hero-float.bl { bottom: 18%; left: 6%; animation: heroFloat 6s 0.8s ease-in-out infinite; }
.hero-float.br { bottom: 28%; right: 5%; animation: heroFloat 7.5s 0.2s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (max-width: 1000px) {
  .hero-float { display: none; }
}

/* === Simulateur full-width dark section === */
.simulateur-section { padding-top: 0; padding-bottom: clamp(80px, 9vw, 140px); }
.sim-wrap {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sim-wrap::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.16), transparent 60%);
  pointer-events: none;
}
.sim-wrap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  position: relative;
}
.sim-wrap-text { max-width: 460px; }
.sim-wrap-text .eyebrow { color: var(--gold) !important; }
.sim-wrap-text .eyebrow::before { background: var(--gold) !important; }
.sim-wrap-text h2 em.accent { color: var(--gold); font-style: italic; }
.sim-wrap-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.sim-wrap-points li {
  display: flex; gap: 12px; align-items: start;
  color: rgba(250, 247, 242, 0.85);
  font-size: 14.5px;
  line-height: 1.5;
}
.sim-wrap-points li::before {
  content: "→";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .sim-wrap-grid { grid-template-columns: 1fr; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 .slogan {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.hero-copy h1 em.accent { color: var(--gold); }
.hero-copy .lead { max-width: 520px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-trust .item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft);
}
.hero-trust .item .ic {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* === SIMULATOR (hero right) === */
.simulator {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  position: relative;
}
.simulator::before {
  content: "";
  position: absolute;
  top: -12px; left: 28px;
  background: var(--gold);
  color: var(--forest-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  content: "★ Simulateur gratuit";
}
.sim-head {
  margin-bottom: 24px;
  padding-top: 8px;
}
.sim-head h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.sim-head .sub {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-top: 6px;
}

.sim-section { margin-bottom: 22px; }
.sim-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.sim-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.sim-label-row .sim-label { margin-bottom: 0; }
.sim-label-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--pine);
  letter-spacing: -0.01em;
}

/* === Slider === */
.sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage) var(--p, 30%), var(--cream-2) var(--p, 30%), var(--cream-2) 100%);
  outline: none;
  margin: 4px 0;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pine);
  border: 3px solid var(--cream);
  box-shadow: 0 2px 8px rgba(26,60,46,0.25);
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.sim-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.sim-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pine);
  border: 3px solid var(--cream);
  box-shadow: 0 2px 8px rgba(26,60,46,0.25);
  cursor: pointer;
}
.sim-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sim-chip {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream-2);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.sim-chip:hover { background: var(--cream-3); color: var(--forest); }
.sim-chip.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.sim-chip:disabled, .sim-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.sim-chip:disabled:hover, .sim-chip.disabled:hover {
  background: var(--cream-2);
  color: var(--ink-soft);
}

.sim-result {
  margin-top: 8px;
  padding: 24px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 100%);
  color: var(--cream);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.sim-result::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 70%);
  pointer-events: none;
}
.sim-result-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250,247,242,0.65);
}
.sim-result-amt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  position: relative;
}
.sim-result-amt .big {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--gold);
  line-height: 1;
}
.sim-result-amt .pct {
  font-size: 14px;
  color: var(--sage-bright);
  font-weight: 600;
}
.sim-result-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(250,247,242,0.15);
  display: flex; flex-direction: column; gap: 8px;
}
.sim-result-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.sim-result-line .k { color: rgba(250,247,242,0.72); }
.sim-result-line .v { font-weight: 600; }
.sim-result-line.total .v { color: var(--gold); font-size: 16px; }
.sim-result-finance {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(248, 245, 238, 0.18);
  font-size: 12px;
  color: rgba(248, 245, 238, 0.78);
  text-align: center;
  letter-spacing: 0.01em;
}
.sim-result-finance strong {
  color: var(--gold);
  font-weight: 600;
}
.sim-result-empty {
  padding: 32px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius);
  text-align: center;
  color: rgba(250, 247, 242, 0.65);
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 8px;
}
.sim-result-empty p { margin: 0; }
.sim-result-line.ecret .k { color: rgba(250,247,242,0.55); font-style: italic; }
.sim-result-line.ecret .v { color: rgba(250,247,242,0.55); font-style: italic; }
.sim-cta { width: 100%; margin-top: 18px; justify-content: center; }
.sim-disclaimer {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 12px;
  line-height: 1.5;
}

/* === Wizard mode === */
.sim-mode-toggle {
  display: flex;
  gap: 2px;
  background: var(--cream-2);
  padding: 3px;
  border-radius: 999px;
  margin: 0 auto 22px;
  width: max-content;
}
.sim-mode-toggle button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
  background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
  font-family: var(--font-body);
  border: 0;
}
.sim-mode-toggle button:hover { color: var(--ink); }
.sim-mode-toggle button.active {
  background: var(--paper);
  color: var(--forest);
  box-shadow: var(--shadow-xs);
}

.wizard-progress {
  margin-bottom: 28px;
}
.wizard-progress-bar {
  height: 5px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--pine));
  border-radius: 999px;
  transition: width .45s var(--ease);
}
.wizard-progress-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
}
.wizard-head { margin-bottom: 22px; animation: stepIn .42s var(--ease); }
.wizard-head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin: 0 0 8px;
  line-height: 1.15;
}
.sim-step-sub {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.wizard-content { animation: stepIn .42s var(--ease); margin-bottom: 8px; }
.wizard-content .sim-section { margin-bottom: 0; }
.wizard-content .sim-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wizard-content .sim-chip {
  padding: 14px 18px;
  font-size: 14px;
  text-align: center;
  justify-content: center;
  width: 100%;
  white-space: normal;
  line-height: 1.3;
}
.wizard-content .sim-label { display: none; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.wizard-nav .btn {
  flex: 1;
  justify-content: center;
  padding: 14px 18px;
  font-size: 14px;
}
.wizard-nav .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* === Revenu grid link & modal === */
.revenu-grid-link {
  display: inline-block;
  margin-top: 14px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sage-deep);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
  transition: color .15s var(--ease);
}
.revenu-grid-link:hover { color: var(--forest); }

.revenu-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20, 32, 26, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn .25s var(--ease);
  /* Reset color so it never inherits dark wraps (e.g. v4 navy simulator) */
  color: var(--ink);
}
.revenu-modal-card {
  color: var(--ink);
}
.revenu-modal-card,
.revenu-modal-card * {
  color: inherit;
}
.revenu-modal-card .revenu-modal-head h3 { color: var(--forest); }
.revenu-modal-card .revenu-table thead th { color: var(--ink-mute); }
.revenu-modal-card .revenu-table td.th { color: var(--ink); }
.revenu-modal-card .revenu-modal-foot { color: var(--ink-mute); }
.revenu-modal-card .revenu-modal-intro { color: var(--ink-soft); }
.revenu-modal-card .revenu-modal-intro strong { color: var(--forest); }
.revenu-modal-card .revenu-modal-toggle button { color: var(--ink-soft); }
.revenu-modal-card .revenu-modal-toggle button.active { color: var(--forest); }
.revenu-modal-card .revenu-modal-close { color: var(--ink-soft); }
.revenu-modal-card .revenu-modal-close:hover { color: var(--cream); }
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.revenu-modal-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(20, 32, 26, 0.25);
  animation: modalScaleIn .3s var(--ease);
}
@keyframes modalScaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.revenu-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.revenu-modal-head h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.15;
  margin: 6px 0 0;
}
.revenu-modal-close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.revenu-modal-close:hover { background: var(--ink); color: var(--cream); }

.revenu-modal-toggle {
  display: inline-flex;
  background: var(--cream-2);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 16px;
  gap: 2px;
}
.revenu-modal-toggle button {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.revenu-modal-toggle button.active {
  background: var(--paper);
  color: var(--forest);
  box-shadow: var(--shadow-xs);
}

.revenu-modal-intro {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
}
.revenu-modal-intro strong { color: var(--forest); font-weight: 600; }

.revenu-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.revenu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.revenu-table th, .revenu-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.revenu-table thead th {
  background: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  text-align: left;
}
.revenu-table tbody tr:last-child td { border-bottom: 0; }
.revenu-table td.th {
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
}
.revenu-table tr.revenu-extra {
  background: var(--cream-2);
  font-style: italic;
  font-size: 12px;
}
.revenu-table tr.revenu-extra td.th { background: var(--cream-3); }

.revenu-table th .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-bleu   { background: #5B7BB5; }
.dot-jaune  { background: #D9B440; }
.dot-violet { background: #A07AB5; }
.dot-rose   { background: #C2785B; }

.revenu-modal-foot {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 600px) {
  .revenu-modal-card { padding: 22px 18px; }
  .revenu-modal-head h3 { font-size: 22px; }
  .revenu-modal-toggle { width: 100%; display: flex; }
  .revenu-modal-toggle button { flex: 1; padding: 8px 10px; }
  .revenu-table { font-size: 12px; }
  .revenu-table th, .revenu-table td { padding: 8px 10px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* Tighter spacing for the hero on phones */
  .hero { padding-top: 32px; padding-bottom: 56px; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-copy .lead { font-size: 16px; }
  .hero-copy h1 .slogan { font-size: 14px; margin-top: 8px; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 14px 18px; }
  .hero-trust { gap: 12px; margin-top: 28px; padding-top: 24px; }
  .hero-trust .item { font-size: 13px; }

  /* Simulator card tighter on phones */
  .simulator { padding: 24px 20px; }
  .simulator::before { left: 20px; font-size: 10px; padding: 5px 12px; }
  .sim-head h3 { font-size: 22px; }
  .sim-mode-toggle button { padding: 7px 12px; font-size: 12px; }
  /* Wizard chips: keep 2 columns but slightly smaller text */
  .wizard-content .sim-chip { padding: 12px 12px; font-size: 13px; }
  .wizard-head h3 { font-size: 20px; }
  /* Process step number a bit smaller on phones */
  .proc-step .num { width: 56px; height: 56px; font-size: 22px; }
}

/* === Section heading === */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-head.center {
  display: block;
  text-align: center;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.sec-head h2 { margin-top: 18px; }
.sec-head h2 em.accent { font-style: normal; color: var(--gold); }
.sec-head .h-side { max-width: 460px; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* === SERVICES === */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.svc-grid.svc-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .svc-grid.svc-grid-3 { grid-template-columns: 1fr; }
}
.svc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--sage-tint);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
}
.svc-card h3 { font-size: 28px; }
.svc-card > p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.svc-aide {
  margin-top: auto;
  padding: 16px 18px;
  background: var(--cream-2);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-left: 4px solid var(--gold);
}
.svc-aide .k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  font-weight: 600;
}
.svc-aide .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--forest);
}
.svc-aide .v small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-mute);
  display: block;
  letter-spacing: 0;
  margin-top: 2px;
}

@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } }

/* === 6 ENGAGEMENTS === */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.eng-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: all .25s var(--ease);
  position: relative;
}
.eng-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.eng-card .num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--cream-2);
  letter-spacing: -0.04em;
  line-height: 1;
}
.eng-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.eng-card h3 { font-size: 22px; letter-spacing: -0.01em; max-width: 240px; }
.eng-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 900px) { .eng-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .eng-grid { grid-template-columns: 1fr; } }

/* === PROCESS === */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.proc-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sage), var(--pine));
  opacity: 0.4;
  border-radius: 2px;
  z-index: 0;
}
.proc-step {
  position: relative;
  z-index: 1;
  padding-right: 12px;
}
.proc-step .num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 22px;
  position: relative;
}
.proc-step:nth-child(1) .num,
.proc-step:nth-child(2) .num,
.proc-step:nth-child(3) .num,
.proc-step:nth-child(4) .num,
.proc-step:nth-child(5) .num { background: var(--forest); color: var(--gold); }
.proc-step h3 { font-size: 20px; letter-spacing: -0.01em; }
.proc-step p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }

@media (max-width: 1000px) {
  .proc-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .proc-grid::before { display: none; }
}
@media (max-width: 600px) { .proc-grid { grid-template-columns: 1fr; } }

/* === AIDES === */
.aide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aide-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: all .25s var(--ease);
}
.aide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.aide-card .ribbon {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--gold-tint);
  padding: 6px 12px;
  border-radius: 6px;
}
.aide-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--forest);
}
.aide-card .amt {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.aide-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 900px) { .aide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .aide-grid { grid-template-columns: 1fr; } }

/* === CHARTE === */
.charte-doc {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 80px);
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* === POURQUOI PRAIMY (4 inline-icon cards) === */
.v3-pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.v3-pourquoi-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.v3-pourquoi-card::before {
  content: "";
  position: absolute;
  top: -16px; right: -16px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(122, 154, 122, 0.14), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.v3-pourquoi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.v3-pourquoi-card:hover::before { opacity: 1; }

.v3-pourquoi-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}
.v3-pourquoi-icon svg { width: 28px; height: 28px; display: block; }
.v3-pourquoi-card h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0;
}
.v3-pourquoi-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .v3-pourquoi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .v3-pourquoi-grid { grid-template-columns: 1fr; gap: 14px; }
}
.charte-doc::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: 18px; bottom: 18px;
  border: 1px solid var(--sage);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
  opacity: 0.35;
}

/* === Charte head === */
.charte-head {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.charte-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.charte-meta .charte-meta-sep { color: var(--sage); }
.charte-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.charte-seal::before { content: "★"; color: var(--gold); }
.charte-head h2 {
  color: var(--forest);
  margin-top: 8px;
  font-size: clamp(42px, 5.5vw, 64px);
}
.charte-head h2 em.accent { color: var(--gold); font-style: italic; }
.charte-quote {
  margin: 28px auto 24px;
  max-width: 620px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--forest);
}
.charte-quote strong { font-weight: 600; font-style: normal; color: var(--forest); }
.charte-preamble {
  margin: 0 auto;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* === Charte articles === */
.charte-articles {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.charte-article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.charte-article:last-child { border-bottom: 0; padding-bottom: 0; }
.charte-article-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.charte-article-body { padding-top: 6px; }
.charte-article-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0 0 14px;
}
.charte-article-statement {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 12, "SOFT" 30;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.charte-article-clause {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
}
.clause-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  padding-top: 3px;
}
.clause-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 600px) {
  .charte-article { grid-template-columns: 56px 1fr; gap: 16px; }
  .charte-article-num { font-size: 36px; }
  .charte-article-clause { flex-direction: column; gap: 6px; }
}

/* === Charte footer === */
.charte-foot {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.charte-sign {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
}
.charte-sign .signature {
  display: flex; flex-direction: column; gap: 4px;
}
.charte-sign .signature-r { text-align: right; align-items: flex-end; }
.charte-sign .signature .name {
  font-family: "Caveat", "Brush Script MT", cursive;
  font-size: 38px;
  color: var(--forest);
  line-height: 1;
}
.charte-sign .signature .role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* Sage round stamp in center */
.charte-stamp {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transform: rotate(-8deg);
  background: rgba(194, 120, 91, 0.04);
}
.charte-stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}
.stamp-inner {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 100;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}
.stamp-inner span:first-child {
  font-size: 16px;
  letter-spacing: 0.05em;
}
.stamp-inner .stamp-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 4px;
  color: var(--gold-deep);
}

.charte-download { text-align: center; }
.charte-download .btn { color: var(--forest); border-color: var(--forest); }

@media (max-width: 700px) {
  .charte-sign { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .charte-sign .signature, .charte-sign .signature-r { align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  /* Charte tighter on phones */
  .charte-doc { padding: 32px 20px; }
  .charte-doc::before { top: 10px; left: 10px; right: 10px; bottom: 10px; }
  .charte-head h2 { font-size: clamp(28px, 8vw, 38px); }
  .charte-quote { font-size: 16px; margin: 22px auto 18px; }
  .charte-preamble { font-size: 14px; }
  .charte-meta { font-size: 10px; flex-wrap: wrap; justify-content: center; }
  .charte-article-statement { font-size: 15px; }
  .charte-article-clause { padding: 12px 14px; }
  .clause-text { font-size: 13px; }
  .charte-stamp { width: 78px; height: 78px; }
  .stamp-inner span:first-child { font-size: 13px; }
  .stamp-inner .stamp-sub { font-size: 7px; }
}

/* === Reseau on phones === */
@media (max-width: 480px) {
  .reseau-card { padding: 24px 20px; }
  .reseau-card h3 { font-size: 22px; }
  .reseau-cta { padding: 28px 20px; }
  .reseau-cta h3 { font-size: 22px; }
}

/* === FAQ on phones === */
@media (max-width: 480px) {
  .faq-q h4 { font-size: 16px; }
  .faq-plus { width: 30px; height: 30px; font-size: 17px; }
}

/* === Contact on phones === */
@media (max-width: 480px) {
  .contact-form { padding: 24px 20px; }
  .contact-form .row.two { grid-template-columns: 1fr; gap: 6px; }
  .contact-form .row.two > div + div { margin-top: 10px; }
  .sim-summary { padding: 18px 18px 20px; }
  .sim-summary-list li { font-size: 13px; }
  .sim-summary-result .amt { font-size: 18px; }
}

/* === Footer on phones === */
@media (max-width: 480px) {
  .footer-brand img { height: 44px; }
  .footer-bot { font-size: 11px; }
  .footer-bot .legal { gap: 14px; flex-wrap: wrap; }
}

/* === Section padding tighter on phones === */
@media (max-width: 480px) {
  section { padding: 56px 0; }
}

/* === RÉSEAU / FRANCHISE === */
.reseau-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 80px;
}
.reseau-card {
  position: relative;
  background: rgba(248, 245, 238, 0.04);
  border: 1px solid rgba(248, 245, 238, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.reseau-card:hover {
  background: rgba(248, 245, 238, 0.07);
  border-color: rgba(122, 154, 122, 0.5);
  transform: translateY(-3px);
}
.reseau-card-alt {
  background: rgba(194, 120, 91, 0.07);
  border-color: rgba(194, 120, 91, 0.25);
}
.reseau-card-alt:hover {
  background: rgba(194, 120, 91, 0.10);
  border-color: rgba(194, 120, 91, 0.5);
}
.reseau-card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-bright);
  background: rgba(122, 154, 122, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
}
.reseau-card-alt .reseau-card-tag {
  color: var(--gold);
  background: rgba(194, 120, 91, 0.18);
}
.reseau-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.reseau-card-alt .reseau-card-icon {
  background: var(--gold);
  color: var(--forest);
}
.reseau-card h3 {
  color: var(--cream);
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.015em;
}
.reseau-card-desc {
  color: rgba(248, 245, 238, 0.72);
  font-size: 15px;
  line-height: 1.6;
}
.reseau-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(248, 245, 238, 0.10);
  padding-top: 18px;
}
.reseau-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(248, 245, 238, 0.85);
}
.reseau-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sage-bright);
  font-weight: 600;
}
.reseau-card-alt .reseau-bullets li::before { color: var(--gold); }
.reseau-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .reseau-profiles { grid-template-columns: 1fr; }
}

/* What we bring grid */
.reseau-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 56px;
  border-top: 1px solid rgba(248, 245, 238, 0.10);
  margin-bottom: 80px;
}
.reseau-benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reseau-benefit .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.reseau-benefit h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.reseau-benefit p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(248, 245, 238, 0.65);
}

@media (max-width: 1000px) {
  .reseau-benefits { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 540px) {
  .reseau-benefits { grid-template-columns: 1fr; }
}

/* Final CTA banner */
.reseau-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px clamp(24px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(122,154,122,0.10), rgba(194,120,91,0.06));
  border: 1px solid rgba(248, 245, 238, 0.12);
  border-radius: var(--radius-lg);
}
.reseau-cta h3 {
  font-size: clamp(26px, 2.4vw, 32px);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.reseau-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-ghost.on-dark {
  color: var(--cream);
  border-color: rgba(248, 245, 238, 0.3);
}
.btn-ghost.on-dark:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

@media (max-width: 800px) {
  .reseau-cta { grid-template-columns: 1fr; }
  .reseau-cta-actions { justify-content: flex-start; }
}

/* On dark, override sec-head colors for this section */
.forest .sec-head h2 em.accent { color: var(--gold); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-form .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .row.two > div { display: flex; flex-direction: column; gap: 6px; }
.contact-form label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--cream);
  border: 1.5px solid var(--line);
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.18);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .submit { width: 100%; margin-top: 12px; }
.contact-form .submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--ink);
}
.contact-form .submit:disabled:hover { transform: none; }
.contact-form .small { font-size: 12px; color: var(--ink-mute); margin-top: 14px; line-height: 1.5; }
.contact-form .small a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--sage); }

/* === Consent checkbox === */
.contact-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin: 4px 0 16px;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.contact-consent:hover { border-color: var(--sage); }
.contact-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--forest);
  cursor: pointer;
}
.contact-consent-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.contact-consent-text a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  font-weight: 500;
}
.contact-consent-text a:hover { color: var(--gold-deep); }

/* === Simulation summary in contact form === */
.sim-summary {
  background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 100%);
  color: var(--cream);
  border-radius: 16px;
  padding: 22px 24px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  animation: stepIn .42s var(--ease);
}
.sim-summary::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 70%);
  pointer-events: none;
}
.sim-summary-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  position: relative;
}
.sim-summary-head span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.sim-summary-head .star { font-size: 14px; margin-right: 4px; }
.sim-summary-clear {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.10);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.sim-summary-clear:hover { background: rgba(250, 247, 242, 0.22); }

.sim-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.sim-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
}
.sim-summary-list .k {
  color: rgba(250, 247, 242, 0.6);
  font-weight: 500;
}
.sim-summary-list .v {
  font-weight: 600;
  text-align: right;
}
.sim-summary-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  position: relative;
}
.sim-summary-result .lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.55);
  margin-bottom: 4px;
}
.sim-summary-result .amt {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1.1;
}
.sim-summary-result .rac .amt { color: var(--cream); }

.contact-side h3 { font-size: 28px; }
.contact-side .lead { margin-top: 20px; }
.contact-side .info-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.contact-info {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.contact-info .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info .t { font-weight: 600; font-size: 13.5px; }
.contact-info .v { font-size: 15px; color: var(--forest); font-weight: 600; margin-top: 2px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* === FOOTER === */
.footer {
  background: var(--forest-dark);
  color: var(--cream);
  padding: clamp(56px, 6vw, 88px) 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
}
.footer-brand img { height: 52px; margin-bottom: 22px; }
.footer-brand p { color: rgba(250, 247, 242, 0.65); font-size: 14px; line-height: 1.55; max-width: 340px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(250, 247, 242, 0.75); transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(250, 247, 242, 0.5);
}
.footer-bot .legal { display: flex; gap: 20px; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  display: block;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-q h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
  color: var(--forest);
}
.faq-plus {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--forest);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.faq-item.is-open .faq-plus {
  background: var(--forest);
  color: var(--gold);
  border-color: var(--forest);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  padding-right: 56px;
  transition: max-height .35s var(--ease), padding-top .35s var(--ease);
}
.faq-item.is-open .faq-a {
  max-height: 280px;
  padding-top: 14px;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-a { padding-right: 20px; }
}

/* === Variant chip === */
.variant-chip {
  position: fixed;
  bottom: 16px; left: 16px;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px; font-weight: 500;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}
.variant-chip .muted { color: var(--ink-mute); margin-right: 4px; }
.variant-chip:hover { box-shadow: var(--shadow); }
