/* ════════════════════════════════════════════════════════════
   SERVICES.CSS — BET SG Bâtiment
   Page    : services.html
   Dépend  : tokens.css → base.css → components.css → layout.css
   Révision: 2026 — dupliqués supprimés, palette tokenisée,
             tailles WCAG corrigées, design premium BTP unifié

   Art direction : cabinet d'ingénierie de référence
   Palette hero : or architectural + fond noir profond
   Ref visuels  : Zaha Hadid Architects, Arup, Bouygues TP

   Index des sections
   ──────────────────────────────────────────────────────────
   0.  Tokens or hero         ← AJOUT — palette centralisée
   1.  Keyframes
   2.  Hero — fond & structure
   3.  Hero — badge, titre, sous-titre
   4.  Hero — stats bande
   5.  Navigation ancres rapides
   6.  Intro + stat-items
   7.  Grille des 8 services
   8.  Carte service
   9.  Processus en 4 étapes
   10. Calculateur de devis    ← CORRECTION doublons fusionnés
   11. Section CTA finale
   12. Animations scroll
   13. Responsive
   14. Reduced motion          ← AJOUT hover translateY manquant
   ════════════════════════════════════════════════════════════ */

/* ─── 0. TOKENS OR HERO ───────────────────────────────────── */
/* AJOUT : variables locales pour la palette or du hero        */
/* Remplace ~25 valeurs oklch(0.64-0.72 0.14 72) hardcodées    */

:root {
  --gold-base:    oklch(0.72 0.14 72);   /* or principal — texte accent */
  --gold-deep:    oklch(0.64 0.14 72);   /* or profond — fond bouton    */
  --gold-bright:  oklch(0.80 0.12 72);   /* or lumineux — gradient fin  */
  --gold-pulse:   oklch(0.65 0.14 72);   /* or pulsant — dot animation  */
  --hero-dark:    oklch(0.10 0.012 68);  /* fond noir architectural     */
  --hero-dark-2:  oklch(0.09 0.010 72);  /* fond noir légèrement chaud  */
  --hero-dark-3:  oklch(0.11 0.014 60);  /* fond noir légèrement froid  */
}

/* ─── 1. KEYFRAMES ────────────────────────────────────────── */

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 oklch(from var(--gold-pulse) l c h / 0.55);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.8);
    box-shadow: 0 0 0 5px oklch(from var(--gold-pulse) l c h / 0);
  }
}

@keyframes shimmer-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

@keyframes float-grid {
  0%, 100% { opacity: 0.018; transform: translateY(0); }
  50%       { opacity: 0.028; transform: translateY(-6px); }
}

@keyframes calc-result-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 2. HERO — FOND & STRUCTURE ─────────────────────────── */

.services-hero {
  position: relative;
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--hero-dark);
}

/* Canvas particules JS */
.services-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Fond mesh — lumières asymétriques architecturales */
.services-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at -8% 0%,
      oklch(0.30 0.08 192 / 0.65) 0%, transparent 62%),
    radial-gradient(ellipse 50% 55% at 108% 95%,
      oklch(0.48 0.11 68  / 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 50% 100%,
      oklch(0.40 0.09 72  / 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 25% 45% at 100% 40%,
      oklch(0.22 0.06 220 / 0.18) 0%, transparent 70%),
    linear-gradient(165deg,
      var(--hero-dark)   0%,
      var(--hero-dark-2) 40%,
      var(--hero-dark-3) 100%
    );
}

/* Grille technique blueprint */
.services-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  background-image:
    linear-gradient(to bottom, oklch(1 0 0 / 0.032) 1px, transparent 1px),
    linear-gradient(to right,  oklch(1 0 0 / 0.032) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(
    ellipse 75% 65% at 35% 45%,
    oklch(0 0 0 / 0.55) 0%, transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 75% 65% at 35% 45%,
    oklch(0 0 0 / 0.55) 0%, transparent 100%
  );
  animation: float-grid 12s ease-in-out infinite;
}

/* Trait lumineux horizontal */
.services-hero__line {
  position: absolute;
  top: 52%;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    oklch(from var(--gold-base) l c h / 0.18) 30%,
    oklch(from var(--gold-base) l c h / 0.08) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Grain texture */
.services-hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
}

/* Vignette */
.services-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 110% at 50% 50%,
      transparent 30%,
      oklch(0.08 0.010 65 / 0.50) 100%),
    linear-gradient(to bottom,
      transparent 45%,
      oklch(0.08 0.010 65 / 0.80) 100%);
  pointer-events: none;
}

