/* ============================================================
   airzone.css — Styles spécifiques climatisation
   Version : 1 | Date : 2026-05-25 19:30
   Auteur  : Access-IQ / Jérôme Barbaras
============================================================ */

.last-update { font-size: 12px; color: var(--muted); margin-left: auto; font-family: var(--mono); }

/* ── Zone cards ── */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.zone-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; position: relative; overflow: hidden; }
.zone-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cool); }
.zone-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.zone-name { font-size: 16px; font-weight: 500; }
.zone-status { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.status-on  { background: rgba(54,211,153,0.12); color: var(--green); border: 1px solid rgba(54,211,153,0.25); }
.status-off { background: rgba(107,114,128,0.12); color: var(--muted); border: 1px solid rgba(107,114,128,0.2); }

/* ── Temperature display ── */
.temps-row { display: flex; align-items: flex-end; gap: 2rem; margin-bottom: 1rem; }
.temp-main { display: flex; align-items: baseline; gap: 4px; }
.temp-big { font-family: var(--mono); font-size: 48px; font-weight: 500; line-height: 1; }
.temp-unit { font-size: 18px; color: var(--muted); }
.temp-meta { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.temp-meta-row { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.temp-meta-val { font-family: var(--mono); color: var(--text); font-size: 13px; }

/* ── Mode badge ── */
.mode-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 8px; margin-bottom: 1rem; }
.mode-stop    { background: rgba(107,114,128,0.15); color: var(--muted); }
.mode-cooling { background: rgba(6,182,212,0.12);   color: var(--cool); }
.mode-heating { background: rgba(239,68,68,0.12);   color: var(--heat); }
.mode-fan     { background: rgba(139,92,246,0.12);  color: var(--fan); }
.mode-dry     { background: rgba(245,158,11,0.12);  color: var(--dry); }
.mode-auto    { background: rgba(54,211,153,0.12);  color: var(--auto); }

/* ── History chart ── */
.history-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 2rem; }
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.history-title { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.history-legend { display: flex; gap: 1rem; font-size: 11px; color: var(--muted); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.history-chart-wrap { position: relative; width: 100%; height: 260px; }
