/* ============================================================
   JB Plomberie — Marseille 13004
   Palette: noir / rouge / bleu / jaune-acide, une couleur par section
   ============================================================ */

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

  --paper: #f5f3ee;
  --paper-2: #e9e6df;

  --fg-on-ink: #f7f5f0;
  --fg-on-red: #fff8f6;
  --fg-on-blue: #f2f6ff;
  --fg-on-acid: #0a0a0a;

  --muted-on-ink: rgba(247, 245, 240, .62);
  --muted-on-red: rgba(255, 248, 246, .78);
  --muted-on-blue: rgba(242, 246, 255, .74);
  --muted-on-acid: rgba(10, 10, 10, .68);

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

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1240px;

  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.62;
  color: var(--fg-on-ink);
  background-color: var(--ink);
  /* patterned SVG tile — dot matrix */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.07'/></svg>");
  background-size: 24px 24px;
  text-wrap: pretty;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.06; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.85rem, 1.2rem + 3.2vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); line-height: 1.18; }
p { margin: 0 0 1em; }
a { color: inherit; }
sup { font-size: .62em; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acid); color: var(--ink);
  padding: .7rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.topbar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: .95rem; letter-spacing: -.03em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1rem; font-weight: 800; }
.brand__text small { font-family: var(--font-mono); font-size: .68rem; color: var(--muted-on-ink); letter-spacing: .04em; }

.topnav { display: none; gap: 1.4rem; margin-left: auto; }
.topnav a {
  text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: .5rem 0; border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--acid); }

