/**
 * GenevaTax Comparator — Phase 12 "Living Shapes" Design System
 * - Display Typography: Self-hosted Josefin Sans (200/300/400, latin + latin-ext, font-display: swap)
 *   for the brand, hero title, section titles, step titles, and CTA title.
 * - Body & UI Typography: Self-hosted Hanken Grotesk (400–800, latin + latin-ext, font-display: swap).
 * - Palette: Light & Dark mode tokens including the 4 gradient pairs (--g1a/--g1b .. --g4a/--g4b),
 *   ghost and grid colors, ICC Pine (#1D6B45) and IFD Bronze (#8A5A33).
 */

/* ==========================================================================
   1. Self-Hosted Fonts: Josefin Sans (Display) & Hanken Grotesk (Body/UI)
   ========================================================================== */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url('/fonts/josefin-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url('/fonts/josefin-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Design Tokens ("Living Shapes" Reference :root + Dark Mode Blocks)
   ========================================================================== */
:root {
  color-scheme: light dark;
  --font-display: 'Josefin Sans', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Phase 16 — Geneva Palette ("geneve" default, Light Mode) */
  --bg: #FAF8F3;
  --bg-alt: #F3EFE6;
  --bg-subtle: #F6F3EC;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-secondary: #2B2422;
  --muted: #594F4A;
  --ink-muted: #594F4A;
  --ink-subtle: #594F4A;
  --line: #E4DECFE6;
  --line-strong: #CEC5B4;
  --hairline: #E4DECF;
  --hairline-strong: #141414;

  /* Primary / ICC: Geneva Red #C8102E (WCAG AA 6.37:1 on white) */
  --pine: #C8102E;
  --icc: #C8102E;
  --accent-red: #E3172E;
  --pine-btn: #C8102E;
  --pine-hover: #A50D26;
  --pine-surface: #22080D;
  --pine-soft: #FDF0F2;
  --pine-tint: #FDF0F2;
  --pine-border: #F2B8C2;
  --pine-on-dark: #FFD6DC;

  /* Secondary / IFD: Deep Gold #8F6200 (WCAG AA 5.32:1 on white) */
  --bronze: #8F6200;
  --ifd: #8F6200;
  --bronze-hover: #704D00;
  --bronze-soft: #FBF5E6;
  --bronze-tint: #FBF5E6;
  --bronze-border: #E8CF96;
  --bronze-on-dark: #F5C542;

  /* Living Shapes Stage & 4 Gradient Pairs (g1..g4) + Ghost #E6E2DA & Grid #C9C2B4 */
  --hero-stage-bg: #F6F3EC;
  --g1a: #8E0B1F;
  --g1b: #E3172E;
  --g2a: #D7192D;
  --g2b: #F2652A;
  --g3a: #F0A800;
  --g3b: #FFD82E;
  --g4a: #141414;
  --g4b: #474747;
  --ghost: #E6E2DA;
  --ghost-stroke: #C9C2B4;
  --grid-line: #C9C2B4;

  /* Atmosphere & Shadows */
  --sky-top: #F2ECE1;
  --sky-bottom: #F6F3EC;
  --lake: #EDE5D8;
  --shore: #DFD5C5;
  --sun-haze: rgba(255, 250, 232, 0.82);
  --glint: rgba(255, 255, 255, 0.68);
  --header-glass: rgba(246, 243, 236, 0.86);
  --card-shadow: 0 18px 40px -22px rgba(20, 14, 14, 0.14);
  --card-shadow-open: 0 22px 46px -20px rgba(20, 14, 14, 0.22);
  --btn-shadow: 0 14px 28px -10px rgba(200, 16, 46, 0.34);

  --hero-band: #F6F3EC;

  /* Error & Focus */
  --error: #9E1B24;
  --error-bg: #FBEBEB;
  --focus-ring: #C8102E;

  /* Footer */
  --footer-bg: #141111;
  --footer-ink: #F6F3EC;
  --footer-muted: #C4BCB0;
  --footer-hairline: rgba(246, 243, 236, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120F10;
    --bg-alt: #1A1517;
    --bg-subtle: #1A1517;
    --surface: #211A1D;
    --ink: #F6F3EC;
    --ink-secondary: #DFD8CE;
    --muted: #B8AEA3;
    --ink-muted: #B8AEA3;
    --ink-subtle: #B8AEA3;
    --line: #342A2E;
    --line-strong: #483A3F;
    --hairline: #342A2E;
    --hairline-strong: #F6F3EC;

    --pine: #FF5C6C;
    --icc: #FF5C6C;
    --accent-red: #E3172E;
    --pine-btn: #C8102E;
    --pine-hover: #E3172E;
    --pine-surface: #241014;
    --pine-soft: rgba(255, 92, 108, 0.14);
    --pine-tint: rgba(255, 92, 108, 0.14);
    --pine-border: rgba(255, 92, 108, 0.36);

    --bronze: #F5C542;
    --ifd: #F5C542;
    --bronze-hover: #FFD859;
    --bronze-soft: rgba(245, 197, 66, 0.14);
    --bronze-tint: rgba(245, 197, 66, 0.14);
    --bronze-border: rgba(245, 197, 66, 0.36);

    --hero-stage-bg: #171214;
    --g1a: #8E0B1F;
    --g1b: #E3172E;
    --g2a: #D7192D;
    --g2b: #F2652A;
    --g3a: #F0A800;
    --g3b: #FFD82E;
    --g4a: #141414;
    --g4b: #474747;
    --ghost: rgba(246, 243, 236, 0.05);
    --ghost-stroke: rgba(246, 243, 236, 0.12);
    --grid-line: rgba(246, 243, 236, 0.085);

    --header-glass: rgba(18, 15, 16, 0.86);
    --card-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
    --card-shadow-open: 0 22px 46px -20px rgba(0, 0, 0, 0.7);
    --hero-band: #171214;
    --footer-bg: #0B090A;
  }
}

:root[data-theme="dark"] {
  --bg: #120F10;
  --bg-alt: #1A1517;
  --bg-subtle: #1A1517;
  --surface: #211A1D;
  --ink: #F6F3EC;
  --ink-secondary: #DFD8CE;
  --muted: #B8AEA3;
  --ink-muted: #B8AEA3;
  --ink-subtle: #B8AEA3;
  --line: #342A2E;
  --line-strong: #483A3F;
  --hairline: #342A2E;
  --hairline-strong: #F6F3EC;

  --pine: #FF5C6C;
  --icc: #FF5C6C;
  --accent-red: #E3172E;
  --pine-btn: #C8102E;
  --pine-hover: #E3172E;
  --pine-surface: #241014;
  --pine-soft: rgba(255, 92, 108, 0.14);
  --pine-tint: rgba(255, 92, 108, 0.14);
  --pine-border: rgba(255, 92, 108, 0.36);

  --bronze: #F5C542;
  --ifd: #F5C542;
  --bronze-hover: #FFD859;
  --bronze-soft: rgba(245, 197, 66, 0.14);
  --bronze-tint: rgba(245, 197, 66, 0.14);
  --bronze-border: rgba(245, 197, 66, 0.36);

  --hero-stage-bg: #171214;
  --g1a: #8E0B1F;
  --g1b: #E3172E;
  --g2a: #D7192D;
  --g2b: #F2652A;
  --g3a: #F0A800;
  --g3b: #FFD82E;
  --g4a: #141414;
  --g4b: #474747;
  --ghost: rgba(246, 243, 236, 0.05);
  --ghost-stroke: rgba(246, 243, 236, 0.12);
  --grid-line: rgba(246, 243, 236, 0.085);

  --header-glass: rgba(18, 15, 16, 0.86);
  --card-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
  --card-shadow-open: 0 22px 46px -20px rgba(0, 0, 0, 0.7);
  --hero-band: #171214;
  --footer-bg: #0B090A;
}

/* Palette Switch: "vert" (Original Pine #1D6B45 & Bronze #8A5A33) */
:root[data-palette="vert"] {
  --bg: #F5F7F4;
  --bg-alt: #ECF1ED;
  --bg-subtle: #EFF4F0;
  --surface: #FFFFFF;
  --ink: #12291E;
  --ink-secondary: #243D30;
  --muted: #4B5E54;
  --ink-muted: #4B5E54;
  --ink-subtle: #4B5E54;
  --line: #DCE6DE;
  --line-strong: #C5D5C9;
  --hairline: #DCE6DE;
  --hairline-strong: #12291E;

  --pine: #1D6B45;
  --icc: #1D6B45;
  --accent-red: #1D6B45;
  --pine-btn: #1D6B45;
  --pine-hover: #155335;
  --pine-surface: #12291E;
  --pine-soft: #E3F0E7;
  --pine-tint: #E3F0E7;
  --pine-border: #B9D8C4;
  --pine-on-dark: #E3F0E7;

  --bronze: #8A5A33;
  --ifd: #8A5A33;
  --bronze-hover: #6E4627;
  --bronze-soft: #F5ECE2;
  --bronze-tint: #F5ECE2;
  --bronze-border: #DEC5AD;
  --bronze-on-dark: #F5ECE2;

  --hero-stage-bg: #ECF2ED;
  --g1a: #145335;
  --g1b: #287D50;
  --g2a: #0E4B44;
  --g2b: #21738E;
  --g3a: #744622;
  --g3b: #AD713E;
  --g4a: #1A6347;
  --g4b: #3E986B;
  --ghost: rgba(18, 41, 30, 0.05);
  --ghost-stroke: rgba(18, 41, 30, 0.11);
  --grid-line: rgba(18, 41, 30, 0.085);

  --header-glass: rgba(245, 247, 244, 0.84);
  --card-shadow: 0 18px 40px -22px rgba(18, 41, 30, 0.14);
  --card-shadow-open: 0 22px 46px -20px rgba(18, 41, 30, 0.2);
  --btn-shadow: 0 14px 28px -10px rgba(29, 107, 69, 0.34);
  --hero-band: #ECF2ED;
  --focus-ring: #1D6B45;
  --footer-bg: #10231A;
  --footer-ink: #F2F6F1;
  --footer-muted: #B6C7BD;
  --footer-hairline: rgba(242, 246, 241, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root[data-palette="vert"]:not([data-theme="light"]) {
    --bg: #0C1611;
    --bg-alt: #111F18;
    --bg-subtle: #111F18;
    --surface: #15261E;
    --ink: #EDF4EF;
    --ink-secondary: #CFE0D5;
    --muted: #9AB0A3;
    --ink-muted: #9AB0A3;
    --ink-subtle: #9AB0A3;
    --line: #22382C;
    --line-strong: #2E4B3C;
    --hairline: #22382C;
    --hairline-strong: #EDF4EF;

    --pine: #38A86D;
    --icc: #38A86D;
    --pine-btn: #257D4F;
    --pine-hover: #2E945E;
    --pine-surface: #0E1D15;
    --pine-soft: rgba(56, 168, 109, 0.14);
    --pine-tint: rgba(56, 168, 109, 0.14);
    --pine-border: rgba(56, 168, 109, 0.34);

    --bronze: #D4955E;
    --ifd: #D4955E;
    --bronze-hover: #E0A46F;
    --bronze-soft: rgba(212, 149, 94, 0.14);
    --bronze-tint: rgba(212, 149, 94, 0.14);
    --bronze-border: rgba(212, 149, 94, 0.34);

    --hero-stage-bg: #0F1D16;
    --g1a: #124C30;
    --g1b: #24764B;
    --g2a: #0C403A;
    --g2b: #1C6680;
    --g3a: #683E1E;
    --g3b: #9E6636;
    --g4a: #175940;
    --g4b: #368B61;
    --ghost: rgba(237, 244, 239, 0.045);
    --ghost-stroke: rgba(237, 244, 239, 0.11);
    --grid-line: rgba(237, 244, 239, 0.075);

    --header-glass: rgba(12, 22, 17, 0.84);
    --hero-band: #0F1D16;
    --footer-bg: #08100C;
  }
}

:root[data-palette="vert"][data-theme="dark"] {
  --bg: #0C1611;
  --bg-alt: #111F18;
  --bg-subtle: #111F18;
  --surface: #15261E;
  --ink: #EDF4EF;
  --ink-secondary: #CFE0D5;
  --muted: #9AB0A3;
  --ink-muted: #9AB0A3;
  --ink-subtle: #9AB0A3;
  --line: #22382C;
  --line-strong: #2E4B3C;
  --hairline: #22382C;
  --hairline-strong: #EDF4EF;

  --pine: #38A86D;
  --icc: #38A86D;
  --pine-btn: #257D4F;
  --pine-hover: #2E945E;
  --pine-surface: #0E1D15;
  --pine-soft: rgba(56, 168, 109, 0.14);
  --pine-tint: rgba(56, 168, 109, 0.14);
  --pine-border: rgba(56, 168, 109, 0.34);

  --bronze: #D4955E;
  --ifd: #D4955E;
  --bronze-hover: #E0A46F;
  --bronze-soft: rgba(212, 149, 94, 0.14);
  --bronze-tint: rgba(212, 149, 94, 0.14);
  --bronze-border: rgba(212, 149, 94, 0.34);

  --hero-stage-bg: #0F1D16;
  --g1a: #124C30;
  --g1b: #24764B;
  --g2a: #0C403A;
  --g2b: #1C6680;
  --g3a: #683E1E;
  --g3b: #9E6636;
  --g4a: #175940;
  --g4b: #368B61;
  --ghost: rgba(237, 244, 239, 0.045);
  --ghost-stroke: rgba(237, 244, 239, 0.11);
  --grid-line: rgba(237, 244, 239, 0.075);

  --header-glass: rgba(12, 22, 17, 0.84);
  --hero-band: #0F1D16;
  --footer-bg: #08100C;
}

/* ==========================================================================
   3. Base Reset & Typography Foundations (Body: 17px desktop / 16px mobile)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light dark;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px desktop */
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

@media (max-width: 768px) {
  body {
    font-size: 1rem; /* 16px mobile */
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
  border-bottom-color: var(--hairline) !important;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--pine);
  color: #FFFFFF;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Tabular Numbers Everywhere for Amounts */
.num,
.total-amount,
.live-estimate-val,
.top3-big,
.deduction-cap-val,
.guide-cap-val,
.step-counter-small,
[data-param] {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   4. Global Header & Full-Screen Mobile Menu (Phase 8)
   - Sticky, solid background, hairline appears after 8px of scroll
   - Wordmark left, 4 text links with retracting underline-on-hover, 1 pine button
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.site-header.has-line,
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: var(--pine);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: right center;
}

.nav-link[aria-current="page"]:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons (50px high, 42px small, radius 8px, hover translateY(-2px), no shadows except light button hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.55rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), background-color 200ms ease, color 200ms ease, box-shadow 220ms ease;
  text-align: center;
  max-width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--pine);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--pine-hover);
}

.btn-light {
  background-color: #F6F5F0;
  color: #10291F;
}

.btn-light:hover {
  background-color: #FFFFFF;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.28);
}

.btn-sm,
.btn-header {
  min-height: 42px;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

/* Text Links: Underline that retracts on hover */
.text-link,
.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.2rem 0;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pine);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.text-link::after,
.btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}

.text-link:hover::after,
.text-link:focus-visible::after,
.btn-link:hover::after,
.btn-link:focus-visible::after {
  transform: scaleX(0);
  transform-origin: right center;
}

.text-link-light,
.text-link.is-on-dark {
  color: #F6F5F0;
}

.btn-secondary {
  background-color: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background-color: var(--pine-soft);
  border-color: var(--pine);
}

/* Mobile Menu Button ("Menu" / "Fermer" plain word, no icon) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background-color: var(--bg);
  color: var(--ink);
  padding: 6.5rem 2rem 3rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-menu-overlay.is-open {
  display: flex;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

/* Mobile menu links: normal sans links, weight 600, 22px, no italic */
.mobile-menu-link {
  font-family: var(--font-sans);
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.mobile-menu-link[aria-current="page"] {
  color: var(--pine);
}

.mobile-menu-footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
}

@media (max-width: 980px) {
  .site-nav,
  .btn-header {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
  }
  .site-header-inner {
    padding: 0 1.25rem;
    height: 64px;
  }
}

/* ==========================================================================
   5. Progressive Photography & Rectangular Inner-Page Frames (12px radius)
   ========================================================================== */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #24332C;
  background-size: cover;
  background-position: center;
}

.photo-frame picture {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* ==========================================================================
   6. Global Footer — Calm Dark Pine
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--footer-bg);
  color: var(--footer-ink);
  padding: 4.5rem 2rem 3rem;
}

.site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-hairline);
}

