/* ============================================================
   ORIENT AUT SERVICE — Rufisque
   Composition: receipt/listing · rotating section colours ·
   stacked headline · fade+rise on enter · drag band · grain
   ============================================================ */

:root {
  --noir: #0a0a0a;
  --rouge: #e10600;
  --bleu: #003c8a;
  --jaune: #f4ff33;

  --ink: #0a0a0a;
  --paper: #f7f5f0;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Bricolage Grotesque", "JetBrains Mono", system-ui, sans-serif;

  --gut: clamp(1.25rem, 5vw, 4rem);
  --col: 40ch;
}

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

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

body {
  margin: 0;
  background: var(--noir);
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  font-variant-ligatures: none;
  overflow-x: hidden;
}

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

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--jaune);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --- top bar ------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.7rem var(--gut);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px dotted rgba(247, 245, 240, 0.35);
}

.topbar__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  margin-inline-end: auto;
}
.topbar__nav a {
  text-decoration: none;
  opacity: 0.75;
  padding: 0.35rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.topbar__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.topbar__tel {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.topbar__tel:hover { background: var(--jaune); color: var(--ink); border-color: var(--jaune); }

/* --- section shell ------------------------------------------------ */
.sec {
  padding: clamp(3.5rem, 9vw, 7rem) var(--gut);
  position: relative;
  isolation: isolate;
}

.sec--noir  { background: var(--noir);  color: var(--paper); }
.sec--rouge { background: var(--rouge); color: #fff; }
.sec--bleu  { background: var(--bleu);  color: #fff; }
.sec--jaune { background: var(--jaune); color: var(--ink); }

.wrap { max-width: var(--col); margin-inline: auto; }
.wrap--wide { max-width: 62rem; }

.sec__num {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

.sec__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.sec__intro {
  margin: 0 0 2rem;
  max-width: 46ch;
  opacity: 0.92;
}

.sub {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.01em;
}

.fine {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.72;
  max-width: 52ch;
  border-top: 1px dotted currentColor;
  padding-top: 1rem;
}

/* --- hero --------------------------------------------------------- */
.stamp {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.stack {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1rem + 8.5vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.stack span { display: block; }
.stack span:nth-child(2) { margin-left: 0.9em; }
.stack span:nth-child(3) { margin-left: -0.35em; }

@media (min-width: 46rem) {
  .stack span:nth-child(2) { margin-left: 2em; }
  .stack span:nth-child(3) { margin-left: -1em; }
}

.lede {
  margin: 0 0 2.25rem;
  max-width: 48ch;
  font-size: 1.02rem;
  opacity: 0.9;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: 56px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-family: var(--mono);
  border: 2px solid currentColor;
  transition: background-color 180ms ease, color 180ms ease, translate 180ms ease;
}
.btn__k { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.btn__v { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }

.btn--call { background: var(--jaune); color: var(--ink); border-color: var(--jaune); }
.btn--call .btn__k { opacity: 0.65; }
.btn--call:hover { background: transparent; color: var(--jaune); }

.btn--ghost { background: transparent; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

.facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px dotted currentColor;
  font-size: 0.85rem;
}
.facts > div { display: flex; justify-content: space-between; gap: 1rem; }
.facts dt { opacity: 0.65; }
.facts dd { margin: 0; text-align: right; font-weight: 600; }

@media (min-width: 46rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div { flex-direction: column; gap: 0.2rem; }
  .facts dd { text-align: left; }
}

/* --- receipt list ------------------------------------------------ */
.receipt { list-style: none; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.9rem 0;
  border-top: 1px dotted currentColor;
}
.row:last-child { border-bottom: 1px dotted currentColor; }

.row__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.row__price {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row__note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  opacity: 0.82;
  max-width: 44ch;
}

/* --- drag band --------------------------------------------------- */
.band {
  margin-top: 2.5rem;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  padding-block: 0.5rem;
  border-top: 1px dotted rgba(255, 255, 255, 0.5);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}
.band.is-dragging { cursor: grabbing; }

.band__track {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0;
  display: flex;
  gap: 1.25rem;
  will-change: transform;
}
.band__track > li { flex: 0 0 auto; }

.card {
  width: min(78vw, 22rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.9rem;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}
.card__tag {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.card__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.88;
}

.band__hint {
  margin: 0;
  padding-bottom: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  text-align: center;
}

/* --- zones ------------------------------------------------------- */
.zones { list-style: none; margin: 0; padding: 0; }
.zones li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px dotted currentColor;
  font-size: 0.9rem;
}
.zones li:last-child { border-bottom: 1px dotted currentColor; }
.zones__meta { opacity: 0.7; white-space: nowrap; }

/* --- steps ------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  border-top: 1px dotted currentColor;
}
.steps li:last-child { border-bottom: 1px dotted currentColor; }
.steps__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.55;
}
.steps__t {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
}
.steps__d { margin: 0; font-size: 0.85rem; opacity: 0.88; max-width: 46ch; }

/* --- hours ------------------------------------------------------- */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px dotted currentColor;
  font-size: 0.95rem;
}
.hours li:last-child { border-bottom: 1px dotted currentColor; }
.hours__h { font-variant-numeric: tabular-nums; font-weight: 600; }
.hours__closed { opacity: 0.55; }
.hours__closed .hours__h { text-decoration: line-through; }

/* --- contact ----------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.12);
}
.contact-card__k {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}
.contact-card__tel {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 3px solid currentColor;
  padding-bottom: 0.15rem;
}
.contact-card__tel:hover { background: var(--jaune); color: var(--ink); border-color: var(--jaune); }
.contact-card__addr { font-style: normal; font-size: 0.95rem; line-height: 1.6; }
.contact-card__link {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-card__link:hover { background: var(--jaune); color: var(--ink); }
.contact-card__d {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* --- footer ------------------------------------------------------ */
.foot {
  background: var(--noir);
  color: var(--paper);
  padding: 3rem var(--gut) 4.5rem;
  border-top: 1px dotted rgba(247, 245, 240, 0.3);
}
.foot__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}
.foot__meta {
  margin: 0 0 1.75rem;
  font-size: 0.82rem;
  opacity: 0.7;
}
.foot__meta a { text-decoration: underline; text-underline-offset: 3px; }

.claim-banner {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.5rem 0.8rem;
  background: rgba(247, 245, 240, 0.07);
  border: 1px dotted rgba(247, 245, 240, 0.35);
  color: rgba(247, 245, 240, 0.72);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.claim-banner:hover { color: var(--paper); border-color: var(--paper); }

.attribution {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.45;
}
.attribution a { color: inherit; }

/* --- motion: fade + rise on enter -------------------------------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
