/* Variables CSS */
:root {
  --primary-color: #ec4899;
  --secondary-color: #a855f7;
  --accent-color: #f97316;
  --dark-bg: #000000;
  --card-bg: #111827;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --border-color: #ec4899;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utilitaires d'animation */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
  opacity: 1; /* Changé de 0 à 1 pour voir les éléments */
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 1;
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 1;
}

/* Styles globaux */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: #000000;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Désactiver la sélection de texte */
::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

/* Désactiver le drag and drop des images */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Réactiver les clics sur les images cliquables */
.profile-card img,
.profile-card {
  pointer-events: auto;
}

/* Protection contre la copie */
.no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FantasyAI specific styles */
.fantasy-gradient {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Article/Review styles */
.prose {
  max-width: none;
}

.prose h2 {
  color: #ec4899;
  margin-bottom: 1.5rem;
}

.prose h3 {
  color: #a855f7;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Comparison table styles */
table {
  border-collapse: collapse;
}

table th {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}

table tr:hover {
  background: rgba(236, 72, 153, 0.05);
}

/* Comment form styles */
form input, form textarea {
  background: #1f2937;
  border: 1px solid #374151;
  transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Boutons CTA */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button-primary {
  background: var(--gradient);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.cta-button-primary:hover {
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.cta-button-secondary {
  background: transparent;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #000000 0%, #1a0a1a 50%, #0a0a0a 100%);
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 100%);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  }
  100% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  }
}

/* Countdown Timer */
.countdown-timer div {
  min-width: 50px;
}

/* Profile Cards */
.profile-card {
  background: linear-gradient(145deg, #1f2937, #111827);
  border: 1px solid rgba(236, 72, 153, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.05), rgba(168, 85, 247, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-card:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
  transform: translateY(-5px);
}

/* Éléments flottants */
.floating-element {
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
}

.floating-element:nth-child(2) {
  animation-delay: -2s;
}

.floating-element:nth-child(3) {
  animation-delay: -4s;
}

/* Cards avec effet de survol */
.feature-card, .review-card, .pricing-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before, .review-card::before, .pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before, .review-card:hover::before, .pricing-card:hover::before {
  opacity: 1;
}

.feature-card:hover, .review-card:hover, .pricing-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Effets de particules */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: particle-float 8s linear infinite;
  opacity: 0.3;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Modal Popup */
.popup-modal {
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.popup-modal.show {
  opacity: 1 !important;
  pointer-events: all !important;
}

.popup-modal.show > div {
  transform: scale(1) !important;
}

/* Styles spécifiques pour les vidéos dans le popup */
.popup-modal .profile-card {
  background: linear-gradient(145deg, #1f2937, #111827);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.popup-modal video {
  z-index: 1;
  position: relative;
}

.popup-modal .profile-card .relative {
  background: transparent !important;
  height: 24rem !important; /* Force h-96 equivalent */
}

.popup-modal .profile-card video,
.popup-modal .profile-card img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 3rem !important;
  }
  
  .hero-section p {
    font-size: 1.2rem !important;
  }
  
  .feature-card, .review-card, .pricing-card {
    margin-bottom: 1rem;
  }
  
  .floating-element {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2.5rem !important;
  }
  
  .cta-button-primary, .cta-button-secondary {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Animations d'entrée au scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Effets de typing */
.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-color); }
}

/* Hover effects pour les liens */
a {
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states pour l'accessibilité */
button:focus, a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 130, 246, 0.3);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Styles pour les tooltips */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}