/* LSG V5.9 — animations simples et plus visibles sur TOUTES les pages publiques.
   Ajout complémentaire à V5.8. Pas de JS, aucune règle métier modifiée.
   Mouvements lents, petites amplitudes, contrastes préservés et clics libres. */

/* 01 — Le logo officiel LSG reste statique sur toutes les pages. */
/* Le petit éclat du compteur de points, sans animer le chiffre. */
body.lsg-app .site-header .points-pill > span:first-child {
  display:inline-block;
  transform-origin:50% 50%;
  animation:lsg-v59-points-twinkle 8.8s ease-in-out infinite;
}
@keyframes lsg-v59-points-twinkle {
  0%,36%,67%,100% {scale:1;filter:none;rotate:0deg;}
  46% {scale:1.27;filter:drop-shadow(0 0 3px rgba(225,174,60,.72));rotate:9deg;}
  56% {scale:1.07;filter:none;rotate:-5deg;}
}

/* 02 — Toutes les pages de contenu : halo de lumière discret derrière les titres,
   sans changer la place des titres et sans recouvrir les liens/boutons. */
body.lsg-app main :is(.page-intro,.page-heading,.lsg-page-intro) {
  position:relative;
  isolation:isolate;
}
body.lsg-app main :is(.page-intro,.page-heading,.lsg-page-intro)::after {
  content:"";
  position:absolute;
  z-index:-1;
  top:-38px;
  right:4%;
  width:clamp(100px,19vw,220px);
  height:clamp(95px,16vw,170px);
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(172,131,230,.17) 0%,rgba(225,199,255,.09) 45%,transparent 74%);
  opacity:.72;
  pointer-events:none;
  animation:lsg-v59-intro-glow 12s ease-in-out infinite;
}
@keyframes lsg-v59-intro-glow {
  0%,100% {translate:0 0;scale:.93;opacity:.58;}
  50% {translate:-22px 8px;scale:1.12;opacity:1;}
}

/* 03 — Aucune animation de soulèvement au survol des cartes.
   Les éléments interactifs conservent leur comportement d'origine. */

/* 04 — Quelques cartes principales apparaissent doucement une seule fois à l'ouverture.
   Pas d'animation permanente des formulaires, des résultats et des tableaux. */
body.lsg-app main > :is(.page-intro,.page-heading,.lsg-page-intro),
body.lsg-app main :is(.lsg-modern-data-card,.gain-hero,.draws-card-wrap,.lsg-sp-info) {
  animation:lsg-v59-arrive .7s cubic-bezier(.22,.9,.28,1) both;
}
@keyframes lsg-v59-arrive {
  from {opacity:.63;translate:0 9px;}
  to {opacity:1;translate:0 0;}
}

/* 05 — Accueil : ondes et halo de jackpot plus visibles que dans la V5.8,
   sans toucher à la boule dorée dont le mouvement V5.7 est déjà calibré. */
body.lsg-page-home .lsg-modern-hero::after {
  animation:lsg-v59-home-ripple 14.5s ease-in-out infinite !important;
}
body.lsg-page-home .lsg-modern-hero::before {
  animation:lsg-v59-home-halo 13.5s ease-in-out infinite !important;
}
@keyframes lsg-v59-home-ripple {
  0%,100% {translate:0 0;rotate:-2deg;scale:.97;opacity:.68;}
  50% {translate:-23px -14px;rotate:3deg;scale:1.045;opacity:1;}
}
@keyframes lsg-v59-home-halo {
  0%,100% {translate:0 0;scale:.96;opacity:.72;}
  50% {translate:-22px 13px;scale:1.09;opacity:1;}
}
body.lsg-page-home .lsg-modern-promo::after {
  animation-duration:11.5s !important;
}
body.lsg-page-home :is(.lsg-modern-benefits,.lsg-modern-plus) .lsg-modern-feature-art {
  animation:lsg-v59-feature-bob 8.2s ease-in-out infinite !important;
}
body.lsg-page-home .lsg-modern-plus .lsg-modern-feature-art {
  animation-delay:-3.8s !important;
}
@keyframes lsg-v59-feature-bob {
  0%,30%,75%,100% {translate:0 0;rotate:0deg;scale:1;}
  43% {translate:0 -7px;rotate:-7deg;scale:1.09;}
  56% {translate:0 -2px;rotate:5deg;scale:1.035;}
}

