/* =====================================================================
   ACCUEIL JOUEUR — maquette « FalBet Interactive Mobile UI » (12/11/2026,
   fichier envoye par le client). Integree a l'architecture : memes ecrans,
   memes donnees, memes reglages ; seule la forme change.

   Couleurs : la RAMPE DE LA MARQUE (--brand-*) au lieu du bleu ecrit en dur
   de la maquette — sur une plateforme d'agent, la carte, la pilule active et
   les ronds prennent la couleur de l'agent (marque.css, charge apres).
   Theme : :root[data-theme="dark"] (convention de la plateforme).
   Charge apres app.css et soft.css, avant marque.css.
   ===================================================================== */
:root {
  --acc-texte-doux: var(--slate-500);
  --acc-ressort: cubic-bezier(.34, 1.56, .64, 1);
  --acc-doux: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] { --acc-texte-doux: var(--slate-400); }

/* PALETTE DE LA MAQUETTE « accueil-joueur-falbet » (12/11/2026, demande du
   client). Les fonds, cartes, textes et bords de l'espace joueur la suivent.
   Les bleus deviennent la rampe de marque PAR DEFAUT : un agent qui a choisi sa
   couleur la garde (marque.css est charge apres). */
:root {
  --mq-fond: #f3f7fb; --mq-carte: #ffffff; --mq-texte: #102a43; --mq-texte-doux: #627d98;
  /* 18/11/2026 : le bouton « App » et trois autres elements prenaient ces trois
     bleus en dur — le bouton de telechargement restait bleu quand l'agent
     choisissait vert ou rouge. Ils suivent la rampe de la marque. */
  --mq-bleu: var(--brand-600); --mq-bleu-fonce: var(--brand-700); --mq-bleu-clair: var(--brand-500);
  --mq-bord: rgba(29, 86, 141, .08);
  --mq-ombre: 0 10px 28px -5px rgba(29, 86, 141, .08), 0 4px 12px -2px rgba(29, 86, 141, .04);
}
:root[data-theme="dark"] {
  --mq-fond: #0c1724; --mq-carte: #132235; --mq-texte: #f0f4f8; --mq-texte-doux: #9fb3c8;
  --mq-bord: rgba(159, 179, 200, .12); --mq-ombre: 0 12px 32px -4px rgba(0, 0, 0, .45);
}
:root:not([data-theme="dark"]) body.client-app {
  --brand-50: #f3f7fb; --brand-100: #dbe7f3; --brand-200: #b6cde5; --brand-300: #86abd2;
  --brand-400: #4f88c2; --brand-500: #2b6cb0; --brand-600: #1d568d; --brand-700: #143f6b;
  --brand-800: #16426e; --brand-900: #0e2c4a;
}
body.client-app {
  --surface: var(--mq-carte); --cx-cerne: var(--mq-bord);
  background: var(--mq-fond) !important; color: var(--mq-texte);
}
body.client-app .card, body.client-app .pf-hero, body.client-app .pf-card, body.client-app .bottomnav.nav3, body.client-app .bottomnav.nav4 {
  background: var(--mq-carte); border-color: var(--mq-bord); box-shadow: var(--mq-ombre);
}
body.client-app .topbar, :root[data-theme="dark"] body.client-app .topbar { background: var(--mq-fond); }
body.client-app .muted, body.client-app .pf-meta, body.client-app .pf-head-s, body.client-app .pf-s { color: var(--mq-texte-doux); }
body.client-app .pf-nom, body.client-app .pf-t, body.client-app .pf-head-t, body.client-app .cx-bj-nom, body.client-app .cx-name { color: var(--mq-texte); }
/* carte portefeuille : le degrade exact de la maquette */
/* (par defaut #16426e -> #1d568d -> #2b6cb0 ; un agent garde sa couleur) */
/* 19/11/2026 — SURFACES QUI PORTENT DU TEXTE BLANC (carte du solde, bouton
   « App », onglet actif, vignette du code promo). Elles finissaient sur le ton
   500, qui ne tient pas le blanc a 4.5:1 en vert, orange, lime et blush le jour
   (1.7:1 en lime, la couleur par defaut), ni dans AUCUNE couleur la nuit (le
   500 nocturne est un accent clair : 1.2:1 en lime). Pour ces cas, le degrade
   descend d'un cran : 700 -> 600, qui tiennent tous le blanc. */
