/* ==========================================================================
   Débouchage 5 Étoiles — le plan de métro de vos drains
   ========================================================================== */

:root {
  /* Sol de station et encres de signalétique */
  --ground: #f8f3ef;
  --ground-deep: #efe7df;
  --ink: #0b0b0c;
  --ink-soft: #3a3633;
  --sign: #070707;
  --sign-rim: #9597a3;
  --white: #ffffff;

  /* Une ligne par bouchon, partout sur le site */
  --line-evier: #0a8a3a;     /* verte */
  --line-toilette: #fec401;  /* jaune */
  --line-douche: #fd8204;    /* orange */
  --line-lavabo: #007eed;    /* bleue */
  --express-blue: #0067c7;   /* fond plein portant du texte blanc */
  /* Le tronc jaune du plan mène au terminus (drain principal, égout) : leur repère de page est noir */
  --blocked: #e8242a;

  /* Seul élément allumé : l'appel */
  --call: #c30116;
  --call-hi: #e0101f;
  --callout: #f8da1a;
  --pict: #0b6fd0;

  --font-sign: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;

  --radius-sign: clamp(14px, 1.3vw, 22px);
  --gutter: clamp(20px, 4vw, 64px);
  --section-pad: clamp(72px, 9vw, 140px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-sign); line-height: 1.02; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--line-toilette); color: var(--ink); }
:focus-visible { outline: 4px solid var(--pict); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--ink-soft) var(--ground-deep); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sign); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.icon-phone { width: 1em; height: 1em; flex: none; }

