/* ============================================================
   FILIP Plombier Paris 17
   Composition: receipt / listing · rotating section colours ·
   stacked headline · grain overlay · drag band
   ============================================================ */

:root {
  --ink:        #0a0a0a;
  --red:        #e10600;
  --blue:       #003c8a;
  --acid:       #f4ff33;

  --paper:      #f2f0eb;
  --paper-dim:  #d8d4cb;

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

  --col: 40ch;
  --col-wide: 78ch;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --gap: clamp(2.5rem, 7vw, 5rem);

  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 0.55vw + 0.78rem, 1rem);
  line-height: 1.65;
  font-variation-settings: "wght" 400;
  overflow-x: hidden;
}

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

/* ---- grain overlay ---- */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  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='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--acid); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 10000;
  font-size: 0.8rem; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  border-bottom: 1px solid rgba(242, 240, 235, 0.22);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  max-width: 1200px;
  margin: 0 auto;
}
.topbar__mark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.topbar__mark .dot { color: var(--red); }
.topbar__meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.6);
}
.topbar__tel {
  margin-left: auto;
  color: var(--acid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}
.topbar__tel:hover { border-bottom-color: var(--acid); }

/* ============================================================
   SECTION SHELL — colours rotate, text inverts
   ============================================================ */
.sec {
  padding: var(--gap) 0;
  position: relative;
  isolation: isolate;
}
.sec--ink  { background: var(--ink);  color: var(--paper); }
.sec--red  { background: var(--red);  color: #fff8f7; }
.sec--blue { background: var(--blue); color: #eef3ff; }
.sec--acid { background: var(--acid); color: var(--ink); }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap--wide { max-width: var(--col-wide); }

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  opacity: 0.72;
}

h1.stack {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
h1.stack span { display: block; }
h1.stack span:nth-child(2) { margin-left: 1.6em; }
h1.stack span:nth-child(3) { margin-left: -0.35em; color: var(--red); }
h1.stack sup { font-size: 0.42em; vertical-align: super; letter-spacing: 0; }

h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h3.sub {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.8rem;
}

.lede {
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.6rem;
  max-width: 46ch;
  opacity: 0.94;
}

.note {
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 1.2rem 0 0;
  opacity: 0.8;
  max-width: 46ch;
}

.rule {
  border: 0;
  border-top: 1px dotted currentColor;
  opacity: 0.45;
  margin: 1.8rem 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), translate 180ms var(--ease);
}
.btn--call {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--call:hover { background: #b80500; border-color: #b80500; translate: 0 -2px; }
.btn--ghost { background: transparent; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); translate: 0 -2px; }

/* ============================================================
   RECEIPT LISTS
   ============================================================ */
.receipt {
  margin: 0;
  font-size: 0.85rem;
}
.receipt > div {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dotted currentColor;
}
.receipt > div:last-child { border-bottom: 0; }
.receipt dt {
  flex: 0 0 auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  opacity: 0.7;
}
.receipt dd {
  margin: 0 0 0 auto;
  text-align: right;
  font-weight: 500;
}
.receipt--wide dd { max-width: 26ch; }

/* ---- service list ---- */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dotted currentColor;
}
.list li:last-child { border-bottom: 0; }
.list__name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.list__desc {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  line-height: 1.65;
  opacity: 0.85;
  max-width: 48ch;
}
.list__meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: right;
  align-self: start;
  padding-top: 0.25rem;
}

/* ---- steps ---- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.15rem 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px dotted currentColor;
}
.steps li:last-child { border-bottom: 0; }
.steps__n {
  grid-row: 1 / 3;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.55;
}
.steps__t {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.02rem;
}
.steps__d {
  font-size: 0.82rem;
  line-height: 1.65;
  opacity: 0.86;
  max-width: 48ch;
}

/* ---- quotes ---- */
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li {
  padding: 1.2rem 0;
  border-bottom: 1px dotted currentColor;
}
.quotes li:last-child { border-bottom: 0; }
.quotes blockquote {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 50ch;
}
.quotes blockquote::before { content: "« "; opacity: 0.6; }
.quotes blockquote::after  { content: " »"; opacity: 0.6; }
.quotes__by {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: right;
}

/* ---- hours table ---- */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px dotted currentColor;
  font-weight: 400;
}
.hours th {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  opacity: 0.75;
  width: 40%;
}
.hours td { text-align: right; font-weight: 600; }

/* ---- big phone ---- */
.bigcall { margin: 1.6rem 0 0; }
.bigcall a {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid currentColor;
  display: inline-block;
  line-height: 1.1;
  padding-bottom: 0.1em;
}
.bigcall a:hover { opacity: 0.8; }

/* ============================================================
   DRAG BAND
   ============================================================ */
.band {
  overflow: hidden;
  cursor: grab;
  margin: 2rem 0 0;
  padding: 0 var(--pad);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }
.band__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}
.card {
  margin: 0;
  flex: 0 0 auto;
  width: min(74vw, 300px);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(238, 243, 255, 0.32);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  pointer-events: none;
}
.card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 0.75rem;
}
.card__t { font-family: var(--disp); font-weight: 700; font-size: 0.9rem; }
.card__m { opacity: 0.72; letter-spacing: 0.05em; }

.band__hint {
  margin: 1rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: var(--gap) 0 4.5rem;
  border-top: 1px solid rgba(242, 240, 235, 0.2);
}
.foot__line {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
}
.foot__line a { color: var(--acid); text-decoration: none; }
.foot__line a:hover { text-decoration: underline; }
.foot__line--dim { opacity: 0.6; }

.claim-wrap { margin: 1.6rem 0 0; }
.claim-banner {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0.5rem 0.8rem;
  background: rgba(242, 240, 235, 0.08);
  border: 1px solid rgba(242, 240, 235, 0.22);
  color: rgba(242, 240, 235, 0.82);
  text-decoration: none;
  border-radius: 2px;
}
.claim-banner:hover {
  background: rgba(242, 240, 235, 0.16);
  color: var(--paper);
}

.attribution {
  position: static;
  margin: 1.1rem 0 0;
  font-size: 0.68rem;
  opacity: 0.45;
  font-family: var(--mono);
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ============================================================
   MOTION — gentle fade + rise on scroll 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,
    .band {
      animation: fadeRise 420ms var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }
}

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

/* ============================================================
   WIDE
   ============================================================ */
@media (min-width: 720px) {
  .card { width: 320px; }
  .list li { grid-template-columns: 1fr auto; }
}

@media (min-width: 1000px) {
  .wrap { padding: 0 2rem; }
  .band { padding: 0 max(2rem, calc((100vw - 1100px) / 2)); }
}
