/* =========================================================
   Espace membre & Gestion (ERP) — app shell, tables, forms
   ========================================================= */
.page-app main { background: var(--color-studio-mist); min-height: calc(100vh - 44px); }

/* demo banner */
.demobar { position: sticky; top: 0; z-index: 120; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px var(--gutter); background: #fff6ec; border-bottom: 1px solid #f3d9bf; font-size: 13px; color: var(--color-ink); }
.demobar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-launch-orange); box-shadow: 0 0 0 4px rgba(182, 68, 0, .15); }
.demobar b { color: var(--color-launch-orange); }
.demobar__txt { color: var(--color-slate); }
.demobar__role { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.demobar select { font: inherit; font-size: 13px; border: 0; box-shadow: var(--shadow-subtle-2); border-radius: 999px; padding: 4px 10px; background: #fff; }
.demobar__btn { font: inherit; font-size: 13px; border: 0; background: none; color: var(--color-apple-blue); padding: 4px 6px; }
.demobar__btn:hover { text-decoration: underline; }
.has-demobar .gnav { top: 0; position: relative; }
.has-demobar main { padding-top: 0; }

/* gate */
.gate { max-width: 980px; margin: 0 auto; padding: clamp(48px, 10vh, 110px) var(--pad-x) 90px; }
.gate h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; margin: 0 0 16px; }
.gate__intro { font-size: 19px; line-height: 1.42; max-width: 640px; margin: 0 0 40px; }
.gate__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--element-gap); }
.gate__card { background: #fff; border-radius: var(--radius-cards); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.gate__card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.gate__card p { margin: 0; }
.gate__card .xfield { width: 100%; }
.gate__card--demo { background: var(--color-ink); color: #fff; }
.gate__card--demo .pill--outline { color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.gate__card--demo .pill--outline:hover { background: #fff; color: var(--color-ink); }
.gate__err { color: #b3261e; font-size: 14px; min-height: 1.2em; }
.gate__warn { color: var(--color-launch-orange); font-size: 14px; }
.gate__help { font-size: 12px; color: var(--color-slate); }

/* fields */
.xfield { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--color-slate); min-width: 0; }
.xfield input, .xfield select, .xfield textarea, .erp input:not([type=checkbox]):not([type=range]), .erp select, .erp textarea {
  font: inherit; font-size: 15px; color: var(--color-ink); background: #fff; border: 0; box-shadow: var(--shadow-subtle-2); border-radius: 12px; padding: 10px 12px; outline: none; width: 100%; min-width: 0; transition: box-shadow .2s;
}
.xfield textarea { resize: vertical; }
.xfield input:focus, .xfield select:focus, .xfield textarea:focus, .erp input:focus, .erp select:focus, .erp textarea:focus { box-shadow: 0 0 0 2px var(--color-pricing-blue); }
.xfield small { font-size: 12px; color: var(--color-steel); }
.xcheck { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.pill--danger { background: #fff; color: #b3261e; box-shadow: 0 0 0 1px #e8b4b0; }
.pill--danger:hover { background: #b3261e; color: #fff; }

/* dialog */
.xdialog { border: 0; padding: 0; border-radius: var(--radius-cards); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #fff; color: var(--color-ink); }
.xdialog--wide { width: min(980px, calc(100vw - 24px)); }
.xdialog::backdrop { background: rgba(29, 29, 31, .35); backdrop-filter: blur(6px); }
.xdialog__inner { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.xdialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xdialog__head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; }
.xdialog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.xdialog__grid .full { grid-column: 1 / -1; }
.xdialog__err { color: #b3261e; font-size: 14px; margin: 0; min-height: 1em; }
.xdialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.xdialog__foot .pill { font-size: 14px; padding: 9px 18px; }

/* app shell */
.erp { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 44px); }
.erp__side { background: #fff; border-right: 1px solid var(--color-control-gray); padding: 20px 12px; position: sticky; top: 0; height: calc(100vh - 0px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.erp__brand { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.erp__brand b { font-family: var(--font-display); font-size: 17px; }
.erp__brand span { font-size: 12px; color: var(--color-slate); }
.erp__group { font-size: 11px; font-weight: 600; color: var(--color-steel); text-transform: uppercase; letter-spacing: .04em; padding: 14px 12px 6px; }
.erp__link { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--color-ink); cursor: pointer; transition: background-color .2s; }
.erp__link:hover { background: var(--color-studio-mist); }
.erp__link.is-on { background: var(--color-ink); color: #fff; }
.erp__link svg { width: 16px; height: 16px; fill: currentColor; opacity: .8; flex-shrink: 0; }
.erp__user { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--color-control-gray); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.erp__user b { font-weight: 600; }
.erp__user .linkbtn { text-align: left; }
.erp__main { padding: 28px clamp(16px, 3vw, 40px) 80px; min-width: 0; }
.erp__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.erp__head h1 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -0.012em; margin: 0; }
.erp__head p { margin: 4px 0 0; color: var(--color-slate); font-size: 14px; }
.erp__tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.erp__tools .pill { font-size: 14px; padding: 9px 16px; }
.erp__tools input, .erp__tools select { width: auto; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.erp__menu-btn { display: none; }

.panel { background: #fff; border-radius: 22px; padding: 22px; margin-bottom: 16px; min-width: 0; }
.panel h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 14px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel__head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.muted { color: var(--color-slate); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { font-size: 12px; color: var(--color-slate); }
.kpi b { font-family: var(--font-mono); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.kpi small { font-size: 12px; color: var(--color-steel); }
.pos { color: #2e7d32; }
.neg { color: #b3261e; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--color-slate); padding: 8px 10px; border-bottom: 1px solid var(--color-control-gray); white-space: nowrap; position: sticky; top: 0; background: #fff; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--color-control-gray); vertical-align: top; }
.tbl tr.is-click { cursor: pointer; }
.tbl tr.is-click:hover td { background: var(--color-paper-frost); }
.tbl .r { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
.tbl .c { text-align: center; }
.tbl tfoot td { font-weight: 600; border-top: 2px solid var(--color-ink); border-bottom: 0; }
.tbl tr.sub td { background: var(--color-paper-frost); font-weight: 600; }
.tbl .mono { font-size: 13px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--color-studio-mist); color: var(--color-ink); white-space: nowrap; }
.tag--ok { background: #e7f4e8; color: #2e7d32; }
.tag--warn { background: #fdf0e0; color: var(--color-launch-orange); }
.tag--ko { background: #fbe8e6; color: #b3261e; }
.tag--blue { background: #e5f0fb; color: var(--color-apple-blue); }
.empty { text-align: center; padding: 30px; color: var(--color-slate); }

/* entry editor */
.lines { width: 100%; border-collapse: collapse; }
.lines th { font-size: 12px; font-weight: 500; color: var(--color-slate); text-align: left; padding: 4px 6px; }
.lines td { padding: 4px 6px; }
.lines td:nth-child(2) { width: 46%; color: var(--color-slate); font-size: 13px; }
.lines input { padding: 8px 10px !important; font-size: 14px !important; }
.lines .r input { text-align: right; font-family: var(--font-mono); }
.lines__del { border: 0; background: none; color: var(--color-steel); font-size: 18px; cursor: pointer; }
.balance-ind { display: flex; gap: 16px; align-items: center; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--color-studio-mist); flex-wrap: wrap; }
.balance-ind.is-ok { background: #e7f4e8; color: #2e7d32; }
.balance-ind.is-ko { background: #fbe8e6; color: #b3261e; }
.tpl { display: flex; gap: 6px; flex-wrap: wrap; }

/* charts */
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { font-size: 11px; fill: var(--color-slate); font-family: var(--font-text); }
.chart .grid { stroke: var(--color-control-gray); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--color-slate); margin: 8px 0 0; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* statements */
.stmt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stmt .tbl td:first-child { width: 70px; font-family: var(--font-mono); font-size: 12px; color: var(--color-slate); }
.result-band { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--color-ink); color: #fff; font-size: 17px; margin-bottom: 16px; }
.result-band b { font-family: var(--font-mono); font-size: 26px; font-weight: 500; }

/* member space */
.mspace { max-width: 1180px; margin: 0 auto; padding: 36px var(--pad-x) 90px; }
.mspace__hello { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.mspace__sub { color: var(--color-slate); margin: 0 0 28px; }
.mcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.mcard { background: #fff; border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.mcard span { font-size: 12px; color: var(--color-slate); }
.mcard b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.mcard a, .mcard button { font-size: 13px; }
.events { display: flex; flex-direction: column; gap: 10px; }
.ev { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--color-paper-frost); }
.ev__date { text-align: center; background: #fff; border-radius: 14px; padding: 8px 4px; box-shadow: var(--shadow-subtle); }
.ev__date b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.ev__date span { font-size: 11px; color: var(--color-slate); text-transform: uppercase; }
.ev__body h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.ev__body p { margin: 0; font-size: 13px; color: var(--color-slate); }
.ev__act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.seg3 { display: inline-flex; background: #fff; border-radius: 999px; padding: 3px; box-shadow: var(--shadow-subtle); }
.seg3 button { border: 0; background: none; font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer; color: var(--color-ink); }
.seg3 button.is-on[data-v="oui"] { background: #2e7d32; color: #fff; }
.seg3 button.is-on[data-v="peut-etre"] { background: #f4b400; color: #1d1d1f; }
.seg3 button.is-on[data-v="non"] { background: var(--color-steel); color: #fff; }
.covoit { font-size: 12px; color: var(--color-slate); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.covoit select { width: auto !important; font-size: 12px !important; padding: 4px 8px !important; }
.carpool { font-size: 12px; color: var(--color-slate); margin-top: 6px; }

@media (max-width: 1000px) {
  .erp { grid-template-columns: 1fr; }
  .erp__side { position: fixed; z-index: 110; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform .4s var(--ease); height: 100vh; box-shadow: var(--shadow-subtle); }
  .erp.is-menu .erp__side { transform: none; }
  .erp__menu-btn { display: inline-flex; }
  .grid2, .grid3, .stmt { grid-template-columns: 1fr; }
  .mcards { grid-template-columns: 1fr 1fr; }
  .gate__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .xdialog__grid { grid-template-columns: 1fr; }
  .mcards { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 52px 1fr; }
  .ev__act { grid-column: 1 / -1; align-items: stretch; }
  .demobar__txt { display: none; }
}
@media print {
  .gnav, .lnav, .demobar, .erp__side, .erp__tools, .footer { display: none !important; }
  .erp { display: block; }
  .panel { break-inside: avoid; }
}

/* identity, exercises, budget meter */
.erp__brand { flex-direction: row; align-items: center; gap: 10px; }
.erp__brand > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.erp__brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.erp__brand img[hidden] { display: none; }
.erp__ex { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--color-apple-blue); text-align: left; cursor: pointer; }
.erp__ex:hover { text-decoration: underline; }
.archive-band { background: #fff4e5; border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; }
.logo-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.logo-edit__img { width: 120px; height: 120px; border-radius: 18px; background: var(--color-studio-mist); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-edit__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-edit__img span { font-size: 12px; color: var(--color-slate); }
.meter { height: 8px; border-radius: 99px; background: var(--color-studio-mist); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; }
.gate__card[hidden] { display: none; }

.gal-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.gal-admin figure { margin: 0; background: var(--color-studio-mist); border-radius: 14px; overflow: hidden; }
.gal-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gal-admin figcaption { padding: 8px 10px; font-size: 12px; line-height: 1.4; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar i { display: block; height: 10px; border-radius: 6px; background: #1f7fd9; min-width: 2px; }
.kpis--small .kpi b { font-size: 22px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }

/* seo */
.seo-auto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.serp { padding: 12px 0; border-bottom: 1px solid #eee; max-width: 640px; }
.serp__url { font-size: 12px; color: #202124; }
.serp__t { display: block; font-size: 19px; color: #1a0dab; margin: 2px 0; text-decoration: none; }
.serp__t:hover { text-decoration: underline; }
.serp p { margin: 0; font-size: 13px; color: #4d5156; line-height: 1.5; }

.qr { margin: 10px 0; } .qr svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; }

/* call to action for other clubs (login screen) */
.gate__clubs { margin-top: 18px; background: #fff; border-radius: var(--radius-cards); padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 0 0 2px var(--color-pricing-blue, #0071e3); }
.gate__clubs h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; }
.gate__clubs p { margin: 0; font-size: 16px; line-height: 1.45; max-width: 560px; }

/* association: AG, statutes, documents */
.guide summary { cursor: pointer; font-size: 16px; }
.guide ol { margin: 14px 0 6px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.ag-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.ag-docs .panel { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ag-docs h3 { margin: 0 0 6px; font-size: 17px; }
.ag-docs p { flex: 1; margin: 0 0 14px; }
.statuts-doc { max-width: 860px; line-height: 1.6; }
.statuts-doc h1 { font-family: var(--font-display); font-size: 26px; }
.statuts-doc h3 { font-size: 16px; margin: 22px 0 6px; }
.drive { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.drive__side { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.drive__f { display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: inherit; }
.drive__f span { color: #86868b; font-size: 12px; }
.drive__f:hover { background: rgba(0, 113, 227, .07); }
.drive__f.is-on { background: rgba(0, 113, 227, .12); color: #0066cc; font-weight: 600; }
.drive__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.drive__bar input { max-width: 320px; }
.drive__gauge { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: rgba(128, 128, 128, .25); vertical-align: middle; margin-left: 6px; overflow: hidden; }
.drive__gauge i { display: block; height: 100%; background: #0071e3; }
.drive__ic { display: inline-block; min-width: 34px; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-align: center; padding: 3px 4px; border-radius: 6px; background: rgba(0, 113, 227, .1); color: #0066cc; margin-right: 8px; }
.drive__name { font-weight: 600; text-align: left; }
.drive__drop.is-over { box-shadow: 0 0 0 3px #0071e3; }
.drive__hint { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 1100px) { .drive { grid-template-columns: minmax(0, 1fr); } .drive__side { flex-direction: row; flex-wrap: wrap; } }
.clubdocs { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* general-meeting wizard and formalities guide */
.wz-steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 16px; }
.wz-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(128, 128, 128, .12); font-size: 14px; color: #6e6e73; }
.wz-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(128, 128, 128, .25); font-size: 12px; font-weight: 700; color: inherit; }
.wz-steps li.is-on { background: #0071e3; color: #fff; } .wz-steps li.is-on span { background: rgba(255, 255, 255, .25); }
.wz-steps li.is-done { color: #188038; } .wz-steps li.is-done span { background: rgba(24, 128, 56, .15); }
.wz h2 { margin-bottom: 8px; } .wz h3 { margin: 22px 0 8px; font-size: 17px; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.wz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.wz-choice { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(128, 128, 128, .3); cursor: pointer; }
.wz-choice input { grid-row: span 2; margin-top: 3px; width: 18px; height: 18px; }
.wz-choice span { font-size: 14px; color: #6e6e73; }
.wz-choice:has(input:checked) { box-shadow: inset 0 0 0 2px #0071e3; background: rgba(0, 113, 227, .05); }
.wz-tbl input, .wz-tbl select { min-width: 110px; font-size: 14px; padding: 7px 9px; }
.wz-sum { padding-left: 20px; line-height: 1.6; }
.wz-apply { grid-column: 1 / -1; box-shadow: inset 0 0 0 2px #0071e3; }
.formal { list-style: none; padding: 0; margin: 0; }
.formal__step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.formal__step h3 { margin: 2px 0 8px; font-size: 18px; }
.formal__step img { display: block; max-width: 100%; width: 720px; margin-top: 12px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .3), 0 6px 20px rgba(0, 0, 0, .08); }
.formal__check { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.formal__check span { width: 34px; height: 34px; border-radius: 50%; background: #0071e3; color: #fff; display: grid; place-items: center; font-weight: 700; }
.formal__check input { width: 20px; height: 20px; }
/* phones: key figures two per row */
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 14px 16px; } .kpi b { font-size: 21px; } .kpi span { font-size: 12px; } }

/* ---------- Base joueurs FFE / FIDE ---------- */
.pill--sm { padding: 5px 12px; font-size: 13px; }
.tag--green { background: #e3f7ea; color: #1a7f37; }
.pbres { min-height: 120px; max-height: 58vh; overflow: auto; margin-top: 8px; transition: opacity .15s; }
.pbres.is-busy { opacity: .5; }
.pbres td small { line-height: 1.5; }
.pbrun { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-left: 4px solid var(--color-link, #0066cc); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0, 102, 204, .2); border-top-color: var(--color-link, #0066cc); animation: spin 0.9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

/* ---------- Ligue interne : podium ---------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 8px 0 18px; }
.podium__p { width: 170px; text-align: center; border-radius: 14px 14px 0 0; padding: 12px 10px 0; background: var(--color-paper-frost, #f5f5f7); display: flex; flex-direction: column; gap: 2px; }
.podium__p b { font-size: 15px; } .podium__p span { color: var(--color-steel); font-size: 13px; }
.podium__p i { font-style: normal; font-weight: 700; font-size: 28px; color: #fff; margin-top: 8px; border-radius: 10px 10px 0 0; padding: 6px 0; }
.podium__p--1 i { background: #d4a017; height: 90px; } .podium__p--2 i { background: #9ea7b3; height: 60px; } .podium__p--3 i { background: #b8733a; height: 40px; }
@media (max-width: 560px) { .podium__p { width: 31%; } .podium__p b { font-size: 13px; } }
