/* ==================================================================
   BLUESTIFT - HERO SECTION v5.1 (SIMPLIFIED)
   Simple hero with gradient background + glassmorphism card
   White text, clear button hierarchy
   ================================================================== */

/* MAIN CONTENT WRAPPER - GLOBAL GRADIENT BACKGROUND */
.main-content-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible; /* Permet au contenu de définir la hauteur */
}

/* ANIMATED GRADIENT BACKGROUND - Applied to wrapper */
.main-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  background: linear-gradient(
    45deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #667eea 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
}

/* GRADIENT ANIMATION */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* DEPTH OVERLAY - linear pour éviter les variations de luminosité verticales */
.main-content-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.12) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* HERO CONTAINER */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: transparent;
  z-index: 1;
}

/* HERO CONTENT - GLASSMORPHISM CARD */
.hero-content {
  max-width: 900px;
  z-index: 1;
  
  /* GLASSMORPHISM DÉLIMITATION */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 32px;
  padding: 60px 40px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.2);
  
  animation: fadeInUp 0.8s ease;
}

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

/* HERO TITLE - WHITE TEXT */
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: white; /* BLANC */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* HERO SUBTITLE - WHITE TEXT */
.hero p {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95); /* BLANC */
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* CTA BUTTONS CONTAINER */
.cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 40px;
}

/* BUTTON BASE STYLE */
.btn-primary,
.btn-secondary,
.btn-test-lesson {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  
  /* GOOGLE TRANSLATE FIX - Natural wrapping */
  min-width: 150px; /* Largeur minimale */
  max-width: 280px; /* Largeur maximale */
  text-align: center;
  white-space: normal; /* Permet le retour à la ligne naturel */
  word-wrap: break-word; /* Coupe les mots longs si nécessaire */
  line-height: 1.4; /* Meilleur espacement pour texte multiligne */
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* PRIMARY BUTTON - Blue solid */
.btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* SECONDARY BUTTON - Light gray */
.btn-secondary {
  background: #e5e7eb;
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* TEST LESSON BUTTON - Gradient */
.btn-test-lesson {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-test-lesson:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  filter: brightness(1.1);
}

/* SOCIAL LINKS */
.socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.socials a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* DARK MODE */
body.dark-theme .main-content-wrapper::before {
  background: linear-gradient(
    45deg,
    #1a1a2e 0%,
    #16213e 25%,
    #0f3460 50%,
    #533483 75%,
    #1a1a2e 100%
  );
}

body.dark-theme .main-content-wrapper::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

body.dark-theme .hero h1 {
  color: white;
}

body.dark-theme .hero p {
  color: rgba(255, 255, 255, 0.9);
}

/* SOCIAL BUTTONS - Gardent la couleur blanche en dark mode */
body.dark-theme .socials a {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

body.dark-theme .socials a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-content-wrapper {
    min-height: auto; /* Permet au contenu de définir la hauteur */
  }

  .hero {
    min-height: 90vh;
    padding: 60px 20px 40px;
  }

  .hero-content {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 30px;
  }

  .cta {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .btn-test-lesson {
    width: 100%;
    min-width: unset;
  }

  .socials {
    gap: 16px;
  }

  .socials a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 30px;
  }

  .hero-content {
    padding: 32px 20px;
  }

  .socials a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ==========================================
   ANIMATED ORBS - WAVY PREMIUM FEEL
   Blobs flottants style Stripe / Linear
   ========================================== */

.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Orbe 1 – Bleu/violet, coin haut-droit */
.bg-orbs::before {
  content: '';
  position: absolute;
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.45) 0%, transparent 70%);
  top: -15%;
  right: -15%;
  filter: blur(55px);
  animation: orb-drift-1 22s ease-in-out infinite;
  will-change: transform;
}

/* Orbe 2 – Cyan/bleu, coin bas-gauche */
.bg-orbs::after {
  content: '';
  position: absolute;
  width: min(55vw, 550px);
  height: min(55vw, 550px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.35) 0%, transparent 70%);
  bottom: 15%;
  left: -12%;
  filter: blur(65px);
  animation: orb-drift-2 28s ease-in-out infinite;
  will-change: transform;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-3vw, 5vh) scale(1.08); }
  66%       { transform: translate(2vw, -4vh) scale(0.94); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(4vw, -5vh) scale(1.06); }
  66%       { transform: translate(-3vw, 4vh) scale(0.92); }
}

/* Dark mode: orbes plus lumineux pour ressortir */
body.dark-theme .bg-orbs::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, transparent 70%);
}

body.dark-theme .bg-orbs::after {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.45) 0%, transparent 70%);
}

/* Mobile: orbes plus petits pour économiser le GPU */
@media (max-width: 768px) {
  .bg-orbs::before {
    width: min(80vw, 400px);
    height: min(80vw, 400px);
    filter: blur(40px);
    animation-duration: 30s;
  }

  .bg-orbs::after {
    width: min(70vw, 350px);
    height: min(70vw, 350px);
    filter: blur(50px);
    animation-duration: 35s;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .main-content-wrapper::before {
    animation: none;
  }

  .hero-content {
    animation: none;
  }

  .bg-orbs::before,
  .bg-orbs::after {
    animation: none;
  }
}