

.cta-ultra {
  position: relative;
  padding: var(--section-padding);
  overflow-x: clip;
  overflow-y: visible;
  background: transparent; 
  isolation: isolate;
}

@keyframes auroraShift {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(10px) scale(1);
    opacity: 0.8;
  }
}

.cta-orbs {
  position: absolute;
  inset: -100px 0; 
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
}

.cta-orb--1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3a86ff, #8338ec);
  top: -280px; 
  left: -100px;
  animation-delay: 0s;
}

.cta-orb--2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ff006e, #8338ec);
  bottom: -220px; 
  right: -100px;
  animation-delay: -7s;
}

.cta-orb--3 {
  width: 250px; 
  height: 250px;
  background: linear-gradient(135deg, #06d6a0, #3a86ff);
  top: 30%; 
  left: 60%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
}

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

.cta-ultra__wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-ultra__headline {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 30px;
  letter-spacing: -0.03em;
}

.cta-ultra__headline-line {
  display: block;
  overflow: hidden;
}

.cta-ultra__headline-text {
  display: inline-block;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(100%);
}

.cta-ultra__headline-accent {
  background: linear-gradient(135deg, #3af8ff 0%, #0077ff 50%, #f8f8f8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(100%);
}

/* Déclenché par JS via IntersectionObserver → classe .cta-revealed sur la section */
.cta-ultra.cta-revealed .cta-ultra__headline-text {
  animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cta-ultra.cta-revealed .cta-ultra__headline-line:nth-child(2) .cta-ultra__headline-text {
  animation-delay: 0.15s;
}

.cta-ultra.cta-revealed .cta-ultra__headline-accent {
  animation:
    textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
    gradientFlow 5s ease infinite 1.3s;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.cta-ultra__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 550px;
  margin: 0 auto 50px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

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

.cta-ultra__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.cta-magnetic-btn {
  position: relative;
  padding: 20px 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.cta-magnetic-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3a86ff, #8338ec);
  border-radius: 60px;
  z-index: -1;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s;
}

.cta-magnetic-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #0a0a0a;
  border-radius: 58px;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.cta-magnetic-btn:hover::after {
  opacity: 0;
}

.cta-magnetic-btn:hover {
  transform: scale(1.05);
}

.cta-magnetic-btn__icon {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.cta-magnetic-btn:hover .cta-magnetic-btn__icon {
  transform: translateX(5px);
}

.cta-ghost-btn {
  position: relative;
  padding: 20px 40px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.cta-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-ultra__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.cta-ultra__badge-dot {
  width: 8px;
  height: 8px;
  background: #06d6a0;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@media (min-width: 768px) {
  .cta-ultra {
    padding: 180px 0;
  }

  .cta-orb--1 {
    width: 600px;
    height: 600px;
  }

  .cta-orb--2 {
    width: 450px;
    height: 450px;
  }

  .cta-orb--3 {
    width: 350px;
    height: 350px;
  }

  .cta-magnetic-btn {
    padding: 24px 60px;
    font-size: 1.2rem;
  }
}

@media (min-width: 1024px) {
  .cta-ultra {
    padding: 220px 0;
  }

  .cta-ultra__subtitle {
    font-size: 1.5rem;
  }
}
