/* conditions.css — Bloc Conditions : météo (meteoblue) et niveau d'eau */

/* ============================================================
   CONDITIONS : MÉTÉO PRÉVUE ET NIVEAU D'EAU (fiche)
   ============================================================ */
.cond-loading, .cond-muted { font-size: .78rem; color: var(--color-muted); }
.cond-link { background: none; border: none; color: var(--color-primary); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: .78rem; }
.cond-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cond-day { background: var(--slate-50); border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.cond-day-name { font-size: .72rem; font-weight: 700; color: var(--slate-700); }
.cond-day-icon { font-size: 1.6rem; line-height: 1.3; }
.cond-day-label { font-size: .66rem; color: var(--color-muted); min-height: 1.6em; }
.cond-day-temp { font-size: .9rem; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.cond-day-temp span { color: var(--color-muted); font-size: .78rem; }
.cond-day-row { font-size: .68rem; color: var(--slate-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cond-warn { color: var(--amber-700); font-weight: 700; }
.cond-alert { margin-top: 8px; font-size: .76rem; color: var(--amber-800); background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 8px; padding: 7px 9px; }
.cond-source { font-size: .66rem; color: var(--color-light); margin-top: 8px; }
.cond-mb { max-width: 500px; margin: 0 auto; }
.cond-mb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .78rem; }
.cond-mb-title { color: var(--color-light); font-weight: 600; }
.cond-mb-link { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.cond-mb-link:hover { text-decoration: underline; }
.cond-mb-frame { display: block; width: 100%; height: 410px; border: 0; margin: 4px 0 6px; border-radius: 8px; background: var(--slate-50); }
.cond-mb-credit { font-size: .66rem; text-align: right; margin: -4px 0 6px; }
.cond-mb-credit a { color: var(--color-light); }
.cond-stations { display: flex; flex-direction: column; gap: 6px; }
.cond-station { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main pin" "flow pin"; gap: 2px 8px; align-items: center;
  border: 1px solid var(--color-border); border-radius: 10px; padding: 7px 9px; background: var(--slate-50); }
.cond-station.pinned { border-color: var(--cyan-300); background: var(--cyan-50); }
.cond-station-main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }
.cond-station-name { font-size: .8rem; font-weight: 700; color: var(--slate-900); text-decoration: none; overflow-wrap: anywhere; }
.cond-station-flow { grid-area: flow; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: .82rem; }
.cond-station-flow strong { color: var(--cyan-700); font-variant-numeric: tabular-nums; }
.cond-pin { grid-area: pin; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--white); cursor: pointer; filter: grayscale(1); opacity: .55; }
.cond-pin[aria-pressed="true"] { filter: none; opacity: 1; border-color: var(--cyan-300); }
.cond-trend { font-size: .72rem; font-weight: 700; }
.cond-up { color: var(--amber-700); } .cond-down { color: var(--green-700); } .cond-flat { color: var(--color-muted); }
.cond-releves { margin-top: 10px; }
.cond-subtitle { font-size: .72rem; font-weight: 700; color: var(--slate-600); margin-bottom: 4px; }
.cond-releve { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; padding: 3px 0; border-top: 1px solid var(--color-border); }
.debit-row { display: flex; gap: 8px; align-items: center; }
.form-field .debit-row input[type=text] { flex: 1; min-width: 0; width: auto; }
.debit-btn { flex-shrink: 0; font-size: .78rem; font-weight: 600; border: 1px solid var(--cyan-200); background: var(--cyan-50); color: var(--cyan-700); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.debit-hint { font-size: .7rem; color: var(--color-muted); margin-top: 4px; }
