/* ================================================================
   Cars Community — Thème Obsidian × Amethyst × Amber
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Fond — obsidienne profonde */
  --bg:     #08060f;
  --bg2:    #0e0b18;
  --panel:  #130f20;
  --panel2: #1a1530;
  --border:  rgba(148,100,255,0.1);
  --border2: rgba(160,120,255,0.2);

  /* Texte — blanc lavande */
  --text:  #f0ecff;
  --muted: rgba(220,210,255,0.42);

  /* Grades — spectre gris → bleu → émeraude → violet → or */
  --cloc: #6b7280;   /* Gray         */
  --disc: #38bdf8;   /* Sky Blue     */
  --flex: #34d399;   /* Emerald      */
  --plus: #a78bfa;   /* Soft Violet  */
  --inf:  #fbbf24;   /* Amber Gold ✦ */

  --cloc-bg: rgba(107,114,128,0.1);
  --disc-bg: rgba(56,189,248,0.1);
  --flex-bg: rgba(52,211,153,0.1);
  --plus-bg: rgba(167,139,250,0.1);
  --inf-bg:  rgba(251,191,36,0.1);

  /* Accentuation */
  --accent: #8b5cf6;   /* Améthyste — boutons & interactif */
  --green:  #4ade80;
  --danger: #f87171;

  /* Typo */
  --font-hd: 'Rajdhani', sans-serif;
  --font-bd: 'Outfit', sans-serif;
}

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

/* ── Corps ─────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-bd);
  min-height: 100vh;
  padding-bottom: 60px;
  background-image:
    radial-gradient(ellipse at 20%  0%,  rgba(139,92,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.04) 0%, transparent 50%);
}

/* ── Navigation ────────────────────────────────────────────────── */
.top-nav {
  background: rgba(8,6,15,0.94);
  border-bottom: 1px solid rgba(148,100,255,0.22);
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.top-nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  height: 52px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.top-nav-logo {
  font-family: var(--font-hd); font-size: 15px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  background: linear-gradient(90deg, #a78bfa 0%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; flex-shrink: 0;
}
.top-nav-logo::before { content: '✦ '; }
.top-nav-links { display: flex; gap: 2px; }
.top-nav-link {
  font-family: var(--font-hd); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
  text-decoration: none; padding: 7px 14px; border-radius: 8px;
  transition: .15s; display: flex; align-items: center; gap: 6px;
}
.top-nav-link:hover {
  color: var(--text);
  background: rgba(148,100,255,0.08);
}
.top-nav-link.active {
  color: #a78bfa;
  background: rgba(139,92,246,0.14);
}
@media(max-width:520px) {
  .top-nav-link span { display: none; }
  .top-nav-link { padding: 7px 10px; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(175deg, #110d20 0%, #0c0916 50%, var(--bg) 100%);
  border-bottom: 1px solid rgba(148,100,255,0.15);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(139,92,246,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 85%, rgba(139,92,246,0.04) 0%, transparent 50%);
}
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 44px 32px; position: relative; }
.logo {
  font-family: var(--font-hd); font-weight: 700; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 15px; display: flex; align-items: center; gap: 10px;
}
.logo::before {
  content: ''; width: 20px; height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #fbbf24);
}
.hero-title {
  font-family: var(--font-hd); font-weight: 700;
  font-size: clamp(30px,5vw,52px); text-transform: uppercase;
  letter-spacing: -1px; margin-bottom: 20px; line-height: 1.05;
}
.hero-title span { color: inherit; }

/* ── Boutons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-bd); font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; border: none;
  cursor: pointer; transition: .15s; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7c3aed; box-shadow: 0 0 22px rgba(139,92,246,.4); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(167,139,250,.4); background: rgba(139,92,246,.06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1.5px solid rgba(248,113,113,.3); }
.btn-danger-ghost:hover { background: rgba(248,113,113,.08); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 7px; }

/* ── Panel / Card ──────────────────────────────────────────────── */
.panel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}

/* ── Badge grade ───────────────────────────────────────────────── */
.grade-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px;
  font-family: var(--font-hd); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; white-space: nowrap;
}

/* ── Inputs ────────────────────────────────────────────────────── */
.field-input {
  background: var(--bg2); border: 1.5px solid var(--border2);
  padding: 10px 14px; border-radius: 9px; color: var(--text);
  font-family: var(--font-bd); font-size: 14px; outline: none;
  transition: border-color .2s; width: 100%;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes popIn   { from { transform: scale(.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes twinkle { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 rgba(139,92,246,0); }
  50%      { box-shadow: 0 0 20px rgba(139,92,246,.25); }
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  max-width: 1140px; margin: 40px auto 0; padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(148,100,255,0.14);
}
.footer-left  { font-size: 12px; color: var(--muted); }
.footer-right { display: flex; gap: 16px; align-items: center; }
.footer-link  {
  font-size: 12px; color: var(--muted); text-decoration: none;
  transition: color .2s; display: flex; align-items: center; gap: 5px;
}
.footer-link:hover { color: var(--inf); }

/* ── Modals ────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  align-items: center; justify-content: center;
  background: rgba(4,3,10,.88); backdrop-filter: blur(12px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--panel);
  border: 1px solid rgba(148,100,255,.22);
  border-radius: 20px; padding: 44px 50px; text-align: center;
  box-shadow: 0 0 60px rgba(139,92,246,.1), 0 30px 80px rgba(0,0,0,.6);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
  max-width: 420px; width: 100%;
}

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: rgba(14,11,24,.97);
  border: 1px solid rgba(74,222,128,.3); color: var(--green);
  padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
  display: none; align-items: center; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5); animation: slideUp .3s ease;
}
.toast.show { display: flex; }

/* ── Page eyebrow ──────────────────────────────────────────────── */
.page-eyebrow {
  font-family: var(--font-hd); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.page-eyebrow::before {
  content: ''; display: inline-block; width: 16px; height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #fbbf24);
}
.page-title {
  font-family: var(--font-hd); font-weight: 700;
  font-size: clamp(28px,5vw,46px); text-transform: uppercase;
  letter-spacing: -1px; color: var(--text); line-height: 1.1; margin-bottom: 10px;
}
.page-title span {
  background: linear-gradient(90deg, #a78bfa, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
