/* ==========================================================================
   VASA Automobile — Charte visuelle premium & technique (Genève)
   Direction : clé électronique, connecteur diagnostic, circuits — univers garage
   ========================================================================== */

/* --- Variables Globales --- */
:root {
  --bg: #050606;
  --bg-raised: #0f1112;
  --bg-raised-hi: #171a1c;
  --ink: #f5f3ed;
  --ink-dim: #95989b;
  --ink-faint: #4f5254;
  --brass: #d4af37;
  --brass-hi: #e8c766;
  --brass-lo: #8b7335;
  --rust: #c9622c;
  --ok: #5f9172;
  --line: #1a1d1f;
  --line-hi: #272b2e;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;

  --s-lg: clamp(72px, 11vw, 140px);
  --s-md: clamp(44px, 7vw, 72px);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* grain léger, très discret */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)' opacity='0.3'/%3E%3C/svg%3E");
}

/* halo derrière le hero */
body::after {
  content: "";
  position: fixed;
  top: -30%;
  left: 50%;
  width: 1400px;
  height: 1000px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 60%, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

header, main, footer, section, .brands { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: var(--ease) 0.25s; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  color: var(--brass);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(48px, 7vw, 92px); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: 1.35rem; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
  color: var(--ink-dim);
  border: 1.5px solid var(--line-hi);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: none;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--ink-faint);
  transform: translateY(-2px);
}

.btn-solid,
#contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background-color: transparent;
  color: var(--brass);
  border: 1.5px solid var(--brass);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: none;
}

.btn-solid:hover,
#contact-form button[type="submit"]:hover {
  background-color: var(--brass);
  color: #050606;
  border-color: var(--brass);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
}

.logo img { height: 70px; width: auto; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  color: var(--ink-dim);
  border: 1px solid var(--line-hi);
  padding: 8px 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.01);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-dot.closed { background-color: #c9622c !important; box-shadow: 0 0 12px rgba(201, 98, 44, 0.8) !important; }
.status-dot.open { background-color: #5f9172 !important; box-shadow: 0 0 12px rgba(95, 145, 114, 0.8) !important; }

.status-wave { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.status-wave span { width: 1.5px; height: 100%; background-color: var(--brass); animation: wave 1.2s infinite ease-in-out; }
.status-wave span:nth-child(2) { animation-delay: 0.15s; }
.status-wave span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wave { 0%, 100% { height: 2px; } 50% { height: 10px; } }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links ul { display: flex; list-style: none; gap: 36px; }

.nav-links ul a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  color: var(--ink-dim);
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
}

.nav-links ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.3s var(--ease);
}

.nav-links ul a:hover { color: var(--ink); }
.nav-links ul a:hover::after { right: 0; }

.nav-links .btn-solid {
  padding: 11px 22px;
  font-size: 0.74rem;
  letter-spacing: 1.1px;
  border-width: 1px;
}

.nav-links .btn-solid:hover {
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.18);
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 8px; }
.menu-toggle span { width: 20px; height: 1.5px; background-color: var(--ink); transition: var(--ease) 0.3s; }

/* --- Hero --- */
.hero { padding: var(--s-lg) 0 var(--s-md); border-bottom: 1px solid var(--line); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 span { color: var(--brass); }

.lead {
  font-size: 1.12rem;
  color: var(--ink-dim);
  margin: 24px 0 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 18px; margin-bottom: 52px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.stat .num { font-family: var(--font-display); font-size: 2.3rem; color: var(--brass); line-height: 1; font-weight: 900; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.4px; color: var(--ink-dim); margin-top: 8px; font-weight: 500; }

.hero-art svg { width: 100%; height: auto; max-width: 480px; margin: 0 auto; display: block; }

/* --- Défilé des marques --- */
.brands { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(212, 175, 55, 0.02); padding: 24px 0; }

.brands-track {
  display: flex;
  white-space: nowrap;
  gap: 60px;
  animation: scroll 35s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 2.2px;
  font-weight: 600;
}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Services --- */
#services { padding: var(--s-lg) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px;
  margin-top: var(--s-md);
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: linear-gradient(135deg, var(--bg-raised) 0%, rgba(15, 17, 18, 0.6) 100%);
  padding: 40px 36px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  transition: left 0.4s var(--ease);
}

.service-card:hover { background: linear-gradient(135deg, var(--bg-raised-hi) 0%, rgba(23, 26, 28, 0.8) 100%); }
.service-card:hover::before { left: 0; }

.service-card .icon { width: 34px; height: 34px; color: var(--brass); margin-bottom: 26px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 14px; letter-spacing: -0.2px; }
.service-card p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.7; }