/* ─── 3. HERO — BADGE, TITRE, SOUS-TITRE ─────────────────── */

.services-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(var(--space-20), 11vw, var(--space-24)) var(--space-8);
}

.services-hero__inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Breadcrumb sur fond sombre */
.breadcrumb--light,
.breadcrumb--light a {
  color: oklch(1 0 0 / 0.40);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.breadcrumb--light a:hover { color: var(--gold-base); }

/* CORRECTION : content '›' explicite — cohérence cross-pages */
.breadcrumb--light li + li::before {
  content: '›';
  opacity: 0.20;
  speak: never;
}

.breadcrumb--light li[aria-current="page"] {
  color: oklch(1 0 0 / 0.70);
  font-weight: 600;
}

/* Badge hero avec shimmer */
.services-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: oklch(1 0 0 / 0.055);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); /* CORRECTION : 0.7rem → var(--text-xs) = 12px min */
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
  position: relative;
  overflow: hidden;
}

/* AJOUT : fallback backdrop-filter Firefox < 103 */
@supports not (backdrop-filter: blur(12px)) {
  .services-hero__badge {
    background: oklch(0.15 0.012 68 / 0.92);
  }
}

/* Shimmer — décalé pour ne pas s'activer à l'affichage */
.services-hero__badge::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.10), transparent);
  animation: shimmer-line 4s ease-in-out infinite;
  animation-delay: 2s;
}

.services-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-base);
  flex-shrink: 0;
  animation: pulse-dot 2.8s ease-in-out infinite;
}

/* Titre */
.services-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2.2rem + 2.4vw, 4.0rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.04em;
}

.services-hero__title-line {
  display: block;
  color: oklch(1 0 0 / 0.95);
}

/* Ligne accent or */
.services-hero__title-line--accent {
  display: block;
  font-style: italic;
  font-weight: 700;
  color: var(--gold-base);
  text-shadow:
    0 0 30px  oklch(from var(--gold-base) l c h / 0.35),
    0 0 70px  oklch(from var(--gold-base) l c h / 0.12),
    0 0 120px oklch(from var(--gold-base) l c h / 0.06);
  letter-spacing: -0.03em;
}

/* Séparateur typographique or */
.services-hero__divider {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    oklch(from var(--gold-base) l c h / 0.80),
    oklch(from var(--gold-base) l c h / 0.20)
  );
  margin-block: var(--space-1);
}

/* Sous-titre */
.services-hero__subtitle {
  font-size: clamp(var(--text-base), 1rem + 0.35vw, 1.125rem);
  color: oklch(1 0 0 / 0.60);
  max-width: 56ch;
  line-height: 1.85;
  margin: 0;
}

.services-hero__subtitle abbr {
  text-decoration: underline dotted oklch(1 0 0 / 0.25);
  text-underline-offset: 3px;
  cursor: help;
}

/* CTAs hero */
.services-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Bouton or principal */
.services-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-7);
  background: var(--gold-deep);
  color: var(--hero-dark);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 48px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 1px 0   oklch(from var(--gold-bright) l c h / 0.30) inset,
    0 3px 10px oklch(from var(--gold-deep)  l c h / 0.40),
    0 0  0 1px oklch(from var(--gold-deep)  l c h / 0.20);
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform  120ms ease;
}

.services-hero__btn-primary:hover {
  background: oklch(0.69 0.15 72);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0    oklch(from var(--gold-bright) l c h / 0.35) inset,
    0 10px 32px oklch(from var(--gold-deep)  l c h / 0.50),
    0 0  0 1px  oklch(from var(--gold-deep)  l c h / 0.15);
}

.services-hero__btn-primary:active { transform: translateY(0); }

.services-hero__btn-primary svg {
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services-hero__btn-primary:hover svg { transform: translateX(5px); }

/* Bouton verre givré */
.services-hero__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: oklch(1 0 0 / 0.04);
  color: oklch(1 0 0 / 0.82);
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background   180ms ease,
    border-color 180ms ease,
    transform    120ms ease;
}

