/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --blue: #0094DA;
  --blue-soft: rgba(0,148,218,0.10);
  --orange: #FB7213;
  --orange-soft: rgba(251,114,19,0.10);
  /* Thème clair */
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #EDF3FB;
  --bg-footer: #EEF2F8;
  --text: #0D1220;
  --gray: #6B7A8D;
  --gray-soft: #9AAABB;
  --border: rgba(13,18,32,0.09);
  --border-strong: rgba(13,18,32,0.16);
  --success: #16A34A;
  --error: #DC2626;
  --font-display: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1240px;
  --gutter: 32px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

h1, h2, h3, .hero-title-visible {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,148,218,0.28);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,148,218,0.38);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ============================================================
   S1 — NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid rgba(13,18,32,0);
  transition: all 0.35s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(13,18,32,0.07);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}
.logo-row {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo-name {
  font-weight: 900;
  color: var(--text);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-family: var(--font-body);
}
.logo-dot-blue {
  color: #0094DA;
  font-size: 0.9rem;
  margin-left: 4px;
}
.logo-dot-orange {
  color: #FB7213;
  font-size: 0.9rem;
  margin-left: 1px;
}
.logo-tag {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--gray);
  margin-top: 2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.navbar:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; }

.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}
.hamburger span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 21px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mobile-menu .btn { margin-top: 16px; }

/* ============================================================
   S2 — HERO + SLIDER AVANT/APRÈS
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(100px, 10vh, 140px) 0 clamp(60px, 8vh, 100px);
  overflow: hidden;
  background: #1C1C1C; /* fallback pendant chargement */
  user-select: none;
  cursor: ew-resize;
  isolation: isolate;
}

/* --- Panneau AVANT (fond sombre, toiture encrassée) --- */
.hs-avant {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url('Balier_Avant.webp') center/cover no-repeat,
    /* Placeholder CSS si pas d'image */
    radial-gradient(ellipse 120% 100% at 30% 60%, #3A3228 0%, #1E1A16 40%, #0E0C0A 100%);
  background-size: cover;
  background-position: center;
}

/* --- Panneau APRÈS (toiture propre, bleuté) --- */
.hs-apres {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    url('Balier_Après.webp') center/cover no-repeat,
    /* Placeholder CSS si pas d'image */
    radial-gradient(ellipse 120% 100% at 70% 40%, #1E3A5C 0%, #162B44 40%, #0D1E30 100%);
  background-size: cover;
  background-position: center;
  /* clip-path contrôlé par JS — valeur initiale 50% */
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

/* --- Overlay sombre global pour lisibilité du texte --- */
.hs-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.70) 40%,
    rgba(0,0,0,0.88) 100%
  );
  pointer-events: none;
}

/* --- Badges AVANT / APRÈS --- */
.hs-badge {
  position: absolute;
  top: 110px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
}
.hs-badge-avant {
  left: 24px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
}
.hs-badge-apres {
  right: 24px;
  background: rgba(0,148,218,0.75);
  color: #fff;
  border: 1px solid rgba(0,148,218,0.4);
}

/* --- Ligne séparatrice + poignée --- */
.hs-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* contrôlé par JS */
  width: 2px;
  background: rgba(255,255,255,0.35);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: none;
  transition: none;
}
.hs-handle {
  display: none;
}

/* Hint pulsation au load */
@keyframes hsHint {
  0%   { left: 50%; }
  25%  { left: 25%; }
  65%  { left: 72%; }
  100% { left: 50%; }
}
.hs-divider.hinting {
  animation: hsHint 2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}
.hs-divider.hinting ~ .hs-apres { transition: clip-path 0.05s linear; }

