/* Design moderne avec animations et palette cyan/gris/blanc/jaune - VERSION RESPONSIVE OPTIMISÉE */
.interactif-select-questions {
  direction: rtl;
  font-family: system-ui;
  margin: 15px 0;
  padding: 15px;
  background: 
    linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 
    0 8px 30px rgba(0, 217, 255, 0.04),
    0 3px 15px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

/* Bordure supérieure animée multicolore */
.interactif-select-questions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    #00d9ff 0%, 
    #64748b 25%, 
    #fbbf24 50%, 
    #6b7280 75%, 
    #00d9ff 100%
  );
  background-size: 300% 100%;
  animation: topBorderFlow 4s linear infinite;
}

@keyframes topBorderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Particules flottantes subtiles */
.interactif-select-questions::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.02) 0%, transparent 50%);
  animation: floatParticles 15s infinite ease-in-out;
  pointer-events: none;
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(180deg); }
}

/* Container de question moderne */
.interactif-select-question {
  margin-bottom: 16px;
  padding: 20px;
  background: 
    linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 14px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

/* Bordure animée multicolore */
.interactif-select-question::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    #00d9ff 0%, 
    #64748b 20%, 
    #fbbf24 40%, 
    #6b7280 60%, 
    #00d9ff 80%, 
    #64748b 100%
  );
  background-size: 400% 400%;
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
  animation: rainbowBorder 6s linear infinite;
}

@keyframes rainbowBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Barre latérale cyan élégante */
.interactif-select-question::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(180deg, 
    #00d9ff 0%, 
    #0ea5e9 50%, 
    #06b6d4 100%
  );
  border-radius: 0 14px 14px 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0);
}

/* Effets de survol */
.interactif-select-question:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 15px 45px rgba(0, 217, 255, 0.1),
    0 8px 25px rgba(251, 191, 36, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.interactif-select-question:hover::before {
  opacity: 0.7;
  animation: rainbowBorder 3s linear infinite;
}

.interactif-select-question:hover::after {
  width: 6px;
  box-shadow: 
    6px 0 20px rgba(0, 217, 255, 0.25),
    0 0 30px rgba(0, 217, 255, 0.15);
}

/* Structure flexbox */
.interactif-select-statement {
  font-family: system-ui;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Texte avec gradient animé */
.interactif-select-text {
  font-size: 1.15em;
  font-weight: 700;
  background: linear-gradient(135deg, 
    #00d9ff 0%, 
    #64748b 30%, 
    #fbbf24 60%, 
    #1e293b 100%
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1e293b;
  margin: 0;
  line-height: 1.5;
  order: 1;
  transition: all 0.3s ease;
  animation: textGradient 8s ease-in-out infinite;
}

@keyframes textGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.interactif-select-question:hover .interactif-select-text {
  transform: translateY(-1px);
  animation: textGradient 4s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% { filter: brightness(1) drop-shadow(0 1px 3px rgba(0, 217, 255, 0.1)); }
  100% { filter: brightness(1.1) drop-shadow(0 3px 6px rgba(0, 217, 255, 0.25)); }
}

/* Container d'image avec effets */
.interactif-select-image-container {
  margin: 12px 0 14px 0;
  text-align: center;
  order: 2;
  position: relative;
  perspective: 1000px;
}

.interactif-select-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  box-shadow: 
    0 12px 28px rgba(0, 217, 255, 0.06),
    0 6px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(0, 217, 255, 0.1);
  filter: brightness(1.02) saturate(1.05);
}

.interactif-select-image:hover {
  transform: scale(1.03) translateY(-6px) rotateY(3deg);
  box-shadow: 
    0 20px 40px rgba(0, 217, 255, 0.12),
    0 12px 25px rgba(251, 191, 36, 0.06),
    0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 217, 255, 0.25);
}

/* Halo lumineux autour de l'image */
.interactif-select-image-container::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  background: linear-gradient(45deg, 
    rgba(0, 217, 255, 0.08), 
    rgba(251, 191, 36, 0.08), 
    rgba(100, 116, 139, 0.08), 
    rgba(0, 217, 255, 0.08)
  );
  background-size: 400% 400%;
  border-radius: 18px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
  filter: blur(15px);
  animation: haloRotate 8s linear infinite;
}

