/* ============================================================
   VES PLOMBERIE — Lyon 6e
   Composition: clashing warm neons on near-black, collage headline,
   book-spread layout with turn-page mechanic, dictated quote,
   view-transition navigation, single accent-block reveal.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #121012;
  --surface: #161316;
  --line: #2a2429;
  --ink: #ffffff;
  --ink-2: #c9c2c8;
  --ink-3: #8d868c;
  --accent-a: #ff2f92;
  --accent-b: #ff8a00;
  --accent-c: #f4ff33;
  --signal: #ffffff;

  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1440px;
  --radius: 2px;

  --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);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  line-height: 1.62;
  font-variation-settings: "wdth" 100, "wght" 380;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-c);
  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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-c); color: #0a0a0a; padding: .7rem 1rem;
  font-family: var(--font-mono); font-size: .8rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- view transitions (cross-page + section nav) ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: slideOut 320ms cubic-bezier(.2,.7,.1,1) both;
}
::view-transition-new(root) {
  animation: slideIn 380ms cubic-bezier(.2,.7,.1,1) both;
}
@keyframes slideOut { to { opacity: 0; transform: translateX(-2.5%) scale(.99); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(2.5%) scale(.99); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  background: var(--accent-a); color: #0a0a0a; padding: .3rem .45rem; font-weight: 600;
}
.brand__name {
  font-variation-settings: "wdth" 88, "wght" 700;
  letter-spacing: .02em; font-size: .95rem;
}
.nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: .86rem; color: var(--ink-2);
  padding: .5rem .1rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent-b); }

.callbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem .95rem;
  background: var(--accent-b); color: #0a0a0a;
  text-decoration: none; font-weight: 700; font-size: .9rem;
  font-variation-settings: "wdth" 92, "wght" 700;
  border-radius: var(--radius);
  transition: background 180ms ease, color 180ms ease;
}
.callbtn:hover { background: var(--signal); }
.callbtn__dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: #0a0a0a;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- book spread ---------- */
.spread {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 5.5rem) var(--pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  view-transition-name: none;
}
.page { min-width: 0; }

.gutter { display: none; }

@media (min-width: 900px) {
  .spread {
    grid-template-columns: 1fr 4px 1fr;
    gap: clamp(1.6rem, 3vw, 3.2rem);
    align-items: start;
  }
  .gutter {
    display: block; align-self: stretch; position: relative;
    background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  }
  .gutter__line {
    position: absolute; inset: 0 auto 0 50%; width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-a) 30%, var(--accent-b) 70%, transparent);
    opacity: .55;
  }
}

/* turn-page mechanic: pages slide in from the spine */
@media (min-width: 900px) {
  .page--left  { animation: turnLeft  700ms cubic-bezier(.2,.7,.1,1) both; }
  .page--right { animation: turnRight 700ms cubic-bezier(.2,.7,.1,1) both; }
}
@keyframes turnLeft  { from { opacity: 0; transform: translateX(-18px) rotateY(4deg); } }
@keyframes turnRight { from { opacity: 0; transform: translateX(18px)  rotateY(-4deg); } }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-b); margin: 0 0 1.2rem;
}

.collage {
  margin: 0 0 1.4rem;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; gap: .1em .28em;
}
.collage .w { display: inline-block; }
.collage .w1 { font-variation-settings: "wdth" 78,  "wght" 800; }
.collage .w2 { font-variation-settings: "wdth" 100, "wght" 200; font-style: italic; }
.collage .w3 { font-variation-settings: "wdth" 92,  "wght" 700; color: var(--accent-a); }
.collage .w4 { font-variation-settings: "wdth" 75,  "wght" 300; }
.collage .w5 { font-variation-settings: "wdth" 100, "wght" 800; color: var(--accent-b); }

.h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.04; letter-spacing: -.015em;
  font-variation-settings: "wdth" 82, "wght" 700;
  margin: 0 0 1.1rem;
}
.h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-variation-settings: "wdth" 88, "wght" 650;
  margin: 0 0 .8rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2); max-width: 46ch; margin: 0 0 1.6rem;
}
.body { color: var(--ink-2); max-width: 62ch; margin: 0 0 1rem; }
.muted { color: var(--ink-3); font-size: .9rem; }

.marker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.marker__num {
  color: #0a0a0a; background: var(--accent-c);
  padding: .12rem .38rem; font-weight: 600;
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.35rem;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  font-variation-settings: "wdth" 90, "wght" 700;
  border-radius: var(--radius);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--primary { background: var(--accent-a); color: #0a0a0a; }
.btn--primary:hover { background: var(--signal); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent-b); color: var(--accent-b); }

.trustline {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3);
}
.trustline li::before { content: "— "; color: var(--accent-b); }

/* ---------- photos ---------- */
.photo { margin: 0 0 1.5rem; }
.photo img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(1.05) contrast(1.03);
}
.photo figcaption {
  font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3);
  margin-top: .55rem; line-height: 1.5;
}

