/* ==========================================================================
   NOX GARAGE — Design tokens
   ========================================================================== */
:root {
  --bg: #05070a;
  --bg-alt: #090c11;
  --surface: #10141b;
  --surface-2: #161b24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f5;
  --text-muted: #8992a3;

  --neon-cyan: #00f0ff;
  --neon-cyan-rgb: 0, 240, 255;
  --neon-magenta: #ff2ee8;
  --neon-magenta-rgb: 255, 46, 232;
  --neon-red: #ff2b4d;
  --neon-red-rgb: 255, 43, 77;

  --font-head: "Rajdhani", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section--stats { padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--border); }
.section__lead { max-width: 62ch; color: var(--text-muted); font-size: 1.05rem; margin-top: 0.75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.75rem;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 24ch; }

.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.grid--services { grid-template-columns: 1fr; }
.grid--gallery { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--services { grid-template-columns: repeat(3, 1fr); }
  .grid--gallery { grid-template-columns: repeat(3, 1fr); }
}

.accent-text { color: var(--neon-magenta); }

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--neon-cyan);
  color: #04141a;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ==========================================================================
   Progress bar + custom cursor
   ========================================================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  z-index: 9999;
  transition: width 0.1s linear;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--neon-cyan); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.5);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cursor-ring.is-active { width: 54px; height: 54px; background: rgba(var(--neon-cyan-rgb), 0.08); border-color: var(--neon-cyan); }

@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor .cursor-dot,
  .has-custom-cursor .cursor-ring { display: block; }
  .has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button { cursor: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-color: var(--border); height: 60px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-header__brand { display: flex; align-items: center; gap: 1rem; }

.back-link {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.back-link:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
@media (min-width: 640px) { .back-link { display: inline-flex; } }

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.logo__mark { width: 20px; height: 20px; color: var(--neon-cyan); }
.logo__accent { color: var(--neon-cyan); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: none; align-items: center; gap: 1.6rem; }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--neon-cyan);
  transition: width 0.25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta { display: none; }

@media (min-width: 1100px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex-shrink: 0;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 0;
  z-index: 600;
  touch-action: manipulation;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1100px) { .burger { display: none; } }

@media (max-width: 1099px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 550;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    overflow-y: auto;
    padding-block: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { display: flex; flex-direction: column; gap: 1.8rem; text-align: center; }
  .nav__link { font-size: 1.3rem; }
  .nav__cta { display: inline-flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--neon-cyan);
  color: #04141a;
}
.btn--primary:hover { box-shadow: 0 0 32px rgba(var(--neon-cyan-rgb), 0.45); transform: translateY(-2px); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.btn--ghost:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--neon-magenta); color: var(--neon-magenta); background: rgba(var(--neon-magenta-rgb), 0.06); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(650px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--neon-magenta-rgb), 0.14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 48px);
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 3rem; }
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); display: flex; flex-direction: column; gap: 0.2rem; text-transform: uppercase; }
.hero__subtitle { margin-top: 1.25rem; max-width: 54ch; color: var(--text-muted); font-size: 1.05rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

.hero__showcase { display: none; }
@media (min-width: 1024px) { .hero__showcase { display: block; } }

.hero__showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(255, 46, 232, 0.22), #05070a 70%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  aspect-ratio: 2 / 1;
}
.hero__showcase-frame svg { width: 100%; height: 100%; }
.hero__showcase-tag {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-magenta);
  box-shadow: 0 0 10px var(--neon-magenta);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  z-index: 1;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__number, .stat__suffix {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--neon-cyan);
}
.stat__suffix { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-muted); margin-left: 2px; }
.stat__label { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.35rem; }

/* ==========================================================================
   Service cards (Prestations)
   ========================================================================== */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--neon-cyan-rgb), 0.5);
  box-shadow: 0 20px 50px -25px rgba(var(--neon-cyan-rgb), 0.25);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(var(--neon-cyan-rgb), 0.1);
  color: var(--neon-cyan);
  margin-bottom: 1.1rem;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.01em; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Vehicle SVG art (shared between hero + avant/après slider)
   ========================================================================== */
