/* ============================================================
   Plomberie Edouard — Nice
   Composition: clashing warm neons on near-black, book-spread
   layout with a spine gutter, collage headlines, dictated quote.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #121012;
  --surface: #161316;
  --surface-2: #1d181c;
  --ink: #ffffff;
  --ink-soft: #c9c2c6;
  --ink-dim: #8b838a;
  --accent-a: #ff2f92;
  --accent-b: #ff8a00;
  --accent-c: #f4ff33;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --gutter: 4px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --radius: 2px;
  --tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><rect width='24' height='24' fill='none'/><circle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.055'/><path d='M12 0v24M0 12h24' stroke='%23ffffff' stroke-opacity='0.028' stroke-width='1'/></svg>");
}

:root[data-theme="light"] {
  --bg: #f6f2ee;
  --bg-2: #efe8e2;
  --surface: #ffffff;
  --surface-2: #fbf7f4;
  --ink: #14100f;
  --ink-soft: #4a4240;
  --ink-dim: #7a706c;
  --accent-a: #d4006e;
  --accent-b: #c25a00;
  --accent-c: #8a8f00;
  --line: rgba(20, 16, 15, 0.16);
  --line-strong: rgba(20, 16, 15, 0.34);
  --tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><rect width='24' height='24' fill='none'/><circle cx='2' cy='2' r='1' fill='%23000000' fill-opacity='0.075'/><path d='M12 0v24M0 12h24' stroke='%23000000' stroke-opacity='0.035' stroke-width='1'/></svg>");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--tile);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: inherit; }

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

.skip-none { display: none; }

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

::view-transition-old(root) {
  animation: 320ms cubic-bezier(0.4, 0, 0.2, 1) both slide-out;
}
::view-transition-new(root) {
  animation: 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both slide-in;
}
@keyframes slide-out {
  to { opacity: 0; transform: translateX(-3.5%) scale(0.985); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(3.5%) scale(0.985); }
}

/* ---------- shell ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #0a0a0a;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  border-radius: var(--radius);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.6rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.theme-toggle:hover { border-color: var(--accent-a); background: var(--surface-2); }
.theme-toggle svg { width: 19px; height: 19px; }
:root[data-theme="light"] .icon-moon { display: none; }
:root:not([data-theme="light"]) .icon-sun { display: none; }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background: var(--accent-a);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: var(--radius);
  letter-spacing: -0.01em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn-call:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ---------- book spread ---------- */
.spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.spread > .leaf {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.spread > .leaf:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .spread {
    grid-template-columns: 1fr var(--gutter) 1fr;
    max-width: var(--maxw);
    margin: 0 auto;
    border-inline: 1px solid var(--line);
  }
  .spread > .leaf {
    padding-inline: clamp(1.75rem, 3.5vw, 3.25rem);
    border-bottom: 0;
  }
  .spread > .leaf:nth-child(odd) {
    grid-column: 1;
    border-right: 0;
  }
  .spread > .leaf:nth-child(even) {
    grid-column: 3;
  }
  /* spine */
  .spread::before {
    content: "";
    grid-column: 2;
    grid-row: 1 / -1;
    background: linear-gradient(
      to right,
      transparent,
      var(--line-strong) 45%,
      var(--line-strong) 55%,
      transparent
    );
  }
  .spread > .leaf + .leaf { border-top: 1px solid var(--line); }
  .spread > .leaf:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* full-bleed leaf spanning both pages */
.leaf--full { grid-column: 1 / -1 !important; }

/* ---------- collage headline ---------- */
.collage {
  font-family: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
  text-transform: uppercase;
}
.collage span { display: inline-block; }
.collage .w1 { font-variation-settings: "wght" 200, "wdth" 75; }
.collage .w2 { font-variation-settings: "wght" 800, "wdth" 100; color: var(--accent-a); }
.collage .w3 { font-variation-settings: "wght" 400, "wdth" 112; font-style: italic; }
.collage .w4 { font-variation-settings: "wght" 700, "wdth" 88; color: var(--accent-b); }
.collage .w5 { font-variation-settings: "wght" 300, "wdth" 125; }

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-c);
  margin: 0 0 0.9rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.9rem;
  font-variation-settings: "wght" 700, "wdth" 92;
}

h3 {
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  font-variation-settings: "wght" 650, "wdth" 96;
}

