body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #102448, #020710);
  font-family: Arial, sans-serif;
}

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #7fdfff;
  font-size: 22px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #55caff;
  animation: pulse 1.5s infinite;
  z-index: 10;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

#textPanel {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  color: #7fdfff;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #47b7ff;
  font-family: "Segoe UI", sans-serif;
  z-index: 5;
  transition: opacity 0.3s;
}

#textPanel.speaking {
  opacity: 1;
  color: #a9f1ff;
}

/* LED androïde style Detroit */
#androidLed {
  position: absolute;
  top: 18%;
  left: 55%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow:
    0 0 6px rgba(120, 220, 255, 0.9),
    0 0 16px rgba(80, 190, 255, 0.8),
    0 0 32px rgba(40, 150, 255, 0.8);
  border: 2px solid rgba(160, 230, 255, 0.9);
  background: radial-gradient(circle, #a9f1ff 0%, #4ec3ff 40%, #042b4a 70%, transparent 100%);
  animation: ledPulse 2.2s infinite;
  z-index: 6;
}

@keyframes ledPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  50%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

/* HUD à droite */
#hudPanel {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 210px;
  padding: 30px 38px;
  border-radius: 14px;
  border: 1px solid rgba(150, 210, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(6, 20, 40, 0.92),
    rgba(8, 32, 70, 0.92)
  );
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(60, 140, 255, 0.25);
  color: #c8e7ff;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  z-index: 6;
}

#hudTitle {
  font-size: 30px;
  color: #6fc8ff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#hudTime {
  font-size: 25px;
  margin-bottom: 4px;
}

#hudDate {
  font-size: 20px;
  opacity: 0.8;
  margin-bottom: 10px;
}

#hudDivider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(130, 200, 255, 0.7),
    rgba(130, 200, 255, 0)
  );
  margin-bottom: 10px;
}

#hudWeather {
  font-size: 15px;
  line-height: 1.4;
}

#hudStatus {
  color: #4ec3ff;
}

/* Panneau de contrôle vocal */
#speechPanel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 350px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(150, 210, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(6, 20, 40, 0.92),
    rgba(8, 32, 70, 0.92)
  );
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(60, 140, 255, 0.25);
  color: #c8e7ff;
  font-family: "Segoe UI", sans-serif;
  backdrop-filter: blur(10px);
  z-index: 6;
}

#speechTitle {
  font-size: 18px;
  color: #6fc8ff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#voiceButton {
  width: 100%;
  padding: 20px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4ec3ff, #2a9fd8);
  border: none;
  border-radius: 12px;
  color: #020710;
  font-size: 18px;
  font-weight: 700;
  font-family: "Segoe UI", sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(78, 195, 255, 0.3);
}

#voiceButton:hover {
  background: linear-gradient(135deg, #5dd3ff, #3aaff8);
  box-shadow: 0 6px 20px rgba(78, 195, 255, 0.5);
  transform: translateY(-2px);
}

#voiceButton:active {
  transform: translateY(0);
}

#voiceButton.listening {
  background: linear-gradient(135deg, #ff4e4e, #d82a2a);
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 20px rgba(255, 78, 78, 0.6);
}

#voiceButton.processing {
  background: linear-gradient(135deg, #ffa84e, #d8822a);
}

#voiceStatus {
  text-align: center;
  font-size: 12px;
  color: rgba(200, 231, 255, 0.7);
  margin-bottom: 15px;
  min-height: 16px;
}

#speechExamples {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(150, 210, 255, 0.2);
}

#speechExamples small {
  display: block;
  margin-bottom: 8px;
  color: rgba(200, 231, 255, 0.7);
  font-size: 11px;
}

.example-btn {
  display: inline-block;
  margin: 5px 5px 0 0;
  padding: 6px 12px;
  background: rgba(78, 195, 255, 0.2);
  border: 1px solid rgba(78, 195, 255, 0.3);
  border-radius: 6px;
  color: #7fdfff;
  font-size: 11px;
  font-family: "Segoe UI", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.command-examples {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.command-examples span {
  display: block;
  padding: 6px 10px;
  background: rgba(78, 195, 255, 0.1);
  border-left: 2px solid rgba(78, 195, 255, 0.3);
  border-radius: 4px;
  font-size: 11px;
  color: rgba(200, 231, 255, 0.8);
  font-style: italic;
}

/* Champ de texte pour Firefox */
#textInputContainer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(150, 210, 255, 0.2);
}

#textCommandInput {
  width: calc(100% - 80px);
  padding: 8px;
  margin-right: 5px;
  border: 1px solid rgba(150, 210, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #c8e7ff;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  box-sizing: border-box;
}

#textCommandInput:focus {
  outline: none;
  border-color: #6fc8ff;
  box-shadow: 0 0 6px rgba(111, 200, 255, 0.3);
}

#textCommandButton {
  width: 70px;
  padding: 8px;
  background: linear-gradient(135deg, #4ec3ff, #2a9fd8);
  border: none;
  border-radius: 6px;
  color: #020710;
  font-size: 12px;
  font-weight: 600;
  font-family: "Segoe UI", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

#textCommandButton:hover {
  background: linear-gradient(135deg, #5dd3ff, #3aaff8);
  transform: translateY(-1px);
}

