/* ================================
   MODAL NEWSLETTER
=============================== */

.newsletter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.newsletter-modal.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 76, 255, 0.3);
}

.newsletter-modal.active .newsletter-modal-content {
  transform: scale(1) translateY(0);
}

.newsletter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8a4cff 0%, #ff6b6b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 10px 30px rgba(138, 76, 255, 0.3);
}

.newsletter-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotate(90deg);
}

.newsletter-modal-body {
  padding: 30px;
  text-align: center;
}

.newsletter-modal-body h3 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #8a4cff 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-modal-body p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.newsletter-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.newsletter-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.newsletter-feature i {
  font-size: 20px;
  color: #8a4cff;
  width: 30px;
  text-align: center;
}

.newsletter-feature span {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.newsletter-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-style: italic;
  margin-top: 20px;
}

.newsletter-modal-footer {
  padding: 20px 30px 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.newsletter-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.newsletter-btn-primary {
  background: linear-gradient(135deg, #8a4cff 0%, #ff6b6b 100%);
  color: white;
  box-shadow: 0 5px 20px rgba(138, 76, 255, 0.3);
}

.newsletter-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 76, 255, 0.4);
}

.newsletter-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

/* Animation d'entrée des features */
.newsletter-feature.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .newsletter-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .newsletter-modal-header {
    padding: 20px 20px 15px;
  }
  
  .newsletter-modal-body {
    padding: 20px;
  }
  
  .newsletter-modal-body h3 {
    font-size: 24px;
  }
  
  .newsletter-modal-footer {
    flex-direction: column;
    padding: 15px 20px 20px;
  }
  
  .newsletter-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .newsletter-modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: none;
  }
  
  .newsletter-features {
    gap: 15px;
  }
  
  .newsletter-feature {
    padding: 12px;
  }
}

/* Animation de notification */
@keyframes notificationPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.newsletter-btn.notified {
  animation: notificationPulse 0.5s ease;
}

/* Effet de brillance */
.newsletter-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.newsletter-modal.active .newsletter-modal-content::before {
  left: 100%;
}
