/* CHAMPIONS V105 — finition membre, sobre et uniforme */
:root{--ink:#162439;--muted:#617085;--soft:#f4f6f9;--line:#e3e8ef;--card:#fff;--blue-950:#102b55;--blue-900:#133a76;--blue-800:#174d99;--blue-700:#165aaa;--blue-600:#1764bc;--blue-100:#eaf1fa;--shadow:0 2px 12px rgba(22,41,68,.025);--radius:17px}
html,body{background:var(--soft);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button:focus-visible,a:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:3px solid rgba(22,90,170,.34)!important;outline-offset:2px}
button:disabled{opacity:.6;cursor:not-allowed}
.auth-page{background:#f4f6f9}.auth-brand{background:#f4f6f9}.auth-brand h1{letter-spacing:-.035em}
.auth-card{background:#fff;backdrop-filter:none;border:1px solid var(--line);border-radius:12px;box-shadow:0 7px 30px rgba(18,38,70,.07)}
.auth-card h2{font-weight:650;letter-spacing:-.03em}
.auth-switch{background:#eff2f6;border-radius:7px}.auth-switch button{font-weight:600}.auth-switch button.active{background:#fff;color:#154c94;box-shadow:0 1px 5px rgba(18,42,68,.09)}
.field label{font-weight:500;color:#33435b}.field input,.field select,.field textarea{border:1px solid #d8e0e9;border-radius:7px;background:#fff;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#6b98d0;box-shadow:0 0 0 3px rgba(22,89,169,.09)}
.shell{background:var(--soft)}.sidebar{box-shadow:none;border-right:1px solid var(--line)}
.nav-item{font-weight:500;border-radius:7px;color:#48566b}.nav-item.active{background:#eaf1fa;color:#154d92}.nav-item:hover{background:#f2f5f9}
.topbar{background:#fff;backdrop-filter:none;box-shadow:none;border-bottom:1px solid var(--line)}
.page-title{font-weight:650;letter-spacing:-.025em}.id-chip{background:#174d99;box-shadow:none;border-radius:7px;font-weight:650}
.menu-btn,.icon-btn{background:#f1f4f8;border:1px solid #e5eaf1;color:#263d5d;border-radius:7px}
.top-avatar{border-radius:7px;box-shadow:none}
.card{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);background:#fff}
.card-title{font-weight:650;letter-spacing:-.025em}
.card-sub{color:#68788b}.stat b{font-weight:650;font-size:23px}.stat span{font-size:12.5px}
.stat-icon{background:#eef3f9;color:#174d95;border-radius:12px}
.profile-hero{box-shadow:var(--shadow)}.profile-body h2{font-weight:650;letter-spacing:-.025em}
/* Preserve existing cover art, profile badges and member ranks. */
.btn{border-radius:7px;min-height:40px;font-size:13px;font-weight:600;line-height:1.25;box-shadow:none!important}
.btn-primary{background:#1557aa;color:#fff}.btn-primary:not(:disabled):hover{background:#124c95}
.btn-secondary{background:#eef2f7;color:#23486c;border:1px solid #e3e9f0}
.btn-danger,.btn-danger-soft{background:#fbeef0;color:#ad3043;border:1px solid #f2d7dd}
.btn-gold{background:#f6e9c6;color:#6f4d12}
.btn:focus-visible{outline:3px solid rgba(22,87,169,.33);outline-offset:2px}
.pill-tabs button{border-radius:7px;font-size:12px;font-weight:600;min-height:38px}
.pill-tabs button.active{background:#1557aa;border-color:#1557aa}
.table-wrap{border-radius:12px}.table th{background:#f8fafc;color:#586a80}.table td{font-size:13px}
.notice{background:#fff;border:1px solid #eadcbb;box-shadow:var(--shadow);border-left:4px solid #dba949}
.toast{border-radius:12px;box-shadow:0 12px 30px rgba(18,30,52,.18);font-weight:600}
.modal,.product-dialog,.champions-confirm-card{border-radius:12px;box-shadow:0 22px 58px rgba(14,28,50,.2)}
.account-switch-trigger{background:transparent!important;border:1px solid transparent!important;color:#193b68!important;border-radius:7px!important}
.account-switch-trigger[aria-expanded=true]{background:#e8f0fb!important;border-color:#bfcee3!important}
.account-switch-option{min-height:44px;border-radius:8px;font-size:13px}.account-switch-option:focus-visible{outline:2px solid #7297c4}
.account-switch-option:disabled{opacity:1;background:#eaf1fa}.group-balance-strip{border:1px solid var(--line);background:#fff;border-radius:12px}
/* Maintenance: clean notification layout, rose action; only content is tinted. */
.maintenance-alert,.maintenance-alert.maintenance-inactive{background:#fff!important;border:1px solid #e7e9ee!important;border-left:3px solid #bf5474!important;border-radius:12px!important;padding:20px!important;box-shadow:var(--shadow)!important;color:#a43657!important;gap:13px}
.maintenance-danger{width:44px;height:44px;flex:0 0 44px;border:1px solid #f0d5df;background:#fff2f6;border-radius:12px;color:#c04a70!important;font-weight:650;font-size:23px}
.maintenance-alert strong{font-size:18px!important;font-weight:650!important;color:#243347!important;line-height:1.3}
.maintenance-alert p{margin:8px 0 0!important;font-size:14px!important;line-height:1.58!important;color:#536172!important}
.maintenance-open,.maintenance-alert .btn.maintenance-open{background:#a33558!important;color:#fff!important;border:1px solid #a33558!important;border-radius:7px!important;min-width:156px!important;max-width:100%;min-height:42px!important;padding:11px 19px!important;margin-top:14px!important;font-size:13px;font-weight:600!important;box-shadow:none!important}
.maintenance-open:not(:disabled):hover{background:#b83e6b!important;border-color:#b83e6b!important}
.maintenance-qualified{border-radius:12px;box-shadow:none}
/* Page controls should be easy to read without oversized UI. */
.free-page-title h2,.page-head h1{font-weight:650;letter-spacing:-.025em}
@media(max-width:860px){.mobile-nav{background:#fff;backdrop-filter:none;border-top:1px solid #e2e8f0}.mobile-nav button{font-size:10.5px;font-weight:600;color:#637085}.mobile-nav button.active{color:#1559a6;font-weight:600}.menu-btn{width:42px;height:42px}.content{padding:17px 14px 98px}.topbar{min-height:66px}}
@media(max-width:560px){.grid-4,.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:17px;border-radius:12px}.maintenance-alert,.maintenance-alert.maintenance-inactive{padding:17px 15px!important;gap:11px}.maintenance-alert strong{font-size:17px!important}.maintenance-alert p{font-size:13.5px!important}.maintenance-danger{width:41px;height:41px;flex-basis:41px}.maintenance-open,.maintenance-alert .btn.maintenance-open{min-width:0!important;max-width:100%!important}.stat b{font-size:21px}}
@media(max-width:375px){.grid-4,.grid-2{gap:10px}.card{padding:14px}.maintenance-danger{display:none}.maintenance-alert{padding:17px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V106 : information maintenance accessible par !, sans afficher la date sur la carte. */
.maintenance-alert,.maintenance-alert.maintenance-inactive{overflow:visible;position:relative}
.maintenance-info{position:relative;display:block;flex:0 0 44px;width:44px;align-self:flex-start;z-index:4}
.maintenance-info summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid #f0d5df;border-radius:12px;background:#fff2f6;color:#c04a70;cursor:pointer;font-size:23px;font-weight:600;line-height:1;user-select:none}
.maintenance-info summary::-webkit-details-marker{display:none}
.maintenance-info summary::marker{content:''}
.maintenance-info summary:focus-visible{outline:2px solid #b84770;outline-offset:3px}
.maintenance-info[open] summary{background:#fbe9ef}
.maintenance-info-popover{position:absolute;top:calc(100% + 8px);left:0;width:min(288px,calc(100vw - 62px));padding:13px 14px;border:1px solid #e5e8ed;border-radius:12px;background:#fff;color:#38465a;box-shadow:0 9px 25px rgba(30,45,66,.12);text-align:left;z-index:45}
.maintenance-info-popover strong{display:block;font-size:12px!important;font-weight:600!important;color:#23344b!important;letter-spacing:0}
.maintenance-info-popover p{font-size:12px!important;line-height:1.55!important;color:#58667a!important;margin:5px 0 0!important}
@media(max-width:560px){.maintenance-info{width:41px;flex-basis:41px}.maintenance-info summary{width:41px;height:41px}.maintenance-info-popover{left:0}}

/* Navigation et lecture des montants */
.menu-btn { background: transparent; border-color: transparent; }
.nav-item.active, .mobile-nav button.active { font-weight: 600; }
.account-switch-popover { border-radius: 12px; box-shadow: 0 6px 20px rgba(24,42,64,.12); }
.account-switch-option { font-variant-numeric: tabular-nums; }
.account-switch-option strong { color: #253951; font-weight: 600; }
.account-switch-option:disabled { background: #f7f9fc; }
.account-switch-option small { min-width: 44px; text-align: center; color: #315b8c; }
.account-switch-option:disabled small { background: #e4f2eb; color: #246044; border-radius: 4px; padding: 3px 5px; }
.account-switch-add { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: white; justify-content: flex-start; font-weight: 600; }
.balance-hero.card { background: white; color: var(--ink); }
.balance-hero::after { content: none; }
.balance-hero .balance-label { color: #526173; opacity: 1; }
.balance-hero .balance-amount { font-size: clamp(24px, 6vw, 34px); font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.linked-add-card h2 { font-weight: 650; }
.linked-add-location strong { font-weight: 600; }
.withdrawal-card .field label { font-weight: 500; }

/* Fond commun aux champs actifs, y compris la saisie automatique sur Android. */
:is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=submit],[type=button],[type=image],[type=color]), select, textarea):focus:not([readonly],:disabled) {
  background-color: #e8f0fe !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1000px #e8f0fe !important;
  outline: none !important;
  transition: none !important;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 2px;
}
input[type=checkbox], input[type=radio], input[type=range] { accent-color: #1557aa; }
label:has(> input[type=radio]:focus-visible), input[type=radio]:focus-visible + label { outline: 2px solid #7497c3; }

.toast.success {
  width: fit-content; min-width: 0; max-width: min(390px, calc(100vw - 32px));
  padding: 12px 16px 12px 42px; border-radius: 9px;
  background: #216849 !important; color: white !important;
  border: 1px solid #216849 !important; box-shadow: 0 3px 14px #152e251a;
  font-size: 13px; font-weight: 500; text-align: left;
  backdrop-filter: none; pointer-events: none;
}
.toast.success::before {
  content: ''; left: 13px; width: 19px; height: 19px;
  border: none; border-radius: 50%; background: #e4f3ea center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='%23287552' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; min-height: 42px; width: auto; border: 0; background: transparent; color: #345575; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.back-link:hover { color: #1557aa; }

.table-wrap, .activity-table-wrap, .network-scroll {
  min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch;
}
.account-switch-trigger { color: #53667d !important; }
.withdraw-success-card { width: min(350px,100%); padding: 24px; text-align: left; border-radius: 14px !important; box-shadow: 0 12px 38px #192c432b !important; }
.withdraw-success-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.withdraw-success-card p { font-size: 14px; line-height: 1.5; margin: 0; }
.withdraw-success-visual { width: 42px; height: 42px; margin: 0 0 16px; border-radius: 50%; background: transparent; box-shadow: none; }
.withdraw-success-spinner { width: 23px; height: 23px; border: 2px solid #cbd8e7; border-top-color: #235898; }
.is-confirmed .withdraw-success-visual { background: transparent; }
.withdraw-success-check { color: #22784f; }
.withdraw-success-close { top: 8px; right: 8px; font-size: 22px; background: transparent !important; }
@media (prefers-reduced-motion: reduce) { .withdraw-success-spinner { animation: none !important; } }

/* Indicateur commun au démarrage et aux opérations en cours. */
.boot-spinner, .button-spinner, .withdraw-success-spinner {
  background: transparent url("assets/loading.svg") center / contain no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  animation: segments-turn 1.05s steps(12) infinite !important;
}
@keyframes segments-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .boot-spinner, .button-spinner, .withdraw-success-spinner { animation: none !important; }
}

.withdraw-success-spinner { width: 32px; height: 32px; }

/* Le fond identifie le champ, même après avoir fermé le clavier. */
:is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=submit],[type=button],[type=image],[type=color]),select,textarea):not([readonly],:disabled) {
  border-color: transparent !important;
  background-color: #eef4fd !important;
  box-shadow: none !important;
}
.toast.success, .toast.error {
  border: 0 !important; border-radius: 9px; backdrop-filter: blur(5px);
  width: fit-content; min-width: 0; max-width: min(390px,calc(100vw - 32px));
  padding: 12px 16px 12px 42px; font-weight: 500;
  box-shadow: 0 3px 14px rgba(20,40,32,.10);
}
.toast.success { background: rgba(215,244,228,.94) !important; color: #155435 !important; }
.toast.error { background: rgba(255,228,230,.94) !important; color: #872c3d !important; }
.toast.error::before { content: '!'; left: 13px; width: 19px; height: 19px; border: 0; color: #872c3d; background: #f6cdd3; }

.toast-root { inset: auto 0 calc(14px + env(safe-area-inset-bottom,0px)) !important; padding: 0 16px; }
@media(max-width:860px){body:has(.mobile-nav) .toast-root { bottom: calc(78px + env(safe-area-inset-bottom,0px)) !important; }}
.toast.success, .toast.error { text-align: left; border-radius: 8px; box-shadow: 0 2px 8px rgba(24,42,56,.10); }

.dashboard-profile .dashboard-name-row { align-items: center; }
.dashboard-profile .dashboard-name-row h1 { flex: 0 1 auto; min-width: 0; }
.dashboard-profile .dashboard-verified { flex-shrink: 0; margin-top: 0; }
