/* La Suite Gagnante — V5.8 : mouvements décoratifs discrets.
   CSS exclusivement : ni montants, ni inscriptions, ni logique de jeu modifiés.
   Les animations restent à l'arrière-plan et s'arrêtent si les mouvements sont réduits. */

/* 1 — Accueil : les ondes déjà présentes dans le jackpot se déplacent lentement.
   La boule possède sa propre animation V5.7, volontairement inchangée. */
body.lsg-page-home .lsg-modern-hero::after {
  animation: lsg-v58-hero-ripples 19s ease-in-out infinite;
  transform-origin: 48% 54%;
}
body.lsg-page-home .lsg-modern-hero::before {
  animation: lsg-v58-hero-halo 17s ease-in-out infinite;
}
@keyframes lsg-v58-hero-ripples {
  0%,100% { translate: 0 0; rotate: -1deg; opacity: .68; }
  50% { translate: -11px -9px; rotate: 2deg; opacity: 1; }
}
@keyframes lsg-v58-hero-halo {
  0%,100% { translate: 0 0; opacity: .75; }
  50% { translate: -14px 9px; opacity: 1; }
}

/* 2 — Accueil : un reflet nacré traverse occasionnellement la carte promotionnelle.
   Ce reflet n'intercepte jamais les clics. */
body.lsg-page-home .lsg-modern-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.lsg-page-home .lsg-modern-promo::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -60%; bottom: -60%; left: -44%;
  width: 27%;
  transform: skewX(-21deg) translateX(-170%);
  background: linear-gradient(90deg, transparent, rgba(255,232,174,.08) 24%, rgba(255,239,194,.40) 53%, rgba(255,255,255,.06) 80%, transparent);
  animation: lsg-v58-promoshine 13s ease-in-out infinite;
}
body.lsg-page-home .lsg-modern-promo > * { position: relative; z-index: 1; }
@keyframes lsg-v58-promoshine {
  0%,54% { transform: skewX(-21deg) translateX(-170%); opacity: 0; }
  59% { opacity: .8; }
  73% { transform: skewX(-21deg) translateX(670%); opacity: .85; }
  78%,100% { transform: skewX(-21deg) translateX(670%); opacity: 0; }
}

/* 3 — Accueil : les pictos Avantage+ et Plus semblent vivants, sans tourner en permanence. */
body.lsg-page-home .lsg-modern-benefits .lsg-modern-feature-art,
body.lsg-page-home .lsg-modern-plus .lsg-modern-feature-art {
  animation: lsg-v58-logo-wink 9.5s ease-in-out infinite;
  transform-origin: 50% 60%;
}
body.lsg-page-home .lsg-modern-plus .lsg-modern-feature-art { animation-delay: -4.6s; }
@keyframes lsg-v58-logo-wink {
  0%,32%,71%,100% { translate: 0 0; rotate: 0deg; scale: 1; }
  43% { translate: 0 -4px; rotate: -5deg; scale: 1.055; }
  54% { translate: 0 -2px; rotate: 3deg; scale: 1.025; }
}
/* La petite couronne du badge Jackpot reste fixe, seul le pictogramme des cartes bouge. */

/* 4 — Tirages spéciaux : vagues dorées et cercles d'arrière-plan vivants.
   Les cartes gardent exactement les dimensions V5.5. */
body.lsg-page-special .lsg-sp-hero::before { animation: lsg-v58-special-wave 17s ease-in-out infinite; }
body.lsg-page-special .lsg-sp-hero::after { animation: lsg-v58-special-ring 20s ease-in-out infinite; }
body.lsg-page-special .lsg-sp-card::before { animation: lsg-v58-special-wave 18s ease-in-out infinite; }
body.lsg-page-special .lsg-sp-card::after { animation: lsg-v58-special-ring 22s ease-in-out infinite; }
body.lsg-page-special .lsg-sp-card:nth-child(2n)::before { animation-delay: -8s; }
body.lsg-page-special .lsg-sp-card:nth-child(2n)::after { animation-delay: -11s; }
@keyframes lsg-v58-special-wave {
  0%,100% { translate: 0 0; opacity: .66; }
  50% { translate: 12px -8px; opacity: 1; }
}
@keyframes lsg-v58-special-ring {
  0%,100% { scale: 1; opacity: .68; }
  50% { scale: 1.045; opacity: 1; }
}

