/* ============================================================
   Les plombiers parisiens — faded 70s print palette
   ============================================================ */

:root {
  --bg: #efe6d0;
  --bg-2: #e6dabf;
  --paper: #f6efdd;
  --ink: #3a2f1a;
  --ink-soft: #6b5c3c;
  --a: #a67c00;   /* mustard */
  --b: #6b7a3a;   /* avocado */
  --c: #c04e1a;   /* burnt sienna */
  --line: rgba(58, 47, 26, 0.22);
  --line-soft: rgba(58, 47, 26, 0.12);
  --shadow: 0 1px 0 rgba(58, 47, 26, 0.08), 0 12px 30px -18px rgba(58, 47, 26, 0.45);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --spine-w: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a14;
    --bg-2: #232019;
    --paper: #262218;
    --ink: #ece2c8;
    --ink-soft: #b3a684;
    --a: #d9a72e;
    --b: #9aab5c;
    --c: #e2703c;
    --line: rgba(236, 226, 200, 0.24);
    --line-soft: rgba(236, 226, 200, 0.12);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -20px rgba(0, 0, 0, 0.8);
  }
}

html[data-theme="light"] {
  --bg: #efe6d0; --bg-2: #e6dabf; --paper: #f6efdd;
  --ink: #3a2f1a; --ink-soft: #6b5c3c;
  --a: #a67c00; --b: #6b7a3a; --c: #c04e1a;
  --line: rgba(58, 47, 26, 0.22); --line-soft: rgba(58, 47, 26, 0.12);
  --shadow: 0 1px 0 rgba(58, 47, 26, 0.08), 0 12px 30px -18px rgba(58, 47, 26, 0.45);
}

html[data-theme="dark"] {
  --bg: #1c1a14; --bg-2: #232019; --paper: #262218;
  --ink: #ece2c8; --ink-soft: #b3a684;
  --a: #d9a72e; --b: #9aab5c; --c: #e2703c;
  --line: rgba(236, 226, 200, 0.24); --line-soft: rgba(236, 226, 200, 0.12);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -20px rgba(0, 0, 0, 0.8);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.125rem);
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--c); text-underline-offset: 3px; }
a:hover { color: var(--a); }

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

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  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)' opacity='0.32'/></svg>");
}
@media (prefers-color-scheme: dark) {
  .grain { mix-blend-mode: screen; opacity: 0.28; }
}
html[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.28; }
html[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: 0.5; }

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 70;
  background: var(--line-soft);
}
.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--a), var(--c) 55%, var(--b));
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem var(--pad) 0.7rem calc(var(--pad) + 0.25rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  flex: none;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topnav { display: flex; gap: 1.4rem; }
.topnav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.6rem 0;
}
.topnav a:hover { color: var(--c); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--c);
  color: #fff8ea;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 3px;
  white-space: nowrap;
}
.call-btn:hover { background: var(--a); color: #241c08; }
.call-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #fff8ea;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--c); color: var(--c); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---------- vertical spine H1 ---------- */
.spine {
  position: fixed;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
  white-space: nowrap;
}
.spine span {
  display: block;
  padding: 1.1rem 0.35rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- layout shell ---------- */
main {
  padding-left: calc(var(--spine-w) + var(--pad));
  padding-right: var(--pad);
  max-width: 1180px;
  margin-inline: auto;
}

section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.6rem; }
h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.15rem; }

.lede { max-width: 62ch; color: var(--ink-soft); margin: 0; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-name {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-vibe {
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.4rem;
}

/* audio-visualizer bars */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin: 0 0 1.6rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-soft);
}
.viz span {
  flex: 1 1 auto;
  min-width: 2px;
  height: 100%;
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--a), var(--c));
  border-radius: 1px;
  animation: eq 1.9s ease-in-out infinite alternate;
}
.viz span:nth-child(3n) { background: linear-gradient(180deg, var(--b), var(--a)); }
.viz span:nth-child(4n) { animation-duration: 2.6s; }
.viz span:nth-child(5n) { animation-duration: 1.35s; }
.viz span:nth-child(7n) { animation-duration: 3.1s; }
@keyframes eq {
  0%   { transform: scaleY(0.14); }
  35%  { transform: scaleY(0.72); }
  70%  { transform: scaleY(0.34); }
  100% { transform: scaleY(0.95); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--c); color: #fff8ea; }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--c); color: var(--c); }
.btn-small { min-height: 44px; padding: 0.6rem 1rem; font-size: 0.72rem; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.25rem; font-weight: 600; }
.hero-facts span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.82) contrast(1.03);
  box-shadow: var(--shadow);
}
.hero-photo figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  line-height: 1.5;
}

