/* ============================================
   WELCOME PAGE - VIBRANT REDESIGN
   ============================================ */

/* --- Animations maintenant dans _animations.css --- */
/* fadeIn, slideUp, bounceIn, float sont centralisés */

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-accent-rgb), 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(var(--primary-accent-rgb), 0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}
.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}
.animate-slide-up-delay {
  animation: slideUp 0.8s ease-out 0.2s both;
}
.animate-slide-up-delay-2 {
  animation: slideUp 0.8s ease-out 0.4s both;
}
.animate-bounce-in {
  animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Hero Section --- */

/* Decorative Background Elements */

.hero-title-group {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
}

/* Specific fix for the centered class mentioned by user */
.hero-title-group.centered {
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: center !important;
}

/* Re-apply animation separately to avoid conflict */

.hero-title-group h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-group .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-hero-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(var(--primary-accent-rgb), 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(var(--primary-accent-rgb), 0.5);
}

/* --- Journey Section (Nouveau Design Mon Parcours) --- */
.welcome-journey-section {
  margin-bottom: 3rem;
}

.journey-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.journey-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-accent) 0%, #667eea 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(var(--primary-accent-rgb), 0.3);
}

.journey-icon i {
  width: 28px;
  height: 28px;
}

.journey-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.journey-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.journey-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.journey-progress-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.journey-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.journey-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.journey-percentage {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-accent), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.journey-count {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--success-color);
  line-height: 1;
}

.journey-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.journey-divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

.journey-progress-bar {
  position: relative;
}

.journey-progress-track {
  width: 100%;
  height: 12px;
  background: var(--bg-alt);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.journey-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-accent) 0%,
    #667eea 50%,
    var(--success-color) 100%
  );
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(var(--primary-accent-rgb), 0.4);
}

.journey-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Ancien style progress (compatibilité) */

/* --- Stats Grid --- */
.welcome-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card-modern {
  background: var(--bg-content);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Specific Colors for Stats */
.stat-success {
  --stat-color: var(--success-color);
  --stat-bg: var(--success-bg);
}
.stat-warning {
  --stat-color: var(--warning-color);
  --stat-bg: var(--warning-bg);
}
.stat-info {
  --stat-color: var(--info-color);
  --stat-bg: var(--info-bg);
}

.stat-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--stat-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-modern:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--stat-bg);
  color: var(--stat-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.stat-card-modern:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-headings);
  margin: 0;
  line-height: 1;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* --- Objectives Section --- */
.welcome-section {
  margin-bottom: 4rem;
}

.section-header-modern {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-header-modern i {
  color: var(--primary-accent);
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.section-header-modern h2 {
  font-size: 2rem;
  margin: 0;
}

.objective-card {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.objective-card:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 10px 30px -10px rgba(var(--primary-accent-rgb), 0.15);
  transform: translateY(-5px);
}

.objective-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.objective-card:hover .objective-icon {
  background: var(--primary-accent);
  color: white;
}

.objective-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-headings);
}

.objective-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Timeline Section --- */
.steps-timeline {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 3rem;
}

.step-connector {
  display: flex;
  align-items: center;
  color: var(--primary-accent);
  opacity: 0.4;
}

.step-connector i {
  width: 18px;
  height: 18px;
}

.timeline-step {
  position: relative;
  width: 240px;
  height: 280px;
  background: linear-gradient(
    145deg,
    var(--bg-content) 0%,
    var(--bg-body) 100%
  );
  border: none;
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(var(--primary-accent-rgb), 0.15);
}

.timeline-step .step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-accent) 0%, #818cf8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: absolute;
  top: -14px;
  right: -10px;
  border: 4px solid var(--bg-body);
  box-shadow: 0 4px 12px rgba(var(--primary-accent-rgb), 0.4);
  z-index: 2;
}

.timeline-step .step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-accent-rgb), 0.1) 0%,
    rgba(var(--primary-accent-rgb), 0.05) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-accent);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.timeline-step:hover .step-icon {
  transform: scale(1.1);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-accent-rgb), 0.15) 0%,
    rgba(var(--primary-accent-rgb), 0.08) 100%
  );
}

.timeline-step .step-icon i {
  width: 32px;
  height: 32px;
}

.timeline-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-headings);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.timeline-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.timeline-step:hover .step-icon {
  color: var(--primary-accent);
}

/* --- CTA Section --- */

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(5px);
}

.cta-icon i {
  width: 40px;
  height: 40px;
  color: white;
}

.cta-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: #ffffff !important;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 1;
  font-weight: 500;
}

.btn-discord {
  background: white;
  color: #5865f2;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

/* --- Objectives Section V2 --- */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

@media (min-width: 1200px) {
  .objectives-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.objective-card {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.objective-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), #667eea);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.objective-card:hover::before {
  opacity: 1;
}

.objective-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-alt);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.objective-card:hover .objective-icon {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
  transform: rotate(5deg);
}

.objective-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-headings);
  font-weight: 700;
}

.objective-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Timeline Section V2 --- */
.steps-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}

.timeline-step {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.timeline-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.timeline-step:hover .step-icon {
  background: var(--primary-accent);
  color: white;
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-headings);
  font-weight: 700;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-color);
  padding-top: 3rem;
}

.step-connector i {
  width: 24px;
  height: 24px;
}

/* --- CTA Section V2 --- */
.cta-card {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border-radius: 30px;
  padding: 4rem 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(88, 101, 242, 0.5);
}

.cta-background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.cta-background-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-background-shapes .shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.cta-background-shapes .shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.cta-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}

.cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon i {
  width: 32px;
  height: 32px;
  color: white;
}

.cta-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.cta-text p {
  font-size: 1.1rem;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-right {
  flex-shrink: 0;
}

.btn-discord {
  background: white;
  color: #5865f2;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-discord:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.btn-discord i {
  width: 20px;
  height: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title-group h1 {
    font-size: 2.5rem;
  }

  .steps-timeline,
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-timeline {
    flex-direction: column;
    align-items: stretch;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-connector {
    display: none;
  }

  .timeline-step .step-number {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
  }

  .cta-card {
    padding: 3rem 1.5rem;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-left {
    flex-direction: column;
    align-items: center;
  }

  .cta-text h2 {
    font-size: 1.8rem;
  }

  /* Journey section responsive */
  .journey-header-centered {
    gap: 0.75rem;
  }

  .journey-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .journey-divider {
    width: 50px;
    height: 1px;
  }

  .journey-percentage,
  .journey-count {
    font-size: 2rem;
  }

  .welcome-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
