/* ============================================
   LHV — Premium background design (2026-05-03)
   Voiture floue fixe + mesh gradient + cartes flottantes
   ============================================ */
:root {
  --lhv-bg: #0d1117;
  --lhv-text: #ffffff;
  --lhv-text-soft: #e6edf7;
  --lhv-blue: #2563eb;
  --lhv-green: #10b981;
  --lhv-card-bg: rgba(15, 20, 30, 0.85);
  --lhv-content-card-bg: rgba(13, 18, 28, 0.92);
  --lhv-border: rgba(99, 102, 241, 0.25);
}

body {
  background-color: var(--lhv-bg);
  position: relative;
}

/* ===== Couches de background fixes ===== */
.lhv-bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(at 80% 20%, rgba(59,130,246,0.25) 0, rgba(0,0,0,0) 50%),
    radial-gradient(at 10% 60%, rgba(99,102,241,0.18) 0, rgba(0,0,0,0) 50%),
    radial-gradient(at 60% 90%, rgba(37,99,235,0.15) 0, rgba(0,0,0,0) 50%);
}

.lhv-bg-spotlight {
  position: fixed; top: -15%; right: -10%;
  width: 80vw; height: 80vh;
  z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.35) 0%, rgba(37,99,235,0.15) 30%, rgba(0,0,0,0) 70%);
  filter: blur(20px);
}

/* Photo voiture en arrière-plan fixe (visible toute la page au scroll).
   Pour basculer en image locale : remplacer l'URL par 'url("../img/hero-car.jpg")'. */
.lhv-bg-car {
  position: fixed; top: 0; right: -8%;
  width: 62%; height: 100vh;
  z-index: 3; pointer-events: none;
  background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=2000&q=85');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.5;
  filter: saturate(0.7) contrast(1.05) brightness(0.9) hue-rotate(190deg);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
}

.lhv-bg-overlay {
  position: fixed; top: 0; left: 0;
  width: 60%; height: 100vh;
  z-index: 4; pointer-events: none;
  background: linear-gradient(to right,
    rgba(7,11,18,0.92) 0%,
    rgba(7,11,18,0.7) 50%,
    rgba(7,11,18,0.2) 85%,
    rgba(7,11,18,0) 100%);
}

/* Toutes les sections doivent rester transparentes pour laisser le bg apparaître */
section,
section[class*="section"],
section.trust,
section.showcase,
section.process,
section.problem,
section.calc,
section.manifesto,
section.cta {
  background-color: transparent !important;
  background-image: none !important;
}

main, header, section, article {
  position: relative;
  z-index: 5;
}

footer {
  position: relative;
  z-index: 5;
  background-color: rgba(13, 17, 23, 0.95);
}

h1, h2, h3, h4, h5 {
  color: var(--lhv-text);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* Force visibilité immédiate (sans animation Motion) */
.reveal,
[class*="reveal"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Cartes contenu : fond sombre semi-transparent + flou (lisibilité sur le bg flou) */
.card,
.stat,
.feature,
.pillar,
[class*="-card"],
[class*="card-"] {
  background-color: var(--lhv-content-card-bg) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(99, 102, 241, 0.18) !important;
}

/* ===== Badge LIVE ===== */
@keyframes lhv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lhv-live-badge {
  position: fixed;
  top: 86px; right: 32px;
  z-index: 30;
  background: var(--lhv-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--lhv-text-soft);
  font: 600 13px system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.lhv-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lhv-green);
  box-shadow: 0 0 8px var(--lhv-green);
  animation: lhv-pulse 1.5s ease-in-out infinite;
}

.lhv-live-label {
  color: var(--lhv-green);
  font-weight: 700;
}

/* ===== Cartes KPI flottantes ===== */
.lhv-kpi-card {
  position: fixed;
  z-index: 30;
  background: var(--lhv-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--lhv-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: perspective(800px) rotateY(-6deg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lhv-kpi-card--rotation {
  top: 200px; right: 48px;
  width: 240px;
  padding: 18px 20px;
}

.lhv-kpi-card--score {
  top: 440px; right: 80px;
  width: 280px;
  padding: 16px 20px;
}

.lhv-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lhv-kpi-eyebrow {
  font: 600 11px system-ui;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

.lhv-kpi-pill {
  font: 600 11px system-ui;
  color: var(--lhv-green);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.lhv-kpi-value {
  font: 700 32px Georgia, "Fraunces", serif;
  color: #fff;
  margin-bottom: 10px;
}

.lhv-kpi-foot {
  font: 500 11px system-ui;
  color: #6b7280;
  margin-top: 6px;
}

.lhv-kpi-spark {
  display: block;
  width: 100%;
  height: auto;
}

.lhv-kpi-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lhv-kpi-badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--lhv-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 14px system-ui;
}

.lhv-kpi-title {
  font: 700 14px system-ui;
  color: #fff;
}

.lhv-kpi-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.lhv-kpi-stats-r {
  text-align: right;
}

.lhv-kpi-label {
  font: 500 10px system-ui;
  color: #9ca3af;
}

.lhv-kpi-amt {
  font: 700 16px system-ui;
  color: #fff;
}

.lhv-kpi-amt--green {
  color: var(--lhv-green);
}

/* ===== Mobile : on cache la voiture, l'overlay et les cartes (perf + lisibilité) ===== */
@media (max-width: 1024px) {
  .lhv-bg-car,
  .lhv-bg-overlay,
  .lhv-kpi-card,
  .lhv-live-badge {
    display: none;
  }
}


/* ===== Force visibilité hero (override les .style.opacity='0' inline JS) ===== */
.hero,
.hero__inner,
.hero__eyebrow,
.hero__h1,
.hero__h1-accent,
.hero__sub,
.hero__cta-row,
.hero__assurance,
.hero__visual,
.hero__visual *,
.process__step,
.showcase__row {
  opacity: 1 !important;
  transform: none !important;
}
