/* État de la station (pastille calculée à l'heure de Paris), heures creuses et carte fidélité.
   Pastille : motif repris de « Location tag » (21st.dev, licence non indiquée), écrit de zéro. */

.etat {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--filet, #d9dde4);
}

.etat__grille {
  display: grid;
  gap: 56px;
}

.etat__titre {
  font-family: var(--police-titre, sans-serif);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--graphite-2, #4a5261);
}

.etat__pastille {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-family: var(--police-titre, sans-serif);
  font-stretch: 100%;
  font-weight: 760;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  text-wrap: balance;
}

.etat__point {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--graphite-2, #4a5261);
}

[data-etat="ouvert"] .etat__point {
  background: var(--ouvert, #138a52);
  animation: pastille 2.4s ease-out infinite;
}

[data-etat="bientot"] .etat__point {
  background: var(--ambre, #a35a00);
}

@keyframes pastille {
  0% { box-shadow: 0 0 0 0 rgba(19, 138, 82, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(19, 138, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 138, 82, 0); }
}

.etat__heure {
  margin-top: 10px;
  color: var(--graphite-2, #4a5261);
}

.etat__message {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--roi, #1652d8);
  background: var(--brume, #f2f4f7);
}

.etat__message blockquote p {
  font-weight: 600;
  font-size: 1.12rem;
}

.etat__message figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--graphite-2, #4a5261);
}

.etat__texte {
  max-width: 30rem;
  margin-top: 18px;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
}

/* Frise de la journée, de l'ouverture (6h) à la fin des lavages (23h) : 17 heures */
.frise {
  margin-top: 44px;
}

.frise__piste {
  position: relative;
  height: 18px;
  background: var(--brume-2, #e6e9ee);
}

.frise__creuse {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--roi, #1652d8);
}

.frise__creuse--matin { left: 0; width: 17.65%; }
.frise__creuse--midi { left: 35.29%; width: 11.76%; }

.frise__maintenant {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--graphite, #1b2029);
}

.frise__maintenant::after {
  content: "maintenant";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 4px;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.frise__graduations {
  position: relative;
  height: 24px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--graphite-2, #4a5261);
  font-variant-numeric: tabular-nums;
}

.frise__heure { position: absolute; top: 0; transform: translateX(-50%); }
.frise__heure--6 { left: 0; transform: none; }
.frise__heure--9 { left: 17.65%; }
.frise__heure--12 { left: 35.29%; }
.frise__heure--14 { left: 47.06%; }
.frise__heure--22 { right: 0; transform: none; }

.etat__conseil {
  margin-top: 18px;
  font-weight: 650;
  color: var(--ouvert, #138a52);
}

/* Carte fidélité : la seule bande bleu roi, purement typographique */
.fidelite {
  padding-block: var(--espace-section, 120px);
  background: var(--roi, #1652d8);
  color: var(--blanc, #fff);
}

.fidelite__grille {
  display: grid;
  gap: 32px;
}

.fidelite__titre {
  max-width: 13ch;
}

.fidelite__texte {
  max-width: 38rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.fidelite__texte p + p {
  margin-top: 14px;
}

.fidelite__actions .actions {
  margin-top: 0;
}

@media (min-width: 900px) {
  .etat__grille {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .etat__creuses {
    padding-left: 72px;
    border-left: 1px solid var(--filet, #d9dde4);
  }

  .fidelite__grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 72px;
    row-gap: 56px;
  }

  .fidelite__titre {
    grid-column: 1 / -1;
    max-width: 16ch;
  }

  .fidelite__actions {
    align-self: end;
  }
}