/* AJOUT : fallback backdrop-filter Firefox < 103 */
@supports not (backdrop-filter: blur(16px)) {
  .services-hero__btn-outline {
    background: oklch(0.18 0.012 68 / 0.92);
  }
}

.services-hero__btn-outline:hover {
  background: oklch(1 0 0 / 0.09);
  border-color: oklch(1 0 0 / 0.30);
  transform: translateY(-2px);
}

.services-hero__btn-outline:active { transform: translateY(0); }

/* ─── 4. HERO — BANDE STATS ───────────────────────────────── */

.services-hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid oklch(from var(--gold-base) l c h / 0.20);
  background: oklch(1 0 0 / 0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* AJOUT : fallback backdrop-filter bande stats */
@supports not (backdrop-filter: blur(20px)) {
  .services-hero__stats {
    background: oklch(0.12 0.012 68 / 0.95);
  }
}

.services-hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-6);
  position: relative;
  transition: background 200ms ease;
  cursor: default;
}

/* Séparateur vertical fin entre stats */
.services-hero__stat + .services-hero__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-6);
  bottom: var(--space-6);
  width: 1px;
  background: oklch(1 0 0 / 0.08);
}

.services-hero__stat:hover { background: oklch(1 0 0 / 0.04); }

.services-hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 1.5rem + 1vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

/* Accent or sur la valeur numérique */
.services-hero__stat-value em {
  font-style: normal;
  color: var(--gold-base);
}

/* CORRECTION : 0.65rem → var(--text-xs) = 12px minimum WCAG */
.services-hero__stat-label {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.38);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  line-height: 1.45;
  display: block;
}

/* ─── 5. NAVIGATION ANCRES RAPIDES ───────────────────────── */

.services-quick-nav { margin-top: var(--space-2); }

.services-quick-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-quick-nav a {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--space-2) + 1px) var(--space-4);
  font-size: var(--text-xs); /* CORRECTION : 0.7rem → var(--text-xs) = 12px min */
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: oklch(from var(--color-text) l c h / 0.04);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px; /* touch target mobile acceptable pour nav secondaire */
  transition:
    color         var(--transition-interactive),
    background    var(--transition-interactive),
    border-color  var(--transition-interactive),
    box-shadow    var(--transition-interactive);
}

.services-quick-nav a:hover {
  color: var(--color-primary);
  background: color-mix(in oklch, var(--color-primary) 7%, var(--color-surface));
  border-color: oklch(from var(--color-primary) l c h / 0.28);
  box-shadow: 0 2px 8px oklch(from var(--color-primary) l c h / 0.12);
}

/* Quick-nav dans le contexte hero sombre */
.services-hero .services-quick-nav a {
  color: oklch(1 0 0 / 0.48);
  background: oklch(1 0 0 / 0.04);
  border-color: oklch(1 0 0 / 0.09);
}

.services-hero .services-quick-nav a:hover {
  color: var(--gold-base);
  background: oklch(from var(--gold-base) l c h / 0.08);
  border-color: oklch(from var(--gold-base) l c h / 0.30);
  box-shadow: 0 0 12px oklch(from var(--gold-base) l c h / 0.12);
}

.services-quick-nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ─── 6. INTRO + STAT-ITEMS ───────────────────────────────── */

.services-intro {
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
  background: var(--color-bg);
}

.services-intro__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}

.services-intro__text .section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.services-intro__text .section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.18;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.services-intro__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-4);
  max-width: 58ch;
}

.services-intro__text p:last-child { margin-bottom: 0; }

.services-intro__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-content: start;
}

/* Carte stat */
.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition:
    transform    220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease;
}

/* Trait teal en haut au hover */
.stat-item::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--space-5);
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  opacity: 0;
  transition: opacity 220ms ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.18);
}

.stat-item:hover::before { opacity: 1; }

.stat-item__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
}

/* ─── 7. GRILLE DES 8 SERVICES ────────────────────────────── */

.services-grid-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
}

.section-header {
  max-width: 54ch;
  margin-bottom: var(--space-12);
}

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-header .section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.18;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-header .section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-5);
}

/* ─── 8. CARTE SERVICE ────────────────────────────────────── */

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition:
    transform    220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease;
}

/* Trait teal en haut — déployé au hover */
.service-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    oklch(from var(--color-primary) l c h / 0.3)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 2px 4px   oklch(from var(--color-text) l c h / 0.04),
    0 12px 28px  oklch(from var(--color-text) l c h / 0.08);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.service-card:hover::before { transform: scaleX(1); }

