/* ============================================================
   Plomberie Avetisyan Grigor — Marseille 13009
   Palette : photo 70s désaturée (moutarde, avocat, ocre, terre cuite)
   ============================================================ */

:root {
  --bg: #efe6d0;
  --bg-2: #e6d9bd;
  --surface: #f7f0de;
  --ink: #3a2f1a;
  --ink-soft: #6a5c3c;
  --a: #a67c00;
  --b: #6b7a3a;
  --c: #c04e1a;
  --line: rgba(58, 47, 26, 0.22);
  --line-strong: rgba(58, 47, 26, 0.45);
  --shadow: 0 1px 0 rgba(58, 47, 26, 0.08), 0 12px 28px -18px rgba(58, 47, 26, 0.5);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --spine-w: 3.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221c12;
    --bg-2: #2b2417;
    --surface: #2e2718;
    --ink: #f0e6cf;
    --ink-soft: #c3b48f;
    --a: #d9a72c;
    --b: #9aab5c;
    --c: #e2703a;
    --line: rgba(240, 230, 207, 0.2);
    --line-strong: rgba(240, 230, 207, 0.42);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 30px -18px 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.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  text-wrap: pretty;
  padding-left: var(--spine-w);
  overflow-x: hidden;
}

/* Grain filmique sur toute la page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  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='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c); text-underline-offset: 0.18em; }
a:hover { color: var(--a); }

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

/* ---------- Barre de progression (élément de design) ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--b), var(--a) 55%, var(--c));
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Titre vertical (colonne dorsale) ---------- */
.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--spine-w);
  margin: 0;
  z-index: 40;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1rem, 0.7rem + 1.1vw, 1.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-2);
  border-right: 1px solid var(--line-strong);
  padding: 1rem 0;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Barre supérieure ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--c); }
.call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.95rem;
  border-radius: 2px;
  min-height: 44px;
  justify-content: center;
}
.call:hover { background: var(--c); color: #fff; }
.call-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.call-num { font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) sepia(0.12);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 0.75rem;
}
.hero h2 {
  font-size: clamp(2rem, 1.2rem + 4.4vw, 3.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.5rem;
}

/* Visualiseur de fréquences sous le titre */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
  margin: 0 0 1.75rem;
  max-width: 420px;
}
.viz span {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, var(--a), var(--c));
  transform-origin: 50% 100%;
  transform: scaleY(0.18);
  animation: pulse 1.6s ease-in-out infinite alternate;
}
.viz span:nth-child(3n) { background: linear-gradient(180deg, var(--b), var(--a)); }
.viz span:nth-child(1)  { animation-delay: -0.05s; }
.viz span:nth-child(2)  { animation-delay: -0.32s; }
.viz span:nth-child(3)  { animation-delay: -0.61s; }
.viz span:nth-child(4)  { animation-delay: -0.18s; }
.viz span:nth-child(5)  { animation-delay: -0.77s; }
.viz span:nth-child(6)  { animation-delay: -0.44s; }
.viz span:nth-child(7)  { animation-delay: -0.09s; }
.viz span:nth-child(8)  { animation-delay: -0.55s; }
.viz span:nth-child(9)  { animation-delay: -0.26s; }
.viz span:nth-child(10) { animation-delay: -0.68s; }
.viz span:nth-child(11) { animation-delay: -0.13s; }
.viz span:nth-child(12) { animation-delay: -0.5s; }
.viz span:nth-child(13) { animation-delay: -0.85s; }
.viz span:nth-child(14) { animation-delay: -0.22s; }
.viz span:nth-child(15) { animation-delay: -0.4s; }
.viz span:nth-child(16) { animation-delay: -0.72s; }
.viz span:nth-child(17) { animation-delay: -0.07s; }
.viz span:nth-child(18) { animation-delay: -0.58s; }
.viz span:nth-child(19) { animation-delay: -0.3s; }
.viz span:nth-child(20) { animation-delay: -0.64s; }
.viz span:nth-child(21) { animation-delay: -0.16s; }
.viz span:nth-child(22) { animation-delay: -0.47s; }
.viz span:nth-child(23) { animation-delay: -0.8s; }
.viz span:nth-child(24) { animation-delay: -0.36s; }
@keyframes pulse {
  from { transform: scaleY(0.14); }
  to   { transform: scaleY(1); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--c); border-color: var(--c); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.hero-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 1.1rem 0 0;
}