/* Scroll-bottom fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(13,18,32,0.5) 100%);
  pointer-events: none;
  z-index: 3;
}

/* --- Contenu texte hero --- */
.hero-inner {
  max-width: 920px;
  text-align: center;
  position: relative;
  z-index: 20;
}
.hero .hero-title-visible {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: clamp(12px, 1.5vh, 18px) 0 clamp(18px, 2vh, 28px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero .hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto clamp(28px, 3.5vh, 44px);
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-clients {
  margin-top: clamp(32px, 4vh, 56px);
  text-align: center;
}
.hero-clients-label {
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.40);
  margin-bottom: 12px;
}
.hero-clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}
.hero-clients-logos img {
  height: clamp(56px, 6.5vw, 90px);
  width: clamp(72px, 8vw, 110px);
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.45);
}
.hero .hero-inner a,
.hero .hero-inner button {
  cursor: pointer;
}
/* Bouton outline blanc dans le hero sombre */
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Scroll chevron */
.scroll-chevron {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  z-index: 20;
  animation: bounce 2.4s infinite;
  opacity: 0.7;
}
.scroll-chevron svg { width: 100%; height: 100%; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* Hero entry animation */
.hero-fade {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-fade.d1 { animation-delay: 400ms; }
.hero-fade.d2 { animation-delay: 550ms; }
.hero-fade.d3 { animation-delay: 700ms; }
.hero-fade.d4 { animation-delay: 850ms; }
.hero-fade.d5 { animation-delay: 1000ms; }
@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}



/* ============================================================
   DESIGN TOKENS (kept)
   ============================================================ */
:root {
  --ink: #0A0E1A;
  --text-mute: #5C6470;
  --text-faint: #9098A8;
  --line: rgba(13,18,32,0.08);
  --line-strong: rgba(13,18,32,0.14);
  --bg-soft: #FAFAFB;
  --section-y: clamp(72px, 8vw, 130px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SECTIONS — Premium design system
   ============================================================ */
.s { position: relative; padding: clamp(72px,8vw,120px) 0; z-index: 2; }
.s-white { background: #fff; }
.s-grey { background: var(--bg-alt); }
.s + .s { border-top: 1px solid var(--border); }

.s-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.s-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.s-title {
  font-family: var(--font-display);
  font-size: clamp(28px,3.2vw,44px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 720px;
}
.s-intro {
  font-size: clamp(16px,1.2vw,18px);
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

/* --- Stats grid --- */
.s-stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.s-stat {
  padding: 48px 32px;
  text-align: center;
  position: relative;
}
.s-stat + .s-stat::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
.s-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px,5vw,72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.s-stat-label {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto 12px;
}
.s-stat-source {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-soft);
}

/* --- Numbered list (services, méthode) --- */
.s-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.s-list li {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.s-list li:first-child { border-top: 1px solid var(--border); }
.s-list-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  padding-top: 4px;
  min-width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.s-list-num::after {
  content: '';
  display: block;
  width: 1.5px;
  height: 28px;
  background: var(--blue);
  opacity: 0.35;
}
.s-list h3 {
  font-size: clamp(18px,1.4vw,22px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.s-list p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 540px;
}

/* --- Méthode layout --- */
.methode-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: flex-start;
}
.methode-left {
  position: sticky;
  top: clamp(80px, 14vh, 140px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: clamp(16px, 3vw, 28px);
}
.methode-left .s-title { margin-bottom: 0; }
.methode-left .s-intro {
  margin-bottom: 0;
  max-width: 420px;
}
.methode-right { position: relative; }
.methode-steps { gap: 0; }
.methode-step {
  position: relative;
  transition: opacity 0.4s ease, background-color 0.4s ease;
  opacity: 0.55;
}
.methode-step.is-active {
  opacity: 1;
}
.methode-step.is-active h3 { color: var(--blue); }
.methode-step.is-active p { color: var(--text); }

/* --- Trust band — mobile / tablette only --- */
.trust-band {
  display: none; /* masqué par défaut (desktop) */
  padding: 14px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trust-band-title {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a4a4a;
  margin-bottom: 10px;
}
.trust-band-track {
  display: flex;
  width: max-content;
  animation: trustScroll 11s linear infinite;
}
.trust-band-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  flex-shrink: 0;
}
.trust-band-content img {
  height: 52px;
  width: auto;
  object-fit: contain;
  
}
@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / 6)); }
}

/* --- Logos strip (between References & Contact) --- */
.logos-strip {
  padding: 14px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.logos-strip-label {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 var(--gutter);
}
.logos-track {
  overflow: hidden;
  width: 100vw;
  max-width: 100%;
}
.logos-strip-row {
  display: flex;
  will-change: transform;
}
.logos-track-content {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 4px 32px;
  flex-shrink: 0;
}
.logos-track-content img {
  height: 88px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* --- Cards base --- */
.s-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.s-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(0,148,218,0.08);
}

/* --- Pourquoi layout --- */
.pq-layout {
  display: block;
}
.pq-right {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-top: 32px;
}

/* Desktop: sticky left + scroll-reveal cards */
@media (min-width: 1025px) {
  #pourquoi {
    /* ⚙ SPEED: increase = slower scroll through cards */
    height: 130vh;
    padding: 0;
  }
  #pourquoi > .pq-layout {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
  .pq-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .pq-left .s-title { margin-bottom: 0; }
  .pq-left .s-intro { margin-bottom: 0; max-width: 400px; }
  .pq-right { margin-top: 0; gap: 20px; }
  .pq-card {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
  }
  .pq-card.is-visible {
    opacity: 1;
    transform: none;
  }
}
.s-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
.s-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
}

/* --- Références accordion --- */
.ref-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}
.ref-acc-row {
  display: flex;
  gap: 10px;
}
.ref-acc-card {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: flex 0.5s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.ref-acc-card.is-active {
  flex: 3;
  cursor: default;
  border-color: var(--blue);
  box-shadow: 0 10px 36px rgba(0,148,218,0.18);
}
.ref-acc-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4d8de 0%, #c4c9d4 100%);
  transition: transform 0.45s ease;
}
.ref-acc-card.is-active .ref-acc-img { transform: scale(1.08); }
.ref-acc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,12,28,0.72) 0%, rgba(8,12,28,0.18) 55%, transparent 100%);
}
.ref-acc-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 16px;
  color: #fff;
}
.ref-acc-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.ref-acc-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.ref-acc-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.38s ease, opacity 0.3s ease 0.06s, margin-top 0.3s ease;
}
.ref-acc-card.is-active .ref-acc-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 7px;
}
.ref-acc-num { display: none; }
@media (max-width: 1024px) {
  .ref-accordion { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ref-acc-row { display: contents; }
  .ref-acc-card {
    flex: none;
    height: auto;
    aspect-ratio: 3/1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: aspect-ratio 0.45s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease, box-shadow 0.35s ease;
  }
  .ref-acc-card .ref-acc-overlay { opacity: 1; }
  .ref-acc-card .ref-acc-info { opacity: 1; transform: none; }
  .ref-acc-card .ref-acc-desc {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }
  .ref-acc-card.is-active {
    flex: none;
    aspect-ratio: 4/3;
    border-color: var(--blue);
    box-shadow: 0 6px 24px rgba(0,148,218,0.15);
    grid-column: 1 / -1;
  }
  .ref-acc-card.is-active .ref-acc-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 7px;
  }
}
@media (max-width: 560px) {
  .ref-accordion { grid-template-columns: 1fr; }
}

