/* ============================================================
   H2O Toulouse Plomberie — feuille de style
   Composition : reçu imprimé · sections en aplat de couleur
   ============================================================ */

:root {
  --ink:        #0a0a0a;
  --red:        #e10600;
  --blue:       #003c8a;
  --acid:       #f4ff33;
  --paper:      #f7f5ef;

  --on-ink:     #f7f5ef;
  --on-red:     #fff6f4;
  --on-blue:    #eef4ff;
  --on-acid:    #0a0a0a;

  --rule:       rgba(255, 255, 255, .28);
  --rule-dark:  rgba(10, 10, 10, .28);

  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --disp: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --col: 46ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* --- grain ------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
  border-radius: 2px;
}
.sec--acid :focus-visible { outline-color: var(--ink); }

.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(--acid); color: var(--ink);
  padding: .75rem 1rem; z-index: 10000; font-weight: 700;
}
.skip:focus { left: 0; }

/* --- barre du haut ----------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px dotted rgba(247, 245, 239, .3);
}

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

.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; margin-right: auto;
}
.brand__mark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--acid);
}
.brand__mark sub { font-size: .55em; }
.brand__name {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1.25;
  color: var(--on-ink);
}

.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .5rem 0;
  border-bottom: 1px dotted transparent;
}
.nav a:hover { border-bottom-color: var(--acid); color: var(--acid); }

.callbtn {
  display: flex; flex-direction: column;
  text-decoration: none;
  background: var(--acid); color: var(--ink);
  padding: .5rem .85rem;
  min-height: 44px;
  justify-content: center;
  line-height: 1.15;
}
.callbtn__label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .14em;
}
.callbtn__num { font-weight: 800; font-size: .95rem; letter-spacing: -.01em; }
.callbtn:hover { background: #fff; }

/* --- sections en aplat ------------------------------------- */
.sec {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  position: relative;
}
.sec--ink  { background: var(--ink);  color: var(--on-ink); }
.sec--red  { background: var(--red);  color: var(--on-red); }
.sec--blue { background: var(--blue); color: var(--on-blue); }
.sec--acid { background: var(--acid); color: var(--on-acid); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* colonne reçu : étroite, décalée, bord irrégulier */
.sec > .wrap > * { max-width: var(--col); }
.sec > .wrap > .band,
.sec > .wrap > .hours,
.sec > .wrap > .lines,
.sec > .wrap > .rules,
.sec > .wrap > .quotes,
.sec > .wrap > .zones { max-width: 62ch; }

.sec--red  > .wrap > *:nth-child(even) { margin-left: clamp(0rem, 4vw, 3.5rem); }
.sec--acid > .wrap > *:nth-child(odd)  { margin-left: clamp(0rem, 3vw, 2.5rem); }

/* --- typographie ------------------------------------------- */
.kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  margin: 0 0 1.5rem;
  opacity: .78;
}

h1, h2, h3 { font-family: var(--disp); font-weight: 800; }

h1.stack {
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
h1.stack span { display: block; }
h1.stack span:nth-child(2) { margin-left: clamp(1rem, 8vw, 3.5em); }
h1.stack span:nth-child(3) { margin-left: clamp(-1.5rem, -3vw, -0.5em); color: var(--acid); }

h2 {
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h3 { font-size: 1.05rem; letter-spacing: -.01em; margin: 0 0 .35rem; }

.lede {
  font-size: 1.02rem;
  margin: 0 0 2rem;
  max-width: 52ch;
}
.lede--tight { margin-bottom: 2.5rem; }

.sub {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 3rem 0 1rem;
  font-family: var(--mono);
  font-weight: 700;
}

.fine {
  font-size: .82rem;
  line-height: 1.7;
  opacity: .8;
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dotted currentColor;
  max-width: 56ch;
}

/* --- boutons ----------------------------------------------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .85rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
  border: 2px solid currentColor;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--acid { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.btn--acid:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--on-ink); }
.btn--ghost:hover { background: var(--on-ink); color: var(--ink); }

/* --- bloc reçu --------------------------------------------- */
.receipt {
  margin: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  padding: .5rem 0;
  font-size: .88rem;
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dotted currentColor;
}
.receipt__row:last-child { border-bottom: 0; }
.receipt__row dt {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  flex: 0 0 auto;
}
.receipt__row dd { margin: 0; text-align: right; max-width: 60%; }
.receipt__row--total { font-weight: 700; }
.receipt__row--total dd { color: var(--acid); }
.receipt--light .receipt__row--total dd { color: var(--ink); }

/* --- liste de prestations ---------------------------------- */
.lines { list-style: none; margin: 0; padding: 0; }

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px dotted currentColor;
}
.line:first-child { border-top: 1px dotted currentColor; }
.line__name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.015em;
}
.line__note {
  grid-column: 1 / -1;
  font-size: .84rem;
  line-height: 1.6;
  opacity: .88;
  max-width: 58ch;
}
.line__price {
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  text-align: right;
  align-self: start;
  padding-top: .2rem;
}

