/* ============================================================
   ABADOM — Plomberie Lyon 7e
   Warm earth editorial · broadsheet columns · kinetic headline
   ============================================================ */

:root {
  --bg: #f5efe4;
  --bg-raised: #fbf7ef;
  --ink: #2b1e14;
  --ink-soft: #5c4a3a;
  --ink-faint: #8a7767;
  --accent: #c25a37;
  --accent-deep: #9c4326;
  --secondary: #6a7a4a;
  --rule: #d9cdba;
  --warm-light: rgba(226, 168, 108, 0.42);
  --glow-y: 12%;
  --shadow: 0 1px 0 rgba(43, 30, 20, 0.06), 0 18px 40px -28px rgba(43, 30, 20, 0.45);
  --maxw: 1180px;
  --pad: clamp(1.15rem, 4vw, 3rem);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120d;
    --bg-raised: #201a13;
    --ink: #f2e8da;
    --ink-soft: #cbb9a4;
    --ink-faint: #9a8874;
    --accent: #e07a52;
    --accent-deep: #f0936d;
    --secondary: #9aab72;
    --rule: #3a2f24;
    --warm-light: rgba(196, 122, 62, 0.30);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 18px 40px -28px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% var(--glow-y), var(--warm-light) 0, transparent 62%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  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;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; z-index: 50;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

.brand { text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand__mark {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "wght" 700, "opsz" 40;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.brand__sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-inline-start: auto;
  font-size: 0.92rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.callbtn {
  display: flex; flex-direction: column;
  text-decoration: none;
  background: var(--accent);
  color: #fff8f1;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  min-height: 44px;
  justify-content: center;
  line-height: 1.15;
}
.callbtn:hover { background: var(--accent-deep); color: #fff8f1; }
.callbtn__label {
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.9;
}
.callbtn__num { font-weight: 600; font-size: 1rem; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) clamp(2rem, 5vw, 3.5rem);
}

.hero__kicker {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1.1rem;
}

.hero__title {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.1rem + 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  font-variation-settings: "wght" 220, "opsz" 144;
  transition: font-variation-settings 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  max-width: 18ch;
  cursor: default;
}
.hero__title:hover,
.hero__title:focus-visible {
  font-variation-settings: "wght" 900, "opsz" 144;
}

.hero__title .default,
.hero__title .alt {
  display: block;
  transition: opacity 0.35s ease;
}
.hero__title .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  pointer-events: none;
}
.hero__title:hover .default,
.hero__title:focus-visible .default { opacity: 0; }
.hero__title:hover .alt,
.hero__title:focus-visible .alt { opacity: 1; }

.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  color: var(--ink-soft);
  margin: 0 0 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--accent); color: #fff8f1; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff8f1; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.hero__figure figcaption,
.split__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- key figures band ---------- */

.band {
  border-block: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
}
.band__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem var(--pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1rem;
}
.band__grid > div { margin: 0; }
.band__grid dt {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.band__grid dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-variation-settings: "wght" 600, "opsz" 60;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1;
  color: var(--accent);
}

/* ---------- broadsheet sections ---------- */

.sheet {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5rem) var(--pad);
}

.sheet__title {
  font-family: var(--serif);
  font-variation-settings: "wght" 500, "opsz" 90;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
  column-span: all;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.sheet__standfirst {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
  column-span: all;
}

.cols {
  column-count: 1;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--rule);
}

.entry {
  break-inside: avoid;
  margin: 0 0 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 0; }
.entry h3 {
  font-family: var(--serif);
  font-variation-settings: "wght" 600, "opsz" 40;
  font-size: 1.16rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}
.entry h3::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-inline-end: 0.5rem;
  background: var(--secondary);
  border-radius: 50%;
  vertical-align: 0.08em;
}
.entry p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- split sections ---------- */

.split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  border-top: 1px solid var(--rule);
}

