/* ============================================================
   GARAGE BAYE DIOUF — R.A.S
   Palette : noir / rouge / bleu / jaune, une couleur par section
   ============================================================ */

:root {
  --bg-1: #0a0a0a;
  --bg-2: #e10600;
  --bg-3: #003c8a;
  --bg-4: #f4ff33;

  --ink-on-dark: #f5f3ee;
  --ink-on-red: #fff6f4;
  --ink-on-blue: #eef4ff;
  --ink-on-yellow: #0a0a0a;

  --line: rgba(255, 255, 255, 0.22);
  --line-dark: rgba(10, 10, 10, 0.22);

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

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* --- grain overlay --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem var(--pad);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: var(--bg-2);
  color: #fff;
  padding: 0.3rem 0.5rem;
  line-height: 1;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: rgba(245, 243, 238, 0.78);
  padding: 0.5rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav a:hover { color: #fff; border-bottom-color: var(--bg-4); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--bg-4);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease;
}

.call-btn:hover { transform: translateY(-2px); background: #fff; }

.call-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-2);
  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); }
}

/* ============================================================
   SECTIONS — une couleur par section
   ============================================================ */

.sec {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  position: relative;
}

.sec-dark   { background: var(--bg-1); color: var(--ink-on-dark); }
.sec-red    { background: var(--bg-2); color: var(--ink-on-red); }
.sec-blue   { background: var(--bg-3); color: var(--ink-on-blue); }
.sec-yellow { background: var(--bg-4); color: var(--ink-on-yellow); }

.sec-red, .sec-blue, .sec-yellow { --line: rgba(255,255,255,0.3); }
.sec-yellow { --line: rgba(10,10,10,0.28); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  opacity: 0.78;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  max-width: 18ch;
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

/* --- motion : fade + rise à l'entrée --- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

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

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3.5rem, 9vw, 7rem); }

.stack {
  font-size: clamp(2.4rem, 1rem + 8.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.stack span { display: block; }
.stack span:nth-child(2) { margin-left: 0.18em; color: var(--bg-4); }
.stack span:nth-child(3) { margin-left: -0.04em; }

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

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

.hero-figure {
  grid-column: 4 / 7;
  margin: 0;
  border: 1px solid var(--line);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 46ch;
  color: rgba(245, 243, 238, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid currentColor;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--bg-4);
  border-color: var(--bg-4);
  color: #0a0a0a;
}

.btn-primary:hover { background: #fff; border-color: #fff; }

.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.rating-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.8;
}

/* ============================================================
   BENTO — grille cassée
   ============================================================ */

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

.card {
  grid-column: span 2;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.card-wide { grid-column: span 4; }

.card:nth-child(2) { margin-top: clamp(0rem, 2vw, 2.5rem); }
.card:nth-child(4) { margin-top: clamp(0rem, 3vw, 3.5rem); }
.card:nth-child(6) { margin-top: clamp(0rem, 1.5vw, 1.5rem); }

.card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 246, 244, 0.9);
}

.card-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
  opacity: 0.72;
}

.cell-empty { grid-column: span 2; }

/* ============================================================
   BANDE DRAG
   ============================================================ */

.band-section { padding-bottom: clamp(3rem, 7vw, 5rem); }

.band-hint {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin: -1rem 0 2rem;
  opacity: 0.75;
}

.band {
  overflow: hidden;
  cursor: grab;
  padding-block: 0.5rem;
  border-block: 1px solid var(--line);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.band.is-dragging { cursor: grabbing; }

.band-track {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}

.band-item {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(230px, 34vw, 400px);
}

.band-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  pointer-events: none;
}

.band-item figcaption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  margin-top: 0.6rem;
  opacity: 0.82;
}

/* ============================================================
   AVIS
   ============================================================ */

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

.quote {
  grid-column: span 2;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.35);
}

.quote-big { grid-column: span 4; }

.quote:nth-child(3) { margin-top: clamp(0rem, 2.5vw, 2.5rem); }

.quote p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.5;
}

.quote-big p { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); line-height: 1.35; }

.quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

/* ============================================================
   HORAIRES
   ============================================================ */

.hours-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hours {
  grid-column: 1 / 4;
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.hours th { font-weight: 600; }

.hours td {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: right;
  color: rgba(245, 243, 238, 0.85);
}

.hours .closed th,
.hours .closed td { opacity: 0.5; }

.hours-note { grid-column: 4 / 7; }

.hours-note p {
  margin: 0 0 1rem;
  color: rgba(245, 243, 238, 0.85);
}

.hours-cta { margin-top: 1.5rem; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-block { grid-column: span 3; }
.contact-block-wide { grid-column: 2 / 7; }

.contact-block h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.contact-block address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-block p { margin: 0 0 1rem; color: rgba(255, 246, 244, 0.92); }

.wayfinding {
  font-size: 0.95rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.45);
}

.phone-big {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem !important;
}

.phone-big a { text-decoration: none; border-bottom: 3px solid currentColor; }
.phone-big a:hover { color: #0a0a0a; border-bottom-color: #0a0a0a; }

.contact-note { font-size: 0.95rem; }

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

.footer {
  background: var(--bg-1);
  color: var(--ink-on-dark);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.footer-grid p { margin: 0 0 0.35rem; font-size: 0.92rem; color: rgba(245,243,238,0.78); }

.footer-brand { font-weight: 800; font-size: 1.15rem; color: #fff !important; letter-spacing: -0.02em; }
.footer-sub { font-family: var(--font-mono); font-size: 0.76rem !important; opacity: 0.7; }

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.74rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.55) !important;
  margin-bottom: 0.6rem !important;
}

.footer-grid a { color: var(--bg-4); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

.claim-wrap { margin: 0 0 1.25rem; }

.claim-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: rgba(245, 243, 238, 0.8);
  text-decoration: none;
}

.claim-banner:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.muted { font-size: 0.78rem; color: rgba(245, 243, 238, 0.5); margin: 0; }
.muted a { color: inherit; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-copy, .hero-figure { grid-column: 1 / 7; }
  .hero-figure { order: -1; }
  .card, .card-wide { grid-column: span 3; }
  .card:nth-child(n) { margin-top: 0; }
  .cell-empty { display: none; }
  .quote, .quote-big { grid-column: span 3; }
  .quote:nth-child(n) { margin-top: 0; }
  .hours, .hours-note { grid-column: 1 / 7; }
  .contact-block, .contact-block-wide { grid-column: 1 / 7; }
}

@media (max-width: 640px) {
  .topbar { gap: 0.5rem; padding-block: 0.6rem; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 1rem; font-size: 0.85rem; }
  .nav a { padding-block: 0.6rem; }
  .brand-name { display: none; }
  .card, .card-wide, .quote, .quote-big { grid-column: 1 / 7; }
  .stack span:nth-child(2) { margin-left: 0.08em; }
  .band-item { width: 74vw; }
}

@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;
  }
}
