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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* --- ECRANS --- */
.screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.screen.active {
  display: flex;
}

/* --- LOGO --- */
.logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #fff;
  text-align: center;
}

.logo-sub {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.8em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.3rem;
}

/* --- ATTENTE --- */
.waiting-container {
  text-align: center;
}

.waiting-pulse {
  width: 12px;
  height: 12px;
  background: #4CAF50;
  border-radius: 50%;
  margin: 2rem auto;
  animation: pulse 2s ease-in-out infinite;
}

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

.waiting-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}

/* --- VIDEO --- */
.video-container {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- PAUSE --- */
.pause-container {
  text-align: center;
}

/* --- QUESTIONNAIRE --- */
.questionnaire-container {
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.questionnaire-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  min-width: 120px;
}

.btn:active {
  transform: scale(0.95);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.btn-oui {
  background: #4CAF50;
  color: #fff;
}

.btn-non {
  background: #333;
  color: #aaa;
}

/* --- MERCI --- */
.merci-container {
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.merci-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.merci-container p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.btn-lien {
  background: #2196F3;
  color: #fff;
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-lien:active {
  transform: scale(0.95);
}

.btn-text {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- FIN --- */
.fin-container {
  text-align: center;
}

.fin-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2rem;
}

/* --- ADMIN --- */
.admin-container {
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.admin-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.admin-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
}

.admin-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: #4CAF50;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-controls {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ctrl-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.1s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ctrl-btn:active {
  transform: scale(0.97);
}

.ctrl-btn.active-state {
  outline: 3px solid #4CAF50;
  outline-offset: 2px;
}

.ctrl-btn-clip1 { background: #1a237e; color: #fff; }
.ctrl-btn-clip2 { background: #0d47a1; color: #fff; }
.ctrl-btn-clip3 { background: #01579b; color: #fff; }
.ctrl-btn-questionnaire { background: #4CAF50; color: #fff; }
.ctrl-btn-stop { background: #b71c1c; color: #fff; }
.ctrl-btn-reset { background: #333; color: #aaa; }

.ctrl-icon {
  font-size: 1.3rem;
  width: 2rem;
  text-align: center;
}

.admin-responses {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 10px;
}

.admin-responses h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
}

.response-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.response-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.response-label {
  width: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.response-bar {
  flex: 1;
  height: 24px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
}

.response-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 0;
}

.response-fill-oui { background: #4CAF50; }
.response-fill-non { background: #666; }
.response-fill-lien { background: #2196F3; }

.response-count {
  width: 30px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-state-indicator {
  text-align: center;
  margin-top: 1rem;
  padding: 0.6rem;
  background: #1a1a1a;
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-state-indicator span {
  color: #4CAF50;
  font-weight: 700;
}
