/* ─────────────────────────────────────────────────────────────
   Centres de lavage Kärcher — prototype
   Couleurs Kärcher + matériaux des stations (bardage anthracite, béton, auvent jaune et sa bande LED)
   ───────────────────────────────────────────────────────────── */
:root {
  --yellow: #ffed00;
  --yellow-deep: #f2d600;
  --ink: #1d1d1b;
  --anthracite: #3c3c3b;
  --concrete: #f0f0ec;
  --line: #d4d4ce;
  --muted: #5d5d58;
  --white: #ffffff;
  --led: #fff7b8;
  --open: #1e8f4f;
  --closed: #b3261e;

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--yellow); padding: 0.75rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.nowrap { white-space: nowrap; }

/* ── Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--text);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--small { min-height: 2.4rem; padding: 0.45rem 0.9rem; font-size: var(--step--1); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-deep); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--line { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }

.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Barre du haut ─────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: calc(0.6rem + env(safe-area-inset-top, 0px)) var(--gutter) 0.6rem;
  background: var(--ink);
  color: var(--white);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { width: 0.75rem; height: 1.9rem; background: var(--yellow); flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 0.1rem; font-family: var(--display); line-height: 1; }
.brand__text strong { font-size: 1.35rem; font-weight: 800; }
.brand__text span { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.topnav { display: none; gap: 1.5rem; margin-left: auto; }
.topnav a { text-decoration: none; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.topnav a:hover { color: var(--yellow); }
.topbar__cta { margin-left: auto; }

/* ── Haut de page ──────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 20, 18, 0.82) 0%, rgba(20, 20, 18, 0.55) 45%, rgba(20, 20, 18, 0.1) 75%),
    linear-gradient(0deg, rgba(20, 20, 18, 0.65) 0%, rgba(20, 20, 18, 0) 35%);
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) var(--gutter) 2.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
.hero__copy { max-width: 38rem; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); font-weight: 800; text-wrap: balance; }
.hero__eco {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.1;
}
.hero__eco .ico { width: 1.3rem; height: 1.3rem; }
.hero__lead { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.45; max-width: 34rem; color: rgba(255, 255, 255, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__phone { display: none; margin: 0; justify-self: end; text-align: center; }
.hero__phone figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: rgba(255, 255, 255, 0.8); }
.phone {
  width: 15.5rem;
  aspect-ratio: 9 / 16;
  padding: 0.55rem;
  border-radius: 2.1rem;
  background: #0d0d0c;
  box-shadow: 0 0 0 2px #2c2c2a, 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 1.65rem; background: #000; }

/* L'auvent jaune des stations, avec la bande LED dessous */
.fascia { position: relative; z-index: 1; }
.fascia__band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem var(--gutter) 0.7rem;
  background: var(--yellow);
  color: var(--ink);
  transform-origin: left center;
  animation: fascia-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.fascia__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 6vw, 3.6rem); line-height: 0.95; letter-spacing: 0.01em; }
.fascia__places { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.6rem); display: inline-flex; align-items: center; gap: 0.6rem; }
.fascia__places i { width: 0.45rem; height: 0.45rem; background: var(--ink); display: inline-block; }
.fascia__led {
  height: 5px;
  background: var(--led);
  box-shadow: 0 0 8px 1px rgba(255, 240, 150, 0.95), 0 0 28px 6px rgba(255, 228, 90, 0.55), 0 10px 50px 14px rgba(255, 220, 80, 0.25);
  animation: led-on 1.1s steps(1, end) 0.8s both;
}
@keyframes fascia-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes led-on {
  0% { opacity: 0; } 18% { opacity: 1; } 26% { opacity: 0.15; } 40% { opacity: 1; } 48% { opacity: 0.4; } 60%, 100% { opacity: 1; }
}

