/* LSG — correction finale V4.4 (26 novembre 2026).
 * Chargée APRÈS toutes les anciennes feuilles : ne touche pas au fonctionnement du jeu.
 * Objectifs : titres cohérents non rognés, jackpot lisible, orbe entière et favori épuré.
 */

/* TITRES — mêmes proportions sur les pages publiques. */
body.lsg-app :is(.page-heading,.page-intro,.lsg-page-intro,.winners-page-header){
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow:visible!important;
}
body.lsg-app :is(.page-heading h1,.page-intro h1,.lsg-page-intro h1,.winners-page-header h1,#draws-title,.lsg-testimonials-head h1,.form-card > .form-title,.auth-card > .form-title){
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  margin:0 auto 10px!important;
  padding:4px 0 .24em!important;
  overflow:visible!important;
  white-space:normal!important;
  text-overflow:clip!important;
  font-family:inherit!important;
  font-size:clamp(28px,3vw,34px)!important;
  font-weight:700!important;
  line-height:1.34!important;
  letter-spacing:-.028em!important;
  color:#4f46e5!important;
  background:none!important;
  background-image:none!important;
  background-clip:border-box!important;
  -webkit-background-clip:border-box!important;
  -webkit-text-fill-color:#4f46e5!important;
  text-shadow:none!important;
  text-wrap:balance;
}
body.lsg-app :is(.page-heading p,.page-intro p,.lsg-page-intro p){
  max-width:780px;
  margin-left:auto!important;
  margin-right:auto!important;
  line-height:1.55!important;
}
/* Une exception : le pseudo du joueur garde sa propre identité. */
body.lsg-page-account :is(.account-welcome-copy h1,.account-welcome.lsg-account-hero h1){
  width:auto!important;
  line-height:1.35!important;
  padding-bottom:.2em!important;
  overflow:visible!important;
}
/* Tirages : ancien titre hors du composant .page-heading, et navigation secondaire brute. */
body.lsg-page-draws .lsg-page-intro--title-only,
body.lsg-page-winners .winners-page-header{
  margin-bottom:12px!important;
  text-align:center!important;
}
body.lsg-page-draws #draws-title,
body.lsg-page-winners .winners-page-header h1{
  font-size:clamp(28px,3vw,34px)!important;
  line-height:1.34!important;
  padding-bottom:.24em!important;
  margin:0 auto 8px!important;
  overflow:visible!important;
  text-align:center!important;
}
body.lsg-page-draws .lsg-results-switch,
body.lsg-page-winners .lsg-results-switch{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap;
  gap:6px!important;
  max-width:max-content;
  margin:0 auto 18px!important;
  padding:5px!important;
  border:1px solid #e0e4ee;
  border-radius:14px;
  background:#fff;
}
body.lsg-page-draws .lsg-results-switch a,
body.lsg-page-winners .lsg-results-switch a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:37px;padding:8px 14px;
  border-radius:10px;
  text-decoration:none;
  color:#39435b;
  line-height:1.3;
}
body.lsg-page-draws .lsg-results-switch :is(.is-active,[aria-current="page"]),
body.lsg-page-winners .lsg-results-switch :is(.is-active,[aria-current="page"]){
  background:#6335c7!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-weight:700;
}

/* ACCUEIL V4.4 — violet MOYEN, sans zone quasi noire.
 * Le rendu reste violet/or mais s'éloigne volontairement du fond trop sombre de V4.3.
 */