/* Icône service */
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: color-mix(in oklch, var(--color-primary) 9%, var(--color-surface));
  border: 1px solid oklch(from var(--color-primary) l c h / 0.16);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin: var(--space-6) var(--space-6) 0;
  flex-shrink: 0;
  transition:
    background var(--transition-interactive),
    transform  var(--transition-interactive);
}

.service-card:hover .service-card__icon {
  background: color-mix(in oklch, var(--color-primary) 15%, var(--color-surface));
  transform: scale(1.06);
}

/* Corps de la carte */
.service-card .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.22;
  margin: 0;
  transition: color var(--transition-interactive);
}

.service-card:hover .service-card__title { color: var(--color-primary); }

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* Liste des prestations */
.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.055);
  line-height: 1.55;
}

.service-card__list li:last-child { border-bottom: none; }

.service-card__list li::before {
  content: '→';
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.75;
  transition:
    opacity   var(--transition-interactive),
    transform var(--transition-interactive);
}

.service-card:hover .service-card__list li::before {
  opacity: 1;
  transform: translateX(2px);
}

/* Badges bénéfices */
.service-card__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: var(--space-4) 0 0;
  margin: 0 0 0;
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.065);
  margin-top: auto;
}

.service-card__benefits li {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: oklch(from var(--color-primary) l c h / 0.07);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.14);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: oklch(from var(--color-primary) 0.68 c h);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition:
    background   var(--transition-interactive),
    border-color var(--transition-interactive);
}

.service-card:hover .service-card__benefits li {
  background: oklch(from var(--color-primary) l c h / 0.10);
  border-color: oklch(from var(--color-primary) l c h / 0.22);
}

.service-card .service-cta {
  padding-top: var(--space-4);
  margin-top: var(--space-2);
}

.service-card .service-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ─── 9. PROCESSUS EN 4 ÉTAPES ───────────────────────────── */

.process-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  /* CORRECTION : background opaque pour masquer le connecteur derrière les cards */
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  position: relative;
  transition:
    transform  240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: color-mix(in oklch, var(--color-primary) 10%, var(--color-surface));
  border: 1.5px solid oklch(from var(--color-primary) l c h / 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* Connecteur horizontal entre étapes */
@media (min-width: 769px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 20px);
    left: calc(var(--space-6) + 20px);
    right: calc(var(--space-6) + 20px);
    height: 1px;
    background: linear-gradient(
      to right,
      oklch(from var(--color-primary) l c h / 0.3),
      oklch(from var(--color-primary) l c h / 0.1)
    );
    z-index: 0;
    pointer-events: none;
  }

  /* z-index:1 + background opaque → masque le connecteur */
  .process-step { z-index: 1; }
}

/* ─── 10. CALCULATEUR DE DEVIS ────────────────────────────── */
/* CORRECTION : 3 blocs dupliqués fusionnés en un seul         */
/* Version retenue : la plus complète (icônes, erreurs, focus) */

.calculator-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
}

.calculator-card {
  max-width: 820px;
  margin-inline: auto;
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}

/* 3 colonnes : surface m² | type structure | ville */
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.calc-required {
  color: var(--color-error);
  font-size: var(--text-xs);
}

/* Input avec icône préfixe */
.calc-input-wrap,
.calc-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--color-text-faint);
  pointer-events: none;
  flex-shrink: 0;
}

.calc-chevron {
  position: absolute;
  right: var(--space-3);
  color: var(--color-text-faint);
  pointer-events: none;
}

.calc-input-wrap input,
.calc-select-wrap select {
  width: 100%;
  height: 46px;
  padding-inline: calc(var(--space-3) + 16px + var(--space-2)) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-interactive),
    box-shadow   var(--transition-interactive);
  -webkit-appearance: none;
  appearance: none;
}

.calc-select-wrap select {
  padding-right: calc(var(--space-3) + 14px + var(--space-2));
}

.calc-input-wrap input:focus-visible,
.calc-select-wrap select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.calc-input-wrap input::placeholder { color: var(--color-text-faint); }

/* États d'erreur sur les champs */
.calc-field--error .calc-input-wrap input,
.calc-field--error .calc-select-wrap select {
  border-color: var(--color-error);
  background: oklch(from var(--color-error) l c h / 0.04);
}

