/* ============================================================
   SOS MÉCANIQUE AUTOMOBILE — Dakar
   Composition: all-navy dusk + lime accent / variable-width type
   / marquee ticker / full-bleed photography / layered gradient
   ============================================================ */

:root {
  --bg: #0e1a2b;
  --bg-deep: #08111d;
  --surface: #14243a;
  --surface-2: #1a2d47;
  --ink: #eaeef7;
  --ink-soft: #a9b6cc;
  --ink-faint: #6f7f99;
  --accent: #ccff33;
  --accent-dim: #9dc41f;
  --line: rgba(234, 238, 247, 0.14);
  --line-strong: rgba(234, 238, 247, 0.28);

  --glow-a: rgba(38, 92, 168, 0.55);
  --glow-b: rgba(204, 255, 51, 0.10);

  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 78rem;

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 65% at 8% -5%, var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse 75% 55% at 100% 12%, var(--glow-b) 0%, transparent 58%),
    radial-gradient(ellipse 120% 70% at 50% 108%, rgba(20, 60, 110, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 2.1rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* ---------- Variable-width breathing type ---------- */

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

.breathe {
  font-variation-settings: "wdth" 100;
  animation: breathe 7s ease-in-out infinite;
}

/* ---------- Marquee ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 17, 29, 0.72);
  backdrop-filter: blur(6px);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0.85rem 1.5rem 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
}

.ticker__group b { color: var(--accent); font-weight: 500; }
.ticker__group span { display: inline-flex; align-items: center; gap: 3rem; }
.ticker__group span::after {
  content: "◆";
  color: var(--accent-dim);
  font-size: 0.6rem;
}

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

.ticker:hover .ticker__track { animation-play-state: paused; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 26, 43, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: uppercase;
}

.head-nav {
  display: none;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.head-nav a { color: var(--ink-soft); }
.head-nav a:hover { color: var(--accent); text-decoration: none; }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background: var(--accent);
  color: #0b1420;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease;
}
.call-btn:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.72) 0%, rgba(8, 17, 29, 0.35) 38%, rgba(8, 17, 29, 0.94) 100%),
    radial-gradient(ellipse 70% 60% at 12% 90%, rgba(14, 26, 43, 0.9) 0%, transparent 70%);
}

.hero__inner {
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.6rem, 8.6vw, 6.6rem);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  max-width: 20ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero__lede {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__strip strong { color: var(--ink); font-weight: 500; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section h2 {
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.section__lede {
  max-width: 58ch;
  color: var(--ink-soft);
}

.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}

/* ---------- Services ---------- */

.services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.service {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.4rem, 3.5vw, 2.1rem);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.service:hover { background: rgba(204, 255, 51, 0.035); }

.service__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.service h3 {
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  text-transform: uppercase;
}

.service p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

.service__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

@media (min-width: 46rem) {
  .service {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: baseline;
  }
  .service__num { grid-row: 1 / span 2; }
  .service h3 { grid-column: 2; }
  .service p { grid-column: 3; }
  .service__meta { grid-column: 2; }
}

/* ---------- Full-bleed gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.5rem, 1.4vw, 1rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.gallery > figure {
  grid-column: 1 / -1;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.gallery figure:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6rem clamp(1rem, 3vw, 1.6rem) clamp(0.9rem, 2.4vw, 1.3rem);
  background: linear-gradient(180deg, transparent 0%, rgba(8, 17, 29, 0.9) 78%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.gallery figcaption b { color: var(--accent); font-weight: 500; }

@media (min-width: 52rem) {
  .gallery > .half { grid-column: span 6; }
  .gallery > .wide { grid-column: span 8; }
  .gallery > .narrow { grid-column: span 4; }
  .gallery > .half img,
  .gallery > .wide img,
  .gallery > .narrow img { aspect-ratio: 4 / 3; }
  .gallery > .wide img { aspect-ratio: 16 / 10; }
}

/* ---------- Zone / coverage ---------- */

.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
}
.zones li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.zones li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Info cards (hours / address / phone) ---------- */

.info-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 52rem) {
  .info-grid { grid-template-columns: 1.15fr 1fr 1fr; }
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(26, 45, 71, 0.72) 0%, rgba(14, 26, 43, 0.6) 100%);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}

.card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.42rem;
  border-bottom: 1px dashed rgba(234, 238, 247, 0.1);
  color: var(--ink-soft);
}
.hours li:last-child { border-bottom: 0; }
.hours li.is-closed { color: var(--ink-faint); }
.hours li.is-closed span:last-child { color: #ff8f6b; }

.card address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.big-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.big-phone:hover { text-decoration: none; opacity: 0.85; }

.card__note {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 1rem;
}

/* ---------- Quote band ---------- */

.quote-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(26, 45, 71, 0.55) 0%, rgba(8, 17, 29, 0.4) 100%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.quote-band blockquote {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.7rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.quote-band blockquote em { font-style: normal; color: var(--accent); }
.quote-band cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
}

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 5.5rem;
  background: rgba(8, 17, 29, 0.6);
}

.foot-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 52rem) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-foot h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.site-foot p, .site-foot li { color: var(--ink-soft); font-size: 0.92rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding-block: 0.28rem; }

.foot-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.claim-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: rgba(234, 238, 247, 0.05);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  text-transform: none;
}
.claim-banner:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* Attribution — restyled to sit in the footer flow on free tier */
.attribution {
  position: static;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.attribution a { color: inherit; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(1.6rem); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 62rem) {
  .head-nav { display: flex; }
  .split--two { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

@media (max-width: 40rem) {
  .brand__sub { display: none; }
  .hero__strip { gap: 0.5rem 1.4rem; }
}

/* ---------- Reduced motion ---------- */

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