.callbtn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem 1rem;
  background: var(--acid); color: var(--ink);
  text-decoration: none; font-weight: 800; font-size: .95rem;
  font-family: var(--font-mono);
  border-radius: var(--radius);
}
.callbtn:hover { background: #fff; }
.callbtn__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

@media (min-width: 860px) {
  .topnav { display: flex; }
  .callbtn { margin-left: 0; }
}

/* ---------- section shell ---------- */
.sec {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.sec--ink  { background-color: var(--ink);  color: var(--fg-on-ink);  }
.sec--red  { background-color: var(--red);  color: var(--fg-on-red);  }
.sec--blue { background-color: var(--blue); color: var(--fg-on-blue); }
.sec--acid { background-color: var(--acid); color: var(--fg-on-acid); }

.sec--ink {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.07'/></svg>");
  background-size: 24px 24px;
}
.sec--red {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M0 21.5 L21.5 0' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1'/></svg>");
  background-size: 22px 22px;
}
.sec--blue {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M0 10 H20 M10 0 V20' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='1'/></svg>");
  background-size: 20px 20px;
}
.sec--acid {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><circle cx='9' cy='9' r='1.2' fill='%230a0a0a' fill-opacity='0.16'/></svg>");
  background-size: 18px 18px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  opacity: .8;
}

.sechead { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sechead--tight { margin-bottom: 1.5rem; }
.sechead__lede { font-size: 1.06rem; opacity: .88; margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}

/* stacked headline breaking the baseline */
.stack {
  font-size: clamp(2.4rem, 1.1rem + 7.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 1.1rem;
}
.stack span { display: block; }
.stack span:nth-child(1) { margin-left: 0; }
.stack span:nth-child(2) { margin-left: clamp(.6rem, 4vw, 2.4em); color: var(--acid); }
.stack span:nth-child(3) { margin-left: clamp(-1.4rem, -2vw, -1em); }

.lede { font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); max-width: 56ch; opacity: .9; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.35rem;
  font-weight: 800; font-size: .98rem; text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.btn--hot { background: var(--red); color: #fff; }
.btn--hot:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--fg-on-ink); }
.btn--ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn--xl { font-size: 1.15rem; padding: 1rem 1.6rem; min-height: 56px; font-family: var(--font-mono); }
.btn:hover { transform: translateY(-2px); }

.hero__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.5rem;
}
@media (min-width: 620px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }
.hero__facts li { display: flex; flex-direction: column; gap: .15rem; }
.hero__facts strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero__facts span { font-size: .85rem; color: var(--muted-on-ink); line-height: 1.4; }

.hero__media { margin: 0; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero__media figcaption {
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.5;
  color: var(--muted-on-ink); margin-top: .7rem;
}

/* ---------- bento (broken anti-grid) ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 1.15rem; }
  .card { grid-column: span 3; }
  .card--wide { grid-column: 1 / 4; }
  .card--tall { grid-column: 4 / 7; grid-row: span 2; }
  .card:nth-of-type(4) { grid-column: 1 / 3; }
  .card:nth-of-type(5) { grid-column: 3 / 6; margin-top: 2.5rem; }
  .card--blank { grid-column: 6 / 7; grid-row: span 1; }
  .card:nth-of-type(7) { grid-column: 2 / 5; }
}

.card {
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  border-radius: var(--radius);
}
.card p { margin-bottom: .7rem; font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  opacity: .7; margin-bottom: .5rem;
}
.card__meta {
  font-family: var(--font-mono); font-size: .74rem; line-height: 1.5;
  opacity: .78; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: .7rem;
}
.card--blank { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .3); min-height: 90px; }

/* ---------- drag band ---------- */
.band {
  overflow: hidden;
  cursor: grab;
  padding-block: .5rem 1rem;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.band.is-dragging { cursor: grabbing; }
.band__track {
  display: flex;
  gap: 1.1rem;
  padding-inline: var(--gutter);
  will-change: transform;
}
.band__item {
  margin: 0;
  flex: 0 0 clamp(240px, 74vw, 420px);
}
.band__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .3);
  pointer-events: none;
}
.band__item figcaption {
  font-size: .86rem; line-height: 1.5; margin-top: .7rem;
  color: var(--muted-on-blue);
}
.band__item figcaption strong { color: var(--fg-on-blue); }

/* ---------- quotes ---------- */
.quotes {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .quotes { grid-template-columns: repeat(6, 1fr); gap: 1.15rem; }
  .quote { grid-column: span 2; }
  .quote--big { grid-column: 1 / 5; }
  .quote:nth-of-type(2) { grid-column: 5 / 7; }
  .quote:nth-of-type(3) { grid-column: 2 / 4; margin-top: 1.75rem; }
  .quote:nth-of-type(4) { grid-column: 4 / 7; }
  .quote:nth-of-type(5) { grid-column: 1 / 3; }
}
.quote {
  margin: 0;
  background: rgba(255, 255, 255, .5);
  border-left: 4px solid var(--ink);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}
.quote p { font-size: .98rem; margin-bottom: .8rem; }
.quote--big p { font-size: clamp(1.1rem, 1rem + .8vw, 1.5rem); line-height: 1.4; font-weight: 600; }
.quote footer { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; }
.quote cite { font-style: normal; font-weight: 600; }

/* ---------- contact ---------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact__note { font-family: var(--font-mono); font-size: .78rem; color: var(--muted-on-ink); margin-top: 1rem; }
.contact__side { display: grid; gap: 1.5rem; }
@media (min-width: 560px) and (max-width: 899px) {
  .contact__side { grid-template-columns: 1fr 1fr; }
}
.info {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 1rem;
}
.info h3 { font-size: 1rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.info p { font-size: .96rem; margin-bottom: .5rem; }
.info a { text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.info a:hover { color: var(--acid); }
.info__hint { font-size: .82rem; color: var(--muted-on-ink); }

.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { text-align: left; padding: .3rem 0; font-weight: 400; }
.hours th { font-family: var(--font-mono); font-size: .8rem; color: var(--muted-on-ink); }
.hours td { text-align: right; font-weight: 600; }

/* ---------- city ---------- */
.city { padding-bottom: 0; }
.city__title { max-width: 22ch; }
.city__text { max-width: 68ch; opacity: .9; }
.city__media { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.city__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- footer ---------- */
.footer {
  background: #050505; color: var(--fg-on-ink);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer__inner {
  display: grid; gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 760px) { .footer__inner { grid-template-columns: repeat(3, 1fr); } }
.footer__brand { font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; }
.footer__label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: .5rem;
}
.footer__col p { font-size: .92rem; color: rgba(247, 245, 240, .82); }
.footer__col a { text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.footer__col a:hover { color: var(--acid); }

.footer__bottom {
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  justify-content: space-between;
}
.claim-banner {
  display: inline-block;
  font-size: .78rem;
  padding: .4rem .7rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(247, 245, 240, .8);
  text-decoration: none;
  border-radius: var(--radius);
}
.claim-banner:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.muted { font-size: .78rem; color: rgba(247, 245, 240, .55); margin: 0; }
.muted a { color: inherit; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* ---------- motion: fade + rise on scroll enter ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec, .card, .quote, .band__item {
      animation: fadeRise 420ms var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

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