/**
 * FEATURES - Bulles animées
 * ==========================
 * Design moderne avec bulles flottantes
 */

.features {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0a192f 0%, #1a2942 100%);
  overflow: hidden;
  position: relative;
}

.features__container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.features__header {
  text-align: center;
  margin-bottom: 5rem;
}

.features__subtitle {
  color: #64ffda;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.features__title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.features__description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Container des bulles */
.features__bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  min-height: 400px;
  position: relative;
}

/* Bulle individuelle */
.feature-bubble {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 50%;
  padding: 2rem;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  
  /* Animation float */
  animation: float 6s ease-in-out infinite;
}

/* Tailles variées des bulles */
.feature-bubble--small {
  width: 220px;
  height: 220px;
  padding: 1.5rem;
}

.feature-bubble--medium {
  width: 260px;
  height: 260px;
  padding: 2rem;
}

.feature-bubble--large {
  width: 320px;
  height: 320px;
  padding: 2.5rem;
}

/* Délais d'animation variés */
.feature-bubble:nth-child(1) { animation-delay: 0s; }
.feature-bubble:nth-child(2) { animation-delay: 0.5s; }
.feature-bubble:nth-child(3) { animation-delay: 1s; }
.feature-bubble:nth-child(4) { animation-delay: 1.5s; }
.feature-bubble:nth-child(5) { animation-delay: 2s; }
.feature-bubble:nth-child(6) { animation-delay: 2.5s; }
.feature-bubble:nth-child(7) { animation-delay: 3s; }

/* Animation flottement */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* Hover effet */
.feature-bubble:hover {
  transform: scale(1.15) translateY(-10px) !important;
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  box-shadow: 0 20px 60px rgba(100, 255, 218, 0.3);
}

/* Icône */
.feature-bubble__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Valeur */
.feature-bubble__value {
  font-size: 2rem;
  font-weight: 700;
  color: #64ffda;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(100, 255, 218, 0.5);
  word-break: break-word;
}

/* Label */
.feature-bubble__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
  max-width: 100%;
}

/* Effet de lueur au fond */
.features::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-bubble--small {
    width: 160px;
    height: 160px;
  }
  
  .feature-bubble--medium {
    width: 190px;
    height: 190px;
  }
  
  .feature-bubble--large {
    width: 220px;
    height: 220px;
  }
  
  .feature-bubble__value {
    font-size: 2rem;
  }
  
  .feature-bubble__label {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 4rem 1rem;
  }
  
  .features__title {
    font-size: 2rem;
  }
  
  .features__bubbles {
    gap: 1rem;
    min-height: auto;
  }
  
  .feature-bubble--small,
  .feature-bubble--medium,
  .feature-bubble--large {
    width: 150px;
    height: 150px;
    padding: 1.5rem;
  }
  
  .feature-bubble__icon {
    font-size: 2.5rem;
  }
  
  .feature-bubble__value {
    font-size: 1.8rem;
  }
  
  .feature-bubble__label {
    font-size: 0.85rem;
  }
}