/* =====================================================
   PAGE STATIONS - CARTES METEO-FRANCE
===================================================== */

.mf-stations-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.mf-stations-intro h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.mf-stations-intro p {
  margin: 0;
  color: #64748b;
}

.mf-stations-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: #64748b;
  font-size: 0.88rem;
  white-space: nowrap;
}

.mf-stations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mf-station-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-left: 7px solid #2f80ed;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mf-station-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.mf-station-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mf-station-sector {
  margin: 0 0 4px;
  color: #2f80ed;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mf-station-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.2;
}

.mf-station-freshness {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.mf-station-freshness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.mf-station-card[data-freshness="fresh"] .mf-station-freshness-dot { background: #22a06b; }
.mf-station-card[data-freshness="delayed"] .mf-station-freshness-dot { background: #f59e0b; }
.mf-station-card[data-freshness="old"] .mf-station-freshness-dot { background: #ef4444; }

.mf-station-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 24px 0 20px;
}

.mf-station-temperature {
  display: flex;
  align-items: flex-start;
  color: #0f172a;
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
}

.mf-station-temperature small {
  margin-top: 5px;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.mf-station-time {
  color: #64748b;
  font-size: 0.78rem;
  text-align: right;
}

.mf-station-time strong {
  color: #0f172a;
  font-size: 1rem;
}

.mf-station-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mf-station-metric {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 7px;
  row-gap: 2px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
}

.mf-station-metric-icon {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1rem;
}

.mf-station-metric-label {
  color: #64748b;
  font-size: 0.72rem;
}

.mf-station-metric strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.mf-station-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.76rem;
}

.mf-station-footer a {
  color: #1746b8;
  font-weight: 700;
  text-decoration: none;
}

.mf-station-footer a:hover { text-decoration: underline; }

.mf-stations-loading,
.mf-stations-error {
  grid-column: 1 / -1;
  padding: 30px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  text-align: center;
}

@media (max-width: 1050px) {
  .mf-stations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .mf-stations-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .mf-stations-meta { align-items: flex-start; white-space: normal; }
  .mf-stations-grid { grid-template-columns: 1fr; }
  .mf-station-card { padding: 19px; border-radius: 17px; }
  .mf-station-values { grid-template-columns: 1fr 1fr; }
  .mf-station-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .mf-station-values { grid-template-columns: 1fr; }
}

#mfStationsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.mf-station-card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 42, 66, 0.08);
  height: 100%;
  box-sizing: border-box;
}

.mf-station-card:hover {
  border-color: #9fb6c9;
  box-shadow: 0 7px 20px rgba(15, 42, 66, 0.13);
  transform: translateY(-2px);
  transition: 0.2s ease;
}

@media (max-width: 1050px) {
  #mfStationsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #mfStationsGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mf-station-card {
    padding: 15px;
  }
}
