/* ==========================================================================
   ATELIER M 2.0 — Stylesheet
   ========================================================================== */

/* Variables */
:root {
  --bg-0: #050608;
  --bg-1: #0b0d12;
  --bg-2: #14171f;
  --surface: rgba(20, 23, 31, 0.55);
  --surface-strong: rgba(20, 23, 31, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f6;
  --text-dim: #a0a6b5;
  --text-mute: #6e7585;

  --accent: #d81818;        /* rouge néon foncé */
  --accent-2: #ff5555;      /* rouge néon clair */
  --accent-3: #7a0c0c;      /* rouge profond */
  --accent-glow: rgba(216, 24, 24, 0.7);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(216, 24, 24, 0.35);

  --max-w: 1200px;
  --header-h: 76px;

  --font-display: "Orbitron", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Animated Background ===== */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(216, 24, 24, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(122, 12, 12, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 50%, rgba(255, 85, 85, 0.05), transparent 70%),
    linear-gradient(180deg, #05060a 0%, #07080d 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(216, 24, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 12, 12, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  animation: gridDrift 25s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* CRT scanlines + flicker overlay */
.bg-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.045) 0px,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
  animation: scanlinesDrift 7s linear infinite;
}

.bg-scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
  animation: crtFlicker 4.2s steps(1, end) infinite;
}

@keyframes scanlinesDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 120px; }
}

@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  3%       { opacity: 0.88; }
  6%       { opacity: 1; }
  47%      { opacity: 0.94; }
  48%      { opacity: 1; }
  82%, 84% { opacity: 0.9; }
  83%      { opacity: 1; }
}

/* ===== Layout ===== */
.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8, 10, 14, 0.55);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 6, 10, 0.85);
  border-bottom-color: var(--border-strong);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

/* Logo image (header + footer). The 2.0 logo is already red — no hue shift,
   mix-blend-mode: screen makes the black background disappear. */
.brand-logo {
  display: block;
  width: 130px;
  height: 56px;
  /* Crop on "L'Atelier M" rectangle + full "2.0", cuts just under the 2.0 */
  background: url('../../AtellierM2.0.jpg') 50% 31% / auto 280% no-repeat;
  filter: saturate(1.35) brightness(1.05);
  mix-blend-mode: screen;
  flex-shrink: 0;
}

.brand-loc {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.22em;
}

/* Footer shows the full logo (text + 2.0 + motorcycle) */
.site-footer .brand-logo {
  width: 130px;
  height: 130px;
  background: url('../../AtellierM2.0.jpg') center / contain no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  position: relative;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav a.active {
  color: var(--text);
  background: rgba(216, 24, 24, 0.12);
  box-shadow: inset 0 0 0 1px rgba(216, 24, 24, 0.35);
}

/* Primary CTA inside nav: keep button styling readable (black text on red) */
.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: #0a0a0a;
}
.nav a.btn-primary:hover {
  background: #f02525;
}

.nav-cta {
  margin-left: 8px;
}

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  position: relative;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); }
.burger.open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow:
    0 0 18px rgba(216, 24, 24, 0.55),
    0 8px 30px rgba(216, 24, 24, 0.45),
    0 0 60px rgba(122, 12, 12, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #f02525;
  box-shadow:
    0 0 24px rgba(216, 24, 24, 0.85),
    0 14px 40px rgba(216, 24, 24, 0.65),
    0 0 80px rgba(122, 12, 12, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #0a0a0a;
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(216, 24, 24, 0.08);
  border: 1px solid rgba(216, 24, 24, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* Mots accentués (hero + page-hero) : rouge uni avec un reflet qui balaie */
.hero h1 .accent,
.page-hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--accent); /* fallback si background-clip non supporté */
  /* Rouge uni + bande claire qui balaie pour l'effet de reflet */
  background: linear-gradient(
    110deg,
    var(--accent) 0%,
    var(--accent) 42%,
    #ff9090 50%,
    var(--accent) 58%,
    var(--accent) 100%
  );
  background-size: 220% 100%;
  background-position: -30% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(216, 24, 24, 0.6))
          drop-shadow(0 0 28px rgba(122, 12, 12, 0.35));
  animation: accentShine 4.5s ease-in-out infinite;
}