/* ---------- Bandeau chiffres ---------- */
.band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.band-item {
  padding: 1.25rem var(--pad);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.band-item strong { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.01em; }
.band-item span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- En-têtes de section ---------- */
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}
.section-lede { color: var(--ink-soft); margin: 0; }

/* ---------- Prestations ---------- */
.services { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); border-bottom: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) sepia(0.14);
  border-bottom: 1px solid var(--line);
}
.card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin: 1.25rem 1.25rem 0.5rem;
  letter-spacing: -0.01em;
}
.card p { margin: 0 1.25rem 1.4rem; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Bloc tarifs (menu) ---------- */
.menu-block { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); border-bottom: 1px solid var(--line); }
.menu { display: grid; gap: 2.5rem; }
.menu section h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.6rem;
  margin: 0 0 1.1rem;
}
.menu .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-name { font-size: 1.02rem; font-weight: 600; }
.item-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.item-price {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c);
  white-space: nowrap;
}
.menu-foot {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem;
  margin: 2.5rem 0 0;
  max-width: 70ch;
}

/* ---------- Cartes du bas ---------- */
.footer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.fcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--a);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.fcard h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px dotted var(--line); }
.hours th { font-weight: 400; color: var(--ink-soft); }
.hours td { font-family: var(--mono); font-size: 0.82rem; text-align: right; white-space: nowrap; }
.fcard address { font-style: normal; line-height: 1.7; }
.fcard-note { font-size: 0.9rem; color: var(--ink-soft); margin: 1rem 0 0; }
.fcard-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.phone-big { margin: 0 0 0.5rem; }
.phone-big a {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.phone-big a:hover { color: var(--c); }
.plain { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: 0.92rem; color: var(--ink-soft); }
.plain li { padding: 0.35rem 0 0.35rem 1.1rem; position: relative; }
.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--b);
}

/* ---------- À propos ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.about-text h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 24ch;
}
.about-text p { color: var(--ink-soft); max-width: 62ch; }
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) sepia(0.16);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.about-figure figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

/* ---------- Avis ---------- */
.quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.quote blockquote { margin: 0; border-left: 3px solid var(--c); padding-left: 1.25rem; }
.quote p { font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem); font-style: italic; margin: 0 0 0.75rem; }
.quote cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Pied de page ---------- */
.site-footer { padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 4.5rem; }
.footer-inner { max-width: 70ch; }
.footer-brand { font-weight: 900; font-size: 1.1rem; margin: 0 0 0.5rem; }
.footer-line { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.35rem; }
.footer-line a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer-line a:hover { color: var(--c); }

.claim-banner {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.claim-banner:hover { color: var(--c); border-color: var(--c); }

.attribution { position: static; margin: 1.5rem 0 0; font-size: 0.7rem; opacity: 0.55; }
.attribution a { color: inherit; }

/* ---------- Grands écrans ---------- */
@media (min-width: 720px) {
  .band { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
  .quote { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3.5rem; }
  .hero-media { order: 2; }
  .hero-media img { aspect-ratio: 3 / 4; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .menu { grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; }
  .menu section:first-child { grid-column: 1 / -1; }
  .about { grid-template-columns: 1.35fr 1fr; align-items: start; gap: 3.5rem; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz span { animation: none; transform: scaleY(0.42); }
  .viz span:nth-child(2n) { transform: scaleY(0.7); }
  .viz span:nth-child(3n) { transform: scaleY(0.28); }
  .progress { animation: none; transform: scaleX(1); opacity: 0.5; }
  .btn { transition: none; }
}

@media print {
  .progress, .spine, .topbar, .viz { display: none; }
  body { padding-left: 0; }
}