/* --- Form --- */
.s-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.s-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.s-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s-form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-soft);
}
.s-form-field input,
.s-form-field select,
.s-form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.s-form-field input:focus,
.s-form-field select:focus,
.s-form-field textarea:focus {
  border-bottom-color: var(--blue);
}
.s-form-field input::placeholder,
.s-form-field textarea::placeholder {
  color: var(--gray-soft);
}
.s-form-field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.s-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%239AAABB' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

/* --- Service cards base --- */
.s-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.s-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.45s ease, transform 0.45s ease;
}
.s-service-card:hover {
  border-color: rgba(0,148,218,0.35);
  box-shadow: 0 6px 28px rgba(0,148,218,0.07);
}
.s-service-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dde2ea 0%, #c8d0db 100%);
  overflow: hidden;
}
.s-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s-service-body {
  padding: 24px 24px 28px;
}
.s-service-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 10px;
}
.s-service-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.s-service-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* --- Desktop horizontal scroll-driven --- */
@media (min-width: 1025px) {
  #services {
    /* ⚙ SPEED TUNING: increase/decrease height to slow/speed animation */
    height: 250vh;
    padding: 0;
  }
  #services > .s-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
  }
  .s-service-track {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
  }
  #services .s-service-grid {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    will-change: transform;
    /* JS sets padding-left/right so first & last cards can be centered */
  }
  #services .s-service-card {
    /* ⚙ CARD WIDTH TUNING */
    flex: 0 0 340px;
    min-width: 0;
    opacity: 0.45;
    transform: scale(0.97);
  }
  #services .s-service-card.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0,148,218,0.25);
    box-shadow: 0 8px 32px rgba(0,148,218,0.08);
  }
}

