/* ── ZIK — Animations & effets Aurora Glass ─────────────────────────────────
   Chargé globalement. Contient @keyframes, aurora blobs, scroll reveal,
   shimmer, dot grid. Respecte prefers-reduced-motion.
──────────────────────────────────────────────────────────────────────────── */

/* ── @keyframes ── */
@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}
@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(22px, -16px) scale(1.04);
  }
  66% {
    transform: translate(-14px, 12px) scale(0.97);
  }
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.82);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Texte gradient animé (shimmer) ── */
.text-gradient {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent2) 50%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── Aurora blobs ── */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: blob-float 9s ease-in-out infinite;
}
.aurora-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgb(var(--accent-rgb) / 0.12) 0%,
    transparent 65%
  );
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}
.aurora-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgb(var(--accent2-rgb) / 0.09) 0%,
    transparent 65%
  );
  top: 80px;
  right: -120px;
  animation-delay: -4s;
}
.aurora-blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgb(var(--accent-rgb) / 0.06) 0%,
    transparent 65%
  );
  bottom: -100px;
  left: 35%;
  animation-delay: -7s;
}
/* Désactiver les blobs sur mobile pour les perfs */
@media (max-width: 480px) {
  .aurora-blob {
    display: none;
  }
}

/* ── Dot grid ── */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgb(var(--c-glass) / 0.045) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
}
.dot-grid-fade {
  mask-image: radial-gradient(
    ellipse 85% 70% at 50% 30%,
    black 0%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 85% 70% at 50% 30%,
    black 0%,
    transparent 75%
  );
}

/* ── Scroll reveal ── */
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0ms),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0ms);
}
.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Badge live dot ── */
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Section hero base ── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── Glass surface ── */
.glass {
  background: rgb(var(--c-glass) / 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--c-glass) / 0.1),
    transparent
  );
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

/* ── Respect prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .will-reveal {
    transition: none;
  }
  .aurora-blob {
    animation: none;
  }
  .text-gradient {
    animation: none;
  }
  .live-dot {
    animation: none;
  }
}