body.client-app { --acc-plein: var(--brand-600); --acc-plein-clair: var(--brand-500); }
:root[data-couleur="vert"] body.client-app, :root[data-couleur="orange"] body.client-app,
:root[data-couleur="lime"] body.client-app, :root[data-couleur="blush"] body.client-app,
:root[data-theme="dark"] body.client-app { --acc-plein: var(--brand-700); --acc-plein-clair: var(--brand-600); }
body.client-app { --acc-carte-1: var(--brand-800); --acc-carte-2: var(--brand-600); --acc-carte-3: var(--acc-plein-clair); }

/* --- en-tete : sous-titre « ESPACE JOUEUR » et bouton « App » ------------ */
body.client-app .cx-sous {
  display: block; margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--acc-texte-doux); line-height: 1.2;
}
/* Bouton « App » : celui de la maquette, a l'identique (forme, couleurs,
   animation) — pilule de 40 px, degrade bleu, fleche bleu ciel, flottement
   doux, halo qui s'eloigne et fleche qui plonge. */
body.client-app .cx-app-pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: 9999px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; flex: none;
  background: linear-gradient(135deg, var(--acc-plein) 0%, var(--acc-plein-clair) 100%);
  box-shadow: 0 6px 16px -3px rgba(15, 23, 42, .22);
  animation: mq-flotte 3.8s ease-in-out infinite; transition: transform .2s ease;
}
body.client-app .cx-app-pill:active { transform: scale(.95); }
body.client-app .cx-app-pill:focus-visible { outline: 3px solid var(--mq-bleu-clair); outline-offset: 3px; }
body.client-app .cx-app-pill::before {
  content: ""; position: absolute; inset: -3px; border-radius: 9999px; pointer-events: none;
  border: 1.5px solid var(--brand-400); animation: mq-halo 3.2s cubic-bezier(.22, 1, .36, 1) infinite;
}
body.client-app .cx-app-pill-ico { display: inline-flex; color: var(--brand-100, #bae6fd); animation: mq-plonge 3.8s ease-in-out infinite; }
body.client-app .cx-app-pill-ico svg { width: 16px; height: 16px; stroke-width: 2.4; }
@keyframes mq-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes mq-halo { 0% { transform: scale(.95); opacity: .75; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
@keyframes mq-plonge { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(2px); } 65% { transform: translateY(-1px); } }

/* --- salutation : « BONJOUR, » + nom (+ « Compte inactif » si besoin) ---- */
body.client-app .cx-bj { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.client-app .cx-bj-hi { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc-texte-doux); }
body.client-app .cx-bj-nom { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
body.client-app .cx-bj-etat.off {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--slate-600); background: var(--slate-100); border: 1px solid var(--slate-200);
}
body.client-app .cx-bj-etat.off::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--slate-400); }

/* --- carte portefeuille : degrade de la marque, anneaux, deux boutons ---- */
body.client-app .cx-cadre {
  position: relative; overflow: hidden; border-radius: 28px; padding: 20px; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--acc-carte-1) 0%, var(--acc-carte-2) 52%, var(--acc-carte-3) 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 36px -10px rgba(10, 30, 60, .38), inset 0 1px 0 rgba(255, 255, 255, .22);
}
body.client-app .cx-cadre::before, body.client-app .cx-cadre::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
body.client-app .cx-cadre::before { width: 240px; height: 240px; border: 34px solid rgba(255, 255, 255, .06); top: -65px; right: -45px; }
body.client-app .cx-cadre::after { width: 190px; height: 190px; border: 26px solid rgba(255, 255, 255, .05); bottom: -85px; right: 35px; }
body.client-app .cx-cadre > * { position: relative; z-index: 1; }
body.client-app .cx-cadre-lab { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; opacity: .9; }
body.client-app .cx-cadre-lab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(186, 230, 253, .95); }
body.client-app .cx-cadre-marque {
  padding: 2px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .15);
}
body.client-app .cx-cadre-solde b { font-size: 36px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
body.client-app .cx-cadre-dev { font-size: 14px; font-weight: 700; opacity: .85; }
body.client-app .cx-cadre .cx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
body.client-app .cx-cadre .cx-act {
  flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 14px; border-radius: 18px; font-size: 14px; font-weight: 800; text-decoration: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s var(--acc-ressort), background .2s ease;
}
body.client-app .cx-cadre .cx-act:active { transform: scale(.95); }
body.client-app .cx-cadre .cx-act .cx-act-ico {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
body.client-app .cx-cadre .cx-act .cx-act-ico svg { width: 14px; height: 14px; }
body.client-app .cx-cadre .cx-act.cx-act-dep {
  background: #fff; color: var(--brand-800); border: 0; box-shadow: 0 10px 20px -10px rgba(5, 20, 40, .35);
}
body.client-app .cx-cadre .cx-act.cx-act-dep .cx-act-ico { background: rgba(15, 40, 80, .10); color: var(--brand-700); }
body.client-app .cx-cadre .cx-act.cx-act-wd {
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: none;
}
body.client-app .cx-cadre .cx-act.cx-act-wd .cx-act-ico { background: rgba(255, 255, 255, .15); color: #fff; }
body.client-app .cx-cadre .cx-act.indispo { opacity: .6; }
:root[data-theme="dark"] body.client-app .cx-cadre .cx-act.cx-act-dep { color: var(--brand-900); }

/* --- code promo : carte claire arrondie ---------------------------------- */
body.client-app .cx-promo { border-radius: 26px; margin-bottom: 16px; }
body.client-app .cx-promo-logo { background: linear-gradient(135deg, var(--acc-plein), var(--acc-plein-clair)); }
/* 19/11/2026 — un code long (le serveur en accepte 40 caracteres) sortait de
   la carte a 360 px : la puce ne retrecissait pas et le code ne passait pas a
   la ligne. Elle retrecit, le code se coupe, il reste lisible en entier. */
body.client-app .cx-promo-chip { flex: 0 1 auto; min-width: 0; max-width: 100%; }
body.client-app .cx-promo-code { min-width: 0; overflow-wrap: anywhere; }

/* --- Mes IDs : une carte par compte joueur ------------------------------ */
body.client-app .mid-liste { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
body.client-app .mid-carte { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0; min-width: 0; }
body.client-app .mid-bm {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--mid-c, var(--brand-600));
}
body.client-app .mid-bm img { width: 100%; height: 100%; object-fit: cover; }
body.client-app .mid-txt { flex: 1; min-width: 0; }
body.client-app .mid-nom { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700;
  line-height: 1.25; overflow-wrap: anywhere; }
body.client-app .mid-nom.vide { color: var(--slate-500); font-weight: 600; }
body.client-app .mid-ok { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  color: #fff; background: #10B981; }
body.client-app .mid-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; min-width: 0; }
body.client-app .mid-id .mono { font-size: 15px; font-weight: 700; letter-spacing: .03em; color: var(--slate-800);
  overflow-wrap: anywhere; }
body.client-app .mid-bm-nom { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--slate-600); background: var(--slate-100); }
body.client-app .mid-acts { flex: none; display: flex; gap: 2px; }
body.client-app .mid-acts .btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
body.client-app .mid-del { color: var(--red-600, #DC2626); }
:root[data-theme="dark"] body.client-app .mid-id .mono { color: var(--slate-900); }

/* --- « Mon profil » : avatar, identifiants (crayons), flou ---------------- */
body.client-app .pf-hero-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
body.client-app .pf-hero-hd h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--mq-texte); }
body.client-app .pf-ava-btn { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 50%; }
body.client-app .pf-ava-btn:focus-visible { outline: 3px solid var(--mq-bleu-clair); outline-offset: 3px; }
body.client-app .pf-ava.a-photo { overflow: hidden; background: var(--mq-fond); }
body.client-app .pf-ava.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.client-app .pf-ava.a-preset, .av-choix { color: #fff; }
body.client-app .pf-ava.a-preset svg { width: 30px; height: 30px; }
body.client-app .pf-ava-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; border: 2px solid var(--mq-carte);
  background: linear-gradient(135deg, var(--mq-bleu), var(--mq-bleu-clair)); }
body.client-app .pf-ids { display: grid; margin-top: 14px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--mq-bord); background: var(--mq-fond); }
body.client-app .pf-ids-l { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 14px; min-width: 0; }
body.client-app .pf-ids-l + .pf-ids-l { border-top: 1px solid var(--mq-bord); }
body.client-app .pf-ids-k { flex: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--mq-texte-doux); }
body.client-app .pf-ids-v { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--mq-texte);
  text-align: right; overflow-wrap: anywhere; transition: filter .25s ease; }
