/* =========================================================================
   LUXIO LAVE-AUTO — Systeme de design (base partagee par toutes les pages)
   Ambiance : showroom automobile de luxe + neon mauve « magic ».
   ========================================================================= */

:root {
  /* Fonds */
  --bg-0: #08040f;
  --bg-1: #0d0819;
  --bg-2: #150b28;
  --bg-3: #1c1036;

  /* Surfaces vitrees */
  --surface: rgba(32, 18, 58, 0.55);
  --surface-2: rgba(48, 28, 84, 0.42);
  --surface-solid: #160c2b;

  /* Traits */
  --stroke: rgba(168, 85, 247, 0.16);
  --stroke-2: rgba(192, 132, 252, 0.30);
  --stroke-strong: rgba(217, 70, 239, 0.5);

  /* Mauves signature */
  --violet: #a855f7;
  --violet-2: #c084fc;
  --magenta: #d946ef;
  --indigo: #7c3aed;
  --lilac: #e9d5ff;
  --plum: #611f9e;

  /* Texte */
  --text: #f4eeff;
  --text-dim: #c3b4e0;
  --text-mute: #8f7fb3;

  /* Semantique */
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;

  /* Degrades */
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
  --grad-cta: linear-gradient(120deg, #7c3aed 0%, #a855f7 42%, #d946ef 100%);
  --grad-text: linear-gradient(120deg, #ffffff 0%, #e9d5ff 40%, #c084fc 100%);
  --grad-panel: linear-gradient(160deg, rgba(60,34,102,.5), rgba(20,11,40,.4));

  /* Ombres & lueurs */
  --glow-sm: 0 0 24px rgba(168, 85, 247, 0.35);
  --glow: 0 0 48px rgba(168, 85, 247, 0.45);
  --glow-magenta: 0 0 52px rgba(217, 70, 239, 0.5);
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-lift: 0 32px 80px -28px rgba(124, 58, 237, 0.55);

  /* Formes */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
::selection { background: rgba(217, 70, 239, 0.4); color: #fff; }
/* Focus clavier de MARQUE (fini l'anneau orange du navigateur) */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

/* ---- Decor : aurore + orbes neon + grain ---- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(217, 70, 239, 0.22), transparent 55%),
    radial-gradient(1000px 900px at 50% 120%, rgba(88, 28, 135, 0.4), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  animation: drift 26s var(--ease) infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 460px; height: 460px; left: -6%; top: 8%;
  background: radial-gradient(circle, #a855f7, transparent 70%); }
.bg-orbs span:nth-child(2) { width: 540px; height: 540px; right: -8%; top: 30%;
  background: radial-gradient(circle, #d946ef, transparent 70%); animation-delay: -8s; }
.bg-orbs span:nth-child(3) { width: 420px; height: 420px; left: 30%; bottom: -12%;
  background: radial-gradient(circle, #7c3aed, transparent 70%); animation-delay: -15s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -50px) scale(1.15); }
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; 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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Conteneur & sections ---- */
.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }

/* ---- Typographie ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet-2);
  padding: 0.4rem 0.9rem; border: 1px solid var(--stroke-2); border-radius: 100px;
  background: rgba(168, 85, 247, 0.08);
}
.h-xxl { font-size: clamp(2.5rem, 5.1vw, 4.35rem); letter-spacing: -0.032em; line-height: 1.05; text-wrap: balance; }
.h-xl { font-size: clamp(2rem, 5vw, 3.4rem); }
.h-lg { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.gradient-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: var(--text-dim); line-height: 1.55; }
.muted { color: var(--text-mute); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.9rem 1.6rem; border-radius: 100px; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-magenta), inset 0 1px 0 rgba(255,255,255,.3); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: 0.08s; }   /* poids au clic */
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--stroke-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--stroke-strong); background: rgba(168, 85, 247, 0.12); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* ---- Verre / cartes ---- */
.glass {
  background: var(--grad-panel); border: 1px solid var(--stroke);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.card { padding: clamp(1.4rem, 2.5vw, 2rem); position: relative; overflow: hidden; }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(217,70,239,.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none;
}

/* ---- Barre de navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 1.1rem 0;
}
.nav.scrolled {
  background: rgba(10, 5, 20, 0.72); backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--stroke), 0 12px 40px -20px rgba(0,0,0,.8); padding: 0.7rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-cta); box-shadow: var(--glow-sm); color: #fff; flex: none;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-dim); position: relative; transition: color 0.25s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad-primary); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--stroke-2); place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: 0.3s; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

/* ---- Pied de page ---- */
.footer { position: relative; border-top: 1px solid var(--stroke); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; background: linear-gradient(180deg, transparent, rgba(20,11,40,.6)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 1.1rem; }
.footer a { color: var(--text-dim); display: block; padding: 0.28rem 0; transition: color 0.25s; font-size: 0.95rem; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-mute); font-size: 0.85rem; }

/* ---- Puces / etiquettes ---- */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.8rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--stroke-2); }
.pill-pop { background: var(--grad-cta); color: #fff; border: none; box-shadow: var(--glow-sm); }

/* ---- Reveal au defilement ---- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ---- Champs de formulaire (partages) ---- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.4rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-sm); color: var(--text);
  background: rgba(12,6,24,0.55); border: 1px solid var(--stroke-2); transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c084fc' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.form-note { font-size: 0.88rem; margin-top: 0.4rem; }
.form-note.ok { color: var(--ok); } .form-note.err { color: var(--danger); }

/* ---- Utilitaires ---- */
.text-center { text-align: center; }
.flex { display: flex; } .center { align-items: center; justify-content: center; }
.gap-sm { gap: 0.6rem; } .gap { gap: 1rem; } .gap-lg { gap: 1.6rem; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.hidden { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Barre mobile / responsive ---- */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0.2rem; padding: 1rem 1.3rem 1.4rem;
    background: rgba(12,6,24,.96); backdrop-filter: blur(18px); border-top: 1px solid var(--stroke);
  }
  .nav.open .nav-links a { padding: 0.7rem 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