.footer-brand .brand-wordmark {
  font-size: 1.25rem; /* 20px */
  color: var(--footer-ink);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem; /* 14px */
  color: var(--footer-muted);
  max-width: 38ch;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-title {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  letter-spacing: 0;
  color: var(--footer-muted);
  margin: 0 0 0.25rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--footer-ink);
  opacity: 0.9;
  transition: opacity 160ms ease;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem; /* 14px */
  color: var(--footer-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.75rem;
}

.footer-legal-links a:hover {
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3.5rem 1.25rem 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-nav-cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ==========================================================================
   7. Layout Containers, Sections, Typography Hierarchy & Scroll-Reveal
   - H1: 40px desktop / 30px mobile, weight 700, line-height 1.2, letter-spacing 0
   - H2: 28px desktop / 24px mobile, weight 700, line-height 1.25, letter-spacing 0
   - H3: 20px desktop / 18px mobile, weight 600, line-height 1.3, letter-spacing 0
   - Body: 17px desktop / 16px mobile, line-height 1.6, max-width ~65ch
   - Small/helper: 14px (never < 13px), muted color, normal letter-spacing
   ========================================================================== */
.site-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .site-container {
    padding: 0 1.25rem;
  }
}

.site-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.site-section.is-alt,
.site-section.is-alt-bg {
  background-color: var(--bg-alt);
}

@media (max-width: 768px) {
  .site-section {
    padding: 3.75rem 0;
  }
}

.section-header {
  max-width: 65ch;
  margin-bottom: 3rem;
}

.section-header.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.is-centered .section-eyebrow {
  justify-content: center;
}

.section-header.is-centered .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Normal small line in sentence case, muted color, normal letter-spacing */
.section-eyebrow,
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Section title (H2): 28px desktop / 24px mobile, weight 800, letter-spacing -0.01em */
.section-title,
.guide-theme-title,
.faq-group-title,
.legal-section h2,
.results-section-label,
.cta-band-title,
.page-hero-title,
.welcome-headline,
.q-title {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-title,
.guide-theme-title,
.faq-group-title,
.legal-section h2,
.results-section-label,
.cta-band-title {
  font-size: 1.875rem; /* 30px desktop */
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .section-title,
  .guide-theme-title,
  .faq-group-title,
  .legal-section h2,
  .results-section-label,
  .cta-band-title {
    font-size: 1.5rem; /* 24px mobile */
  }
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
}

@media (max-width: 768px) {
  .section-lead {
    font-size: 1rem;
  }
}

/* Content is ALWAYS visible by default (never stuck at opacity 0 in full-page captures or with JS disabled) */
.reveal,
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.reveal.is-inview,
.reveal.is-visible,
.reveal-on-scroll.is-inview,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   8. Home Page (/) — Signature Living Lake Hero, Slider, 3 Steps, Analysis Panel
   ========================================================================== */
.lake-hero {
  position: relative;
  min-height: 540px;
  padding: 5.5rem 0 6.5rem;
  background-color: var(--hero-band);
  color: #F6F5F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.lake-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.lake-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.lake-hero-content,
.lake-hero-copy {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lake-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.015em;
  color: #F6F5F0;
  margin: 0 0 1.35rem;
}

.hero-rise-wrap {
  display: block;
}

.hero-line,
.hero-rise-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: heroLineRise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-line-1 {
  animation-delay: 0.04s;
}

.hero-line-2,
.hero-rise-line.is-line-2 {
  animation-delay: 0.18s;
  color: #CFE6DC;
}

.lake-hero-lead,
.hero-rise-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(246, 245, 240, 0.88);
  max-width: 54ch;
  margin: 0 0 2.25rem;
  opacity: 0;
  transform: translateY(14px);
  animation: heroLineRise 0.9s cubic-bezier(.2,.7,.2,1) 0.3s forwards;
}

.lake-hero-actions,
.hero-rise-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  animation: heroLineRise 0.9s cubic-bezier(.2,.7,.2,1) 0.42s forwards;
}

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

@media (max-width: 720px) {
  .lake-hero {
    min-height: 460px;
    padding: 3.75rem 0 4.5rem;
  }
  .lake-hero-content,
  .lake-hero-copy {
    max-width: 82%;
  }
  .lake-hero-lead {
    font-size: 1rem;
  }
}

/* Numbered Lists (01 / 02 / 03): small and simple, same font, weight 600, accent color, same size as item title */
.editorial-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.editorial-col {
  padding: 2.25rem 2.25rem 2.25rem 0;
  border-right: 1px solid var(--hairline);
}

.editorial-col:nth-child(2) {
  padding-left: 2.25rem;
}

.editorial-col:last-child {
  padding-left: 2.25rem;
  padding-right: 0;
  border-right: none;
}

.editorial-num,
.welcome-block-num,
.advisor-step-num {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 600;
  color: var(--pine);
  margin-right: 0.35rem;
}

/* Sub-title (H3): 20px desktop / 18px mobile, weight 600 */
.editorial-col-title,
.deduction-item-title,
.guide-item-title,
.welcome-block-title,
.credit-item-title,
.tips-title,
.live-estimate-title {
  font-family: var(--font-sans);
  font-size: 1.25rem; /* 20px desktop */
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .editorial-col-title,
  .deduction-item-title,
  .guide-item-title,
  .welcome-block-title,
  .credit-item-title,
  .tips-title,
  .live-estimate-title {
    font-size: 1.125rem; /* 18px mobile */
  }
}

.editorial-col-text {
  font-size: 1.0625rem; /* 17px desktop */
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  max-width: 65ch;
}

@media (max-width: 768px) {
  .editorial-col-text {
    font-size: 1rem; /* 16px mobile */
  }
}

@media (max-width: 900px) {
  .editorial-3col {
    grid-template-columns: 1fr;
  }
  .editorial-col,
  .editorial-col:nth-child(2),
  .editorial-col:last-child {
    padding: 1.75rem 0;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .editorial-col:last-child {
    border-bottom: none;
  }
}

/* "Les déductions les plus souvent oubliées" — 6-Item Grid */
.deductions-6grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}

.deduction-item {
  padding: 2.25rem 2rem 2.25rem 0;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.deduction-item:nth-child(3n + 2) {
  padding-left: 2rem;
}

.deduction-item:nth-child(3n) {
  padding-left: 2rem;
  padding-right: 0;
  border-right: none;
}

.deduction-item-desc {
  font-size: 1.0625rem; /* 17px desktop */
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 65ch;
}

@media (max-width: 768px) {
  .deduction-item-desc {
    font-size: 1rem; /* 16px mobile */
  }
}

.deduction-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.deduction-cap-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.deduction-cap-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.deduction-cap-val {
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  line-height: 1.3;
}

.deduction-cap-val.icc {
  color: var(--pine);
}

.deduction-cap-val.ifd {
  color: var(--bronze);
}

.section-footer-link {
  margin-top: 2.5rem;
}

@media (max-width: 1024px) {
  .deductions-6grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deduction-item,
  .deduction-item:nth-child(3n + 2),
  .deduction-item:nth-child(3n) {
    padding: 1.85rem 1.5rem 1.85rem 0;
    border-right: 1px solid var(--hairline);
  }
  .deduction-item:nth-child(2n) {
    padding-left: 1.5rem;
    padding-right: 0;
    border-right: none;
  }
}

@media (max-width: 680px) {
  .deductions-6grid {
    grid-template-columns: 1fr;
  }
  .deduction-item,
  .deduction-item:nth-child(2n),
  .deduction-item:nth-child(3n + 2),
  .deduction-item:nth-child(3n) {
    padding: 1.65rem 0;
    border-right: none;
  }
}

/* Split Section (Permis B on Home & Inner Pages) */
.split-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-feature-media .photo-frame {
  aspect-ratio: 16 / 10;
  width: 100%;
}

.split-feature-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.split-feature-body p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 65ch;
}

.split-feature-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  margin: 0.35rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.split-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.split-meta-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.split-meta-val {
  font-family: var(--font-sans);
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

@media (max-width: 960px) {
  .split-feature {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* Accessible FAQ Accordion (Home Preview & /questions-frequentes) */
.faq-list {
  border-top: 1px solid var(--hairline);
  max-width: 920px;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-q-heading {
  margin: 0;
  font-size: 1rem;
}

/* H3 size: 20px desktop / 18px mobile, weight 600 */
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.25rem; /* 20px desktop */
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 768px) {
  .faq-trigger {
    font-size: 1.125rem; /* 18px mobile */
  }
}

.faq-trigger:hover {
  color: var(--pine);
}

.faq-indicator {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine);
  flex-shrink: 0;
  line-height: 1;
}

.faq-panel {
  padding: 0 0 1.5rem;
  max-width: 65ch;
  color: var(--ink-muted);
  font-size: 1.0625rem; /* 17px desktop */
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-panel {
    font-size: 1rem; /* 16px mobile */
  }
}

.faq-panel p {
  margin: 0 0 0.75rem;
}

.faq-panel p:last-child {
  margin-bottom: 0;
}

/* Final CTA Photo Band */
.cta-band {
  position: relative;
  padding: 5.5rem 2rem;
  color: #FFFFFF;
  overflow: hidden;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-band-media .photo-frame {
  width: 100%;
  height: 100%;
}

.cta-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 31, 25, 0.88) 0%, rgba(13, 31, 25, 0.72) 100%);
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-band-title {
  color: #FFFFFF;
  margin: 0;
  max-width: 32ch;
}

.cta-band-sub {
  font-size: 1.0625rem; /* 17px */
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin: 0;
}

.cta-band-content .btn-primary {
  background-color: #FFFFFF;
  color: #121715;
  align-self: flex-start;
}

.cta-band-content .btn-primary:hover {
  background-color: #EFECE4;
}

/* ==========================================================================
   9. Inner Pages (/deductions, /permis-b, /questions-frequentes, /rendez-vous, /confidentialite, /credits)
   ========================================================================== */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--hairline);
}

/* Page title (H1): 40px desktop / 30px mobile, weight 700, line-height 1.2, letter-spacing 0 */
.page-hero-title {
  font-family: var(--font-sans);
  font-size: 2.5rem; /* 40px desktop */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 30ch;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 1.875rem; /* 30px mobile */
  }
}

.page-hero-lead {
  font-size: 1.0625rem; /* 17px desktop */
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 65ch;
  margin: 0;
}

@media (max-width: 768px) {
  .page-hero-lead {
    font-size: 1rem; /* 16px mobile */
  }
}

/* /deductions Sticky In-Page Guide Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  padding: 3.5rem 0 5.5rem;
}

.guide-side-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.guide-side-title {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin: 0 0 0.65rem;
  padding-top: 1rem;
}

.guide-nav-link {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 160ms ease;
}

.guide-nav-link:hover,
.guide-nav-link.is-active {
  color: var(--pine);
  font-weight: 600;
}

.guide-theme {
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 100px;
}

.guide-theme:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-theme-header {
  margin-bottom: 1.75rem;
}

.guide-theme-lead {
  color: var(--ink-muted);
  margin: 0;
  max-width: 65ch;
}

.guide-cards {
  border-top: 1px solid var(--hairline);
}

.guide-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.guide-item-desc {
  margin: 0 0 0.5rem;
  color: var(--ink-muted);
  font-size: 1.0625rem; /* 17px desktop */
  max-width: 65ch;
}

@media (max-width: 768px) {
  .guide-item-desc {
    font-size: 1rem; /* 16px mobile */
  }
}

.guide-item-cond {
  margin: 0;
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  max-width: 65ch;
}

.guide-item-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--hairline);
}

.guide-cap-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.guide-cap-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.guide-cap-val {
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  line-height: 1.3;
}

.guide-cap-val.icc {
  color: var(--pine);
}

.guide-cap-val.ifd {
  color: var(--bronze);
}

.guide-theme-cta {
  margin-top: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.guide-theme-cta p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 65ch;
}

@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.5rem 0 4rem;
  }
  .guide-side-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 0.85rem;
  }
  .guide-side-title {
    width: 100%;
    padding-top: 0.5rem;
    margin-bottom: 0.25rem;
  }
  .guide-nav-link {
    border-bottom: none;
    padding: 0.25rem 0;
  }
  .guide-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .guide-item-caps {
    padding-left: 0;
    padding-top: 1rem;
    border-left: none;
    border-top: 1px solid var(--hairline);
  }
}

/* FAQ Theme Groupings on /questions-frequentes */
.faq-group {
  margin-bottom: 3.5rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   10. Comparator (/comparateur) — Open Layout & Split Intro
   ========================================================================== */
.app-shell {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

@media (max-width: 768px) {
  .app-shell {
    padding: 1.25rem 1.25rem 6rem;
  }
}

/* Comparator Adaptive Photo Banner */
.comp-photo-banner {
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.comp-photo-banner .photo-frame {
  height: 160px;
  width: 100%;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.comp-photo-banner.is-narrow .photo-frame {
  height: 104px;
}

/* Progress Bar: ONLY the 3-block progress bar + small "1 / 8" counter */
.progress-bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.progress-nav {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.progress-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.progress-step-top {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--ink-muted);
}

.progress-step.is-active .progress-step-top,
.progress-step.is-complete .progress-step-top {
  color: var(--ink);
  font-weight: 600;
}

.progress-num {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 600;
  color: var(--pine);
}

.progress-track {
  height: 2px;
  background-color: var(--hairline);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--pine);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-counter-small {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-bottom: 0.15rem;
}

@media (max-width: 680px) {
  .progress-nav {
    gap: 0.65rem;
  }
  .progress-label {
    font-size: 0.8125rem; /* 13px minimum */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Workspace Grid: 7 Cols Left (Open Layout) + 5 Cols Right (Separated by Vertical Hairline) */
.workspace-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3.5rem;
  align-items: start;
}

.workspace-grid.is-results,
.workspace-grid.is-intro {
  grid-template-columns: 1fr;
}

.question-panel {
  min-width: 0;
}

.side-panel {
  min-width: 0;
  padding-left: 2.5rem;
  border-left: 1px solid var(--hairline);
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .side-panel {
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 1px solid var(--hairline);
    position: static;
  }
}

/* Comparator Split-Layout Intro Screen */
.comp-intro-split {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 3.75rem;
  align-items: stretch;
  padding: 0.75rem 0 1.75rem;
}

.comp-intro-photo {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.comp-intro-photo .photo-frame {
  flex: 1;
  width: 100%;
  min-height: 440px;
}

.comp-intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.welcome-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

/* Page title (H1): 40px desktop / 30px mobile, weight 700, line-height 1.2, letter-spacing 0 */
.welcome-headline {
  font-family: var(--font-sans);
  font-size: 2.5rem; /* 40px desktop */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .welcome-headline {
    font-size: 1.875rem; /* 30px mobile */
  }
}

.welcome-lead {
  font-size: 1.0625rem; /* 17px desktop */
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  max-width: 60ch;
}

@media (max-width: 768px) {
  .welcome-lead {
    font-size: 1rem; /* 16px mobile */
  }
}

.welcome-blocks {
  border-top: 1px solid var(--hairline);
  margin-bottom: 2rem;
}

.welcome-block-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.welcome-block-desc {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin: 0;
  max-width: 60ch;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .comp-intro-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .comp-intro-photo,
  .comp-intro-photo .photo-frame {
    min-height: 240px;
    max-height: 300px;
  }
}

/* Question Step Headers & Blocks: Question title 28px desktop / 24px mobile, weight 700 */
.step-header-row {
  margin-bottom: 1.75rem;
}

.q-title {
  font-family: var(--font-sans);
  font-size: 1.75rem; /* 28px desktop */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .q-title {
    font-size: 1.5rem; /* 24px mobile */
  }
}

.q-lead {
  font-size: 1.0625rem; /* 17px desktop */
  color: var(--ink-muted);
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 768px) {
  .q-lead {
    font-size: 1rem; /* 16px mobile */
  }
}

.q-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--hairline);
}

.q-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.q-block-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.q-hint {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin: 0.45rem 0 0;
}

.q-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  padding: 1.25rem 0;
}

.q-row-grid > .q-block {
  border-top: none;
  padding: 0;
}

.q-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 680px) {
  .q-row-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Answer Cards: Big answer cards (min 92px high) with clear selected state and subtle press feedback (scale(0.98)) */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.9rem;
}

.chip-grid-num {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

.chip {
  position: relative;
  min-height: 92px;
  padding: 1rem 1.2rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 140ms cubic-bezier(.2,.7,.2,1);
}

.chip.chip-num {
  min-height: 58px;
  align-items: center;
  text-align: center;
  padding: 0.65rem 0.25rem;
}

.chip:hover {
  border-color: var(--pine);
}

.chip:active {
  transform: scale(0.98);
}

.chip[aria-pressed="true"] {
  border: 2px solid var(--pine);
  padding: calc(1rem - 1px) calc(1.2rem - 1px);
  background-color: var(--pine-tint);
}

.chip.chip-num[aria-pressed="true"] {
  padding: calc(0.65rem - 1px) calc(0.25rem - 1px);
}

.chip-key-hint {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.chip[aria-pressed="true"] .chip-key-hint {
  border-color: var(--pine);
  background-color: var(--pine);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .chip-key-hint {
    display: none;
  }
}

.chip-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.chip[aria-pressed="true"] .chip-title {
  font-weight: 700;
  color: var(--pine);
}

.chip-sub {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* Numeric & Text Inputs */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.age-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.85rem;
}

.field-item {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.input-group {
  display: flex;
  align-items: stretch;
  min-height: 54px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.input-group:focus-within {
  border: 2px solid var(--pine);
}

.input-group.has-error {
  border-color: var(--error);
}

.input-group input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 1.0625rem; /* 17px */
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.input-group input:focus {
  outline: none;
}

.input-unit {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-style: normal;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--ink-muted);
  border-left: 1px solid var(--hairline);
  background-color: rgba(0, 0, 0, 0.015);
  white-space: nowrap;
}

.annual-helper {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--pine);
  margin: 0.35rem 0 0;
  min-height: 1.25em;
}

.field-error {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--error);
  background-color: var(--error-bg);
  border-left: 2px solid var(--error);
}

.example-bar {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
}

/* Action Bar ("Retour" hidden on Q1, "Continuer" primary pine button) */
.action-bar {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ==========================================================================
   11. Live Estimate (Top of Right Column, 40px+ Tabular Figures) & "Bon à savoir"
   ========================================================================== */
.live-estimate-box {
  background-color: var(--pine-surface);
  color: #F6F5F0;
  padding: 1.5rem 1.65rem;
  border-top: 2px solid var(--pine);
}

.live-estimate-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(246, 245, 240, 0.18);
}

.live-estimate-title {
  color: #F6F5F0;
  margin: 0;
}

.live-estimate-sub {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pine-on-dark);
}

.live-estimate-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.live-estimate-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.live-estimate-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(246, 245, 240, 0.84);
}

.live-estimate-val {
  font-size: 2.5rem; /* 40px+ */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  transition: color 240ms ease, transform 240ms ease;
}

.live-estimate-val.icc {
  color: #FFFFFF;
}

.live-estimate-val.ifd {
  color: var(--bronze-on-dark);
}

.live-estimate-val.is-highlighting {
  color: var(--pine-on-dark);
}

/* Open "Bon à savoir" Side Column */
.tips-box {
  border: none;
  background: transparent;
}

.tips-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.tips-summary::-webkit-details-marker {
  display: none;
}

.tips-title {
  margin: 0;
}

.tips-body {
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tips-prose p {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.tips-prose p:last-child {
  margin-bottom: 0;
}

.amounts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.amounts-table th {
  text-align: left;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-muted);
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--hairline);
}

.amounts-table th.col-icc,
.amounts-table th.col-ifd {
  text-align: right;
}

.amounts-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.amounts-table td.num {
  text-align: right;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  padding-left: 0.75rem;
}

.amounts-table td.icc {
  color: var(--pine);
}

.amounts-table td.ifd {
  color: var(--bronze);
}

.tip-callout {
  padding-left: 0.9rem;
  border-left: 2px solid var(--pine);
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
}

.tips-footnote {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin: 0;
}

/* Mobile Sticky Bottom Live Estimate Bar in Deep Pine */
.mobile-live-bar {
  display: none;
}

@media (max-width: 960px) {
  .side-panel .live-estimate-box {
    display: none;
  }
  .mobile-live-bar:not([hidden]) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    background-color: var(--pine-surface);
    color: #FFFFFF;
    border-top: 2px solid var(--pine-on-dark);
  }
  .mobile-live-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
    cursor: pointer;
  }
  .mobile-live-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem; /* 14px */
  }
  .mobile-live-summary strong.icc {
    color: #FFFFFF;
    font-size: 1rem;
  }
  .mobile-live-summary strong.ifd {
    color: var(--bronze-on-dark);
    font-size: 1rem;
  }
  .mobile-live-action {
    font-size: 0.875rem; /* 14px */
    text-decoration: underline;
    color: var(--pine-on-dark);
  }
  .mobile-live-details {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem; /* 14px */
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ==========================================================================
   12. Results Screen — Hero Totals (48px+), Top 3 ("1.", "2.", "3."), Statement Table
   ========================================================================== */
.results-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.25rem;
}

.badge-example {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--bronze);
  color: var(--bronze);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
}

/* Hero Totals Side by Side (48px+ on desktop) */
.totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 3rem;
}

.total-card {
  padding: 2.25rem 2.25rem 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.total-card.icc {
  border-right: 1px solid var(--hairline);
}

.total-card.ifd {
  padding-left: 2.25rem;
  padding-right: 0;
}

.total-label {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  letter-spacing: 0;
}

.total-card.icc .total-label {
  color: var(--pine);
}

.total-card.ifd .total-label {
  color: var(--bronze);
}

.total-amount {
  font-size: 3.25rem; /* 52px desktop (48px+) */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  position: relative;
}

@media (max-width: 768px) {
  .total-amount {
    font-size: 2.5rem; /* 40px mobile */
  }
}

.total-card.icc .total-amount {
  color: var(--pine);
}

.total-card.ifd .total-amount {
  color: var(--bronze);
}

.total-amount.is-counting {
  color: transparent !important;
}

.total-amount.is-counting::after {
  content: attr(data-countup);
  position: absolute;
  left: 0;
  top: 0;
}

.total-card.icc .total-amount.is-counting::after {
  color: var(--pine);
}

.total-card.ifd .total-amount.is-counting::after {
  color: var(--bronze);
}

.total-explain {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin: 0.15rem 0 0;
  max-width: 48ch;
}

@media (max-width: 768px) {
  .totals-grid {
    grid-template-columns: 1fr;
  }
  .total-card.icc {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 1.75rem 0;
  }
  .total-card.ifd {
    padding: 1.75rem 0;
  }
}

/* Top 3 Deductions: Simple "1.", "2.", "3." next to deduction name; AMOUNT stays visual priority */
.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 3rem;
}

