/* ============================================================
   Garage Poid Lourd Dépannage — Thiès
   Palette : café chaud (latte crémeux, encre café, bordeaux, olive)
   ============================================================ */

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

:root {
  --bg:        #f4ead8;
  --bg-deep:   #3a2415;
  --ink:       #3a2415;
  --ink-soft:  #6b5540;
  --accent:    #6b1f1a;
  --secondary: #5a5e3a;
  --paper:     #fbf5e9;
  --rule:      rgba(58, 36, 21, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Bricolage Grotesque", system-ui, -apple-system, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1400px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-weight: 350;
  overflow-x: hidden;
  transition: background-color 420ms ease;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 380ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes vt-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-2.5rem) scale(0.99); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(2.5rem) scale(1.01); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  padding: 0.75rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.brand__name {
  font-size: 0.78rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.brand__name em { font-style: normal; color: var(--accent); }

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
.nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.callbtn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 200ms ease, background-color 200ms ease;
}
.callbtn:hover { transform: translateY(-2px); background: #521612; }
.callbtn__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #e8c9a0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .callbtn { margin-left: 0; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.eyebrow--light { color: #d9c9a8; }

.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.75rem;
}
.label__no { display: block; color: var(--accent); font-weight: 700; }
.label__title { display: block; font-weight: 600; }
.label__meta { display: block; color: var(--ink-soft); }

/* ---------- Ouverture ---------- */
.opening {
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad) clamp(3rem, 8vw, 6rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.opening h1 {
  font-size: clamp(4rem, 18vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  margin-bottom: -0.32em;
  position: relative;
  z-index: 2;
  color: var(--ink);
}

.opening__lede {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-left: auto;
  padding-top: 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}
.lede--small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.lede a { color: var(--accent); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--secondary);
  color: var(--bg);
  padding: 0.7rem 0;
}
.ticker__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  animation: slide 42s linear infinite;
}
.ticker__track span { white-space: nowrap; }
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section shell ---------- */
section { padding: clamp(3.5rem, 9vw, 8rem) var(--pad); }

.wall, .atelier, .hours { color: var(--bg); }
.wall { background: var(--bg-deep); }
.atelier { background: var(--secondary); }
.hours { background: var(--accent); }

.wall__head, .atelier__head, .hours__head,
.services__head, .fleet__inner, .contact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
}

.wall h2, .atelier h2, .hours h2,
.services h2, .fleet h2, .contact h2 {
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 100;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ---------- Plates (museum wall labels) ---------- */
.plate { margin: 0; }
.plate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.plate--tall img { aspect-ratio: 3 / 4; }
.plate--wide img { aspect-ratio: 16 / 9; }

/* ---------- Diagonal split with opposing scroll ---------- */
.split {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.split__panel { display: grid; gap: 1.5rem; }

.split__copy {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #e6d9c2;
  margin: 0;
  max-width: 34rem;
  text-wrap: pretty;
}
.split__copy--first { padding-top: clamp(0rem, 4vw, 3rem); }

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
    /* the diagonal: each panel is clipped along a shared slant */
    clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
    padding: clamp(2rem, 5vw, 4rem) 0;
  }
  .split__panel--a { padding-top: 0; }
  .split__panel--b { padding-top: clamp(3rem, 9vw, 8rem); }

  /* opposing scroll — driven by --shift set in site.js */
  .split__panel--a { transform: translate3d(0, calc(var(--shift, 0px) * -1), 0); }
  .split__panel--b { transform: translate3d(0, var(--shift, 0px), 0); }
}

/* ---------- Services / menu ---------- */
.services__note {
  max-width: 32rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: -1.5rem 0 0;
}

.menu {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0;
  max-width: var(--maxw);
  border-top: 1px solid var(--rule);
}

.menu__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color 220ms ease, padding-left 220ms ease;
}
.menu__item:hover { background: rgba(107, 31, 26, 0.05); padding-left: 0.75rem; }

.menu__no {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--secondary);
  padding-top: 0.35rem;
}
.menu__body h3 {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.menu__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44rem;
  text-wrap: pretty;
}
.menu__price {
  grid-column: 2;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  font-variation-settings: "opsz" 30;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .menu__item {
    grid-template-columns: 3rem 1fr auto;
    gap: 2rem;
  }
  .menu__price { grid-column: 3; }
}

/* ---------- Atelier ---------- */
.atelier__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.atelier__text p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #eef0e2;
  max-width: 40rem;
  text-wrap: pretty;
}
.atelier__plates {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.atelier__plates .plate:nth-child(2) { margin-left: clamp(0rem, 6vw, 4rem); }
.atelier__plates .plate:nth-child(3) { margin-right: clamp(0rem, 6vw, 4rem); }

@media (min-width: 900px) {
  .atelier__grid { grid-template-columns: 1fr 1fr; }
}

.quote {
  max-width: 52rem;
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 3px solid var(--bg);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem);
  line-height: 1.25;
  font-style: italic;
  margin: 0 0 1rem;
  text-wrap: pretty;
}
.quote cite {
  font-style: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

/* ---------- Fleet ---------- */
.fleet__copy {
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  text-wrap: pretty;
}
.fleet__list {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  max-width: 44rem;
}
.fleet__list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.fleet__list strong { color: var(--ink); font-weight: 600; }

/* ---------- Hours ---------- */
.hours__note {
  max-width: 34rem;
  font-size: 0.95rem;
  margin: -1.5rem 0 0;
  color: #f0d9cf;
}
.hours__list {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  border-top: 1px solid rgba(244, 234, 216, 0.3);
}
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(244, 234, 216, 0.3);
}
.hours__row dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.hours__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  text-align: right;
}
.hours__row--accent dd { color: #f3c9a8; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__copy {
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  text-wrap: pretty;
}
.contact__phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 4px solid var(--accent);
  padding-bottom: 0.1em;
  transition: color 200ms ease, border-color 200ms ease;
}
.contact__phone:hover { color: var(--secondary); border-color: var(--secondary); }
.contact__sub {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
}

.contact__col--info { display: grid; gap: 2rem; }
.info h3 {
  font-size: 0.75rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.info p { margin: 0 0 0.5rem; font-size: 0.98rem; line-height: 1.55; }
.info__hint { font-size: 0.85rem !important; color: var(--ink-soft); }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Footer ---------- */
.foot {
  background: var(--bg-deep);
  color: var(--bg);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 5rem;
}
.foot__inner { max-width: var(--maxw); margin: 0 auto; }
.foot__name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  margin: 0 0 0.4rem;
}
.foot__meta { margin: 0 0 1.5rem; font-size: 0.88rem; opacity: 0.75; }
.foot__meta a { color: inherit; }

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  background: rgba(244, 234, 216, 0.1);
  border: 1px solid rgba(244, 234, 216, 0.25);
  color: var(--bg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 200ms ease, background-color 200ms ease;
}
.claim-banner:hover { opacity: 1; background: rgba(244, 234, 216, 0.18); }

.attribution {
  position: static;
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: var(--sans);
}
.attribution a { color: inherit; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .callbtn__dot { animation: none; }
  .split__panel--a, .split__panel--b { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