.contact-confirm {
  display: none;
  padding: 64px 0;
  text-align: center;
}
.contact-confirm.show { display: block; }
.contact-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.contact-confirm-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.contact-confirm-sub {
  font-size: 16px;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER — refined dark
   ============================================================ */
.site-footer {
  background: #0A0E1A;
  padding: 120px 0 48px;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 96px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  height: 64px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-zone {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.footer-col h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.25s ease;
}
.footer-col li a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-legal {
  display: flex;
  gap: 32px;
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color 0.25s ease;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-socials { display: flex; gap: 12px; align-items: center; }
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social-icon:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
  :root { --gutter: 28px; }
  .footer-grid { gap: 56px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; --section-y: clamp(56px, 6vw, 96px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .methode-wrap { grid-template-columns: 1fr; }
  .methode-left {
    position: static;
    padding-right: 0;
    gap: 16px;
  }
  .methode-right { padding-left: 0; }
  .methode-step { opacity: 1; background: transparent; }
  .logos-strip { display: none; }
  .trust-band { display: block; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section-y: clamp(48px, 5vw, 72px); }

  /* Navbar */
  .navbar { height: 60px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }

  /* Hero */
  .hero { padding: 100px 0 64px; min-height: min(100vh, 780px); min-height: min(100dvh, 780px); }
  .hero .hero-title-visible { font-size: clamp(30px, 6vw, 42px); line-height: 1.1; }
  .hero .hero-sub { font-size: 16px; max-width: 480px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .hero-clients-logos { flex-wrap: wrap; gap: 0; }
  .hero-clients-logos img { height: 56px; width: 72px; }
  .hero-inner { max-width: 100%; padding: 0 var(--gutter); }

  /* Sections s-* */
  .s-service-grid { grid-template-columns: 1fr; }
  .s-stats-grid { grid-template-columns: 1fr; }
  .s-stat + .s-stat::before { display: none; }
  .s-stat + .s-stat { border-top: 1px solid var(--border); }
  .s-stat { padding: 36px 16px; }
  .pq-right { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-featured-img { aspect-ratio: 16/6; }
  .s-form-row { grid-template-columns: 1fr; }
  .s-intro { margin-bottom: 36px; }
  .methode-left { top: auto; }
  /* Mobile CTA */
  .mobile-cta { display: block; }
  body { padding-bottom: 80px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
/* ... */
  .hero .hero-title-visible { font-size: clamp(28px, 7vw, 36px); }
}

@media (max-width: 480px) {
  .hero .hero-title-visible { font-size: clamp(26px, 7.5vw, 32px); }
  .hero .hero-sub { font-size: 15px; }
  .hero-clients-logos img { height: 44px; width: 56px; }
  .hero-clients { margin-top: 36px; }
  .hero { padding: 80px 0 48px; min-height: min(100vh, 680px); min-height: min(100dvh, 680px); }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .s-stat-num { font-size: clamp(32px, 10vw, 48px); }
  .s-list li { gap: 16px; padding: 28px 0; }
  .s-card { padding: 24px 20px; }
  .footer-col h3 { margin-bottom: 20px; }
  .footer-col ul { gap: 12px; }
  .site-footer { padding: 48px 0 24px; }
}

@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .hero .hero-title-visible { font-size: 24px; }
  .hero .hero-sub { font-size: 14px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-lg { padding: 13px 20px; font-size: 14px; }
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 14px 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(13,18,32,0.08);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; }

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
/* ============================================================
   LARGE SCREENS — HD, QHD, 4K
   ============================================================ */

@media (min-width: 1440px) {
  :root {
    --max-width: 1400px;
    --gutter: 44px;
  }
  .s-inner {
    max-width: 1240px;
  }
  .hero-inner {
    max-width: 1060px;
  }
  .hero .hero-title-visible {
    font-size: clamp(48px, 4.2vw, 68px);
  }
  .hero .hero-sub {
    font-size: clamp(16px, 1.2vw, 20px);
    max-width: 620px;
  }
  .s-title {
    font-size: clamp(36px, 3.2vw, 52px);
    max-width: 820px;
  }
  .s-intro {
    font-size: clamp(17px, 1.2vw, 20px);
    max-width: 640px;
  }
  #services .s-service-card {
    flex: 0 0 400px;
  }
  .s-card {
    padding: 36px 32px;
  }
  .s-card h3 {
    font-size: 19px;
  }
  .s-card p {
    font-size: 16px;
  }
  .s-service-body h3 {
    font-size: 20px;
  }
  .s-service-body p {
    font-size: 15px;
  }
  .s-list h3 {
    font-size: clamp(20px, 1.5vw, 24px);
  }
  .s-list p {
    font-size: 16px;
    max-width: 600px;
  }
  .methode-wrap {
    gap: clamp(48px, 6vw, 110px);
  }
  .footer-grid {
    gap: 100px;
  }
}

@media (min-width: 1920px) {
  :root {
    --max-width: 1680px;
    --gutter: 56px;
  }
  .s-inner {
    max-width: 1480px;
  }
  .s {
    padding: clamp(96px, 8vw, 160px) 0;
  }
  .hero-inner {
    max-width: 1200px;
  }
  .hero .hero-title-visible {
    font-size: clamp(56px, 4vw, 80px);
  }
  .hero .hero-sub {
    font-size: 20px;
    max-width: 680px;
  }
  .s-title {
    font-size: clamp(40px, 3vw, 58px);
    max-width: 920px;
  }
  .s-intro {
    font-size: 20px;
    max-width: 720px;
    margin-bottom: 56px;
  }
  #services .s-service-card {
    flex: 0 0 480px;
  }
  .s-service-body {
    padding: 28px 28px 32px;
  }
  .s-service-body h3 {
    font-size: 22px;
  }
  .s-service-body p {
    font-size: 16px;
  }
  .s-card {
    padding: 44px 40px;
  }
  .s-card h3 {
    font-size: 21px;
  }
  .s-card p {
    font-size: 17px;
  }
  .s-list h3 {
    font-size: 24px;
  }
  .s-list p {
    font-size: 17px;
    max-width: 640px;
  }
  .s-list li {
    gap: 36px;
    padding: 44px 0;
  }
  .methode-wrap {
    gap: clamp(64px, 6vw, 120px);
  }
  .methode-left .s-intro {
    max-width: 480px;
  }
  .pq-right {
    gap: 24px;
  }
  .s-label {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .hero-clients-logos img {
    height: clamp(72px, 6vw, 100px);
    width: clamp(90px, 8vw, 130px);
  }
  .footer-grid {
    gap: 120px;
    margin-bottom: 120px;
  }
  .site-footer {
    padding: 140px 0 56px;
  }
  .logos-track-content {
    gap: 80px;
  }
  .logos-track-content img {
    height: 100px;
  }
}

@media (min-width: 2560px) {
  :root {
    --max-width: 2100px;
    --gutter: 72px;
  }
  .s-inner {
    max-width: 1860px;
  }
  .s {
    padding: clamp(120px, 8vw, 200px) 0;
  }
  .hero-inner {
    max-width: 1400px;
  }
  .hero .hero-title-visible {
    font-size: clamp(68px, 3.8vw, 96px);
  }
  .hero .hero-sub {
    font-size: 24px;
    max-width: 780px;
  }
  .s-title {
    font-size: clamp(48px, 2.8vw, 72px);
    max-width: 1100px;
  }
  .s-intro {
    font-size: 22px;
    max-width: 800px;
    margin-bottom: 64px;
  }
  #services .s-service-card {
    flex: 0 0 580px;
  }
  .s-service-body {
    padding: 32px 32px 36px;
  }
  .s-service-body h3 {
    font-size: 26px;
  }
  .s-service-body p {
    font-size: 18px;
  }
  .s-service-img {
    aspect-ratio: 16/8;
  }
  .s-card {
    padding: 52px 48px;
    border-radius: 14px;
  }
  .s-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .s-card p {
    font-size: 18px;
  }
  .s-list h3 {
    font-size: 28px;
  }
  .s-list p {
    font-size: 19px;
    max-width: 740px;
  }
  .s-list li {
    gap: 44px;
    padding: 52px 0;
  }
  .s-label {
    font-size: 13px;
    letter-spacing: 0.25em;
    margin-bottom: 24px;
  }
  .btn {
    font-size: 17px;
    padding: 16px 30px;
  }
  .btn-lg {
    font-size: 19px;
    padding: 20px 40px;
  }
  .hero-clients-logos img {
    height: clamp(80px, 5vw, 120px);
    width: clamp(100px, 7vw, 150px);
  }
  .s-stat-num {
    font-size: clamp(56px, 4vw, 96px);
  }
  .s-stat-label {
    font-size: 18px;
    max-width: 300px;
  }
  .methode-wrap {
    gap: clamp(80px, 6vw, 140px);
  }
  .footer-grid {
    gap: 160px;
  }
  .site-footer {
    padding: 160px 0 64px;
  }
  .footer-brand p {
    font-size: 17px;
    max-width: 420px;
  }
  .footer-col li a {
    font-size: 16px;
  }
  .logos-track-content {
    gap: 100px;
  }
  .logos-track-content img {
    height: 120px;
  }
  .s-form {
    max-width: 800px;
  }
  .s-form-field input,
  .s-form-field select,
  .s-form-field textarea {
    font-size: 18px;
    padding: 14px 0 16px;
  }
  .s-form-field label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-fade { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-chevron { animation: none; }
  .hs-divider.hinting { animation: none; }
  #services .s-service-card { opacity: 1 !important; transform: none !important; }
  .methode-step { opacity: 1 !important; background: transparent !important; }
  .pq-card { opacity: 1 !important; transform: none !important; }
  .logos-track-content { transform: none !important; }
}