body.lsg-page-home .lsg-modern-hero{
  background:
    radial-gradient(circle at 83% 22%,rgba(183,153,246,.25),transparent 43%),
    linear-gradient(126deg,#58419B 0%,#7757BA 52%,#59449B 100%) !important;
  color:#fff!important;
}
body.lsg-page-home .lsg-modern-hero::before{
  opacity:.24!important;
}
body.lsg-page-home .lsg-modern-hero-amount{
  color:#FFE4A3!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-text-stroke:0!important;
}
body.lsg-page-home .lsg-modern-hero-gift{
  color:#FFF0CE!important;
  text-shadow:none!important;
  filter:none!important;
  text-decoration-color:rgba(255,240,206,.7)!important;
}
body.lsg-page-home .lsg-modern-hero-gift:hover{color:#fff!important;text-decoration:underline!important}
/* La boule n'est pas une image : son ancien dégradé finissait en violet presque noir.
 * On remplace donc la MATIÈRE, pas seulement ses coordonnées. */
body.lsg-page-home .lsg-modern-hero .lsg-modern-hero-orb{
  box-sizing:border-box!important;
  right:28px!important;
  top:50%!important;
  transform:translateY(-50%) rotate(-11deg)!important;
  width:132px!important;
  height:132px!important;
  opacity:1!important;
  border:5px solid #F9D88C!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 31% 25%,#FFF9E7 0%,#F7DFAB 20%,#E4B85C 49%,#B67D28 76%,#E4BC6B 100%)!important;
  box-shadow:inset 5px 5px 13px rgba(255,250,229,.66),inset -7px -8px 13px rgba(99,57,20,.16),0 12px 23px rgba(41,23,79,.15)!important;
  display:grid!important;
  place-items:center!important;
  z-index:0!important;
  pointer-events:none;
}
body.lsg-page-home .lsg-modern-hero .lsg-modern-hero-orb span{
  display:block!important;
  font-size:66px!important;
  line-height:1!important;
  color:#553284!important;
  text-shadow:none!important;
  filter:none!important;
}

/* JOUER — bouton associé au jackpot, avec un espace clair et une favorite secondaire. */
body.lsg-page-play .lsg-jackpot-favorite-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:18px 30px!important;
  flex-wrap:wrap;
}
body.lsg-page-play .lsg-jackpot-favorite-row .jackpot-value{
  flex:0 0 auto;
  margin:4px 0!important;
  line-height:1.05!important;
}
body.lsg-page-play .lsg-play-favorite-quick{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:10px!important;
  margin:0!important;
  padding:2px 0 0!important;
}
body.lsg-page-play .lsg-play-favorite-quick .action{
  min-height:44px!important;
  padding:10px 18px!important;
  border-radius:12px!important;
  background:#6134bf!important;
  color:#fff!important;
  border:1px solid #6134bf!important;
  box-shadow:0 5px 12px rgba(62,41,121,.1)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.3!important;
}
body.lsg-page-play .lsg-play-favorite-quick .action:disabled{
  background:#e8e2f3!important;
  border-color:#ded4ed!important;
  color:#62469a!important;
  box-shadow:none!important;
  cursor:not-allowed;
  opacity:1!important;
}
body.lsg-page-play .lsg-play-favorite-quick small{
  display:block;
  color:#5f6980!important;
  font-size:12px!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
/* FAVORI — carte simple et courte, distincte de la grille à jouer. */
body.lsg-page-play .lsg-one-favorite{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(320px,1.25fr)!important;
  align-items:center!important;
  gap:14px 22px!important;
  min-height:0!important;
  margin:18px 0 0!important;
  padding:16px 18px!important;
  border:1px solid #dbe2ec!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 6px 17px rgba(28,40,69,.055)!important;
}
body.lsg-page-play .lsg-one-favorite-copy{display:flex!important;gap:12px!important;align-items:center!important;min-width:0!important}
body.lsg-page-play .lsg-favorite-symbol{
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  font-size:22px!important;border-radius:12px!important;
  background:#f1ecfa!important;color:#653bb2!important;
}
body.lsg-page-play .lsg-one-favorite h2{
  font-size:17px!important;line-height:1.35!important;margin:0 0 3px!important;
  padding:0!important;color:#202a42!important;
}
body.lsg-page-play .lsg-one-favorite p{
  font-size:12px!important;line-height:1.45!important;color:#667187!important;
}
body.lsg-page-play .lsg-one-favorite-digits{
  display:block!important;margin:5px 0 0!important;
  color:#5632a1!important;font-size:14px!important;letter-spacing:.09em;
}
body.lsg-page-play .lsg-one-favorite-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;min-width:0}
body.lsg-page-play .lsg-one-favorite-save{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
body.lsg-page-play .lsg-one-favorite-save input{
  width:119px!important;max-width:100%!important;min-height:42px!important;
  border:1px solid #cdd6e4!important;border-radius:11px!important;
  background:#fbfcfe!important;padding:8px 10px!important;
  font-size:15px!important;letter-spacing:.09em!important;color:#252e44!important;
}
body.lsg-page-play .lsg-one-favorite-save .action{
  min-height:42px!important;padding:9px 12px!important;
  border-radius:11px!important;font-size:12px!important;line-height:1.2!important;
}
body.lsg-page-play .lsg-favorite-delete{
  padding:8px 5px!important;font-size:12px!important;
  color:#884551!important;border:0!important;background:transparent!important;
}
body.lsg-page-play .lsg-copy-grid{background:#f7f8fb!important;border:1px solid #dbe2ec!important;color:#4b5872!important}

@media(max-width:860px){
 body.lsg-page-home .lsg-modern-hero .lsg-modern-hero-orb{width:110px!important;height:110px!important;right:20px!important;top:50%!important}
 body.lsg-page-home .lsg-modern-hero .lsg-modern-hero-orb span{font-size:56px!important}
 body.lsg-page-play .lsg-one-favorite{grid-template-columns:1fr!important;gap:14px!important}
 body.lsg-page-play .lsg-one-favorite-actions,body.lsg-page-play .lsg-one-favorite-save{justify-content:flex-start!important}
}
@media(max-width:640px){
 body.lsg-app :is(.page-heading h1,.page-intro h1,.lsg-page-intro h1,.winners-page-header h1,#draws-title,.lsg-testimonials-head h1,.form-card > .form-title,.auth-card > .form-title){
  font-size:27px!important;line-height:1.35!important;padding-bottom:.24em!important;
 }
 body.lsg-page-home .lsg-modern-hero .lsg-modern-hero-orb{
  width:78px!important;height:78px!important;
  top:22%!important;right:14px!important;opacity:.9!important;
 }
 body.lsg-page-home .lsg-modern-hero .lsg-modern-hero-orb span{font-size:38px!important}
 body.lsg-page-play .lsg-jackpot-favorite-row{column-gap:16px!important;row-gap:10px!important}
 body.lsg-page-play .lsg-play-favorite-quick{gap:7px!important}
 body.lsg-page-play .lsg-play-favorite-quick .action{min-height:41px!important;padding:9px 12px!important;font-size:12px!important}
 body.lsg-page-play .lsg-play-favorite-quick small{font-size:11px!important}
 body.lsg-page-play .lsg-one-favorite{padding:13px 14px!important}
 body.lsg-page-play .lsg-one-favorite-copy{align-items:flex-start!important}
 body.lsg-page-play .lsg-one-favorite-save input{width:110px!important}
 body.lsg-page-play .lsg-results-switch{max-width:100%}
}
