/* ==========================================================================
   CPC 3D — Design tokens & base styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color — light (default) */
  --color-primary: #14231C;       /* deep forest charcoal */
  --color-primary-soft: #24382D;
  --color-accent: #2F6F4E;        /* sage green */
  --color-accent-light: #EAF2EC;
  --color-accent-strong: #1F5238;
  --color-bg: #FAF9F5;            /* warm ivory */
  --color-surface: #FFFFFF;
  --color-foreground: #1A231E;
  --color-muted: #F1F0EA;
  --color-muted-foreground: #5B6660;
  --color-border: #E4E2D8;
  --color-destructive: #B3261E;
  --color-on-primary: #FAF9F5;
  --color-on-accent: #FFFFFF;

  /* Typography */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 35, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 35, 28, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 35, 28, 0.14);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1180px;
  --header-h: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* keep on html, not body: avoids body becoming its own nested overflow-y:auto scroll container */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); }
h4 { font-size: 1.125rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--color-muted-foreground); }
.lede { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem); line-height: 1.65; }

::selection { background: var(--color-accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

section { position: relative; }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }
.section--muted { background: var(--color-muted); }
.section--dark { background: var(--color-primary); color: var(--color-on-primary); }
.section--dark h2, .section--dark h3 { color: var(--color-on-primary); }
.section--dark p { color: rgba(250, 249, 245, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-head + .section-head { margin-top: var(--space-5); }

.grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-primary-soft); box-shadow: var(--shadow-md); }

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: var(--color-accent-strong); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-surface); }

.btn--on-dark {
  background: rgba(250, 249, 245, 0.1);
  color: var(--color-on-primary);
  border: 1.5px solid rgba(250, 249, 245, 0.35);
}
.btn--on-dark:hover { background: rgba(250, 249, 245, 0.18); }

.btn--sm { min-height: 40px; padding: 0 var(--space-3); font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 249, 245, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(20, 35, 28, 0.05);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  flex: none;
}
.brand img { width: 34px; height: 34px; }
.brand__accent { color: var(--color-accent); }

.nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: right var(--duration-base) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Below ~420px the logo + CTA button + hamburger no longer fit on one row;
   drop the header CTA and rely on the mobile drawer's own call-to-action. */
@media (max-width: 420px) {
  .header-actions > .btn--accent { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  z-index: 90;
  padding: var(--space-5) var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .btn { margin-top: var(--space-5); font-family: var(--font-body); }

@media (min-width: 960px) {
  .mobile-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: var(--space-7) var(--space-8);
  overflow: hidden;
  position: relative;
}

.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(circle at 18% 20%, rgba(47, 111, 78, 0.16), transparent 55%),
    radial-gradient(circle at 82% 0%, rgba(20, 35, 28, 0.10), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); }
}

.hero__eyebrow { margin-bottom: var(--space-3); }
.hero h1 { margin-bottom: var(--space-5); }
.hero__lede { max-width: 46ch; margin-bottom: var(--space-5); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.trust-row__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}
.trust-row__item svg { width: 20px; height: 20px; color: var(--color-accent); flex: none; }

/* Hero visual: layered cards */
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 400px;
  margin-inline: auto;
  padding: 28px 36px 28px 0;
}
.hero-card {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}
.hero-card--main {
  top: 0; left: 0; right: 14%; bottom: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-primary);
  color: var(--color-on-primary);
  z-index: 1;
}
.hero-card--main .hero-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(250, 249, 245, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.hero-card--main svg { width: 26px; height: 26px; color: var(--color-on-primary); }
.hero-card--main strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-top: var(--space-3); }
.hero-card--main span { font-size: 0.85rem; color: rgba(250, 249, 245, 0.68); }

.hero-card--float {
  width: 78%;
  left: 8%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
}
.hero-card--float .dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.hero-card--float svg { width: 20px; height: 20px; }
.hero-card--float strong { display: block; font-size: 1.05rem; color: var(--color-primary); }
.hero-card--float span { font-size: 0.78rem; color: var(--color-muted-foreground); }