p { margin: 0 0 1rem; color: var(--ink-soft); }
p.lead { font-size: 1.1rem; color: var(--ink); }

/* ---------- dictated quote ---------- */
.dictated {
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "wght" 400, "wdth" 96;
  margin: 0;
  min-height: 3.4em;
}
.dictated .dw {
  display: inline-block;
  opacity: 0;
  animation: dictate 1ms linear forwards;
}
.dictated .dw.hi { color: var(--accent-a); font-variation-settings: "wght" 800, "wdth" 100; }
.dictated .dw.hi2 { color: var(--accent-b); font-variation-settings: "wght" 800, "wdth" 100; }
@keyframes dictate {
  to { opacity: 1; }
}
.dictated .caret {
  display: inline-block;
  width: 0.09em;
  height: 1em;
  background: var(--accent-c);
  vertical-align: -0.12em;
  margin-left: 0.06em;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero-media {
  margin: 1.6rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.88), transparent);
}

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.6rem 0 0;
}
.fact {
  background: var(--bg);
  padding: 1rem 1.05rem;
}
.fact dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-bottom: 0.3rem;
}
.fact dd {
  margin: 0;
  font-size: 1.02rem;
  font-variation-settings: "wght" 700, "wdth" 94;
  letter-spacing: -0.02em;
}
.fact dd a { text-decoration: none; border-bottom: 2px solid var(--accent-a); }
.fact dd a:hover { color: var(--accent-a); }

/* ---------- services ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 1.15rem 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  transition: background 180ms ease;
}
.service:hover { background: var(--surface-2); }
.service-num {
  font-size: 0.72rem;
  font-variation-settings: "wght" 800, "wdth" 100;
  color: var(--accent-b);
  letter-spacing: 0.06em;
  padding-top: 0.28rem;
}
.service p { margin: 0; font-size: 0.94rem; }

/* ---------- cards / grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body { padding: 1rem 1.05rem 1.15rem; }
.card-body p { margin: 0; font-size: 0.92rem; }

/* ---------- hours ---------- */
.hours {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.hours .day { color: var(--ink-soft); }
.hours .time { font-variation-settings: "wght" 650, "wdth" 96; letter-spacing: -0.01em; }
.hours li.is-today .day,
.hours li.is-today .time { color: var(--accent-c); }
.hours li.is-closed .time { color: var(--ink-dim); font-variation-settings: "wght" 400; }

/* ---------- zones ---------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}
.zones li {
  font-size: 0.82rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- reviews ---------- */
.rating-block {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
}
.rating-num {
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  line-height: 1;
  font-variation-settings: "wght" 800, "wdth" 88;
  letter-spacing: -0.05em;
  color: var(--accent-c);
}
.rating-meta { font-size: 0.86rem; color: var(--ink-dim); }

.quote {
  border-left: 3px solid var(--accent-a);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 0 0 1.2rem;
}
.quote p { color: var(--ink); margin: 0 0 0.4rem; font-size: 0.98rem; }
.quote cite { font-size: 0.8rem; color: var(--ink-dim); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  color: #0a0a0a;
  padding: clamp(2rem, 5vw, 3.2rem) var(--pad);
  text-align: center;
}
.cta-band h2 { color: #0a0a0a; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(10, 10, 10, 0.78); max-width: 46ch; margin: 0 auto 1.4rem; }
.btn-big {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.9rem 1.7rem;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease;
}
.btn-big:hover { transform: translateY(-2px); background: #1d181c; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) var(--pad) 2rem;
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem;
}
.footer-inner h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-dim); font-variation-settings: "wght" 600; }
.footer-inner p, .footer-inner li { font-size: 0.9rem; color: var(--ink-soft); }
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--accent-a); }

.footer-base {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
}
.claim-banner:hover { color: var(--ink); border-color: var(--line-strong); }

.attribution { margin: 0; font-size: 0.8rem; }
.attribution a { color: var(--ink-dim); text-decoration: none; }
.attribution a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* ---------- reduced motion ---------- */
@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;
  }
  .dictated .dw { opacity: 1 !important; }
  .dictated .caret { display: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 620px) {
  .header-inner { padding-block: 0.55rem; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding-inline: 0.55rem; }
  .brand-sub { display: none; }
  .collage { font-size: clamp(2.2rem, 13vw, 3.4rem); }
}
