.quiz-interface.active .quiz-controls {
  animation: slideInUp 0.5s ease-out 0.2s both;
}

.quiz-card.transitioning {
  overflow: hidden;
}

.quiz-card.transitioning .quiz-card-inner {
  transform-origin: 50% 50%;
  will-change: transform;
}

.quiz-card-container > * {
  margin: auto;
}

.quiz-card-container::before,
.quiz-card-container::after {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: floatParticle 10s infinite ease-in-out;
}

.quiz-card-container::before {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.quiz-card-container::after {
  bottom: 10%;
  right: 5%;
  animation-delay: 5s;
}

.quiz-card:hover .quiz-card-face {
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quiz-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.quiz-card:hover::after {
  content: "Cliquez pour retourner";
  opacity: 0.5;
}

.quiz-summary-modal .summary-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.quiz-summary-modal .summary-title.excellent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.quiz-summary-modal .summary-title.good {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.quiz-summary-modal .summary-title.average {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.quiz-summary-modal .summary-title.below-average {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.quiz-summary-modal .summary-title.beginner {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(148, 163, 184, 0.3);
}

.quiz-summary-modal .confetti-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: iconBounce 0.6s ease-out;
}

.quiz-summary-modal .stat-item.mastered .stat-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 8px;
  border-radius: 50%;
}

.quiz-summary-modal .stat-item.learning .stat-icon {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 8px;
  border-radius: 50%;
}

.quiz-summary-modal .stat-item.remaining .stat-icon {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  padding: 8px;
  border-radius: 50%;
}

.quiz-summary-modal .stat-value {
  font-size: 2rem;
  font-weight: 700;
  animation: countUp 0.5s ease-out;
}

.quiz-summary-modal .summary-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quiz-summary-modal .summary-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quiz-summary-modal .summary-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.3), 
    transparent);
  animation: shimmerProgress 2s infinite;
}

.quiz-summary-modal .summary-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-top: 5px;
  font-weight: 400;
}

.quiz-summary-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
}

.quiz-summary-modal.active {
  display: flex;
}

.quiz-summary-content {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(42, 42, 62, 0.95));
  backdrop-filter: blur(30px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(99, 102, 241, 0.1);
  position: relative;
  animation: summarySlideIn 0.5s ease-out;
}

.quiz-summary-content .summary-header {
  text-align: center;
  margin-bottom: 30px;
}

.quiz-summary-content .summary-stats {
  margin: 30px 0;
}

.quiz-summary-content .summary-stats h3 {
  color: #94a3b8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.quiz-summary-content .stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(30, 30, 50, 0.4);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.quiz-summary-content .stat-item:hover {
  background: rgba(30, 30, 50, 0.6);
  transform: translateX(4px);
}

.quiz-summary-content .stat-label {
  font-size: 1rem;
  color: #cbd5e1;
  margin-left: 12px;
  flex: 1;
}

.quiz-summary-content .summary-actions {
  margin-top: 30px;
}

.quiz-summary-content .summary-actions h3 {
  color: #94a3b8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.quiz-summary-content .summary-btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quiz-summary-content .summary-btn.primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quiz-summary-content .summary-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.quiz-summary-content .summary-btn.secondary {
  background: rgba(71, 85, 105, 0.3);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.quiz-summary-content .summary-btn.secondary:hover {
  background: rgba(71, 85, 105, 0.5);
  border-color: rgba(148, 163, 184, 0.3);
}

.quiz-summary-content .summary-back {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 0.9rem;
}

.quiz-summary-content .summary-back:hover {
  background: rgba(71, 85, 105, 0.2);
  color: #cbd5e1;
}