.calc-field--error .calc-input-wrap input:focus-visible {
  box-shadow: 0 0 0 3px oklch(from var(--color-error) l c h / 0.15);
}

.calc-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.calc-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Fieldset missions */
.calc-missions {
  border: 1.5px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-7);
  transition: border-color var(--transition-interactive);
}

.calc-missions:focus-within {
  border-color: oklch(from var(--color-primary) l c h / 0.25);
}

.calc-missions legend {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  cursor: default;
}

.calc-missions legend .calc-hint {
  font-weight: 400;
  margin-left: var(--space-1);
}

.calc-missions-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* Grille des missions */
.calc-missions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Label mission */
.calc-mission-label {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  min-height: 52px;
  transition:
    background   var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow   var(--transition-interactive);
}

.calc-mission-label:hover {
  background: color-mix(in oklch, var(--color-primary) 5%, var(--color-surface));
  border-color: oklch(from var(--color-primary) l c h / 0.22);
  box-shadow: 0 2px 8px oklch(from var(--color-primary) l c h / 0.08);
}

.calc-mission-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.calc-mission-label:has(input:checked) {
  background: color-mix(in oklch, var(--color-primary) 8%, var(--color-surface));
  border-color: oklch(from var(--color-primary) l c h / 0.35);
  box-shadow: 0 0 0 1px oklch(from var(--color-primary) l c h / 0.12);
}

.calc-mission-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition-interactive);
}

.calc-mission-label:has(input:checked) .calc-mission-icon {
  color: var(--color-primary);
}

/* CORRECTION : 0.78rem → var(--text-xs) = 12px minimum */
.calc-mission-text {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

/* CORRECTION : 0.67rem → var(--text-xs) = 12px minimum WCAG */
.calc-mission__rate {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  opacity: 0.72;
  letter-spacing: 0.02em;
  justify-self: end;
  transition: opacity var(--transition-interactive);
}

.calc-mission-label:has(input:checked) .calc-mission__rate { opacity: 1; }

/* Zone résultat */
#calcResult { margin-bottom: var(--space-6); }
#calcResult[hidden] { display: none; }

.calc-result {
  background: color-mix(in oklch, var(--color-primary) 5%, var(--color-surface));
  border: 1.5px solid oklch(from var(--color-primary) l c h / 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: calc-result-in 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Barre fourchette de prix */
.calc-result__range { display: flex; flex-direction: column; gap: var(--space-3); }

.calc-result__range-bar {
  height: 6px;
  background: oklch(from var(--color-primary) l c h / 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.calc-result__range-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--gold-base) 60%,
    var(--gold-bright) 100%
  );
  border-radius: var(--radius-full);
}

.calc-result__range-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--space-4);
}

.calc-result__bound         { display: flex; flex-direction: column; gap: 2px; }
.calc-result__bound--high   { text-align: right; }
.calc-result__midpoint      { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.calc-result__bound-value,
.calc-result__midpoint-value {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.calc-result__bound-value    { font-size: var(--text-lg); color: var(--color-text); }
.calc-result__midpoint-value { font-size: var(--text-xl); color: var(--color-primary); }

.calc-result__bound-label,
.calc-result__midpoint-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.calc-result__midpoint-label {
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.75;
}

.calc-result__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Détail accordéon */
.calc-result__detail {
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calc-result__detail summary {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  transition: background var(--transition-interactive);
}

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

.calc-result__detail summary::before {
  content: '▸';
  font-size: var(--text-xs);
  transition: transform 220ms ease;
  color: var(--color-primary);
}

.calc-result__detail[open] summary::before { transform: rotate(90deg); }
.calc-result__detail summary:hover { background: var(--color-surface-offset); }

.calc-result__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.calc-result__table th,
.calc-result__table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  color: var(--color-text-muted);
}

.calc-result__table th {
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-surface-offset);
}

.calc-result__num { text-align: right; font-variant-numeric: tabular-nums; }

.calc-result__total-row th,
.calc-result__total-row td {
  font-weight: 800;
  color: var(--color-text);
  background: color-mix(in oklch, var(--color-primary) 6%, var(--color-surface));
  border-bottom: none;
}

.calc-result__tva {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  margin: 0;
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.calc-result__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.calc-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.07);
}

