/* Clubby 1.8.0 — feuille commune (site, application, portail, Super console). © Leologic Sàrl.
   Un seul conteneur sur grand écran : min(100% − 2 × gouttière, 1680px), bords alignés (barre du haut, contenu, pied de page). */
:root {
  --gutter: clamp(16px, 2.5vw, 56px);
  --container: 1680px;
  --primary: #0b7f7b; --primary-dark: #08615e; --accent: #2ec4b6; --navy: #14213d; --danger: #b91c1c; --warn: #b45309; --ok: #0e7a56;
  --bg: #f3f7f7; --card: #ffffff; --text: #0f172a; --muted: #56606f; --line: #dfe7e8; --soft: #f5f9f9; --hover: #e9f6f5;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
  --sort-h-active: var(--primary);
  --btn-bg: var(--primary); --btn-text: #fff; --btn-border: transparent; --btn-bg-hover: var(--primary-dark);
  color-scheme: light;
}
html[data-theme="dark"] {
  --primary: #2ec4b6; --primary-dark: #5fd6cb; --accent: #7fdcd4; --danger: #f87171; --warn: #fbbf24; --ok: #34d399;
  --bg: #0b1418; --card: #112027; --text: #e6e9f0; --muted: #a7b0c0; --line: rgba(255,255,255,.12); --soft: #172036; --hover: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  /* 1.8.2 (RULE_BUTTON_CONTRAST, choix de l'utilisateur) : boutons principaux « bleu nuit » en mode sombre (Auto et forcé) */
  --btn-bg: #22356b; --btn-text: #fff; --btn-border: #4a6fd6; --btn-bg-hover: #2a4182;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
h1 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.02em; margin: 0 0 .4rem; font-weight: 750; }
h2 { font-size: 1.08rem; margin: 0 0 .75rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
p { margin: 0 0 .75rem; }
code { font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; z-index: 999; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Barre du haut (application, portail, pages publiques) */
.topbar { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--card) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; } html[data-theme="dark"] .brand .logo-dark { display: block; }
.mainnav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.mainnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.mainnav a:hover { background: var(--hover); }
.mainnav a[aria-current="page"] { background: var(--hover); color: var(--primary-dark); }
.tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.chip-secure { color: var(--ok); }
.chip svg { width: 14px; height: 14px; flex: 0 0 14px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.icon-btn:hover { background: var(--hover); }
.icon-btn .count { position: absolute; top: -6px; right: -6px; }
.leo-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.leo-link:hover { background: var(--hover); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.lang-switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 9px; font-size: .74rem; font-weight: 800; color: var(--text); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; padding-block: 6px; }
  .mainnav { order: 3; flex-basis: 100%; gap: 4px; padding-bottom: 4px; }
  .mainnav a { padding: 7px 10px; font-size: .88rem; }
  .chip-secure span { display: none; }
}
@media (max-width: 480px) {
  .cn-bar { flex-wrap: wrap; row-gap: 6px; padding-block: 6px; }
  .cn-brand { min-width: 0; }
  .topbar-inner { gap: 8px; }
  .tools { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .lang-switch a { padding: 0 7px; }
}

/* Contenu */
.page { padding-block: 24px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 0; }
.card { position: relative; overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(16px, 2vw, 22px); margin-bottom: 16px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid { margin-top: 16px; }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.kpi strong { display: block; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.03em; }
.kpi span { color: var(--muted); font-size: .9rem; }
.kpi.warn strong { color: var(--warn); } .kpi.bad strong { color: var(--danger); } .kpi.good strong { color: var(--ok); }
.cols-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 960px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.cols-2 > *, .grid > * { min-width: 0; }

/* Formulaires */
label { display: block; font-size: .84rem; font-weight: 650; margin-bottom: 5px; min-width: 0; overflow-x: clip; overflow-clip-margin: 4px; }
input, select, textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--text); min-height: 42px; }
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--primary); flex: 0 0 auto; vertical-align: middle; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.field { margin-bottom: 14px; min-width: 0; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .92rem; margin: 10px 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 200px; margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-text); font: inherit; font-weight: 700; font-size: .93rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
html[data-theme="dark"] .btn-outline, html[data-theme="dark"] button.btn-outline { color: var(--text); }
html[data-theme="dark"] .lang-switch a[aria-current="true"] { background: var(--btn-bg); color: var(--btn-text); }
html[data-theme="dark"] .pager .is-on { background: var(--btn-bg); border-color: var(--btn-border); color: var(--btn-text); }
.btn-outline, button.btn-outline { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-outline:hover { background: var(--hover); color: var(--text); }
.btn-danger, button.btn-danger { background: var(--danger); border-color: transparent; color: #fff; } .btn-danger:hover { background: #991b1b; color: #fff; }
html[data-theme="dark"] .btn-danger, html[data-theme="dark"] button.btn-danger { background: #b91c1c; } html[data-theme="dark"] .btn-danger:hover { background: #991b1b; }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: .84rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }

/* Messages */
.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; border: 1px solid var(--line); background: var(--card); }
.flash-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--card)); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--card)); }
.flash-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
.banner { padding: 10px 0; font-weight: 650; font-size: .93rem; }
.banner .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner-danger { background: var(--danger); color: #fff; } .banner-danger a { color: #fff; }
.banner-info { background: #14213d; color: #fff; } .banner-info a { color: #fff; }
.banner-warn { background: #fef3c7; color: #78350f; } .banner-warn a { color: #78350f; }

/* Tableaux */
.table-wrap { position: relative; overflow-wrap: normal; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); } /* relative : les libellés masqués (sr-only) restent dans le défilement du tableau */
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--soft); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.table tbody tr:hover { background: var(--hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .sel { width: 44px; }
.table-tools { display: flex; gap: 10px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.table-tools input[type="search"] { max-width: 320px; }
.table-tools select { width: auto; max-width: 100%; min-width: 0; }
.table-tools, .table-tools form { max-width: 100%; min-width: 0; }
.bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.bulk select { width: auto; }
.bulk > *, .table-tools form > * { min-width: 0; max-width: 100%; } /* WebKit : un <select> ne rétrécit pas sans min-width: 0 */
.empty { color: var(--muted); padding: 18px 12px; }
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table.stack, .table.stack tbody { display: block; width: 100%; max-width: 100%; }
  .table.stack td { display: block; border: 0; padding: 4px 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
  .table.stack td::after { content: ""; display: block; clear: both; }
  .table.stack td::before { content: attr(data-label); float: left; margin-right: 12px; max-width: 45%; font-weight: 700; color: var(--muted); text-align: left; }
  .table.stack td:not([data-label])::before { content: none; }
  .table.stack .inline-form, .table.stack .actions { justify-content: flex-end; flex-wrap: wrap; }
  .table.stack td.sel::before { content: none; }
}
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pager a, .pager span { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); font-size: .9rem; }
.pager .is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager .is-off { color: var(--muted); opacity: .6; } .pager .gap { border: 0; background: none; }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.badge-missing, .badge-warn { background: #fff4e5; color: #9a3412; } .badge-received, .badge-ok { background: #e8f8f2; color: #0e6b4b; }
.badge-off { background: var(--soft); color: var(--muted); } .badge-bad { background: #fee2e2; color: #991b1b; } .badge-info { background: #e0ecff; color: #1e3a8a; }
html[data-theme="dark"] .badge-missing, html[data-theme="dark"] .badge-warn { background: rgba(251,191,36,.18); color: #fde68a; }
html[data-theme="dark"] .badge-received, html[data-theme="dark"] .badge-ok { background: rgba(52,211,153,.16); color: #a7f3d0; }
html[data-theme="dark"] .badge-bad { background: rgba(248,113,113,.18); color: #fecaca; } html[data-theme="dark"] .badge-info { background: rgba(91,140,255,.2); color: #c7d7ff; }
.progress { display: inline-block; width: 90px; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.progress i { display: block; height: 100%; background: var(--accent); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.list-plain { list-style: none; margin: 0; padding: 0; } .list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); } .list-plain li:last-child { border-bottom: 0; }

/* Dépôt de pièces (portail) */
.dropzone { border: 2px dashed #94a3b8; border-radius: 14px; padding: 18px 14px; text-align: center; background: var(--soft); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.dropzone.uploading { border-color: var(--primary); } .dropzone.success { border-color: var(--ok); } .dropzone.error { border-color: var(--danger); }
.dropzone strong { display: block; }
.dz-row { min-width: 160px; padding: 10px; }
progress { width: 100%; height: 6px; }

/* Aide contextuelle */
details.help { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 16px; }
details.help summary { cursor: pointer; padding: 10px 14px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.help summary::-webkit-details-marker { display: none; }
details.help[open] summary { border-bottom: 1px solid var(--line); }
details.help .help-body { padding: 12px 14px; color: var(--muted); }
.help-icon { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 800; }

/* Pied de page : éléments groupés et CENTRÉS (RULE_FOOTER_CENTER, 1.8.2) */
.footer { border-top: 1px solid var(--line); padding-block: 18px 26px; color: var(--muted); font-size: .85rem; flex-shrink: 0; text-align: center; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.footer-row a { color: var(--muted); text-decoration: none; } .footer-row a:hover { color: var(--text); text-decoration: underline; }
.footer-row .sep { color: var(--muted); }
.pw-row { display: flex; gap: 8px; align-items: stretch; } .pw-row input { flex: 1 1 auto; min-width: 0; } .pw-row .btn { flex: 0 0 auto; }
.log-purge form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-block: 10px; } .log-purge form small { flex-basis: 100%; }

/* Pages d'authentification */
.auth { display: grid; place-items: start center; padding-block: clamp(24px, 6vh, 64px); }
.auth .card { width: min(100%, 440px); }
.auth .card.wide { width: min(100%, 620px); }
.auth-logo { display: block; margin: 0 auto 12px; height: 46px; width: auto; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.secret-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.legal { max-width: 900px; } .legal article p { line-height: 1.65; } .legal h2 { margin-top: 1.4rem; }
.cga-box { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--soft); font-size: .9rem; }

/* Console : contenu sous la navigation standard (console-nav) */
.console-body .page { padding-top: 20px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.st-ok { background: #16a34a; } .st-info { background: #3b82f6; } .st-warning { background: #f59e0b; } .st-error { background: #dc2626; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); padding-top: 8px; }
.bars span { flex: 1 1 0; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bars-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.copy-list { white-space: pre; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }

/* Super Leo */
.leo-picto { display: block; }

/* Pictogrammes (menus de l'application, du portail, de la Super console et du menu Compte) */
.ico { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: -3px; }
.mainnav .ico { opacity: .85; } .mainnav a[aria-current="page"] .ico { opacity: 1; }
.cn-tab::before, .am-row-label::before { content: ""; display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; margin-right: 7px; vertical-align: -3px; background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; opacity: .85; }
.cn-tab { display: inline-flex; align-items: center; }
.am-row-label { display: inline-flex; align-items: center; }
.qr-preview { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.portal-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.portal-head img { height: 52px; width: auto; border-radius: 10px; background: #fff; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; max-width: 100%; }
.inline-form .check { white-space: normal; min-width: 0; }
.inline-form select, .inline-form input { width: auto; min-height: 34px; padding: 5px 9px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: .78rem; }

@media print { .topbar, .footer, .cn-top, .actions, .no-print { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Menu Compte : entrées alignées à gauche, boutons compris (« Envoyer un message », « Se déconnecter ») */
button.am-item, a.am-item { justify-content: flex-start; text-align: start; }

/* Lien de retour standard : chevron + libellé, jamais de texte souligné brut ; cible de 44 px */
.back-nav { margin: 0 0 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px 6px 8px; margin-left: -8px; border-radius: 10px; color: var(--text); font-weight: 650; text-decoration: none; }
.back-link svg { flex: 0 0 18px; color: var(--primary); }
.back-link:hover { background: var(--hover); color: var(--primary); }
.back-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Liens de navigation hors texte courant (Mot de passe oublié, Inscription, Raccourcis…) : jamais de texte souligné brut */
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 12px 0 0; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: var(--primary); font-weight: 650; text-decoration: none; }
.link-btn:hover { background: var(--hover); }
.link-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.list-plain .link-btn { margin-left: -10px; }
.table td a { text-decoration: none; font-weight: 600; } .table td a:hover { text-decoration: underline; }

/* Téléphones : les libellés longs des boutons (allemand) passent à la ligne — après la règle .btn pour la remplacer */
@media (max-width: 480px) {
  .btn, button.btn { white-space: normal; max-width: 100%; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
  .bulk select, .table-tools select, .inline-form select { width: 100%; } /* WebKit : largeur des listes déroulantes à options longues */
  .bulk, .table-tools form { overflow-x: clip; overflow-clip-margin: 6px; } /* WebKit : le texte d’une option longue déborde de sa liste */
}

/* 1.8.2 — croix ✕ à la place des boutons « Retour » : carré à coins arrondis, en haut à droite de l'en-tête de la page */
.page-head.with-close { position: relative; padding-right: 56px; }
.page-head.with-close > .close-x { position: absolute; top: 0; right: 0; }
.close-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s; }
.close-x:hover { background: var(--hover); border-color: var(--muted); color: var(--text); text-decoration: none; }
.close-x:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.close-x-ico { display: block; }
@media (max-width: 640px) { .close-x { width: 44px; height: 44px; } .page-head.with-close { padding-right: 60px; } }

/* 1.8.2 — « ↩ Retour » vers la page précédente (sur la ligne des boutons de l'en-tête) */
.back-prev { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; margin: 0 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-weight: 650; font-size: .93rem; text-decoration: none; white-space: nowrap; }
.back-prev:hover { background: var(--hover); border-color: var(--muted); color: var(--text); text-decoration: none; }
.back-prev:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.back-prev svg { flex: 0 0 18px; }
.back-prev.is-inline { margin: 0; }
.back-prev-row { margin-top: 0; }
@media (max-width: 640px) { .back-prev { min-height: 44px; } }

/* 1.8.2 — choix sélectionné nettement marqué (règle commune du 30.10.2026) : coche ✓, gras, fond plein, aria-pressed */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 0; }
.seg.seg-wrap { display: flex; width: fit-content; max-width: 100%; margin-bottom: 12px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg-btn:hover { background: var(--hover); color: var(--text); }
.seg-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.seg-btn.is-on, .seg-btn[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-border); color: var(--btn-text); font-weight: 650; }
.seg-btn.is-on:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.seg-check { font-weight: 800; }
.seg-n { font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 640px) { .seg-btn { min-height: 44px; } }
.lang-switch a[aria-current="true"] { font-weight: 700; }
.filter-pills { margin: 8px 0 0; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--hover); color: var(--text); font-weight: 650; font-size: .88rem; text-decoration: none; }
.filter-pill:hover { background: var(--line); color: var(--text); }

/* 1.8.2 — nouveau tableau de bord (vue simple) */
.dash-switch-row { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.dash-hero { position: relative; overflow: hidden; border-radius: 18px; min-height: 190px; margin-bottom: 16px; background: #13314a; color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.dash-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dash-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,20,32,.82) 0%, rgba(8,20,32,.55) 45%, rgba(8,20,32,.1) 100%); }
.dash-hero-text { padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px); max-width: 680px; }
.dash-hero-club { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 650; font-size: 1rem; }
.dash-hero-club img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #fff; }
.dash-hero h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dash-hero-sub { margin: 8px 0 0; font-size: clamp(1rem, 1.6vw, 1.35rem); color: #eef6f6; }
.dash-hero-motto { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(14px, 2.5vw, 28px); margin: 0; max-width: 240px; text-align: right; font-style: italic;
  font-weight: 650; font-size: clamp(1rem, 1.7vw, 1.45rem); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.dash-hero-edit { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(8,20,32,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.dash-hero-edit:hover { background: rgba(8,20,32,.8); color: #fff; }
.dash-hero-edit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) { .dash-hero-motto { display: none; } .dash-hero { min-height: 160px; } }

.dash-quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-bottom: 16px; }
.dq { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.dq:hover { border-color: var(--muted); color: var(--text); }
.dq:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dq-ico, .dl-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; }
.dl-ico { width: 38px; height: 38px; border-radius: 10px; }
.dq-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dq-txt strong { font-size: 1rem; } .dq-txt small { color: var(--muted); }
.dq > .ico:last-child { flex: none; color: var(--muted); }
.dq-green { background: #e6f6ee; } .dq-green .dq-ico { background: #c9eedb; color: #0e6b4b; }
.dq-blue { background: #e8f0fe; } .dq-blue .dq-ico { background: #d3e2fd; color: #1d4ed8; }
.dq-violet { background: #f1ebfe; } .dq-violet .dq-ico, .dl-ico.dq-violet { background: #e2d6fd; color: #6d28d9; }
.dq-amber { background: #fdf3e1; } .dq-amber .dq-ico { background: #fbe3b8; color: #a15c07; }
html[data-theme="dark"] .dq-green, html[data-theme="dark"] .dq-blue, html[data-theme="dark"] .dq-violet, html[data-theme="dark"] .dq-amber { background: var(--card); }
html[data-theme="dark"] .dq-green .dq-ico { background: rgba(52,211,153,.18); color: #a7f3d0; } html[data-theme="dark"] .dq-blue .dq-ico { background: rgba(96,165,250,.2); color: #bfdbfe; }
html[data-theme="dark"] .dq-violet .dq-ico, html[data-theme="dark"] .dl-ico.dq-violet { background: rgba(167,139,250,.2); color: #ddd6fe; } html[data-theme="dark"] .dq-amber .dq-ico { background: rgba(251,191,36,.18); color: #fde68a; }

.dash-kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 16px; }
.dk { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.dk:hover { border-color: var(--muted); }
.dk-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; }
.dk-green { background: #e6f6ee; color: #0e6b4b; } .dk-blue { background: #e8f0fe; color: #1d4ed8; } .dk-teal { background: #e3f5f4; color: #0b7f7b; } .dk-amber { background: #fdf3e1; color: #a15c07; }
html[data-theme="dark"] .dk-green { background: rgba(52,211,153,.16); color: #a7f3d0; } html[data-theme="dark"] .dk-blue { background: rgba(96,165,250,.18); color: #bfdbfe; }
html[data-theme="dark"] .dk-teal { background: rgba(46,196,182,.18); color: #99f6e4; } html[data-theme="dark"] .dk-amber { background: rgba(251,191,36,.16); color: #fde68a; }
.dk-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-main { color: var(--text); text-decoration: none; display: flex; flex-direction: column; }
.dk-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte mène à la liste */
.dk-main:focus-visible { outline: none; } .dk-main:focus-visible::after { outline: 2px solid var(--primary); outline-offset: 2px; }
.dk-main strong { font-size: 1.85rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dk-main span { color: var(--muted); font-size: .92rem; }
.dk-sub { position: relative; z-index: 1; font-size: .85rem; color: var(--muted); text-decoration: none; width: fit-content; }
.dk-sub a { color: var(--primary); font-weight: 700; text-decoration: none; }
a.dk-sub.is-up { color: var(--ok); font-weight: 650; } a.dk-sub.is-bad { color: var(--danger); font-weight: 650; }
a.dk-sub:hover, .dk-sub a:hover { text-decoration: underline; }
.dk > .ico:last-child { color: var(--muted); flex: none; }
.spark { flex: none; width: 96px; height: 36px; } .spark-green { color: #16a34a; } .spark-blue { color: #2563eb; }
html[data-theme="dark"] .spark-green { color: #4ade80; } html[data-theme="dark"] .spark-blue { color: #93c5fd; }
@media (max-width: 420px) { .spark { display: none; } }
.ring { display: block; flex: none; } .ring-bg { stroke: var(--line); }
.seg-paid { stroke: #16a34a; background: #16a34a; } .seg-pending { stroke: #f59e0b; background: #f59e0b; } .seg-overdue { stroke: #dc2626; background: #dc2626; }
.seg-exempt { stroke: #94a3b8; background: #94a3b8; } .seg-rest { stroke: var(--line); background: var(--line); }

.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1180px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-card { min-width: 0; margin: 0; }
.dc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dc-head h2 { margin: 0; font-size: 1.12rem; }
.dc-head a { flex: none; color: var(--primary); font-weight: 650; text-decoration: none; font-size: .9rem; display: inline-flex; align-items: center; min-height: 32px; }
.dc-head a:hover { text-decoration: underline; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.dl-item:first-child { border-top: 0; }
.dl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-main a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; } .dl-main a:hover { color: var(--primary); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: .85rem; min-width: 0; }
.dl-meta > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.dl-meta .clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dl-date { flex: none; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.date-chip { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; padding: 4px 0; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); line-height: 1.1; }
.date-chip strong { font-size: 1.3rem; } .date-chip small { font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.kind-training { background: #e6f6ee; color: #0e6b4b; } .kind-match { background: #e0ecff; color: #1e3a8a; } .kind-event { background: #fdf3e1; color: #92400e; } .kind-meeting { background: #f1ebfe; color: #5b21b6; }
html[data-theme="dark"] .kind-training { background: rgba(52,211,153,.16); color: #a7f3d0; } html[data-theme="dark"] .kind-match { background: rgba(96,165,250,.2); color: #c7d7ff; }
html[data-theme="dark"] .kind-event { background: rgba(251,191,36,.18); color: #fde68a; } html[data-theme="dark"] .kind-meeting { background: rgba(167,139,250,.2); color: #ddd6fe; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 750; font-size: .9rem; color: #fff; }
.av-0 { background: #0b7f7b; } .av-1 { background: #2563eb; } .av-2 { background: #7c3aed; } .av-3 { background: #b45309; } .av-4 { background: #be185d; } .av-5 { background: #15803d; }
.file-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 44px; border-radius: 8px; font-size: .66rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.file-ico.is-pdf { background: #dc2626; } .file-ico.is-xls { background: #15803d; } .file-ico.is-doc { background: #2563eb; } .file-ico.is-img { background: #7c3aed; }
.task-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 2px solid var(--muted); border-radius: 7px;
  background: var(--card); color: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.task-check:hover { border-color: var(--primary); color: var(--muted); }
.task-check:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.task-check[aria-pressed="true"] { background: #16a34a; border-color: #16a34a; color: #fff; }
@media (max-width: 640px) { .task-check { width: 32px; height: 32px; } }
.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.due { flex: none; display: inline-flex; padding: 2px 8px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.due.is-late { background: #fee2e2; border-color: #fecaca; color: #991b1b; font-weight: 700; }
html[data-theme="dark"] .due.is-late { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.4); color: #fecaca; }
.fee-ring { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fee-ring-chart { position: relative; flex: none; width: 132px; height: 132px; }
.fee-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fee-ring-label strong { font-size: 1.4rem; } .fee-ring-label small { color: var(--muted); }
.fee-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 160px; min-width: 0; }
.fee-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.fee-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.fee-legend a { font-weight: 700; color: var(--primary); text-decoration: none; min-width: 24px; text-align: right; } .fee-legend a:hover { text-decoration: underline; }
.fee-legend .fee-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.banner-thumb { width: 320px; max-width: 100%; height: 80px; object-fit: cover; border-radius: 10px; }
.row-actions { white-space: nowrap; } .row-actions form { display: inline; }
/* 1.8.2 — logo « C » (SVG net) : version fond clair / fond sombre */
.auth-logo.logo-dark { display: none; }
html[data-theme="dark"] .auth-logo.logo-light { display: none; } html[data-theme="dark"] .auth-logo.logo-dark { display: block; }
.brand img { height: 33px; }

/* 1.8.2 — Calendrier du club (mois en grille, lundi en premier) */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head h2 { margin: 0 6px; min-width: 9em; text-align: center; text-transform: capitalize; }
.cal-count { margin-left: auto; color: var(--text); font-weight: 650; text-decoration: none; }
.cal-count:hover { color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { padding: 4px 6px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.cal-day { min-height: 92px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.is-out { background: transparent; border-style: dashed; opacity: .5; }
.cal-day.is-today { border: 2px solid var(--primary); }
.cal-n { font-size: .82rem; font-weight: 700; color: var(--muted); }
.cal-day.is-today .cal-n { color: var(--primary); }
.cal-ev { display: block; padding: 2px 6px; border-radius: 6px; font-size: .78rem; font-weight: 600; line-height: 1.3; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover, .cal-ev:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
.cal-ev.is-cancelled { text-decoration: line-through; opacity: .7; }
.cal-t { font-variant-numeric: tabular-nums; font-weight: 700; }
.cal-legend { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-wd, .cal-day.is-out, .cal-day:not(.has-ev):not(.is-today) { display: none; }
  .cal-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cal-n { min-width: 2.2em; }
  .cal-ev { white-space: normal; min-height: 32px; display: flex; align-items: center; }
  .cal-count { margin-left: 0; width: 100%; }
}
.cal-prev-ico { display: inline-flex; transform: scaleX(-1); }

/* 1.8.2 — Super console › Tâches planifiées (apps-core SchedulerUi) : cellule d'actions gardée en cellule de tableau, titre unique,
   cartes sur téléphone (aucun défilement horizontal) */
.ac-cron > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
td.ac-cron-actions { display: table-cell; }
td.ac-cron-actions > form { display: inline-flex; margin: 0 6px 6px 0; }
@media (max-width: 760px) {
  .ac-cron-table, .ac-cron-table tbody, .ac-cron-table tr, .ac-cron-table th, .ac-cron-table td { display: block; width: 100%; }
  .ac-cron-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ac-cron-table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 4px 0; }
  .ac-cron-table th, .ac-cron-table td { border-bottom: 0; padding: 6px 12px; overflow-wrap: anywhere; }
  td.ac-cron-actions { display: block; }
}
.ac-cron .ac-cron-primary { background: var(--btn-bg); border-color: var(--btn-border); color: var(--btn-text); }
.ac-cron .ac-cron-primary:hover, .ac-cron .ac-cron-primary:focus-visible { background: var(--btn-bg-hover); color: var(--btn-text); }
/* 1.8.2 — page Abonnement : forfait choisi à l'inscription mis en avant */
.check.is-wanted { outline: 3px double var(--primary); outline-offset: 3px; border-radius: 8px; font-weight: 600; }

/* 1.8.2 — recherche globale */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form input[type="search"] { flex: 1 1 240px; min-width: 0; }
.search-results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.search-list li:last-child { border-bottom: 0; }
.dc-head h2 { display: inline-flex; align-items: center; gap: 6px; }
.search-hit { color: var(--text); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; } .search-hit:hover, .search-hit:focus-visible { color: var(--primary); }

/* 1.8.3 — barre latérale sombre (grand écran), cloche, recherche et club dans la barre du haut */
.sidebar { display: none; }
.top-search { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.top-search input { display: none; }
.bell .bell-dot { position: absolute; top: -6px; right: -6px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; }
.top-club { display: none; align-items: center; gap: 8px; font-weight: 650; font-size: .9rem; max-width: 220px; min-width: 0; }
.top-club-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest-ini { background: linear-gradient(135deg, #1f8fff, #0e9f9a); color: #fff; font-weight: 800; font-size: .8rem; border: 0; }
@media (min-width: 1100px) {
  body.mode-app.has-side { padding-left: 248px; }
  body.mode-app.has-side .sidebar { position: fixed; z-index: 70; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; overflow-y: auto;
    background: #0f1b33; color: #dbe4f5; border-right: 1px solid #1d2c4d; }
  body.mode-app.has-side .mainnav, body.mode-app.has-side .topbar .brand { display: none; }
  body.mode-app.has-side .topbar-inner { justify-content: flex-end; }
  body.mode-app.has-side .top-search input { display: block; width: 260px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: .9rem; }
  body.mode-app.has-side .top-club { display: inline-flex; }
  .side-brand { display: inline-flex; padding: 2px 6px; }
  .side-brand img { height: 34px; width: auto; }
  .side-club { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #16264a; border: 1px solid #263a66; }
  .side-club .crest { border-color: #263a66; }
  .side-club-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .side-club-txt strong { color: #fff; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-club-txt span { color: #b9c6e0; font-size: .78rem; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a, .side-help { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; border-left: 3px solid transparent; color: #dbe4f5; text-decoration: none; font-weight: 600; font-size: .93rem; }
  .side-nav a:hover, .side-help:hover { background: #1a2b52; color: #fff; }
  .side-nav a[aria-current="page"] { background: #22356b; border-left-color: #4a6fd6; color: #fff; font-weight: 700; }
  .side-nav a:focus-visible, .side-help:focus-visible, .side-brand:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 2px; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #16264a; border: 1px solid #263a66; }
  .side-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #2a4182; color: #fff; font-weight: 800; }
  .side-user-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .side-user-txt strong { color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-user-txt span { color: #b9c6e0; font-size: .78rem; }
  .side-version { margin: 0; color: #9fb0d0; font-size: .75rem; text-align: center; }
}
/* 1.8.3 — groupes, comité, sondages */
.group-picks { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.group-picks legend { font-weight: 650; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.poll-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.poll-bars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) auto; gap: 10px; align-items: center; }
.poll-label { overflow-wrap: anywhere; }
.poll-bar { display: block; height: 12px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.poll-bars li.is-top .poll-label { font-weight: 700; }
.poll-n { font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.poll-box { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.poll-box:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.poll-box h3 { margin: 0 0 4px; font-size: 1rem; }
.poll-choices { border: 0; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.poll-choice { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.poll-choice:has(input:checked) { border: 2px solid var(--primary); font-weight: 650; }
@media (max-width: 560px) { .poll-bars li { grid-template-columns: 1fr auto; } .poll-bar { grid-column: 1 / -1; grid-row: 2; } }
/* 1.8.3 — liste d'appel (téléphone de l'entraîneur) : gros boutons présent / absent / excusé, choix marqué (✓, fond plein) */
.rc-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.rc-list { list-style: none; margin: 14px 0 0; padding: 0; }
.rc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-name { font-weight: 600; min-width: 10em; }
.rc-seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.rc-seg .seg-btn { min-height: 44px; min-width: 92px; justify-content: center; font-size: 1rem; }
.rc-seg .rc-present.is-on { background: #15803d; border-color: #15803d; color: #fff; }
.rc-seg .rc-absent.is-on { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.rc-seg .rc-excused.is-on { background: #a16207; border-color: #a16207; color: #fff; }
@media (max-width: 600px) { .rc-seg { width: 100%; } .rc-seg .seg-btn { flex: 1 1 0; min-width: 0; } }
/* 1.8.3 — cloche : picto poubelle (trait noir épais, couvercle avec poignée, 3 barres) sur chaque notification */
.notif-del-form { display: inline; margin: 0 0 0 6px; }
.notif-del { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: #111; cursor: pointer; vertical-align: middle; }
.notif-del svg { stroke-width: 2.4; }
.notif-del:hover { background: var(--hover); }
.notif-del:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html[data-theme="dark"] .notif-del { color: #f1f5f9; }
@media (max-width: 640px) { .notif-del { width: 44px; height: 44px; } }
/* 1.8.3 — œil des champs secrets (montre le texte saisi, ou la clé enregistrée demandée au serveur) */
.pw-eye-row { display: flex; gap: 6px; align-items: stretch; width: 100%; }
.pw-eye-row input { flex: 1 1 auto; min-width: 0; }
.pw-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; }
.pw-toggle:hover { background: var(--hover); }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pw-toggle[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-border); color: var(--btn-text); }
@media (max-width: 640px) { .pw-toggle { width: 44px; min-height: 44px; } }
.secret-kept { display: block; margin-top: 4px; color: var(--muted, #64748b); overflow-wrap: anywhere; }
.secret-kept .secret-value { font-size: .85rem; user-select: all; overflow-wrap: anywhere; word-break: break-all; }

/* 1.8.3 — « Lire les conditions » en pastille, même forme que le bouton d'acceptation (règle commune du 01.11.2026) */
.btn-pill, button.btn-pill { border-radius: 999px; }
.terms-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.terms-pills .btn { white-space: normal; text-align: center; max-width: 100%; }
