/* Variables : couleurs et polices */
:root {
  --primary-color: #4338ca;  /* Couleur primaire */
  --secondary-color: #7c3aed; /* Couleur secondaire */
  --accent-color: #D946EF;    /* Couleur d'accentuation */
}

/* Corps général */
body {
  font-family: 'Inter', sans-serif; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  overflow: hidden;
}

/* Effet de particules animé */
.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  z-index: 0;
  animation: moveParticles 20s linear infinite;
}

@keyframes moveParticles {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50%, -50%);
  }
}

/* Boutons YouTube et Instagram */
.btn-youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-radius: 16px;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 16px;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-hover {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Couleur de fond sombre */
.bg-navy {
  background-color: #1a1f36;
}

.bg-pattern {
  background-image: linear-gradient(to top, var(--dark-blue) 50%, transparent 50%);
  animation: gradientAnimation 10s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-image: linear-gradient(to top, var(--dark-blue) 50%, transparent 50%);
  }
  25% {
    background-image: linear-gradient(to top right, var(--dark-blue) 50%, transparent 50%);
  }
  50% {
    background-image: linear-gradient(to right, var(--dark-blue) 50%, transparent 50%);
  }
  75% {
    background-image: linear-gradient(to bottom right, var(--dark-blue) 50%, transparent 50%);
  }
  100% {
    background-image: linear-gradient(to bottom, var(--dark-blue) 50%, transparent 50%);
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  border-radius: 4px;
}

.timeline-container {
  position: relative;
  background-color: inherit;
  width: calc(50% - 50px);
  margin-bottom: 60px;
}

.timeline-container.left {
  left: 0;
}

.timeline-container.right {
  left: 50%;
  margin-left: 50px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  top: 50%;
  right: -50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.timeline-container.right::before {
  left: -50px;
}

.timeline-number {
  position: absolute;
  width: 52px;
  height: 52px;
  right: -80px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: 4px solid #1a1f36;
  top: calc(50% - 26px);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.timeline-container.right .timeline-number {
  left: -80px;
}

.timeline-content {
  padding: 30px;
  background: rgba(59, 73, 138, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

.timeline-content:hover {
  transform: translateY(-4px);
  background: rgba(59, 73, 138, 0.7);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Marketplace grid */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.marketplace-card {
  background: rgba(59, 73, 138, 0.5);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

.marketplace-card:hover {
  transform: translateY(-4px);
  background: rgba(59, 73, 138, 0.6);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
}

/* Icônes de navigation (taille) */
.nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Effet de néon subtil pour les titres */
h2, h3, h4 {
  text-shadow: 0px 2px 10px rgba(67, 56, 202, 0.4);
}

.marketplace-card img {
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4));
}

/* Responsivité : moins de 768px */
@media screen and (max-width: 768px) {
  /* Adjustement de la timeline */
  .timeline-container {
    width: 100%;
    padding-left: 85px;
    padding-right: 25px;
    left: 0;
    margin-bottom: 40px;
  }
  .timeline-container.right {
    left: 0;
    margin-left: 0;
  }
  .timeline-container::before {
    left: 35px;
    right: auto;
  }
  .timeline-container.right::before {
    left: 35px;
  }
  .timeline-number {
    left: -5px;
    right: auto;
    width: 48px;
    height: 48px;
    top: calc(50% - 24px);
  }
  .timeline-container.right .timeline-number {
    left: -5px;
  }

  /* Les particules pour mobile */
  .hero-gradient::before {
    width: 400%;
    height: 400%;
  }
  @keyframes moveParticles {
    from {
      transform: translate(0, 0);
    }
    to {
      transform: translate(-75%, -75%);
    }
  }
}
