/* ============================================================
   REPARATION MOBILE AUTO MARSEILLE
   Composition: warm earth editorial · broadsheet columns
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f5efe4;
  --bg-2: #efe6d6;
  --paper: #fbf7ef;
  --ink: #2b1e14;
  --ink-soft: #5a4a3c;
  --ink-faint: #8a7866;
  --accent: #c25a37;
  --accent-deep: #9d4527;
  --secondary: #6a7a4a;
  --rule: #d9cbb6;
  --warm-light: rgba(226, 168, 108, 0.30);
  --glow-y: 12%;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1410;
    --bg-2: #221a14;
    --paper: #241c15;
    --ink: #f2e7d8;
    --ink-soft: #cbb9a4;
    --ink-faint: #9c8873;
    --accent: #e07a52;
    --accent-deep: #f0906a;
    --secondary: #9aab74;
    --rule: #3d3025;
    --warm-light: rgba(196, 118, 62, 0.22);
  }
}

/* Manual theme override (header switcher) */
html[data-theme="light"] {
  --bg: #f5efe4; --bg-2: #efe6d6; --paper: #fbf7ef;
  --ink: #2b1e14; --ink-soft: #5a4a3c; --ink-faint: #8a7866;
  --accent: #c25a37; --accent-deep: #9d4527; --secondary: #6a7a4a;
  --rule: #d9cbb6; --warm-light: rgba(226, 168, 108, 0.30);
}
html[data-theme="dark"] {
  --bg: #1a1410; --bg-2: #221a14; --paper: #241c15;
  --ink: #f2e7d8; --ink-soft: #cbb9a4; --ink-faint: #9c8873;
  --accent: #e07a52; --accent-deep: #f0906a; --secondary: #9aab74;
  --rule: #3d3025; --warm-light: rgba(196, 118, 62, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

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

/* ---------- Background: soft light source that follows scroll ---------- */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% var(--glow-y), var(--warm-light) 0, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  transition: background-position 0.15s linear;
}

/* ---------- Layout shell ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Skip-free header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  animation: slide-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  max-width: 15rem;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.55rem 0.6rem;
  border-radius: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { color: var(--accent); }

.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff8f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 0.95rem;
  min-height: 44px;
  border-radius: 3px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.phone-btn:hover { background: var(--accent-deep); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
  animation: fade-up 0.6s ease-out 0.1s both;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 7.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  text-wrap: balance;
}

/* Signature: hover swaps the headline phrase */
.swap {
  position: relative;
  display: inline-block;
  cursor: default;
}
.swap .default,
.swap .alt {
  display: block;
  transition: opacity 0.35s ease;
}
.swap .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  pointer-events: none;
}
.swap:hover .default,
.swap:focus-visible .default { opacity: 0; }
.swap:hover .alt,
.swap:focus-visible .alt { opacity: 1; }

.hero-lede {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 1.6rem;
  animation: fade-up 0.7s ease-out 0.34s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  animation: fade-up 0.7s ease-out 0.46s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff8f2;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  min-height: 48px;
  border-radius: 3px;
  font-size: 0.98rem;
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.85rem 1.35rem;
  min-height: 48px;
  border-radius: 3px;
  font-size: 0.98rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
  animation: fade-up 0.7s ease-out 0.58s both;
}
.hero-meta strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Broadsheet article ---------- */
.broadsheet {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.broadsheet h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  column-span: all;
}

.section-rule {
  column-span: all;
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.8rem;
}

article {
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--rule);
}

article p {
  margin: 0 0 1.15rem;
  max-width: 68ch;
  text-wrap: pretty;
}

article p.lead::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.82;
  float: left;
  padding: 0.1rem 0.55rem 0 0;
  color: var(--accent);
  font-weight: 600;
}

article h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.4rem 0 0.5rem;
  break-after: avoid;
}

article ul {
  margin: 0 0 1.15rem;
  padding-left: 1.1rem;
}
article li { margin-bottom: 0.35rem; }

figure {
  margin: 0 0 1.3rem;
  break-inside: avoid;
}
figure img {
  border-radius: 2px;
  filter: saturate(0.94) contrast(1.02);
}
figcaption {
  font-size: 0.76rem;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: 0.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
}

/* ---------- Services ---------- */
.services {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-faint);
  max-width: 34ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.service {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 1.4rem 1.6rem;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}

.service .num {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.7rem;
}
.service h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  line-height: 1.25;
}
.service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Photo strip ---------- */
.strip {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.strip-grid figure { margin: 0; }
.strip-grid img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  border-radius: 2px;
}

/* ---------- Zone / area ---------- */
.zone {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
}
.zone-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.zone h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}
.zone p { color: var(--ink-soft); margin: 0 0 1rem; }

.quartiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.quartiers li {
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}
.quartiers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  background: var(--secondary);
  border-radius: 50%;
}

.zone figure { margin: 0; }
.zone figure img { border-radius: 2px; }

/* ---------- Hours + contact ---------- */
.infos {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
}
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.infos h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.infos h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--ink-soft); }
.hours .time { font-variant-numeric: tabular-nums; font-weight: 500; }
.hours li.closed .time { color: var(--accent); font-weight: 600; }

.contact-block p { margin: 0 0 0.9rem; color: var(--ink-soft); }
.contact-block a.big-phone {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.contact-block a.big-phone:hover { color: var(--accent-deep); }

address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}
address a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }
address a:hover { color: var(--accent); }

.review {
  border-left: 2px solid var(--secondary);
  padding-left: 0.9rem;
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.review .stars { color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 0.3rem; }
.review cite { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.4rem; font-style: normal; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2rem, 5vw, 3rem) 0 5rem;
  margin-top: 1rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.footer-note { font-size: 0.84rem; color: var(--ink-faint); margin: 0; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.86rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent);
  padding: 0.45rem 0.8rem;
  border-radius: 3px;
  text-decoration: none;
  margin-bottom: 1rem;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution {
  position: static;
  font-size: 0.72rem;
  opacity: 0.55;
  font-family: var(--sans);
  margin: 0;
}
.attribution a { color: inherit; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Motion ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  article { column-count: 2; column-gap: 2rem; }
  .zone-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  article { column-count: 1; column-rule: 0; }
  .brand { max-width: 100%; font-size: 0.9rem; }
  .masthead-inner { padding: 0.6rem var(--gutter); }
  .nav a { padding: 0.5rem 0.45rem; font-size: 0.82rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .glow { transition: none; }
}