.top3-card {
  padding: 1.85rem 1.85rem 1.85rem 0;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.top3-card:nth-child(2) {
  padding-left: 1.85rem;
}

.top3-card:last-child {
  padding-left: 1.85rem;
  padding-right: 0;
  border-right: none;
}

.top3-header {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.25rem; /* 20px desktop (H3) */
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .top3-header {
    font-size: 1.125rem; /* 18px mobile */
  }
}

.top3-rank {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 600;
  color: var(--pine);
}

.top3-name {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 600;
  color: var(--ink);
}

.top3-big {
  font-size: 2.5rem; /* 40px+ visual priority */
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

@media (max-width: 768px) {
  .top3-big {
    font-size: 2rem; /* 32px mobile */
  }
}

.top3-split {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem; /* 14px */
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

.top3-split-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.icc-pill {
  color: var(--pine);
  font-weight: 600;
}

.ifd-pill {
  color: var(--bronze);
  font-weight: 600;
}

@media (max-width: 900px) {
  .top3-grid {
    grid-template-columns: 1fr;
  }
  .top3-card,
  .top3-card:nth-child(2),
  .top3-card:last-child {
    padding: 1.5rem 0;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .top3-card:last-child {
    border-bottom: none;
  }
}

/* Detail Table: Generous Row Height, Min 16px Amounts, Double Rule Total */
.results-table-wrap {
  margin-bottom: 2.25rem;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead th {
  text-align: left;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--ink-muted);
}

.results-table thead th.col-icc {
  text-align: right;
  color: var(--pine);
  width: 220px;
}

.results-table thead th.col-ifd {
  text-align: right;
  color: var(--bronze);
  width: 220px;
}

.results-table tbody td {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.0625rem; /* 17px desktop */
  color: var(--ink);
  vertical-align: baseline;
}

@media (max-width: 768px) {
  .results-table tbody td {
    font-size: 1rem; /* 16px mobile */
  }
}

.results-table tbody td.num {
  text-align: right;
  font-size: 1.0625rem; /* 17px */
  font-weight: 600;
  white-space: nowrap;
  padding-left: 1.25rem;
}

.results-table tbody td.icc {
  color: var(--pine);
}

.results-table tbody td.ifd {
  color: var(--bronze);
}

.row-note {
  display: block;
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.results-table tr.total-row td {
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  border-top: 2px solid var(--hairline-strong);
  border-bottom: 3px double var(--hairline-strong);
}

.tou-notice {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--pine);
  background-color: var(--pine-tint);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.tou-notice p {
  margin: 0 0 0.5rem;
  max-width: 65ch;
}

.tou-notice p:last-child {
  margin-bottom: 0;
}

.disclaimer-line {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin: 0 0 3rem;
}

/* Two-Column Appointment Section on Results Screen */
.advisor-cta-box {
  padding: 3rem 0 2rem;
  border-top: 2px solid var(--hairline-strong);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
}

.advisor-cta-lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.advisor-steps-list {
  border-top: 1px solid var(--hairline);
}

.advisor-step-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
}

.advisor-step-text {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
}

.advisor-step-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}

.rdv-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rdv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.rdv-field {
  display: flex;
  flex-direction: column;
}

.rdv-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.rdv-input {
  min-height: 52px;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
}

.rdv-input:focus {
  outline: none;
  border: 2px solid var(--pine);
}

.rdv-input.has-error {
  border-color: var(--error);
}

.creneau-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.creneau-legend {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding: 0;
}

.creneau-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.creneau-chip {
  min-height: 54px;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.creneau-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.creneau-chip.is-selected {
  border: 2px solid var(--pine);
  background-color: var(--pine-tint);
  color: var(--pine);
}

.rdv-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  cursor: pointer;
}

.rdv-consent-label input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--pine);
  flex-shrink: 0;
}

.privacy-link {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.25rem;
}

.rdv-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rdv-server-error {
  padding: 0.85rem 1rem;
  background-color: var(--error-bg);
  border-left: 3px solid var(--error);
  color: var(--error);
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
}

.rdv-success-message {
  padding: 1.5rem;
  background-color: var(--pine-tint);
  border-left: 3px solid var(--pine);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 900px) {
  .advisor-cta-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rdv-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   13. Calculation Screen, Skeletons, Legal/Credits & Motion Rules
   ========================================================================== */
.calc-screen {
  max-width: 680px;
  margin: 3rem auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-lines {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.35rem;
}

.calc-line-item {
  opacity: 0.35;
  transition: opacity 280ms ease;
}

.calc-line-item.is-active {
  opacity: 1;
}

.calc-line-top {
  font-family: var(--font-sans);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calc-line-num {
  font-weight: 600;
  color: var(--pine);
  margin-right: 0.5rem;
}

.calc-track {
  height: 2px;
  background-color: var(--hairline);
  overflow: hidden;
}

.calc-fill {
  height: 100%;
  width: 0;
  background-color: var(--pine);
  transition: width 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.calc-line-item.is-active .calc-fill {
  width: 100%;
}

.calc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

/* Question Step Directional Slide Transitions: slide left going forward, slide right going back (0.35s) */
.step-content.is-forward {
  animation: stepSlideLeft 0.35s cubic-bezier(.2,.7,.2,1);
}

.step-content.is-back {
  animation: stepSlideRight 0.35s cubic-bezier(.2,.7,.2,1);
}

.step-content.is-fade,
.page-fade-in {
  animation: softFade 220ms ease-out;
}

@keyframes stepSlideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stepSlideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes softFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Skeletons (Zero CLS, Shown Only if Deep-Linked Loading > 150ms) */
.skeleton-initial {
  display: none;
}

html.show-skeleton #app-shell[data-ready="false"] .welcome-screen {
  display: none;
}

html.show-skeleton #app-shell[data-ready="false"] .skeleton-initial {
  display: block;
}

.skel-bar {
  background-color: var(--hairline);
  border-radius: 2px;
  animation: skelPulse 1.4s ease-in-out infinite;
}

@keyframes skelPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

/* Legal & Credits Prose */
.legal-prose {
  max-width: 65ch;
}

.legal-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}

.legal-meta-box {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--pine);
  background-color: var(--bg-alt);
  margin: 1rem 0;
}

.legal-meta-box p {
  margin: 0.35rem 0;
}

.legal-back {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}

.credit-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
}

.credit-item-meta {
  font-size: 0.875rem; /* 14px */
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 680px) {
  .credit-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Laptop 1366x768 Compact Fit Tuning */
@media (min-width: 961px) and (max-height: 820px) {
  .site-header-inner {
    height: 62px;
  }
  .app-shell {
    padding-top: 1.15rem;
  }
  .comp-intro-split {
    padding: 0.25rem 0 0.5rem;
    gap: 3rem;
  }
  .comp-intro-photo,
  .comp-intro-photo .photo-frame {
    min-height: 360px;
    max-height: 520px;
  }
  .welcome-headline {
    margin-bottom: 0.65rem;
  }
  .welcome-lead {
    margin-bottom: 1.15rem;
  }
  .welcome-blocks {
    margin-bottom: 1.35rem;
  }
  .welcome-block-item {
    padding: 0.7rem 0;
  }
  .comp-photo-banner {
    margin-bottom: 1.15rem;
  }
  .comp-photo-banner .photo-frame {
    height: 110px;
  }
  .comp-photo-banner.is-narrow .photo-frame {
    height: 80px;
  }
  .progress-bar-wrap {
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
  }
  .step-header-row {
    margin-bottom: 1rem;
  }
  .q-block,
  .q-row-grid {
    padding: 0.8rem 0;
  }
  .action-bar {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
}

/* ==========================================================================
   14. Phase 8 — Interactive Salary Slider, 3-Step Top-Line Reveal,
       Unified Analysis Panel (Home & Comparator) & Living Lake CTA Band
   ========================================================================== */

/* 14.1 Interactive Salary Slider Demo ("Un salaire, deux calculs.") */
.slider-demo-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 768px) {
  .slider-demo-panel {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }
}

.slider-control-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.slider-label-wrap,
.slider-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.slider-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.slider-value,
.slider-salary-output {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.salary-range-input,
.salary-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background-color: var(--line);
  outline: none;
  cursor: pointer;
}

.salary-range-input::-webkit-slider-thumb,
.salary-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--pine);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 150ms cubic-bezier(.2,.7,.2,1);
}

.salary-range-input::-webkit-slider-thumb:hover,
.salary-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.salary-range-input::-moz-range-thumb,
.salary-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--pine);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 150ms cubic-bezier(.2,.7,.2,1);
}

.slider-scale-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.slider-bars-grid,
.slider-bars-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .slider-bars-grid,
  .slider-bars-stack {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.slider-bar-card,
.slider-bar-group {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.slider-bar-card.is-icc,
.slider-bar-group:first-child {
  background-color: var(--pine-soft);
  border-color: rgba(27, 77, 62, 0.22);
}

.slider-bar-card.is-ifd,
.slider-bar-group:last-child {
  background-color: var(--bronze-soft);
  border-color: rgba(122, 79, 47, 0.22);
}

.slider-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.slider-bar-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.slider-bar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.slider-bar-rule {
  font-size: 0.8125rem;
  color: var(--muted);
}

.slider-bar-amount {
  font-family: var(--font-sans);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.slider-bar-amount.icc {
  color: var(--pine);
}

.slider-bar-amount.ifd {
  color: var(--bronze);
}

.slider-bar-track {
  height: 10px;
  border-radius: 999px;
  background-color: rgba(21, 32, 27, 0.1);
  overflow: hidden;
}

.slider-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(.2,.7,.2,1);
}

.slider-bar-fill.icc {
  background-color: var(--pine);
}

.slider-bar-fill.ifd {
  background-color: var(--bronze);
}

.slider-bar-note,
.slider-demo-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.slider-demo-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slider-diff-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.slider-diff-note strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 14.2 "Comment ça marche" — 3 Steps With Top Line Lighting Up Step by Step */
.how-steps-grid,
.how-3steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .how-steps-grid,
  .how-3steps-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.how-step-card,
.how-step-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.how-step-topline {
  position: relative;
  height: 2px;
  background-color: var(--line);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.how-step-topline::after,
.how-step-topline-fill {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  background-color: var(--pine);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(.2,.7,.2,1);
}

.how-step-card:nth-child(2) .how-step-topline::after,
.how-step-item:nth-child(2) .how-step-topline::after,
.how-step-item:nth-child(2) .how-step-topline-fill {
  transition-delay: 0.22s;
  background-color: var(--bronze);
}

.how-step-card:nth-child(3) .how-step-topline::after,
.how-step-item:nth-child(3) .how-step-topline::after,
.how-step-item:nth-child(3) .how-step-topline-fill {
  transition-delay: 0.44s;
}

.reveal.is-inview .how-step-topline::after,
.reveal.is-visible .how-step-topline::after,
.reveal.is-inview .how-step-topline-fill,
.reveal.is-visible .how-step-topline-fill,
.how-3steps-grid.is-inview .how-step-topline-fill,
.how-3steps-grid.is-visible .how-step-topline-fill {
  transform: scaleX(1);
}

.how-step-num,
.how-step-code {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
}

.how-step-card:nth-child(2) .how-step-num,
.how-step-item:nth-child(2) .how-step-code {
  color: var(--bronze);
}

.how-step-title,
.how-step-heading {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.how-step-text,
.how-step-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* 14.3 Unified Analysis Panel (Home Case B & Comparator Preparation Screen) */
.analysis-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.analysis-panel.is-comparator-prep {
  max-width: 640px;
  margin: 1.5rem auto 3rem;
}

@media (max-width: 768px) {
  .analysis-panel {
    padding: 1.5rem 1.25rem;
    gap: 1.35rem;
  }
}

.analysis-panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.analysis-panel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.analysis-badge,
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background-color: var(--pine-soft);
  color: var(--pine);
  font-size: 0.8125rem;
  font-weight: 700;
}

.analysis-profile-summary {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.analysis-master-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.analysis-master-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.analysis-master-pct {
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.analysis-master-bar-wrap,
.analysis-master-track {
  height: 6px;
  border-radius: 999px;
  background-color: var(--line);
  overflow: hidden;
}

.analysis-master-bar,
.analysis-master-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pine) 0%, var(--bronze) 100%);
  border-radius: 999px;
}

.analysis-steps-list,
.analysis-lines-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.analysis-step-item,
.analysis-line-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0.42;
  transition: opacity 240ms ease;
}

.analysis-step-item.is-active,
.analysis-line-row.is-active {
  opacity: 1;
}

.analysis-step-item.is-done,
.analysis-line-row.is-done {
  opacity: 0.82;
}

.analysis-step-head,
.analysis-line-text {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.analysis-step-item.is-active .analysis-step-head,
.analysis-line-row.is-active .analysis-line-text {
  color: var(--pine);
  font-weight: 700;
}

.analysis-step-num {
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.analysis-step-bar,
.analysis-line-track {
  height: 2px;
  background-color: var(--line);
  overflow: hidden;
}

.analysis-step-bar > span,
.analysis-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background-color: var(--pine);
}

.analysis-totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .analysis-totals-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

.analysis-total-box {
  padding: 1.25rem 1.35rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.analysis-total-box.is-icc {
  background-color: var(--pine-soft);
  border-color: rgba(27, 77, 62, 0.22);
}

.analysis-total-box.is-ifd {
  background-color: var(--bronze-soft);
  border-color: rgba(122, 79, 47, 0.22);
}

.analysis-total-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.analysis-total-val {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.analysis-total-val.icc {
  color: var(--pine);
}

.analysis-total-val.ifd {
  color: var(--bronze);
}

.analysis-ready-block,
.analysis-top3-wrap {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.analysis-top3-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}

.analysis-ready-title,
.analysis-ready-banner {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pine);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(.2,.7,.2,1);
}

.analysis-ready-title.is-visible,
.analysis-ready-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.analysis-top3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .analysis-top3-list {
    grid-template-columns: 1fr;
  }
}

.analysis-top3-item {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms cubic-bezier(.2,.7,.2,1), transform 320ms cubic-bezier(.2,.7,.2,1);
}

.analysis-top3-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.analysis-top3-rank {
  font-weight: 800;
  color: var(--pine);
  margin-right: 0.25rem;
}

.analysis-top3-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.analysis-top3-val,
.analysis-top3-amount {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.analysis-actions-row {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prep-skip-btn {
  opacity: 0;
  transition: opacity 240ms ease;
}

.prep-skip-btn.is-visible {
  opacity: 1;
}

/* 14.4 Final Call-to-Action Band with Living Lake Canvas */
.lake-cta-band,
.cta-band {
  position: relative;
  min-height: 340px;
  padding: 5rem 0;
  background-color: var(--hero-band);
  color: #F6F5F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.lake-cta-inner,
.cta-band-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.lake-cta-band .cta-band-content,
.cta-band .cta-band-content {
  max-width: 640px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

.lake-cta-band .cta-band-title,
.cta-band .cta-band-title {
  color: #F6F5F0;
  margin: 0;
}

.lake-cta-band .cta-band-sub,
.cta-band .cta-band-sub {
  color: rgba(246, 245, 240, 0.88);
  margin: 0 0 0.5rem;
}

@media (max-width: 720px) {
  .lake-cta-band,
  .cta-band {
    min-height: 300px;
    padding: 3.5rem 0;
  }
  .lake-cta-band .cta-band-content,
  .cta-band .cta-band-content {
    max-width: 82%;
  }
}

/* 14.5 Results Screen Totals & Top 3 Reveal */
.results-total-land {
  animation: resultsTotalLandIn 420ms cubic-bezier(.2,.7,.2,1) both;
}

.results-total-land.ifd {
  animation-delay: 80ms;
}

@keyframes resultsTotalLandIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.top3-reveal-card {
  animation: top3CardReveal 460ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--top3-idx, 0) * 120ms + 120ms);
}

@keyframes top3CardReveal {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   15. Phase 9 — Comparator-Driven Home Page, Live Comparator Card,
       Keyword Ticker, Waterfall, Trust 4-Grid, 3-Question Starter & Playful Flow
       (Warm Off-White, Deep Alpine Pine & Warm Umber Bronze — Zero Neon)
   ========================================================================== */

/* 15.1 Hero Band (Deep Pine Band, Left Copy + Rotating Line, Right Warm-White Live Comparator Card) */
.hero-band {
  position: relative;
  padding: 4.5rem 0 5rem;
  background-color: var(--hero-band);
  color: #F6F5F0;
  overflow: hidden;
}

.hero-band-inner {
  position: relative;
  z-index: 1;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #F6F5F0;
  margin: 0 0 1.25rem;
}

.hero-rotating-prompt {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(246, 245, 240, 0.9);
  margin: 0 0 1.25rem;
  min-height: 1.8em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.hero-rotating-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.75rem;
  border-radius: 6px;
  background-color: #F6F5F0;
  color: #10291F;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: opacity 240ms cubic-bezier(.2,.7,.2,1), transform 240ms cubic-bezier(.2,.7,.2,1);
}

.hero-rotating-pill.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(246, 245, 240, 0.86);
  max-width: 54ch;
  margin: 0 0 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-trust-row {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(246, 245, 240, 0.76);
}

/* Live Comparator Card in Hero — Warm White Comparator Surface (Zero Neon) */
.live-comp-card {
  position: relative;
  background-color: #FFFFFF;
  color: var(--ink);
  border: 1px solid #D8D4C8;
  border-radius: 14px;
  padding: 1.65rem 1.75rem;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow: hidden;
}

@media (max-width: 640px) {
  .live-comp-card {
    padding: 1.25rem;
  }
}

/* Live auto-play progress bar at top of Hero Card */
.live-comp-cycle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #EFECE4;
  overflow: hidden;
}

.live-comp-cycle-fill {
  height: 100%;
  width: 0%;
  background-color: var(--pine);
}

.live-comp-top,
.live-comp-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.live-comp-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-exemple {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  border-radius: 6px;
  background-color: var(--pine-soft);
  color: var(--pine);
  border: 1px solid var(--pine-border);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.live-comp-case-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.live-comp-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 0.22rem;
  border-radius: 8px;
}

.live-comp-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.34rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.live-comp-tab:hover {
  color: var(--ink);
}

.live-comp-tab.is-active,
.live-comp-tab[aria-selected="true"] {
  background-color: var(--pine);
  color: #FFFFFF;
}

.live-comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 32px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--pine-soft);
  color: var(--pine);
  border: 1px solid var(--pine-border);
  animation: chipPopIn 320ms cubic-bezier(.2,.7,.2,1) both;
}

.profile-chip.is-muted {
  background-color: var(--bg);
  color: var(--muted);
  border-color: var(--line);
}

.live-comp-card .profile-chip {
  background-color: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

@keyframes chipPopIn {
  0% { opacity: 0; transform: scale(0.88) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.live-comp-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .live-comp-totals {
    grid-template-columns: 1fr;
  }
}

.live-comp-total-box {
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}

.live-comp-total-box.is-icc {
  background-color: var(--pine-soft);
  border: 1px solid var(--pine-border);
}

.live-comp-total-box.is-ifd {
  background-color: var(--bronze-soft);
  border: 1px solid var(--bronze-border);
}

.live-comp-total-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.live-comp-total-val {
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.live-comp-total-val.icc {
  color: var(--pine);
}

.live-comp-total-val.ifd {
  color: var(--bronze);
}

.live-comp-top3,
.live-comp-top3-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.live-comp-top3-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}

.live-comp-top3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.live-comp-top3-item,
.live-comp-top3-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 320ms cubic-bezier(.2,.7,.2,1), transform 320ms cubic-bezier(.2,.7,.2,1);
}

.live-comp-top3-item.is-visible,
.live-comp-top3-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.live-comp-top3-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.live-comp-top3-name {
  font-weight: 600;
  color: var(--ink);
}

.live-comp-top3-val,
.live-comp-top3-amount {
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-comp-bar-track {
  height: 7px;
  border-radius: 999px;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.live-comp-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background-color: var(--pine);
  transition: width 620ms cubic-bezier(.2,.7,.2,1);
}

.live-comp-top3-row:nth-child(2) .live-comp-bar-fill {
  background-color: #2A6451;
}

.live-comp-top3-row:nth-child(3) .live-comp-bar-fill {
  background-color: var(--bronze);
}

/* 15.2 Keyword Ticker Band */
.keyword-ticker-band {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  overflow: hidden;
}

.keyword-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 34s linear infinite;
}

.keyword-ticker-band:hover .keyword-ticker-track,
.keyword-ticker-band:focus-within .keyword-ticker-track {
  animation-play-state: paused;
}

.keyword-ticker-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
  white-space: nowrap;
}

.keyword-ticker-item,
.ticker-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.keyword-ticker-sep,
.ticker-sep {
  color: var(--pine);
  font-weight: 800;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 15.3 Case B Waterfall ("De votre salaire à votre revenu imposable") */
.waterfall-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

@media (max-width: 768px) {
  .waterfall-panel {
    padding: 1.5rem 1.25rem;
    gap: 1.4rem;
  }
}

.waterfall-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.waterfall-meta-left,
.waterfall-profile-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.waterfall-toggle-group {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 10px;
  background-color: var(--bg);
  border: 1px solid var(--line);
}

.waterfall-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.55rem 1.05rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.waterfall-toggle-btn:hover {
  color: var(--ink);
}

.waterfall-toggle-btn[data-mode="icc"][aria-pressed="true"],
.waterfall-toggle-btn#wf-btn-icc.is-active {
  background-color: var(--pine);
  color: #FFFFFF;
}

.waterfall-toggle-btn[data-mode="ifd"][aria-pressed="true"],
.waterfall-toggle-btn#wf-btn-ifd.is-active {
  background-color: var(--bronze);
  color: #FFFFFF;
}

.waterfall-bars-stage {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background-color: var(--bg);
  border: 1px solid var(--line);
}

.waterfall-bar-row,
.waterfall-stage-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.waterfall-bar-head,
.waterfall-stage-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.waterfall-bar-label,
.waterfall-stage-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.waterfall-stage-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.waterfall-deducted-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background-color: var(--pine-soft);
  color: var(--pine);
  border: 1px solid var(--pine-border);
  font-variant-numeric: tabular-nums;
}