.calc-disclaimer svg { flex-shrink: 0; margin-top: 2px; }

.calc-disclaimer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-interactive);
}

.calc-disclaimer a:hover { opacity: 0.75; }

.calc-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* ─── 11. CTA FINAL ───────────────────────────────────────── */

.services-cta {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}

.services-cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.services-cta__inner .section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.services-cta__inner .section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

/* ─── 12. ANIMATIONS SCROLL ───────────────────────────────── */

.animate-target {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-target.animate-in { opacity: 1; transform: translateY(0); }

/* Stagger délais sur les cards */
.services-cards-grid .service-card:nth-child(2) { transition-delay:  60ms; }
.services-cards-grid .service-card:nth-child(3) { transition-delay: 120ms; }
.services-cards-grid .service-card:nth-child(4) { transition-delay: 180ms; }
.services-cards-grid .service-card:nth-child(5) { transition-delay: 240ms; }
.services-cards-grid .service-card:nth-child(6) { transition-delay: 300ms; }
.services-cards-grid .service-card:nth-child(7) { transition-delay: 360ms; }
.services-cards-grid .service-card:nth-child(8) { transition-delay: 420ms; }

.process-steps .process-step:nth-child(2) { transition-delay:  80ms; }
.process-steps .process-step:nth-child(3) { transition-delay: 160ms; }
.process-steps .process-step:nth-child(4) { transition-delay: 240ms; }

.services-intro__stats .stat-item:nth-child(2) { transition-delay:  60ms; }
.services-intro__stats .stat-item:nth-child(3) { transition-delay: 120ms; }
.services-intro__stats .stat-item:nth-child(4) { transition-delay: 180ms; }

/* ─── 13. RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .services-intro__grid    { grid-template-columns: 1fr; gap: var(--space-10); }
  .services-intro__stats   { grid-template-columns: repeat(4, 1fr); }
  .services-intro__text p  { max-width: none; }
}

@media (max-width: 768px) {
  .services-hero           { min-height: 100svh; }
  .services-hero__stats    { grid-template-columns: repeat(2, 1fr); }
  .services-hero__stat + .services-hero__stat::before { display: none; }

  .services-hero__actions           { flex-direction: column; align-items: stretch; }
  .services-hero__btn-primary,
  .services-hero__btn-outline       { justify-content: center; }
  .services-hero__line              { display: none; }

  .services-quick-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-quick-nav ul::-webkit-scrollbar { display: none; }

  .services-intro__stats  { grid-template-columns: 1fr 1fr; }
  .services-cards-grid    { grid-template-columns: 1fr; }
  .calc-row               { grid-template-columns: 1fr; gap: var(--space-4); }
  .calc-missions__grid    { grid-template-columns: 1fr; }
  .cta-actions            { flex-direction: column; align-items: stretch; }
  .cta-actions .btn       { justify-content: center; }
  .process-steps          { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-hero__stats   { grid-template-columns: repeat(2, 1fr); }
  .services-intro__stats  { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .stat-item              { padding: var(--space-4); }
  .stat-item__value       { font-size: var(--text-xl); }
  .calculator-card        { padding: var(--space-6); }
  .calc-missions          { padding: var(--space-4); }

  .calc-result__cta       { flex-direction: column; }
  .calc-result__cta .btn  { justify-content: center; }
  .calc-result__range-labels {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .calc-result__midpoint {
    grid-column: 1 / -1;
    order: -1;
    align-items: flex-start;
  }
  .calc-actions           { flex-direction: column; }
  .calc-actions .btn      { justify-content: center; }
}

/* ─── 14. REDUCED MOTION ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* Animations hero */
  .animate-target         { opacity: 1; transform: none; transition: none; }
  .services-hero__grid    { animation: none; }
  .services-hero__badge::after { animation: none; }
  .services-hero__badge-dot    { animation: none; }

  /* AJOUT : hover translateY non couverts dans l'original */
  .service-card:hover,
  .stat-item:hover,
  .process-step:hover,
  .services-hero__btn-primary:hover,
  .services-hero__btn-outline:hover {
    transform: none;
  }

  /* Trait teal service-card — désactiver le scaleX */
  .service-card:hover::before { transform: scaleX(0); }

  /* Calculateur */
  .calc-result            { animation: none; }
  .calc-result__range-fill { transition: none; }
}