/* Le cadeau de la bannière flotte avec une faible amplitude, indépendante du transform existant. */
body.lsg-page-special .lsg-sp-hero-art {
  animation: lsg-v58-gift-float 6.4s ease-in-out infinite;
}
@keyframes lsg-v58-gift-float {
  0%,100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 0 -5px; rotate: 4deg; }
}

/* Étoile du coût Avantage+ : petit éclat doré à intervalles espacés. */
body.lsg-page-special .lsg-sp-cost-icon {
  animation: lsg-v58-gold-sparkle 10s ease-in-out infinite;
}
body.lsg-page-special .lsg-sp-card:nth-child(2n) .lsg-sp-cost-icon { animation-delay: -5s; }
@keyframes lsg-v58-gold-sparkle {
  0%,37%,63%,100% { filter: none; scale: 1; }
  46% { filter: brightness(1.23) drop-shadow(0 0 5px rgba(255,220,122,.62)); scale: 1.12; }
  53% { filter: brightness(1.05); scale: 1.02; }
}

/* 5 — Page Jouer : l'éclairage déjà existant dans la carte jackpot se déplace à peine. */
body.lsg-page-play .lsg-play-jackpot::before {
  animation: lsg-v58-play-light 16s ease-in-out infinite;
}
@keyframes lsg-v58-play-light {
  0%,100% { translate: 0 0; opacity: .65; }
  50% { translate: 11px 3px; opacity: 1; }
}

/* 6 — Avantage+ et Pack Plus : halos internes, sans déplacer les textes ni les boutons. */
body.lsg-page-avantages .wallet-panel,
body.lsg-page-packs .plan-card.plan-plus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.lsg-page-avantages .wallet-panel::before,
body.lsg-page-packs .plan-card.plan-plus::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 210px;
  height: 210px;
  top: -105px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,203,109,.20), rgba(255,239,196,.06) 57%, transparent 70%);
  animation: lsg-v58-soft-spot 16s ease-in-out infinite;
}
body.lsg-page-packs .plan-card.plan-plus::before {
  background: radial-gradient(circle, rgba(181,146,237,.19), rgba(228,204,255,.05) 57%, transparent 70%);
  animation-delay: -5s;
}
body.lsg-page-avantages .wallet-panel > *,
body.lsg-page-packs .plan-card.plan-plus > * { position: relative; z-index: 1; }
@keyframes lsg-v58-soft-spot {
  0%,100% { translate: 0 0; opacity: .7; }
  50% { translate: -20px 24px; opacity: 1; }
}

/* 7 — Aucun déplacement, ni ombre de survol des cartes.
   Les interactions et animations de décor restent inchangées. */

/* Le geste mobile reste calme : animations de fond plus discrètes, aucune carte qui saute au défilement. */
@media (max-width:640px) {
  body.lsg-page-home .lsg-modern-hero::after,
  body.lsg-page-special .lsg-sp-card::before { animation-duration: 23s; }
  body.lsg-page-special .lsg-sp-hero-art { animation-duration: 7.5s; }
}

/* Respect des préférences d'accessibilité du téléphone et de l'ordinateur. */
@media (prefers-reduced-motion:reduce) {
  body.lsg-page-home .lsg-modern-hero::before,
  body.lsg-page-home .lsg-modern-hero::after,
  body.lsg-page-home .lsg-modern-promo::after,
  body.lsg-page-home .lsg-modern-benefits .lsg-modern-feature-art,
  body.lsg-page-home .lsg-modern-plus .lsg-modern-feature-art,
  body.lsg-page-special .lsg-sp-hero::before,
  body.lsg-page-special .lsg-sp-hero::after,
  body.lsg-page-special .lsg-sp-card::before,
  body.lsg-page-special .lsg-sp-card::after,
  body.lsg-page-special .lsg-sp-hero-art,
  body.lsg-page-special .lsg-sp-cost-icon,
  body.lsg-page-play .lsg-play-jackpot::before,
  body.lsg-page-avantages .wallet-panel::before,
  body.lsg-page-packs .plan-card.plan-plus::before {
    animation:none !important;
  }

}