.hero-badge {
  position: absolute;
  top: 6%; right: 0;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.hero-badge span { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.03em; max-width: 76px; margin-top: 2px; }

/* ==========================================================================
   Path chooser (Particulier / Professionnel)
   ========================================================================== */

.path-chooser {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (min-width: 720px) { .path-chooser { grid-template-columns: 1fr 1fr; } }

.path-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.path-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.path-card__icon svg { width: 26px; height: 26px; }
.path-card h3 { margin-bottom: 2px; }
.path-card ul { display: flex; flex-direction: column; gap: var(--space-2); margin-block: var(--space-2); }
.path-card li { display: flex; gap: var(--space-2); font-size: 0.9rem; color: var(--color-muted-foreground); }
.path-card li svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; margin-top: 2px; }
.path-card .btn { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   Stat strip
   ========================================================================== */

.stat-strip {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: left; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  color: var(--color-accent);
  font-weight: 500;
}
.stat span { font-size: 0.85rem; color: var(--color-muted-foreground); }

/* ==========================================================================
   Service cards
   ========================================================================== */

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 100%;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h4 { color: var(--color-primary); }
.service-card p { font-size: 0.9rem; margin: 0; }
.service-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.service-card__price { font-weight: 700; color: var(--color-primary); }
.service-card__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; color: var(--color-accent); font-size: 0.85rem;
}
.service-card__link svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.service-card__link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Process steps
   ========================================================================== */

.process {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
@media (min-width: 860px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step { position: relative; padding-top: var(--space-5); }
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-2);
}
.process__step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}
.process__step h4 { margin-bottom: var(--space-1); }
.process__step p { font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Guarantees / trust grid
   ========================================================================== */

.guarantee-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(250, 249, 245, 0.06);
  border: 1px solid rgba(250, 249, 245, 0.14);
}
.guarantee-card__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-sm);
  background: rgba(250, 249, 245, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-on-primary);
}
.guarantee-card__icon svg { width: 22px; height: 22px; }
.guarantee-card h4 { color: var(--color-on-primary); margin-bottom: 4px; font-family: var(--font-body); }
.guarantee-card p { font-size: 0.875rem; margin: 0; }

/* ==========================================================================
   Pricing tables / toggle
   ========================================================================== */

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--color-muted);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}
.segmented button {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
}
.segmented button[aria-selected="true"] {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}
.pricing-card--highlight { border-color: var(--color-accent); box-shadow: var(--shadow-md); position: relative; }
.pricing-card--highlight::before {
  content: 'Le plus choisi';
  position: absolute; top: -12px; left: var(--space-5);
  background: var(--color-accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin-block: var(--space-2); }
.pricing-card__price strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-primary); font-weight: 500; }
.pricing-card__price span { font-size: 0.85rem; color: var(--color-muted-foreground); }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; margin-block: var(--space-2); flex: 1; }
.pricing-card li { display: flex; gap: var(--space-2); font-size: 0.9rem; }
.pricing-card li svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; margin-top: 2px; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.price-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted-foreground);
  font-weight: 600;
}
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.price-table tbody tr:hover { background: var(--color-muted); }
.price-table tbody tr[id] { scroll-margin-top: calc(var(--header-h) + var(--space-3)); }
.price-table__wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.price-table__wrap .price-table { border-radius: var(--radius-md); overflow: hidden; }
.price-table__note { font-size: 0.85rem; color: var(--color-muted-foreground); margin-top: var(--space-3); }

/* ==========================================================================
   Devis simulator
   ========================================================================== */

.simulator {
  display: grid;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
@media (min-width: 960px) { .simulator { grid-template-columns: 1.5fr 1fr; padding: var(--space-6); } }

.simulator__list { display: flex; flex-direction: column; gap: var(--space-3); }

.sim-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast);
}
.sim-row:has(.sim-row__qty[data-qty]:not([data-qty="0"])) { border-color: var(--color-accent); background: var(--color-accent-light); }

.sim-row__info { flex: 1; min-width: 0; }
.sim-row__info strong { display: block; font-size: 0.95rem; color: var(--color-primary); }
.sim-row__info span { font-size: 0.82rem; color: var(--color-muted-foreground); }

.sim-row__qty {
  display: flex; align-items: center; gap: 8px; flex: none;
}
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.qty-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.qty-value { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.simulator__summary {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  align-self: start;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.simulator__summary h4 { color: var(--color-on-primary); }
.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: rgba(250,249,245,0.7); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-3); border-top: 1px solid rgba(250,249,245,0.18); }
.summary-total strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-empty { font-size: 0.85rem; color: rgba(250,249,245,0.6); }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }
.field .hint { font-size: 0.78rem; color: var(--color-muted-foreground); }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-foreground);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
}
.field textarea { padding-block: var(--space-3); min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}
.field-row { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.radio-group { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.radio-pill:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-light); color: var(--color-accent-strong); }
.radio-pill input { accent-color: var(--color-accent); }
.form-status { font-size: 0.9rem; padding: var(--space-3); border-radius: var(--radius-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status--success { background: var(--color-accent-light); color: var(--color-accent-strong); }

/* ==========================================================================
   Contact info cards / zone list
   ========================================================================== */

.info-card {
  display: flex; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.info-card__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h4 { margin-bottom: 2px; }
.info-card p, .info-card a { font-size: 0.9rem; margin: 0; }
.info-card a { color: var(--color-accent); font-weight: 600; }

.zone-chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zone-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  display: flex; flex-direction: column; gap: var(--space-4);
  align-items: flex-start; justify-content: space-between;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-on-primary);
}
@media (min-width: 860px) { .cta-band { flex-direction: row; align-items: center; } }
.cta-band h3 { color: var(--color-on-primary); margin-bottom: var(--space-2); }
.cta-band p { margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; flex: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary);
  color: rgba(250, 249, 245, 0.75);
  padding-block: var(--space-7) var(--space-5);
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--color-on-primary); margin-bottom: var(--space-3); }
.footer-brand p { max-width: 34ch; font-size: 0.9rem; }
.footer-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(250,249,245,0.5); margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { font-size: 0.9rem; transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--color-on-primary); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(250, 249, 245, 0.14);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--color-on-primary); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Reveal-on-scroll is opt-in via the .js class (set by an inline script in <head>)
   so content stays visible by default if JavaScript fails to load or run. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Page hero (secondary pages) */
