/* =====================================================================
   FalPay Soft — harmonisation de la plateforme avec l'ecosysteme FalPay
   (12/11/2026, demande du client : « que pay.flashservice.org, agent-test,
   bet et l'appli FalPay relais soient tous uniformes »).

   Source des valeurs : le design system « FalPay Soft » (depot FalPay,
   design/falpay-soft/tokens.json). Style : Soft UI Evolution — ce qui se
   touche est en RELIEF (double ombre douce), ce qui se remplit est en CREUX,
   ce qui informe est plat. Le texte garde ses contrastes mesures (rien ici ne
   change une couleur d'encre).

   Charge APRES app.css et AVANT marque.css : la couleur de l'agent (rampe
   --brand-*) continue de s'appliquer par-dessus. Ne touche PAS aux choix
   explicites du client : ecrans d'entree blancs (--ah-*), cartes d'action en
   verre (.cx-act), boutons en pastille (rayon 999px conserve).
   ===================================================================== */
:root {
  --fs-light: rgba(255, 255, 255, .9);
  --fs-dark: rgba(20, 34, 58, .14);
  --fs-raise-sm: -3px -3px 8px var(--fs-light), 3px 3px 8px var(--fs-dark);
  --fs-raise: -6px -6px 16px var(--fs-light), 6px 6px 16px var(--fs-dark);
  --fs-press: inset 4px 4px 9px var(--fs-dark), inset -4px -4px 9px var(--fs-light);
  --fs-sunken: #E3E9F1;
  /* la carte prend le relief au lieu du simple cerne */
  --shadow: var(--fs-raise);
  --shadow-hover: -7px -7px 18px var(--fs-light), 7px 7px 18px var(--fs-dark);
  --surface: #F7F9FC;
}
:root[data-theme="dark"] {
  --fs-light: rgba(255, 255, 255, .05);
  --fs-dark: rgba(0, 0, 0, .6);
  --fs-sunken: #0D1218;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --fs-light: rgba(255, 255, 255, .05); --fs-dark: rgba(0, 0, 0, .6); --fs-sunken: #0D1218;
  }
}

/* --- surfaces en relief ------------------------------------------------ */
.card { box-shadow: var(--fs-raise); border-radius: var(--radius-lg); }
.card-hd { border-bottom-color: transparent; }
.card-ft { background: transparent; border-top-color: var(--slate-100); }
.elevated { box-shadow: var(--fs-raise); }
.kpi, .tile { box-shadow: var(--fs-raise-sm); border-color: transparent; }
.soft { background: var(--fs-sunken); box-shadow: var(--fs-press); }

/* --- boutons : relief qui se creuse a l'appui (la pastille est gardee) -- */
.btn { transition: box-shadow .15s ease, transform .15s ease, filter .15s ease; }
.btn:not(.btn-primary):not(.btn-dark):not(.btn-ok):not(.btn-warn):not(.btn-danger):not(.btn-ghost) {
  background: var(--surface); box-shadow: var(--fs-raise-sm);
}
.btn-primary, .btn-dark, .btn-ok, .btn-warn, .btn-danger { box-shadow: var(--fs-raise-sm); }
.btn:active { box-shadow: var(--fs-press); }
.btn:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }

/* --- champs en creux ----------------------------------------------------- */
.input, .select, .textarea {
  background: var(--fs-sunken); border-color: transparent; box-shadow: var(--fs-press);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: transparent; box-shadow: var(--fs-press), 0 0 0 3px var(--brand-500);
}

/* --- navigation basse : une plaque en relief, l'onglet actif creuse ------ */
.bottomnav { box-shadow: var(--fs-raise); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ecrans d'entree (blancs a la demande du client) : le champ garde sa teinte
   claire d'origine (--ah-field), seul le creux est ajoute */
.auth-shell .input, .auth-shell .select { background: var(--ah-field); }