/* ---------- Masthead (pages intérieures) ---------- */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding: 12px var(--gutter);
}
.logo img { width: clamp(108px, 11vw, 170px); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 0; }
.nav .nav-list li { display: flex; align-items: center; }
.nav .nav-list li + li::before {
  content: ""; width: .36em; height: .36em; border-radius: 50%; background: var(--line-lavabo); margin: 0 .55em;
}
.nav a {
  font-family: var(--font-sign); font-weight: 700; font-size: clamp(17px, 1.6vw, 25px);
  text-decoration: none; letter-spacing: 0.005em; padding: 4px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.nav a:hover, .nav a[aria-current] { background-size: 100% 3px; }

.phone-sign {
  position: relative;
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--sign); color: var(--white);
  border: 4px solid var(--sign-rim); outline: 3px solid var(--sign); outline-offset: -1px;
  border-radius: var(--radius-sign);
  font-family: var(--font-sign); font-weight: 700; font-size: clamp(22px, 2.6vw, 44px);
  padding: .14em .42em .16em .34em;
  text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.phone-sign:hover { background: #1b1b1d; }

/* ---------- HERO : cadre mesuré sur la maquette approuvée (1536 × 1024) ---------- */
.hero { background: var(--ground); overflow: hidden; }
.hero-frame {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1536 / 1024;
  container-type: inline-size;
}
/* 1cqw = 1/100 de la largeur du cadre ; px comp → cqw : px / 15.36 */
.hero .masthead { display: contents; }
.hero .logo {
  position: absolute; left: 1.3%; top: 0.49%; width: 16.6%; height: 23.93%;
  display: flex; align-items: center; justify-content: center; z-index: 3;
}
.hero .logo img { width: 100%; height: 100%; object-fit: contain; }
.hero .nav {
  position: absolute; left: 21.48%; top: 7.03%; width: 53.06%; height: 4.3%;
  display: flex; align-items: center; z-index: 3;
}
.hero .nav a { font-size: calc(22cqw / 15.36 / 0.7); line-height: 1; white-space: nowrap; letter-spacing: -0.01em; }
.hero .nav .nav-list { flex-wrap: nowrap; }
.hero .nav .nav-list li + li::before { margin: 0 .38em; }
.hero .phone-sign {
  position: absolute; left: 74.87%; top: 0; width: 24.74%; height: 14.65%;
  font-size: calc(29cqw / 15.36 / 0.7); z-index: 3; gap: .3em; letter-spacing: -0.015em;
  border: none; outline: none; background: none; padding: 2.6cqw 0 0;
  justify-content: center; font-weight: 800;
}
.hero .phone-sign .icon-phone { width: 1.3em; height: 1.3em; }
.hero .phone-sign::before { /* le panneau suspendu */
  content: ""; position: absolute; inset: 25% 0 0 0;
  background: var(--sign); border-radius: 1.2cqw;
  border: .35cqw solid var(--sign);
  box-shadow: inset 0 0 0 .32cqw #a7a9b1, inset 0 0 0 .5cqw var(--sign), 0 .12em .3em rgba(0,0,0,.2);
  z-index: -1;
}
.hero .phone-sign::after { /* deux tiges et leurs pattes */
  content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 27%;
  background:
    linear-gradient(#3d4148, #3d4148) 0 0 / 1.05cqw 100% no-repeat,
    linear-gradient(#3d4148, #3d4148) 100% 0 / 1.05cqw 100% no-repeat,
    linear-gradient(#b9bbc2, #b9bbc2) -.6cqw 100% / 2.3cqw .9cqw no-repeat,
    linear-gradient(#b9bbc2, #b9bbc2) calc(100% + .6cqw) 100% / 2.3cqw .9cqw no-repeat;
  z-index: -2;
}
.hero .phone-sign:hover::before { background: #1b1b1d; }

/* Panneau de quai */
.platform-sign {
  position: absolute; left: 0.78%; top: 28.7%; width: 39.84%; height: 25.2%;
  background: var(--sign); color: var(--white);
  border-radius: calc(var(--radius-sign) * 1.3);
  box-shadow: inset 0 0 0 .5cqw var(--sign), inset 0 0 0 .78cqw var(--sign-rim), 0 .4cqw 1.2cqw rgba(0,0,0,.18);
  z-index: 2;
}
.platform-sign::before { /* tiges de suspension */
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: -22%; height: 22%;
  border-left: 1.05cqw solid #3d4148; border-right: 1.05cqw solid #3d4148;
}
.platform-sign::after { /* séparateur vertical blanc */
  content: ""; position: absolute; left: 20%; top: 14%; bottom: 14%; width: .3cqw; background: var(--white);
}
.platform-sign .pictogram { position: absolute; left: 3.7%; top: 19.5%; width: 15%; height: auto; }
.headline {
  position: absolute; left: 24.5%; top: 11.5%; right: 2%;
  font-weight: 700; color: var(--white);
  font-size: calc(51.4cqw / 15.36 / 0.735);
  line-height: .93; letter-spacing: -0.022em; white-space: nowrap;
}

.subline {
  position: absolute; left: 2.28%; top: 55.18%; width: 37.11%; height: 4.1%;
  display: flex; align-items: center;
  font-family: var(--font-sign); font-weight: 700; color: var(--ink);
  font-size: calc(24cqw / 15.36 / 0.70); line-height: 1; white-space: nowrap; letter-spacing: -0.01em;
}

.call-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--call); color: var(--white); text-decoration: none;
  font-family: var(--font-sign); font-weight: 700; border-radius: 999px;
  box-shadow: 0 .14em 0 #7d0610, 0 .3em .8em rgba(195,1,22,.28);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
.call-button:hover { background: var(--call-hi); transform: translateY(-2px); box-shadow: 0 .2em 0 #7d0610, 0 .5em 1.2em rgba(195,1,22,.32); }
.call-button:active { transform: translateY(1px); box-shadow: 0 .06em 0 #7d0610; }
.hero .call-button {
  position: absolute; left: 1.43%; top: 61.33%; width: 35.29%; height: 10.35%;
  font-size: calc(31.5cqw / 15.36 / 0.70); z-index: 2; letter-spacing: -0.015em; gap: .5em; justify-content: center; padding: 0 .9em 0 .4em; white-space: nowrap;
}
.hero .call-button .icon-phone { width: 1.5em; height: 1.5em; }
.hero .call-button > span:not(.visually-hidden) { position: relative; top: -.03em; }

/* Plan des lignes : une image par ligne, empilées sur le cadre */
.map { position: absolute; inset: 0; z-index: 0; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s var(--ease-out), filter .35s; }
.map.is-focus .line { opacity: .25; }
.map.is-focus .line.is-on { opacity: 1; filter: drop-shadow(0 0 .35cqw rgba(0,0,0,.25)); }

/* Silhouette de Montréal, sous le panneau de quai */
.skyline {
  position: absolute; left: 0; top: 72.75%; width: 59.77%; height: 27.25%;
  object-fit: cover; object-position: 0 100%; z-index: 0; pointer-events: none;
}

.hero-figure {
  position: absolute; left: 50.78%; top: 12.5%; width: 31.25%; height: 42.97%;
  object-fit: contain; z-index: 1; pointer-events: none;
  transform-origin: 60% 90%;
}

/* Stations (vrais liens) */
.stations ol { list-style: none; margin: 0; padding: 0; }
.station { position: absolute; z-index: 2; }
.station a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: .26cqw solid var(--ink); border-radius: .9cqw;
  font-family: var(--font-sign); font-weight: 700; line-height: .95;
  font-size: calc(30.5cqw / 15.36 / 0.70); white-space: nowrap;
  box-shadow: 0 .2cqw 0 var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
.station a:hover, .station a:focus-visible, .station a.is-on { transform: translateY(-.25cqw); box-shadow: 0 .45cqw 0 var(--ink); background: var(--callout); }
.station--evier    { left: 42.45%; top: 20.9%;  width: 8.46%;  height: 5.66%; }
.station--toilette { left: 62.63%; top: 42.97%; width: 11.72%; height: 6.05%; }
.station--douche   { left: 86.46%; top: 33.69%; width: 12.17%; height: 8.79%; }
.station--lavabo   { left: 45.44%; top: 53.13%; width: 11.2%;  height: 5.66%; }
.station--drain    { left: 58.98%; top: 64.84%; width: 19.27%; height: 6.25%; }
.station--egout    { left: 58.85%; top: 77.34%; width: 21.09%; height: 6.64%; }
.station--evier a  { font-size: calc(36cqw / 15.36 / 0.70); }
.station--douche a { font-size: calc(31cqw / 15.36 / 0.70); white-space: normal; line-height: .92; }
.station--drain a, .station--egout a { justify-content: flex-start; padding-left: .5em; }

.callout {
  position: absolute; left: 78.9%; top: 54.6%; width: 20.1%; height: 10.4%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--callout); color: var(--ink);
  border: .2cqw solid var(--ink); border-radius: .8cqw;
  font-family: var(--font-sign); font-weight: 800; font-style: italic;
  font-size: calc(30cqw / 15.36 / 0.70); line-height: .95;
  transform: rotate(-7deg); box-shadow: 0 .3cqw 0 var(--ink);
  z-index: 2;
}
.callout-arrow { position: absolute; left: -2.3%; top: -48%; width: 32%; color: var(--ink); transform: rotate(6deg); }

.trust {
  position: absolute; left: 60.42%; top: 91.6%; width: 39.06%; height: 5.6%;
  display: flex; align-items: center; justify-content: flex-start; gap: .32em; padding-left: .3%;
  border-top: 2px solid var(--ink);
  font-family: var(--font-body); font-weight: 600; letter-spacing: -0.012em;
  font-size: calc(17.1cqw / 15.36 / 0.70); line-height: 1; white-space: nowrap;
}
.trust img { width: 1.25em; height: auto; margin-left: .25em; }
.trust-mark { display: inline-flex; align-items: center; gap: .32em; white-space: nowrap; }
.trust-cmmtq { font-weight: 600; }
.trust-dot { color: var(--line-lavabo); }

/* ---------- Sections : grammaire commune ---------- */
section:not(.hero) { padding: var(--section-pad) var(--gutter); }
.section-head { max-width: 980px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2, .why-sign h2, .regions-copy h2, .commercial-copy h2, .callback h2 {
  font-size: clamp(40px, 5.4vw, 88px); font-weight: 800;
}
.section-head p { font-size: clamp(19px, 1.5vw, 24px); color: var(--ink-soft); margin-top: .7em; max-width: 52ch; }

.text-link {
  font-family: var(--font-sign); font-weight: 700; font-size: 1.1em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .22em;
  text-decoration-color: var(--line-lavabo);
  display: inline-flex; align-items: center; gap: .35em; margin-top: 1.2em;
}
.text-link::after { content: ""; width: .5em; height: .5em; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); margin-left: .1em; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { text-decoration-color: var(--line-toilette); }

/* Pourquoi : un panneau de quai géant */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.why-sign {
  align-self: start;
  background: var(--sign); color: var(--white); border-radius: calc(var(--radius-sign) * 1.4);
  padding: clamp(28px, 3.4vw, 56px);
  box-shadow: inset 0 0 0 8px var(--sign), inset 0 0 0 13px var(--sign-rim);
  position: sticky; top: 24px;
}
.why-body .lede { font-size: clamp(21px, 1.8vw, 28px); line-height: 1.4; font-weight: 500; max-width: 34ch; }
.why-list { list-style: none; padding: 0; margin: clamp(32px, 4vw, 56px) 0 0; display: grid; gap: clamp(28px, 3vw, 44px); }
.why-item { display: grid; grid-template-columns: 26px 1fr; column-gap: 22px; }
.why-item::before { content: ""; grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 7px solid var(--ink); margin-top: .1em; }
.why-item h3 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 700; }
.why-item p { margin-top: .35em; max-width: 52ch; color: var(--ink-soft); font-size: clamp(17px, 1.2vw, 20px); }
.why-item--1::before { border-color: var(--line-evier); }
.why-item--2::before { border-color: var(--line-douche); }
.why-item--3::before { border-color: var(--line-lavabo); }

/* Trajet : une ligne horizontale à 4 arrêts */
.route { background: var(--ground-deep); }
.route-line {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
  position: relative;
}
.route-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 14px; border-radius: 7px;
  background: var(--line-toilette);
  transform-origin: left; transform: scaleX(var(--route-progress, 1));
}
.stop { position: relative; padding-top: 72px; }
.stop-dot { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 9px solid var(--ink); }
.stop:last-child .stop-dot { border-color: var(--line-evier); box-shadow: 0 0 0 6px var(--ground-deep), 0 0 0 10px var(--line-evier); }
.stop h3 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; }
.stop p { margin-top: .5em; color: var(--ink-soft); max-width: 30ch; font-size: clamp(17px, 1.15vw, 19px); }

/* Régions */
.regions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.regions-copy p { font-size: clamp(19px, 1.4vw, 22px); color: var(--ink-soft); margin-top: .8em; max-width: 44ch; }
.zone-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 10px; }
.zone { display: flex; align-items: center; gap: 14px; font-family: var(--font-sign); font-weight: 700; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; }
.zone-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 7px solid var(--ink); flex: none; }
.zone--rive-nord .zone-dot { border-color: var(--line-evier); }
.zone--laval .zone-dot { border-color: var(--line-douche); }
.zone--montreal .zone-dot { border-color: var(--line-toilette); }
.zone--rive-sud .zone-dot { border-color: var(--line-lavabo); }
.regions-map { margin: 0; }
.regions-map svg { width: 100%; height: auto; }
.regions-map figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 8px; text-align: right; }
.rm-river { fill: #cfe3f2; }
.rm-zone { fill: var(--ground-deep); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.rm-line { stroke-width: 18; }
.rm-line--nord { stroke: var(--line-evier); }
.rm-line--laval { stroke: var(--line-douche); }
.rm-line--mtl { stroke: var(--line-toilette); }
.rm-line--sud { stroke: var(--line-lavabo); }
.rm-stops circle { fill: var(--white); stroke: var(--ink); stroke-width: 7; }
.rm-labels text { font-family: var(--font-sign); font-weight: 700; font-size: 34px; fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 6px; }
.rm-water { font-family: var(--font-body); font-style: italic; font-size: 17px; fill: #2c5d80; }

/* Avis : le tableau des départs */
.reviews { background: var(--sign); color: var(--white); }
.reviews .section-head h2 { color: var(--white); }
.review-board { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; background: #2a2a2d; border: 2px solid #2a2a2d; border-radius: 16px; overflow: hidden; }
.review { background: var(--sign); padding: clamp(24px, 2.4vw, 36px); }
.review-stars { display: flex; gap: 6px; }
.review-stars span { width: 18px; height: 18px; border-radius: 50%; background: var(--line-toilette); }
.review-stars .off { background: #3a3a3d; }
.review blockquote { margin: 16px 0 0; font-size: 19px; }
.review-meta { margin-top: 14px; color: #c9c6c2; font-size: 16px; }
.review-empty {
  border: 2px solid #2a2a2d; border-radius: 16px; padding: clamp(28px, 3.5vw, 56px);
  display: grid; gap: 14px; max-width: 980px;
}
.review-empty-status {
  font-family: var(--font-sign); font-weight: 700; font-size: clamp(28px, 3vw, 48px); color: var(--line-toilette);
  display: flex; align-items: baseline; gap: 18px; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.blink { width: 18px; height: 18px; border-radius: 50%; background: var(--line-toilette); flex: none; align-self: flex-start; margin-top: .45em; animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.review-empty p:not(.review-empty-status) { color: #dcd8d3; font-size: clamp(18px, 1.3vw, 21px); max-width: 60ch; }
.board-link { color: var(--white); font-family: var(--font-sign); font-weight: 700; text-decoration-color: var(--line-toilette); text-decoration-thickness: 3px; text-underline-offset: .2em; justify-self: start; }

/* Preuves : des plaques vissées */
.plaques { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); max-width: 1240px; }
.plaque {
  position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: 16px;
  padding: clamp(28px, 3vw, 48px);
  box-shadow: 0 6px 18px rgba(30, 20, 10, .08);
}
.plaque::before, .plaque::after { /* vis */
  content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9dbe0, #8a8e97); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.plaque::before { left: 14px; } .plaque::after { right: 14px; }
.plaque img { height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.plaque h3 { font-size: clamp(28px, 2.4vw, 38px); font-weight: 700; margin-top: 24px; }
.plaque .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plaque p { margin-top: .6em; color: var(--ink-soft); max-width: 46ch; font-size: clamp(17px, 1.15vw, 19px); }

/* Commercial : la ligne express */
.commercial { background: var(--express-blue); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 96px); align-items: center; overflow: hidden; }
.express-line { position: relative; height: 100%; min-height: 160px; }
.express-line span { position: absolute; left: calc(-1 * var(--gutter)); right: 10%; top: 50%; height: 22px; border-radius: 11px; background: var(--white); }
.express-line span::after { content: ""; position: absolute; right: -14px; top: 50%; width: 52px; height: 52px; transform: translateY(-50%); border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 11px var(--ink); }
.commercial-copy p { font-size: clamp(19px, 1.5vw, 23px); margin-top: .8em; max-width: 56ch; }
.commercial .text-link { color: var(--white); }

/* Conseils */
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 3px solid var(--ink); max-width: 1100px; }
.tip-list a {
  display: flex; align-items: center; gap: 22px; padding: 22px 4px; border-bottom: 3px solid var(--ink);
  text-decoration: none; font-family: var(--font-sign); font-weight: 700; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1;
  transition: padding .3s var(--ease-out), background .2s;
}
.tip-list a:hover { padding-left: 18px; background: var(--ground-deep); }
.tip-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 7px solid var(--line-douche); flex: none; }

/* Rappel */
.callback { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); background: var(--ground-deep); align-items: start; }
.callback-call p { font-size: clamp(19px, 1.4vw, 22px); color: var(--ink-soft); margin-top: .8em; max-width: 40ch; }
.callback-call .callback-or { color: var(--ink); font-weight: 600; margin-top: 2em; }
.call-button--inline { font-size: clamp(28px, 2.8vw, 44px); padding: .3em .9em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.callback-form { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: clamp(24px, 3vw, 48px); }
.callback-form .form-field { margin-bottom: 20px; }
.callback-form label, .callback-form .form-label { display: block; font-family: var(--font-sign); font-weight: 700; font-size: 21px; margin-bottom: 6px; }
.callback-form input, .callback-form select, .callback-form textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--ground);
  border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; caret-color: var(--call);
}
.callback-form input:focus-visible, .callback-form select:focus-visible, .callback-form textarea:focus-visible { outline: 4px solid var(--pict); outline-offset: 1px; background: var(--white); }
.callback-form .required { color: var(--call); }
.callback-form button, .callback-form [type=submit] {
  font-family: var(--font-sign); font-weight: 700; font-size: 26px; color: var(--white);
  background: var(--sign); border: 0; border-radius: 999px; padding: 12px 34px; cursor: pointer;
  transition: background .2s, transform .2s var(--ease-out);
}
.callback-form button:hover, .callback-form [type=submit]:hover { background: #26262a; transform: translateY(-2px); }
.callback-form .notices, .callback-form .form-errors { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.callback-form .notices.green, .callback-form .notices.success { background: #dff3e5; border: 2px solid var(--line-evier); }
.callback-form .notices.red, .callback-form .form-errors { background: #fde4e4; border: 2px solid var(--call); }

/* Pied de page */
.footer { background: var(--sign); color: #e9e5e0; padding: clamp(56px, 6vw, 96px) var(--gutter) 110px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 16px; color: #c9c6c2; }
.footer h2 { font-size: 24px; color: var(--white); margin-bottom: 12px; }
.footer .nav-list { flex-direction: column; gap: 6px; }
.footer .nav-list a { text-decoration: none; }
.footer .nav-list a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-phone { font-family: var(--font-sign); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); color: var(--line-toilette); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-call p { margin-top: 10px; color: #c9c6c2; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2a2a2d; color: #a19d98; font-size: 15px; }

/* Repère interne : numéro provisoire (disparaît quand phone.placeholder passe à Non) */
.placeholder-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; margin: 0;
  background: var(--callout); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  font: 600 13px/1.2 var(--font-body); padding: 6px 10px; pointer-events: none;
}

/* Barre d'appel mobile */
.dock { display: none; }

/* ---------- Pages intérieures ---------- */
.is-inner .masthead { border-bottom: 3px solid var(--ink); }
.inner-hero { padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.inner-line { display: flex; align-items: center; gap: 14px; font-family: var(--font-sign); font-weight: 700; font-size: 22px; margin-top: 18px; color: var(--ink-soft); }
.inner-line::before { content: ""; width: 56px; height: 14px; border-radius: 7px; background: var(--page-line, var(--line-toilette)); flex: none; }
.inner-hero h1 { font-size: clamp(48px, 6.4vw, 104px); font-weight: 800; }
.inner-hero .call-button { font-size: clamp(24px, 2.2vw, 34px); padding: .35em 1em; justify-self: start; }
.prose { padding: 0 var(--gutter) var(--section-pad); max-width: calc(68ch + 2 * var(--gutter)); font-size: clamp(19px, 1.45vw, 23px); line-height: 1.6; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.page-evier { --page-line: linear-gradient(90deg, var(--line-evier) 50%, var(--line-lavabo) 50%); }
.page-toilette { --page-line: var(--line-toilette); }
.page-douche { --page-line: var(--line-douche); }
.page-drain-principal { --page-line: var(--ink); }
.page-refoulement { --page-line: var(--ink); }

/* ---------- Mouvement : une seule entrée orchestrée ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .line { clip-path: inset(0 0 100% 0); }
  .js .hero .line--douche { clip-path: inset(0 0 0 100%); }
  .js .hero.is-live .line { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out), opacity .35s, filter .35s; }
  .js .hero.is-live .line--toilette { transition-delay: .15s; }
  .js .hero.is-live .line--douche { transition-delay: .25s; }
  .js .hero.is-live .line--lavabo { transition-delay: .1s; }
  .js .hero.is-live .line--egout { transition-delay: .5s; }
  .js .hero .hero-figure { transform: translateY(18%) scale(.9); opacity: 0; }
  .js .hero.is-live .hero-figure { transform: none; opacity: 1; transition: transform 1s cubic-bezier(.16, 1, .3, 1) .7s, opacity .35s .7s; }
  .js .hero .map-stations { opacity: 0; }
  .js .hero.is-live .map-stations { opacity: 1; transition: opacity .3s .55s; }
  .js .route-line { --route-progress: 0; }
  .js .route-line::before { transition: transform 1.4s var(--ease-out); }
  .js .route-line.is-in { --route-progress: 1; }
}
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why, .regions, .callback, .commercial { grid-template-columns: 1fr; }
  .why-sign { position: static; }
  .express-line { min-height: 60px; }
  .route-line { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .route-line::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .inner-hero { grid-template-columns: 1fr; align-items: start; }
}

/* Mobile : le plan devient une ligne verticale */
@media (max-width: 760px) {
  .masthead { grid-template-columns: auto 1fr; padding: 10px 16px; }
  .masthead .nav { display: none; }
  .masthead .phone-sign { justify-self: end; font-size: 22px; }
  .logo img { width: 92px; }

  .hero-frame { aspect-ratio: auto; container-type: normal; padding: 0 16px 28px; display: grid; gap: 14px; }
  .hero .masthead { display: grid; grid-template-columns: auto 1fr; padding: 8px 0 0; gap: 10px; }
  .hero .logo, .hero .nav, .hero .phone-sign, .platform-sign, .subline, .hero .call-button, .hero-figure, .station, .callout, .trust { position: static; width: auto; height: auto; }
  .hero .logo { width: 96px; }
  .hero .nav { display: none; }
  .hero .phone-sign { justify-self: end; align-self: center; font-size: 22px; background: var(--sign); border-radius: 12px; padding: 8px 12px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px var(--sign-rim); }
  .hero .phone-sign::before, .hero .phone-sign::after { display: none; }
  .hero .phone-sign span, .hero .phone-sign svg { margin-top: 0; }
  .map { display: none; }
  .skyline { position: static; width: calc(100% + 32px); height: auto; margin: 4px -16px 0; order: 9; }

  .platform-sign { position: relative; left: auto; top: auto; width: auto; height: auto; margin-top: 26px; padding: 22px 20px 22px 92px; border-radius: 18px; box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 7px var(--sign-rim); }
  .platform-sign::before { left: 14%; right: 14%; top: -26px; height: 26px; border-width: 0 7px; }
  .platform-sign::after { left: 76px; width: 3px; top: 16px; bottom: 16px; }
  .platform-sign .pictogram { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 50px; }
  .headline { position: static; font-size: clamp(32px, 9.4vw, 44px); }
  .subline { font-size: 19px; white-space: normal; }
  .hero .call-button { font-size: 28px; padding: 18px 20px; }

  .hero-figure { width: 62%; justify-self: center; margin: 8px 0 -16px; order: 6; }
  .stations { order: 7; position: relative; }
  .callout { transform: none; width: 100%; font-size: 22px; padding: 10px; border-width: 3px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); margin-bottom: 18px; }
  .callout br { display: none; }
  .callout-arrow { display: none; }
  .stations ol { position: relative; display: grid; gap: 12px; padding-left: 46px; }
  .stations ol::before { content: ""; position: absolute; left: 12px; top: 18px; bottom: 18px; width: 14px; border-radius: 7px; background: linear-gradient(var(--line-evier) 0 17%, var(--line-toilette) 17% 34%, var(--line-douche) 34% 51%, var(--line-lavabo) 51% 68%, var(--line-toilette) 68%); }
  .station { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .station::before { content: ""; position: absolute; left: -44px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 6px solid var(--ink); }
  .station--toilette::before { box-shadow: 0 0 0 6px var(--blocked); }
  .station a { font-size: 24px; justify-content: flex-start; padding: 12px 16px; border-width: 3px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
  .station a br { display: none; }
  .station--evier a, .station--douche a { font-size: 24px; }
  .trust { order: 8; justify-content: flex-start; font-size: 15px; padding-top: 12px; flex-wrap: wrap; row-gap: 6px; white-space: normal; }

  .route-line { grid-template-columns: 1fr; row-gap: 36px; }
  .route-line::before { display: block; left: 17px; right: auto; top: 24px; bottom: 24px; width: 14px; height: auto; transform-origin: top; transform: scaleY(var(--route-progress, 1)); }
  .stop { padding: 0 0 0 72px; }
  .stop-dot { top: -4px; }
  .plaques { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer { padding-bottom: 120px; }
  .placeholder-flag { bottom: auto; top: 0; left: 0; right: 0; border-radius: 0; border-width: 0 0 2px; text-align: center; }
  .dock {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 50; background: var(--call); color: var(--white); text-decoration: none;
    font-family: var(--font-sign); font-weight: 700; font-size: 22px; padding: 14px 18px; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    transform: translateY(160%); transition: transform .35s var(--ease-out);
  }
  .dock.is-shown { transform: none; }
  .dock .icon-phone { width: 1.1em; height: 1.1em; }
}
