/* ============================================================
   Mécanique Auto A Domicile et Mobile — Paris 19e
   Palette : navy crépusculaire + accent lime acide
   ============================================================ */

:root {
  --bg: #0e1a2b;
  --bg-deep: #0a1320;
  --surface: #16253a;
  --surface-2: #1d2f47;
  --ink: #eaeef7;
  --ink-soft: #a8b6cd;
  --ink-dim: #7d8da6;
  --accent: #ccff33;
  --accent-ink: #0e1a2b;
  --line: rgba(234, 238, 247, 0.14);
  --line-strong: rgba(234, 238, 247, 0.28);
  --glow-a: rgba(204, 255, 51, 0.10);
  --glow-b: rgba(56, 122, 214, 0.22);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --radius: 14px;
}

/* Thème clair — même composition, inversée, contraste vérifié */
html[data-theme="light"] {
  --bg: #f4f6f1;
  --bg-deep: #e8ece2;
  --surface: #ffffff;
  --surface-2: #eef1e8;
  --ink: #101c2c;
  --ink-soft: #3f4d61;
  --ink-dim: #5d6b7e;
  --accent: #4a6b00;
  --accent-ink: #f6ffe0;
  --line: rgba(16, 28, 44, 0.14);
  --line-strong: rgba(16, 28, 44, 0.3);
  --glow-a: rgba(120, 160, 20, 0.14);
  --glow-b: rgba(56, 122, 214, 0.14);
  --shadow: 0 22px 50px -32px rgba(16, 28, 44, 0.45);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #f4f6f1;
    --bg-deep: #e8ece2;
    --surface: #ffffff;
    --surface-2: #eef1e8;
    --ink: #101c2c;
    --ink-soft: #3f4d61;
    --ink-dim: #5d6b7e;
    --accent: #4a6b00;
    --accent-ink: #f6ffe0;
    --line: rgba(16, 28, 44, 0.14);
    --line-strong: rgba(16, 28, 44, 0.3);
    --glow-a: rgba(120, 160, 20, 0.14);
    --glow-b: rgba(56, 122, 214, 0.14);
    --shadow: 0 22px 50px -32px rgba(16, 28, 44, 0.45);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 0%, var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse 65% 60% at 92% 18%, var(--glow-b) 0%, transparent 58%),
    radial-gradient(ellipse 90% 50% at 50% 100%, var(--glow-a) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  font-variation-settings: "wdth" 100;
  text-wrap: pretty;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.015em; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.7rem 1.1rem; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- typographie animée (axe de largeur) ---------- */

@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78; }
  50%      { font-variation-settings: "wdth" 122; }
}

h1 {
  font-size: clamp(2.6rem, 1.4rem + 7.2vw, 6.4rem);
  font-weight: 700;
  animation: breathe 6.5s ease-in-out infinite;
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 3.1vw, 3.4rem);
  font-weight: 650;
  animation: breathe 8s ease-in-out infinite;
}

h3 { font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* ---------- barre supérieure ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.15rem;
  border-radius: 10px;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.98rem; font-weight: 700; }
.brand-text em {
  font-style: normal; font-family: var(--font-mono);
  font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
}

.topnav { display: none; gap: 1.6rem; }
.topnav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.topnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.topbar-actions { display: flex; align-items: center; gap: 0.55rem; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.call-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.call-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-ink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- bandeau défilant ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0.6rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 42s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track .sep { color: var(--accent); letter-spacing: 0; }

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

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: clamp(260px, 46vw, 560px);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--bg) 92%, transparent) 100%);
  pointer-events: none;
}

.hero-body {
  padding: clamp(1.6rem, 4vw, 3.4rem) var(--pad) clamp(2.2rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}

.lede {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem);
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin: 1.9rem 0 2.4rem;
}

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-facts > div {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 1rem 1.15rem;
}
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.3rem;
}
.hero-facts dd { margin: 0; font-weight: 600; font-size: 1rem; }

/* ---------- sections ---------- */

.band {
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}

.band-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.band-intro { color: var(--ink-soft); margin-top: 1.1rem; }

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  padding: clamp(1.3rem, 3vw, 2rem);
  transition: background 0.25s ease;
}
.service:hover { background: var(--surface-2); }

.service .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.service h3 { margin-bottom: 0.6rem; }
.service p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- galerie plein cadre ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-block: clamp(1rem, 3vw, 2rem);
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.gallery .full { grid-column: 1 / -1; }
.gallery .half { grid-column: 1 / -1; }

.gallery img {
  width: 100%;
  height: clamp(240px, 42vw, 520px);
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.gallery .full img { height: clamp(280px, 52vw, 640px); }
.gallery figure:hover img { transform: scale(1.02); filter: saturate(1) contrast(1.06); }

.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem var(--pad) 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(6, 12, 22, 0.88));
}
html[data-theme="light"] .gallery figcaption { color: #fff; }

/* ---------- zone ---------- */

.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.zone-col {
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.zone-col h3 { margin-bottom: 1rem; }

.tags li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.tags li:last-child { border-bottom: 0; }

.zone-note { background: var(--surface-2); }
.zone-note p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- horaires ---------- */

.hours {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.hours th, .hours td {
  text-align: left;
  padding: 0.85rem clamp(0.9rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; color: var(--ink); }
.hours td {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-align: right;
}
.hours-note {
  margin-top: 1.1rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ---------- atelier ---------- */

.atelier {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.atelier-text p { color: var(--ink-soft); }
.atelier-text strong { color: var(--ink); }

.atelier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
  align-self: start;
}
.atelier-card h3 { margin-bottom: 1rem; }
.atelier-card li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  border-bottom: 1px dashed var(--line);
}
.atelier-card li:last-child { border-bottom: 0; }
.atelier-card li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  padding: clamp(1.3rem, 3vw, 2rem);
  text-decoration: none;
  color: var(--ink);
}
.contact-phone {
  background: var(--accent);
  color: var(--accent-ink);
  transition: filter 0.2s ease;
}
.contact-phone:hover { filter: brightness(1.07); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.75;
}
.contact-value {
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}
.contact-hint { font-size: 0.86rem; color: var(--ink-dim); }
.contact-phone .contact-hint { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }

.contact-note {
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  max-width: 68ch;
}

/* ---------- pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 80%, transparent);
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--pad) 1.6rem;
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  gap: 1.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand strong { font-size: 1.05rem; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; margin: 0.4rem 0 0; }
.footer-hours { color: var(--ink-dim) !important; font-family: var(--font-mono); font-size: 0.78rem !important; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.claim-wrap { max-width: var(--maxw); margin: 1.3rem auto 0; }

.claim-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.muted {
  max-width: var(--maxw);
  margin: 1rem auto 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.muted a { color: var(--ink-dim); text-decoration: none; }
.muted a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery .half { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 900px) {
  .topnav { display: flex; }
  .zone-grid { grid-template-columns: 1fr 1fr 1.15fr; }
  .atelier { grid-template-columns: 1.55fr 1fr; }
  .services { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .hero-media { order: 2; }
  .hero-media img { height: 100%; min-height: 620px; }
  .hero-media::after {
    background: linear-gradient(270deg, transparent 45%, color-mix(in srgb, var(--bg) 88%, transparent) 100%);
  }
  .hero-body {
    order: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding-inline: var(--pad);
  }
}

/* ---------- mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  h1, h2 { animation: none; font-variation-settings: "wdth" 100; }
  .marquee-track { animation: none; }
  .gallery figure:hover img { transform: none; }
}