/* --- Séparateur : trace de circuit --- */
.cut-rule { width: 100%; padding: 16px 0; }
.cut-rule svg { width: 100%; height: 28px; display: block; }

/* --- Processus --- */
.process {
  padding: var(--s-lg) 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.01) 0%, transparent 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-top: var(--s-md); }

.process-step { border-left: 2px solid var(--line-hi); padding-left: 28px; transition: all 0.3s var(--ease); }
.process-step:hover { border-left-color: var(--brass); transform: translateX(4px); }

.process-step .n { font-family: var(--font-mono); font-size: 0.76rem; color: var(--brass); display: block; margin-bottom: 16px; letter-spacing: 1.2px; font-weight: 600; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 12px; letter-spacing: -0.2px; }
.process-step p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.65; }

/* --- À propos --- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; padding: var(--s-lg) 0; align-items: center; }
.about-art svg { width: 100%; max-width: 340px; height: auto; }
.about p { color: var(--ink-dim); margin-bottom: 18px; max-width: 54ch; line-height: 1.75; }

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact b { display: block; font-family: var(--font-mono); font-size: 0.84rem; color: var(--brass); margin-bottom: 6px; letter-spacing: 0.4px; font-weight: 600; }
.fact span { font-size: 0.86rem; color: var(--ink-dim); }

/* --- Témoignages --- */
.testimonials { padding: var(--s-lg) 0; }

.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; margin-top: var(--s-md); background: var(--line); border: 1px solid var(--line); }
.t-card { background: var(--bg-raised); padding: 36px 32px; transition: all 0.3s var(--ease); }
.t-card:hover { background: var(--bg-raised-hi); transform: translateY(-2px); }

.t-card p { font-style: normal; color: var(--ink); font-size: 0.98rem; line-height: 1.75; }
.t-card p::before { content: "\201C"; color: var(--brass); font-size: 1.4rem; }
.t-card p::after { content: "\201D"; color: var(--brass); font-size: 1.4rem; }
.t-card .who { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-dim); margin-top: 24px; letter-spacing: 0.4px; font-weight: 500; }

/* --- Contact & Formulaire --- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: var(--s-lg) 0; border-top: 1px solid var(--line); }

.emergency-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--rust); margin: 20px 0 32px; letter-spacing: 0.4px; font-weight: 600; }

.contact-info .row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 0; font-family: var(--font-mono); font-size: 0.86rem; }
.contact-info .k { color: var(--ink-dim); font-weight: 500; }
.contact-info .v { color: var(--ink); text-align: right; }

#contact-form {
  background: linear-gradient(135deg, var(--bg-raised) 0%, rgba(15, 17, 18, 0.5) 100%);
  border: 1px solid var(--line-hi);
  padding: 40px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; }

.field input, .field textarea {
  background: rgba(5, 6, 6, 0.8);
  border: 1px solid var(--line-hi);
  padding: 14px 16px;
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: all 0.3s var(--ease);
}

.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(5, 6, 6, 0.95);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.submit-row { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.form-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); font-weight: 500; }

/* --- Footer --- */
footer { border-top: 1px solid var(--line); padding: 60px 0 32px; background: #000000; }

.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.footer-grid .word { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.5px; font-weight: 900; }

.footer-links { display: flex; gap: 32px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-dim); }
.footer-links a:hover { color: var(--brass); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Révélation au scroll --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brands-track { animation: none; }
  .status-wave span { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 340px; }

  .nav-status { display: none; }
  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    display: none;
    gap: 28px;
  }

  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer-grid { align-items: flex-start; }
  .container { padding: 0 20px; }
}
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.5); /* Entourage circulaire or semi-transparent */
  color: rgba(212, 175, 55, 0.7);            /* Flèche or semi-transparente */
  background-color: rgba(10, 11, 11, 0.6);    /* Fond sombre discret adapté au thème */
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 999;
  text-decoration: none;
}

/* Apparition au défilement */
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Effet au survol */
.scroll-top-btn:hover {
  border-color: rgba(212, 175, 55, 1);
  color: rgba(212, 175, 55, 1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}
