/* LOSEAMAX / Paris — page joueur mobile (PR8)
   Identité sombre / or premium, shell mobile existant. */

.lx-page {
  --lx-gold: #d4a017;
  --lx-gold-bright: #f0c14b;
  --lx-ink: #0a0f1a;
  --lx-panel: rgba(12, 18, 32, 0.88);
  --lx-border: rgba(212, 160, 23, 0.28);
  /*
   * Conteneur GLOBAL uniquement (pas :last-child sur une carte).
   * Hauteur ≈ une carte + tabbar : au scroll max, la dernière carte
   * peut occuper la même zone visible que les cartes du milieu
   * (entièrement au-dessus de la tabbar), sans aucun style différent.
   */
  padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 200px);
}

.lx-brand {
  margin-bottom: 6px;
}

.lx-brand-mark {
  margin: 0 0 2px;
  font-family: var(--m-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--lx-gold-bright);
  text-transform: uppercase;
  background: linear-gradient(100deg, #f5e6a8 0%, var(--lx-gold) 45%, #8a6a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lx-title {
  margin-top: 0;
}

/* Hero LOSEAMAX — plus haut que le hero boutique, crop mobile soigné */
.lx-hero.m-page-hero {
  max-height: none;
  margin-bottom: 14px;
  border-radius: 0 0 20px 20px;
  background:
    radial-gradient(120% 80% at 80% 20%, rgba(212, 160, 23, 0.18), transparent 55%),
    var(--lx-ink);
}

.lx-hero.m-page-hero::after {
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(10, 15, 26, 0.55) 70%,
    var(--m-bg1) 100%
  );
}

.lx-hero-image.m-page-hero-image {
  height: clamp(168px, 42vw, 220px);
  object-fit: cover;
  object-position: 72% 32%;
}

.lx-slogan {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  font-family: var(--m-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8f1d4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.lx-flash {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--m-radius);
  border: 1px solid var(--lx-border);
  font-weight: 600;
  line-height: 1.35;
}

.lx-flash[hidden] {
  display: none !important;
}

.lx-flash--ok {
  color: var(--m-success, #4ade80);
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.lx-flash--err {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}

.lx-soldes,
.lx-cagnotte-box,
.lx-match,
.lx-hist {
  border-color: var(--lx-border);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(212, 160, 23, 0.1), transparent 55%),
    var(--lx-panel);
}

.lx-soldes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Bloc gratuits masqué : aucun espace réservé (cagnotte remonte) */
.lx-soldes-grid > [data-lx-bloc-gratuits][hidden] {
  display: none !important;
}

@media (min-width: 420px) {
  .lx-soldes-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .lx-soldes-grid:has(> [data-lx-bloc-gratuits][hidden]) {
    grid-template-columns: 1fr 1fr;
  }
}

.lx-solde {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}

.lx-solde--cagnotte {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.08);
}

.lx-solde--club {
  border-color: rgba(96, 165, 250, 0.28);
}

.lx-solde-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--m-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lx-solde-val {
  font-family: var(--m-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--lx-gold-bright);
  line-height: 1.15;
}

.lx-solde--club .lx-solde-val {
  color: #93c5fd;
}

.lx-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--m-muted);
  line-height: 1.35;
}

.lx-hint--gratuit {
  color: var(--lx-gold-bright);
  font-weight: 600;
}

.lx-cagnotte-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.lx-cagnotte-montant {
  margin: 4px 0 0;
}

.lx-cagnotte-montant strong {
  font-family: var(--m-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lx-gold-bright);
}

