/* ========================================
   HERO SECTION EPIC - STYLES
   ======================================== */

/* Language Selector */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-selector a {
  display: block;
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.language-selector a:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: grayscale(0%);
}

.language-selector a.active {
  opacity: 1;
  filter: grayscale(0%);
}


/* Lien Connexion dans language-selector */
.language-selector .login-link {
  display: block;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.language-selector .login-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.language-selector img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Container */
.hero-epic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
}

/* Animated Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: -10%;
  right: -10%;
  animation-delay: 3s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 30%;
  right: 20%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, 50px) scale(1.1); }
  50% { transform: translate(-30px, 80px) scale(0.9); }
  75% { transform: translate(40px, -40px) scale(1.05); }
}

/* Grid Pattern */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

/* Publico le Poulpe Mascot */
.publico-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.publico-img {
  width: 280px;
  height: auto;
  animation: publicoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(102, 126, 234, 0.6));
  transition: transform 0.3s ease;
}

.publico-img:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 25px 80px rgba(240, 147, 251, 0.8));
}

@keyframes publicoFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  25% { 
    transform: translateY(-15px) rotate(-2deg); 
  }
  50% { 
    transform: translateY(0px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-10px) rotate(2deg); 
  }
}

/* Logo */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-container img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(255,165,0,0.5));
}

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

/* Title */
.main-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  margin-bottom: 40px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #667eea 50%, #f093fb 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Dynamic Typing Text */
.typing-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.dynamic-text {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px rgba(102,126,234,0.5);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 1em;
  background: #667eea;
  margin-left: 8px;
  animation: blink 1s step-end infinite;
}

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

/* Subtitle */
.subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Stats Cards */
.stats-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 50px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card-epic {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-epic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(240,147,251,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-epic:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(102,126,234,0.5);
  box-shadow: 0 20px 60px rgba(102,126,234,0.3);
}

.stat-card-epic:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  position: relative;
}

.stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-epic {
  position: relative;
  padding: 20px 45px;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 10px 40px rgba(102,126,234,0.4);
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(102,126,234,0.6);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(102,126,234,0.5);
  transform: translateY(-3px);
}

/* Free Trial Badge */
.trial-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  color: rgba(255,255,255,0.1);
  animation: floatIcon 15s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(90deg); }
  50% { transform: translate(-20px, 20px) rotate(180deg); }
  75% { transform: translate(40px, 10px) rotate(270deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: 10px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite;
  color: #667eea;
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 2s infinite;
  color: #f093fb;
  z-index: -2;
}

@keyframes glitch-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .language-selector {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .language-selector img {
    width: 22px;
    height: 22px;
  }
  
  .language-selector .login-link {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .stats-showcase {
    grid-template-columns: 1fr;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-epic {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .logo-container img {
    width: 80px;
  }

  .publico-img {
    width: 180px;
  }

  .typing-container {
    height: 140px;
  }

  .dynamic-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .language-selector {
    top: 8px;
    right: 8px;
    padding: 6px 8px;
    gap: 6px;
  }

  .language-selector img {
    width: 18px;
    height: 18px;
  }
  
  .language-selector .login-link {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
}