.vehicle-svg { width: 100%; height: 100%; }
.vehicle-ground { fill: #000; opacity: 0.4; }
.vehicle-doorline { stroke: rgba(0, 0, 0, 0.35); stroke-width: 2; }
.vehicle-doorline--after { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; }
.vehicle-scratch { stroke: rgba(0, 0, 0, 0.3); stroke-width: 1.2; stroke-linecap: round; }
.vehicle-wheel { fill: #14161a; stroke: #3a3d43; stroke-width: 2; }
.vehicle-wheel--after { fill: #0b0c0f; stroke: #2a2d33; }
.vehicle-rim { fill: none; stroke: #9aa0a8; stroke-width: 3; }
.vehicle-rim--after { fill: none; stroke-width: 3; stroke-dasharray: 5 3; }
.vehicle-underglow { filter: blur(7px); opacity: 0.55; }
.vehicle-shine { mix-blend-mode: screen; }

.vehicle-svg--after { filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6)); }
.ba-slider__layer--after .vehicle-svg--after,
.hero__showcase-frame .vehicle-svg--after {
  filter:
    drop-shadow(0 0 12px rgba(var(--accent-rgb, 255, 46, 232), 0.5))
    drop-shadow(0 0 26px rgba(var(--accent-rgb, 255, 46, 232), 0.25));
}

/* ==========================================================================
   Avant / Après slider
   ========================================================================== */
.ba { margin-top: 2.5rem; }
.ba__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.ba__tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.ba__tab:hover { color: var(--text); border-color: var(--border-strong); }
.ba__tab.is-active {
  color: #04141a;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.ba__panel { display: none; }
.ba__panel.is-active { display: block; animation: baFade 0.4s var(--ease); }
@keyframes baFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --pos: 50%;
}
.ba-slider__frame {
  position: relative;
  aspect-ratio: 2 / 1;
  background: #060709;
}
.ba-slider__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-slider__layer--after {
  background: radial-gradient(circle at 50% 60%, rgba(var(--accent-rgb), 0.22), #05070a 70%);
}
.ba-slider__layer--before {
  background: linear-gradient(180deg, #1c1e22, #0c0d0f);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  transition: clip-path 0.35s var(--ease);
}
.ba-slider.is-dragging .ba-slider__layer--before { transition: none; }

.ba-slider__tag {
  position: absolute;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ba-slider__tag--after { right: 1rem; background: rgba(var(--accent-rgb), 0.18); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.4); }
.ba-slider__tag--before { left: 1rem; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid var(--border-strong); }

.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 28px;
  transform: translateX(-50%);
  z-index: 5;
  cursor: ew-resize;
  touch-action: none;
  transition: left 0.35s var(--ease);
}
.ba-slider.is-dragging .ba-slider__handle { transition: none; }
.ba-slider__handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.ba-slider__grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.6);
}
.ba-slider__handle:hover .ba-slider__grip,
.ba-slider__handle:focus-visible .ba-slider__grip { transform: translate(-50%, -50%) scale(1.08); }

.ba-slider__frame { touch-action: none; }

.ba__meta { margin-top: 1.5rem; }
.ba__meta h3 { font-size: 1.2rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.ba__meta p { color: var(--text-muted); font-size: 0.94rem; max-width: 60ch; }
.ba__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.ba__tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Filter bar + gallery (Réalisations)
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.filter-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { color: #04141a; background: var(--neon-magenta); border-color: var(--neon-magenta); }

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gallery-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.gallery-card.is-hidden { display: none; }
.gallery-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(var(--neon-magenta-rgb), 0.1);
  color: var(--neon-magenta);
  margin-bottom: 1rem;
}
.gallery-card__icon svg { width: 20px; height: 20px; }
.gallery-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.gallery-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.9rem; }
.gallery-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

@keyframes galleryIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.gallery-card--anim { animation: galleryIn 0.45s var(--ease) both; }

/* ==========================================================================
   Quote wizard (Devis)
   ========================================================================== */
.quote {
  max-width: 760px;
  margin: 2.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.quote__steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.quote__steps::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px; right: 15px;
  height: 2px;
  background: var(--border-strong);
  z-index: 0;
}
.quote__steps::after {
  content: "";
  position: absolute;
  top: 15px; left: 15px;
  height: 2px;
  width: var(--fill, 0%);
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  z-index: 0;
  transition: width 0.4s var(--ease);
}
.quote__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.quote__step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.quote__step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}
.quote__step.is-active .quote__step-num {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.6);
  color: var(--neon-cyan);
}
.quote__step.is-active .quote__step-label { color: var(--text); }
.quote__step.is-done .quote__step-num {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #04141a;
}