.lx-btn-recuperer {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 120px;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.lx-btn-recuperer:disabled {
  opacity: 0.45;
}

/*
 * Liste des matchs : espacement UNIQUEMENT via gap du conteneur.
 * .m-card apporte margin-bottom:12px (shell) — à annuler ici, sinon
 * gap+marge se cumulent et le bas de liste (dernière carte / tabbar)
 * paraît décalé ou « coupé » par rapport aux cartes du dessus.
 */
.lx-matchs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
  padding-bottom: 0;
  /* Conteneur = largeur utile du .m-main (viewport − paddings) */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lx-matchs > .lx-match.m-card {
  margin-bottom: 0;
  /*
   * Flex item : min-width:auto (défaut) empêche de rétrécir sous la
   * largeur min-content interne → la carte déborde à droite du viewport.
   * Forcer 100% de la largeur disponible du conteneur, centrée via .m-main.
   */
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Carte confrontation — esthétique LOSEAMAX premium */
.lx-match.m-card {
  position: relative;
  padding: 14px 12px 12px;
  border-color: var(--lx-border);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212, 160, 23, 0.1), transparent 55%),
    var(--lx-panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.lx-match-head {
  margin-bottom: 12px;
}

/* Badge division • journée — centré en tête de carte */
.lx-match-badge {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.12);
  color: var(--lx-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

/*
 * Confrontation :
 *  1) ligne équipes : domicile | VS | extérieur (VS dans le flux, aligné)
 *  2) ligne formes  : badges sous chaque club
 * Colonnes égales minmax(0,1fr) : VS au centre, pas d’overflow horizontal.
 */
.lx-match-confront {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lx-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.35rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lx-match-club {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--m-display);
  font-size: clamp(0.68rem, 2.9vw, 0.98rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--m-text);
}

.lx-match-club--home {
  text-align: left;
}

.lx-match-club--away {
  text-align: right;
}

.lx-match-club .club-fiche-link,
.lx-match-club .club-fiche-link--ia {
  display: inline;
}

/* Dans la même ligne que les noms — plus d’absolute / top */
.lx-vs {
  margin: 0;
  padding: 0 2px;
  font-family: var(--m-display);
  font-size: clamp(0.7rem, 2.8vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--lx-gold-bright);
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 12px rgba(240, 193, 75, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.lx-match-formes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.35rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Forme V/N/D sous chaque club — couleurs Accueil */
.lx-forme-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.lx-forme-badges--away {
  justify-content: flex-end;
}

.lx-forme-badges .m-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  font-size: 0.66rem;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid transparent;
  box-sizing: border-box;
}

/*
 * Plus récent = dernier de la série (ordre inchangé).
 * Même hauteur / pas de translate : aligné avec les autres V/N/D.
 * Mise en valeur uniquement via bordure or + léger glow.
 */
.lx-forme-badges .m-badge:last-child {
  border-color: rgba(240, 193, 75, 0.55);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.28);
}

.lx-forme-empty {
  color: var(--m-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.m-form-V { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.m-form-N { background: rgba(148, 163, 184, 0.18); color: #e2e8f0; }
.m-form-D { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.lx-etat {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.lx-etat--deja {
  color: #fde68a;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.28);
}

.lx-etat--clos {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.lx-cotes,
.lx-mises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.lx-cote,
.lx-mise {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.22);
  background: rgba(2, 6, 23, 0.55);
  color: var(--m-text);
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.lx-cote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
}

.lx-cote-label {
  font-size: 0.72rem;
  color: var(--m-muted);
  letter-spacing: 0.06em;
}

.lx-cote-val {
  font-family: var(--m-display);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--lx-gold-bright);
}

.lx-mise {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.lx-cote[aria-pressed="true"],
.lx-mise[aria-pressed="true"] {
  border-color: rgba(240, 193, 75, 0.75);
  background: rgba(212, 160, 23, 0.18);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.25);
  transform: translateY(-1px);
}

.lx-cote:active,
.lx-mise:active {
  transform: scale(0.98);
}

.lx-btn-parier {
  min-height: 48px;
  letter-spacing: 0.08em;
  font-weight: 800;
  background: linear-gradient(180deg, var(--lx-gold-bright), var(--lx-gold));
  color: #1a1204;
  border: none;
}

.lx-btn-parier:disabled {
  opacity: 0.4;
  filter: grayscale(0.2);
}

.lx-match.is-disabled {
  opacity: 0.92;
}

.lx-empty {
  color: var(--m-muted);
  font-weight: 600;
}

/* .lx-hist / .lx-hist-grid : réutilisés par /paris/activite (PR9) */
.lx-hist-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.lx-hist-grid dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--m-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lx-hist-grid dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 360px) {
  .lx-hero-image.m-page-hero-image {
    object-position: 60% 30%;
  }

  .lx-cagnotte-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lx-btn-recuperer {
    width: 100%;
  }
}

/* ——— PR9 Activité des paris (même identité lx-*) ——— */

.lx-act-resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 480px) {
  .lx-act-resume-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lx-act-filtre-form {
  margin: 0;
}

.lx-act-filtre-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lx-act-filtre-titre {
  margin: 0;
  font-family: var(--m-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lx-gold-bright, #f0c14b);
}

.lx-act-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  color: var(--m-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lx-act-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--lx-gold, #d4a017);
  flex-shrink: 0;
}

.lx-act-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lx-act-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lx-act-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.lx-act-club {
  margin: 2px 0 0;
  font-family: var(--m-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.lx-act-statut {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  white-space: nowrap;
}

.lx-act-statut--ouvert {
  color: #fde68a;
  background: rgba(212, 160, 23, 0.16);
  border-color: rgba(212, 160, 23, 0.4);
}

.lx-act-statut--clos {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
}

.lx-act-statut--gagne {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.4);
}

.lx-act-statut--perdu {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

.lx-act-match {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-weight: 800;
  line-height: 1.3;
}

.lx-act-mise {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--m-text);
}

.lx-act-choix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.12);
  color: var(--lx-gold-bright, #f0c14b);
  font-family: var(--m-display);
  font-weight: 800;
}

.lx-act-cote {
  color: var(--lx-gold-bright, #f0c14b);
  font-family: var(--m-display);
  font-weight: 800;
}

.lx-act-type {
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--m-muted);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.lx-act-meta {
  margin-top: 2px;
}

/* ——— PR11 Classement LOSEAMAX ——— */

.lx-classement-lead {
  margin: 0 0 6px;
  font-family: var(--m-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lx-gold-bright, #f0c14b);
}

.lx-classement-resume {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.lx-classement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lx-classement-row-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.lx-classement-rang {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--m-display);
  font-weight: 800;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.lx-classement-rang--p1 {
  color: #1a1204;
  background: linear-gradient(180deg, #f0c14b, #d4a017);
  border-color: rgba(240, 193, 75, 0.7);
}

.lx-classement-rang--p2 {
  color: #0f172a;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
  border-color: rgba(226, 232, 240, 0.55);
}

.lx-classement-rang--p3 {
  color: #1a1204;
  background: linear-gradient(180deg, #d6a77a, #b87333);
  border-color: rgba(184, 115, 51, 0.55);
}

.lx-classement-row--p1 {
  border-color: rgba(240, 193, 75, 0.45);
  box-shadow: 0 0 18px rgba(212, 160, 23, 0.12);
}

.lx-classement-row--p2 {
  border-color: rgba(226, 232, 240, 0.28);
}

.lx-classement-row--p3 {
  border-color: rgba(184, 115, 51, 0.35);
}

.lx-classement-club {
  flex: 1;
  min-width: 0;
}

.lx-classement-nom {
  margin: 2px 0 0;
  font-family: var(--m-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.lx-classement-bilan {
  flex-shrink: 0;
  font-family: var(--m-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--m-text);
  text-align: right;
}

.lx-classement-bilan.is-pos {
  color: #86efac;
}

.lx-classement-bilan.is-neg {
  color: #fca5a5;
}

.lx-classement-meta {
  margin-top: 0;
}

/* ——— Mode Découverte LOSEAMAX (/decouverte/paris) ——— */

#loseamax-paris-decouverte .lx-intro-decouverte,
#loseamax-paris-decouverte .lx-cta-decouverte {
  margin-bottom: 14px;
}

#loseamax-paris-decouverte .lx-cote,
#loseamax-paris-decouverte .lx-mise {
  cursor: default;
  pointer-events: none;
}

#loseamax-paris-decouverte a.lx-btn-parier {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

#loseamax-paris-decouverte .lx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ——— Mode Découverte LOSEAMAX (/decouverte/paris/activite) ——— */

#loseamax-activite-decouverte .lx-intro-decouverte,
#loseamax-activite-decouverte .lx-cta-decouverte {
  margin-bottom: 14px;
}

#loseamax-activite-decouverte .lx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ——— Mode Découverte LOSEAMAX (/decouverte/paris/classement) ——— */

#loseamax-classement-decouverte .lx-intro-decouverte,
#loseamax-classement-decouverte .lx-cta-decouverte {
  margin-bottom: 14px;
}

#loseamax-classement-decouverte .lx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

