/* ============================================================
   AR garage mécanique auto / à domicile — Marseille 13014
   Palette: noir + blanc + une couleur par section
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --red: #e10600;
  --blue: #003c8a;
  --acid: #f4ff33;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: rgba(10, 10, 10, 0.62);
  --line: rgba(10, 10, 10, 0.14);
  --card: #ffffff;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1240px;

  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.66);
  --line: rgba(245, 245, 242, 0.18);
  --card: #131313;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

/* ---- patterned SVG tile background (whole page) ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%230a0a0a' fill-opacity='0.16'/><path d='M11 0v22M0 11h22' stroke='%230a0a0a' stroke-opacity='0.05' stroke-width='0.6'/></svg>");
  background-size: 22px 22px;
  opacity: 0.9;
}

html[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%23f5f5f2' fill-opacity='0.18'/><path d='M11 0v22M0 11h22' stroke='%23f5f5f2' stroke-opacity='0.06' stroke-width='0.6'/></svg>");
}

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

a { color: inherit; }

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

.skip { position: absolute; left: -9999px; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  border-radius: 3px;
}

html[data-theme="dark"] .brand-mark { background: var(--acid); color: var(--ink); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a { text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--fg); }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border-radius: 3px;
  white-space: nowrap;
}
.btn-call:hover { background: #b80500; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .btn-call span.label-long { display: none; }
}

/* ============================================================
   SECTION SHELL — each section takes over the full background
   ============================================================ */

section { position: relative; }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--pad);
}

.sec-ink   { background: var(--ink);   color: #f5f5f2; }
.sec-red   { background: var(--red);   color: #fff; }
.sec-blue  { background: var(--blue);  color: #fff; }
.sec-acid  { background: var(--acid);  color: var(--ink); }
.sec-paper { background: var(--paper); color: var(--ink); }

html[data-theme="dark"] .sec-paper { background: #0f0f0f; color: #f5f5f2; }

.sec-ink .muted, .sec-red .muted, .sec-blue .muted { color: rgba(255, 255, 255, 0.74); }
.sec-acid .muted { color: rgba(10, 10, 10, 0.68); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

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

.lede { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; max-width: 62ch; }

/* ============================================================
   HERO — stacked headline breaking the baseline
   ============================================================ */

.hero { background: var(--ink); color: #f5f5f2; overflow: hidden; }

.hero .shell {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
}

.hero-copy { grid-column: 1 / 5; }

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1rem + 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 1.6rem;
  text-transform: uppercase;
}

h1 span { display: block; }
h1 span:nth-child(2) { margin-left: 0.42em; color: var(--acid); }
h1 span:nth-child(3) { margin-left: -0.06em; }
h1 span:nth-child(4) {
  margin-left: 0.9em;
  font-size: 0.42em;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: rgba(245, 245, 242, 0.72);
  text-transform: none;
  margin-top: 0.5em;
}

.hero-facts {
  grid-column: 5 / 7;
  border-left: 2px solid var(--red);
  padding-left: 1.1rem;
  align-self: end;
}
.hero-facts dl { margin: 0; }
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.6);
  margin-top: 0.9rem;
}
.hero-facts dt:first-child { margin-top: 0; }
.hero-facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.hero-facts a { text-decoration: none; border-bottom: 2px solid var(--red); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--acid); color: var(--ink); }
.btn-primary:hover { background: #e2ee1f; }
.btn-ghost { border-color: rgba(245, 245, 242, 0.4); color: #f5f5f2; }
.btn-ghost:hover { border-color: #f5f5f2; }

.hero-strip {
  grid-column: 1 / 7;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245, 245, 242, 0.18);
  border-top: 1px solid rgba(245, 245, 242, 0.18);
}
.hero-strip div {
  background: var(--ink);
  padding: 1rem 0.9rem;
}
.hero-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-strip small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.6);
}

@media (max-width: 900px) {
  .hero-copy { grid-column: 1 / 7; }
  .hero-facts { grid-column: 1 / 7; border-left: 0; border-top: 2px solid var(--red); padding-left: 0; padding-top: 1rem; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BENTO — broken / asymmetric anti-grid
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.cell { min-width: 0; }

.cell-a { grid-column: 1 / 4; }
.cell-b { grid-column: 4 / 7; margin-top: clamp(1.5rem, 5vw, 4rem); }
.cell-c { grid-column: 2 / 5; margin-top: clamp(-2rem, -3vw, 0rem); }
.cell-d { grid-column: 5 / 7; }
.cell-e { grid-column: 1 / 3; }
.cell-f { grid-column: 3 / 7; margin-top: clamp(1rem, 3vw, 2.5rem); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e, .cell-f {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}

.svc {
  background: var(--card);
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
html[data-theme="dark"] .svc { background: #131313; }

.svc .num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--red);
}
.svc p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.svc .price {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--fg);
}

/* ============================================================
   DRAG BAND — signature horizontal scroll
   ============================================================ */

.band-wrap { background: var(--blue); color: #fff; }

.band-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}
.band-head h2 { margin: 0; }
.band-hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.band {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding: 0 var(--pad) clamp(3rem, 7vw, 5.5rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}
.band::-webkit-scrollbar { display: none; }
.band.is-dragging { cursor: grabbing; user-select: none; }

.band-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
}

.band-card {
  width: clamp(230px, 26vw, 320px);
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  overflow: hidden;
}
.band-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
}
.band-card figcaption {
  padding: 0.9rem 1rem 1.1rem;
}
.band-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.band-card span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
  display: block;
}

/* ============================================================
   ZONE / COVERAGE
   ============================================================ */

.zone-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 1.25rem;
  font-size: 0.94rem;
}
.zone-list li {
  padding-left: 1.1rem;
  position: relative;
}
.zone-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: currentColor;
  opacity: 0.55;
}

