/* ============================================================
   Galass AutoZone — mécanicien mobile, Dakar
   Palette : tirage photo désaturé années 70
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e6d9bd;
  --paper:   #f6efdd;
  --ink:     #3a2f1a;
  --ink-soft:#5c4d2e;
  --a:       #a67c00;   /* moutarde */
  --b:       #6b7a3a;   /* vert avocat */
  --c:       #c04e1a;   /* terre brûlée */
  --line:    rgba(58, 47, 26, 0.22);
  --line-strong: rgba(58, 47, 26, 0.45);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 3px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

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

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

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(58, 47, 26, 0.12);
  z-index: 1000;
}
.progress__fill {
  display: block;
  height: 100%;
  background: var(--c);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress__fill {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem var(--pad);
  background: rgba(239, 230, 208, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.brand__text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topnav { display: flex; gap: 1.4rem; }
.topnav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.topnav a:hover { color: var(--ink); border-bottom-color: var(--a); }

.callbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--c);
  color: #fff6e8;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.callbtn__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffe9c9;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--bg-2);
  padding: clamp(3rem, 8vw, 6rem) 0 0;
  overflow: hidden;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(166,124,0,0.20), transparent 70%),
    radial-gradient(50% 50% at 92% 30%, rgba(107,122,58,0.18), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-variation-settings: "opsz" 120, "SOFT" 40;
  margin-bottom: 1rem;
}
.caret {
  display: inline-block;
  width: 0.55ch;
  margin-left: 0.06em;
  color: var(--c);
  font-weight: 300;
}
.caret::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__vibe {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

/* audio-visualizer bars */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 54px;
  margin-bottom: 2rem;
  max-width: 520px;
}
.viz__bar {
  flex: 1 1 auto;
  min-width: 3px;
  height: 100%;
  background: var(--a);
  transform-origin: 50% 100%;
  transform: scaleY(0.18);
  border-radius: 1px;
  animation: bounce 1.5s ease-in-out infinite;
}
.viz__bar:nth-child(3n)   { background: var(--b); }
.viz__bar:nth-child(4n+1) { background: var(--c); }
.viz__bar:nth-child(1)  { animation-duration: 1.15s; animation-delay: -0.05s; }
.viz__bar:nth-child(2)  { animation-duration: 1.45s; animation-delay: -0.35s; }
.viz__bar:nth-child(3)  { animation-duration: 0.95s; animation-delay: -0.62s; }
.viz__bar:nth-child(4)  { animation-duration: 1.30s; animation-delay: -0.18s; }
.viz__bar:nth-child(5)  { animation-duration: 1.05s; animation-delay: -0.80s; }
.viz__bar:nth-child(6)  { animation-duration: 1.55s; animation-delay: -0.44s; }
.viz__bar:nth-child(7)  { animation-duration: 1.20s; animation-delay: -0.10s; }
.viz__bar:nth-child(8)  { animation-duration: 0.90s; animation-delay: -0.70s; }
.viz__bar:nth-child(9)  { animation-duration: 1.40s; animation-delay: -0.28s; }
.viz__bar:nth-child(10) { animation-duration: 1.10s; animation-delay: -0.55s; }
.viz__bar:nth-child(11) { animation-duration: 1.60s; animation-delay: -0.02s; }
.viz__bar:nth-child(12) { animation-duration: 1.00s; animation-delay: -0.88s; }
.viz__bar:nth-child(13) { animation-duration: 1.35s; animation-delay: -0.38s; }
.viz__bar:nth-child(14) { animation-duration: 0.98s; animation-delay: -0.66s; }
.viz__bar:nth-child(15) { animation-duration: 1.50s; animation-delay: -0.14s; }
.viz__bar:nth-child(16) { animation-duration: 1.18s; animation-delay: -0.48s; }
.viz__bar:nth-child(17) { animation-duration: 1.42s; animation-delay: -0.76s; }
.viz__bar:nth-child(18) { animation-duration: 1.06s; animation-delay: -0.22s; }
.viz__bar:nth-child(19) { animation-duration: 1.28s; animation-delay: -0.58s; }
.viz__bar:nth-child(20) { animation-duration: 0.92s; animation-delay: -0.08s; }
.viz__bar:nth-child(21) { animation-duration: 1.52s; animation-delay: -0.42s; }
.viz__bar:nth-child(22) { animation-duration: 1.12s; animation-delay: -0.84s; }
.viz__bar:nth-child(23) { animation-duration: 1.38s; animation-delay: -0.30s; }
.viz__bar:nth-child(24) { animation-duration: 1.02s; animation-delay: -0.64s; }
.viz__bar:nth-child(25) { animation-duration: 1.46s; animation-delay: -0.16s; }
.viz__bar:nth-child(26) { animation-duration: 1.22s; animation-delay: -0.52s; }
@keyframes bounce {
  0%, 100% { transform: scaleY(0.16); }
  50%      { transform: scaleY(1); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--c); color: #fff6e8; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero__facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 0.15rem;
}

.hero__figure {
  position: relative;
  max-width: var(--wrap);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--pad);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.82) contrast(1.04);
}
.hero__figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-top: 0.6rem;
}