/* ---------- emergency band ---------- */
.band {
  padding-block: 0;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
}
.band p {
  margin: 0;
  padding: 1rem clamp(1rem, 3vw, 1.75rem);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.band a { color: var(--bg); font-weight: 600; text-decoration-thickness: 2px; }
.band a:hover { color: var(--a); }
.pulse {
  width: 0.6rem; height: 0.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 0 rgba(192, 78, 26, 0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 78, 26, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(192, 78, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 78, 26, 0); }
}

/* ---------- menu (services) ---------- */
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.menu-block h3 {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
}
.item:last-child { border-bottom: 0; }
.item p {
  grid-column: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.item h4 { grid-column: 1; }
.price {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c);
}

.menu-note {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 78ch;
}

/* ---------- steps ---------- */
.tarifs { border-top: 1px solid var(--line); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
.steps li {
  padding-top: 1rem;
  border-top: 2px solid var(--a);
}
.steps li:nth-child(2) { border-top-color: var(--c); }
.steps li:nth-child(3) { border-top-color: var(--b); }
.steps li:nth-child(4) { border-top-color: var(--ink); }
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.steps p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.galerie figure { margin: 0; }
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.8) contrast(1.04);
  box-shadow: var(--shadow);
}
.galerie figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ---------- footer cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 0.9rem;
}
.card-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.card address { font-style: normal; font-size: 1.05rem; line-height: 1.5; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td { padding: 0.4rem 0; border-bottom: 1px dotted var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--b);
}
html[data-theme="dark"] .hours td { color: var(--b); }
@media (prefers-color-scheme: dark) { .hours td { color: var(--b); } }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.big-phone { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.big-phone a { text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.card-call .btn { margin-top: 1.1rem; width: 100%; }

/* ---------- histoire ---------- */
.histoire {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--line);
}
.histoire-text p { color: var(--ink-soft); max-width: 62ch; }
.histoire-text p:first-of-type { color: var(--ink); }

.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-2);
  border-left: 3px solid var(--c);
  border-radius: 0 3px 3px 0;
}
.quote p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 0.9rem;
}
.quote cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1180px;
  margin-inline: auto;
}
.footer-cards h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.footer-cards p { margin: 0; font-size: 0.92rem; }
.footer-cards a { font-weight: 600; text-decoration: none; }

.footer-line {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.claim-wrap { max-width: 1180px; margin: 1.5rem auto 0; }
.claim-banner {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
}
.claim-banner:hover { color: var(--c); border-color: var(--c); }

.muted { max-width: 1180px; margin: 1rem auto 0; font-size: 0.78rem; }
.muted a { color: var(--ink-soft); text-decoration: none; }
.muted a:hover { color: var(--c); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .histoire { grid-template-columns: 1fr; }
  .footer-cards { grid-template-columns: 1fr; }
  .topnav { display: none; }
}

@media (max-width: 640px) {
  :root { --spine-w: 2.25rem; }
  .spine { font-size: 0.62rem; letter-spacing: 0.3em; left: 0.3rem; }
  .spine span { padding: 0.75rem 0.25rem; }
  .brand-text em { display: none; }
  .call-btn { padding: 0.6rem 0.75rem; font-size: 0.72rem; }
  .viz { height: 34px; }
  .item { grid-template-columns: 1fr; }
  .price { grid-column: 1; grid-row: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz span { animation: none; transform: scaleY(0.5); }
  .viz span:nth-child(2n) { transform: scaleY(0.28); }
  .viz span:nth-child(3n) { transform: scaleY(0.78); }
  .call-dot, .pulse { animation: none; }
  .btn { transition: none; }
}