@keyframes accentShine {
  0%, 12%   { background-position: -30% 0; }   /* reflet à gauche */
  48%, 100% { background-position: 130% 0; }   /* reflet sorti à droite, puis pause */
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .accent,
  .page-hero h1 .accent { animation: none; background-position: 50% 0; }
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Floating moto silhouette */
.hero-halo {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(60%, 720px);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(closest-side, rgba(216, 24, 24, 0.35), transparent 65%),
    radial-gradient(closest-side at 60% 40%, rgba(122, 12, 12, 0.3), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatY 6s ease-in-out infinite;
}

.hero-visual {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(48%, 560px);
  aspect-ratio: 1 / 1;
  background: url('../../AtellierM2.0.jpg') center / contain no-repeat;
  filter: saturate(1.4) brightness(1.05);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-54%); }
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  max-width: 600px;
}

.stat-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stat-link:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 24, 24, 0.4);
  box-shadow: 0 8px 24px rgba(216, 24, 24, 0.2);
}
.stat-link strong svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(216, 24, 24, 0.55));
}

.stat {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat span { font-size: 0.85rem; color: var(--text-dim); }

/* ===== Section common ===== */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-dim);
  max-width: 640px;
  margin-inline: auto;
}

/* ===== Cards / Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(216, 24, 24, 0.4), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(216, 24, 24, 0.2);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(216, 24, 24, 0.15), rgba(122, 12, 12, 0.08));
  border: 1px solid rgba(216, 24, 24, 0.3);
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.service-card ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.service-card li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ===== Features row ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(216, 24, 24, 0.12);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h4 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.info-card:hover {
  border-color: rgba(216, 24, 24, 0.35);
  transform: translateY(-3px);
}

.info-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(216, 24, 24, 0.15), rgba(122, 12, 12, 0.08));
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-card .ico svg { width: 22px; height: 22px; }
.info-card h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 6px; font-weight: 600;}
.info-card p, .info-card a { color: var(--text); font-weight: 500; line-height: 1.5; }
.info-card a:hover { color: var(--accent); }

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.92rem;
}
.hours-list .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-dim);
}
.hours-list .row:last-child { border-bottom: none; }
.hours-list .row.open strong { color: var(--text); }
.hours-list .row.closed { color: var(--text-mute); }

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 460px;
  background: var(--bg-1);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: grayscale(0.5) contrast(1.1) brightness(0.85);
  transition: filter 0.4s ease;
}
.map-wrap:hover iframe { filter: grayscale(0) contrast(1) brightness(1); }

.map-cta {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(5, 6, 10, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.map-cta strong { display: block; font-size: 0.95rem; }
.map-cta span { font-size: 0.82rem; color: var(--text-dim); }

/* ===== Page header (for inner pages) ===== */
.page-hero {
  padding-top: calc(var(--header-h) + 100px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin-inline: auto;
}

/* ===== Occasions page ===== */
.brand-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.brand-chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.brand-chip:hover {
  color: var(--text);
  border-color: rgba(216, 24, 24, 0.4);
}
.brand-chip.active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(216, 24, 24, 0.45);
}
.brand-chip .chip-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
}
.brand-chip.active .chip-count { background: rgba(0, 0, 0, 0.2); }

.moto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.moto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.moto-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 24, 24, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(216, 24, 24, 0.15);
}
.moto-card.status-sold { opacity: 0.7; }

