/* Section Ressources Gratuites */
.resources-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.resources-header {
  text-align: center;
  margin-bottom: 60px;
}

.resources-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.resources-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog Articles */
.blog-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.blog-header p {
  color: #666;
  font-size: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.blog-content {
  padding: 20px;
}

.blog-category {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Guide PDF */
.guide-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.guide-header {
  text-align: center;
  margin-bottom: 40px;
}

.guide-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.guide-header p {
  color: #666;
  font-size: 1rem;
}

.guide-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 2px solid #2563eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.guide-icon {
  width: 80px;
  height: 80px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
}

.guide-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.guide-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.guide-features {
  text-align: left;
  margin-bottom: 25px;
}

.guide-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #374151;
}

.guide-feature-icon {
  width: 20px;
  height: 20px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.btn-download {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-download:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Quiz Section */
.quiz-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.quiz-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.quiz-header p {
  color: #666;
  font-size: 1rem;
}

.quiz-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
}

.quiz-progress {
  margin-bottom: 30px;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.quiz-question {
  margin-bottom: 30px;
}

.question-number {
  background: #2563eb;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 15px;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.4;
}

.quiz-options {
  display: grid;
  gap: 15px;
}

.quiz-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.quiz-option:hover {
  background: #f0f9ff;
  border-color: #2563eb;
  transform: translateX(5px);
}

.quiz-option.selected {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quiz-option.selected .option-radio {
  border-color: white;
}

.option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz-option.selected .option-radio::after {
  opacity: 1;
}

.option-text {
  flex: 1;
  font-weight: 500;
}

.quiz-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-quiz {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-quiz:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-quiz:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary-quiz {
  background: #f3f4f6;
  color: #666;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary-quiz:hover {
  background: #e5e7eb;
  color: #374151;
}

.quiz-result {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: none;
}

.result-score {
  font-size: 3rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 15px;
}

.result-level {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.result-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.result-recommendation {
  background: #f0f9ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.result-recommendation h4 {
  color: #2563eb;
  margin-bottom: 10px;
}

.result-recommendation p {
  color: #374151;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .resources-section {
    padding: 60px 0;
  }
  
  .resources-header h2 {
    font-size: 2rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .blog-section,
  .guide-section,
  .quiz-section {
    padding: 25px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-actions {
    flex-direction: column;
  }
  
  .btn-quiz,
  .btn-secondary-quiz {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-section,
.guide-section,
.quiz-section {
  animation: fadeInUp 0.6s ease forwards;
}

.blog-section { animation-delay: 0.1s; }
.guide-section { animation-delay: 0.2s; }
.quiz-section { animation-delay: 0.3s; }

/* ── Quiz Interactive Feedback Styles ── */
.quiz-option.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  pointer-events: none;
}

.quiz-option.correct .option-radio {
  border-color: #10b981 !important;
  background: #10b981 !important;
}

.quiz-option.correct .option-radio::after {
  opacity: 1 !important;
  background: white !important;
}

.quiz-option.incorrect {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  pointer-events: none;
}

.quiz-option.incorrect .option-radio {
  border-color: #ef4444 !important;
  background: #ef4444 !important;
}

.quiz-option.incorrect .option-radio::after {
  content: '×' !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  background: transparent !important;
}

.quiz-option.disabled-state {
  opacity: 0.6;
  pointer-events: none;
}

.quiz-section {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(229, 231, 235, 0.5) !important;
  transition: all 0.3s ease;
}