/* ---------- signature: dictated quote + accent reveal ---------- */
.accent-block {
  background: var(--accent-c);
  color: #0a0a0a;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  border-radius: var(--radius);
  animation: revealFromLeft 800ms cubic-bezier(.2,.7,.1,1) both;
}
@keyframes revealFromLeft {
  from { opacity: 0; transform: translateX(-26px); clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; transform: none;             clip-path: inset(0 0 0 0); }
}
@supports (animation-timeline: view()) {
  .accent-block {
    animation: revealFromLeft 800ms cubic-bezier(.2,.7,.1,1) both;
    animation-timeline: view();
    animation-range: entry 10% cover 32%;
  }
}

.quote {
  margin: 0 0 .7rem;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.28;
  font-variation-settings: "wdth" 84, "wght" 600;
  letter-spacing: -.01em;
}
.quote .qw {
  display: inline-block;
  opacity: 0;
  transform: translateY(.35em);
  animation: dictate 420ms cubic-bezier(.2,.7,.1,1) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes dictate { to { opacity: 1; transform: none; } }
.quote::after {
  content: "";
  display: inline-block; width: .5ch; height: 1em;
  background: #0a0a0a; vertical-align: -.12em; margin-left: .12em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.quote__by {
  margin: 0; font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; opacity: .72;
}

/* ---------- service list ---------- */
.servicelist { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.servicelist li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.servicelist li:last-child { border-bottom: 1px solid var(--line); }
.servicelist h3 {
  margin: 0 0 .35rem;
  font-size: 1.12rem;
  font-variation-settings: "wdth" 86, "wght" 700;
}
.servicelist h3::before {
  content: "▸ "; color: var(--accent-a);
}
.servicelist p { margin: 0 0 .4rem; color: var(--ink-2); font-size: .95rem; }
.servicelist .price {
  font-family: var(--font-mono); font-size: .78rem; color: var(--accent-b);
  letter-spacing: .02em;
}

/* ---------- notes / cases ---------- */
.note {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: var(--radius);
  margin-bottom: 1.3rem;
}
.note--accent { border-color: var(--accent-a); }
.note__title {
  margin: 0 0 .6rem; font-size: 1rem;
  font-variation-settings: "wdth" 88, "wght" 700;
  color: var(--accent-b);
}
.note p { margin: 0 0 .6rem; color: var(--ink-2); font-size: .95rem; }
.note p:last-child { margin-bottom: 0; }

.case {
  border-left: 3px solid var(--accent-a);
  padding: 0 0 0 1rem;
  margin: 0 0 1.4rem;
}
.case h3 {
  margin: 0 0 .35rem; font-size: 1.05rem;
  font-variation-settings: "wdth" 86, "wght" 700;
}
.case p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.steps { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .95rem; }
.steps li { margin-bottom: .5rem; }
.steps strong { color: var(--ink); }

.tips { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .95rem; }
.tips li { margin-bottom: .5rem; }

/* ---------- facts ---------- */
.facts {
  margin: 1.6rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.facts > div { background: var(--bg); padding: .9rem 1rem; }
.facts dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .25rem;
}
.facts dd { margin: 0; font-size: .95rem; font-variation-settings: "wdth" 88, "wght" 600; }

/* ---------- reviews ---------- */
.review {
  margin: 0 0 1.2rem; padding: 1rem 0 1rem 1.1rem;
  border-left: 3px solid var(--accent-b);
}
.review p {
  margin: 0 0 .4rem; font-size: 1.02rem; color: var(--ink);
  font-variation-settings: "wdth" 92, "wght" 400;
}
.review cite {
  font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3);
  font-style: normal; letter-spacing: .04em;
}

/* ---------- contact ---------- */
.bigphone {
  margin: 1.4rem 0;
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  line-height: 1;
  font-variation-settings: "wdth" 80, "wght" 800;
  letter-spacing: -.02em;
}
.bigphone a { text-decoration: none; color: var(--accent-b); }
.bigphone a:hover { color: var(--signal); }

.addr {
  font-style: normal; color: var(--ink-2); margin: 0 0 1.4rem; line-height: 1.7;
}
.addr strong { color: var(--ink); font-variation-settings: "wdth" 88, "wght" 700; }

.hours {
  width: 100%; border-collapse: collapse; margin: 0 0 1.2rem;
  font-size: .95rem;
}
.hours th, .hours td {
  text-align: left; padding: .62rem .2rem;
  border-bottom: 1px solid var(--line);
}
.hours th {
  font-variation-settings: "wdth" 88, "wght" 600; font-weight: 600;
}
.hours td { font-family: var(--font-mono); font-size: .84rem; color: var(--ink-2); }
.hours .closed td { color: var(--accent-a); }
.hours .closed th { color: var(--ink-3); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.6rem var(--pad) 2.2rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.claim-banner {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--ink-2); background: #1b171b;
  border: 1px solid var(--line);
  padding: .45rem .7rem; text-decoration: none; border-radius: var(--radius);
}
.claim-banner:hover { color: var(--ink); border-color: var(--accent-b); }
.foot__meta { margin: 0; font-size: .84rem; color: var(--ink-3); }
.foot__meta a { color: var(--ink-2); }
.attribution { margin: 0; font-size: .78rem; }
.attribution a { color: var(--ink-3); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .quote .qw { opacity: 1; transform: none; }
  .quote::after { display: none; }
  .accent-block { clip-path: none; opacity: 1; transform: none; }
  .page--left, .page--right { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
