/* LSG V3 — correctif ciblé (25/11/2026)
 * Priorités: tirages mobiles vraiment compacts, jouer structuré, compte personnalisé,
 * images spéciales agrandissables. Préserve le moteur, les montants et les formulaires.
 */
/* Agrandissement visuels: déclenchement par bouton, clavier, escape et clic extérieur. */
body.lsg-app .lsg-special-zoom, body.lsg-app .lsg-modern-image-zoom{position:relative;display:block;width:100%;height:auto;padding:0;background:transparent;border:0;border-radius:12px;cursor:zoom-in;overflow:hidden;color:inherit}
body.lsg-app .lsg-special-zoom img{display:block;width:100%;height:auto;max-height:225px;object-fit:contain;border-radius:12px}
body.lsg-app .lsg-special-zoom .lsg-zoom-hint{position:absolute;right:8px;bottom:8px;z-index:1;background:rgba(20,29,50,.78);color:white;font-size:11px;font-weight:700;border-radius:7px;padding:5px 8px}
body.lsg-app .lsg-special-zoom:focus-visible, body.lsg-app .lsg-modern-image-zoom:focus-visible{outline:3px solid #7b49c8;outline-offset:3px}
body.lsg-page-home .lsg-modern-special-has-zoom{display:grid;grid-template-columns:minmax(0,1fr) 61px;gap:10px}
body.lsg-page-home .lsg-modern-feature-main{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;min-width:0;align-items:center;text-decoration:none;color:inherit}
body.lsg-page-home .lsg-modern-feature-main:focus-visible{outline:2px solid #663ab5;outline-offset:3px;border-radius:6px}
body.lsg-page-home .lsg-modern-image-zoom{grid-column:2;justify-self:end;width:61px;height:62px}
body.lsg-page-home .lsg-modern-image-zoom img{width:100%;height:100%;object-fit:contain}
@media(max-width:1080px){body.lsg-page-home .lsg-modern-special-has-zoom{grid-template-columns:minmax(0,1fr) 50px}body.lsg-page-home .lsg-modern-feature-main{grid-template-columns:25px minmax(0,1fr)}body.lsg-page-home .lsg-modern-image-zoom{width:50px;height:55px}}
@media(max-width:860px) and (min-width:641px){body.lsg-page-home .lsg-modern-feature-main{grid-template-columns:1fr}body.lsg-page-home .lsg-modern-image-zoom{display:none}}
@media(max-width:640px){body.lsg-page-home .lsg-modern-special-has-zoom{grid-template-columns:minmax(0,1fr) 48px}body.lsg-page-home .lsg-modern-feature-main{grid-template-columns:32px minmax(0,1fr)}body.lsg-page-home .lsg-modern-image-zoom{width:48px;height:52px}}
.lsg-image-dialog{position:fixed;inset:0;max-width:min(96vw,1100px);max-height:94vh;margin:auto;border:none;padding:0;border-radius:16px;background:#fff;box-shadow:0 20px 90px rgba(0,0,0,.35);overflow:hidden}
.lsg-image-dialog::backdrop{background:rgba(9,14,28,.84)}
.lsg-image-dialog-inner{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px;max-height:94vh;gap:8px}
.lsg-image-dialog-picture{max-height:calc(94vh - 90px);max-width:100%;height:auto;width:auto;object-fit:contain;border-radius:8px}
.lsg-image-dialog-caption{margin:0;padding:0 35px 3px;font-size:13px;text-align:center;color:#344155}
.lsg-image-dialog-close{position:absolute;right:12px;top:10px;width:38px;height:38px;border:1px solid #d9e0ed;border-radius:50%;background:#fff;color:#13243f;font-size:27px;line-height:1;cursor:pointer;z-index:2}
@media(max-width:600px){.lsg-image-dialog-inner{padding:9px}.lsg-image-dialog-picture{max-height:calc(90vh - 70px)}}

/* JOUER : vraie distinction entre bloc jackpot, grille et informations secondaires. */
body.lsg-page-play .play-card{background:#fff!important;border-color:#cfd8e6!important;overflow:hidden}
body.lsg-page-play .lsg-play-jackpot{position:relative;overflow:hidden;border-radius:13px;padding:16px 19px;margin:-2px -2px 15px;background:linear-gradient(118deg,#19233c 0%,#2b2a53 70%,#33295a 100%);color:#fff;box-shadow:0 7px 17px rgba(28,33,63,.16)}
body.lsg-page-play .lsg-play-jackpot::after{content:'✦';position:absolute;right:-10px;top:-45px;font-size:130px;color:rgba(226,185,95,.085);pointer-events:none}
body.lsg-page-play .lsg-play-jackpot-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.lsg-page-play .lsg-play-burst{color:#ebc86f;font-size:25px}
body.lsg-page-play .lsg-play-jackpot .jackpot-value{color:#f6d27d!important;text-shadow:none;font-size:clamp(34px,4vw,46px)!important;margin:6px 0!important}
body.lsg-page-play .lsg-play-jackpot .jackpot-value small{color:#f6d27d!important}
body.lsg-page-play .lsg-play-jackpot :is(.hero-date,.small-text){color:#e3e8f5!important;margin:4px 0!important;line-height:1.4}
body.lsg-page-play .lsg-play-grid-stage{padding:15px;background:#f1f4f8;border:1px solid #d6e0ed;border-radius:13px}
body.lsg-page-play .lsg-play-grid-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#1c2c4a;margin-bottom:11px}
body.lsg-page-play .lsg-play-grid-heading>div{display:flex;gap:9px;align-items:center}
body.lsg-page-play .lsg-play-grid-heading strong{font-size:17px}
body.lsg-page-play .lsg-play-grid-heading small{color:#586a80;font-size:11px}
body.lsg-page-play .lsg-play-step{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;color:white;background:#6431b5;font-size:12px;font-weight:800}
body.lsg-page-play .digit-inputs{margin:10px 0!important;gap:8px}
body.lsg-page-play .digit-inputs input{background:#fff!important;border:2px solid #c9d4e4!important;box-shadow:0 2px 5px rgba(28,42,67,.07);color:#251d43!important}
body.lsg-page-play .number-pad{gap:7px!important}
body.lsg-page-play .number-pad button{background:#fff!important;border:1px solid #cbd6e4!important;color:#25354c!important;box-shadow:0 2px 4px rgba(25,43,64,.06);font-weight:700}
body.lsg-page-play .number-pad button:is(:hover,:focus-visible){background:#ebe5fa!important;border-color:#7c55ca!important}
body.lsg-page-play .grid-submit .action-primary{background:#6631b8!important;font-weight:750}
body.lsg-page-play .lsg-play-rules{border-left:4px solid #a78bcc!important;background:#fff!important}
body.lsg-page-play .lsg-play-rules .rules-list{margin-top:7px}
body.lsg-page-play .lsg-play-rules li{padding:7px 0;border-bottom:1px solid #e9edf3}
body.lsg-page-play .lsg-play-rules li:last-child{border-bottom:0}
body.lsg-page-play .lsg-play-bonus{background:#fbfaf5!important;border-left:4px solid #cfaa57!important}
body.lsg-page-play .play-layout>aside{gap:12px}
@media(max-width:600px){body.lsg-page-play .lsg-play-jackpot{padding:12px 14px;margin:0 0 11px}body.lsg-page-play .lsg-play-grid-stage{padding:11px}body.lsg-page-play .lsg-play-grid-heading{flex-wrap:wrap;gap:4px}body.lsg-page-play .lsg-play-grid-heading strong{font-size:15px}}

/* COMPTE : vraie reconnaissance du joueur, sans grands aplats roses. */
body.lsg-page-account .account-welcome.lsg-account-hero{display:block!important;margin:0 0 13px!important;padding:20px 22px!important;border-radius:17px;background:linear-gradient(117deg,#17243a 0%,#272744 64%,#332b51 100%)!important;color:#fff;box-shadow:0 12px 25px rgba(19,26,48,.15);border:1px solid #364363;max-width:none}
body.lsg-page-account .lsg-account-hero-main{display:flex;align-items:center;gap:16px;min-width:0}
body.lsg-page-account .lsg-account-avatar{display:grid;place-items:center;flex:0 0 auto;width:69px;height:69px;border:2px solid #d8b86e;border-radius:20px;background:linear-gradient(145deg,#754cb4,#4b2c75);box-shadow:0 5px 15px rgba(9,11,29,.22);font-weight:800;font-size:33px;color:#fff}
body.lsg-page-account .lsg-account-eyebrow{font-size:10px;color:#e6c781;letter-spacing:.14em;font-weight:800}
body.lsg-page-account .account-welcome.lsg-account-hero h1{color:#fff!important;font-size:clamp(23px,3.6vw,32px);line-height:1.2;margin:4px 0!important;letter-spacing:-.02em}
body.lsg-page-account .account-welcome.lsg-account-hero p{margin:7px 0 0!important;color:#d9e1f0!important;font-size:12px;line-height:1.4}
body.lsg-page-account .lsg-account-plan{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #bca26f;border-radius:999px;color:#f5d997;font-size:11px;font-weight:750}
body.lsg-page-account .lsg-account-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}
body.lsg-page-account .lsg-account-highlights>div{display:flex;flex-direction:column;gap:3px;padding:10px 13px;border-radius:10px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15)}
body.lsg-page-account .lsg-account-highlights span{color:#d8deee;font-size:11px}
body.lsg-page-account .lsg-account-highlights strong{font-size:21px;color:#fff;font-variant-numeric:tabular-nums}
body.lsg-page-account .lsg-account-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:12px}
body.lsg-page-account .lsg-account-play{display:inline-flex;align-items:center;gap:14px;padding:10px 14px;min-height:42px;border-radius:10px;background:#f0ce7e;color:#2a2435!important;text-decoration:none;font-size:13px;font-weight:800}
body.lsg-page-account .lsg-account-play:hover{background:#ffdc8a}
body.lsg-page-account .lsg-account-subtle-link{font-size:12px;color:#e3deec!important;text-decoration:underline;text-underline-offset:3px}
body.lsg-page-account .account-anchor-nav{margin-bottom:13px!important}
@media(max-width:640px){body.lsg-page-account .account-welcome.lsg-account-hero{padding:15px 14px!important;border-radius:14px}body.lsg-page-account .lsg-account-hero-main{gap:11px;align-items:flex-start}body.lsg-page-account .lsg-account-avatar{width:50px;height:50px;font-size:24px;border-radius:14px}body.lsg-page-account .account-welcome.lsg-account-hero h1{font-size:22px}body.lsg-page-account .lsg-account-highlights{gap:5px;margin-top:13px}body.lsg-page-account .lsg-account-highlights>div{padding:8px 7px}body.lsg-page-account .lsg-account-highlights span{font-size:9px;line-height:1.25}body.lsg-page-account .lsg-account-highlights strong{font-size:18px}body.lsg-page-account .lsg-account-hero-actions{gap:10px}body.lsg-page-account .lsg-account-play{font-size:12px}}

/* TIRAGES MOBILE : 2 lignes serrées au lieu de 3 grands panneaux, récompenses uniquement si présentes. */
@media(max-width:640px){
 body.lsg-page-draws .draws-card-wrap{border:0!important;background:transparent!important;box-shadow:none!important}
 body.lsg-page-draws .draws-table tbody{gap:7px!important}
 body.lsg-page-draws .draws-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(113px,43%)!important;grid-template-areas:'date tirage' 'jackpot tirage' 'recompenses recompenses'!important;column-gap:7px!important;row-gap:4px!important;padding:10px 12px!important;border-radius:12px!important;background:#fff!important;border:1px solid #dce3ed!important;box-shadow:0 3px 10px rgba(22,37,61,.055)!important;overflow:visible!important}
 body.lsg-page-draws .draws-table tbody tr::before{display:none!important}
 body.lsg-page-draws .draws-table td{padding:0!important;margin:0!important;border:0!important;min-width:0!important}
 body.lsg-page-draws .draws-table td::before{display:none!important}
 body.lsg-page-draws .draws-table td[data-label='Jour & date']{grid-area:date!important;font-size:12px!important;font-weight:700!important;line-height:1.25!important;color:#28344b!important}
 body.lsg-page-draws .draws-table td[data-label='Tirage']{grid-area:tirage!important;align-self:center!important;text-align:right!important}
 body.lsg-page-draws .draws-table td[data-label='Tirage'] .draw-num{font-size:16px!important;letter-spacing:.09em!important;font-weight:800!important;white-space:nowrap!important}
 body.lsg-page-draws .draws-table .draw-special-label{font-size:10px!important;padding:3px 6px!important}
 body.lsg-page-draws .draws-table .draw-replay{align-items:flex-end!important;margin-top:5px!important;gap:3px!important}
 body.lsg-page-draws .draws-table .draw-replay-btn{padding:3px 7px!important;min-height:27px!important;font-size:10px!important;border-radius:7px!important}
 body.lsg-page-draws .draws-table td[data-label='Jackpot']{grid-area:jackpot!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:3px 5px!important;font-size:15px!important;font-weight:750!important;line-height:1.15!important;padding:0!important;white-space:normal!important}
 body.lsg-page-draws .draws-table td[data-label='Jackpot'] .jack-badge{margin:0!important;padding:2px 6px!important;min-height:20px!important;font-size:9px!important}
 body.lsg-page-draws .draws-table td[data-label='Récompenses']{grid-area:recompenses!important;margin-top:3px!important;padding:5px 7px!important;background:#f3f6fa!important;border:1px solid #e3eaf3!important;border-radius:7px!important;font-size:11px!important;line-height:1.25!important}
 body.lsg-page-draws .draws-table td.lsg-draw-no-rewards{display:none!important}
 body.lsg-page-draws .draws-table .reward-line{line-height:1.3!important}
 body.lsg-page-draws .draws-table td[data-label='Info']{grid-column:1/-1!important}
}
@media(max-width:365px){body.lsg-page-draws .draws-table tbody tr{grid-template-columns:minmax(0,1fr) 45%!important;padding:9px!important}body.lsg-page-draws .draws-table td[data-label='Tirage'] .draw-num{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.lsg-image-dialog *{transition:none!important}}


/* ================================================================
   LSG V3.1 — Ajustements PC clairs (25/11/2026)
   Corrige la mise en page PC de Jouer et le hero trop sombre de Mon compte.
   Les styles mobiles compacts et toute la logique PHP restent inchangés.
   ================================================================ */
@media (min-width: 960px) {
  body.lsg-page-play .page-shell {max-width: 1250px !important;}
  body.lsg-page-play .play-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(320px, .88fr) !important;
    gap: 18px !important;
    align-items: start;
  }
  /* Les deux encadrés de droite ne doivent JAMAIS être côte à côte sur PC. */
  body.lsg-page-play .play-layout > aside {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
    align-content: start;
  }
  body.lsg-page-play .play-layout > aside > * {min-width:0;max-width:100%;}
  body.lsg-page-play .play-layout > .play-card {margin:0!important;min-width:0;}
  body.lsg-page-account .page-shell {max-width: 1200px !important;}
}
/* Jackpot Jouer : surface claire crème, contraste lisible, pas d'aplat sombre. */
body.lsg-page-play .lsg-play-jackpot {
  background: linear-gradient(112deg,#fff9ed 0%,#fffdfa 52%,#f5f8fc 100%) !important;
  border: 1px solid #e4d7b9 !important;
  box-shadow: 0 5px 14px rgba(38,47,70,.06) !important;
  color: #243047 !important;
}
body.lsg-page-play .lsg-play-jackpot::after {color:rgba(183,134,37,.10)!important;right:8px;top:-32px;}
body.lsg-page-play .lsg-play-burst {color:#af812f!important;}
body.lsg-page-play .lsg-play-jackpot .jackpot-value,
body.lsg-page-play .lsg-play-jackpot .jackpot-value small {color:#8d5c15!important;text-shadow:none!important;}
body.lsg-page-play .lsg-play-jackpot :is(.hero-date,.small-text) {
  color:#465269 !important;
  font-size:13px;
  line-height:1.4 !important;
}
body.lsg-page-play .lsg-play-grid-stage {background:#f5f7fa!important;border-color:#dce3ee!important;}
body.lsg-page-play .lsg-play-rules {background:#fff!important;border-left-color:#7f65c1!important;}
body.lsg-page-play .lsg-play-bonus {background:#fffcf6!important;border-left-color:#d2a850!important;}
body.lsg-page-play .lsg-play-rules .rules-list {padding-left:18px;}
body.lsg-page-play .lsg-play-rules li {line-height:1.47;overflow-wrap:normal;}
body.lsg-page-play .lsg-play-bonus .panel-title {align-items:flex-start;}
/* Sur écran intermédiaire, éviter les deux petits encadrés étroits. */
@media (min-width: 641px) and (max-width: 959px) {
  body.lsg-page-play .play-layout > aside {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
  }
}
@media(max-width: 640px) {
  body.lsg-page-play .play-layout > aside {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
}
/* Mon compte : accueil du joueur premium mais CLAIR, sans bloc bleu/prune massif. */
body.lsg-page-account .account-welcome.lsg-account-hero {
  position:relative;
  background:linear-gradient(112deg,#ffffff 3%,#f7f9fd 70%,#fffaf0 100%) !important;
  border:1px solid #d9e1ec!important;
  color:#243047!important;
  box-shadow:0 7px 21px rgba(31,45,68,.08)!important;
  overflow:hidden;
}
body.lsg-page-account .account-welcome.lsg-account-hero::before {
  content:'';position:absolute;inset:0 auto 0 0;width:4px;
  background:linear-gradient(180deg,#7049bf,#dbaf53);
}
body.lsg-page-account .lsg-account-avatar {
  background:linear-gradient(150deg,#f2eafd,#e7e3f3)!important;
  border-color:#d6bb72!important;
  color:#56359a!important;
  box-shadow:0 3px 9px rgba(62,59,95,.08)!important;
}
body.lsg-page-account .lsg-account-eyebrow {color:#7150ac!important;}
body.lsg-page-account .account-welcome.lsg-account-hero h1 {
  color:#1e2a40!important;
  text-shadow:none!important;
}
body.lsg-page-account .account-welcome.lsg-account-hero p {color:#536078!important;}
body.lsg-page-account .lsg-account-plan {
  background:#fff5df!important;
  border-color:#e1c68e!important;
  color:#76501b!important;
}
body.lsg-page-account .lsg-account-highlights>div {
  background:#f4f6fa!important;
  border:1px solid #dfe5ef!important;
}
body.lsg-page-account .lsg-account-highlights span {color:#5c667a!important;}
body.lsg-page-account .lsg-account-highlights strong {color:#253048!important;}
body.lsg-page-account .lsg-account-play {
  background:#6030bb!important;
  color:#fff!important;
  box-shadow:0 3px 9px rgba(96,48,187,.12)!important;
}
body.lsg-page-account .lsg-account-play:hover,
body.lsg-page-account .lsg-account-play:focus-visible {background:#5124a6!important;}
body.lsg-page-account .lsg-account-subtle-link {color:#574d73!important;}
body.lsg-page-account .lsg-account-hero-actions {gap:12px;}
@media(max-width:640px) {
 body.lsg-page-account .account-welcome.lsg-account-hero::before {width:3px;}
 body.lsg-page-account .lsg-account-highlights>div {background:#f5f7fa!important;}
}

/* Correctif ciblé 25/11/2026 : texte lisible des onglets actifs du menu PC.
   Le fond violet vient du thème principal ; une couche ultérieure avait remis
   le texte en violet. Ne modifie pas les onglets de Mon compte ni le menu mobile. */
body.lsg-app .site-header .desktop-links a[aria-current="page"],
body.lsg-app .site-header .desktop-links a[aria-current="page"]:visited,
body.lsg-app .site-header .desktop-links a[aria-current="page"]:hover,
body.lsg-app .site-header .desktop-links a[aria-current="page"]:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  border-bottom-color: rgba(255,255,255,.42);
}
