/* LSG V4.5 — Typographie de l'accueil et une seule favorite accessible.
 * À charger en dernier, après l'ensemble des CSS existants.
 * Ajustements visuels uniquement — aucune règle métier n'est remplacée.
 */

/* ACCUEIL : typographie lisible sans épaissir ni recolorer toutes les cartes. */
body.lsg-page-home .lsg-modern-hero-amount{
  font-size:clamp(68px,7.8vw,112px)!important;
  line-height:1.07!important;
  letter-spacing:-.045em!important;
  font-weight:750!important;
  text-shadow:none!important;
}
body.lsg-page-home .lsg-modern-hero-date,
body.lsg-page-home .lsg-modern-hero-note{font-size:13px!important;line-height:1.5!important;letter-spacing:0!important}
body.lsg-page-home .lsg-modern-hero-gift{font-size:12px!important;line-height:1.55!important;text-shadow:none!important}
body.lsg-page-home .lsg-modern-feature-text>strong{font-size:17px!important;line-height:1.32!important;font-weight:700!important;letter-spacing:-.012em!important}
body.lsg-page-home .lsg-modern-feature-text>span{font-size:13px!important;line-height:1.42!important;color:#35425e!important}
body.lsg-page-home .lsg-modern-feature-text>small{font-size:12px!important;line-height:1.38!important;color:#68768f!important}
body.lsg-page-home .lsg-modern-promo strong{font-size:15px!important;line-height:1.38!important}
body.lsg-page-home .lsg-modern-promo>div>span{font-size:12px!important;line-height:1.46!important;color:#647188!important}
body.lsg-page-home .lsg-modern-section-head h2{font-size:19px!important;line-height:1.4!important;letter-spacing:-.018em!important}
body.lsg-page-home .lsg-modern-draw-date strong,
body.lsg-page-home .lsg-modern-winner-item>div strong{font-size:13px!important;line-height:1.45!important}
body.lsg-page-home .lsg-modern-draw-date small,
body.lsg-page-home .lsg-modern-winner-item>div small{font-size:12px!important;line-height:1.4!important}
body.lsg-page-home .lsg-modern-draw-jackpot strong{font-size:16px!important}
body.lsg-page-home .lsg-modern-winning-prize{font-size:13px!important}
body.lsg-page-home :is(.lsg-modern-data-card,.lsg-modern-feature,.lsg-modern-promo){border-color:#DCE2EB!important}

/* TITRES : descenders g,j,p,q,y toujours visibles. */
body.lsg-app :is(.page-heading h1,.page-intro h1,.lsg-page-intro h1,.winners-page-header h1,#draws-title){
  line-height:1.4!important;
  padding-bottom:.24em!important;
  overflow:visible!important;
}

/* BOUTON FAVORI PRÈS DU JACKPOT : vraie action ou vrai statut, jamais un faux bouton désactivé. */
body.lsg-page-play .lsg-jackpot-favorite-row{align-items:center!important;gap:15px 30px!important}
body.lsg-page-play .lsg-play-favorite-quick{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important}
body.lsg-page-play .lsg-play-favorite-quick .lsg-favorite-play-button{
  min-height:45px!important;
  padding:11px 19px!important;
  border-radius:13px!important;
  background:#6235BC!important;
  border:1px solid #6235BC!important;
  color:#FFF!important;
  -webkit-text-fill-color:#FFF!important;
  font-size:14px!important;
  font-weight:700!important;
  box-shadow:none!important;
  cursor:pointer;
}
body.lsg-page-play .lsg-play-favorite-quick .lsg-favorite-play-button:is(:hover,:focus-visible){background:#522AA6!important;border-color:#522AA6!important;box-shadow:0 0 0 3px rgba(101,57,185,.14)!important}
body.lsg-page-play .lsg-favorite-quick-state{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
body.lsg-page-play .lsg-favorite-success-badge,
body.lsg-page-play .lsg-favorite-closed-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;padding:8px 14px;border-radius:12px;
  font-size:14px;font-weight:700;line-height:1.2;
}
body.lsg-page-play .lsg-favorite-success-badge{background:#E6F3E9;color:#21623C;border:1px solid #BBDCC6}
body.lsg-page-play .lsg-favorite-closed-badge{background:#F2F3F7;color:#536075;border:1px solid #DCE2EA}
body.lsg-page-play .lsg-favorite-quick-caption{display:block;color:#657185!important;font-size:12px!important;line-height:1.45!important}

/* FAVORITE — VUE PAR DÉFAUT LISIBLE ET ÉDITEUR REPLIÉ. */
body.lsg-page-play .lsg-favorite-card{
  margin:18px 0 0;padding:18px 20px;border-radius:17px;
  background:#FFF;border:1px solid #DDE3ED;box-shadow:0 6px 18px rgba(23,37,61,.055);
  color:#1D2941;
}
body.lsg-page-play .lsg-favorite-card-heading{display:flex;align-items:center;gap:12px;min-width:0}
body.lsg-page-play .lsg-favorite-card-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#F0EAF9;color:#6339B2;font-size:24px;line-height:1}
body.lsg-page-play .lsg-favorite-heading-copy{min-width:0;flex:1}
body.lsg-page-play .lsg-favorite-heading-copy h2{margin:0 0 3px!important;padding:0!important;font-size:18px!important;font-weight:700!important;line-height:1.38!important;color:#1E293B!important;text-align:left!important}
body.lsg-page-play .lsg-favorite-heading-copy p{margin:0!important;font-size:13px!important;line-height:1.5!important;color:#66738A!important}
body.lsg-page-play .lsg-favorite-saved{color:#206440;background:#E8F5EC;border:1px solid #CEE6D6;padding:5px 9px;border-radius:99px;font-size:12px;white-space:nowrap;font-weight:650}
body.lsg-page-play .lsg-favorite-details{margin:14px 0 0}
body.lsg-page-play .lsg-favorite-summary{display:flex;gap:16px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:48px;border-radius:12px;outline-offset:4px}
body.lsg-page-play .lsg-favorite-summary::-webkit-details-marker{display:none}
body.lsg-page-play .lsg-favorite-summary::marker{display:none}
body.lsg-page-play .lsg-favorite-digit-tiles{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.lsg-page-play .lsg-favorite-digit-tiles>span{display:grid;place-items:center;width:39px;height:42px;border-radius:10px;background:#F2EEFA;border:1px solid #E2D9F2;color:#5531A2;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
body.lsg-page-play .lsg-favorite-empty{color:#68748A;font-size:13px;line-height:1.45}
body.lsg-page-play .lsg-favorite-detail-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid #D6CAE9;border-radius:11px;background:#F8F5FD;color:#5E35AD;font-size:13px;font-weight:700;white-space:nowrap}
body.lsg-page-play .lsg-favorite-summary:hover .lsg-favorite-detail-button{background:#EEE6FB}
body.lsg-page-play .lsg-favorite-label-open{display:none}
body.lsg-page-play .lsg-favorite-details[open] .lsg-favorite-label-closed{display:none}
body.lsg-page-play .lsg-favorite-details[open] .lsg-favorite-label-open{display:inline}
body.lsg-page-play .lsg-favorite-edit-panel{margin-top:14px;padding:16px 0 2px;border-top:1px solid #E7EBF1}
body.lsg-page-play .lsg-favorite-edit-hint{margin:0 0 12px!important;color:#647188;font-size:13px!important;line-height:1.5!important}
body.lsg-page-play .lsg-favorite-edit-actions{display:flex;gap:14px;align-items:end;justify-content:space-between;flex-wrap:wrap}
body.lsg-page-play .lsg-favorite-save-form{display:flex;align-items:end;gap:10px;flex:1 1 auto;flex-wrap:wrap;margin:0}
body.lsg-page-play .lsg-favorite-save-form label{width:100%;font-size:12px;font-weight:650;color:#46536A;margin:0!important}
body.lsg-page-play .lsg-favorite-save-form input{
  box-sizing:border-box;width:145px;min-height:44px;padding:9px 12px;
  border-radius:11px;border:1px solid #C9D4E3;background:#FFF;
  font-size:17px;font-variant-numeric:tabular-nums;letter-spacing:.14em;color:#1D2941;
}
body.lsg-page-play .lsg-favorite-save-form input:focus{border-color:#8657C6;outline:3px solid #EEE6FC;outline-offset:1px}
body.lsg-page-play .lsg-favorite-save-form .action{
  min-height:44px;padding:10px 15px;border-radius:11px;font-size:13px!important;line-height:1.2!important;
}
body.lsg-page-play .lsg-favorite-save-form .lsg-favorite-copy{background:#F7F8FA!important;border:1px solid #DCE2EC!important;color:#48536B!important;box-shadow:none!important}
body.lsg-page-play .lsg-favorite-save-form .lsg-favorite-save-button{background:#6235BC!important;border:1px solid #6235BC!important;color:#FFF!important;-webkit-text-fill-color:#FFF!important;box-shadow:none!important}
body.lsg-page-play .lsg-favorite-delete{font-size:12px!important;padding:11px 3px!important;color:#A13E4A!important;background:transparent!important;border:0!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.lsg-page-play .lsg-favorite-footnote{margin:10px 0 0!important;color:#69768C;font-size:12px!important;line-height:1.45!important}

@media(max-width:640px){
  body.lsg-page-home .lsg-modern-hero-amount{font-size:clamp(62px,14vw,90px)!important}
  body.lsg-page-home .lsg-modern-feature-text>strong{font-size:16px!important}
  body.lsg-page-home .lsg-modern-feature-text>span{font-size:12px!important}
  body.lsg-page-home .lsg-modern-feature-text>small{font-size:11px!important}
  body.lsg-page-play .lsg-favorite-card{padding:14px 14px 15px;border-radius:15px}
  body.lsg-page-play .lsg-favorite-card-heading{gap:9px}
  body.lsg-page-play .lsg-favorite-card-icon{width:34px;height:34px;flex-basis:34px}
  body.lsg-page-play .lsg-favorite-saved{font-size:11px;padding:4px 7px}
  body.lsg-page-play .lsg-favorite-heading-copy h2{font-size:16px!important}
  body.lsg-page-play .lsg-favorite-heading-copy p{font-size:12px!important}
  body.lsg-page-play .lsg-favorite-summary{gap:10px}
  body.lsg-page-play .lsg-favorite-digit-tiles{gap:5px}
  body.lsg-page-play .lsg-favorite-digit-tiles>span{width:34px;height:38px;font-size:18px}
  body.lsg-page-play .lsg-favorite-detail-button{padding:8px 10px;min-height:38px;font-size:12px}
  body.lsg-page-play .lsg-favorite-save-form{align-items:stretch}
  body.lsg-page-play .lsg-favorite-save-form input{width:100%}
  body.lsg-page-play .lsg-favorite-save-form .action{flex:1 1 auto}
  body.lsg-page-play .lsg-favorite-edit-actions>form:last-child{margin-left:0}
  body.lsg-page-play .lsg-favorite-footnote{margin-top:9px!important}
}