.page-hero { padding-block: var(--space-7) var(--space-6); }
.page-hero .eyebrow { margin-bottom: var(--space-3); }
.page-hero h1 { margin-bottom: var(--space-5); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--color-muted-foreground); margin-bottom: var(--space-4); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ==========================================================================
   Service detail rows (Services page)
   ========================================================================== */

.service-detail {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + var(--space-3));
}
.service-detail + .service-detail { margin-top: var(--space-4); }
.service-detail__icon {
  width: 56px; height: 56px; flex: none;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.service-detail__icon svg { width: 28px; height: 28px; }
.service-detail__body { flex: 1; min-width: 0; }
.service-detail__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.service-detail__head h3 { margin: 0; }
.price-pill {
  flex: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-muted);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  white-space: nowrap;
}
.service-detail__list { display: flex; flex-direction: column; gap: 8px; margin: var(--space-3) 0; }
.service-detail__list li { display: flex; gap: var(--space-2); font-size: 0.9rem; color: var(--color-muted-foreground); }
.service-detail__list li svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; margin-top: 2px; }
.service-detail__foot {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.service-group-title {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin: var(--space-7) 0 var(--space-4);
}
.service-group-title:first-child { margin-top: 0; }
.service-group-title h3 { margin: 0; }
.service-group-title span { font-size: 0.85rem; color: var(--color-muted-foreground); }

/* ==========================================================================
   Coverage map (Zone d'intervention)
   ========================================================================== */

.coverage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.coverage__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--color-border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.coverage__ring--1 { width: 30%; height: 30%; border-color: var(--color-accent); border-style: solid; background: var(--color-accent-light); }
.coverage__ring--2 { width: 62%; height: 62%; }
.coverage__ring--3 { width: 94%; height: 94%; }
.coverage__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  animation: coverage-pulse 2.8s var(--ease-out) infinite;
}
@keyframes coverage-pulse {
  0% { transform: scale(0.3); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coverage__pulse { animation: none; opacity: 0; }
}
.coverage__pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.coverage__pin svg { width: 28px; height: 28px; }
.coverage__dot {
  position: absolute;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  z-index: 1;
}
.coverage__label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-surface);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

/* ==========================================================================
   Multi-step contact form
   ========================================================================== */

.stepper { margin-bottom: var(--space-5); }
.stepper__track {
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.stepper__fill {
  height: 100%;
  width: 33.33%;
  background: var(--color-accent);
  border-radius: inherit;
  transition: width var(--duration-slow) var(--ease-out);
}
.stepper__labels { display: flex; justify-content: space-between; margin-top: 10px; }
.stepper__labels span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
  transition: color var(--duration-base) var(--ease-out);
}
.stepper__labels span.is-active, .stepper__labels span.is-done { color: var(--color-accent); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: step-in var(--duration-slow) var(--ease-out); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-step.is-active { animation: none; }
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.step-actions .btn--primary, .step-actions .btn--accent { margin-left: auto; }

.option-grid { display: grid; gap: 10px; }
.option-grid--2 { grid-template-columns: repeat(2, 1fr); }
.option-grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) {
  .option-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 96px;
  padding: 16px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}
.option-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.option-card:active { transform: translateY(-1px) scale(0.98); }
.option-card__icon svg { width: 24px; height: 24px; color: var(--color-accent); transition: transform var(--duration-base) var(--ease-out); }
.option-card span:last-child { font-size: 0.82rem; font-weight: 600; color: var(--color-primary); line-height: 1.25; }
.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-card:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  box-shadow: var(--shadow-sm);
}
.option-card:has(input:checked) .option-card__icon svg { transform: scale(1.12); }
.option-card:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.option-card__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.option-card__check svg { width: 11px; height: 11px; }
.option-card:has(input:checked) .option-card__check { opacity: 1; transform: scale(1); }

.field-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-destructive);
  margin: 6px 0 0;
  display: none;
}
.field-error.is-visible { display: block; }

.step-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--space-3);
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.step-recap .zone-chip { background: var(--color-surface); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-4);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; color: var(--color-accent); flex: none; transition: transform var(--duration-base) var(--ease-out); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--space-4); margin: 0; max-width: 65ch; }