@keyframes haloRotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.interactif-select-image-container:hover::before {
  opacity: 0.5;
  filter: blur(20px);
}

/* Dropdown moderne avec animations */
.interactif-select-dropdown {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: 
    linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
  font-size: 1.02em;
  font-weight: 600;
  color: #374151;
  text-align: left;
  direction: ltr;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  order: 3;
  margin-top: 10px;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

/* Vague lumineuse dans le dropdown */
.interactif-select-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 217, 255, 0.08) 20%,
    rgba(251, 191, 36, 0.08) 50%,
    rgba(0, 217, 255, 0.08) 80%,
    transparent
  );
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 10px;
}

.interactif-select-dropdown:hover::before {
  left: 100%;
}

.interactif-select-dropdown:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: #00d9ff;
  background: 
    linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: 
    0 0 0 3px rgba(0, 217, 255, 0.08),
    0 10px 20px rgba(0, 217, 255, 0.06),
    0 5px 10px rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

.interactif-select-dropdown:focus {
  outline: none;
  border-color: #00d9ff;
  background: #ffffff;
  box-shadow: 
    0 0 0 3px rgba(0, 217, 255, 0.15),
    0 12px 25px rgba(0, 217, 255, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.06);
  animation: focusPulse 2s infinite alternate;
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15), 0 12px 25px rgba(0, 217, 255, 0.1); }
  100% { box-shadow: 0 0 0 5px rgba(0, 217, 255, 0.12), 0 16px 32px rgba(0, 217, 255, 0.12); }
}

/* États des questions avec animations */
.interactif-select-question.completed {
  background: 
    linear-gradient(145deg, #f0fdfa 0%, #ffffff 100%);
  animation: successPulse 3s infinite;
}

.interactif-select-question.completed::before {
  background: linear-gradient(45deg, 
    #10d9a3 0%, 
    #00d9ff 50%, 
    #10d9a3 100%
  );
  opacity: 0.5;
  animation: successBorder 4s linear infinite;
}

@keyframes successPulse {
  0%, 100% { 
    box-shadow: 0 6px 20px rgba(16, 217, 163, 0.06);
  }
  50% { 
    box-shadow: 0 10px 28px rgba(16, 217, 163, 0.12);
  }
}

@keyframes successBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.interactif-select-question.error {
  background: 
    linear-gradient(145deg, #fef2f2 0%, #ffffff 100%);
  animation: errorShake 0.6s ease-in-out;
}

.interactif-select-question.error::before {
  background: linear-gradient(45deg, 
    #ef4444 0%, 
    #f87171 50%, 
    #ef4444 100%
  );
  opacity: 0.5;
}

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

.interactif-select-question.active {
  background: 
    linear-gradient(145deg, #fefbeb 0%, #ffffff 100%);
  animation: activeGlow 4s infinite;
}

.interactif-select-question.active::before {
  background: linear-gradient(45deg, 
    #fbbf24 0%, 
    #00d9ff 50%, 
    #fbbf24 100%
  );
  opacity: 0.6;
  animation: activeBorder 5s linear infinite;
}

@keyframes activeGlow {
  0%, 100% { 
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.06);
  }
  50% { 
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.12);
  }
}

@keyframes activeBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Animation d'entrée élégante */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97) rotateX(-8deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
  }
}

.interactif-select-question {
  opacity: 0;
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.interactif-select-question:nth-child(1) { animation-delay: 0.1s; }
.interactif-select-question:nth-child(2) { animation-delay: 0.2s; }
.interactif-select-question:nth-child(3) { animation-delay: 0.3s; }
.interactif-select-question:nth-child(4) { animation-delay: 0.4s; }
.interactif-select-question:nth-child(5) { animation-delay: 0.5s; }

/* Section Feedback moderne */
.interactif-select-feedback {
  margin-top: 20px;
  background: 
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 12px 28px rgba(0, 217, 255, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  position: relative;
}

/* Bordure multicolore animée à droite du feedback */
.interactif-select-feedback::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    #00d9ff 0%, 
    #64748b 20%, 
    #fbbf24 40%, 
    #6b7280 60%, 
    #10d9a3 80%, 
    #00d9ff 100%
  );
  background-size: 100% 400%;
  animation: verticalFlow 6s linear infinite;
}

