* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, "Google Sans", sans-serif;
  background: #FAFAF7;
  color: #1B1B1B;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  gap: 60px;
}

.hidden {
  display: none !important;
}

/* === Écran d'accueil === */

#screen-home {
  gap: 40px;
}

#screen-home h1 {
  font-size: 64px;
  font-weight: 500;
  color: #1B1B1B;
}

.intro {
  font-size: 20px;
  line-height: 1.55;
  color: #4A4A4A;
  max-width: 620px;
  text-align: center;
}

.btn-green {
  background: #2E7D32;
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 40px;
  width: 320px;
  height: 160px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
  transition: transform 80ms ease, box-shadow 80ms ease;
  line-height: 1.1;
}

.btn-green:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.20);
}

.btn-green:disabled {
  background: #A0A0A0;
  cursor: not-allowed;
  box-shadow: none;
}

.status-text {
  font-size: 24px;
  color: #6E6E6E;
}

/* === Écran de session === */

#screen-session {
  position: relative;
}

#screen-preview {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 240px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #000;
}

.indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.indicator h2 {
  font-size: 56px;
  font-weight: 500;
  text-align: center;
}

.pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2E7D32;
  animation: pulse 1s ease-in-out infinite;
}

.pulse.thinking {
  background: #888;
}

.pulse.speaking {
  background: #1976D2;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

.btn-grey {
  background: #E0E0E0;
  color: #1B1B1B;
  font-size: 24px;
  font-weight: 500;
  border: none;
  border-radius: 24px;
  padding: 20px 40px;
  cursor: pointer;
  margin-top: 60px;
}

.btn-grey:active {
  background: #C8C8C8;
}

/* === Écran d'erreur === */

#screen-error h1 {
  font-size: 56px;
  color: #C62828;
}

#error-message {
  font-size: 28px;
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
}
