/* ==========================================================================
   WPS Plomberie — « La ligne de cuivre »
   Palette : encre d'eau profonde / cuivre / porcelaine / pastilles chaud-froid
   ========================================================================== */

:root {
  --encre: #0A1A24;
  --abysse: #0E2230;
  --cuivre: #C97C4E;
  --cuivre-clair: #E8A876;
  --cuivre-sombre: #9A5731;
  --porcelaine: #EFF2F1;
  --porcelaine-2: #E4EAE8;
  --texte-sombre: #13252F;
  --texte-clair: #E9EEF0;
  --texte-clair-2: #9FB4BD;
  --froid: #6FBFD6;
  --chaud: #D64F33;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--encre);
  color: var(--texte-clair);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 650; margin-bottom: .6em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .4em; }

h2 em {
  font-style: normal;
  color: var(--cuivre);
}
.section-light h2 em { color: var(--cuivre-sombre); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-bottom: 1.1em;
  color: var(--texte-clair-2);
}
.section-light .eyebrow { color: #5A6E76; }

/* Pastilles chaud / froid — le vocabulaire du robinet */
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot-froid { background: var(--froid); }
.dot-chaud { background: var(--chaud); }

.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--chaud);
  display: inline-block;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 79, 51, .55); }
  100% { box-shadow: 0 0 0 12px rgba(214, 79, 51, 0); }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  padding: .85em 1.5em;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:active { transform: scale(.97); }

.btn-cuivre {
  background: linear-gradient(135deg, var(--cuivre-clair), var(--cuivre) 55%, var(--cuivre-sombre));
  color: #fff;
  box-shadow: 0 6px 24px rgba(201, 124, 78, .35);
}
.btn-cuivre:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201, 124, 78, .5); }

.btn-ghost {
  border: 1px solid rgba(233, 238, 240, .3);
  color: var(--texte-clair);
}
.btn-ghost:hover { background: rgba(233, 238, 240, .08); transform: translateY(-2px); }

.btn-tel {
  background: rgba(201, 124, 78, .12);
  border: 1px solid rgba(201, 124, 78, .45);
  color: var(--cuivre-clair);
  font-size: .85rem;
  padding: .6em 1.1em;
}
.btn-tel:hover { background: rgba(201, 124, 78, .25); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(10, 26, 36, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201, 124, 78, .25);
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: flex; gap: 4px; }
.logo-mark .dot { width: 11px; height: 11px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--texte-clair-2);
  margin-top: 4px;
}

