/* FootManager CI — Système de design (charte officielle)
   Vert dominant, orange pour les accents, blanc pour la lisibilité. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff") format("woff"); font-weight: 200 800; font-display: swap; }

:root {
  --green-900: #063D2A;
  --green-700: #087F46;
  --green-500: #20A464;
  --green-100: #E3F3EA;
  --green-50: #F1F9F4;
  --orange-600: #FF7900;
  --orange-400: #FF9B32;
  --orange-50: #FFF3E6;
  --white: #FFFFFF;
  --grey-50: #F4F6F5;
  --grey-200: #DCE3DF;
  --grey-300: #C6D0CA;
  --text: #17251E;
  --text-2: #68756E;
  --red: #D92D20;
  --red-50: #FDECEA;
  --yellow: #F2B705;
  --yellow-50: #FEF7DC;
  --yellow-text: #7A5A00;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(6, 61, 42, .06);
  --shadow: 0 1px 3px rgba(6, 61, 42, .06), 0 6px 20px rgba(6, 61, 42, .06);
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 256px;
  --topbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--grey-50); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--grey-200); margin: 1.25rem 0; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--green-900); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: .6rem; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .55rem 1rem; border-radius: var(--radius); border: 1px solid transparent; font: 600 .92rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-accent { background: var(--orange-600); color: #fff; }
.btn-accent:hover { background: #E86E00; color: #fff; }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: #042A1D; color: #fff; }
.btn-outline { background: #fff; color: var(--green-900); border-color: var(--grey-200); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-ghost { background: transparent; color: var(--green-700); }
.btn-ghost:hover { background: var(--green-50); }
.btn-danger { background: #fff; color: var(--red); border-color: #F3C3BE; }
.btn-danger:hover { background: var(--red-50); color: #B42318; }
.btn-sm { min-height: 34px; padding: .35rem .7rem; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: .75rem 1.35rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: fm-spin .7s linear infinite; }
.btn-outline.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--grey-200); border-top-color: var(--green-700); }
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* ---------- Cartes ---------- */
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 1.15rem 1.25rem; }
.card-header { padding: .95rem 1.25rem; border-bottom: 1px solid var(--grey-200); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1rem; }
.card-footer { padding: .8rem 1.25rem; border-top: 1px solid var(--grey-200); background: #FBFCFB; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-link { color: var(--green-700); font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }

/* ---------- Indicateurs ---------- */
.kpi { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; min-height: 112px; position: relative; overflow: hidden; }
.kpi-label { color: var(--text-2); font-size: .82rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.kpi-label .icon { width: 17px; height: 17px; color: var(--green-700); }
.kpi-value { font-family: var(--font-head); font-size: 1.85rem; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { font-size: .8rem; color: var(--text-2); }
.kpi.is-alert .kpi-value { color: #B45309; }
.kpi.is-alert { border-color: #F8D9B8; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green-500); opacity: .9; }
.kpi.is-alert::after { background: var(--orange-600); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.badge-success { background: var(--green-100); color: #05603A; }
.badge-warning { background: var(--yellow-50); color: var(--yellow-text); border-color: #F5E2A1; }
.badge-danger { background: var(--red-50); color: #B42318; }
.badge-neutral { background: var(--grey-50); color: var(--text-2); border-color: var(--grey-200); }
.badge-info { background: #EAF2FF; color: #1D4ED8; }
.badge-accent { background: var(--orange-50); color: #B45309; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- Alertes ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .92rem; }
.alert .icon { margin-top: 1px; }
.alert p:last-child { margin: 0; }
.alert-success { background: var(--green-50); border-color: #B7E1C8; color: #05603A; }
.alert-error { background: var(--red-50); border-color: #F5C2BC; color: #912018; }
.alert-info { background: #F2F7FF; border-color: #C9DCFB; color: #1E3A8A; }
.alert-warning { background: var(--yellow-50); border-color: #F5E2A1; color: var(--yellow-text); }
.alert-accent { background: var(--orange-50); border-color: #FFD3A8; color: #8A3D00; }
.flash-stack { display: grid; gap: .5rem; margin-bottom: 1rem; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label, .label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .78rem; color: var(--text-2); }
.req { color: var(--orange-600); margin-left: 2px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--grey-300); border-radius: var(--radius); background: #fff; font: 400 .95rem/1.4 var(--font-body); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368756E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2.2rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(8, 127, 70, .15); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 45, 32, .1); }
.field-error { color: var(--red); font-size: .8rem; margin: 0; font-weight: 500; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-input { position: relative; }
.chip-input input { position: absolute; opacity: 0; pointer-events: none; }
.chip-input span { display: inline-flex; align-items: center; min-height: 38px; padding: .35rem .85rem; border: 1px solid var(--grey-300); border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; background: #fff; color: var(--text-2); }
.chip-input input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip-input input:focus-visible + span { outline: 3px solid var(--orange-400); outline-offset: 2px; }
.fieldset { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem 1.25rem; margin: 0 0 1rem; background: #fff; }
.fieldset legend { font-family: var(--font-head); font-weight: 750; color: var(--green-900); padding: 0 .4rem; font-size: 1rem; }
.fieldset .legend-hint { margin: -.2rem 0 .9rem; font-size: .84rem; color: var(--text-2); }
details.fieldset > summary { cursor: pointer; font-family: var(--font-head); font-weight: 750; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.fieldset > summary::-webkit-details-marker { display: none; }
details.fieldset > summary::after { content: "+"; font-size: 1.3rem; color: var(--green-700); }
details.fieldset[open] > summary::after { content: "–"; }
details.fieldset[open] > summary { margin-bottom: .9rem; }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; padding-top: .5rem; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(244, 246, 245, .94); backdrop-filter: blur(6px); padding: .75rem 0; margin-top: .5rem; border-top: 1px solid var(--grey-200); z-index: 5; }
.file-drop { border: 1.5px dashed var(--grey-300); border-radius: var(--radius); padding: .8rem; background: var(--grey-50); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: .7rem 1rem; background: #FAFBFA; border-bottom: 1px solid var(--grey-200); white-space: nowrap; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid #EDF1EE; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFCFA; }
.table .cell-link { color: var(--text); text-decoration: none; font-weight: 600; }
.table .cell-link:hover { color: var(--green-700); }
.table th a { color: inherit; text-decoration: none; }
@media (max-width: 760px) {
  .table-responsive thead { display: none; }
  .table-responsive, .table-responsive tbody { display: block; width: 100%; }
  .table-responsive tr { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--grey-200); }
  .table-responsive td { padding: 0; border: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 0; font-size: .88rem; }
  .table-responsive td::before { content: attr(data-label); font-weight: 600; color: var(--text-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
  .table-responsive td.td-main { grid-column: 1 / -1; }
  .table-responsive td.td-main::before, .table-responsive td:not([data-label])::before { display: none; }
  .table-responsive td:not([data-label]):not(.td-main) { grid-column: 1 / -1; align-items: stretch; }
  .table-responsive td:empty { display: none; }
}

/* ---------- Avatars ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-100); color: var(--green-900); display: inline-flex; align-items: center; justify-content: center; font: 750 .85rem var(--font-head); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.6rem; border-radius: 18px; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.person { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.person-name { font-weight: 600; color: var(--text); line-height: 1.25; }
.person-meta { font-size: .8rem; color: var(--text-2); }

/* ---------- États vides ---------- */
.empty { text-align: center; padding: 2.25rem 1.25rem; }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.empty-icon .icon { width: 26px; height: 26px; }
.empty h3 { margin-bottom: .3rem; }
.empty p { color: var(--text-2); max-width: 420px; margin: 0 auto 1rem; font-size: .92rem; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--grey-200); overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: .7rem .9rem; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tab:hover { color: var(--green-900); }
.tab.is-active { color: var(--green-900); border-bottom-color: var(--orange-600); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .35rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .8rem 1rem; font-size: .88rem; color: var(--text-2); }
.pagination .pages { display: flex; gap: .3rem; }
.page-link { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--grey-200); color: var(--text); text-decoration: none; background: #fff; padding: 0 .5rem; }
.page-link.is-active { background: var(--green-900); color: #fff; border-color: var(--green-900); }

/* ---------- Listes de définition ---------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; margin: 0; }
.dl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl dt { font-size: .78rem; color: var(--text-2); font-weight: 500; }
.dl dd { margin: .1rem 0 0; font-weight: 600; color: var(--text); word-break: break-word; }
@media (max-width: 640px) { .dl, .dl-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- Dialogues ---------- */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(6,61,42,.25); color: var(--text); }
dialog.modal::backdrop { background: rgba(6, 61, 42, .45); }
.modal-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--grey-200); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 1.1rem 1.25rem; }
.modal-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--grey-200); display: flex; justify-content: flex-end; gap: .5rem; background: #FBFCFB; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--grey-50); color: var(--green-900); }

/* ---------- Progression ---------- */
.progress { height: 8px; background: var(--grey-200); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-700), var(--green-500)); border-radius: 99px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.step-item { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--grey-200); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); }
a.step-item:hover { border-color: var(--green-500); }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 750 .85rem var(--font-head); background: var(--grey-50); color: var(--green-900); border: 1px solid var(--grey-200); flex: none; }
.step-item.is-done .step-num { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.step-item.is-off { opacity: .6; }
.step-text { flex: 1; min-width: 0; }
.step-text strong { display: block; font-size: .92rem; }
.step-text span { font-size: .8rem; color: var(--text-2); }

/* ---------- Graphiques SVG ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font-body); fill: var(--text-2); font-size: 11px; }
.chart .bar { fill: var(--green-500); }
.chart .bar:hover { fill: var(--green-700); }
.chart .val { fill: var(--green-900); font-weight: 700; }
.chart .grid-line { stroke: #EDF1EE; }
.chart .line { fill: none; stroke: var(--green-700); stroke-width: 2.5; }
.chart .area { fill: url(#fmArea); }
.chart .pt { fill: #fff; stroke: var(--green-700); stroke-width: 2; }

.hbars { display: grid; gap: .55rem; }
.hbar { display: grid; grid-template-columns: minmax(70px, 30%) 1fr 32px; align-items: center; gap: .6rem; font-size: .85rem; }
.hbar-label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 12px; background: var(--grey-50); border-radius: 99px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--green-500); border-radius: 99px; }
.hbar-val { font-weight: 700; color: var(--green-900); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Divers ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: .7rem 1.25rem; border-bottom: 1px solid #EDF1EE; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.list-plain > li:last-child { border-bottom: 0; }
.kbd { font: 600 .75rem var(--font-body); background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: 6px; padding: .05rem .4rem; }
.copy-box { display: flex; gap: .5rem; align-items: stretch; }
.copy-box .input { font-size: .82rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--grey-200); }
.timeline li:last-child::after { display: none; }
.badge-plan { background: var(--green-900); color: #fff; }
[hidden] { display: none !important; }

/* Paiement Mobile Money (page Abonnement) */
.mm-steps { list-style: none; counter-reset: mm; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.mm-steps > li { counter-increment: mm; position: relative; padding-left: 2.6rem; }
.mm-steps > li::before { content: counter(mm); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--green-700); color: #fff; font: 700 .9rem/1.8rem var(--font-head); text-align: center; }
.mm-steps h3 { margin: .15rem 0 .7rem; font-size: 1rem; }
.mm-total { margin: .75rem 0 0; font-size: .95rem; }
.mm-total strong { font: 800 1.35rem var(--font-head); color: var(--green-900); margin-left: .3rem; }
.mm-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.mm-op { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: .9rem 1rem; border: 2px solid var(--grey-200); border-left-width: 6px; border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mm-op input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.mm-op:has(input:checked) { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }
.mm-op:has(input:focus-visible) { outline: 3px solid var(--orange-400); outline-offset: 2px; }
.mm-op-orange_money { border-left-color: #FF7900; }
.mm-op-moov_money { border-left-color: #0A5CA8; }
.mm-op-wave { border-left-color: #1DC4FF; }
.mm-op-mtn_momo { border-left-color: #FFCC00; }
.mm-op-body { display: flex; flex-direction: column; gap: .15rem; }
.mm-op-name { font-weight: 700; color: var(--green-900); }
.mm-op-number { font: 800 1.3rem var(--font-head); letter-spacing: .02em; color: var(--text); }
.mm-op-help { font-size: .8rem; color: var(--text-2); }
.mm-op .btn { align-self: flex-start; }
@media (max-width: 600px) { .mm-steps > li { padding-left: 0; padding-top: 2.4rem; } }

/* Entraînements : calendrier */
.cal-toolbar { flex-wrap: wrap; gap: .6rem; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--grey-200); }
.cal-day { min-height: 190px; padding: .6rem .5rem; border-right: 1px solid var(--grey-200); display: flex; flex-direction: column; gap: .45rem; }
.cal-day:last-child { border-right: 0; }
.cal-day.is-today { background: var(--green-50); }
.cal-day-head { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.cal-day-head strong { font: 800 1.05rem var(--font-head); color: var(--green-900); }
.cal-day.is-today .cal-day-head strong { color: var(--green-700); }
.cal-add { margin-left: auto; display: inline-flex; padding: .2rem; border-radius: 6px; color: var(--text-2); }
.cal-add:hover { background: var(--grey-50); color: var(--green-700); }
.cal-none { font-size: .76rem; color: var(--grey-300); }
.cal-session { display: flex; flex-direction: column; gap: .15rem; padding: .5rem .55rem; border-radius: var(--radius); border: 1px solid var(--grey-200); border-left: 4px solid var(--green-700); background: #fff; text-decoration: none; color: var(--text); transition: box-shadow .15s, border-color .15s; }
.cal-session:hover { box-shadow: var(--shadow-sm); border-color: var(--green-500); }
.cal-session.is-canceled { border-left-color: var(--grey-300); opacity: .7; }
.cal-session.is-canceled .cal-title { text-decoration: line-through; }
.cal-session .badge { align-self: flex-start; font-size: .7rem; }
.cal-time { font: 700 .78rem var(--font-head); color: var(--green-700); }
.cal-title { font-weight: 700; font-size: .86rem; line-height: 1.25; }
.cal-meta { font-size: .74rem; color: var(--text-2); line-height: 1.3; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--grey-200); }
.cal-mhead { padding: .45rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--grey-200); text-align: center; }
.cal-mcell { min-height: 96px; padding: .35rem; border-right: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); display: flex; flex-direction: column; gap: .2rem; }
.cal-mcell:nth-child(7n+7) { border-right: 0; }
.cal-mcell.is-out { background: var(--grey-50); }
.cal-mcell.is-out .cal-mnum { color: var(--grey-300); }
.cal-mcell.is-today { background: var(--green-50); }
.cal-mnum { font: 700 .8rem var(--font-head); color: var(--green-900); }
.cal-mitem { display: block; font-size: .72rem; padding: .15rem .35rem; border-radius: 5px; background: var(--green-100); color: var(--green-900); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-mitem.is-done { background: #DDF3E6; }
.cal-mitem.is-todo { background: var(--yellow-50); color: var(--yellow-text); }
.cal-mitem.is-canceled { background: var(--grey-50); color: var(--text-2); text-decoration: line-through; }
.cal-more { font-size: .7rem; color: var(--text-2); }
@media (max-width: 900px) {
  .cal-week { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--grey-200); }
  .cal-day.is-empty { flex-direction: row; align-items: center; }
  .cal-day.is-empty .cal-day-head { flex: 1; }
  .cal-mcell { min-height: 64px; }
  .cal-mitem { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
}

/* Formulaire de séance : répétition */
.repeat-box:not(:has(input[name="repeat"]:checked)) .repeat-fields { display: none; }

/* Pointage des présences */
.att-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--grey-200); }
.att-counts { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.att-list { list-style: none; margin: 0; padding: 0; }
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem 1rem; padding: .65rem 1.25rem; border-bottom: 1px solid var(--grey-200); }
.att-row.is-unset { background: #FFFBF0; }
.att-seg { display: inline-flex; gap: 4px; border: 0; padding: 0; margin: 0; }
.att-opt { position: relative; }
.att-opt input { position: absolute; opacity: 0; pointer-events: none; }
.att-opt span:first-of-type { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 .4rem; border: 1px solid var(--grey-300); border-radius: 9px; font: 700 .85rem var(--font-head); color: var(--text-2); background: #fff; cursor: pointer; user-select: none; }
.att-opt input:focus-visible + span { outline: 3px solid var(--orange-400); outline-offset: 2px; }
.att-present input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.att-retard input:checked + span { background: #F5B300; border-color: #F5B300; color: #3B2A00; }
.att-absent input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.att-excuse input:checked + span { background: #2563EB; border-color: #2563EB; color: #fff; }
.att-non_convoque input:checked + span { background: var(--text-2); border-color: var(--text-2); color: #fff; }
.att-note { grid-column: 1 / -1; font-size: .8rem; }
.att-note summary { cursor: pointer; color: var(--text-2); width: max-content; }
.att-note .input { margin-top: .35rem; min-height: 38px; }
.att-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.att-changes { margin: .3rem 0 0; padding-left: 1rem; font-size: .8rem; color: var(--text-2); }
.att-changes li { padding: 0; }
.att-changes li::before, .att-changes li::after { display: none; }
@media (max-width: 600px) {
  .att-row { grid-template-columns: 1fr; padding: .7rem 1rem; }
  .att-seg { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
  .att-opt span:first-of-type { width: 100%; min-width: 0; height: 46px; }
}

/* Barre de taux de présence */
.rate { display: flex; align-items: center; gap: .6rem; }
.rate-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--grey-50); border: 1px solid var(--grey-200); overflow: hidden; min-width: 70px; }
.rate-bar span { display: block; height: 100%; background: var(--green-700); }
.rate-warning span { background: #F5B300; }
.rate-danger span { background: var(--red); }
.rate-neutral span { background: var(--grey-300); }
.att-footer.sticky-actions { padding: .75rem 1.25rem; margin-top: 0; background: rgba(255, 255, 255, .96); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.att-footer .btn { margin-left: auto; }
@media (max-width: 600px) { .att-footer .muted { display: none; } .att-footer .btn { width: 100%; } }

/* ---- Badges QR (format carte bancaire 85,6 × 54 mm) ---- */
.fm-badge { --bc: #063D2A; --bc-on: #fff; --bc-ink: #063D2A; --bc-soft: #E3F3EA; --bc-accent: #FF7900; width: 85.6mm; height: 54mm; box-sizing: border-box; background: #fff; border: 1px solid var(--grey-300); border-radius: 3.2mm; overflow: hidden; display: flex; flex-direction: column; color: var(--text); break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fm-badge-club { display: flex; align-items: center; gap: 2.4mm; height: 12mm; flex: none; padding: 0 3.5mm 0 2.5mm; background: var(--bc); color: var(--bc-on); font: 800 3.3mm/1.1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; border-bottom: .9mm solid var(--bc-accent); }
.fm-badge-logo { width: 10mm; height: 10mm; flex: none; display: grid; place-items: center; background: #fff; border-radius: 50%; padding: .6mm; box-sizing: border-box; box-shadow: 0 0 0 .3mm rgba(255,255,255,.6); }
.fm-badge-logo img { width: 100%; height: 100%; object-fit: contain; }
.fm-badge-clubname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-badge-body { flex: 1; display: flex; align-items: center; gap: 3mm; padding: 1.6mm 3mm 1.2mm 3.5mm; min-height: 0; }
.fm-badge-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .6mm; }
.fm-badge-photo { width: 13mm; height: 13mm; border-radius: 50%; background: var(--bc-soft); color: var(--bc-ink); display: grid; place-items: center; font: 800 4.4mm/1 var(--font-head); overflow: hidden; margin-bottom: .6mm; box-shadow: 0 0 0 .55mm var(--bc); }
.fm-badge-photo img { width: 100%; height: 100%; object-fit: cover; }
.fm-badge-kind { font: 700 2.4mm/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--bc-ink); opacity: .85; }
.fm-badge-name { font: 800 3.6mm/1.15 var(--font-head); color: var(--bc-ink); overflow-wrap: anywhere; }
.fm-badge-line { font-size: 2.6mm; line-height: 1.25; color: var(--text-2); }
.fm-badge-qr { width: 28mm; flex: 0 0 28mm; display: flex; flex-direction: column; align-items: center; gap: .3mm; }
.fm-badge-qr svg { width: 28mm; height: 28mm; display: block; }
.fm-badge-qr span { font: 600 2.1mm/1 var(--font-body); color: var(--text-2); letter-spacing: .05em; }
.fm-badge-foot { height: 2.2mm; flex: none; background: linear-gradient(90deg, var(--bc) 0 62%, var(--bc-accent) 62% 100%); }
.badge-single { display: flex; justify-content: flex-start; }
.badge-single .fm-badge { transform-origin: top left; }
@media (min-width: 720px) { .badge-single { padding-bottom: 27mm; } .badge-single .fm-badge { transform: scale(1.5); } }
.badge-sheet { display: grid; grid-template-columns: repeat(auto-fill, 85.6mm); gap: 4mm; }
@media print {
  @page { size: A4; margin: 10mm; }
  .content { padding: 0 !important; }
  .badge-single { padding: 0; }
  .badge-single .fm-badge { transform: none; }
  .badge-sheet { grid-template-columns: repeat(2, 85.6mm); gap: 3mm 6mm; justify-content: center; }
  .fm-badge { border-color: #999; }
}

/* ---- Scanner de badges ---- */
.scan-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .scan-layout { grid-template-columns: 1fr; } }
.scan-cam { overflow: hidden; }
.scan-view { position: relative; aspect-ratio: 4 / 3; background: #0B1F17; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); pointer-events: none; }
.scan-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; color: #E3F3EA; background: #0B1F17; }
.scan-idle[hidden] { display: none; }
.scan-idle .icon { width: 44px; height: 44px; color: var(--green-500); }
.scan-idle p { margin: 0; max-width: 32ch; }
.scan-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.scan-flash.is-success { background: rgba(32,164,100,.35); opacity: 1; }
.scan-flash.is-warning { background: rgba(242,183,5,.35); opacity: 1; }
.scan-flash.is-danger { background: rgba(217,45,32,.4); opacity: 1; }
.scan-flash.is-neutral { background: rgba(255,255,255,.25); opacity: 1; }
.scan-status { margin: 0; padding: .7rem 1rem; color: var(--text-2); }
.scan-counts { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.scan-counts div { padding: .9rem .4rem; border-right: 1px solid var(--grey-200); display: flex; flex-direction: column; gap: .15rem; }
.scan-counts div:last-child { border-right: 0; }
.scan-counts b { font: 800 1.6rem/1 var(--font-head); color: var(--green-900); font-variant-numeric: tabular-nums; }
.scan-counts span { font-size: .78rem; color: var(--text-2); }
.scan-feed { list-style: none; margin: 0; padding: .4rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; max-height: 360px; overflow: auto; }
.scan-item { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .75rem; border-radius: var(--radius); border-left: 4px solid var(--grey-300); background: var(--grey-50); }
.scan-item.is-success { border-left-color: var(--green-500); background: var(--green-50); }
.scan-item.is-warning { border-left-color: var(--yellow); background: var(--yellow-50); }
.scan-item.is-danger { border-left-color: var(--red); background: var(--red-50); }
.scan-item strong { color: var(--green-900); }
.scan-item.is-danger strong { color: var(--red); }

/* Écran de confirmation après un scan */
.scan-result { --tone: var(--green-700); --tone-soft: var(--green-50); position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(10, 20, 15, .72); animation: sr-in .18s ease-out; }
.scan-result[hidden] { display: none; }
.scan-result.is-warning { --tone: #B45309; --tone-soft: #FFF7E6; }
.scan-result.is-neutral { --tone: #1D4ED8; --tone-soft: #EEF4FF; }
.scan-result.is-danger { --tone: #B42318; --tone-soft: #FDECEA; }
.scan-result-card { width: min(420px, 100%); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 0; animation: sr-pop .22s cubic-bezier(.2,1.4,.4,1); }
.scan-result-club { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .75rem 1rem; background: var(--bc); color: var(--bc-on); font: 800 .95rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .03em; border-bottom: 4px solid var(--bc-accent); }
.scan-result-club img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.scan-result-body { padding: 1.4rem 1.25rem 1rem; text-align: center; background: linear-gradient(180deg, var(--tone-soft), #fff 70%); }
.scan-result-photo { width: 132px; height: 132px; margin: 0 auto .9rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); font: 800 2.8rem/1 var(--font-head); box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--tone); }
.scan-result-photo img { width: 100%; height: 100%; object-fit: cover; }
.scan-result-name { margin: 0; font: 800 1.55rem/1.15 var(--font-head); color: var(--text); overflow-wrap: anywhere; }
.scan-result-detail { margin: .3rem 0 0; color: var(--text-2); font-size: .95rem; min-height: 1.2em; }
.scan-result-status { display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 0; padding: .55rem 1.1rem; border-radius: 999px; background: var(--tone); color: #fff; font: 800 1.25rem/1 var(--font-head); }
.scan-result-status .icon { width: 22px; height: 22px; }
.scan-result-msg { margin: .7rem 0 0; color: var(--text); font-weight: 600; }
.scan-result-time { margin: .25rem 0 0; color: var(--text-2); font-size: .85rem; }
.scan-result-next { border-radius: 0; min-height: 56px; background: var(--tone); color: #fff; font-size: 1rem; }
.scan-result-next:hover { filter: brightness(1.08); }
.scan-result-bar { height: 4px; background: var(--tone); transform-origin: left; animation: sr-bar linear forwards; }
@keyframes sr-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sr-pop { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sr-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .scan-result, .scan-result-card { animation: none; } }

/* ---- Matchs, compétitions et statistiques ---- */
.filters-bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; padding: .8rem 1rem; align-items: end; }
.filters-bar .field { min-width: 170px; flex: 1 1 170px; max-width: 280px; }
.filters-bar .select { min-height: 40px; font-size: .88rem; }
.match-list { display: flex; flex-direction: column; }
.match-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .7rem 1.1rem; border-bottom: 1px solid #EDF1EE; color: var(--text); text-decoration: none; }
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #FAFCFA; }
.match-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; background: var(--green-50); border-radius: 10px; padding: .35rem 0; }
.match-date strong { font: 800 1.15rem var(--font-head); color: var(--green-900); }
.match-date span { font-size: .7rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.match-main { min-width: 0; display: flex; flex-direction: column; }
.match-teams { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-meta { font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.match-score { font: 800 1rem var(--font-head); padding: .1rem .55rem; border-radius: 8px; background: var(--grey-50); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.match-score.is-v { background: var(--green-100); color: #05603A; }
.match-score.is-d { background: var(--red-50); color: #B42318; }
.scoreboard { padding: 1rem 1.25rem 1.1rem; text-align: center; background: linear-gradient(180deg, var(--green-50), #fff 70%); }
.scoreboard-meta { font-size: .82rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.scoreboard-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; margin: .75rem 0 .5rem; }
.sb-team { font: 750 1.15rem/1.25 var(--font-head); color: var(--text); }
.sb-team:first-child { text-align: right; }
.sb-team:last-child { text-align: left; }
.sb-team.is-us { color: var(--green-900); }
.sb-score { font: 800 2.6rem/1 var(--font-head); color: var(--green-900); display: flex; align-items: center; gap: .45rem; font-variant-numeric: tabular-nums; padding: .35rem .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--grey-200); }
.sb-score.is-v { border-color: #9BD8B6; }
.sb-score.is-d { border-color: #F5B5AE; }
.sb-sep { color: var(--grey-300); font-weight: 600; }
.sb-time { font-size: 1.3rem; color: var(--text-2); }
.scoreboard-pens { margin: 0 0 .4rem; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.scoreboard-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1rem; font-size: .88rem; color: var(--text-2); }
.scoreboard-foot .icon { vertical-align: -2px; }
.scoreboard-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
@media (max-width: 640px) { .sb-team { font-size: .95rem; } .sb-score { font-size: 2rem; } .scoreboard-main { gap: .5rem; } }
.score-form { display: flex; align-items: flex-end; gap: .75rem; }
.score-form .field { flex: 1; }
.input-score { font: 800 1.6rem var(--font-head); text-align: center; min-height: 56px; }
.score-sep { font: 800 1.5rem var(--font-head); color: var(--grey-300); padding-bottom: .55rem; }
.lineup-list { list-style: none; margin: 0; padding: 0; }
.lineup-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .6rem 1.25rem; border-bottom: 1px solid #EDF1EE; }
.lineup-row.is-titulaire { background: var(--green-50); }
.lineup-row.is-remplacant { background: #FAFBFA; }
.lineup-fields { display: flex; align-items: center; gap: .4rem; }
.lineup-fields .select, .lineup-fields .input { min-height: 38px; font-size: .86rem; padding: .35rem .5rem; }
.lineup-fields [data-lineup-role] { width: 132px; }
.lineup-fields select[name^="position"] { width: 82px; }
.lineup-fields input[name^="number"] { width: 58px; text-align: center; }
.lineup-fields .check { font-weight: 700; font-size: .82rem; align-items: center; gap: .25rem; }
.lineup-others { border-top: 1px solid var(--grey-200); }
.lineup-others > summary { padding: .75rem 1.25rem; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--green-700); }
.lineup-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: .9rem 1.25rem .3rem; }
.lineup-view { padding-bottom: .4rem; }
@media (max-width: 640px) { .lineup-fields { width: 100%; } .lineup-fields [data-lineup-role] { flex: 1; width: auto; } }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-item { display: grid; grid-template-columns: 42px 28px minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-bottom: 1px solid #EDF1EE; font-size: .9rem; }
.ev-min { font: 750 .9rem var(--font-head); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.ev-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-50); color: var(--text-2); }
.ev-but .ev-icon, .ev-but_penalty .ev-icon, .ev-csc_adverse .ev-icon { background: var(--green-100); color: var(--green-700); }
.ev-csc .ev-icon, .ev-penalty_manque .ev-icon { background: var(--red-50); color: #B42318; }
.ev-jaune .ev-icon { background: var(--yellow); color: #fff; border-radius: 4px; width: 20px; margin: 0 4px; }
.ev-rouge .ev-icon { background: var(--red); color: #fff; border-radius: 4px; width: 20px; margin: 0 4px; }
.ev-remplacement .ev-icon { background: #EAF2FF; color: #1D4ED8; }
.ev-body .icon { vertical-align: -2px; }
.event-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem .8rem; align-items: end; }
.event-form .select, .event-form .input { min-height: 40px; font-size: .88rem; }
.event-form .ev-submit { display: flex; align-items: flex-end; }
.check-list { list-style: none; margin: 0; padding: .4rem 0; }
.check-list li { display: flex; gap: .6rem; padding: .55rem 1.25rem; font-size: .9rem; }
.check-list li > .icon { flex: none; margin-top: 3px; }
.check-list .is-ok > .icon { color: var(--green-700); }
.check-list .is-ko > .icon { color: #B42318; }
.check-list .is-warn > .icon { color: var(--orange-600); }
.seg-input { display: inline-flex; }
.seg-input label { position: relative; }
.seg-input input { position: absolute; opacity: 0; pointer-events: none; }
.seg-input span { display: inline-block; padding: .5rem 1rem; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg-input input:checked + span { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); }
.seg-input input:focus-visible + span { outline: 3px solid var(--orange-400); outline-offset: 1px; }
.card-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 24px; padding: 0 .3rem; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.card-chip.is-yellow { background: var(--yellow); color: #3D2E00; }
.card-chip.is-red { background: var(--red); color: #fff; }
.scorers-table .rank { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font: 800 .9rem var(--font-head); background: var(--grey-50); }
.scorers-table .rank-1 .rank { background: #F6C343; color: #3D2E00; }
.scorers-table .rank-2 .rank { background: #D6DCE0; }
.scorers-table .rank-3 .rank { background: #E7B48A; }
.scorers-table .goals { font: 800 1.15rem var(--font-head); color: var(--green-900); }
.match-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.match-kpis > * { display: flex; flex-direction: column; text-decoration: none; }
.match-kpis .kpi-value { font-size: 1.5rem; }
.t-win { color: var(--green-700); }
.t-loss { color: #B42318; }
.dash-matches { border-top: 1px solid var(--grey-200); gap: 0; }
.dash-matches > div { border-right: 1px solid var(--grey-200); padding-bottom: .5rem; min-width: 0; }
.dash-matches > div:last-child { border-right: 0; }
@media (max-width: 900px) { .match-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-matches > div { border-right: 0; border-bottom: 1px solid var(--grey-200); } }
@media print {
  .scoreboard { background: #fff; }
  .scoreboard-actions, .event-form, .lineup-fields, .lineup-others, .att-toolbar select, .att-footer { display: none !important; }
  .lineup-row:not(.is-titulaire):not(.is-remplacant) { display: none; }
}
.split > * { min-width: 0; }
.scorers-table td, .scorers-table th { padding-left: .7rem; padding-right: .7rem; }
@media (max-width: 480px) { .scorers-table .col-opt { display: none; } }

/* Super admin › Sauvegardes */
.backup-list > .backup-item { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: flex-start; justify-content: space-between; padding: .9rem 1.25rem; border-top: 1px solid var(--grey-200); }
.backup-list > .backup-item:first-child { border-top: 0; }
.backup-info { flex: 1 1 260px; min-width: 0; }
.backup-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; justify-content: flex-end; }
.backup-dl { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.backup-dl > form { margin-top: .6rem; width: 100%; max-width: 340px; text-align: left; }
.backup-dl > summary { list-style: none; cursor: pointer; }
.backup-dl > summary::-webkit-details-marker { display: none; }
.backup-dl[open] > summary { border-color: var(--green-700); }
