/* ===== BARRES ===== */
.bar-container {
  width: 100%;
  height: 18px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  transition: width 0.8s ease, background-color 0.5s;
  border-radius: 10px;
}

/* Couleurs dynamiques */
.cold { background-color: #2196f3; }
.cool { background-color: #4caf50; }
.mild { background-color: #ffeb3b; }
.hot  { background-color: #ff9800; }
.heat { background-color: #f44336; }

/* ===== TABLEAU TEMPÉRATURE ===== */

#tempTable {
  border-collapse: collapse;
  text-align: center;
}

#tempTable th, #tempTable td {
  border: 1px solid #ccc;
  padding: 6px;
}

#tempTable tr.active {
  outline: 3px solid #000;
  font-weight: bold;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* ===== ALERTES TEMPÉRATURE ===== */
#alerts {
  margin-top: 15px;
  padding: 12px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  display: none;
}

/* Gel */
.alert-gel {
  display: block;
  background: #2196f3;
  color: #fff;
  animation: flashBlue 1s infinite;
}

/* Canicule */
.alert-canicule {
  display: block;
  background: #f44336;
  color: #fff;
  animation: flashRed 1s infinite;
}

@keyframes flashBlue {
  0%, 100% { box-shadow: 0 0 5px #2196f3; }
  50% { box-shadow: 0 0 25px #2196f3; }
}

@keyframes flashRed {
  0%, 100% { box-shadow: 0 0 5px #f44336; }
  50% { box-shadow: 0 0 25px #f44336; }
}
