/* RDR Performances — vitrine */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a8a8a8;
  --accent: #e1ff00;
  --accent-hover: #ebff4d;
  --accent-soft: rgba(225, 255, 0, 0.12);
  --accent-glow: rgba(225, 255, 0, 0.35);
  --gold: #ffffff;
  --gold-soft: rgba(255, 255, 255, 0.08);
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --header-h: 84px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-total: calc(var(--header-h) + var(--safe-top));
  --max: 1140px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(225, 255, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + 0.75rem);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  color-scheme: dark;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(4.75rem + var(--safe-bottom));
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

body.nav-open {
  padding-bottom: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  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");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

  html {
    scroll-behavior: auto;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: var(--header-total);
  padding-top: var(--safe-top);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid transparent;
  overflow: visible;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled::before {
  background: rgba(0, 0, 0, 0.92);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.92;
  color: var(--text);
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 0.15rem;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 2.05rem;
  letter-spacing: 0.06em;
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 28px var(--accent-glow);
  transform: skewX(-6deg);
  line-height: 0.9;
}

.logo-wordmark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.1rem;
}

.logo-text {
  font-size: 0.62rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  transform: skewX(-6deg);
  position: relative;
  padding-bottom: 0.2rem;
}

.logo-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.logo-speed {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 0.7rem;
  transform: skewX(-18deg);
}

.logo-speed i {
  display: block;
  width: 3px;
  background: var(--text);
  border-radius: 0;
}

.logo-speed i:nth-child(1) { height: 45%; opacity: 0.55; }
.logo-speed i:nth-child(2) { height: 65%; opacity: 0.75; }
.logo-speed i:nth-child(3) { height: 85%; opacity: 0.9; }
.logo-speed i:nth-child(4) { height: 100%; }

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

.site-nav {
  margin: 0;
  position: fixed;
  top: var(--header-total);
  right: 0;
  bottom: 0;
  left: auto;
  width: min(320px, 88vw);
  height: calc(100dvh - var(--header-total));
  max-height: calc(100dvh - var(--header-total));
  background: #050505;
  padding: 1.5rem 1.25rem calc(1.5rem + var(--safe-bottom));
  transform: translate3d(110%, 0, 0);
  transition: transform 0.3s var(--ease-out), visibility 0.3s;
  border-left: 1px solid rgba(225, 255, 0, 0.15);
  z-index: 80;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.site-nav.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  min-height: 48px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a::after {
  display: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  position: relative;
  z-index: 81;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: block;
  position: fixed;
  top: var(--header-total);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 75;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer-cta {
  display: flex;
  width: 100%;
  margin-top: 1.25rem;
  min-height: 50px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: italic;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(0.55rem 0, 100% 0, calc(100% - 0.55rem) 100%, 0 100%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #000000;
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
  clip-path: none;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 11vw, 8rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 45% 35% at 5% 85%, var(--gold-soft), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, black 20%, transparent 75%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.25;
  filter: blur(60px);
  animation: hero-pulse 8s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
  from { opacity: 0.18; transform: scale(1); }
  to { opacity: 0.32; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::after {
    animation: none;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .nav-toggle,
  .nav-overlay,
  .nav-drawer-cta,
  .mobile-bar {
    display: none !important;
  }

  .header-cta {
    display: inline-flex;
  }

  .site-nav {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    max-height: none;
    transform: none;
    background: transparent;
    padding: 0;
    border: none;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
    display: block;
    z-index: auto;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 0.25rem;
  }

  .site-nav a {
    display: inline-block;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem;
    min-height: 0;
    border-radius: 999px;
  }

  .site-nav a::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.25s var(--ease-out);
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }

  .site-nav a.is-active::after {
    width: 1.25rem;
  }
}

.hero-copy {
  max-width: 38rem;
  min-width: 0;
}

.hero h1,
.section-head h2,
.contact-head h2 {
  overflow-wrap: break-word;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.55rem;
  margin-left: 0.15rem;
  background:
    linear-gradient(105deg, transparent 35%, var(--text) 35%, var(--text) 45%, transparent 45%),
    linear-gradient(105deg, transparent 50%, var(--text) 50%, var(--text) 60%, transparent 60%),
    linear-gradient(105deg, transparent 65%, var(--text) 65%, var(--text) 75%, transparent 75%);
  opacity: 0.7;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 6.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1.25rem;
  overflow-wrap: break-word;
}

.hero h1 .accent {
  color: var(--accent);
  display: inline-block;
  text-shadow: 0 0 40px var(--accent-glow);
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 2rem;
  max-width: 34rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats > div {
  padding: 0.75rem 0;
}

.hero-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* Hero panel — gauge */
.hero-panel {
  justify-self: center;
  width: min(100%, 380px);
  position: relative;
}

.hero-panel-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(40px);
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.96) 0%, rgba(0, 0, 0, 0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
  clip-path: polygon(1.25rem 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%, 0 1.25rem);
}

.hero-panel-inner::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 1rem;
  background:
    linear-gradient(105deg, transparent 20%, var(--accent) 20%, var(--accent) 32%, transparent 32%),
    linear-gradient(105deg, transparent 40%, var(--accent) 40%, var(--accent) 52%, transparent 52%),
    linear-gradient(105deg, transparent 60%, var(--accent) 60%, var(--accent) 72%, transparent 72%),
    linear-gradient(105deg, transparent 80%, var(--accent) 80%, var(--accent) 92%, transparent 92%);
  opacity: 0.85;
}

.hero-panel-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero-panel-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-panel-value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-shadow: 0 0 50px var(--accent-glow);
}

.hero-panel-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  height: 5rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0 1rem;
}

.hero-panel-bars span {
  flex: 1;
  max-width: 2.5rem;
  border-radius: 0;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(225, 255, 0, 0.35) 100%);
  box-shadow: 0 0 16px var(--accent-glow);
  transform-origin: bottom;
  animation: bar-rise 1.2s var(--ease-out) backwards;
}

.hero-panel-bars span:nth-child(1) { height: 45%; animation-delay: 0.3s; }
.hero-panel-bars span:nth-child(2) { height: 62%; animation-delay: 0.4s; }
.hero-panel-bars span:nth-child(3) { height: 78%; animation-delay: 0.5s; }
.hero-panel-bars span:nth-child(4) { height: 92%; animation-delay: 0.6s; }
.hero-panel-bars span:nth-child(5) { height: 100%; animation-delay: 0.7s; }

@keyframes bar-rise {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel-bars span {
    animation: none;
  }
}

.hero-panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-panel-metric {
  text-align: center;
}

.hero-panel-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 400;
}

