/* Style basique pour le quiz */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #667eea;
}

.pill {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
}

.stem {
  font-size: 1.3em;
  text-align: center;
  margin: 25px 0;
  padding: 20px;
  background: #f8f9ff;
  border-radius: 10px;
  border-right: 4px solid #667eea;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0;
}

.choice {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 15px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

.choice:hover:not(.locked) {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateX(-5px);
}

.choice.correct {
  background: #d4edda;
  border-color: #28a745;
  animation: correctPulse 0.5s ease;
}

.choice.wrong {
  background: #f8d7da;
  border-color: #dc3545;
  animation: wrongShake 0.5s ease;
}

.choice.locked {
  cursor: not-allowed;
  opacity: 0.6;
}

@keyframes correctPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.hint {
  background: #fff3cd;
  border-right: 4px solid #ffc107;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

.feedback {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 600;
}

.feedback.ok {
  background: #d4edda;
  border-right: 4px solid #28a745;
  color: #155724;
}

.feedback.bad {
  background: #f8d7da;
  border-right: 4px solid #dc3545;
  color: #721c24;
}

.solution {
  background: #e7f3ff;
  border-right: 4px solid #007bff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.solution-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 15px;
}

.actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-3px);
}

.top-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.nav-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.rules {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.rules h3 {
  color: #667eea;
  margin-bottom: 15px;
}

.rules ul {
  list-style-position: inside;
  line-height: 2;
}

.rules li {
  margin: 10px 0;
  font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
  .stem { font-size: 1.1em; }
  .choice { font-size: 1em; }
  .card { padding: 20px; }
}