/* ============================================
   WEBDEM REFONTE 2026 - DESIGN MODERNE
   ============================================ */

/* ─── TIMELINE (Timeline.astro / processus.astro) ──────────────────────── */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-purple) 0%, var(--cyber-cyan) 100%);
    z-index: 0;
  }
}

.timeline-step {
  position: relative;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(0, 245, 255, 0.05) 100%);
  border: 2px solid rgba(107, 70, 193, 0.3);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  backdrop-filter: blur(10px);
}

.timeline-step:hover {
  transform: translateY(-8px);
  border-color: var(--cyber-cyan);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.2) 0%, rgba(0, 245, 255, 0.1) 100%);
}

.timeline-number {
  width: 70px;
  height: 70px;
  margin: -3.5rem auto 1.5rem;
  background: linear-gradient(135deg, var(--cyber-purple) 0%, var(--cyber-cyan) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 24px rgba(107, 70, 193, 0.5);
  position: relative;
  border: 4px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-number {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 12px 32px rgba(0, 245, 255, 0.6);
}

.timeline-step h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── TEMOIGNAGES ───────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}


.testimonial-card {
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(0, 245, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid rgba(107, 70, 193, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
  border-color: var(--cyber-cyan);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.testimonial-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(107, 70, 193, 0.15);
}

.testimonial-author strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-author span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

/* ─── BLOBS ANIMÉS HERO ─────────────────────────────────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 70, 193, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .timeline-container {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
  .timeline-step:hover .timeline-number {
    transform: scale(1.15);
  }
}