/* ============================================================
   HOURS TABLE
   ============================================================ */

.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.96rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.hours th { font-weight: 600; }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.84rem; letter-spacing: 0.02em; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .today { color: var(--acid); }

/* ============================================================
   CONTACT (informational only — no form)
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2rem;
}
.contact-block { grid-column: 1 / 4; }
.contact-side { grid-column: 4 / 7; }

@media (max-width: 900px) {
  .contact-block, .contact-side { grid-column: 1 / -1; }
}

.contact-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1rem + 3.6vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  border-bottom: 4px solid currentColor;
  padding-bottom: 0.15rem;
  margin-bottom: 1.4rem;
}
.contact-big:hover { opacity: 0.78; }

.addr {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}
.map-link:hover { background: rgba(10, 10, 10, 0.08); }

.note {
  border-left: 3px solid currentColor;
  padding: 0.2rem 0 0.2rem 1rem;
  font-size: 0.94rem;
  opacity: 0.86;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(245, 245, 242, 0.72);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 5.5rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.5);
  margin: 0 0 0.7rem;
  font-weight: 500;
}
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(245, 245, 242, 0.3); }
.site-footer a:hover { border-bottom-color: var(--acid); }
.site-footer p { font-size: 0.92rem; }

.claim-banner {
  display: block;
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 0.7rem 1rem;
  background: rgba(245, 245, 242, 0.08);
  border: 1px solid rgba(245, 245, 242, 0.18);
  border-radius: 3px;
  font-size: 0.82rem;
  color: rgba(245, 245, 242, 0.82);
  text-decoration: none;
  width: fit-content;
}
.claim-banner:hover { background: rgba(245, 245, 242, 0.14); color: #fff; }

.attribution {
  position: static;
  max-width: var(--maxw);
  margin: 1.25rem auto 0;
  padding: 0 var(--pad);
  font-size: 0.72rem;
  opacity: 0.55;
  font-family: var(--font-mono);
}
.attribution a { color: inherit; }

/* ============================================================
   MOTION — gentle fade + rise on scroll enter
   ============================================================ */

@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