.waterfall-panel[data-active-mode="ifd"] .waterfall-deducted-pill {
  background-color: var(--bronze-soft);
  color: var(--bronze);
  border-color: var(--bronze-border);
}

.waterfall-bar-amount,
.waterfall-stage-amount {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.waterfall-bar-amount.is-taxable,
.waterfall-stage-amount.is-accent {
  color: var(--pine);
}

.waterfall-panel[data-active-mode="ifd"] .waterfall-bar-amount.is-taxable,
.waterfall-panel[data-active-mode="ifd"] .waterfall-stage-amount.is-accent {
  color: var(--bronze);
}

.waterfall-track {
  height: 16px;
  border-radius: 999px;
  background-color: #E2DFD5;
  overflow: hidden;
  position: relative;
}

.waterfall-fill-gross,
.waterfall-fill-salary {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background-color: #8C948E;
}

.waterfall-fill-remaining {
  height: 100%;
  border-radius: 999px;
  background-color: var(--pine);
  transition: width 700ms cubic-bezier(.2,.7,.2,1), background-color 220ms ease;
}

.waterfall-panel[data-active-mode="ifd"] .waterfall-fill-remaining,
.waterfall-fill-remaining.is-ifd {
  background-color: var(--bronze);
}

.waterfall-chips-wrap,
.waterfall-chips-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.waterfall-chips-title,
.waterfall-chips-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}

.waterfall-chips-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 0.75rem;
}

.waterfall-chip {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1), border-color 180ms ease;
}

.waterfall-chip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.waterfall-chip-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.waterfall-chip-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.waterfall-chip-val {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.waterfall-panel[data-active-mode="ifd"] .waterfall-chip-val {
  color: var(--bronze);
}

.waterfall-chip-minibar {
  height: 4px;
  border-radius: 999px;
  background-color: #E2DFD5;
  overflow: hidden;
}

.waterfall-chip-minifill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background-color: var(--pine);
  transition: width 520ms cubic-bezier(.2,.7,.2,1);
}

.waterfall-panel[data-active-mode="ifd"] .waterfall-chip-minifill {
  background-color: var(--bronze);
}

.waterfall-footer-bar,
.waterfall-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.waterfall-total-summary,
.waterfall-summary-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 1rem;
  color: var(--muted);
}

.waterfall-total-summary strong,
.waterfall-summary-pair strong {
  color: var(--pine);
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.waterfall-panel[data-active-mode="ifd"] .waterfall-total-summary strong,
.waterfall-panel[data-active-mode="ifd"] .waterfall-summary-pair strong {
  color: var(--bronze);
}

/* 15.4 "Un calcul transparent" — 4 Factual Trust Cards */
.trust-4grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .trust-4grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.trust-card {
  padding: 1.75rem 1.85rem;
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trust-num {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.trust-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-card-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 15.5 "Commencez en trois questions" Embedded Starter Widget */
.home-starter-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .home-starter-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.starter-question-card,
.home-starter-main {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

@media (max-width: 640px) {
  .starter-question-card,
  .home-starter-main {
    padding: 1.35rem 1.15rem;
  }
}

.starter-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.starter-step-label,
.starter-step-indicator {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.starter-encouragement,
.starter-kbd-hint,
.encouraging-microcopy {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pine);
  background-color: var(--pine-soft);
  border: 1px solid var(--pine-border);
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
}

.starter-segments,
.progress-segments-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 0.45rem;
}

.starter-segment,
.progress-seg {
  height: 5px;
  border-radius: 999px;
  background-color: var(--bg-alt);
  transition: background-color 240ms ease;
}

.starter-segment.is-active,
.starter-segment.is-done,
.progress-seg.is-active,
.progress-seg.is-done {
  background-color: var(--pine);
}

.starter-q-stage,
.starter-q-pane {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.starter-q-stage.is-forward,
.starter-q-pane.is-forward {
  animation: stepSlideLeft 0.35s cubic-bezier(.2,.7,.2,1);
}

.starter-q-stage.is-back,
.starter-q-pane.is-back {
  animation: stepSlideRight 0.35s cubic-bezier(.2,.7,.2,1);
}

.starter-q-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.starter-q-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.starter-personal-note,
.personalised-note,
.q-personal-note {
  margin: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  background-color: var(--pine-soft);
  border-left: 3px solid var(--pine);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.9rem;
}

.choice-card {
  position: relative;
  min-height: 96px;
  padding: 1.05rem 1.2rem;
  border-radius: 12px;
  background-color: var(--bg);
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 140ms cubic-bezier(.2,.7,.2,1);
}

.choice-card:hover {
  border-color: var(--pine);
  background-color: #FFFFFF;
}

.choice-card:active {
  transform: scale(0.98);
}

.choice-card[aria-pressed="true"],
.choice-card[aria-checked="true"],
.choice-card.is-selected {
  border: 2px solid var(--pine);
  padding: calc(1.05rem - 0.5px) calc(1.2rem - 0.5px);
  background-color: var(--pine-soft);
}

.choice-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding-right: 1.65rem;
}

.choice-key-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.choice-card[aria-pressed="true"] .choice-key-badge,
.choice-card[aria-checked="true"] .choice-key-badge,
.choice-card.is-selected .choice-key-badge {
  border-color: var(--pine);
  background-color: var(--pine);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .choice-key-badge {
    display: none;
  }
}

.choice-card-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.choice-card[aria-pressed="true"] .choice-card-title,
.choice-card[aria-checked="true"] .choice-card-title,
.choice-card.is-selected .choice-card-title {
  color: var(--pine);
}

.choice-card-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Children + / − Stepper */
.starter-children-stepper-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stepper-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background-color: var(--bg);
  border: 1px solid var(--line);
}

.stepper-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms ease, background-color 150ms ease, transform 120ms ease;
}

.stepper-btn:hover:not(:disabled) {
  border-color: var(--pine);
  background-color: var(--pine-soft);
}

.stepper-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-count {
  min-width: 36px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}

.stepper-count.is-bumping {
  transform: scale(1.26);
}

.starter-footer-nav,
.starter-actions-bar {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* "Votre profil" & "Déductions déjà repérées" Panel */
.profile-summary-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.profile-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.profile-card-title,
.profile-card-heading {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.profile-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pine);
}

.profile-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 34px;
}

.profile-chip-empty {
  font-size: 0.875rem;
  color: var(--muted);
}

.profile-detected-wrap,
.profile-detected-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.profile-detected-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}

.profile-detected-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-detected-box {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-detected-box.is-icc {
  background-color: var(--pine-soft);
  border: 1px solid var(--pine-border);
}

.profile-detected-box.is-ifd {
  background-color: var(--bronze-soft);
  border: 1px solid var(--bronze-border);
}

.profile-detected-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.profile-detected-val {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.profile-detected-val.icc {
  color: var(--pine);
}

.profile-detected-val.ifd {
  color: var(--bronze);
}

.profile-personal-line {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pine);
}

/* "Déduction débloquée" Short Non-Blocking Toast (2.6s, one at a time, Warm & Non-Neon) */
.unlock-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 250;
  max-width: 400px;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  background-color: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pine);
  box-shadow: 0 12px 32px rgba(21, 32, 27, 0.16);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.2,.7,.2,1);
}

.unlock-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .unlock-toast {
    left: 1rem;
    right: 1rem;
    bottom: 4.5rem;
    max-width: none;
  }
}

/* Large salary amount input on /comparateur */
.input-group.is-large-amount {
  min-height: 64px;
  border-width: 1.5px;
}

.input-group.is-large-amount input {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pine);
  padding: 0.85rem 1.15rem;
}

/* ==========================================================================
   14.6 TACTILE SWISS TAX INSTRUMENT ("LA TABLE DE DÉDUCTION")
   - Mechanical Split-Flap / Odometer Digit Slots (with clean innerText)
   - Hero Card 3D Tilt, Specular Paper Sheen & Interactive What-If Levers
   - Waterfall Segmented "Revenue Slicer" Bar & Click-to-Mute X-Ray Chips
   - Perforated Swiss Tax Receipt Ledger & Tactile Salary Scrubber
   ========================================================================== */

/* Mechanical Odometer Digit Slots */
.odo-slot {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  clip-path: inset(-10% -4% -10% -4%);
}

.odo-slot.is-rolling::before {
  content: attr(data-prev);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  animation: odoDigitOut 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--odo-delay, 0ms);
}

.odo-slot.is-rolling .odo-cur {
  display: inline-block;
  animation: odoDigitIn 260ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--odo-delay, 0ms);
}

@keyframes odoDigitOut {
  0% {
    opacity: 0.85;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-95%) scale(0.92);
  }
}