.quote__panel { display: none; border: none; }
.quote__panel.is-active { display: block; animation: baFade 0.35s var(--ease); }
.quote__panel.is-shaking { animation: shake 0.4s; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.quote__panel-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.quote__hint { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }

.form-row { display: grid; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; }
.form-row .form-field { margin-bottom: 0; }
.form-field label { font-size: 0.85rem; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.form-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-field select:disabled { opacity: 0.5; cursor: not-allowed; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--neon-cyan); }
.form-error { font-size: 0.85rem; color: var(--neon-red); min-height: 1.2em; margin-top: 0.75rem; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.25rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}
.chip input:checked + span {
  color: #04141a;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
}
.chip input:focus-visible + span { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.quote__sub-options { display: flex; flex-direction: column; gap: 1rem; }
.sub-option-group {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  animation: baFade 0.3s var(--ease);
}
.sub-option-group__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 0.75rem;
}
.sub-option-list { display: flex; flex-direction: column; gap: 0.6rem; }
.sub-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.sub-option input {
  width: 16px; height: 16px;
  accent-color: var(--neon-cyan);
}

.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.7);
  border: 2px solid #04141a;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.7);
  border: 2px solid #04141a;
  cursor: pointer;
}

.quote__summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
}
.quote__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.quote__summary dt { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.quote__summary dd { color: var(--text); }

.quote__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.quote__success { text-align: center; padding-block: 1.5rem; }
.quote__success svg { margin: 0 auto 1rem; color: var(--neon-cyan); }
.quote__success h3 { font-size: 1.3rem; margin-bottom: 0.75rem; text-transform: uppercase; }
.quote__success p { color: var(--text-muted); font-size: 0.92rem; max-width: 48ch; margin: 0 auto; }
.quote__success-recap {
  text-align: left;
  white-space: pre-wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  max-height: 260px;
  overflow-y: auto;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 760px; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
}
.faq-item__icon {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item__a > p { overflow: hidden; color: var(--text-muted); font-size: 0.92rem; padding: 0 1.5rem; }
.faq-item__q[aria-expanded="true"] + .faq-item__a { grid-template-rows: 1fr; }
.faq-item__q[aria-expanded="true"] + .faq-item__a > p { padding-bottom: 1.25rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact__email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--neon-cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.contact__email:hover { border-color: var(--neon-cyan); }
.contact__note { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.85rem; }

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-magenta);
  margin-bottom: 0.35rem;
}
.contact-info__row p { color: var(--text-muted); font-size: 0.92rem; }
.contact-info__row a { color: var(--text); transition: color 0.2s var(--ease); }
.contact-info__row a:hover { color: var(--neon-cyan); }
.contact-info__socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem; }
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer__tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; max-width: 34ch; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--neon-cyan); }
.site-footer__contact a { color: var(--neon-cyan); font-family: var(--font-mono); font-size: 0.9rem; }
.site-footer__contact p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.6rem; }
.site-footer__credit a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); }
.site-footer__credit a:hover { color: var(--neon-cyan); }
.logo--footer { font-size: 1.1rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Grain overlay
   ========================================================================== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   QA Mobile — correctifs forcés (n'affectent que <= 768px, desktop inchangé)
   ========================================================================== */
@media (max-width: 768px) {
  /* Stepper Devis : les boutons Précédent / Suivant / Envoyer débordaient
     du viewport en ligne — structure forcée en colonne, pleine largeur, sans overflow-x */
  .quote__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .quote__nav .btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