body.client-app .pf-ids-v i { font-style: normal; font-weight: 500; color: var(--mq-texte-doux); }
body.client-app .pf-ids.floute .pf-ids-l:not(.net) .pf-ids-v { filter: blur(6px); user-select: none; -webkit-user-select: none; }
body.client-app .pf-crayon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; color: var(--mq-bleu); background: var(--mq-carte); border: 1px solid var(--mq-bord); }
:root[data-theme="dark"] body.client-app .pf-crayon { color: #93c5fd; }
body.client-app .pf-hero-acts { display: flex; gap: 8px; }
.pf-edit-photo { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer;
  border-radius: 16px; border: 1px solid var(--mq-bord, #e2e8f0); background: var(--mq-fond, #f3f7fb);
  color: var(--mq-texte, inherit); font: inherit; font-weight: 700; text-align: left; }
.pf-edit-photo span:not(.pf-ava):not(.pf-ava *) { flex: 1; }
.pf-edit-photo .pf-ava { width: 46px; height: 46px; font-size: 16px; }
.pf-edit-photo .pf-ava.a-preset svg { width: 24px; height: 24px; }
.pe-sep { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--mq-bord, #e2e8f0);
  font-size: 13px; font-weight: 800; color: var(--mq-texte, inherit); }
.pe-sep small { font-weight: 500; color: var(--mq-texte-doux, #627d98); }
body.client-app .pf-crayon:focus-visible, body.client-app .pf-ids-oeil:focus-visible { outline: 3px solid var(--mq-bleu-clair); outline-offset: 2px; }
body.client-app .pf-ids-oeil { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--mq-texte-doux); background: var(--mq-fond); border: 1px solid var(--mq-bord); }
body.client-app .pf-secu { display: flex; align-items: center; gap: 6px; margin: 12px 2px 0; font-size: 12px; color: var(--mq-texte-doux); }
@media (max-width: 360px) { body.client-app .pf-ids-v { font-size: 13px; } }
/* fenetre de l'avatar */
.av-apercu { display: flex; justify-content: center; margin-top: 12px; }
.av-apercu .pf-ava.av-grand { width: 96px; height: 96px; font-size: 30px; }
.av-apercu .pf-ava.a-preset svg { width: 46px; height: 46px; }
.av-fichier { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.av-titre { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); }
.av-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 380px) { .av-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.av-choix { aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; display: grid; place-items: center;
  cursor: pointer; color: #fff; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.av-choix:active { transform: scale(.92); }
.av-choix.on { border-color: #fff; box-shadow: 0 0 0 3px #2b6cb0; }
.av-choix:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.client-app .pf-ids-v, .av-choix { transition: none; } }

/* --- barre du bas : QUATRE tuiles egales (18/11/2026), libelle visible,
   pilule active. « Historique » est le plus long libelle : a 12 px avec l'icone
   de 16 px, il tient dans une tuile de 390 px de large (93 px par tuile) sans
   ellipse ; en dessous de 360 px il se coupe proprement (min-width: 0). --- */
body.client-app .bottomnav.nav4 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px;
  border-radius: 999px; box-shadow: 0 12px 35px -5px rgba(16, 42, 67, .14);
}
/* QUATRE entrees : ICONE AU-DESSUS, LIBELLE DESSOUS. En ligne, « Historique »
   ne tenait pas dans 82 px (il finissait en « Histori… ») ; empile, il tient
   entier jusqu'a 360 px de large et reste lisible. */
body.client-app .bottomnav.nav4 .item {
  flex: none; flex-direction: column; gap: 2px; width: 100%; min-width: 0;
  min-height: 50px; height: 50px; padding: 5px 2px; border-radius: 14px;
  transition: all .3s var(--acc-doux); color: var(--slate-600); justify-content: center;
}
:root[data-theme="dark"] body.client-app .bottomnav.nav4 .item { color: var(--slate-700); }
body.client-app .bottomnav.nav4 .item span {
  display: inline; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: 0; line-height: 1.1;
}
body.client-app .bottomnav.nav4 .item svg { width: 18px; height: 18px; transform: none; flex: 0 0 auto; }
body.client-app .bottomnav.nav4 .item.active {
  padding: 5px 2px; color: #fff; background: linear-gradient(135deg, var(--acc-plein), var(--acc-plein-clair));
  box-shadow: 0 6px 16px -3px rgba(15, 23, 42, .2);
}
body.client-app .bottomnav.nav4 .item.active span { font-size: 11px; font-weight: 700; letter-spacing: 0; }
:root[data-theme="dark"] body.client-app .bottomnav.nav4 .item.active {
  background: linear-gradient(135deg, var(--acc-plein), var(--acc-plein-clair)); color: #fff;
}
/* La pastille des messages non lus se cale sur l'icone, pas sur le libelle. */
/* La pastille du chat : collee au coin haut-droit de l'ICONE (et non du
   libelle), sinon elle flotte au milieu de la tuile empilee. */
body.client-app .bottomnav.nav4 .item .cx-nb {
  top: 4px; left: 50%; margin: 0; transform: translateX(6px);
}
/* Sans cette ligne, la pastille restait affichee a vide (un rond rose de 8 px) :
   `.bottomnav .item .cx-nb { display: block }` l'emportait sur `[hidden]`. */
body.client-app .bottomnav.nav4 .item .cx-nb[hidden] { display: none !important; }

/* =====================================================================
   ADAPTATION AUX ECRANS (12/11/2026) : petit telephone, telephone, tablette, PC.
   ===================================================================== */
/* l'en-tete s'aligne sur la colonne du contenu (marque a gauche) */
body.client-app .cx-top .cx-brand { justify-self: start; }
/* barre du bas : UNE geometrie, centree, quelle que soit la largeur (les regles
   precedentes de app.css se contredisaient et la sortaient de l'ecran sur PC) */
body.client-app .bottomnav.nav3 {
  left: 50%; right: auto; transform: translateX(-50%); margin: 0;
  width: min(calc(100% - 20px), 460px); max-width: none;
  bottom: calc(10px + env(safe-area-inset-bottom));
}
/* PC : colonne plus large, Mes IDs sur deux colonnes */
@media (min-width: 1024px) {
  body.client-app .app-shell, body.client-app .cx-top, body.client-app .topbar .cx-top { max-width: 880px; }
}
/* petits telephones (<= 360 px) : marges, rondeurs et tailles resserrees */
@media (max-width: 360px) {
  body.client-app .app-shell { padding-left: 12px; padding-right: 12px; }
  body.client-app .cx-top { padding-left: 12px; padding-right: 12px; gap: 8px; }
  body.client-app .cx-gear { width: 40px; min-width: 40px; height: 40px; }
  body.client-app .cx-logo { width: 36px; height: 36px; }
  body.client-app .cx-name { font-size: 16px; }
  body.client-app .cx-sous { font-size: 9px; letter-spacing: .1em; }
  body.client-app .cx-bj-nom { font-size: 20px; }
  body.client-app .cx-cadre { padding: 16px; border-radius: 22px; }
  body.client-app .cx-cadre-solde b { font-size: 30px; }
  body.client-app .cx-cadre .cx-acts { gap: 8px; }
  body.client-app .cx-cadre .cx-act { min-height: 48px; padding: 0 10px; font-size: 13px; }
  body.client-app .bottomnav.nav3 .item span { font-size: 12px; }
  body.client-app .bottomnav.nav3 .item { gap: 4px; padding: 0 4px; }
  body.client-app .mid-carte { padding: 12px; gap: 10px; align-items: flex-start; }
  body.client-app .mid-bm { width: 38px; height: 38px; border-radius: 12px; }
  body.client-app .mid-acts { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  body.client-app .cx-app-pill, body.client-app .cx-app-pill::before, body.client-app .cx-app-pill-ico { animation: none; }
  body.client-app .cx-app-pill::before { opacity: 0; }
}

/* =====================================================================
   ACCUEIL — maquette « Accueil joueur FalBet » (16/11/2026)
   Salutation sur une ligne, raccourcis par bookmaker, banniere photo.
   Couleurs : la rampe de la marque (--brand-*), comme le reste de l'accueil.
   ===================================================================== */
body.client-app .cx-bj2 { margin: 2px 4px 14px; }
body.client-app .cx-bj2 .cx-bj-txt { display: flex; flex-direction: column; gap: 2px; }
body.client-app .cx-bj2 .cx-bj-nom { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
body.client-app .cx-bj2 .cx-bj-nom.nom-long { font-size: 21px; }
body.client-app .cx-bj-sous { font-size: 15px; color: var(--mq-texte-doux); }

/* MATCHS DE L'ACCUEIL (18/11/2026) : remplacent les tuiles « Recharger un
   compte ». Bande horizontale : matchs en cours d'abord (pastille verte). */
body.client-app .cx-matchs { margin: 18px 0 16px; }
body.client-app .cx-matchs-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
body.client-app .cx-matchs-t { margin: 0; font-size: 16px; font-weight: 600; color: var(--mq-texte); }
/* « Voir tout » : le ton 400 sur carte blanche tombait a 1.4:1 en lime (3.7:1
   en bleu). Le jour il prend le 700, la nuit il garde le 400 (clair sur sombre). */
body.client-app .cx-matchs-a { font-size: 13px; color: var(--brand-700); text-decoration: none; }
:root[data-theme="dark"] body.client-app .cx-matchs-a { color: var(--brand-400); }
body.client-app .cx-matchs-l { display: flex; gap: 10px; overflow-x: auto; padding: 2px 4px 6px; scrollbar-width: none; }
body.client-app .cx-matchs-l::-webkit-scrollbar { display: none; }
body.client-app .cx-m {
  flex: 0 0 auto; min-width: 168px; max-width: 200px; padding: 10px 12px; border-radius: 16px;
  border: 1px solid var(--mq-bord); background: var(--mq-carte); color: var(--mq-texte);
  box-shadow: var(--mq-ombre); text-decoration: none; display: flex; flex-direction: column; gap: 6px;
}
body.client-app .cx-m:active { transform: scale(.98); }
body.client-app .cx-m-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.client-app .cx-m-et { font-size: 11.5px; font-weight: 700; color: var(--mq-texte-doux); font-variant-numeric: tabular-nums; }
body.client-app .cx-m.is-live .cx-m-et { color: #2fbf71; }
body.client-app .cx-m-c { font-size: 10.5px; color: var(--mq-texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
body.client-app .cx-m-t { font-size: 13.5px; line-height: 1.3; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.client-app .cx-m-s { font-variant-numeric: tabular-nums; }

body.client-app .cx-ban {
  position: relative; display: block; height: 188px; margin: 16px 0; border-radius: 20px; overflow: hidden;
  background: var(--brand-900); color: #fff; text-decoration: none; box-shadow: var(--mq-ombre);
}
body.client-app .cx-ban img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
body.client-app .cx-ban-voile { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 22, 44, .88) 0%, rgba(9, 22, 44, .55) 50%, rgba(9, 22, 44, 0) 80%); }
body.client-app .cx-ban-txt { position: absolute; left: 18px; top: 18px; bottom: 18px; width: 58%;
  display: flex; flex-direction: column; gap: 6px; }
body.client-app .cx-ban-txt b { font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
body.client-app .cx-ban-txt small { font-size: 13.5px; line-height: 1.35; color: #dce6f4; }
body.client-app .cx-ban-cta { margin-top: auto; align-self: flex-start; padding: 8px 14px; border-radius: 999px;
  background: #f59e0b; color: #14223a; font-size: 14px; font-weight: 600; }
body.client-app .cx-ban:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
@media (max-width: 340px) { body.client-app .cx-ban-txt { width: 70%; } body.client-app .cx-ban-txt b { font-size: 18px; } }
