/* Styles pour les défis Sims 4 */

.defi-header {
  background: linear-gradient(135deg, #e8c5d8 0%, #d4a5c7 100%);
  padding: 3rem 0;
  text-align: center;
  color: #4a3a52;
  margin-bottom: 2rem;
}

.defi-header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: #3d2840;
}

.defi-badge {
  display: inline-block;
  background: #fff3e0;
  color: #d97706;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin: 1rem 0;
}

.defi-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.defi-section {
  background: #fafafa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid #d97706;
}

.defi-section h2 {
  color: #3d2840;
  margin-top: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.defi-section ul, .defi-section ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.defi-section li {
  margin-bottom: 0.8rem;
  color: #4a3a52;
}

.defi-rules {
  background: #fff8e1;
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid #f59e0b;
  margin-bottom: 2rem;
}

.defi-rules h2 {
  color: #3d2840;
  margin-top: 0;
}

.defi-rules ol {
  padding-left: 1.5rem;
}

.defi-rules li {
  margin-bottom: 1rem;
  color: #4a3a52;
  line-height: 1.6;
}

.defi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: linear-gradient(135deg, #e8c5d8 0%, #f3e5f5 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 0.5rem;
}

.stat-card .label {
  color: #4a3a52;
  font-size: 0.9rem;
  font-weight: 600;
}

.defi-progress {
  background: #f3e5f5;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.progress-bar {
  background: #e0bcd4;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  height: 100%;
  width: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.challenge-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #e8c5d8;
  transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.15);
}

.challenge-card h3 {
  color: #3d2840;
  margin-top: 0;
  font-size: 1.1rem;
}

.challenge-card p {
  color: #4a3a52;
  font-size: 0.95rem;
  line-height: 1.6;
}

.challenge-difficulty {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.difficulty-easy {
  background: #d1fae5;
  color: #065f46;
}

.difficulty-medium {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-hard {
  background: #fee2e2;
  color: #7f1d1d;
}

.tips-section {
  background: #f0fdf4;
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid #10b981;
}

.tips-section h2 {
  color: #065f46;
  margin-top: 0;
}

.tips-section ul {
  padding-left: 1.5rem;
}

.tips-section li {
  color: #047857;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .defi-content {
    grid-template-columns: 1fr;
  }

  .defi-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .defi-header h1 {
    font-size: 1.8rem;
  }
}
