* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.question {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 8px;
  color: #222;
}

.verb {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 24px;
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

button {
  padding: 14px 32px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}

button:hover {
  transform: scale(1.05);
}

button:active {
  transform: scale(0.98);
}

.btn-etre {
  background: #4a90d9;
  color: white;
}

.btn-avoir {
  background: #e67e22;
  color: white;
}

.btn-next {
  background: #27ae60;
  color: white;
  display: none;
  margin: 20px auto 0;
}

.btn-restart {
  background: #9b59b6;
  color: white;
}

.feedback {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
}

.feedback.correct {
  background: #d4edda;
  color: #155724;
}

.feedback.wrong {
  background: #f8d7da;
  color: #721c24;
}

.explanation {
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.5;
}

.score {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 16px;
}

.progress {
  background: #ddd;
  border-radius: 10px;
  height: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #4a90d9, #27ae60);
  height: 100%;
  transition: width 0.3s;
}

.tip-card {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 0;
}

.tip-card summary {
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #856404;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tip-card summary::-webkit-details-marker {
  display: none;
}

.tip-card summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
}

.tip-card[open] summary::after {
  content: "-";
}

.tip-card .tip-content {
  padding: 0 24px 16px;
}

.tip-card p {
  color: #856404;
  margin: 0 0 8px;
  line-height: 1.6;
}

.tip-card code {
  background: #ffeeba;
  padding: 2px 6px;
  border-radius: 4px;
}

.final-score {
  text-align: center;
}

.final-score h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hidden {
  display: none;
}