/* --- bande drag-to-scroll ---------------------------------- */
.band-sec > .wrap { margin-bottom: 2.5rem; }

.band {
  overflow: hidden;
  cursor: grab;
  padding: 0 var(--pad);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }
.band.is-dragging .card { pointer-events: none; }

.band__track {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.card {
  flex: 0 0 auto;
  width: min(78vw, 340px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .75rem;
}
.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  filter: saturate(.92) contrast(1.05);
}
.card__meta {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: .85rem 0 .4rem;
  opacity: .8;
}
.card__title { font-size: 1.02rem; margin-bottom: .4rem; }
.card__body { font-size: .82rem; line-height: 1.6; margin: 0; opacity: .9; }

.band__hint {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  opacity: .7;
  padding: 0 var(--pad);
  margin: 0;
  max-width: 1180px;
  margin-inline: auto;
}

/* --- règles / méthode -------------------------------------- */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; }

.rule {
  padding: 1.5rem 0;
  border-bottom: 1px dotted currentColor;
}
.rule:first-child { border-top: 1px dotted currentColor; }
.rule__num {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  font-weight: 700;
  margin-bottom: .5rem;
  opacity: .75;
}
.rule h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.rule p { margin: 0; font-size: .88rem; line-height: 1.7; max-width: 58ch; }

/* --- avis --------------------------------------------------- */
.quotes { list-style: none; margin: 0; padding: 0; }

.quote {
  padding: 1.5rem 0;
  border-bottom: 1px dotted currentColor;
}
.quote:first-child { border-top: 1px dotted currentColor; }
.quote blockquote { margin: 0 0 .75rem; }
.quote blockquote p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  max-width: 56ch;
}
.quote blockquote p::before { content: "« "; }
.quote blockquote p::after  { content: " »"; }
.quote__by {
  margin: 0;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}
.quote__by span { font-weight: 400; opacity: .75; text-transform: none; letter-spacing: .04em; }

/* --- horaires ----------------------------------------------- */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.hours th, .hours td {
  text-align: left;
  padding: .7rem 0;
  border-bottom: 1px dotted currentColor;
  font-weight: 400;
}
.hours th {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  width: 45%;
}
.hours td { text-align: right; font-weight: 700; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours__closed td { opacity: .72; font-weight: 400; }

.zones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.zones li {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 1px solid currentColor;
  padding: .45rem .7rem;
  opacity: .92;
}

/* --- contact ------------------------------------------------ */
.phonebig {
  display: block;
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
  max-width: 34rem;
  transition: background-color .18s ease, color .18s ease;
}
.phonebig__label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: .35rem;
}
.phonebig__num {
  display: block;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.phonebig:hover { background: var(--ink); color: var(--acid); }

/* --- pied de page ------------------------------------------- */
.foot {
  background: var(--ink);
  color: var(--on-ink);
  padding: 3rem 0 2.5rem;
  border-top: 1px dotted rgba(247, 245, 239, .3);
}
.foot__line { margin: 0 0 .5rem; font-size: .82rem; }
.foot__line a { color: var(--acid); }
.foot__line--muted { opacity: .7; }

.claim { margin: 1.75rem 0 1rem; }
.claim-banner {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .02em;
  text-decoration: none;
  background: rgba(247, 245, 239, .08);
  border: 1px solid rgba(247, 245, 239, .22);
  padding: .5rem .75rem;
  opacity: .85;
}
.claim-banner:hover { opacity: 1; border-color: var(--acid); color: var(--acid); }

.attribution { margin: 0; font-size: .72rem; opacity: .6; }
.attribution a { text-decoration: none; border-bottom: 1px dotted currentColor; }
.attribution a:hover { opacity: 1; color: var(--acid); }

/* --- apparition au défilement ------------------------------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec > .wrap > * {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- petits écrans ------------------------------------------ */
@media (max-width: 720px) {
  .topbar__inner { gap: .5rem .75rem; }
  .nav { order: 3; width: 100%; gap: .9rem; }
  .nav a { font-size: .72rem; }
  .callbtn { margin-left: auto; }
  .sec--red > .wrap > *:nth-child(even),
  .sec--acid > .wrap > *:nth-child(odd) { margin-left: 0; }
  .receipt__row { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .receipt__row dd { text-align: left; max-width: 100%; }
  .line { grid-template-columns: 1fr; }
  .line__price { text-align: left; }
  .card { width: min(84vw, 300px); }
}

@media (min-width: 1100px) {
  .sec > .wrap > * { max-width: var(--col); }
  .sec > .wrap > .lines,
  .sec > .wrap > .rules,
  .sec > .wrap > .quotes { max-width: 68ch; }
}
