/* CODE SANDRO - Défis */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #030108;
  color: white;
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.defis-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.defis-grid {
  display: grid;
  grid-template-columns: repeat(2, 342px);
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 3rem auto;
}

.defis-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 342px);
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .defis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .defis-grid-secondary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .defis-grid {
    grid-template-columns: 1fr;
  }
  
  .defis-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .defis-grid-secondary {
    grid-template-columns: 1fr;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.defi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.defi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
}

.defi-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.defi-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.defi-desc {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.defi-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.defi-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
  transform: scale(1.05);
}

.defi-info-bar {
  margin-top: 3rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.defi-info-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.defi-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.defi-info-text {
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.defi-info-text:hover {
  color: #a78bfa;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .defis-container {
    padding: 6rem 1rem 3rem;
  }
  
  .defi-info-bar {
    margin-top: 2rem;
    padding: 1rem;
  }
  
  .defi-info-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .defi-info-text {
    font-size: 0.875rem;
  }
}
