body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
      'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #100c14;
    color: white;
    overflow: hidden;
  }
  
  #canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }
  
  /* 🎛️ Control buttons container */
  .controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center; /* Ajouté pour aligner parfaitement les boutons */
    gap: 24px;
    padding: 12px;
    z-index: 10;
  }
  
  /* 🟢 Common button styles */
  .control-btn, .record {
    background-color: rgba(68, 68, 68, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px; /* Assure la même taille pour les deux boutons */
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(10px);
  }
  
  .control-btn:hover {
    background-color: rgba(85, 85, 85, 0.7);
    transform: scale(1.05);
  }
  
  .control-btn svg {
    fill: #fff;
    width: 28px;
    height: 28px;
  }
  
  /* 🔴 Record-specific styles */
  .record {
    width: 80px;
    height: 80px;
  }
  
  .record-icon {
    width: 26px;
    height: 26px;
    background-color: #ff4d4d;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
  }
  
  .record.recording .record-icon {
    border-radius: 8px;
    animation: pulse-red 1.5s infinite;
  }
  
  @keyframes pulse-red {
    0% {
      box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }
    70% {
      box-shadow: 0 0 0 20px rgba(255, 77, 77, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
  }
  
  /* 📱 Responsive design */
  @media screen and (max-width: 768px) {
    .controls {
      bottom: 20px;
      gap: 18px;
    }

    .control-btn, .record {
      width: 70px;
      height: 70px;
    }
  
    .record-icon {
      width: 20px;
      height: 20px;
    }
  
    .control-btn svg {
      width: 22px;
      height: 22px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .controls {
      gap: 14px;
    }

    .control-btn, .record {
      width: 60px;
      height: 60px;
    }
  
    .record-icon {
      width: 18px;
      height: 18px;
    }
  
    .control-btn svg {
      width: 20px;
      height: 20px;
    }
  }
  
.main-header {
  width: 100vw;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 32px;
  z-index: 20;
  position: relative;
}

.main-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  text-shadow: 0 2px 16px #22225588;
  background: linear-gradient(90deg, #6dd5fa 0%, #b983ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.main-greeting {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 auto;
  max-width: 90vw;
  line-height: 1.5;
  text-shadow: 0 1px 8px #22225544;
  color: #9dacfa;
}

@media screen and (max-width: 768px) {
  .main-header {
    margin-top: 24px;
    margin-bottom: 18px;
  }
  .main-title {
    font-size: 2rem;
  }
  .main-greeting {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .main-header {
    margin-top: 12px;
    margin-bottom: 10px;
  }
  .main-title {
    font-size: 1.3rem;
  }
  .main-greeting {
    font-size: 0.95rem;
  }
}

.hidden-btn {
  display: none !important;
}

/* Animation supplémentaire pour la sphère quand l'utilisateur parle */
.sphere-talking {
  box-shadow: 0 0 40px 10px #6dd5fa88, 0 0 80px 20px #b983ff44;
  transition: box-shadow 0.2s;
}
  
.user-message {
  position: fixed;
  left: 50%;
  bottom: 140px;
  transform: translateX(-50%);
  background: rgba(30, 30, 60, 0.92);
  color: #fff;
  padding: 18px 28px;
  border-radius: 16px;
  font-size: 1.15rem;
  box-shadow: 0 4px 24px #22225544;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.user-message.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Language selectors */
.language-selectors {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  background: rgba(30, 30, 60, 0.92);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 24px #22225544;
  backdrop-filter: blur(10px);
}

.language-selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.language-selector-group label {
  font-size: 0.9rem;
  color: #9dacfa;
  font-weight: 500;
}

.lang-select {
  background: rgba(68, 68, 68, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 140px;
}

.lang-select:hover {
  background: rgba(85, 85, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-select:focus {
  outline: none;
  border-color: #6dd5fa;
  box-shadow: 0 0 0 2px rgba(109, 213, 250, 0.3);
}

@media screen and (max-width: 768px) {
  .language-selectors {
    top: 10px;
    right: 10px;
    padding: 12px;
    gap: 10px;
  }
  
  .language-selector-group label {
    font-size: 0.85rem;
  }
  
  .lang-select {
    font-size: 0.9rem;
    padding: 6px 10px;
    min-width: 120px;
  }
}

@media screen and (max-width: 480px) {
  .language-selectors {
    top: 8px;
    right: 8px;
    padding: 10px;
    gap: 8px;
  }
  
  .language-selector-group label {
    font-size: 0.8rem;
  }
  
  .lang-select {
    font-size: 0.85rem;
    padding: 5px 8px;
    min-width: 100px;
  }
}
  