.moto-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0b10 center / cover no-repeat;
  display: grid; place-items: center;
}
.moto-thumb .no-photo {
  color: var(--text-mute);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.moto-thumb .badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.badge-available { color: #b9f5d0; border-color: rgba(20, 200, 110, 0.5); }
.badge-reserved  { color: #ffe2a8; border-color: rgba(255, 184, 0, 0.6); }
.badge-sold      { color: var(--text-mute); }
.moto-thumb .photo-count {
  position: absolute;
  bottom: 14px; right: 14px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-dim);
  backdrop-filter: blur(4px);
}

.moto-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.moto-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.moto-body h3 span { color: var(--text-dim); font-weight: 600; }
/* Sous-titre des pièces : « Pour {marque} {modèle} » */
.part-fit {
  margin-top: -8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.moto-meta {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.moto-meta:empty { display: none; }
.moto-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.moto-meta svg { width: 16px; height: 16px; color: var(--accent); }
.moto-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.moto-foot strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.moto-foot .btn { padding: 10px 16px; font-size: 0.88rem; }

.moto-empty, .moto-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.moto-empty .muted { color: var(--text-mute); font-size: 0.9rem; }
.muted { color: var(--text-mute); }
.hidden { display: none !important; }

/* ─── Modal détail moto ─────────────────────────────────────────── */
.moto-detail {
  position: fixed; inset: 0;
  z-index: 150;
  display: grid; place-items: center;
  padding: 20px;
}
.detail-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}
.detail-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.detail-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
  display: grid; place-items: center;
}
.detail-close:hover { background: rgba(216, 24, 24, 0.85); color: #0a0a0a; }

.detail-gallery {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #06070b;
}
.detail-gallery img#detail-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0a0b10;
}
.detail-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-thumb {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0b10;
  border: 2px solid transparent;
  padding: 0;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.active { border-color: var(--accent); box-shadow: 0 0 10px rgba(216, 24, 24, 0.5); }

.detail-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-info .badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-strong);
  font-weight: 700;
}
.detail-info h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.detail-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.detail-meta span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.detail-meta strong { font-size: 1.05rem; color: var(--text); }
.detail-meta li:last-child strong { color: var(--accent); }
#detail-desc {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-line;
}
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

@media (max-width: 800px) {
  .detail-card { grid-template-columns: 1fr; }
}

/* ===== Contact form ===== */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .field span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}

.contact-form .field em {
  color: var(--accent);
  font-style: normal;
  margin-left: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: rgba(5, 6, 10, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(5, 6, 10, 0.85);
  box-shadow: 0 0 0 3px rgba(216, 24, 24, 0.18), 0 0 18px rgba(216, 24, 24, 0.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-mute);
}

/* Invisible honeypot field */
.contact-form .hp-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-form .form-submit {
  min-width: 220px;
  justify-content: center;
}

.contact-form .form-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.contact-form .form-status {
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: none;
}
.contact-form .form-status.success {
  display: block;
  color: #b9f5d0;
  background: rgba(20, 200, 110, 0.12);
  border: 1px solid rgba(20, 200, 110, 0.4);
}
.contact-form .form-status.error {
  display: block;
  color: #ffd1d1;
  background: rgba(255, 70, 70, 0.12);
  border: 1px solid rgba(255, 70, 70, 0.4);
}

@media (max-width: 600px) {
  .contact-form { padding: 24px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form .form-bottom { flex-direction: column; align-items: stretch; }
  .contact-form .form-submit { width: 100%; }
}

/* ===== CTA Band ===== */
.cta-band {
  position: relative;
  padding: 60px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(216, 24, 24, 0.25), transparent 70%),
    linear-gradient(135deg, rgba(20, 23, 31, 0.9), rgba(11, 13, 18, 0.9));
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 600px;
  margin-inline: auto;
}
.cta-band .actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  padding: 60px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: rgba(5, 6, 10, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-grid h5 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-grid p, .footer-grid a {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-grid a:hover { color: var(--text); }

.footer-grid ul { display: flex; flex-direction: column; gap: 6px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-mute);
  flex-wrap: wrap;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  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; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-visual, .hero-halo { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 80vw);
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border-strong);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 16px 18px; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: 12px; justify-content: center; }

  .burger { display: inline-flex; }

  .hero-stats { grid-template-columns: 1fr; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .map-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