.site-nav { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.site-nav a {
  font-size: .92rem;
  text-decoration: none;
  color: var(--texte-clair-2);
  position: relative;
  transition: color .25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--cuivre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-nav a:hover { color: var(--texte-clair); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Ligne de cuivre (spine) ---------- */

.spine {
  position: absolute;
  top: 0; left: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.spine svg { width: 100%; height: 100%; }
#spineDrop { filter: drop-shadow(0 0 6px rgba(143, 212, 228, .8)); }

@media (max-width: 1279px) { .spine { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateX(0); }
  to   { transform: scale(1.1) translateX(-1.5%); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(78deg, rgba(10, 26, 36, .96) 32%, rgba(10, 26, 36, .55) 58%, rgba(10, 26, 36, .18) 100%),
    linear-gradient(0deg, var(--encre) 0%, transparent 26%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px clamp(20px, 5vw, 48px) 90px;
  width: 100%;
}

.hero-sub {
  max-width: 34em;
  margin-top: 1.4em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--texte-clair-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }
.hero-actions .btn-cuivre { font-size: 1.1rem; }

.hero-note {
  margin-top: 2.2em;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--texte-clair-2);
  display: flex;
  align-items: center;
  gap: .7em;
}

/* goutte qui tombe du bord du hero */
.hero-drip {
  position: absolute;
  bottom: 0; left: 50%;
  width: 2px; height: 90px;
  z-index: 3;
}
.hero-drip span {
  position: absolute;
  top: 0; left: -3px;
  width: 8px; height: 8px;
  border-radius: 50% 50% 60% 60%;
  background: var(--froid);
  opacity: 0;
  animation: drip 3.4s ease-in infinite;
}
@keyframes drip {
  0%   { transform: translateY(0) scaleY(1); opacity: 0; }
  12%  { opacity: .9; }
  55%  { transform: translateY(70px) scaleY(1.5); opacity: .9; }
  62%  { transform: translateY(84px) scaleY(.5); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Ticker ---------- */

.ticker {
  background: var(--cuivre);
  color: #21120A;
  overflow: hidden;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: ticker 26s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-dark { background: var(--encre); }
.section-dark:nth-of-type(odd) { background: var(--abysse); }
.section-light {
  background: var(--porcelaine);
  color: var(--texte-sombre);
}
.section-light p { color: #3C4E57; }

/* ---------- Cards services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 22px;
  margin-top: 3rem;
}

.card {
  background: rgba(239, 242, 241, .04);
  border: 1px solid rgba(239, 242, 241, .09);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 124, 78, .55);
  background: rgba(239, 242, 241, .07);
}

.card figure { aspect-ratio: 4 / 3.1; overflow: hidden; }
.card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.card:hover figure img { transform: scale(1.06); }

.card-body { padding: 20px 22px 26px; }
.card-body p { font-size: .93rem; color: var(--texte-clair-2); }

.card-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--texte-clair-2);
  display: flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .9em;
}
.card-tag .dot { width: 7px; height: 7px; }
.card-tag-urgence { color: #F0A08D; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.split-reverse { grid-template-columns: 1fr 1.05fr; }
.split-reverse .split-media { order: 2; }
.split-reverse .split-text { order: 1; }

.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(10, 26, 36, .35);
}
.split-media-b {
  position: absolute;
  right: -9%; bottom: -12%;
  width: 52%;
  border: 5px solid var(--porcelaine);
  border-radius: var(--radius);
}

.split-text > p { max-width: 32em; }

.checklist {
  list-style: none;
  margin: 1.6em 0 2em;
  display: grid;
  gap: .65em;
}
.checklist li {
  padding-left: 1.7em;
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--cuivre);
  border-bottom: 2.5px solid var(--cuivre);
  transform: rotate(-45deg);
}
.section-dark .checklist li { color: var(--texte-clair-2); }

/* ---------- Chiffres ---------- */

.section-chiffres { padding: clamp(60px, 8vw, 100px) 0; }

.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 34px;
}
.chiffre dt {
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: .18em;
}
.chiffre .num {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  color: var(--cuivre-clair);
  letter-spacing: -.04em;
}
.chiffre .unit {
  font-size: 1.1rem;
  color: var(--texte-clair-2);
  text-transform: uppercase;
}
.chiffre dd { color: var(--texte-clair-2); font-size: .95rem; max-width: 20em; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: 3rem;
}
.steps li {
  border-top: 3px solid var(--cuivre);
  padding-top: 1.4em;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  color: var(--cuivre-sombre);
  display: inline-block;
  margin-bottom: .8em;
}
.step-num::after { content: " /3"; opacity: .45; }
.steps p { font-size: .95rem; }

/* ---------- Zone d'intervention ---------- */

.zone-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.villes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 1.6em;
}
.villes li {
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: .5em 1em;
  border: 1px solid #C3CFCC;
  border-radius: 999px;
  color: #3C4E57;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.villes li:hover {
  border-color: var(--cuivre);
  background: rgba(201, 124, 78, .1);
  color: var(--cuivre-sombre);
}

.zone-map svg { width: 100%; height: auto; }
.zone-map .ring {
  fill: none;
  stroke: #C3CFCC;
  stroke-dasharray: 3 6;
}
.zone-map .ring-1 { stroke: var(--cuivre); stroke-dasharray: none; opacity: .5; }
.zone-map .centre { fill: var(--cuivre); }
.zone-map .radar circle {
  fill: none;
  stroke: rgba(201, 124, 78, .5);
  transform-origin: 210px 210px;
  animation: radar 4.5s ease-out infinite;
}
@keyframes radar {
  from { transform: scale(.06); opacity: 1; }
  to   { transform: scale(1); opacity: 0; }
}
.zone-map .ville circle { fill: #5A6E76; }
.zone-map .ville text, .zone-map .map-centre, .zone-map .map-rayon {
  font-family: var(--font-mono);
  font-size: 12.5px;
  fill: #3C4E57;
}
.zone-map .map-centre {
  font-weight: 700;
  text-anchor: middle;
  fill: var(--cuivre-sombre);
  letter-spacing: .12em;
}
.zone-map .map-rayon {
  text-anchor: middle;
  letter-spacing: .3em;
  fill: #8A9CA3;
  font-size: 11px;
}

/* ---------- Contact ---------- */

.section-contact {
  background:
    radial-gradient(90% 120% at 50% 115%, rgba(201, 124, 78, .28), transparent 60%),
    var(--abysse);
  text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-inner > p { max-width: 36em; }

.tel-xxl {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 7.5vw, 5rem);
  letter-spacing: -.02em;
  color: var(--cuivre-clair);
  text-decoration: none;
  margin: .5em 0 .6em;
  transition: color .25s ease, text-shadow .25s ease;
}
.tel-xxl:hover {
  color: #fff;
  text-shadow: 0 0 40px rgba(201, 124, 78, .8);
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.contact-badges span {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .6em 1.2em;
  border: 1px solid rgba(233, 238, 240, .22);
  border-radius: 999px;
  color: var(--texte-clair-2);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--encre);
  border-top: 1px solid rgba(201, 124, 78, .25);
  padding: 44px 0;
  font-size: .88rem;
  color: var(--texte-clair-2);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--cuivre-clair); }
.footer-legal { font-size: .78rem; }

/* ---------- FAB mobile ---------- */

.fab-tel {
  display: none;
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cuivre-clair), var(--cuivre-sombre));
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(201, 124, 78, .5);
  animation: fabRing 3s ease infinite;
}
@keyframes fabRing {
  0%, 100% { transform: rotate(0); }
  4% { transform: rotate(-12deg); }
  8% { transform: rotate(10deg); }
  12% { transform: rotate(-8deg); }
  16% { transform: rotate(0); }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Focus visible ---------- */

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--froid);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .split-reverse, .zone-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 1; }
  .split-reverse .split-text { order: 2; }
  .split-media-b { right: 4%; }
  .zone-map { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .fab-tel { display: flex; }
  .hero-inner { padding-top: 110px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .ticker-track, .hero-drip span,
  .zone-map .radar circle, .fab-tel, .pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card figure img, .btn { transition: none; }
}