@keyframes odoDigitIn {
  0% {
    opacity: 0;
    transform: translateY(95%) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(-4%) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero Live Card — 3D Perspective Tilt & Specular Paper Sheen */
.live-comp-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.live-comp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    460px circle at var(--sheen-x, 50%) var(--sheen-y, 20%),
    rgba(27, 77, 62, 0.055),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 250ms ease;
}

.live-comp-card.is-tilting::after {
  opacity: 1;
}

/* Interactive "Tester un levier fiscal" What-If Bar inside Hero Card */
.hero-whatif-bar {
  margin-top: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #D8D4C8;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-whatif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero-whatif-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-whatif-delta {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background-color: var(--pine-soft);
  color: var(--pine);
  border: 1px solid var(--pine-border);
  opacity: 0;
  transform: translateY(4px) scale(0.95);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-whatif-delta.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-whatif-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-whatif-pill {
  appearance: none;
  border: 1px solid #D5D0C3;
  background-color: #F6F5F0;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.36rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 180ms ease;
}

.hero-whatif-pill:hover {
  border-color: var(--pine);
  color: var(--pine);
  transform: translateY(-1px);
}

.hero-whatif-pill:active {
  transform: scale(0.96);
}

.hero-whatif-pill.is-on {
  background-color: var(--pine);
  border-color: var(--pine);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.22);
}

/* Waterfall "Découpe du Revenu" — Segmented Slicer Bar & X-Ray Inspector */
.waterfall-slicer-wrap {
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.waterfall-slicer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.waterfall-slicer-status {
  font-weight: 700;
  color: var(--ink);
}

.waterfall-reset-btn {
  appearance: none;
  border: 1px solid var(--pine-border);
  background-color: var(--pine-soft);
  color: var(--pine);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.waterfall-reset-btn:hover {
  background-color: #D7E6DF;
}

.waterfall-segmented-track {
  height: 22px;
  width: 100%;
  border-radius: 8px;
  background-color: #EFECE5;
  padding: 2px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow: hidden;
}

.waterfall-slice {
  height: 100%;
  border-radius: 5px;
  transition:
    width 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 260ms ease;
  position: relative;
  cursor: pointer;
}

.waterfall-slice.is-taxable-base {
  background-color: #5C6660;
}

.waterfall-slice.is-deduction-slice.is-icc {
  background-color: var(--pine);
}

.waterfall-slice.is-deduction-slice.is-ifd {
  background-color: var(--bronze);
}

.waterfall-slice.is-deduction-slice:nth-child(even).is-icc {
  background-color: #266350;
}

.waterfall-slice.is-deduction-slice:nth-child(even).is-ifd {
  background-color: #93613B;
}

.waterfall-slice.is-highlighted {
  transform: scaleY(1.18);
  z-index: 2;
  box-shadow: 0 0 0 2px #FFFFFF, 0 2px 8px rgba(0, 0, 0, 0.25);
}

.waterfall-slice.is-muted-slice {
  width: 0% !important;
  opacity: 0;
}

/* Interactive Click-to-Mute Waterfall Chips */
.waterfall-chip {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.waterfall-chip.is-hovered {
  border-color: var(--pine);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(21, 32, 27, 0.16);
}

#waterfall-panel[data-active-mode="ifd"] .waterfall-chip.is-hovered {
  border-color: var(--bronze);
}

.waterfall-chip.is-muted-chip {
  opacity: 0.48;
  background-color: #EFECE5;
  border-style: dashed;
}

.waterfall-chip.is-muted-chip .waterfall-chip-val {
  text-decoration: line-through;
  color: var(--muted);
}

.waterfall-chip.is-muted-chip .waterfall-chip-minifill {
  width: 0% !important;
}

.waterfall-chip-share {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.1rem;
}

/* Perforated Swiss Tax Receipt ("Ticket Fiscal") in 3-Question Starter & Comparator */
.profile-summary-card,
.starter-profile-card {
  position: relative;
  background-image:
    radial-gradient(circle at 0 14px, var(--bg) 5px, transparent 6px),
    radial-gradient(circle at 100% 14px, var(--bg) 5px, transparent 6px);
}

.live-receipt-ledger {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.live-receipt-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.live-receipt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.live-receipt-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--pine);
  animation: receiptStampIn 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.live-receipt-item.is-ifd-only {
  border-left-color: var(--bronze);
}

.live-receipt-name {
  font-weight: 600;
  color: var(--ink-secondary);
}

.live-receipt-val {
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-receipt-item.is-ifd-only .live-receipt-val {
  color: var(--bronze);
}

@keyframes receiptStampIn {
  0% {
    opacity: 0;
    transform: translateX(-8px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Tactile Salary Scrubber & Quick-Tap Presets on Question 4 (/comparateur) */
.salary-tactile-strip {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.salary-scrubber-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.salary-scrubber-input {
  width: 100%;
  accent-color: var(--pine);
  height: 6px;
  border-radius: 999px;
  cursor: grab;
}

.salary-scrubber-input:active {
  cursor: grabbing;
}

.salary-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.salary-preset-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background-color: #FFFFFF;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.salary-preset-btn:hover {
  border-color: var(--pine);
  color: var(--pine);
  transform: translateY(-1px);
}

.salary-preset-btn.is-active {
  background-color: var(--pine);
  border-color: var(--pine);
  color: #FFFFFF;
}

/* ==========================================================================
   16. PHASE 10 — "LAKESIDE LIGHT" VISUAL STYLE
   - Fraunces display (500/600 normal + italic) + Hanken Grotesk body/UI
   - Layered CSS Lakeside Atmosphere (sky, 9s sun haze, lake + 2 glints, shore, 14 motes)
   - Transparent -> Frosted Glass Header + Round Sun/Moon Theme Toggle
   - Overlapping 4-Fact Stat Strip under Hero ("2 calculs", "CHF 7'258", "31 mars", "≈ 4 min")
   - 56px Pill Buttons with Sliding Arrow, 26px Cards, 20px Answer Cards, Individual FAQ Cards
   - Airy Sky-Gradient Comparator with 26px Result Blocks & 14px Form Fields
   ========================================================================== */

/* 16.1 Display Typography (Fraunces ONLY for H1 & H2; Hanken Grotesk for H3, Card Titles, FAQ, Small Card Totals) */
h1,
h2,
.hero-main-title,
.hero-title,
.section-title,
.page-hero-title,
.cta-band-title,
.welcome-headline,
.q-title,
.guide-theme-title,
.faq-group-title,
.legal-section h2,
.results-section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h3,
.starter-q-title,
.trust-card-title,
.guide-item-title,
.deduction-item-title,
.editorial-col-title,
.profile-card-heading,
.profile-card-title,
.tips-title,
.welcome-block-title {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Totals inside small cards, chips, stat labels, and table amounts in Hanken Grotesk */
.live-comp-total-val,
.profile-detected-val,
.top3-big,
.split-meta-val,
.live-estimate-val,
.waterfall-single-amount,
.total-amount,
.analysis-total-val {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Italic Accent Word ONLY in Home H1 and Landing Page H1s (Fraunces Italic, Pine Color) */
h1 em,
.hero-main-title em,
.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--pine);
}

/* Small Uppercase Eyebrows Above Section Titles (13px, 700, letter-spacing .16em, pine) */
.section-eyebrow,
.eyebrow,
.welcome-meta-row {
  font-family: var(--font-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 0.65rem;
}

/* 16.2 Transparent -> Frosted Glass Header */
.site-header {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.has-line,
.site-header.is-scrolled {
  background-color: var(--header-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 16.3 Pill Buttons (999px radius, 56px high / 46px small, sliding arrow on hover, 2px lift) */
.btn {
  min-height: 56px;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  font-weight: 600;
  gap: 0.5rem;
  transition:
    transform 220ms cubic-bezier(.2,.7,.2,1),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm,
.btn-header {
  min-height: 46px;
  padding: 0.6rem 1.3rem;
  font-size: 0.875rem;
}

.btn-primary,
.hero-band .btn-light,
.cta-band .btn-light {
  background-color: var(--pine-btn);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover,
.hero-band .btn-light:hover,
.cta-band .btn-light:hover {
  background-color: var(--pine-hover);
  color: #FFFFFF;
  box-shadow: 0 18px 32px -10px rgba(29, 107, 69, 0.45);
}

.btn-primary::after,
.hero-band .btn-light::after,
.cta-band .btn-light::after {
  content: '→';
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1);
}

.btn-primary:hover::after,
.hero-band .btn-light:hover::after,
.cta-band .btn-light:hover::after {
  transform: translateX(4px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--pine);
  border: 1.5px solid var(--pine);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--pine-soft);
  color: var(--pine);
  border-color: var(--pine);
}

/* 16.4 The Lakeside Atmosphere (CSS Only, No Images, No Canvas) */
.hero-band {
  position: relative;
  margin-top: -74px;
  padding: calc(4.25rem + 74px) 0 5.5rem;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 66%, var(--bg) 100%);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 980px) {
  .hero-band {
    margin-top: -64px;
    padding: calc(3rem + 64px) 0 4.5rem;
  }
}

.lakeside-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmo-sun {
  position: absolute;
  top: -18%;
  left: 14%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-haze) 0%, rgba(207, 227, 236, 0.22) 52%, transparent 72%);
  animation: lakesideSunBreathe 9s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes lakesideSunBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.atmo-lake {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 14%;
  height: 150px;
  border-radius: 50%;
  background: var(--lake);
  filter: blur(28px);
  opacity: 0.72;
}

.atmo-glint {
  position: absolute;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--glint) 50%, transparent 100%);
  filter: blur(3px);
  will-change: transform, opacity;
}

.atmo-glint-1 {
  width: 320px;
  bottom: 24%;
  left: 10%;
  animation: lakesideGlintA 18s ease-in-out infinite;
}

.atmo-glint-2 {
  width: 260px;
  bottom: 19%;
  right: 14%;
  animation: lakesideGlintB 23s ease-in-out infinite;
}

@keyframes lakesideGlintA {
  0%, 100% {
    transform: translate3d(-24px, 0, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(38px, 0, 0);
    opacity: 0.92;
  }
}

@keyframes lakesideGlintB {
  0%, 100% {
    transform: translate3d(28px, 0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(-34px, 0, 0);
    opacity: 0.88;
  }
}

.atmo-shore {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -24px;
  height: 110px;
  border-radius: 50%;
  background: var(--shore);
  filter: blur(32px);
  opacity: 0.52;
}

.atmo-mote {
  position: absolute;
  bottom: 8%;
  left: var(--mote-x, 50%);
  width: var(--mote-size, 5px);
  height: var(--mote-size, 5px);
  border-radius: 50%;
  background-color: var(--pine);
  opacity: 0;
  animation: lakesideMoteRise var(--mote-dur, 16s) ease-in-out var(--mote-delay, 0s) infinite;
  will-change: transform, opacity;
}

@keyframes lakesideMoteRise {
  0% {
    transform: translate3d(0, 12px, 0) scale(0.85);
    opacity: 0;
  }
  30% {
    opacity: 0.22;
  }
  70% {
    opacity: 0.18;
  }
  100% {
    transform: translate3d(10px, -96px, 0) scale(1.08);
    opacity: 0;
  }
}

/* Hero Copy & Status Pills (B / C / CH) over Lakeside Light Atmosphere */
.hero-band .site-container {
  position: relative;
  z-index: 2;
}

.hero-main-title,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.3vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.15rem;
}

.hero-rotating-prompt {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--ink-secondary);
  margin: 0 0 1.1rem;
}

.hero-rotating-pill {
  border-radius: 999px;
  padding: 0.24rem 0.9rem;
  background-color: var(--surface);
  color: var(--pine);
  border: 1px solid var(--pine-border);
  box-shadow: 0 8px 20px -10px rgba(18, 41, 30, 0.16);
}

.hero-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 6px 14px -8px rgba(18, 41, 30, 0.1);
}

.status-pill-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.38rem;
  border-radius: 999px;
  background-color: var(--pine-soft);
  color: var(--pine);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-lead-text,
.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 1.65rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.hero-band .text-link.is-on-dark,
.hero-band .text-link {
  color: var(--pine);
  font-weight: 600;
}

.hero-trust-row {
  color: var(--muted);
  font-weight: 600;
}

/* 16.5 Overlapping 4-Fact Stat Strip Under the Hero */
.hero-stat-strip-section {
  position: relative;
  z-index: 5;
  margin-top: -2.4rem;
  margin-bottom: 1.75rem;
}

.hero-stat-strip {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  padding: 1.45rem 1.85rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-strip-item,
.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.stat-strip-item:last-child,
.hero-stat-item:last-child {
  padding-right: 0;
  border-right: none;
}

.stat-strip-val,
.hero-stat-figure {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  color: var(--pine);
}

.stat-strip-item:nth-child(2) .stat-strip-val,
.hero-stat-item:nth-child(2) .hero-stat-figure {
  color: var(--bronze);
}

.stat-strip-label,
.hero-stat-caption {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.38;
}

@media (max-width: 900px) {
  .hero-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem 1.35rem;
  }
  .stat-strip-item:nth-child(2),
  .hero-stat-item:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .hero-stat-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-strip-item,
  .hero-stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 0.85rem;
  }
  .stat-strip-item:last-child,
  .hero-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* 16.6 Cards & Panels (26px radius, 1px line, soft shadow) & Answer Cards (20px radius) */
.live-comp-card,
.waterfall-panel,
.trust-card,
.home-starter-main,
.starter-question-card,
.profile-summary-card,
.starter-profile-card,
.guide-item,
.deduction-item-card,
.analysis-panel,
.slider-demo-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
}

.live-comp-tabs,
.waterfall-toggle-group {
  border-radius: 999px;
  padding: 0.25rem;
  background-color: var(--bg);
}

.live-comp-tab,
.waterfall-toggle-btn {
  border-radius: 999px;
}

.badge-exemple,
.badge-pill,
.analysis-badge,
.hero-whatif-pill,
.waterfall-reset-btn,
.salary-preset-btn {
  border-radius: 999px;
}

.live-comp-total-box,
.profile-detected-box,
.waterfall-bars-stage,
.waterfall-slicer-wrap {
  border-radius: 18px;
}

.waterfall-chip {
  border-radius: 16px;
  background-color: var(--bg);
}

/* Answer Cards: 20px radius */
.choice-card,
.chip {
  border-radius: 20px;
  background-color: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(18, 41, 30, 0.1);
}

.choice-card:hover,
.chip:hover {
  border-color: var(--pine);
  background-color: var(--surface);
}

.choice-key-badge,
.chip-key-hint,
.stepper-btn {
  border-radius: 999px;
}

/* Pill Toasts */
.unlock-toast {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  background-color: var(--surface);
  border: 1.5px solid var(--pine);
  box-shadow: var(--card-shadow-open);
}

/* 16.7 FAQ: Each Question is its Own Rounded Card that Gains a Shadow When Open */
.faq-list {
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 920px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0 1.5rem;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 200ms ease;
}

.faq-item.is-open,
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  box-shadow: var(--card-shadow-open);
  border-color: var(--pine-border);
}

.faq-trigger {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px, Hanken Grotesk 600 */
  font-weight: 600;
  padding: 1.25rem 0;
}

.faq-indicator {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--pine-soft);
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* 16.8 Inner Pages Shorter Lakeside Atmosphere & 26px Rounded Photo Frames */
.page-hero {
  position: relative;
  margin-top: -74px;
  padding: calc(3.5rem + 74px) 0 3.25rem;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 980px) {
  .page-hero {
    margin-top: -64px;
    padding: calc(2.75rem + 64px) 0 2.5rem;
  }
}

.page-hero .site-container {
  position: relative;
  z-index: 2;
}

.photo-frame {
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

/* 16.9 Final CTA Block: Rounded 32px Container with Lakeside Atmosphere Inside */
.cta-band,
.lake-cta-band {
  background: var(--bg);
  color: var(--ink);
  padding: 4rem 0 5rem;
  min-height: 0;
  display: block;
}

.cta-band .site-container,
.lake-cta-band .site-container {
  width: 100%;
  max-width: 1180px;
}

.cta-band .cta-band-inner,
.lake-cta-band .lake-cta-inner {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  border-radius: 32px;
  padding: 4rem 3.5rem;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 68%, var(--surface) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .cta-band .cta-band-inner,
  .lake-cta-band .lake-cta-inner {
    padding: 2.5rem 1.5rem;
    border-radius: 26px;
  }
}

.cta-band .cta-band-content,
.lake-cta-band .cta-band-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-band .cta-band-title,
.lake-cta-band .cta-band-title {
  color: var(--ink);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .cta-band-sub,
.lake-cta-band .cta-band-sub {
  color: var(--muted);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .cta-band-actions,
.lake-cta-band .cta-band-actions {
  justify-content: center;
}

.cta-band .btn-primary,
.lake-cta-band .btn-primary {
  background-color: var(--pine-btn);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--btn-shadow);
}

.cta-band .btn-primary:hover,
.lake-cta-band .btn-primary:hover {
  background-color: var(--pine-hover);
  color: #FFFFFF;
}

/* Dark/Light Token Harmonization for Interactive Levers, Waterfall Slicer & Receipt Ledger */
.live-comp-cycle-track,
.live-comp-bar-track,
.waterfall-bar-track {
  background-color: var(--bg-soft);
}

.hero-whatif-bar,
.hero-lever-bar {
  border-top-color: var(--line);
}

.hero-whatif-label {
  color: var(--muted);
}

.hero-whatif-pill,
.hero-lever-btn {
  background-color: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-whatif-pill:hover,
.hero-lever-btn:hover {
  border-color: var(--pine);
  background-color: var(--pine-soft);
  color: var(--pine);
}

.hero-whatif-pill.is-on,
.hero-lever-btn.is-active {
  background-color: var(--pine-btn);
  color: #FFFFFF;
  border-color: var(--pine-btn);
}

.waterfall-slicer-wrap,
.wf-slicer-wrap {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
}

.waterfall-slicer-status,
.wf-slicer-hint {
  color: var(--muted);
}

.waterfall-segmented-track {
  background-color: var(--surface);
  border-color: var(--line);
}

.live-receipt-ledger {
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
}

/* 16.10 The Comparator (/comparateur): Airy Sky Gradient (No Motes), 26px Results & 14px Form Fields */
.app-shell {
  position: relative;
}

body:has(#app-shell) {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 340px, var(--bg) 720px);
  background-attachment: scroll;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
}

.progress-fill {
  border-radius: 999px;
}

/* Results Screen: Totals in Fraunces inside pine-soft / bronze-soft rounded 26px blocks */
.totals-grid {
  border-top: none;
  border-bottom: none;
  gap: 1.5rem;
}

.total-card {
  padding: 2rem 2.25rem;
  border-radius: 26px;
  box-shadow: var(--card-shadow);
}

.total-card.icc {
  background-color: var(--pine-soft);
  border: 1px solid var(--pine-border);
}

.total-card.ifd {
  background-color: var(--bronze-soft);
  border: 1px solid var(--bronze-border);
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}

.top3-grid {
  border-top: none;
  border-bottom: none;
  gap: 1.25rem;
}

.top3-card {
  padding: 1.65rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
}

.top3-card:nth-child(2),
.top3-card:last-child {
  padding: 1.65rem;
  border-right: 1px solid var(--line);
}

/* Detailed Table in a Rounded 26px Panel */
.results-table-wrap {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem 2rem;
}

@media (max-width: 768px) {
  .results-table-wrap {
    padding: 1rem 1.15rem;
  }
}

.tou-notice {
  border-radius: 20px;
}

/* Appointment Form Fields with 14px Radius */
.advisor-cta-box {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .advisor-cta-box {
    padding: 1.5rem;
  }
}

.rdv-input,
.creneau-chip,
.input-group {
  border-radius: 14px;
}

/* Pause all atmosphere animations when prefers-reduced-motion: reduce */
@media (prefers-reduced-motion: reduce) {
  .atmo-sun,
  .atmo-glint-1,
  .atmo-glint-2,
  .atmo-mote,
  .keyword-ticker-track {
    animation: none !important;
  }
}

/* ==========================================================================
   16.11 PHASE 10B — SIMPLIFIED HERO EXAMPLES CARD, DEDUCTION SECTION & /DEDUCTIONS
   ========================================================================== */
.hero-main-title {
  max-width: 16ch;
  min-height: 2.16em;
}

.live-comp-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.live-comp-plain-note {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.waterfall-single-bar-stage {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.waterfall-chips-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.25rem 0;
}

.waterfall-name-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background-color: var(--pine-soft);
  border: 1px solid var(--pine-border);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.25;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, border-color 220ms ease;
}

#waterfall-panel[data-active-mode="ifd"] .waterfall-name-chip {
  background-color: var(--bronze-soft);
  border-color: var(--bronze-border);
}

.waterfall-name-chip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.waterfall-single-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.waterfall-single-result {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
}

.waterfall-single-amount {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.waterfall-single-amount.icc {
  color: var(--pine);
}

.waterfall-single-amount.ifd {
  color: var(--bronze);
}

.waterfall-single-label {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

/* /deductions Collapsible Cards ("En savoir plus") */
.guide-cards {
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guide-item {
  padding: 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-item-head {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guide-item-head .guide-item-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.guide-item-head .guide-item-caps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-left: 0;
  border-left: none;
}

.guide-item-head .guide-cap-block {
  flex-direction: row;
  align-items: baseline;
  gap: 0.45rem;
}

.guide-more {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.guide-more-summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pine);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.guide-more-summary::-webkit-details-marker {
  display: none;
}

.guide-more-summary::after {
  content: '+';
  font-weight: 700;
}

.guide-more[open] .guide-more-summary::after {
  content: '−';
}

.guide-more .guide-item-desc {
  margin-top: 0.65rem;
}

/* ==========================================================================
   16.12 CALM LAKE SURFACE BACKGROUND (body.bg-lake) VS SKY ROLLBACK (body.bg-sky)
   - Rollback: switch <body class="bg-lake"> to <body class="bg-sky"> on line 70 of public/index.html
   ========================================================================== */
body.bg-lake {
  --bg: #F7F5F0;
  background-color: #F7F5F0;
}

body.bg-lake .hero-band {
  background: #F7F5F0;
}

body.bg-lake .cta-band .cta-band-inner,
body.bg-lake .lake-cta-band .lake-cta-inner {
  background: #F7F5F0;
}

body.bg-lake .page-hero {
  background: #F7F5F0;
}

body.bg-lake:has(#app-shell) {
  background: #F7F5F0;
}

body.bg-lake .lakeside-atmo {
  display: none !important;
}

body.bg-lake .lake-waves-bg {
  display: block;
}

/* Rollback setting: body.bg-sky restores the original sky/cloud Lakeside Atmosphere */
body.bg-sky .lakeside-atmo {
  display: block;
}

body.bg-sky .lake-waves-bg {
  display: none !important;
}

.lake-waves-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lake-waves-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lake-wave-group {
  will-change: transform;
}

.lake-wave-1 {
  animation: lakeWaveDrift1 29s ease-in-out infinite;
}

.lake-wave-2 {
  animation: lakeWaveDrift2 23s ease-in-out -4s infinite;
}

.lake-wave-3 {
  animation: lakeWaveDrift3 19s ease-in-out -9s infinite;
}

.lake-wave-4 {
  animation: lakeWaveDrift4 26s ease-in-out -13s infinite;
}

.lake-wave-5 {
  animation: lakeWaveDrift5 21s ease-in-out -6s infinite;
}

.lake-wave-6 {
  animation: lakeWaveDrift6 30s ease-in-out -17s infinite;
}

.lake-waves-bg.is-paused .lake-wave-group {
  animation-play-state: paused !important;
}

@keyframes lakeWaveDrift1 {
  0%, 100% {
    transform: translate3d(-14px, -4px, 0);
  }
  50% {
    transform: translate3d(14px, 4px, 0);
  }
}

@keyframes lakeWaveDrift2 {
  0%, 100% {
    transform: translate3d(16px, 5px, 0);
  }
  50% {
    transform: translate3d(-15px, -5px, 0);
  }
}

@keyframes lakeWaveDrift3 {
  0%, 100% {
    transform: translate3d(-18px, 6px, 0);
  }
  50% {
    transform: translate3d(16px, -6px, 0);
  }
}

@keyframes lakeWaveDrift4 {
  0%, 100% {
    transform: translate3d(15px, -7px, 0);
  }
  50% {
    transform: translate3d(-17px, 7px, 0);
  }
}

@keyframes lakeWaveDrift5 {
  0%, 100% {
    transform: translate3d(-12px, 5px, 0);
  }
  50% {
    transform: translate3d(15px, -5px, 0);
  }
}

@keyframes lakeWaveDrift6 {
  0%, 100% {
    transform: translate3d(13px, -4px, 0);
  }
  50% {
    transform: translate3d(-13px, 4px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lake-wave-group {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

/* 14.7 Print / PDF Stylesheet */
@media print {
  .site-header,
  .site-footer,
  .comp-photo-banner,
  .progress-bar-wrap,
  .mobile-live-bar,
  .print-btn,
  .results-actions,
  .lakeside-atmo,
  .lake-waves-bg,
  #advisor-cta-container {
    display: none !important;
  }
  body,
  .app-shell {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   17. PHASE 11 — SIMPLIFIED HOME PAGE & SINGLE-COLUMN COMPARATOR
   - One centered column (max 640px) for /comparateur
   - Soft sky gradient at top of home hero only
   - Full-width radio rows, compact grouped fields, fixed bottom bar
   ========================================================================== */

/* 17.1 Home Page Phase 11 Rules */
.page-fade-in {
  opacity: 1 !important;
  animation: none !important;
}

.hero-band {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-small-facts {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.how-3steps-grid,
.how-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.how-step-item,
.how-row-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.how-step-title,
.how-row-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.how-step-text,
.how-row-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 820px) {
  .how-3steps-grid,
  .how-row-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* 17.2 Comparator Top Bar & Centered Single Column (max 640px) */
body.comp-body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.comp-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
}

.comp-topbar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comp-brand {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.comp-step-counter {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.comp-progress-track {
  width: 100%;
  height: 2px;
  background-color: var(--line);
  overflow: visible;
  position: relative;
}

.comp-progress-fill {
  height: 100%;
  background-color: var(--pine);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.comp-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--pine);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2.5px var(--bg);
}

/* Desktop-only bottom-left corner living blob cluster (max 260px wide, opacity 1, hidden on phones) */
.comp-corner-blobs {
  position: fixed;
  left: -34px;
  bottom: -28px;
  width: 248px;
  height: 248px;
  max-width: 260px;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

@media (max-width: 1140px) {
  .comp-corner-blobs {
    display: none !important;
  }
}

.comp-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 4.75rem;
  display: flex;
  flex-direction: column;
}

/* Session Resume Choice Banner: thin-bordered card with 48px orbit illustration on the left */
.comp-resume-banner {
  margin-bottom: 0.95rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.comp-resume-orbit {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-resume-orbit-svg {
  width: 48px;
  height: 48px;
  display: block;
  overflow: visible;
}

.comp-resume-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.comp-resume-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.comp-resume-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Question Typography (Hanken Grotesk 800, 28–38px) */
.comp-screen {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: compFadeIn 180ms ease-out;
}

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

.comp-q-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem); /* 28px to 36px */
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.comp-q-title:focus {
  outline: none;
}

.comp-q-hint {
  margin: -0.25rem 0 0.15rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.comp-error-line {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Full-Width Answer Rows with Radio Circle */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-row {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 100ms ease;
}

.radio-row:hover {
  border-color: var(--pine);
}

.radio-row:active {
  transform: scale(0.992);
}

.radio-row.is-selected {
  background: var(--pine-soft);
  border-color: var(--pine);
}

.radio-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--muted);
  background: var(--surface);
  position: relative;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.radio-row.is-selected .radio-circle {
  border-color: var(--pine);
  background: var(--pine);
  box-shadow: inset 0 0 0 4px var(--surface);
}

.radio-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.radio-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.radio-sub {
  font-size: 0.825rem;
  line-height: 1.3;
  color: var(--muted);
}

/* Inline Cards, Stepper & Pills */
.comp-inline-card {
  padding: 0.7rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.comp-inline-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.comp-inline-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.comp-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.comp-stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comp-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.comp-stepper-val {
  min-width: 26px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.comp-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.comp-pill {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}

.comp-pill-sm {
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
}

.comp-pill.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: #FFFFFF;
}

/* Grouped Person Card & Choice Grids */
.comp-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.comp-person-card {
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.comp-person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.comp-person-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.comp-header-with-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

/* Large & Compact Amount Fields ("CHF" prefix + unit suffix + live helper) */
.comp-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.comp-field-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.comp-amount-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 0.75rem;
  height: 44px;
  transition: border-color 140ms ease;
}

.comp-amount-wrap.is-large {
  height: 54px;
  padding: 0 0.95rem;
}

.comp-amount-wrap:focus-within {
  border-color: var(--pine);
}

.comp-amount-prefix {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.5rem;
  user-select: none;
}

.comp-amount-wrap.is-large .comp-amount-prefix {
  font-size: 1rem;
}

.comp-amount-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
}

.comp-amount-wrap.is-large .comp-amount-input {
  font-size: 1.35rem;
}

.comp-amount-suffix {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.45rem;
  white-space: nowrap;
  user-select: none;
}

.comp-amount-helper {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

/* Compact Choice Buttons (for 2-earner transport & lunch) */
.comp-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.4rem;
}

.comp-choice-btn {
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  transition: all 140ms ease;
}

.comp-choice-btn.is-selected {
  background: var(--pine-soft);
  border-color: var(--pine);
}

.comp-choice-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.comp-choice-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.comp-teletravail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.comp-day-pills {
  display: inline-flex;
  gap: 0.3rem;
}

.comp-day-pill {
  width: 34px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.comp-day-pill.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: #FFFFFF;
}

/* Small "Bon à savoir" Box & Skip Text Buttons */
.comp-tip-box {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: var(--pine-soft);
  border: 1px solid var(--pine-border);
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--ink);
}

.comp-skip-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.15rem;
}

.comp-skip-btn {
  padding: 0.3rem 0;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.comp-skip-btn:hover {
  color: var(--ink);
}

.comp-reveal-fields {
  padding-top: 0.25rem;
}

/* 17.3 Phase 12C Premium Analysis Screen (Centered Column max 560px, Orb + 2 Counters + 6-Line Checklist) */
body.is-analysis-mode .comp-corner-blobs {
  display: none !important;
}

body.is-analysis-mode .comp-main {
  max-width: 560px;
  padding: 1rem 1.25rem 0.75rem;
}

.comp-analysis {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.an-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.an-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.38rem, 2.5vw, 1.78rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--ink);
  outline: none;
}

.an-orb {
  position: relative;
  width: 236px;
  height: 236px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-orb-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.an-orb-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 3.1rem;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 3px 22px rgba(10, 28, 19, 0.52), 0 1px 6px rgba(10, 28, 19, 0.4);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.an-pct-sym {
  font-size: 0.52em;
  margin-left: 0.06em;
  opacity: 0.92;
}

.an-counters {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.an-counter-card {
  position: relative;
  overflow: hidden;
  padding: 0.55rem 0.85rem 0.68rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.1rem;
  transition: opacity 240ms ease, border-color 240ms ease;
}

.an-counter-card.is-icc {
  background: var(--pine-soft);
  border-color: var(--pine-border);
}

.an-counter-card.is-ifd {
  background: var(--bronze-soft);
  border-color: var(--bronze-border);
}

.an-counter-card.is-dimmed {
  opacity: 0.42;
}

.an-counter-card.is-active,
.an-counter-card.is-done {
  opacity: 1;
}

.an-counter-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.2;
}

.an-counter-val {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.an-counter-val.icc {
  color: var(--pine);
}

.an-counter-val.ifd {
  color: var(--bronze);
}

.an-counter-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(18, 41, 30, 0.08);
}

.an-counter-bar {
  height: 100%;
  width: 0%;
}

.an-counter-card.is-icc .an-counter-bar {
  background: var(--pine);
}

.an-counter-card.is-ifd .an-counter-bar {
  background: var(--bronze);
}

.an-checklist {
  width: 100%;
  margin: 0;
  padding: 0.25rem 0.85rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
}

.an-check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: left;
}

.an-check-row:last-child {
  border-bottom: none;
}

.an-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.an-check-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.an-check-row.is-pending .an-check-ring {
  stroke: var(--line-strong);
  stroke-width: 1.6;
  fill: none;
}

.an-check-row.is-pending .an-check-tick {
  stroke: transparent;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.an-check-row.is-pending .an-check-label {
  color: var(--muted);
  font-weight: 500;
}

.an-check-row.is-active .an-check-ring {
  stroke: var(--pine);
  stroke-width: 1.9;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 18 34;
  transform-origin: 10px 10px;
  animation: anCheckSpin 0.9s linear infinite;
}

.an-check-row.is-active .an-check-tick {
  stroke: transparent;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.an-check-row.is-active .an-check-label {
  color: var(--ink);
  font-weight: 700;
}

.an-check-row.is-done .an-check-ring {
  stroke: var(--pine);
  stroke-width: 1.6;
  fill: var(--pine);
}

.an-check-row.is-done .an-check-tick {
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.an-check-row.is-done .an-check-label {
  color: var(--ink);
  font-weight: 500;
}

@keyframes anCheckSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.an-check-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-check-val {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.an-check-row.is-done .an-check-val {
  opacity: 1;
  transform: translateY(0);
}

.an-skip-wrap {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-skip-link {
  font-size: 0.84rem;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.an-skip-link.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 600px), (max-height: 700px) {
  body.is-analysis-mode .comp-main {
    padding: 0.45rem 0.75rem 0.35rem;
  }
  .comp-analysis {
    gap: 0.42rem;
    padding: 0.1rem 0;
  }
  .an-brand {
    font-size: 0.68rem;
  }
  .an-title {
    font-size: 1.22rem;
  }
  .an-orb {
    width: 220px;
    height: 220px;
  }
  .an-orb-pct {
    font-size: 2.75rem;
  }
  .an-counters {
    gap: 0.45rem;
  }
  .an-counter-card {
    padding: 0.42rem 0.65rem 0.52rem;
  }
  .an-counter-label {
    font-size: 0.69rem;
  }
  .an-counter-val {
    font-size: 0.98rem;
  }
  .an-checklist {
    padding: 0.18rem 0.65rem;
  }
  .an-check-row {
    padding: 0.22rem 0;
    font-size: 0.76rem;
    gap: 0.42rem;
  }
  .an-check-val {
    font-size: 0.75rem;
  }
  .an-skip-wrap {
    min-height: 16px;
  }
  .an-skip-link {
    font-size: 0.78rem;
  }
}

/* 17.4 Result Screen (Strict 6-Item Order) */
.comp-result {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-bottom: 2.5rem;
  animation: compFadeIn 220ms ease-out;
}

.comp-totals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.comp-total-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.comp-card-blob-svg {
  position: absolute;
  right: -14px;
  bottom: -16px;
  width: 155px;
  height: 108px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.comp-total-card.is-icc {
  border-color: var(--pine-border);
  background: var(--pine-soft);
}

.comp-total-card.is-ifd {
  border-color: var(--bronze-border);
  background: var(--bronze-soft);
}

.comp-total-label {
  position: relative;
  z-index: 1;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.comp-total-amount {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.comp-total-amount.icc,
strong.icc,
.num.icc {
  color: var(--pine);
}

.comp-total-amount.ifd,
strong.ifd,
.num.ifd {
  color: var(--bronze);
}

.comp-result-sentence {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.comp-top3-card,
.comp-callback-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comp-callback-card.is-success {
  align-items: center;
  text-align: center;
  padding: 1.65rem 1.35rem;
}

.comp-success-star-wrap {
  width: 110px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-success-star {
  width: 110px;
  height: 80px;
  overflow: visible;
}

.comp-section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.comp-top3-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comp-top3-row {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.comp-top3-amounts {
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.comp-details-collapse {
  margin-top: 0.25rem;
}

.comp-details-summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pine);
  user-select: none;
}

.comp-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.comp-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comp-detail-table th,
.comp-detail-table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.comp-detail-table th.num,
.comp-detail-table td.num {
  text-align: right;
  white-space: nowrap;
}

.comp-detail-total td {
  font-weight: 800;
  border-top: 1.5px solid var(--ink);
  border-bottom: none;
}

.comp-tou-note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bronze-soft);
  border: 1px solid var(--bronze-border);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.comp-callback-lead {
  margin: -0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.comp-rdv-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comp-text-input {
  width: 100%;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: 9px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--ink);
}

.comp-text-input.has-error {
  border-color: var(--error);
}

.comp-creneau-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.comp-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.825rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.comp-consent-label input {
  margin-top: 0.2rem;
}

.comp-consent-label a {
  color: var(--pine);
  text-decoration: underline;
}

.comp-submit-btn {
  width: 100%;
  justify-content: center;
}

.comp-restart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 17.5 Fixed Bottom Bar (Never Hides Fields, Label Hidden on Mobile) */
.comp-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.comp-bottombar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.comp-back-btn {
  padding: 0.45rem 0.25rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.comp-back-btn:hover {
  color: var(--ink);
}

.comp-running-total {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.running-total-label {
  color: var(--muted);
  font-weight: 600;
}

.running-total-amounts {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
}

.running-sep {
  color: var(--muted);
}

.comp-next-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .running-total-label {
    display: none;
  }
  .comp-main {
    padding: 0.85rem 1rem 4.35rem;
  }
  .comp-bottombar-inner {
    padding: 0 1rem;
    height: 56px;
  }
  .comp-q-title {
    font-size: 1.65rem; /* ~26.5px on 360px phone */
  }
  .radio-row {
    padding: 0.62rem 0.85rem;
  }
  .comp-person-card {
    padding: 0.6rem 0.75rem;
    gap: 0.4rem;
  }
  .comp-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .comp-choice-btn {
    padding: 0.42rem 0.55rem;
  }
  .comp-totals-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   18. PHASE 12 — "LIVING SHAPES" DESIGN SYSTEM
   - Josefin Sans (200/300/400) for brand, hero title, section titles, step titles, CTA title
   - Hanken Grotesk for everything else
   - Transparent header over hero, center-growing nav underline, pill Commencer button,
     mobile "Menu" word opening full-screen panel with links in Josefin Sans 300
   - Hero stage with curved bottom edge (clip-path ellipse), 4 ghost + 7 colored blobs,
     white title with 0.06s letter stagger, and round scroll cue
   - "Comment ça marche" 3 line-art SVG illustrations (stroke-dashoffset reveal + live motion)
   - FAQ with thin rules and rotating chevron
   - Final CTA with curved top edge and second blob scene
   - Inner pages (.page-hero) with 3 colored + 1 ghost blob scene and curved bottom edge
   ========================================================================== */

/* 18.1 Header & Brand Alignment (All Pages + /comparateur) */
.brand-wordmark,
.comp-brand {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled,
.site-header.has-line {
  background: var(--header-glass);
  border-bottom-color: var(--line);
}

.site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.1rem;
}

.site-nav .nav-link {
  position: relative;
  padding: 0.35rem 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: var(--pine);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after,
.site-nav .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.btn-header,
.ls-btn-pill,
.btn.btn-primary {
  border-radius: 999px !important;
  padding: 0.68rem 1.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.btn-header::after,
.ls-btn-pill::after,
.ls-btn-white::after {
  display: none !important;
  content: none !important;
}

/* Mobile Menu Button (word "Menu", no hamburger icon) & Full-Screen Panel */
.mobile-menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn::before,
.mobile-menu-btn::after {
  display: none !important;
  content: none !important;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem 2rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.mobile-menu-link {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  font-size: clamp(1.65rem, 5.5vw, 2.35rem) !important;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}

.mobile-menu-link[aria-current="page"] {
  color: var(--pine);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 1.25rem;
    height: 64px;
    gap: 0.75rem;
  }
  .site-nav,
  .header-cta-wrap .btn-header {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 18.2 Hero Stage ("Living Shapes" — Phase 12B exact reference height & opaque blobs) */
.ls-hero {
  position: relative;
  width: 100%;
  min-height: min(88vh, 820px);
  padding: 6.5rem 1.5rem 5.5rem;
  background-color: var(--hero-stage-bg);
  clip-path: ellipse(130% 100% at 50% 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ls-blob-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0);
}

.ls-blob-ghost {
  opacity: 1;
}

.ls-blob-color {
  opacity: 1;
}

.ls-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  padding: 1.5rem 1rem;
}

.ls-hero-title {
  margin: 0;
  font-family: var(--font-display);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 4px 28px rgba(10, 28, 19, 0.45), 0 1px 6px rgba(10, 28, 19, 0.35);
}

.ls-title-line {
  display: block;
  line-height: 1.08;
}

.ls-line-top {
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  letter-spacing: 0.12em;
}

.ls-line-main {
  font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 4.1rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0.1rem 0;
}

.ls-line-sub {
  font-weight: 300;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  letter-spacing: 0.08em;
}

/* Letter-by-letter stagger animation (rise + slight rotation + blur, 0.06s stagger) */
.ls-hero-title .char {
  display: inline-block;
  will-change: transform, filter;
  animation: lsCharEnter 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.ls-hero-title .char-space {
  width: 0.32em;
}

@keyframes lsCharEnter {
  0% {
    opacity: 0.01;
    transform: translateY(22px) rotate(4deg);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    filter: blur(0);
  }
}

/* Round scroll cue at bottom of hero */
.ls-scroll-cue {
  position: absolute;
  bottom: 1.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #FFFFFF;
  background: rgba(18, 41, 30, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: lsScrollBounce 2.6s ease-in-out infinite;
  transition: background-color 180ms ease;
}

.ls-scroll-cue:hover {
  background: rgba(18, 41, 30, 0.45);
}

@keyframes lsScrollBounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

/* 18.3 Intro Block Under the Hero */
.ls-intro-section {
  padding: 3.5rem 1.5rem 2.75rem;
  text-align: center;
}

.ls-intro-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ls-intro-lead {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.8vw, 1.32rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}

.ls-intro-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

/* 18.4 Section Titles & "Comment ça marche" 3 Line-Art SVG Illustrations */
.section-title,
.cta-band-title,
.ls-cta-title {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  letter-spacing: 0.04em;
}

.ls-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ls-section-header .section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  color: var(--ink);
  margin: 0;
}

.ls-how-section {
  padding: 3.5rem 0 4.5rem;
}

.ls-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
}

.ls-how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.75rem 2.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  box-shadow: var(--card-shadow);
}

.ls-illus-wrap {
  width: 100%;
  max-width: 220px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.how-illus-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Stroke-dashoffset reveal on scroll */
.how-illus-svg .draw-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.how-illus-svg.is-drawn .draw-path {
  stroke-dashoffset: 0;
}

/* Illustration 1: Orbiting dots around (110, 80) */
.illus-orbit-outer {
  transform-origin: 110px 80px;
  animation: lsOrbitSpin 11s linear infinite;
}

.illus-orbit-inner {
  transform-origin: 110px 80px;
  animation: lsOrbitSpinReverse 7.5s linear infinite;
}

@keyframes lsOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lsOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Illustration 2: Dot travels down, splits into ICC (pine) and IFD (bronze), end dots grow */
.travelling-dot.dot-icc {
  offset-path: path('M 110 20 L 110 72 C 110 100, 62 100, 62 128');
  animation: lsBranchTravel 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.travelling-dot.dot-ifd {
  offset-path: path('M 110 20 L 110 72 C 110 100, 158 100, 158 128');
  animation: lsBranchTravel 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.branch-end-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: lsBranchEndGrow 2.2s ease-in-out infinite;
}

@keyframes lsBranchEndGrow {
  0%, 58%, 100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.48);
  }
}

@keyframes lsBranchTravel {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* Illustration 3: Radial star pulsing end dots */
.star-end-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: lsStarPulse 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes lsStarPulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.32);
    opacity: 1;
  }
}

.how-step-title {
  margin: 0;
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: 1.38rem !important;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.how-step-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--muted);
}

@media (max-width: 900px) {
  .ls-how-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

/* 18.5 FAQ: 4 Questions, Thin Rules, Rotating Chevron */
.ls-faq-section {
  padding: 3.5rem 0 4.5rem;
}

.ls-faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.ls-faq-list {
  border-top: 1px solid var(--line);
}

.ls-faq-list .faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.ls-faq-list .faq-trigger {
  width: 100%;
  padding: 1.35rem 0.25rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.ls-faq-list .faq-indicator {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  flex-shrink: 0;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.faq-chevron {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.ls-faq-list .faq-panel-inner {
  padding: 0 0.25rem 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* 18.6 Final CTA: Second Blob Scene + Curved Top Edge + White Button */
.ls-cta {
  position: relative;
  width: 100%;
  min-height: 430px;
  padding: 6rem 1.5rem 5.5rem;
  background-color: var(--hero-stage-bg);
  clip-path: ellipse(130% 100% at 50% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 1.5rem;
}

.ls-cta-overlay {
  position: relative;
  z-index: 2;
  max-width: 420px;
  text-align: center;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.ls-cta-title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(1.5rem, 2.55vw, 2.05rem);
  line-height: 1.2;
  text-shadow: 0 4px 26px rgba(10, 28, 19, 0.55), 0 1px 6px rgba(10, 28, 19, 0.45);
}

.ls-cta-sub {
  margin: 0;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.96rem;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(10, 28, 19, 0.5);
}

.ls-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 2rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: #12291E;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 32px -8px rgba(10, 28, 19, 0.32);
  transition: transform 180ms ease, background-color 180ms ease;
}

.ls-btn-white:hover {
  transform: translateY(-1px);
  background: #F5F7F4;
}

/* 18.7 Inner Pages & Landing Pages (.page-hero): 3 colored + 1 ghost blob scaled to 0.5, aligned right of title */
.page-hero {
  position: relative;
  padding: 7.25rem 1.5rem 4.25rem !important;
  background-color: var(--hero-stage-bg) !important;
  clip-path: ellipse(135% 100% at 50% 0%);
  overflow: hidden;
  border-bottom: none !important;
}

.page-hero > .site-container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
  padding: 1.25rem 1.25rem;
}

.page-hero-title {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 18px var(--hero-stage-bg), 0 1px 4px var(--hero-stage-bg);
  max-width: 720px;
  margin: 0 0 0.75rem !important;
}

.page-hero-title em {
  font-style: normal;
  color: var(--pine) !important;
}

.page-hero-lead {
  color: var(--ink-secondary) !important;
  text-shadow: 0 1px 12px var(--hero-stage-bg);
  max-width: 640px;
  margin: 0 !important;
}

.page-hero .hero-cta-row,
.page-hero .page-hero-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .page-hero-blob-svg {
    opacity: 0.18;
  }
}

/* 18.8 Mobile Adjustments & prefers-reduced-motion */
@media (max-width: 600px) {
  .site-header-inner {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
  .brand-wordmark,
  .comp-brand {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
  }
  .mobile-menu-btn {
    padding: 0.4rem 0.78rem;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }
  .ls-hero {
    min-height: min(82vh, 620px);
    padding: 5.5rem 0.75rem 4.5rem;
    clip-path: ellipse(155% 100% at 50% 0%);
  }
  .ls-hero-overlay {
    padding: 1.25rem 0.25rem;
    width: 100%;
  }
  .ls-line-top {
    font-size: clamp(1.25rem, 5.2vw, 1.65rem);
    letter-spacing: 0.08em;
  }
  .ls-line-main {
    font-size: clamp(1.85rem, 8.2vw, 2.75rem);
    letter-spacing: 0.08em;
  }
  .ls-line-sub {
    font-size: clamp(1.18rem, 4.8vw, 1.55rem);
    letter-spacing: 0.06em;
  }
  .ls-cta {
    clip-path: ellipse(155% 100% at 50% 100%);
    padding: 4.75rem 1rem 4.25rem;
  }
  .page-hero {
    padding: 5.75rem 1rem 3.5rem !important;
    clip-path: ellipse(155% 100% at 50% 0%);
  }
  .page-hero > .site-container {
    padding: 1rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-hero-title .char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .ls-scroll-cue,
  .illus-orbit-outer,
  .illus-orbit-inner,
  .travelling-dot.dot-icc,
  .travelling-dot.dot-ifd,
  .branch-end-dot,
  .star-end-dot,
  .an-check-row.is-active .an-check-ring {
    animation: none !important;
  }
  .how-illus-svg .draw-path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .trust-slide-panel,
  .trust-slide-content,
  .pour-qui-track,
  .trust-chevron,
  .faq-chevron {
    transition: none !important;
  }
}

/* ==========================================================================
   19. PHASE 13 — COMPARÉDUIT BRAND LOGO & INTERACTIVE TRUST SECTIONS
   ========================================================================== */

/* 19.1 Phase 13B — Comparéduit Horizontal & Stacked Logo Sizing & Smooth Scroll Transition */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand-logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease, width 0.3s ease;
}

.brand-logo-dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand-logo-dark {
    display: block;
  }
}

/* Header: 88px desktop height, logo 44px (min-width ~180px), shrinks smoothly to 36px (0.3s) when scrolled */
.site-header-inner {
  height: 88px;
  align-items: center;
  transition: height 0.3s ease;
}

.site-header .brand-logo-img {
  height: 44px;
  width: auto;
  min-width: 180px;
}

.site-header.is-scrolled .brand-logo-img {
  height: 36px;
  width: auto;
  min-width: 0;
}

/* Tablet (601px - 980px, including 768px): 40px logo, shrinks to 36px when scrolled */
@media (max-width: 980px) {
  .site-header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
  }
  .site-header .brand-logo-img {
    height: 40px;
    width: auto;
    min-width: 0;
  }
  .site-header.is-scrolled .brand-logo-img {
    height: 36px;
    width: auto;
  }
}

/* Mobile (<= 600px, including 360px): 36px logo (word >= 16px tall), stays 36px when scrolled */
@media (max-width: 600px) {
  .site-header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }
  .site-header .brand-logo-img,
  .site-header.is-scrolled .brand-logo-img {
    height: 36px;
    width: auto;
    min-width: 0;
  }
}

/* Mobile full-screen menu: stacked logo 64px at the top */
.mobile-menu-overlay {
  top: 0 !important;
  padding: 1.25rem 1.75rem 2.25rem !important;
  overflow-y: auto;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.mobile-menu-overlay .mobile-menu-logo-img {
  height: 64px;
  width: auto;
}

body.menu-open .site-header {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.menu-open .site-header .brand-logo-link {
  opacity: 0;
  pointer-events: none;
}

/* Footer: stacked logo, 72px tall, with tagline "Comparez. Déduisez. Payez moins." under it */
.site-footer .brand-logo-img,
.footer-logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.footer-brand .brand-logo-link {
  margin-bottom: 0.65rem;
}

/* Comparator top bar: horizontal lockup 32px */
.comp-topbar-inner {
  height: 56px;
}

.comp-topbar .brand-logo-img,
.comp-logo-img {
  height: 32px;
  width: auto;
}

/* Analysis screen: horizontal lockup 28px, centered */
.an-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.an-brand .brand-logo-img,
.an-brand-logo {
  height: 28px;
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-img,
  .site-header-inner {
    transition: none !important;
  }
}

/* 19.2 Tagline & Section Headers (Josefin Sans 200 + Thin Vertical Line + Optional Mini Illustration on B, C, F) */
.ls-intro-tagline {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}

.ls-home .ls-section-header {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 2.15rem !important;
}

.ls-home .ls-section-header::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  background: var(--pine);
  opacity: 0.55;
  margin: 0.65rem auto 0;
}

.ls-home .ls-section-header .section-title {
  font-family: var(--font-display) !important;
  font-weight: 200 !important;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center !important;
}

.ls-home .ls-header-with-illus {
  display: grid !important;
  grid-template-columns: auto auto;
  justify-content: center !important;
  align-items: center !important;
  column-gap: 0.65rem;
  row-gap: 0.5rem;
}

.ls-home .ls-header-with-illus::after {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0.15rem auto 0;
}

.section-mini-illus {
  display: inline-block;
  width: 48px;
  height: 36px;
  margin: 0;
  flex-shrink: 0;
}

/* 19.3 Universal Sliding Panel Mechanism (grid-template-rows: 0fr -> 1fr, 0.45s ease, content fading + rising 12px) */
.trust-slide-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.trust-slide-panel.is-open {
  grid-template-rows: 1fr;
}

.trust-slide-overflow {
  overflow: hidden;
  min-height: 0;
}

.trust-slide-content {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0.45s;
}

.trust-slide-panel.is-open .trust-slide-content {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0s;
}

.trust-chevron {
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

/* 19.4 Section 3A — "Comment ça marche" Interactive Cards & Full-Width Desktop Panel / Mobile Inline Panel */
.ls-how-card-btn {
  appearance: none;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 1.75rem 1.4rem 1.4rem;
  transition:
    border-color 0.28s ease,
    background-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.ls-how-card-btn:hover {
  border-color: var(--pine);
  transform: translateY(-2px);
}

.ls-how-card-btn:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.ls-how-card-btn.is-open {
  border-color: var(--pine);
  background: var(--pine-soft);
  box-shadow: 0 12px 30px -16px rgba(29, 107, 69, 0.28);
}

.how-step-toggle {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pine);
}

.ls-how-card-btn.is-open .trust-chevron {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .ls-how-grid {
    row-gap: 0;
  }
  .ls-how-grid > .ls-how-card-btn {
    order: 1;
  }
  .ls-how-grid > .how-detail-panel {
    grid-column: 1 / -1;
    order: 2;
  }
}

@media (max-width: 767px) {
  .ls-how-grid {
    row-gap: 0;
  }
  .ls-how-card-btn {
    margin-bottom: 0.85rem;
  }
  .how-detail-box {
    margin-bottom: 0.85rem;
  }
}

.how-detail-box {
  position: relative;
  margin-top: 1rem;
  padding: 1.6rem 1.85rem;
  border-radius: 18px;
  border: 1.5px solid var(--pine);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 14px 36px -18px rgba(17, 36, 26, 0.16);
}

@media (min-width: 768px) {
  .how-detail-box::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--pointer-x, 50%);
    width: 14px;
    height: 14px;
    background: var(--surface);
    border-top: 1.5px solid var(--pine);
    border-left: 1.5px solid var(--pine);
    transform: translateX(-50%) rotate(45deg);
  }
}

.how-detail-heading {
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.how-screens-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.how-screens-list strong {
  color: var(--ink);
  font-weight: 600;
}

.how-detail-note {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine);
}

.how-diff-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.how-diff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.how-diff-label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}

.how-diff-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.how-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.how-diff-badge.icc {
  background: var(--pine-soft);
  color: var(--pine);
  border: 1px solid rgba(29, 107, 69, 0.25);
}

.how-diff-badge.ifd {
  background: var(--bronze-soft);
  color: var(--bronze);
  border: 1px solid rgba(154, 101, 56, 0.25);
}

.how-advisor-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.how-docs-title {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.how-docs-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* 19.5 Section 3C — "Pour qui ?" (3 Large Clickable Tabs + Horizontal Slide translateX) */
.ls-trust-section {
  padding: 4.25rem 0;
}

.pour-qui-tabs {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 680px) {
  .pour-qui-tabs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.pour-qui-tab {
  appearance: none;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.pour-qui-tab:hover {
  border-color: var(--pine);
  transform: translateY(-1px);
}

.pour-qui-tab:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.pour-qui-tab.is-open {
  background: var(--pine);
  border-color: var(--pine);
  color: #FFFFFF;
}

.pour-qui-tab-title {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.pour-qui-tab-sub {
  font-size: 0.83rem;
  color: var(--muted);
}

.pour-qui-tab.is-open .pour-qui-tab-sub {
  color: rgba(255, 255, 255, 0.86);
}

.pour-qui-slide-panel {
  max-width: 880px;
  margin: 0 auto;
}

.pour-qui-viewport {
  overflow: hidden;
  width: 100%;
  padding-top: 0.9rem;
}

.pour-qui-track {
  display: flex;
  width: 300%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.pour-qui-slide {
  width: 33.333333%;
  flex: 0 0 33.333333%;
  padding: 0 0.15rem;
  box-sizing: border-box;
}

.pour-qui-card {
  padding: 1.65rem 1.85rem;
  border-radius: 18px;
  border: 1.5px solid var(--pine);
  background: var(--surface);
  text-align: left;
}

.pour-qui-card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.pour-qui-card-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.pour-qui-card-cta {
  margin-top: 1.1rem;
}

/* 19.6 Section 3B — "Les déductions que nous vérifions" (10 Deduction Chips Grid + Sliding Cap Panel) */
.ded-chips-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 0.65rem;
  row-gap: 0;
}

@media (min-width: 900px) {
  .ded-chips-grid > .ded-row-1 {
    order: 1;
  }
  .ded-chips-grid > .ded-panel-row-1 {
    grid-column: 1 / -1;
    order: 2;
  }
  .ded-chips-grid > .ded-row-2 {
    order: 3;
  }
  .ded-chips-grid > .ded-panel-row-2 {
    grid-column: 1 / -1;
    order: 4;
  }
}

@media (max-width: 899px) {
  .ded-chips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ded-chips-grid > .ded-detail-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .ded-chips-grid {
    grid-template-columns: 1fr;
  }
}

.ded-chip-btn {
  appearance: none;
  margin-bottom: 0.65rem;
  padding: 0.82rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.ded-chip-btn:hover {
  border-color: var(--pine);
  transform: translateY(-1px);
}

.ded-chip-btn:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.ded-chip-btn.is-open {
  background: var(--pine);
  border-color: var(--pine);
  color: #FFFFFF;
}

.ded-detail-box {
  margin: 0.35rem 0 0.45rem;
  padding: 1.35rem 1.55rem;
  border-radius: 16px;
  border: 1.5px solid var(--pine);
  background: var(--surface);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ded-detail-sentence {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink);
}

.ded-detail-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ded-cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.8rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.ded-cap-pill.icc {
  background: var(--pine-soft);
  color: var(--pine);
  border: 1px solid rgba(29, 107, 69, 0.25);
}

.ded-cap-pill.ifd {
  background: var(--bronze-soft);
  color: var(--bronze);
  border: 1px solid rgba(154, 101, 56, 0.25);
}

.ded-more-link {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 19.7 Section 3F — "Vos données" (Short Band of 4 Clickable Privacy Pills) */
.data-band-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0.65rem;
  row-gap: 0;
}

@media (min-width: 820px) {
  .data-band-grid > .data-band-btn {
    order: 1;
  }
  .data-band-grid > .data-detail-panel {
    grid-column: 1 / -1;
    order: 2;
  }
}

@media (max-width: 819px) {
  .data-band-grid {
    grid-template-columns: 1fr;
  }
  .data-band-grid > .data-detail-panel {
    grid-column: 1 / -1;
  }
}

.data-band-btn {
  appearance: none;
  margin-bottom: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.data-band-btn:hover {
  border-color: var(--pine);
}

.data-band-btn:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.data-band-btn.is-open {
  background: var(--pine-soft);
  border-color: var(--pine);
  color: var(--pine);
}

.data-detail-box {
  margin-top: 0.35rem;
  padding: 1.15rem 1.4rem;
  border-radius: 14px;
  border: 1.5px solid var(--pine);
  background: var(--surface);
  text-align: left;
}

.data-detail-box p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* 19.8 Section 3D — "Ce que le comparateur ne fait pas" & Home FAQ Sliding Rows */
.limits-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.limit-item {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.limit-item.is-open,
.ls-faq-list .faq-item.is-open {
  background: var(--pine-soft);
  border-color: var(--pine);
  border-radius: 12px;
  padding: 0 0.85rem;
}

.limit-heading {
  margin: 0;
}

.limit-trigger {
  appearance: none;
  width: 100%;
  padding: 1.15rem 0.25rem;
  border: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.limit-trigger:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.limit-item.is-open .faq-chevron,
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.limit-panel-inner {
  padding: 0 0.25rem 1.15rem;
}

.limit-panel-inner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* 19.9 Section 3E — "Sources officielles" (2 External Link Cards) */
.sources-lead {
  margin: -0.5rem auto 1.6rem;
  max-width: 620px;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.source-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.source-card:hover {
  border-color: var(--pine);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(17, 36, 26, 0.16);
}

.source-card:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.source-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.source-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.source-card-ext {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1;
}

.source-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.source-card-url {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pine);
  word-break: break-all;
}

/* ==========================================================================
   20. Phase 14 — Status Start Buttons, Proof Blocks, Callback Forms (/api/rappel),
       Consent Banner (Consent Mode v2), /comparatif-direct, /3e-pilier-31-decembre,
       /impressum & /qui-sommes-nous (Inside "Vivant" Design)
   ========================================================================== */

[hidden] {
  display: none !important;
}

/* 20.1 Under-Hero 3 Status Start Buttons */
.status-start-block {
  max-width: 840px;
  margin: 1.75rem auto 0.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.status-start-label {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.status-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .status-start-grid {
    grid-template-columns: 1fr;
  }
}

.status-start-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.28rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.status-start-btn:hover {
  border-color: var(--pine);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(17, 36, 26, 0.18);
}

.status-start-btn:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.status-start-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.status-start-arrow {
  color: var(--pine);
  font-weight: 700;
}

.status-start-sub {
  font-size: 0.81rem;
  line-height: 1.38;
  color: var(--muted);
}

/* 20.2 Config-Driven Proof Blocks (Hidden While Empty) */
.proof-strip {
  max-width: 840px;
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.proof-pill strong {
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

/* 20.3 Callback Form Section ("Être rappelé gratuitement" -> POST /api/rappel) */
.rappel-section {
  padding: 4rem 0;
}

.rappel-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.25rem 2.4rem;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 40px -22px rgba(17, 36, 26, 0.14);
}

@media (max-width: 640px) {
  .rappel-card {
    padding: 1.5rem 1.25rem;
  }
}

.rappel-card-head {
  margin-bottom: 1.5rem;
}

.rappel-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pine);
}

.rappel-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 400;
  color: var(--ink);
}

.rappel-lead {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.rappel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

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

.rappel-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.rappel-field.is-full {
  grid-column: 1 / -1;
}

.rappel-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.rappel-input,
.rappel-select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  transition: border-color 0.2s ease;
}

.rappel-input:focus,
.rappel-select:focus {
  outline: none;
  border-color: var(--pine);
}

.rappel-creneau-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.rappel-creneau-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.74rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rappel-creneau-option input {
  accent-color: var(--pine);
}

.rappel-creneau-option:has(input:checked) {
  border-color: var(--pine);
  background: var(--pine-soft);
  color: var(--pine);
}

.rappel-consent-row {
  margin-top: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.rappel-consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--pine);
  flex-shrink: 0;
}

.rappel-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rappel-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.rappel-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rappel-feedback.is-error {
  background: rgba(180, 45, 45, 0.08);
  border: 1px solid rgba(180, 45, 45, 0.35);
  color: #9e2424;
}

.rappel-feedback.is-success {
  background: var(--pine-soft);
  border: 1.5px solid var(--pine);
  color: var(--ink);
}

/* 20.4 Consent Banner (Consent Mode v2 — Equal Visual Weight Buttons) */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 950;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.15rem 1.4rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 44px -16px rgba(17, 36, 26, 0.28);
}

.comp-body .consent-banner {
  bottom: 5.25rem;
}

.consent-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.consent-banner-copy {
  flex: 1 1 420px;
}

.consent-banner-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.consent-banner-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.consent-banner-link {
  color: var(--pine);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.consent-btn {
  min-width: 118px;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.consent-btn:hover {
  border-color: var(--pine);
  background: var(--pine-soft);
  color: var(--pine);
}

/* 20.5 /comparatif-direct — 9 Click-to-Open Accordion Sections + Live Sticky Totals */
.cd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .cd-layout {
    grid-template-columns: 1fr;
  }
}

.cd-sections-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cd-section-card {
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.cd-section-card.is-open {
  border-color: var(--pine);
  box-shadow: 0 12px 30px -18px rgba(17, 36, 26, 0.16);
}

.cd-section-trigger {
  appearance: none;
  width: 100%;
  padding: 1.05rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.cd-section-trigger:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: -2px;
}

.cd-section-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cd-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.cd-section-card.is-open .cd-section-num {
  background: var(--pine);
  color: #FFFFFF;
}

.cd-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.cd-section-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cd-section-summary {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pine);
  background: var(--pine-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.cd-section-body {
  padding: 0 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
}

.cd-field-grid {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

@media (max-width: 600px) {
  .cd-field-grid {
    grid-template-columns: 1fr;
  }
}

.cd-field-full {
  grid-column: 1 / -1;
}

.cd-summary-col {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cd-live-card {
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cd-totals-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cd-total-pill {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cd-total-pill.is-icc {
  background: var(--pine-soft);
  border-color: rgba(29, 107, 69, 0.28);
}

.cd-total-pill.is-ifd {
  background: var(--bronze-soft);
  border-color: rgba(154, 101, 56, 0.28);
}

.cd-total-pill-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.cd-total-pill-val {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cd-total-pill.is-icc .cd-total-pill-val {
  color: var(--pine);
}

.cd-total-pill.is-ifd .cd-total-pill-val {
  color: var(--bronze);
}

/* 20.6 /3e-pilier-31-decembre — Pillar 3a Calculator & Campaign Switch */
.p3a-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 1.75rem;
  align-items: start;
}

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

.p3a-card,
.p3a-result-card {
  padding: 1.85rem 2rem;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}

.p3a-result-card {
  border-color: var(--pine);
}

.p3a-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.p3a-kpi-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--pine-soft);
  border: 1px solid rgba(29, 107, 69, 0.24);
}

.p3a-kpi-box.is-bronze {
  background: var(--bronze-soft);
  border-color: rgba(154, 101, 56, 0.24);
}

.p3a-kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.p3a-kpi-val {
  margin-top: 0.25rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.p3a-kpi-box.is-bronze .p3a-kpi-val {
  color: var(--bronze);
}

.p3a-expired-banner {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 1.65rem 1.85rem;
  border-radius: 18px;
  border: 1.5px solid var(--bronze);
  background: var(--bronze-soft);
  color: var(--ink);
}

/* 20.7 /impressum & /qui-sommes-nous Compliance Cards */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.compliance-card {
  padding: 1.5rem 1.65rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}

.compliance-card h2,
.compliance-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.compliance-card p,
.compliance-card dl {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.compliance-dl dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.65rem;
}

.compliance-dl dd {
  margin: 0.15rem 0 0;
  color: var(--ink-secondary);
}

/* 20.8 Extended Direct Comparator, 3a Calculator & Compliance Layout Classes */
.rappel-hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rappel-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.rappel-field input,
.rappel-field select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  transition: border-color 0.2s ease;
}

.rappel-field input:focus,
.rappel-field select:focus {
  outline: none;
  border-color: var(--pine);
}

.rappel-submit-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rappel-meta-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.comp-rappel-box {
  margin-top: 2rem;
  padding: 1.85rem 2rem;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}

.comp-rappel-box-title {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
}

.comp-rappel-box-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.comparatif-direct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .comparatif-direct-grid {
    grid-template-columns: 1fr;
  }
}

.cd-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cd-section {
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.cd-section-header {
  appearance: none;
  width: 100%;
  padding: 1.05rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.cd-section-header[aria-expanded="true"] {
  border-bottom: 1px solid var(--line);
}

.cd-sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cd-sec-num {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cd-sec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.cd-sec-summary {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pine);
  background: var(--pine-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.cd-sec-chevron {
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.cd-section-header[aria-expanded="true"] .cd-sec-chevron {
  transform: rotate(180deg);
}

.cd-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cd-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.cd-field input[type="number"],
.cd-field input[type="text"],
.cd-field select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.cd-sticky-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.5rem 1.65rem;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 34px -20px rgba(17, 36, 26, 0.16);
}

.cd-total-card {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.85rem 0;
}

.cd-total-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.cd-total-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.calc-3a-card {
  padding: 2rem 2.2rem;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}

@media (max-width: 720px) {
  .calc-3a-card {
    padding: 1.35rem 1.15rem;
  }
}

.calc-3a-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

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

.calc-3a-result-box {
  padding: 1.5rem 1.65rem;
  border-radius: 16px;
  border: 1.5px solid var(--pine);
  background: var(--bg);
}

.campagne-3a-expired-banner {
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.6rem;
  border-radius: 16px;
  border: 1.5px solid var(--bronze);
  background: var(--bronze-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.impressum-dl {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0.65rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}

@media (max-width: 640px) {
  .impressum-dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.impressum-dl dt {
  font-weight: 700;
  color: var(--ink);
}

.impressum-dl dd {
  margin: 0;
  color: var(--ink-secondary);
}

.advisor-placeholder-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* ==========================================================================
   21. PHASE 16 & 16B (v4) — GENEVA PALETTE, SPLIT HERO WITH SWISS CROSS IN ART,
       5-STEP COMPARATOR & UNIFIED FORMS
   ========================================================================== */

/* 21.1 Geneva Palette Refinements & WCAG AA Contrast Guarantees */
.btn-primary,
.pour-qui-tab.is-open,
.comp-pill.is-active,
.comp-day-pill.is-active,
.cd-section-card.is-open .cd-section-num {
  background-color: var(--pine-btn);
  border-color: var(--pine-btn);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--pine-hover);
}

.how-diff-badge.icc,
.ded-cap-pill.icc,
.cd-total-pill.is-icc {
  background: var(--pine-soft);
  color: var(--pine);
  border-color: var(--pine-border);
}

.how-diff-badge.ifd,
.ded-cap-pill.ifd,
.cd-total-pill.is-ifd {
  background: var(--bronze-soft);
  color: var(--bronze);
  border-color: var(--bronze-border);
}

.an-orb-pct {
  text-shadow: 0 2px 24px rgba(90, 0, 15, 0.52), 0 1px 6px rgba(90, 0, 15, 0.42);
}

.brand-logo-link,
.comp-brand.brand-logo-link,
.an-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* 21.2 Phase 16C Split Hero:
   - Two columns (max-width 1240px, gap 24px, vertically centered): LEFT = text on light warm background, RIGHT = living blob art (viewBox 0 0 900 820)
   - Under 900px: art on top (max 420px wide, centered, slightly overlapping text by -20px), text below. No text on top of any shape, anywhere. */
.ls-hero {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: 6.75rem 1.5rem 5.25rem;
  background-color: var(--hero-stage-bg);
  clip-path: ellipse(135% 100% at 50% 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ls-hero-split {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.ls-hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.15rem;
  max-width: 620px;
  padding: 0;
}

/* ABOVE "VOS": small white pill tag with 22px Swiss flag square (#DA291C, white cross, radius 5px) and "Genève" (weight 700, 14px, thin border, soft shadow) */
.ls-hero-geneve-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.42rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -6px rgba(20, 16, 12, 0.1);
}

.ls-hero-geneve-flag {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
}

.ls-hero-geneve-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.ls-hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-hero-art .ls-blob-svg {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 820;
  max-height: 540px;
  display: block;
}

/* Floating badge on the art: white pill "ICC + IFD calculés ensemble" with pulsing red dot, bottom-left (left 6%, bottom 10%), gently floating (5s) */
.ls-hero-art-badge {
  position: absolute;
  left: 6%;
  bottom: 10%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px -10px rgba(20, 16, 12, 0.16), 0 2px 8px rgba(20, 16, 12, 0.06);
  font-family: var(--font-sans);
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  animation: lsArtBadgeFloat 5s ease-in-out infinite;
}

.ls-hero-art-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pine);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.55);
  animation: lsArtDotPulse 2.2s ease-out infinite;
}

@keyframes lsArtBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes lsArtDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(200, 16, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
  }
}

.ls-hero-title,
:root[data-palette="vert"] .ls-hero-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  text-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.ls-line-top {
  font-family: var(--font-display);
  font-weight: 400 !important;
  font-size: clamp(15px, 1.6vw, 22px) !important;
  letter-spacing: 0.42em !important;
  color: var(--pine) !important;
  text-transform: uppercase;
}

.ls-line-main {
  font-family: var(--font-display);
  font-weight: 300 !important;
  font-size: clamp(44px, 6.6vw, 104px) !important;
  line-height: 1.02;
  letter-spacing: 0.02em !important;
  color: var(--ink) !important;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0.04rem 0;
}

.ls-line-sub {
  font-family: var(--font-display);
  font-weight: 400 !important;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  letter-spacing: 0.3em !important;
  color: var(--ink) !important;
}

.ls-hero-lead {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}

.ls-hero-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  animation: lsHeroCtaEnter 600ms cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes lsHeroCtaEnter {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ls-hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Primary RED pill "Comparer maintenant →" (60px, white text, soft red shadow) */
.ls-hero-commencer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 60px;
  height: 60px;
  padding: 0 2.05rem;
  border-radius: 999px !important;
  background: var(--pine-btn);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--pine-btn);
  box-shadow: 0 16px 34px -8px rgba(200, 16, 46, 0.38), 0 4px 12px rgba(200, 16, 46, 0.2);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, background-color 180ms ease;
}

.ls-hero-commencer-btn:hover {
  transform: translateY(-2px);
  background: var(--pine-hover);
  border-color: var(--pine-hover);
  box-shadow: 0 20px 40px -8px rgba(200, 16, 46, 0.48), 0 6px 16px rgba(200, 16, 46, 0.26);
}

:root[data-palette="vert"] .ls-hero-commencer-btn {
  background: var(--pine-btn);
  color: #FFFFFF;
  box-shadow: 0 16px 34px -8px rgba(29, 107, 69, 0.35), 0 4px 12px rgba(18, 41, 30, 0.18);
}

.ls-hero-btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.ls-hero-commencer-btn:hover .ls-hero-btn-arrow {
  transform: translateX(3px);
}

/* Secondary white pill "Être rappelé" with thin line phone icon in red (60px, thin border, red border on hover) */
.ls-hero-rappel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 60px;
  height: 60px;
  padding: 0 1.65rem;
  border-radius: 999px !important;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 6px 18px -8px rgba(20, 16, 12, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ls-hero-rappel-btn:hover {
  transform: translateY(-1px);
  border-color: var(--pine);
  background: var(--pine-soft);
  color: var(--pine);
}

.ls-hero-phone-icon {
  color: var(--pine);
  flex-shrink: 0;
}

/* Under the buttons: line of 3 items with small red check marks (drawn in CSS, no icon font), muted 15px */
.ls-hero-checks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.15rem;
}

.ls-hero-check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.ls-hero-check-item::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg) translateY(-1px);
  flex-shrink: 0;
}

.ls-scroll-cue {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  bottom: 1.15rem;
}

.ls-scroll-cue:hover {
  background: var(--pine-soft);
  color: var(--pine);
  border-color: var(--pine-border);
}

/* Under 900px: One column, art on top (max 420px wide, centered, slightly overlapping text by -20px), then text block */
@media (max-width: 899px) {
  .ls-hero {
    padding: 4.85rem 1.15rem 4.75rem;
  }
  .ls-hero-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ls-hero-art {
    order: -1;
    max-width: 420px;
    width: 100%;
    margin: 0 auto -20px;
  }
  .ls-hero-overlay {
    order: 1;
    max-width: 100%;
  }
}

/* Under 480px: buttons full width, check items wrap below, "DÉDUCTIONS" never cut or wrapped mid-word at 360px */
@media (max-width: 480px) {
  .ls-hero {
    padding: 4.5rem 1rem 4.65rem;
  }
  .ls-line-sub {
    letter-spacing: 0.2em !important;
  }
  .ls-hero-actions-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .ls-hero-commencer-btn,
  .ls-hero-rappel-btn {
    width: 100%;
    min-height: 60px;
    height: 60px;
    justify-content: center;
  }
  .ls-hero-art-badge {
    left: 4%;
    bottom: 8%;
    font-size: 0.8125rem;
    padding: 0.48rem 0.85rem;
  }
  .ls-scroll-cue {
    bottom: 0.75rem;
    width: 38px;
    height: 38px;
  }
}

/* 21.3 Final CTA Band & Inner Page Hero: Text beside the shapes on plain area, never on yellow or black */
.ls-cta {
  max-width: 100%;
  min-height: 380px;
  padding: 4.5rem max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.ls-cta > #cta-blob-svg {
  order: 2;
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 820;
  max-height: 360px;
}

.ls-cta-overlay {
  order: 1;
  max-width: 540px;
  margin: 0;
  padding: 0;
  text-align: left;
  align-items: flex-start;
}

.ls-cta-title {
  color: var(--ink) !important;
  text-shadow: none !important;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

.ls-cta-sub {
  color: var(--muted) !important;
  text-shadow: none !important;
  max-width: 460px;
}

.ls-btn-white,
:root[data-palette="vert"] .ls-btn-white {
  background: var(--pine-btn);
  color: #FFFFFF;
  box-shadow: 0 14px 32px -8px rgba(200, 16, 46, 0.34);
}

.ls-btn-white:hover {
  background: var(--pine-hover);
  color: #FFFFFF;
}

@media (max-width: 899px) {
  .ls-cta {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.25rem;
    gap: 1.15rem;
  }
  .ls-cta > #cta-blob-svg {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
  .ls-cta-overlay {
    order: 1;
    max-width: 100%;
  }
  .page-hero .page-hero-blob-svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-hero-cta-stack,
  .ls-hero-title .char,
  .ls-hero-art-badge,
  .ls-hero-art-dot,
  .ls-scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* 21.4 5-Step Comparator Cards, Secondary Oui/Non Smooth Reveal & Collapsible Spouse Block */
.comp-main {
  padding-bottom: 5.75rem;
}

.comp-screen {
  gap: 0.9rem;
  animation: none;
}

.comp-screen.is-step-enter {
  animation: compFadeIn 180ms ease-out;
}

.comp-q-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.comp-q-card.has-card-error {
  border-color: var(--error);
}

.comp-q-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
}

.comp-q-card-titles {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 220px;
}

.comp-q-card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.comp-q-card-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Smooth height animation for secondary Oui / Non fields & inline child ages */
.comp-collapse-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.comp-collapse-wrap.is-open {
  grid-template-rows: 1fr;
}

.comp-collapse-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.comp-collapse-wrap.is-open .comp-collapse-inner {
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.55rem;
}

@media (prefers-reduced-motion: reduce) {
  .comp-collapse-wrap,
  .comp-collapse-inner {
    transition: none !important;
  }
}

/* Collapsible "Votre conjoint·e" Card in Step 3 & Oui/Non Pill Group */
.comp-step-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comp-ouinon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.comp-ouinon-btn {
  appearance: none;
  min-width: 68px;
  height: 42px;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.comp-ouinon-btn:hover {
  border-color: var(--pine);
}

.comp-ouinon-btn.is-active {
  background: var(--pine-btn);
  border-color: var(--pine-btn);
  color: #FFFFFF;
}

.comp-inline-ages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.comp-collapsible-card {
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.comp-collapsible-card.has-card-error {
  border-color: var(--error);
}

.comp-collapsible-trigger {
  appearance: none;
  width: 100%;
  padding: 1rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.comp-collapsible-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--hairline);
}

.comp-collapsible-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pine);
  background: var(--pine-soft);
  border: 1px solid var(--pine-border);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.comp-collapsible-chevron {
  transition: transform 240ms ease;
  color: var(--muted);
  flex-shrink: 0;
}

.comp-collapsible-trigger[aria-expanded="true"] .comp-collapsible-chevron {
  transform: rotate(180deg);
}

.comp-legal-foot {
  margin-top: auto;
  padding: 1.25rem 0 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   21.5 PHASE 16B — UNIFIED FORM DESIGN & 5-STEP COMPARATOR FIELD HARMONIZATION
   - Card max 640px, radius 22px, soft shadow
   - Labels 15px weight 600 above fields
   - Text fields 54px high, radius 14px, light background, red border on focus, 16px text
   - Prénom + Téléphone side by side on desktop, stacked under 560px
   - Statut: 4 segmented buttons in one row, 2x2 on phones, no <select>
   - Créneau: 2 segmented buttons, each on ONE line ("Matin" left, "9h – 12h" right in grey), no radio dot
   - Consent: 20px checkbox aligned with first line of 15px text, link in red
   - Submit button full width on phones, auto width on desktop
   ========================================================================== */

.rappel-card,
.comp-callback-card,
.comp-rappel-box {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 2.15rem;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 44px -20px rgba(20, 16, 12, 0.12);
}

@media (max-width: 560px) {
  .rappel-card,
  .comp-callback-card,
  .comp-rappel-box {
    padding: 1.4rem 1.15rem;
    border-radius: 20px;
  }
}

.rappel-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .rappel-row-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.rappel-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rappel-row-2 .rappel-field {
  margin-bottom: 0;
}

.rappel-label,
.rappel-field > label,
.comp-field-label,
.cd-field label,
.calc-3a-card label {
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.rappel-input,
.rappel-field input[type="text"],
.rappel-field input[type="tel"],
.rappel-field input[type="email"],
.comp-text-input,
.cd-field input[type="number"],
.cd-field input[type="text"],
.cd-field select,
.calc-3a-card input[type="number"],
.calc-3a-card select {
  width: 100%;
  height: 54px;
  min-height: 54px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px — no zoom on iPhone */
  font-weight: 500;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rappel-input:focus,
.rappel-field input[type="text"]:focus,
.rappel-field input[type="tel"]:focus,
.rappel-field input[type="email"]:focus,
.comp-text-input:focus,
.cd-field input[type="number"]:focus,
.cd-field input[type="text"]:focus,
.cd-field select:focus,
.calc-3a-card input[type="number"]:focus,
.calc-3a-card select:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-soft);
}

.rappel-input.has-error,
.comp-text-input.has-error {
  border-color: var(--error);
}

/* Statut: 4 segmented buttons in one row on desktop, 2x2 on phones */
.rappel-statut-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 560px) {
  .rappel-statut-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rappel-seg-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-height: 50px;
  padding: 0 0.6rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.rappel-seg-btn:hover {
  border-color: var(--pine);
}

.rappel-seg-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rappel-seg-btn.is-selected,
.rappel-seg-btn:has(input:checked) {
  border-color: var(--pine);
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 700;
}

.rappel-seg-btn:focus-within {
  box-shadow: 0 0 0 3px var(--pine-soft);
}

/* Créneau: 2 segmented buttons, each on ONE line ("Matin" left, "9h – 12h" right in grey), no radio dot */
.rappel-creneau-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .rappel-creneau-group {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

.rappel-creneau-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 54px;
  min-height: 54px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.rappel-creneau-option:hover {
  border-color: var(--pine);
}

.rappel-creneau-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rappel-creneau-option .creneau-main {
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.rappel-creneau-option .creneau-hours {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rappel-creneau-option.is-selected,
.rappel-creneau-option:has(input:checked) {
  border-color: var(--pine);
  background: var(--pine-soft);
}

.rappel-creneau-option.is-selected .creneau-main,
.rappel-creneau-option:has(input:checked) .creneau-main {
  color: var(--pine);
}

.rappel-creneau-option:focus-within {
  box-shadow: 0 0 0 3px var(--pine-soft);
}

/* Consent: 20px checkbox aligned with first line of 15px text, line-height 1.5, link in red */
.rappel-consent-row,
.comp-consent-label {
  margin-top: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.5;
  color: var(--ink-secondary);
  cursor: pointer;
}

.rappel-consent-row input[type="checkbox"],
.comp-consent-label input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0.14rem 0 0 !important;
  accent-color: var(--pine);
  flex-shrink: 0;
  cursor: pointer;
}

.rappel-consent-row a,
.comp-consent-label a {
  color: var(--pine);
  font-weight: 600;
  text-decoration: underline;
}

/* Submit button: auto width on desktop, full width on phones */
.rappel-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
}

.rappel-actions .btn,
.comp-rdv-form .comp-submit-btn {
  width: auto;
  min-height: 54px;
  padding: 0 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 560px) {
  .rappel-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rappel-actions .btn,
  .comp-rdv-form .comp-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Error message in red under the form */
.rappel-feedback.is-error,
.comp-form-error {
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--pine-soft);
  border: 1.5px solid var(--pine);
  color: var(--pine);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Comparator 5 steps field & segmented-choice harmonization (heights, 14px radius, focus, one-line options) */
.comp-amount-wrap {
  height: 54px;
  min-height: 54px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  padding: 0 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.comp-amount-wrap:focus-within {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-soft);
}

.comp-amount-input {
  font-size: 1rem; /* 16px */
}

.radio-row {
  min-height: 54px;
  border-radius: 14px;
  padding: 0.78rem 1.05rem;
}

.comp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.comp-choice-btn {
  min-height: 52px;
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  justify-content: center;
}

.comp-choice-title {
  font-size: 0.875rem;
  white-space: nowrap;
}

.comp-choice-sub {
  font-size: 0.75rem;
  white-space: nowrap;
}

.comp-pill {
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.comp-pill.comp-pill-sm {
  height: 36px;
  padding: 0 0.7rem;
  border-radius: 10px;
}

.comp-day-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ==========================================================================
   22. Phase 17 — Results Page Smart "Faire vérifier" Pop-Up & Corner Blobs
   ========================================================================== */

/* 1D. Remove decorative corner blob cluster so it never appears cut or behind content */
.comp-corner-blobs,
body.is-result-mode .comp-corner-blobs {
  display: none !important;
}

/* Lock page scroll while the verification dialog is open and elevate .comp-main above .comp-topbar */
body.is-modal-open {
  overflow: hidden !important;
}

body.is-modal-open .comp-main {
  z-index: 1100 !important;
}

/* Calm Call-To-Action Card on Results Page */
.comp-verif-cta-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--surface, var(--paper));
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px -28px rgba(20, 12, 10, 0.16);
  text-align: center;
}

.comp-verif-cta-card .comp-section-title {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: var(--ink);
}

.comp-verif-cta-lead {
  margin: 0 auto 1.25rem;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.comp-verif-cta-actions {
  display: flex;
  justify-content: center;
}

.comp-verif-cta-actions .btn {
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .comp-verif-cta-card {
    padding: 22px 18px;
  }
  .comp-verif-cta-actions .btn {
    width: 100%;
  }
}

/* Smart Pop-up Backdrop & Centered Dialog (Desktop) / Bottom Sheet (<640px) */
.verif-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 11, 10, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: verifBackdropFade 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.verif-modal-backdrop[hidden] {
  display: none !important;
}

.verif-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px;
  background: var(--surface, var(--paper));
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px -20px rgba(15, 11, 10, 0.45);
  padding: 28px 30px 24px;
  color: var(--ink);
  animation: verifDialogRise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.verif-sheet-handle {
  display: none;
}

.verif-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2, var(--bg));
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.verif-modal-close:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.verif-modal-close:focus-visible {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-soft);
}

.verif-modal-head {
  padding-right: 40px;
  margin-bottom: 16px;
}

.verif-modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.22;
  color: var(--ink);
  margin: 0.2rem 0 0.45rem;
}

.verif-modal-subtitle {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.verif-success-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

@keyframes verifBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes verifSheetSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile (< 640px): Bottom sheet sliding up, max 90vh, internal scroll, drag-handle bar on top */
@media (max-width: 639px) {
  .verif-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .verif-modal-dialog {
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    animation: verifSheetSlideUp 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .verif-sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-2, rgba(120, 110, 105, 0.35));
    margin: 0 auto 10px;
  }

  .verif-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* Reduced motion: instant open without slide/fade */
.verif-modal-backdrop.is-reduced-motion,
.verif-modal-backdrop.is-reduced-motion .verif-modal-dialog {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .verif-modal-backdrop,
  .verif-modal-dialog {
    animation: none !important;
    transition: none !important;
  }
}

/* Sticky bottom bar when pop-up is closed without sending (zero CLS, fixed at bottom) */
.verif-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: color-mix(in srgb, var(--surface, var(--paper)) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px -14px rgba(15, 11, 10, 0.18);
}

.verif-sticky-bar[hidden] {
  display: none !important;
}

.verif-sticky-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.verif-sticky-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.verif-sticky-btn {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .verif-sticky-inner {
    justify-content: center;
  }
  .verif-sticky-text {
    display: none;
  }
  .verif-sticky-btn {
    width: 100%;
    min-height: 44px;
  }
}

/* Permis G deduction chips on results screen */
.comp-deduction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.comp-deduction-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--pine-soft, rgba(168, 22, 18, 0.08));
  border: 1px solid var(--pine, #A81612);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

/* Phase 18: Optional field label tag & muted field hint in "Faire vérifier" pop-up */
.rappel-opt {
  font-weight: 400;
  color: var(--muted, var(--ink-2));
  font-size: 0.8125rem;
}

.rappel-field-hint {
  margin: 0.3rem 0 0;
  font-size: 0.78125rem;
  line-height: 1.38;
  color: var(--muted, var(--ink-2));
}

/* Phase 18 (Audit #11): Muted indicative disclaimer line under campaign heroes */
.hero-private-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted, var(--ink-2));
}

/* Phase 20: Visible Breadcrumbs on inner pages & Related Guides block */
.breadcrumb-nav {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted, var(--ink-2));
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--muted, var(--ink-2));
  opacity: 0.65;
}

.breadcrumb-item a {
  color: var(--muted, var(--ink-2));
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
  color: var(--pine, #C8102E);
  text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.related-guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-guide-card:hover,
.related-guide-card:focus-visible {
  border-color: var(--pine, #C8102E);
  transform: translateY(-2px);
}

.related-guide-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.related-guide-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted, var(--ink-2));
}

.related-guide-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pine, #C8102E);
}

/* Phase 20 Part B: Editorial Guide Layout & Components */
.guide-article {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.guide-review-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--muted, var(--ink-2));
}

.guide-review-box strong {
  color: var(--ink);
  font-weight: 700;
}

.guide-en-bref {
  padding: 1.5rem 1.65rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pine, #C8102E);
}

.guide-en-bref-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-en-bref ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--ink);
}

.guide-section {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.guide-section h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.28;
  color: var(--ink);
}

.guide-section h3 {
  margin: 0.4rem 0 0;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--ink);
}

.guide-section p,
.guide-section li {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
}

.guide-section p {
  margin: 0;
}

.guide-section ul,
.guide-section ol {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guide-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.guide-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.guide-comparison-table th,
.guide-comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.guide-comparison-table th {
  font-weight: 700;
  background: rgba(19, 38, 28, 0.035);
  color: var(--ink);
}

.guide-comparison-table th.col-icc,
.guide-comparison-table td.col-icc {
  color: var(--pine, #C8102E);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.guide-comparison-table th.col-ifd,
.guide-comparison-table td.col-ifd {
  color: var(--bronze, #8F6200);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.guide-comparison-table tr:last-child td {
  border-bottom: none;
}

.guide-example-box {
  padding: 1.45rem 1.6rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-example-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-sources-box {
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted, var(--ink-2));
}

.guide-sources-box h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-sources-box ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}