@keyframes verticalFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 400%; }
}

.interactif-select-feedback ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items de feedback avec animations */
.feedback-item {
  padding: 18px;
  position: relative;
  transition: all 0.3s ease;
  background: transparent;
}

.feedback-item.correct {
  background: 
    linear-gradient(135deg, rgba(240, 253, 250, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.feedback-item.incorrect {
  background: 
    linear-gradient(135deg, rgba(254, 242, 242, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.feedback-item:hover {
  transform: translateX(-3px);
  background: 
    linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

/* En-tête de question feedback */
.question-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0px;
  direction: rtl;
}

/* Icône de statut animée */
.status-icon {
  font-size: 1.2em;
  font-weight: bold;
  padding: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  animation: iconFloat 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.feedback-item.correct .status-icon {
  background: linear-gradient(135deg, #10d9a3, #00d9ff);
  color: white;
  box-shadow: 
    0 6px 12px rgba(16, 217, 163, 0.2),
    0 3px 6px rgba(0, 217, 255, 0.12);
}

.feedback-item.correct .status-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: iconShine 4s infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(180deg); }
}

@keyframes iconShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.feedback-item.incorrect .status-icon {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  box-shadow: 
    0 6px 12px rgba(239, 68, 68, 0.2),
    0 3px 6px rgba(248, 113, 113, 0.12);
}

/* Texte de question feedback */
.question-text {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.feedback-item:hover .question-text {
  color: #00d9ff;
  transform: translateY(-1px);
}

/* Comparaison des réponses */
.answers-comparison {
  margin: 12px 0;
  padding: 12px;
  background: 
    linear-gradient(135deg, rgba(0, 217, 255, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
  border-radius: 10px;
  border: 1px solid rgba(0, 217, 255, 0.08);
  direction: rtl;
  position: relative;
  overflow: hidden;
}

.answers-comparison::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 217, 255, 0.06),
    rgba(251, 191, 36, 0.06),
    transparent
  );
  transition: left 0.7s ease;
}

.answers-comparison:hover::before {
  left: 100%;
}

.answers-comparison p {
  margin: 8px 0;
  font-size: 1em;
  color: #475569;
  line-height: 1.5;
}

.answer-label {
  font-weight: 700;
  background: linear-gradient(135deg, #00d9ff, #fbbf24);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 6px;
  font-size: 0.9em;
  border: 1px solid rgba(0, 217, 255, 0.15);
  background-color: rgba(0, 217, 255, 0.04);
}

/* Explication avec effets */
.question-explanation {
  margin-top: 12px;
  padding: 14px;
  background: 
    linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 10px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #00d9ff, #fbbf24) 1;
  direction: rtl;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 3px 10px rgba(0, 217, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.question-explanation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 217, 255, 0.05),
    rgba(251, 191, 36, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.question-explanation:hover::before {
  left: 100%;
}

.question-explanation p,
.question-explanation {
  font-size: 1em;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Icône de validation avec animation */
.interactif-select-question.completed::after {
  content: '✓';
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 1.1em;
  color: #ffffff;
  background: linear-gradient(135deg, #10d9a3, #00d9ff);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: successIcon 2s infinite;
  box-shadow: 
    0 4px 10px rgba(16, 217, 163, 0.25),
    0 2px 5px rgba(0, 217, 255, 0.15);
  z-index: 10;
}

@keyframes successIcon {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    box-shadow: 
      0 4px 10px rgba(16, 217, 163, 0.25),
      0 2px 5px rgba(0, 217, 255, 0.15);
  }
  50% { 
    transform: scale(1.08) rotate(180deg);
    box-shadow: 
      0 6px 12px rgba(16, 217, 163, 0.3),
      0 3px 6px rgba(0, 217, 255, 0.2);
  }
}

/* Responsive design optimisé */
@media (max-width: 768px) {
  .interactif-select-questions {
    padding: 10px;
    margin: 10px 0;
    border-radius: 12px;
  }
  
  .interactif-select-question {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .interactif-select-text {
    font-size: 1.05em;
    line-height: 1.4;
  }
  
  .interactif-select-dropdown {
    padding: 10px 12px;
    font-size: 0.95em;
    border-radius: 8px;
    margin-top: 8px;
  }
  
  .interactif-select-image {
    max-height: 200px;
    border-radius: 8px;
  }
  
  .interactif-select-image-container {
    margin: 8px 0 10px 0;
  }
  
  .interactif-select-statement {
    gap: 10px;
  }
  
  .feedback-item {
    padding: 14px;
  }
  
  .status-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1em;
    padding: 6px;
  }
  
  .question-header {
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .question-text {
    font-size: 1.02em;
  }
  
  .answers-comparison {
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
  }
  
  .answers-comparison p {
    margin: 6px 0;
    font-size: 0.95em;
  }
  
  .question-explanation {
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
  }
  
  .question-explanation p {
    font-size: 0.95em;
  }
  
  .answer-label {
    padding: 2px 6px;
    font-size: 0.85em;
    margin-left: 4px;
  }
  
  .interactif-select-feedback {
    margin-top: 16px;
    border-radius: 12px;
  }
  
  .interactif-select-question.completed::after {
    top: 12px;
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 1em;
  }
  
  /* Réduction des effets de survol sur mobile */
  .interactif-select-question:hover {
    transform: translateY(-2px) scale(1.005);
  }
  
  .interactif-select-image:hover {
    transform: scale(1.02) translateY(-3px);
  }
  
  .interactif-select-dropdown:hover {
    transform: translateY(-2px) scale(1.005);
  }
}

@media (max-width: 480px) {
  .interactif-select-questions {
    padding: 8px;
    margin: 8px 0;
    border-radius: 10px;
  }
  
  .interactif-select-question {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
  }
  
  .interactif-select-text {
    font-size: 1em;
    line-height: 1.3;
  }
  
  .interactif-select-dropdown {
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    margin-top: 6px;
  }
  
  .interactif-select-image {
    max-height: 160px;
    border-radius: 6px;
  }
  
  .interactif-select-image-container {
    margin: 6px 0 8px 0;
  }
  
  .interactif-select-statement {
    gap: 8px;
  }
  
  .feedback-item {
    padding: 12px;
  }
  
  .status-icon {
    width: 28px;
    height: 28px;
    font-size: 1em;
    padding: 5px;
  }
  
  .question-header {
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .question-text {
    font-size: 0.98em;
    line-height: 1.4;
  }
  
  .answers-comparison {
    padding: 8px;
    margin: 8px 0;
    border-radius: 6px;
  }
  
  .answers-comparison p {
    margin: 5px 0;
    font-size: 0.9em;
  }
  
  .question-explanation {
    padding: 10px;
    margin-top: 8px;
    border-radius: 6px;
    border-left-width: 3px;
  }
  
  .question-explanation p {
    font-size: 0.9em;
    line-height: 1.5;
  }
  
  .answer-label {
    padding: 2px 5px;
    font-size: 0.8em;
    margin-left: 3px;
    border-radius: 4px;
  }
  
  .interactif-select-feedback {
    margin-top: 12px;
    border-radius: 10px;
  }
  
  .interactif-select-feedback::before {
    width: 3px;
  }
  
  .interactif-select-question.completed::after {
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    font-size: 0.9em;
  }
  
  /* Réduction des bordures animées sur très petits écrans */
  .interactif-select-questions::before {
    height: 2px;
  }
  
  .interactif-select-question::after {
    width: 4px;
  }
  
  .interactif-select-question:hover::after {
    width: 4px;
  }
  
  /* Désactivation des animations 3D sur mobile */
  .interactif-select-image:hover {
    transform: scale(1.01) translateY(-2px);
  }
  
  .interactif-select-question:hover {
    transform: translateY(-1px);
  }
  
  .interactif-select-dropdown:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 360px) {
  .interactif-select-questions {
    padding: 6px;
    margin: 6px 0;
    border-radius: 8px;
  }
  
  .interactif-select-question {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
  }
  
  .interactif-select-text {
    font-size: 0.95em;
    line-height: 1.3;
  }
  
  .interactif-select-dropdown {
    padding: 6px 8px;
    font-size: 0.85em;
    margin-top: 5px;
  }
  
  .interactif-select-image {
    max-height: 140px;
    border-radius: 6px;
  }
  
  .interactif-select-image-container {
    margin: 5px 0 6px 0;
  }
  
  .interactif-select-statement {
    gap: 6px;
  }
  
  .feedback-item {
    padding: 10px;
  }
  
  .status-icon {
    width: 26px;
    height: 26px;
    font-size: 0.9em;
    padding: 4px;
  }
  
  .question-header {
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .question-text {
    font-size: 0.9em;
    line-height: 1.3;
  }
  
  .answers-comparison {
    padding: 6px;
    margin: 6px 0;
    border-radius: 6px;
  }
  
  .answers-comparison p {
    margin: 4px 0;
    font-size: 0.85em;
  }
  
  .question-explanation {
    padding: 8px;
    margin-top: 6px;
    border-radius: 6px;
  }
  
  .question-explanation p {
    font-size: 0.85em;
    line-height: 1.4;
  }
  
  .answer-label {
    padding: 1px 4px;
    font-size: 0.75em;
    margin-left: 2px;
  }
  
  .interactif-select-feedback {
    margin-top: 10px;
    border-radius: 8px;
  }
  
  .interactif-select-question.completed::after {
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    font-size: 0.8em;
  }
}

/* Mode sombre moderne - responsive */
@media (prefers-color-scheme: dark) {
  .interactif-select-questions {
    background: 
      linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.25),
      0 3px 15px rgba(0, 217, 255, 0.06);
  }
  
  .interactif-select-question {
    background: 
      linear-gradient(145deg, #1e293b 0%, #334155 100%);
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  
  .interactif-select-question:hover {
    background: 
      linear-gradient(145deg, #334155 0%, #475569 100%);
  }
  
  .interactif-select-text {
    color: #e2e8f0;
    -webkit-text-fill-color: transparent;
  }
  
  .interactif-select-dropdown {
    background: 
      linear-gradient(145deg, #334155 0%, #475569 100%);
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .interactif-select-dropdown:hover {
    background: 
      linear-gradient(145deg, #475569 0%, #64748b 100%);
    color: #f1f5f9;
  }
  
  .interactif-select-feedback {
    background: 
      linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #334155;
  }
  
  .feedback-item {
    background: transparent;
  }
  
  .feedback-item:hover {
    background: 
      linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(71, 85, 105, 0.2) 100%);
  }
  
  .question-text {
    color: #e2e8f0;
  }
  
  .answers-comparison {
    background: 
      linear-gradient(135deg, rgba(0, 217, 255, 0.06) 0%, rgba(251, 191, 36, 0.06) 100%);
    border-color: rgba(0, 217, 255, 0.15);
  }
  
  .answers-comparison p {
    color: #cbd5e1;
  }
  
  .answer-label {
    background: linear-gradient(135deg, #33e3ff, #fcd34d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-color: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.2);
  }
  
  .question-explanation {
    background: 
      linear-gradient(135deg, rgba(51, 65, 85, 0.8) 0%, rgba(71, 85, 105, 0.9) 100%);
    color: #94a3b8;
    box-shadow: 
      0 3px 10px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

/* Animations de chargement */
.interactif-select-question.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.interactif-select-question.loading::before {
  background: linear-gradient(90deg, 
    #e2e8f0 0%, 
    #00d9ff 25%, 
    #fbbf24 50%, 
    #64748b 75%, 
    #e2e8f0 100%
  );
  background-size: 300% 100%;
  animation: shimmerLoading 1.8s infinite;
  opacity: 0.7;
}

@keyframes shimmerLoading {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

/* Micro-interactions optimisées */
.interactif-select-dropdown:active {
  transform: translateY(-1px) scale(0.995);
  transition: all 0.1s ease;
}

.interactif-select-image:active {
  transform: scale(1.01) translateY(-2px);
  transition: all 0.1s ease;
}

/* Focus states améliorés pour mobile */
.interactif-select-dropdown:focus-visible {
  outline: 2px solid rgba(0, 217, 255, 0.4);
  outline-offset: 2px;
}

.interactif-select-question:focus-within {
  outline: 2px solid rgba(0, 217, 255, 0.3);
  outline-offset: 3px;
}

/* Animation de validation finale optimisée */
@keyframes finalValidation {
  0% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1) saturate(1) hue-rotate(0deg);
  }
  25% { 
    transform: scale(1.02) rotate(0.5deg);
    filter: brightness(1.05) saturate(1.1) hue-rotate(3deg);
  }
  50% { 
    transform: scale(1.03) rotate(-0.3deg);
    filter: brightness(1.08) saturate(1.2) hue-rotate(6deg);
  }
  75% { 
    transform: scale(1.01) rotate(0.2deg);
    filter: brightness(1.03) saturate(1.05) hue-rotate(2deg);
  }
  100% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1) saturate(1) hue-rotate(0deg);
  }
}

.interactif-select-question.validated {
  animation: finalValidation 1s ease-in-out;
}

/* Effet de survol global du container */
.interactif-select-questions:hover {
  box-shadow: 
    0 12px 40px rgba(0, 217, 255, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.03);
}

/* Particules magiques pour les questions actives - version mobile */
.interactif-select-question.active .interactif-select-text::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: 
    radial-gradient(circle, rgba(251, 191, 36, 0.7) 0%, transparent 70%);
  border-radius: 50%;
  animation: magicSparkle 3s infinite ease-in-out;
  opacity: 0;
}

@keyframes magicSparkle {
  0%, 100% { 
    opacity: 0;
    transform: scale(0) translateY(0) rotate(0deg);
  }
  25% { 
    opacity: 0.7;
    transform: scale(1) translateY(-4px) rotate(90deg);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1) translateY(-6px) rotate(180deg);
  }
  75% { 
    opacity: 0.5;
    transform: scale(0.8) translateY(-2px) rotate(270deg);
  }
}

/* Options du dropdown avec style moderne */
.interactif-select-dropdown option {
  padding: 10px;
  background: #f9fafb;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  transition: all 0.2s ease;
}

.interactif-select-dropdown option:hover,
.interactif-select-dropdown option:selected {
  background: 
    linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
  color: #0f172a;
  font-weight: 600;
  border-bottom-color: rgba(0, 217, 255, 0.15);
}

/* Animation d'apparition du feedback */
@keyframes feedbackSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) translateX(10px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
    filter: blur(0px);
  }
}

.feedback-item {
  animation: feedbackSlideIn 0.6s ease forwards;
}

.feedback-item:nth-child(1) { animation-delay: 0.1s; }
.feedback-item:nth-child(2) { animation-delay: 0.2s; }
.feedback-item:nth-child(3) { animation-delay: 0.3s; }

/* Séparateur stylisé entre items de feedback */
.feedback-item + .feedback-item {
  border-top: 1px solid transparent;
  background-image: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 217, 255, 0.08) 20%, 
    rgba(251, 191, 36, 0.08) 50%, 
    rgba(0, 217, 255, 0.08) 80%, 
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top;
}

/* Effet de respiration pour les questions en attente */
@keyframes breathingEffect {
  0%, 100% { 
    opacity: 0.95;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.003);
  }
}

.interactif-select-question.pending {
  animation: breathingEffect 4s infinite ease-in-out;
}

/* Performance optimisations */
.interactif-select-questions *,
.interactif-select-questions *::before,
.interactif-select-questions *::after {
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* GPU acceleration */
.interactif-select-question,
.interactif-select-image,
.interactif-select-dropdown,
.feedback-item {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Réduction du motion pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .interactif-select-question:hover {
    transform: none;
  }
  
  .interactif-select-image:hover {
    transform: none;
  }
  
  .interactif-select-dropdown:hover {
    transform: none;
  }
}