/* 06 — Spéciaux : vagues plus nettes + cadeau et étoiles plus vivants. */
body.lsg-page-special :is(.lsg-sp-hero,.lsg-sp-card)::before {
  animation:lsg-v59-special-wave 13.8s ease-in-out infinite !important;
}
body.lsg-page-special :is(.lsg-sp-hero,.lsg-sp-card)::after {
  animation:lsg-v59-special-ring 15.5s ease-in-out infinite !important;
}
body.lsg-page-special .lsg-sp-card:nth-child(2n)::before {animation-delay:-6.8s !important;}
body.lsg-page-special .lsg-sp-card:nth-child(2n)::after {animation-delay:-7.5s !important;}
@keyframes lsg-v59-special-wave {
  0%,100% {translate:0 0;opacity:.69;}
  50% {translate:20px -12px;opacity:1;}
}
@keyframes lsg-v59-special-ring {
  0%,100% {scale:.97;opacity:.66;}
  50% {scale:1.09;opacity:1;}
}
body.lsg-page-special .lsg-sp-hero-art {
  animation:lsg-v59-gift-bob 7.1s ease-in-out infinite !important;
}
@keyframes lsg-v59-gift-bob {
  0%,100% {translate:0 0;rotate:-5deg;}
  50% {translate:0 -9px;rotate:7deg;}
}
body.lsg-page-special .lsg-sp-cost-icon {
  animation:lsg-v59-sparkle 8.7s ease-in-out infinite !important;
}
@keyframes lsg-v59-sparkle {
  0%,33%,68%,100% {filter:none;scale:1;}
  46% {filter:brightness(1.3) drop-shadow(0 0 7px rgba(255,223,127,.62));scale:1.18;}
  56% {filter:brightness(1.07);scale:1.03;}
}

/* 07 — Jouer : accentuer légèrement l'éclairage du jackpot, pas les grilles. */
body.lsg-page-play .lsg-play-jackpot::before {
  animation:lsg-v59-play-light 12.8s ease-in-out infinite !important;
}
@keyframes lsg-v59-play-light {
  0%,100% {translate:0 0;opacity:.62;}
  50% {translate:22px 9px;opacity:1;}
}
body.lsg-page-play .lsg-play-burst {
  display:inline-block;
  animation:lsg-v59-sparkle 8.7s ease-in-out infinite;
}

/* 08 — Avantage+ et Packs : halos un peu plus généreux mais toujours lents. */
body:is(.lsg-page-avantages,.lsg-page-packs) :is(.wallet-panel,.plan-card.plan-plus)::before {
  animation:lsg-v59-panel-spot 12.8s ease-in-out infinite !important;
}
@keyframes lsg-v59-panel-spot {
  0%,100% {translate:0 0;scale:.95;opacity:.65;}
  50% {translate:-36px 31px;scale:1.16;opacity:1;}
}

/* 09 — Gagnants et résultats : décor discret sur les bandeaux,
   sans déplacer les chiffres, ni les colonnes du tableau. */
body.lsg-page-winners .gain-hero,
body.lsg-page-draws .draws-card-wrap {
  position:relative;
  isolation:isolate;
}
body.lsg-page-winners .gain-hero::after,
body.lsg-page-draws .draws-card-wrap::after {
  content:"";
  position:absolute;
  z-index:-1;
  top:-46px;
  right:-15px;
  width:155px;
  height:155px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(244,213,152,.19),rgba(207,175,242,.10) 46%,transparent 73%);
  pointer-events:none;
  animation:lsg-v59-result-spot 11.5s ease-in-out infinite;
}
@keyframes lsg-v59-result-spot {
  0%,100% {translate:0 0;scale:.95;opacity:.64;}
  50% {translate:-18px 13px;scale:1.18;opacity:1;}
}

/* 10 — Mobile : laisser un mouvement présent mais moins ample, sans animations de cartes
   pendant le scroll et sans recouvrir la navigation fixe. */
@media (max-width:640px) {
  body.lsg-app main :is(.page-intro,.page-heading,.lsg-page-intro)::after {
    width:100px;height:100px;right:2%;top:-20px;
    animation-duration:15s;
  }
  body.lsg-page-home .lsg-modern-hero::after {animation-duration:17s !important;}
  body.lsg-page-special :is(.lsg-sp-hero,.lsg-sp-card)::before {animation-duration:16.5s !important;}
  body.lsg-page-special .lsg-sp-hero-art {animation-duration:8.2s !important;}
  body.lsg-app main :is(.page-panel,.lsg-sp-card,.draws-card-wrap,.gain-mini-card,.lsg-modern-feature) {
    translate:none;
  }
}

/* Accessibilité : le réglage Réduire les animations les désactive réellement. */
@media (prefers-reduced-motion:reduce) {
  body.lsg-app .site-header .points-pill > span:first-child,
  body.lsg-app main :is(.page-intro,.page-heading,.lsg-page-intro)::after,
  body.lsg-app main > :is(.page-intro,.page-heading,.lsg-page-intro),
  body.lsg-app main :is(.lsg-modern-data-card,.gain-hero,.draws-card-wrap,.lsg-sp-info),
  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 :is(.lsg-modern-benefits,.lsg-modern-plus) .lsg-modern-feature-art,
  body.lsg-page-special :is(.lsg-sp-hero,.lsg-sp-card)::before,
  body.lsg-page-special :is(.lsg-sp-hero,.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-play .lsg-play-burst,
  body:is(.lsg-page-avantages,.lsg-page-packs) :is(.wallet-panel,.plan-card.plan-plus)::before,
  body.lsg-page-winners .gain-hero::after,
  body.lsg-page-draws .draws-card-wrap::after {
    animation:none !important;
    translate:none !important;
    rotate:none !important;
    scale:1 !important;
    opacity:1;
  }
}