.split__text h2 {
  font-family: var(--serif);
  font-variation-settings: "wght" 500, "opsz" 90;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.split__text p { color: var(--ink-soft); }
.split__figure { margin: 0; }
.split__figure img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.zones {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 0.5rem;
}
.zones li {
  padding-inline-start: 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink);
}
.zones li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
}

.note { font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- hours ---------- */

.hours { display: grid; gap: 2rem; }

.hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.hours__table th,
.hours__table td {
  text-align: start;
  padding: 0.72rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.hours__table th {
  font-weight: 500;
  font-family: var(--serif);
  font-variation-settings: "wght" 500, "opsz" 30;
  width: 45%;
}
.hours__table td { color: var(--secondary); font-variant-numeric: tabular-nums; }
.hours__odd td { color: var(--accent); }

.hours__aside h3 {
  font-family: var(--serif);
  font-variation-settings: "wght" 600, "opsz" 40;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.hours__aside p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.9rem; }

/* ---------- reviews ---------- */

.rating {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
}
.rating__score {
  font-family: var(--serif);
  font-variation-settings: "wght" 700, "opsz" 60;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
.rating__meta { font-size: 0.85rem; color: var(--ink-faint); }

blockquote {
  margin: 0 0 1.3rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 2px solid var(--secondary);
}
blockquote p {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-variation-settings: "wght" 300, "opsz" 30;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}
blockquote cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- contact ---------- */

.contact { display: grid; gap: 1.25rem; }

.contact__card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.4rem;
}
.contact__card h3 {
  font-family: var(--serif);
  font-variation-settings: "wght" 600, "opsz" 40;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.contact__card p { margin: 0 0 0.6rem; font-size: 0.94rem; color: var(--ink-soft); }
.contact__card address { font-style: normal; font-size: 0.98rem; line-height: 1.6; }

.contact__card--phone {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.contact__card--phone h3 { color: var(--bg); }
.contact__card--phone p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.contact__phone {
  display: inline-block;
  font-family: var(--serif);
  font-variation-settings: "wght" 700, "opsz" 60;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.contact__phone:hover { color: var(--accent-deep); }

/* ---------- footer ---------- */

.footer {
  border-top: 2px solid var(--ink);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: color-mix(in srgb, var(--bg-raised) 60%, transparent);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 1.5rem;
  display: grid;
  gap: 1.5rem;
}
.footer__brand {
  font-family: var(--serif);
  font-variation-settings: "wght" 700, "opsz" 40;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
}
.footer__col p { margin: 0 0 0.35rem; font-size: 0.92rem; color: var(--ink-soft); }
.footer__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer__col a { text-decoration: none; font-weight: 500; }
.footer__col a:hover { text-decoration: underline; }

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.claim-banner {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--secondary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent);
  border-radius: 3px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}
.claim-banner:hover { color: var(--ink); background: color-mix(in srgb, var(--secondary) 24%, transparent); }

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

/* ---------- page-load orchestration (one shot) ---------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes typeIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

.reveal {
  animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-name: typeIn; animation-duration: 0.9s; animation-delay: 0.18s; }
.reveal--3 { animation-delay: 0.42s; }
.reveal--4 { animation-delay: 0.54s; }
.reveal--5 { animation-delay: 0.66s; }

.topbar { animation: dropIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- responsive ---------- */

@media (min-width: 700px) {
  .band__grid { grid-template-columns: repeat(4, 1fr); }
  .hours { grid-template-columns: 1.1fr 1fr; }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .contact__card--phone { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--reverse .split__figure { order: -1; }
  .cols { column-count: 2; }
}

@media (min-width: 1100px) {
  .cols { column-count: 3; }
  .contact { grid-template-columns: 1.2fr 1fr 1fr; }
  .contact__card--phone { grid-column: auto; }
}

@media (max-width: 640px) {
  .nav { order: 3; width: 100%; margin-inline-start: 0; }
  .callbtn { margin-inline-start: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .topbar { animation: none !important; }
  .hero__title { transition: none; }
  .hero__title .default,
  .hero__title .alt { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