.hero-panel-metric small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.hero-panel-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
}

/* Trust strip */
.trust-strip {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
  padding-bottom: 1rem;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.9;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 400px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-head.align-left {
  text-align: left;
  margin-inline: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 3.15rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 0.65rem;
}

.section-intro {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), transparent 80%);
  opacity: 0.55;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(225, 255, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm), 0 0 40px rgba(225, 255, 0, 0.06);
  background: var(--surface-hover);
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.04em;
  user-select: none;
}

.card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.card-cta {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-cta:hover {
  color: var(--accent-hover);
}

.zone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.zone-list li {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.zone-note {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 40rem;
  margin-inline: auto;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.steps li {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.65rem 1.65rem 1.35rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.steps li:hover {
  border-color: rgba(225, 255, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(225, 255, 0, 0.05) 100%);
  color: var(--accent);
  border: 1px solid rgba(225, 255, 0, 0.2);
  border-radius: 50%;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Split + notice */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.checklist {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  transition: border-color 0.2s, background 0.2s;
}

.checklist li:hover {
  border-color: rgba(225, 255, 0, 0.2);
  background: var(--surface-hover);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.notice {
  position: relative;
  background: linear-gradient(145deg, var(--gold-soft) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  overflow: hidden;
}

.notice::before {
  content: "!";
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.notice h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item:hover {
  border-color: rgba(225, 255, 0, 0.2);
}

.faq-item[open] {
  border-color: rgba(225, 255, 0, 0.28);
}

.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 1rem 1.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* CTA / Contact + devis */
.section-cta {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(160deg, var(--surface) 0%, #080a10 100%);
  border-block: 1px solid var(--border);
}

.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-head {
  max-width: 42rem;
}

.contact-body {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-body {
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 2.25rem;
  }
}

.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  margin: 0 0 0.85rem;
}

.cta-text {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.cta-block p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-block p:last-child {
  margin-bottom: 0;
}

.cta-block strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-block a {
  font-weight: 500;
}

.cta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem !important;
  font-weight: 600;
}

.cta-hint {
  margin-top: 1.5rem !important;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem !important;
  opacity: 0.85;
}

.contact-aside {
  height: fit-content;
}

.form-flash {
  margin: 0;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.form-flash--ok {
  background: rgba(46, 160, 90, 0.12);
  border-color: rgba(46, 160, 90, 0.35);
  color: #a8e6c4;
}

.form-flash--err {
  background: rgba(220, 50, 50, 0.12);
  border-color: rgba(220, 50, 50, 0.35);
  color: #ffb4a8;
}

.devis-form {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.85rem 2.15rem;
  box-shadow: var(--shadow-sm);
}

.devis-form-title {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  gap: 1.1rem 1.35rem;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group-span {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.72rem 0.95rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-strong);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(225, 255, 0, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface-hover);
}

.form-group select {
  cursor: pointer;
  appearance: auto;
}

.form-group textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.form-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .form-actions .btn {
    width: auto;
    min-width: 240px;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem 1.25rem;
  }

  .footer-brand {
    justify-self: start;
  }

  .footer-links {
    justify-self: center;
  }

  .footer-tagline,
  .footer-copy {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .logo-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--accent);
}

.footer-brand .logo-text {
  font-size: 0.55rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy a:hover {
  color: var(--accent);
}

/* ——— Mobile / tablette ——— */
@media (max-width: 899px) {
  :root {
    --header-h: 72px;
  }

  body {
    font-size: 1rem;
    padding-bottom: calc(4.75rem + var(--safe-bottom));
  }

  body.nav-open {
    padding-bottom: 0;
  }

  body.nav-open .mobile-bar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .container,
  .header-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .logo-mark {
    font-size: 1.7rem;
  }

  .logo-text {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 1.75rem 0 2.5rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero h1 br {
    display: none;
  }

  .lead {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 1.5rem;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    padding: 0.95rem 1.25rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1.15rem;
  }

  .hero-stats > div {
    padding: 0.35rem 0;
    text-align: center;
  }

  .hero-stats dt {
    font-size: 0.65rem;
  }

  .hero-stats dd {
    font-size: 0.88rem;
  }

  .hero-panel {
    width: 100%;
    max-width: 100%;
  }

  .hero-panel-inner {
    padding: 1.5rem 1.25rem 1.35rem;
    clip-path: polygon(0.9rem 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%, 0 0.9rem);
  }

  .hero-panel-value {
    font-size: 3rem;
  }

  .hero-panel-bars {
    height: 3.5rem;
    margin: 1.1rem 0 0.85rem;
  }

  .trust-strip {
    margin-top: -0.5rem;
  }

  .trust-strip-inner {
    padding: 0.95rem 1rem;
    gap: 0.65rem;
    flex-direction: column;
    align-items: stretch;
  }

  .trust-item {
    font-size: 0.86rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
    text-align: left;
  }

  .section-head h2 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    font-style: italic;
  }

  .section-intro {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.35rem 1.2rem;
  }

  .card-num {
    font-size: 1.85rem;
  }

  .steps li {
    padding: 1.15rem;
    gap: 0.9rem;
  }

  .step-num {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.88rem;
  }

  .checklist li {
    padding: 0.75rem 0.85rem 0.75rem 2.5rem;
    font-size: 0.92rem;
  }

  .notice {
    padding: 1.25rem 1.35rem;
  }

  .section-cta h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .contact-head {
    text-align: left;
  }

  .cta-block,
  .devis-form {
    padding: 1.25rem 1.05rem 1.4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    font-size: 16px;
    padding: 0.8rem 0.95rem;
  }

  .form-group textarea {
    min-height: 7rem;
  }

  .form-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .form-consent {
    gap: 0.85rem;
  }

  .form-consent input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
  }

  .site-footer {
    padding: 2rem 0 calc(1.25rem + var(--safe-bottom));
  }

  .footer-inner {
    gap: 1.25rem;
  }

  .footer-links {
    width: 100%;
    gap: 0.85rem 1.15rem;
  }

  .footer-copy {
    text-align: left;
    width: 100%;
    font-size: 0.8rem;
  }
}

/* ——— Téléphone (étroit) ——— */
@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .header-inner {
    width: min(100% - 1.15rem, var(--max));
  }

  .logo-mark {
    font-size: 1.55rem;
  }

  .logo-text {
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }

  .logo-speed {
    gap: 2px;
    height: 0.55rem;
  }

  .logo-speed i {
    width: 2.5px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 1.35rem 0 2rem;
    min-height: auto;
  }

  .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.55rem);
    letter-spacing: 0.02em;
  }

  .lead {
    font-size: 0.94rem;
  }

  .hero-stats {
    gap: 0.35rem;
  }

  .hero-stats dd {
    font-size: 0.82rem;
  }

  .hero-panel-inner::after {
    top: 0.75rem;
    right: 0.75rem;
    width: 1.75rem;
    height: 0.8rem;
  }

  .hero-panel-value {
    font-size: 2.65rem;
  }

  .hero-panel-metric strong {
    font-size: 1.25rem;
  }

  .section {
    padding: 2.35rem 0;
  }

  .section-head h2,
  .contact-head h2,
  .section-cta h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.1rem);
  }

  .cards {
    gap: 0.85rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
    padding: 1rem 0.95rem;
    min-height: 48px;
  }

  .mobile-bar {
    gap: 0.5rem;
    padding: 0.55rem 0.7rem calc(0.55rem + var(--safe-bottom));
  }

  .mobile-bar-btn {
    min-height: 50px;
    font-size: 0.84rem;
    gap: 0.35rem;
    padding: 0.65rem 0.6rem;
    border-radius: var(--radius-sm);
  }

  .mobile-bar-btn svg {
    width: 18px;
    height: 18px;
  }

  .mobile-bar-btn--call {
    flex: 0.9;
  }

  .mobile-bar-btn--primary {
    flex: 1.2;
    clip-path: polygon(0.45rem 0, 100% 0, calc(100% - 0.45rem) 100%, 0 100%);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 380px) {
  .logo-text,
  .logo-speed {
    display: none;
  }

  .logo-mark {
    font-size: 1.7rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-stats > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
  }

  .hero-stats > div:last-child {
    border-bottom: none;
  }

  .mobile-bar-btn--call span,
  .mobile-bar-btn--call {
    font-size: 0.78rem;
  }
}

@media (min-width: 900px) {
  .nav-drawer-cta,
  .mobile-bar {
    display: none !important;
  }
}

/* Barre d'actions fixe (téléphone) */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem calc(0.65rem + var(--safe-bottom));
  padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid rgba(225, 255, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45), 0 -1px 0 rgba(225, 255, 0, 0.08);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.mobile-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bar-btn:active {
  transform: scale(0.98);
}

.mobile-bar-btn--call {
  flex: 0.85;
}

.mobile-bar-btn--primary {
  flex: 1.15;
  background: var(--accent);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.mobile-bar-btn--primary:hover {
  color: #000000;
}

/* Page 404 */
.page-error {
  position: relative;
  min-height: calc(100vh - var(--header-total));
  min-height: calc(100dvh - var(--header-total));
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  overflow: hidden;
}

.error-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.error-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 35%, var(--accent-soft), transparent 65%),
    radial-gradient(ellipse 40% 35% at 85% 70%, var(--gold-soft), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.error-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 10%, transparent 75%);
}

.error-bg-lines {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 255, 0, 0.25), transparent);
  transform: rotate(-8deg);
  animation: error-line 6s ease-in-out infinite alternate;
}

@keyframes error-line {
  from { opacity: 0.3; transform: rotate(-8deg) translateX(-2%); }
  to { opacity: 0.7; transform: rotate(-8deg) translateX(2%); }
}

@media (prefers-reduced-motion: reduce) {
  .error-bg-lines,
  .error-gauge-needle,
  .error-scan-dot {
    animation: none;
  }
}

.error-layout {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .error-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

/* Compteur / jauge */
.error-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.error-gauge {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.error-gauge-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

.error-gauge-needle {
  transform-origin: 120px 120px;
  animation: error-needle 4s var(--ease-out) infinite alternate;
}

@keyframes error-needle {
  from { transform: rotate(-95deg); }
  to { transform: rotate(55deg); }
}

.error-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2.5rem;
}

.error-gauge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.error-gauge-code {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.error-scan {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(18, 21, 31, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.error-scan-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: error-blink 1.4s ease-in-out infinite;
}

@keyframes error-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Carte contenu */
.error-card {
  position: relative;
  background: linear-gradient(155deg, rgba(24, 28, 40, 0.92) 0%, rgba(10, 12, 18, 0.96) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
}

.error-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.error-card .eyebrow {
  margin-bottom: 0.85rem;
}

.error-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.85rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.error-text {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 34rem;
}

.error-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-block: 1px solid var(--border);
}

.error-digit {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
}

.error-digit--mid {
  color: var(--accent);
  text-shadow: 0 0 50px var(--accent-glow);
  transform: scale(1.08);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.error-actions .btn {
  min-height: 48px;
  min-width: 10rem;
}

/* Liens rapides */
.error-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .error-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.error-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-out);
}

.error-links a:hover {
  color: var(--text);
  border-color: rgba(225, 255, 0, 0.28);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.error-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.error-link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.error-links strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.error-links small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

body.page-404 {
  padding-bottom: 0;
}

body.page-404 .mobile-bar {
  display: none !important;
}

body.page-404 .header-cta {
  display: inline-flex;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  min-height: 42px;
}

@media (max-width: 899px) {
  body.page-404 .header-cta {
    display: inline-flex;
  }
}

.site-footer--minimal .footer-inner {
  justify-content: center;
}

.site-footer--minimal .footer-copy {
  text-align: center;
  width: 100%;
}

@media (max-width: 899px) {
  .error-layout {
    text-align: center;
  }

  .error-card .eyebrow {
    justify-content: center;
  }

  .error-card .eyebrow::before {
    display: none;
  }

  .error-text {
    margin-inline: auto;
  }

  .error-actions {
    justify-content: center;
  }

  .error-links {
    grid-template-columns: 1fr;
  }

  .error-links a {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-stats > div:last-child {
    border-bottom: none;
  }

  .hero-stats dd {
    margin: 0;
  }

  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-actions .btn {
    width: 100%;
  }

  .error-gauge {
    width: min(100%, 240px);
  }

  .eyebrow::before {
    width: 1.25rem;
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible,
.site-nav a:focus-visible {
  outline-offset: 2px;
}