/* ── Choix rapide ──────────────────────────────────────── */
.picker { background: var(--ink); padding: 2.6rem var(--gutter) 1.4rem; }
.picker__list {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 1fr);
  gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem;
}
.picker__list li { scroll-snap-align: start; }
.picker__item {
  display: grid; grid-template-columns: 3.6rem 1fr; grid-template-rows: auto auto; column-gap: 0.8rem;
  align-items: center; padding: 0.6rem; background: var(--anthracite); color: var(--white);
  text-decoration: none; border-left: 4px solid var(--yellow); transition: background-color 0.15s;
}
.picker__item:hover { background: #4a4a48; }
.picker__item img { grid-row: 1 / 3; width: 3.6rem; height: 3.6rem; object-fit: cover; }
.picker__name { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1; }
.picker__status { font-size: var(--step--1); color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 0.4rem; }
.picker__status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #8a8a85; flex: none; }
.picker__status.is-open::before { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.picker__status.is-closed::before { background: #ff6b5e; }

/* ── Stations ──────────────────────────────────────────── */
.stations { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
.section-head p { color: var(--muted); max-width: 30rem; }

.station {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* la rangée de vignettes défile au lieu d'élargir la fiche */
  gap: 0;
  background: var(--white);
  border-top: 6px solid var(--yellow);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 1px 0 var(--line);
}
.gallery { background: var(--ink); display: flex; flex-direction: column; }
.gallery__main { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2a28; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.gallery__main img.is-swapping { opacity: 0.35; }
.gallery__thumbs { display: flex; gap: 0.4rem; padding: 0.5rem; overflow-x: auto; }
.thumb {
  flex: none; width: 4.4rem; height: 3.3rem; padding: 0; border: 2px solid transparent;
  background: none; cursor: pointer; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; }
.thumb.is-active { opacity: 1; border-color: var(--yellow); }

.station__info { padding: clamp(1.4rem, 3.5vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; }
.station__name { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
.station__note { font-size: var(--step-1); color: var(--muted); margin-top: -0.4rem; }
.station__address, .station__hours { display: flex; gap: 0.7rem; align-items: flex-start; font-style: normal; font-size: var(--step-1); line-height: 1.35; }
.station__address .ico, .station__hours .ico { margin-top: 0.15rem; color: var(--anthracite); }
.station__hours strong { font-weight: 700; }
.station__hours.is-open strong { color: var(--open); }
.station__hours.is-closed strong { color: var(--closed); }
.station__hours.is-unknown strong { color: var(--muted); font-weight: 600; }

.services { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.services li {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  background: var(--concrete); border-left: 3px solid var(--yellow); font-weight: 600; font-size: var(--step--1);
}
.services .ico { width: 1.1rem; height: 1.1rem; }

.station__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }

.map { position: relative; margin-top: 0.5rem; height: 13rem; background: #dcdcd6; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); pointer-events: none; }
.map__link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0.7rem; text-decoration: none; }
.map__link span {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: var(--step--1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.map__link:hover span { background: var(--yellow); color: var(--ink); }

/* ── Tunnel ────────────────────────────────────────────── */
.tunnel { background: var(--anthracite); color: var(--white); padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.tunnel > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.tunnel__intro { max-width: var(--max); }
.tunnel__intro h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; max-width: 22ch; }
.tunnel__intro p { margin-top: 1rem; font-size: var(--step-1); max-width: 40rem; color: rgba(255, 255, 255, 0.85); }
.steps { list-style: none; padding: 0; margin-top: 3rem; display: grid; gap: 2rem 1.5rem; }
.step h3 { font-size: var(--step-3); font-weight: 700; margin-top: 1rem; }
.step p { margin-top: 0.5rem; color: rgba(255, 255, 255, 0.82); max-width: 32ch; }
/* Le panneau trapèze jaune des entrées de tunnel */
.bay {
  display: inline-grid; place-items: center; width: 4.2rem; height: 3rem;
  background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 2rem;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); padding-bottom: 0.2rem;
}
.tunnel__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 3rem; }
.tunnel__photos figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.tunnel__photos img { width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.checklist h3 { font-size: var(--step-3); font-weight: 700; margin-bottom: 1rem; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li, .crosses li { display: flex; gap: 0.7rem; align-items: baseline; }
.ticks li::before { content: ""; width: 0.8rem; height: 0.45rem; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg) translateY(-0.15rem); flex: none; }
.crosses li::before { content: "✕"; color: #ff8a80; font-weight: 700; flex: none; width: 0.8rem; }

/* ── Libre-service ─────────────────────────────────────── */
.selfwash { display: grid; background: var(--white); }
.selfwash__photo { margin: 0; min-height: 18rem; }
.selfwash__photo img { width: 100%; height: 100%; object-fit: cover; }
.selfwash__copy { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); max-width: 40rem; }
.selfwash__copy h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 800; }
.selfwash__copy > p { margin-top: 1rem; font-size: var(--step-1); color: var(--muted); }
.programs { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
.programs li { display: grid; gap: 0.15rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.programs strong { font-family: var(--display); font-size: var(--step-2); font-weight: 700; line-height: 1.1; }
.programs span { color: var(--muted); }
.selfwash__equip { margin-top: 1.75rem; }
.selfwash__equip h3 { font-family: var(--display); font-size: var(--step-2); font-weight: 700; line-height: 1.1; margin-bottom: 0.7rem; }
.selfwash__extra { margin-top: 1.5rem; font-weight: 600; }

/* ── Paiement ──────────────────────────────────────────── */
.pay { background: var(--yellow); padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.pay > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.pay h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
.pay__list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0.75rem; }
.pay__list li { display: flex; align-items: center; gap: 0.9rem; font-family: var(--display); font-size: var(--step-2); font-weight: 700; line-height: 1.1; }
.pay__icon { width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--ink); color: var(--yellow); flex: none; }
.pay__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay__note { margin-top: 1.75rem; font-size: var(--step-1); padding-right: max(0px, calc(100% - 46rem)); }

/* ── Pied de page ──────────────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.85);
  padding: 3rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 2rem;
}
.footer__brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer__brand p { font-size: var(--step-1); line-height: 1.3; }
.footer__brand strong { font-family: var(--display); font-size: var(--step-2); color: var(--white); }
.footer__col h2 { font-family: var(--display); font-size: var(--step-2); color: var(--white); margin-bottom: 0.6rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer__col a { color: var(--white); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.footer__col a:hover { color: var(--yellow); }
.footer__legal { font-size: var(--step--1); color: rgba(255, 255, 255, 0.55); }
.footer__legal a { color: rgba(255, 255, 255, 0.8); text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--yellow); }

/* ── Page « Politique de confidentialité » ─────────────── */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); max-width: calc(46rem + 2 * var(--gutter)); margin: 0 auto; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 800; }
.legal__date { margin-top: 0.75rem; color: var(--muted); }
.legal__intro { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; }
.legal section { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.legal h2 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step-3); font-weight: 800; }
.legal h2::before { content: ""; width: 0.5rem; height: 1.3rem; background: var(--yellow); flex: none; }
.legal h3 { margin-top: 1.4rem; font-size: var(--step-2); font-weight: 700; }
.legal p, .legal li { line-height: 1.6; }
.legal p { margin-top: 0.75rem; }
.legal ul { margin: 0.75rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.3rem; }
.legal a:not(.btn) { text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal a:not(.btn):hover { background: var(--yellow); }
.legal__back { margin-top: 3rem; }
.legal__address { padding-left: 1rem; border-left: 3px solid var(--yellow); }

/* ── Tablettes et ordinateurs ──────────────────────────── */
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr 1fr; }
  .pay__list { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
  .footer { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer__legal { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .hero { min-height: min(88svh, 52rem); }
  .topnav { display: flex; }
  .topbar__cta { margin-left: 0; }
  .hero__inner { grid-template-columns: 1fr auto; }
  .hero__phone { display: block; }
  .station { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .station--flip .gallery { order: 2; }
  .gallery__main { aspect-ratio: auto; flex: 1; min-height: 26rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .tunnel__photos { grid-template-columns: 1fr 1fr; }
  .tunnel__photos figure { aspect-ratio: 16 / 10; }
  .selfwash { grid-template-columns: 1fr 1fr; }
  .selfwash__copy { max-width: 42rem; }
  .programs { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fascia__band, .fascia__led { animation: none; }
  * { transition: none !important; }
}