/* ---------- section heads ---------- */
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.sec-head__kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 0.7rem;
}
.sec-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 0.9rem; }
.sec-head__lede { color: var(--ink-soft); margin: 0; }

/* ---------- services (menu-first) ---------- */
.services {
  background: var(--bg);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .menu { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.menu__group h3 {
  font-size: 1.32rem;
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.menu__group h3::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.item:last-child { border-bottom: none; }
.item__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.item__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}
.item__price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c);
  white-space: nowrap;
  margin: 0;
  text-align: right;
}
.menu__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border-left: 4px solid var(--a);
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 74ch;
}

/* ---------- atelier ---------- */
.atelier {
  background: var(--b);
  color: #f3eeda;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.atelier .sec-head__kicker { color: #f0d9a0; }
.atelier__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .atelier__grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.atelier h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1.2rem; }
.atelier p { color: rgba(243, 238, 218, 0.88); max-width: 60ch; }
.atelier__list {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid rgba(243, 238, 218, 0.3);
  padding-top: 1.4rem;
}
.atelier__list li {
  font-size: 0.94rem;
  color: rgba(243, 238, 218, 0.9);
}
.atelier__list strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fff8e4;
}
.atelier__media { display: grid; gap: 1.4rem; }
.atelier__media figure { margin: 0; }
.atelier__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.8) contrast(1.05);
}
.atelier__media figcaption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: rgba(243, 238, 218, 0.72);
  padding-top: 0.5rem;
}

/* ---------- zone ---------- */
.zone {
  background: var(--bg-2);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.zone__cols {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .zone__cols { grid-template-columns: 1fr 1fr; } }
.zone__col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-size: 0.86rem;
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.zone__callout {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  display: grid;
  gap: 1.4rem;
  align-items: center;
}
@media (min-width: 760px) {
  .zone__callout { grid-template-columns: 1fr auto; }
}
.zone__callout p { margin: 0; max-width: 62ch; color: rgba(239, 230, 208, 0.9); }
.zone__callout strong { color: #fff8e4; }
.zone__callout .btn--primary { background: var(--c); color: #fff6e8; }
.zone__callout .btn--primary:hover { background: var(--a); color: var(--ink); }

/* ---------- contact ---------- */
.contact {
  background: var(--bg);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.footer-cards {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .footer-cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--a);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.card--where { border-top-color: var(--b); }
.card--call  { border-top-color: var(--c); }
.card h3 {
  font-size: 1.18rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.hours { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.hours > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  font-size: 0.92rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--line);
}
.hours dt { color: var(--ink-soft); }
.hours dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
}
.card address { font-size: 0.98rem; line-height: 1.7; margin-bottom: 1rem; }
.card__note { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.card__big {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.card__big a { text-decoration: none; border-bottom: 3px solid var(--c); }
.card__big a:hover { color: var(--c); }
.card__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--a);
  padding-bottom: 2px;
}
.card__link:hover { color: var(--c); border-bottom-color: var(--c); }
.card__list { display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.card__list li { padding-left: 1.1rem; position: relative; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  background: var(--a);
  border-radius: 50%;
}

/* ---------- closing ---------- */
.closing {
  background: var(--c);
  color: #fff4e6;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.quote { margin: 0 auto; max-width: 46ch; text-align: center; }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.quote footer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 244, 230, 0.78);
}
.closing__cta {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}
.closing__cta .btn--primary { background: var(--ink); color: var(--bg); }
.closing__cta .btn--primary:hover { background: #fff4e6; color: var(--c); }
.closing__cta p {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 244, 230, 0.8);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(239, 230, 208, 0.72);
  padding: 2rem 0 2.4rem;
  font-size: 0.85rem;
}
.claim-banner-wrap { margin: 0 0 1rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: rgba(239, 230, 208, 0.08);
  border: 1px solid rgba(239, 230, 208, 0.22);
  border-radius: var(--radius);
  color: rgba(239, 230, 208, 0.82);
  text-decoration: none;
}
.claim-banner:hover { background: rgba(239, 230, 208, 0.16); color: #fff8e4; }
.muted { margin: 0; }
.attribution a { color: rgba(239, 230, 208, 0.6); text-decoration: none; border-bottom: 1px solid rgba(239, 230, 208, 0.3); }
.attribution a:hover { color: #fff8e4; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .topnav { display: none; }
}
@media (max-width: 520px) {
  .brand__text em { display: none; }
  .callbtn { padding: 0.5rem 0.75rem; font-size: 0.84rem; }
  .hero__facts { grid-template-columns: 1fr; gap: 0.8rem; }
  .item { grid-template-columns: 1fr; }
  .item__price { text-align: left; }
}

/* ---------- reduced motion ---------- */
@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;
  }
  .viz__bar { transform: scaleY(0.45); }
  .caret::after { opacity: 1; }
  .progress__fill { transform: scaleX(1); }
}
