/* ==========================================================================
   ImmoIA — feuille de style
   Reproduction fidèle du design (tokens, rayons, ombres, typographie).
   Aucune dépendance : polices Google (Inter + Outfit) chargées dans le HTML.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --radius: 1rem;

  /* Couleurs (fallback hex, précisées en oklch plus bas) */
  --navy: #0e2341;
  --navy-soft: #485971;
  --brand-700: #213eff;
  --brand-500: #3c7afa;
  --brand-300: #2aadf8;
  --surface: #f7f9fc;
  --accent: #e6f2fe;
  --border: #dfe6ed;
  --destructive: #e7000b;

  --background: #ffffff;
  --foreground: var(--navy);
  --primary: var(--brand-500);
  --primary-foreground: #ffffff;
  --secondary: var(--surface);
  --muted: var(--surface);
  --muted-foreground: var(--navy-soft);
  --input: var(--border);
  --ring: var(--brand-500);

  /* Variantes avec transparence */
  --navy-10: #0e23411a;
  --navy-20: #0e234133;
  --brand-300-50: #2aadf880;
  --brand-500-40: #3c7afa66;
  --brand-500-50: #3c7afa80;
  --primary-20: #3c7afa33;
  --primary-50: #3c7afa80;
  --bg-90: #ffffffe6;
  --muted-fg-60: #48597199;

  --gradient-ia: linear-gradient(135deg, #1e40ff 0%, #2f80ff 50%, #38b6ff 100%);
  --gradient-line: linear-gradient(90deg, #1e40ff00 0%, #2f80ff 50%, #38b6ff00 100%);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --shadow-card: 0 2px 8px -2px #1e40ff14;
  --shadow-soft: 0 10px 30px -12px #1e40ff2e;
  --shadow-xs: 0 1px 2px 0 #0000000d;
  --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
  --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;

  --r-sm: calc(var(--radius) - 4px);
  --r-md: calc(var(--radius) - 2px);
  --r-lg: var(--radius);
  --r-xl: calc(var(--radius) + 4px);
  --r-2xl: calc(var(--radius) + 8px);
  --r-3xl: calc(var(--radius) + 12px);
}

@supports (color: oklch(0% 0 0)) {
  :root {
    --navy: oklch(25.6% 0.064 258.5);
    --navy-soft: oklch(46% 0.045 258);
    --brand-700: oklch(50.5% 0.279 266.5);
    --brand-500: oklch(61% 0.202 262.5);
    --brand-300: oklch(71.5% 0.152 240);
    --surface: oklch(98.2% 0.004 250);
    --accent: oklch(95.5% 0.02 250);
    --border: oklch(92.2% 0.012 250);
    --destructive: oklch(57.7% 0.245 27.325);
  }
}

/* ---------- Reset ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--border); margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; font-family: var(--font-sans); }
body { min-height: 100vh; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); letter-spacing: -0.02em; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; }
ol, ul { list-style: none; }
hr { height: 0; color: inherit; border-top-width: 1px; }
[hidden] { display: none !important; }
b, strong { font-weight: 600; }

/* ---------- Utilitaires ---------- */
.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 4.5rem; }
.section--surface { background: var(--surface); }
.section-head { max-width: 48rem; margin-inline: auto; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: 1.875rem; line-height: 1.25; font-weight: 700; }
@media (min-width: 40rem) { .section-head h2 { font-size: 2.25rem; } }
.rule-ia { height: 2px; width: 100%; border: 0; background-image: var(--gradient-line); }
.section-head .rule-ia { margin-top: 1.25rem; max-width: 10rem; }
.section-head:not(.section-head--left) .rule-ia { margin-inline: auto; }
.text-gradient-ia { background-image: var(--gradient-ia); color: transparent; -webkit-background-clip: text; background-clip: text; }
.gradient-ia { background-image: var(--gradient-ia); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Les grilles à une colonne peuvent rétrécir sous la largeur min-content de leur contenu */
.chaos__grid, .voip__grid, .loc__grid, .sec__grid, .plans, .options, .config__grid, .quotes, .stats, .footer__grid, .footer__cols { grid-template-columns: minmax(0, 1fr); }

/* Icônes Lucide (sprite SVG) */
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sparkle { flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0.5rem 1rem;
  border-radius: var(--r-md); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
.btn:disabled { pointer-events: none; opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 1rem; height: 1rem; }
.btn--hero { background-image: var(--gradient-ia); color: #fff; box-shadow: var(--shadow-soft); border-radius: var(--r-xl); font-weight: 600; }
.btn--hero:hover { opacity: 0.9; }
.btn--hero-outline { border: 1px solid var(--brand-500-40); background: var(--background); color: var(--navy); box-shadow: var(--shadow-card); border-radius: var(--r-xl); font-weight: 600; }
.btn--hero-outline:hover { background: var(--secondary); }
.btn--ghost:hover { background: var(--accent); color: var(--navy); }
.btn--lg { height: 3rem; border-radius: var(--r-xl); padding-inline: 1.75rem; font-size: 1rem; line-height: 1.5rem; }
.btn--icon { width: 2.25rem; height: 2.25rem; padding: 0; }
.btn--full { width: 100%; white-space: normal; height: auto; min-height: 2.25rem; text-align: center; }
.btn--full.btn--lg { min-height: 3rem; padding-block: 0.5rem; }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; border-radius: var(--r-md); border: 1px solid transparent; padding: 0.125rem 0.625rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.badge--ia { background-image: var(--gradient-ia); color: #fff; border: 0; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  border-bottom: 1px solid transparent; background: var(--background);
  transition: border-color 0.15s, background-color 0.15s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: var(--bg-90); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nav { max-width: 72rem; margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; height: 4rem; padding-inline: 1.25rem; }
.nav__logo { display: flex; flex-shrink: 0; align-items: center; }
.nav__logo img { height: 5rem; width: auto; margin-block: -0.75rem; object-fit: contain; object-position: left; clip-path: inset(22% 6% 44% 6%); }
.nav__links { margin-left: auto; display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 64rem) { .nav__links { display: flex; } }
.nav__links a { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.15s; }
.nav__links a:hover { color: var(--brand-500); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 64rem) { .nav__actions { margin-left: 0; } }
.lang { display: none; align-items: center; border: 1px solid var(--border); border-radius: 9999px; padding: 0.125rem; }
@media (min-width: 40rem) { .lang { display: flex; } }
.lang button { border-radius: 9999px; padding: 0.25rem 0.625rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--muted-foreground); transition: color 0.15s, background-color 0.15s; }
.lang button.is-active { background-image: var(--gradient-ia); color: #fff; }
.nav__demo { display: none; }
@media (min-width: 40rem) { .nav__demo { display: inline-flex; } }
@media (min-width: 64rem) { .nav__menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg { pointer-events: none; position: absolute; right: -2.5rem; top: 2.5rem; width: 18rem; height: 18rem; opacity: 0.05; }
.hero__grid { max-width: 72rem; margin-inline: auto; display: grid; align-items: center; gap: 3rem; padding: 3.5rem 1.25rem 5rem; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 6rem; } }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--secondary); padding: 0.25rem 0.75rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--navy); }
.pill .sparkle { width: 0.75rem; height: 0.75rem; }
.hero h1 { margin-top: 1.25rem; font-size: 2.25rem; line-height: 1.08; font-weight: 700; }
@media (min-width: 40rem) { .hero h1 { font-size: 3rem; } }
@media (min-width: 64rem) { .hero h1 { font-size: 3.75rem; } }
.hero__lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__reassurance { margin-top: 1.5rem; max-width: 32rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

.dash { position: relative; border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: #fff; padding: 1rem; box-shadow: var(--shadow-soft); }
.dash__head { display: flex; align-items: center; justify-content: space-between; border-radius: var(--r-2xl); background: var(--surface); padding: 0.75rem 1rem; }
.dash__title { font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.dash__live { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.dash__dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--brand-300); }
.dash__list { margin-top: 1rem; display: grid; gap: 0.75rem; }
.dash__item { display: flex; align-items: flex-start; gap: 0.75rem; border-radius: var(--r-2xl); border: 1px solid var(--border); background: var(--surface); padding: 0.75rem; opacity: 0.5; transition: all 0.5s; }
.dash__item.is-done { border-color: var(--brand-300-50); background: #fff; box-shadow: var(--shadow-card); opacity: 1; }
.dash__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: var(--r-xl); background: var(--secondary); color: var(--navy); transition: all 0.5s; }
.dash__icon svg { width: 1.25rem; height: 1.25rem; }
.dash__item.is-active .dash__icon { background-image: var(--gradient-ia); color: #fff; }
.dash__text { min-width: 0; }
.dash__name { display: flex; align-items: center; gap: 0.375rem; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.dash__name .sparkle { width: 0.75rem; height: 0.75rem; }
.dash__detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.dash__progress { margin-top: 1rem; height: 0.25rem; width: 0; border-radius: 9999px; background-image: var(--gradient-ia); }

/* ---------- Chaos (1000 outils) ---------- */
.chaos__grid { margin-top: 2.5rem; display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 64rem) { .chaos__grid { grid-template-columns: 1fr auto 1fr; } }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border-radius: var(--r-2xl); border: 1px dashed var(--navy-20); background: #fff; padding: 1rem; text-align: center; }
.tool svg { width: 1.25rem; height: 1.25rem; color: var(--navy); }
.tool span { font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--muted-foreground); }
.chaos__arrow { margin-inline: auto; width: 2rem; height: 2rem; color: var(--brand-500); rotate: 90deg; }
@media (min-width: 64rem) { .chaos__arrow { rotate: 0deg; } }
.chaos__card { border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: #fff; padding: 2rem; text-align: center; box-shadow: var(--shadow-soft); }
.chaos__card .sparkle { margin-inline: auto; width: 2rem; height: 2rem; }
.chaos__brand { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.chaos__sub { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.chaos__text { margin: 2.5rem auto 0; max-width: 48rem; text-align: center; color: var(--muted-foreground); }
.chaos__punch { margin: 1.5rem auto 0; max-width: 48rem; text-align: center; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }

/* ---------- Parcours (timeline) ---------- */
.steps { position: relative; margin-top: 3.5rem; display: grid; gap: 2rem; border-left: 1px solid var(--border); padding-left: 1.5rem; }
@media (min-width: 40rem) { .steps { padding-left: 2.5rem; } }
.step { position: relative; }
.js .step { opacity: 0; transform: translateY(24px); transition: opacity 0.45s ease 0.03s, transform 0.45s ease 0.03s; }
.js .step.is-visible { opacity: 1; transform: none; }
.step__icon { position: absolute; left: -2.35rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-xl); background-image: var(--gradient-ia); color: #fff; box-shadow: var(--shadow-soft); }
@media (min-width: 40rem) { .step__icon { left: -3.35rem; } }
.step__icon svg { width: 1.25rem; height: 1.25rem; }
.step__card { border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-card); }
.step__num { font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--brand-500); }
.step__card h3 { margin-top: 0.25rem; display: flex; align-items: flex-start; gap: 0.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.step__card h3 .sparkle { margin-top: 0.375rem; width: 0.875rem; height: 0.875rem; }
.step__text { margin-top: 0.75rem; color: var(--muted-foreground); }
.step__mock { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--r-xl); background: var(--surface); padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; color: var(--navy); }

.portals { margin-top: 3rem; border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: var(--surface); padding: 2rem; }
.portals__title { text-align: center; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.portals__group { margin-top: 1.5rem; }
.portals__country { margin-bottom: 0.75rem; text-align: center; font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--muted-foreground); }
.portals__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.portals__list span { border-radius: var(--r-xl); border: 1px solid var(--border); background: #fff; padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.portals__note { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- Telephonia / VOIP ---------- */
.voip__grid { margin-top: 2rem; display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .voip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.voip__text { color: var(--muted-foreground); }
.voip__list { display: grid; gap: 1rem; }
.voip__item { display: flex; align-items: flex-start; gap: 1rem; border-radius: var(--r-2xl); border: 1px solid var(--navy-10); background: #fff; padding: 1.25rem; box-shadow: var(--shadow-card); }
.voip__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: var(--r-xl); background: var(--secondary); color: var(--navy); }
.voip__icon svg { width: 1.25rem; height: 1.25rem; }
.voip__label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.voip__label .sparkle { margin-top: 0.25rem; width: 0.75rem; height: 0.75rem; }

/* ---------- Gestion locative ---------- */
.loc__grid { margin-top: 2rem; display: grid; gap: 2rem; }
@media (min-width: 64rem) { .loc__grid { grid-template-columns: 2fr 1fr; } }
.loc__paras { display: grid; gap: 1.25rem; color: var(--muted-foreground); }
.loc__card { border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-card); }
.loc__card > svg { width: 1.5rem; height: 1.5rem; color: var(--navy); }
.loc__card p { margin-top: 1rem; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.loc__card ul { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- Sécurité ---------- */
.sec__grid { margin-top: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .sec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .sec__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sec__card { border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-card); }
.sec__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-xl); background-image: var(--gradient-ia); color: #fff; }
.sec__icon svg { width: 1.25rem; height: 1.25rem; }
.sec__card p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }

/* ---------- Tarifs ---------- */
.pricing__sub { margin: 1.5rem auto 0; max-width: 48rem; text-align: center; color: var(--muted-foreground); }
.plans { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-card); }
.plan--highlight { border-color: var(--brand-500-50); box-shadow: var(--shadow-soft); }
@media (min-width: 64rem) { .plan--highlight { margin-top: -1rem; margin-bottom: 1rem; } }
.plan__badge { position: absolute; top: -0.75rem; left: 1.5rem; }
.plan h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.plan__price { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
.plan__rows { margin-top: 1.5rem; flex: 1; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; align-content: start; }
.plan__rows li { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.plan__rows li:last-child { border-bottom: 0; }
.plan__rows svg { margin-top: 0.125rem; width: 1rem; height: 1rem; color: var(--brand-500); }
.plan__rows span { color: var(--muted-foreground); }
.plan__rows b { font-weight: 500; color: var(--navy); }
.plan > .btn { margin-top: 1.5rem; }
.pricing__note { margin-top: 2rem; text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.options { margin-top: 3.5rem; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.option { border-radius: var(--r-2xl); border: 1px solid var(--navy-10); background: var(--surface); padding: 1.25rem; }
.option__title { font-family: var(--font-display); font-weight: 600; }
.option__text { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- Configurateur ---------- */
.config { margin-top: 4rem; scroll-margin-top: 6rem; border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: var(--surface); padding: 1.5rem; }
@media (min-width: 40rem) { .config { padding: 2rem; } }
.config > h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.config > h3 .sparkle { width: 1.25rem; height: 1.25rem; }
.config__grid { margin-top: 2rem; display: grid; gap: 2rem; }
@media (min-width: 64rem) { .config__grid { grid-template-columns: 1.3fr 1fr; } }
.config__form { display: grid; gap: 1.5rem; border-radius: var(--r-2xl); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-card); }
.field { display: grid; gap: 0.5rem; }
.field__head { display: flex; align-items: baseline; justify-content: space-between; }
.label { font-size: 0.875rem; line-height: 1; font-weight: 500; }
.field__value { font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--brand-500); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 1rem; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.range::-webkit-slider-runnable-track { height: 0.375rem; border-radius: 9999px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--pct, 0%) 100% no-repeat, var(--primary-20); }
.range::-moz-range-track { height: 0.375rem; border-radius: 9999px; background: var(--primary-20); }
.range::-moz-range-progress { height: 0.375rem; border-radius: 9999px; background: var(--primary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 1rem; height: 1rem; margin-top: -0.3125rem; border-radius: 9999px; border: 1px solid var(--primary-50); background: var(--background); box-shadow: var(--shadow-sm); }
.range::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 9999px; border: 1px solid var(--primary-50); background: var(--background); box-shadow: var(--shadow-sm); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ring); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ring); }

.config__toggles { display: grid; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.switch { position: relative; display: inline-flex; align-items: center; height: 1.25rem; width: 2.25rem; flex-shrink: 0; border-radius: 9999px; border: 2px solid transparent; background: var(--input); box-shadow: var(--shadow-xs); transition: background-color 0.15s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch__thumb { display: block; width: 1rem; height: 1rem; border-radius: 9999px; background: var(--background); box-shadow: var(--shadow-lg); transition: transform 0.15s; pointer-events: none; }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(1rem); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }

@media (min-width: 64rem) { .config__summary { position: sticky; top: 6rem; align-self: start; } }
.summary { border-radius: var(--r-2xl); border: 1px solid var(--navy-10); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-soft); }
.summary__total { margin-top: 1rem; font-family: var(--font-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.summary__htva { font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.summary__toggle { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--brand-500); }
.summary__toggle:hover { text-decoration: underline; }
.summary__detail { margin-top: 0.75rem; display: grid; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; line-height: 1.25rem; }
.row span:first-child { color: var(--muted-foreground); }
.row span:last-child { font-weight: 500; }
.summary__install { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.summary__pile { margin-top: 1rem; border-radius: var(--r-xl); background: var(--surface); padding: 1rem; }
.summary__eco { margin-top: 0.5rem; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--navy); }
.summary > .btn { margin-top: 1.25rem; }
.summary__note { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }

/* ---------- Témoignages ---------- */
.quotes { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { border-radius: var(--r-3xl); border: 1px solid var(--navy-10); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-card); }
.quote > svg { width: 1.25rem; height: 1.25rem; color: var(--brand-500); }
.quote blockquote { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.quote figcaption { margin-top: 1.25rem; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.stats { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { border-radius: var(--r-2xl); border: 1px dashed var(--navy-20); background: #fff; padding: 1.25rem; text-align: center; font-family: var(--font-display); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq .container { max-width: 48rem; }
.accordion { margin-top: 2.5rem; }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__item h3 { display: flex; }
.acc__trigger { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.5rem; font-weight: 500; text-align: left; color: var(--navy); }
.acc__trigger:hover { text-decoration: underline; }
.acc__trigger svg { width: 1rem; height: 1rem; color: var(--muted-foreground); transition: transform 0.2s; }
.acc__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc__content { overflow: hidden; height: 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); transition: height 0.2s ease-out; }
.acc__content > div { padding-bottom: 1rem; }

/* ---------- CTA final ---------- */
.cta { scroll-margin-top: 5rem; }
.cta .container { max-width: 56rem; text-align: center; }
.cta .sparkle { margin-inline: auto; width: 2rem; height: 2rem; }
.cta h2 { margin-top: 1.25rem; font-size: 1.875rem; line-height: 1.25; font-weight: 700; }
@media (min-width: 40rem) { .cta h2 { font-size: 2.25rem; } }
.cta .rule-ia { margin: 1.5rem auto 0; max-width: 10rem; }
.cta .btn { margin-top: 2rem; }
.cta__line { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer .container { padding-block: 3.5rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1fr 2fr; } }
.footer__logo { height: 6rem; width: auto; align-self: start; object-fit: contain; object-position: left; }
.footer__cols { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer__cols p { font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.footer__cols ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.footer__cols a { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); transition: color 0.15s; }
.footer__cols a:hover { color: var(--brand-500); }
.footer .rule-ia { margin-block: 2.5rem; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__legal { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.footer__partners { display: flex; align-items: center; gap: 1.25rem; }
.footer__partners span { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--muted-fg-60); }

/* ---------- Boîtes de dialogue (démo + menu mobile) ---------- */
dialog { color: inherit; }
dialog::backdrop { background: #000c; animation: fade-in 0.15s ease; }
.dialog {
  position: fixed; inset: 0; margin: auto;
  width: calc(100% - 2rem); max-width: 32rem; max-height: 90vh; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--background);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.dialog[open] { display: grid; gap: 1rem; animation: zoom-in 0.2s ease; }
.dialog__head { display: flex; flex-direction: column; gap: 0.375rem; text-align: center; padding-right: 1.5rem; }
@media (min-width: 40rem) { .dialog__head { text-align: left; } }
.dialog__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.dialog__desc { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.dialog__close { position: absolute; right: 1rem; top: 1rem; border-radius: var(--r-sm); opacity: 0.7; transition: opacity 0.15s; }
.dialog__close:hover { opacity: 1; }
.dialog__close svg { width: 1rem; height: 1rem; }
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.input, .select, .textarea { display: flex; width: 100%; border-radius: var(--r-md); border: 1px solid var(--input); background: transparent; padding: 0.25rem 0.75rem; font-size: 1rem; line-height: 1.5rem; box-shadow: var(--shadow-xs); transition: border-color 0.15s, box-shadow 0.15s; }
.input { height: 2.25rem; }
.select { height: 2.5rem; background: var(--background); font-size: 0.875rem; }
.textarea { min-height: 60px; padding: 0.5rem 0.75rem; resize: vertical; }
@media (min-width: 48rem) { .input, .textarea { font-size: 0.875rem; } }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }

.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: 100%; width: 18rem; max-width: 100%;
  border-left: 1px solid var(--border); background: var(--background); padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.sheet[open] { animation: slide-in-right 0.5s ease-in-out; }
.sheet__nav { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.sheet__nav a { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; color: var(--navy); }
.sheet__nav a.is-accent { color: var(--brand-500); }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; width: 22rem; max-width: calc(100vw - 3rem); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--background); padding: 1rem; box-shadow: var(--shadow-lg); font-size: 0.875rem; line-height: 1.25rem; animation: toast-in 0.3s ease; }
.toast p { font-weight: 500; }
.toast p + p { margin-top: 0.25rem; font-weight: 400; color: var(--muted-foreground); }
.toast--error { border-color: var(--destructive); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.95); } }
@keyframes slide-in-right { from { transform: translateX(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(1rem); } }

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