/* ============================================================
   ACETERNITY UI — Animations partagées SiteAura
   ============================================================ */

/* ── 1. Shimmer sweep sur tous les boutons primaires ─────── */
.btn.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  animation: aceShimmer 2.8s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes aceShimmer {
  0%, 40%  { transform: translateX(-130%); }
  65%, 100% { transform: translateX(220%); }
}

/* ── 2. Moving border (carte Premium) ───────────────────── */
.moving-border-premium {
  background: linear-gradient(
    270deg,
    #6366f1, #818cf8, #22d3ee, #a78bfa, #6366f1
  ) !important;
  background-size: 300% 300% !important;
  animation: moveBorder 4s ease-in-out infinite;
}
@keyframes moveBorder {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── 3. Tilt 3D (JS-driven) ─────────────────────────────── */
.tilt-3d {
  will-change: transform;
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
}
.tilt-3d:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

/* ── 4. Lamp glow sous les titres de section ────────────── */
.lamp-line {
  display: block;
  height: 1px;
  margin: 0.6rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    #6366f1 30%,
    #22d3ee 70%,
    transparent
  );
  filter: blur(2.5px);
  animation: lampPulse 3s ease-in-out infinite;
}
@keyframes lampPulse {
  0%, 100% { opacity: 0.45; width: 160px; }
  50%       { opacity: 1;    width: 260px; }
}

/* ── 5. Aurora blobs (JS-injectés) ──────────────────────── */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  will-change: transform;
  z-index: 0;
}
.aurora-blob-1 {
  width: 480px; height: 480px;
  background: rgba(99, 102, 241, 0.1);
  animation: auroraF1 11s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 340px; height: 340px;
  background: rgba(34, 211, 238, 0.07);
  animation: auroraF2 14s ease-in-out infinite;
}
.aurora-blob-3 {
  width: 380px; height: 380px;
  background: rgba(168, 85, 247, 0.06);
  animation: auroraF3 12s ease-in-out infinite;
}
@keyframes auroraF1 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  33%      { transform: translate(-50%,-50%) translate(50px,-35px) scale(1.1); }
  66%      { transform: translate(-50%,-50%) translate(-25px, 25px) scale(0.94); }
}
@keyframes auroraF2 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  40%      { transform: translate(-50%,-50%) translate(-55px, 30px) scale(1.12); }
  70%      { transform: translate(-50%,-50%) translate(30px,-20px) scale(0.9); }
}
@keyframes auroraF3 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  30%      { transform: translate(-50%,-50%) translate(35px, 45px) scale(1.06); }
  70%      { transform: translate(-50%,-50%) translate(-40px,-15px) scale(0.93); }
}

/* ── 6. Spotlight overlay (à la carte + pricing) ────────── */
.ace-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* ── 7. Tracing beam latéral ────────────────────────────── */
.tracing-beam {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #6366f1 30%,
    #22d3ee 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0 1px 1px 0;
}
.tracing-beam.visible { opacity: 0.55; }

/* ── 8. Hover glow sur les cartes (à la carte + forfaits) ── */
.alacarte-card,
.pn-card,
.pn-option-card {
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
  position: relative;
  overflow: hidden;
}
.alacarte-card:hover,
.pn-card:not(.pn-card--featured):hover,
.pn-option-card:hover {
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.2),
    0 8px 32px rgba(99,102,241,0.1);
}

/* ── 11. Border beam sur le formulaire de contact ─────────── */
.form-beam {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(270deg, #6366f1, #22d3ee, #a78bfa, #6366f1);
  background-size: 300% 300%;
  animation: formBeamMove 3s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.form-beam--active { opacity: 0.55; }
@keyframes formBeamMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.form-beam-host { isolation: isolate; }
.form-beam-host > *:not(.form-beam) { position: relative; z-index: 1; }

/* ── 9. Focus glow sur les champs de formulaire ─────────── */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.5),
    0 0 24px rgba(99,102,241,0.14) !important;
  border-color: rgba(99,102,241,0.6) !important;
}

/* ── 10. Pulse ring sur le badge "Le plus populaire" ─────── */
.badge-pulse {
  position: relative;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: -1;
  filter: blur(6px);
  opacity: 0;
}
@keyframes badgePulse {
  0%, 100% { opacity: 0;    transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}
