/* Page Tarifs — effets « wow » */

.page-tarifs .pricing {
  position: relative;
  overflow: hidden;
}

.page-tarifs .pricing::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(124, 58, 237, 0.24), transparent 50%),
    radial-gradient(ellipse 45% 50% at 85% 60%, rgba(34, 211, 238, 0.14), transparent 45%),
    radial-gradient(ellipse 35% 35% at 50% 92%, rgba(232, 121, 249, 0.12), transparent 50%);
  animation: tarifs-aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.page-tarifs .pricing::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(124, 58, 237, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 58% at 50% 38%, black 10%, transparent 72%);
  animation: tarifs-grid-move 26s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes tarifs-aurora {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(3%, -2%) scale(1.07);
    opacity: 1;
  }
}

@keyframes tarifs-grid-move {
  to {
    background-position: 56px 56px;
  }
}

.page-tarifs .pricing .section-head,
.page-tarifs .pricing-showcase,
.page-tarifs .pricing > p {
  position: relative;
  z-index: 1;
}

.pricing-showcase {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 0.5rem 0.5rem;
}

.pricing-showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(130%, 820px);
  height: min(65vw, 480px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22) 0%, transparent 68%);
  animation: tarifs-pulse-floor 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes tarifs-pulse-floor {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.page-tarifs .pricing-stack {
  position: relative;
  z-index: 1;
}

/* Cartes : halo bordure + shine */
.page-tarifs .price-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: tarifs-card-border 5s ease-in-out infinite;
}

.page-tarifs .price-card:nth-child(1) {
  animation-delay: 0s;
}

.page-tarifs .price-card:nth-child(2) {
  animation-delay: 0.35s;
}

.page-tarifs .pricing-row--trio .price-card:nth-child(1) {
  animation-delay: 0.7s;
}

.page-tarifs .pricing-row--trio .price-card:nth-child(2) {
  animation-delay: 1.05s;
}

.page-tarifs .pricing-row--trio .price-card:nth-child(3) {
  animation-delay: 1.4s;
}

@keyframes tarifs-card-border {
  0%,
  100% {
    border-color: rgba(167, 139, 250, 0.22);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0), 0 16px 48px rgba(0, 0, 0, 0.25);
  }
  50% {
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 0 48px rgba(124, 58, 237, 0.22), 0 20px 56px rgba(0, 0, 0, 0.35);
  }
}

.page-tarifs .price-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(167, 139, 250, 0.55) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45), 0 0 72px rgba(124, 58, 237, 0.28) !important;
  animation-play-state: paused;
}

.page-tarifs .price-card .price-shine {
  position: absolute;
  top: -20%;
  left: -80%;
  width: 50%;
  height: 140%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: tarifs-shine-sweep 5s ease-in-out infinite;
}

@keyframes tarifs-shine-sweep {
  0%,
  55% {
    left: -80%;
  }
  80% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

.page-tarifs .price {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 32px rgba(124, 58, 237, 0.4);
  animation: tarifs-price-glow 3.5s ease-in-out infinite;
}

@keyframes tarifs-price-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}

.page-tarifs .price-card.featured {
  animation: tarifs-card-border 4s ease-in-out infinite, price-featured-halo 4.5s ease-in-out infinite,
    tarifs-featured-float 5s ease-in-out infinite;
}

@keyframes tarifs-featured-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.page-tarifs .price-card.featured:hover {
  animation-play-state: paused, paused, paused;
  transform: translateY(-12px) scale(1.03);
}

.page-tarifs .price-ddos {
  position: relative;
  z-index: 1;
  animation: tarifs-badge-pulse 3.5s ease-in-out infinite;
}

@keyframes tarifs-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.2);
  }
}

.page-tarifs .price-ddos--max {
  animation: tarifs-badge-max 2.8s ease-in-out infinite;
}

@keyframes tarifs-badge-max {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(167, 139, 250, 0);
    border-color: rgba(167, 139, 250, 0.45);
  }
  50% {
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.4);
    border-color: rgba(232, 121, 249, 0.55);
  }
}

.page-tarifs .price-card h3,
.page-tarifs .price-card ul {
  position: relative;
  z-index: 1;
}

.page-tarifs .price-card .btn {
  position: relative;
  z-index: 1;
}

.page-tarifs .ribbon {
  z-index: 3;
}

.pricing-floaties {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pricing-floaties span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0.5;
  animation: tarifs-floaty 15s ease-in-out infinite;
}

.pricing-floaties span:nth-child(1) {
  left: 6%;
  top: 18%;
  background: #22d3ee;
  box-shadow: 0 0 18px #22d3ee;
}

.pricing-floaties span:nth-child(2) {
  right: 10%;
  top: 35%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation-delay: -4s;
  animation-duration: 12s;
}

.pricing-floaties span:nth-child(3) {
  left: 48%;
  bottom: 12%;
  background: var(--violet-400);
  box-shadow: 0 0 14px var(--violet-400);
  animation-delay: -7s;
}

.pricing-floaties span:nth-child(4) {
  right: 28%;
  top: 12%;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  animation-duration: 18s;
}

@keyframes tarifs-floaty {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: translate(16px, -24px);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-tarifs .pricing::before,
  .page-tarifs .pricing::after,
  .pricing-showcase::before,
  .page-tarifs .price-card,
  .page-tarifs .price-card .price-shine,
  .page-tarifs .price,
  .page-tarifs .price-ddos,
  .page-tarifs .price-ddos--max,
  .page-tarifs .price-card.featured,
  .pricing-floaties span {
    animation: none !important;
  }

  .page-tarifs .price-card.featured:hover,
  .page-tarifs .price-card.featured {
    transform: none;
  }
}
