/* Hôteperform Climate Control — design tokens repris de la maquette Artifact (17/09/2026) */

:root {
  --bg-dark: #1C2438;
  --bg-light: #F5F6FA;
  --accent: #F7521E;
  --accent-soft: #FDE7DF;
  --white: #FFFFFF;
  --text-on-dark: #F5F6FA;
  --text-on-dark-muted: #A9B2C4;
  --text-on-dark-faint: #6B7690;
  --text-body: #1C2438;
  --text-secondary: #7C879C;
  --text-tertiary: #A0A8B8;
  --border: #E7E9F0;
  --border-soft: #F0F1F5;
  --success: #3BAA63;
  --success-bg: #E4F3E9;
  --success-text: #2E7D4F;
  --warning: #B5811F;
  --danger: #D14B1F;
  --danger-border: #F3C6B0;
  --info: #4A7FC1;
  --info-bg: #E3EBF8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-body);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::placeholder { color: var(--text-on-dark-muted); }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.app-shell.dark {
  background: var(--bg-dark);
}

.app-header {
  flex-shrink: 0;
  background: var(--bg-dark);
  padding: 44px 24px 22px;
  color: var(--text-on-dark);
}

.app-header .eyebrow {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-bottom: 4px;
}

.app-header h1 {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
}

.app-main {
  flex-grow: 1;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 0 2px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card.alert {
  border-color: var(--danger-border);
}

.divider {
  height: 1px;
  background: var(--border-soft);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 10px;
}

.row .row-label {
  font-size: 13.5px;
  color: #333B48;
}

.icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-ok {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--success);
}

.status-warn { color: var(--warning); font-weight: 600; font-size: 12.5px; }
.status-muted { color: var(--text-tertiary); font-weight: 600; font-size: 12.5px; }

.btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:disabled { background: #C9CDD6; cursor: not-allowed; }
.btn-secondary { background: var(--white); color: #5A6478; border: 1px solid #D7DBE4; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: #8E9AB2; }
.field input {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #333B48;
  background: #232B42;
  color: var(--text-on-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
}

.help-text {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-on-dark-faint);
}

.bottom-nav {
  flex-shrink: 0;
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom, 0px));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  position: relative;
  color: #8E9AB2;
}

.nav-item.active { color: var(--accent); }
.nav-item span { font-size: 10.5px; font-weight: 500; }
.nav-item.active span { font-weight: 600; }

.nav-dot {
  position: absolute;
  top: 3px;
  right: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.banner {
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.banner.warn { background: #FDF3E3; color: #7A5A16; }
.banner.error { background: #FDE7DF; color: #8A2C11; }

.spinner-text { text-align: center; color: var(--text-secondary); font-size: 13.5px; padding: 24px 0; }

.collapse-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
