/* Mise en page et couleurs : une colonne de téléphone ; le « panneau d'affichage » du club (fond liège, feuilles blanches à bande de la couleur du club, punaise sur ce qui attend une action), bandeau et onglets à la couleur du club. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: local('Atkinson Hyperlegible'), local('AtkinsonHyperlegible-Regular'), url('fonts/atkinson-hyperlegible-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: local('Atkinson Hyperlegible Bold'), local('AtkinsonHyperlegible-Bold'), url('fonts/atkinson-hyperlegible-700.woff2') format('woff2'); }
:root {
  --bg: #E9DFCF;
  --bg-dot: #D7C8AF;
  --card: #FFFFFF;
  --ink: #1F2328;
  --ink2: #525C66;
  --line: #DDD3C3;
  --champ: #9A8D78;
  --ombre: 0 1px 1px rgba(70, 50, 20, .10), 0 3px 8px rgba(70, 50, 20, .12);
  --brand: #115586;
  --on-brand: #FFFFFF;
  --brand-soft: #E3EDF5;
  --brand-ink: #115586;
  --head: #115586;
  --on-head: #FFFFFF;
  --head-sub: #D6E6F2;
  --gold: #C9A227;
  --on-gold: #0B2E4A;
  --gold-text: #E8C65A;
  --no-bg: #FBE9D7;
  --no-ink: #7A3A00;
  --no-line: #9A4A00;
  --mute-bg: #EFE8DC;
  --mute-ink: #3A4048;
  --danger: #A32020; --danger-bg: #FBE4E4;
  --shade: rgba(31, 35, 40, .5);
  --c-yes: #115586;
  --c-no: #C2702B;
  --c-none: #B9AE9C;
  --grid: #ECE5D9;
  /* une couleur par type d'événement : case de la date (plein) et étiquette (clair) */
  --t-cours: #115586; --t-cours-on: #FFFFFF; --t-cours-bg: #E3EDF5; --t-cours-ink: #115586;
  --t-compet: #C9A227; --t-compet-on: #0B2E4A; --t-compet-bg: #F6ECC8; --t-compet-ink: #5E4A00;
  --t-tournoi: #1E6B52; --t-tournoi-on: #FFFFFF; --t-tournoi-bg: #DDEFE7; --t-tournoi-ink: #14523E;
  --t-club: #EADCF2; --t-club-on: #522E60; --t-club-line: #6B3F7A; --t-club-bg: #EDE3F2; --t-club-ink: #522E60;
  --f-display: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1814; --bg-dot: #29231D; --card: #2A2521; --ink: #F2EDE6; --ink2: #C2B8AB; --line: #433B33; --champ: #7D7166; --ombre: 0 1px 1px rgba(0, 0, 0, .35), 0 3px 8px rgba(0, 0, 0, .35);
    --brand: #1A6FA8; --on-brand: #FFFFFF; --brand-soft: #1B3A52; --brand-ink: #8CC4EC;
    --head: #0F3F63; --on-head: #FFFFFF; --head-sub: #C3D9EA;
    --gold: #C9A227; --on-gold: #0B2E4A; --gold-text: #E8C65A;
    --no-bg: #4A2A0C; --no-ink: #FFD2A6; --no-line: #E0863A;
    --mute-bg: #38312A; --mute-ink: #E0D7CB;
    --danger: #FF9A9A; --danger-bg: #4A1C1C; --shade: rgba(0, 0, 0, .6);
    --c-yes: #3D8FCB; --c-no: #C9803F; --c-none: #6B6157; --grid: #3A332C;
    --t-cours: #1A6FA8; --t-cours-on: #FFFFFF; --t-cours-bg: #1B3A52; --t-cours-ink: #8CC4EC;
    --t-compet: #C9A227; --t-compet-on: #0B2E4A; --t-compet-bg: #473B0E; --t-compet-ink: #F0D77A;
    --t-tournoi: #237A5E; --t-tournoi-on: #FFFFFF; --t-tournoi-bg: #17382E; --t-tournoi-ink: #9AD9C0;
    --t-club: #3A2745; --t-club-on: #E6CFF2; --t-club-line: #A77BBF; --t-club-bg: #33233D; --t-club-ink: #DDBDEB;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1814; --bg-dot: #29231D; --card: #2A2521; --ink: #F2EDE6; --ink2: #C2B8AB; --line: #433B33; --champ: #7D7166; --ombre: 0 1px 1px rgba(0, 0, 0, .35), 0 3px 8px rgba(0, 0, 0, .35);
  --brand: #1A6FA8; --on-brand: #FFFFFF; --brand-soft: #1B3A52; --brand-ink: #8CC4EC;
  --head: #0F3F63; --on-head: #FFFFFF; --head-sub: #C3D9EA;
  --gold: #C9A227; --on-gold: #0B2E4A; --gold-text: #E8C65A;
  --no-bg: #4A2A0C; --no-ink: #FFD2A6; --no-line: #E0863A;
  --mute-bg: #38312A; --mute-ink: #E0D7CB;
  --danger: #FF9A9A; --danger-bg: #4A1C1C; --shade: rgba(0, 0, 0, .6);
  --c-yes: #3D8FCB; --c-no: #C9803F; --c-none: #6B6157; --grid: #3A332C;
  --t-cours: #1A6FA8; --t-cours-on: #FFFFFF; --t-cours-bg: #1B3A52; --t-cours-ink: #8CC4EC;
  --t-compet: #C9A227; --t-compet-on: #0B2E4A; --t-compet-bg: #473B0E; --t-compet-ink: #F0D77A;
  --t-tournoi: #237A5E; --t-tournoi-on: #FFFFFF; --t-tournoi-bg: #17382E; --t-tournoi-ink: #9AD9C0;
  --t-club: #3A2745; --t-club-on: #E6CFF2; --t-club-line: #A77BBF; --t-club-bg: #33233D; --t-club-ink: #DDBDEB;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
b, strong { font-weight: 600; }
body {
  margin: 0;
  /* le liège du panneau : un fin pointillé sur le fond */
  background: var(--bg) radial-gradient(var(--bg-dot) .8px, transparent 1px) 0 0 / 7px 7px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--brand-soft); color: var(--ink); }
h1, h2, h3, p { margin: 0; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.cols, .col, .cards { display: flex; flex-direction: column; gap: 18px; }
/* Compte sur téléphone : rubriques en accordéons, plus serrées (compteRepli) */
.cards.repli { gap: 8px; }

/* ----- bandeau ----- */
.top {
  background: var(--head);
  color: var(--on-head);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.top .logo { flex: none; width: auto; height: auto; max-width: 96px; max-height: 71px; }
.top .tt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.top .club { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--head-sub); }
.top h1 { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.demo {
  background: var(--gold);
  color: var(--on-gold);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  text-align: center;
}

/* ----- contenu ----- */
main { flex: 1; padding: 18px 16px 104px; display: flex; flex-direction: column; gap: 18px; }
main.plain { padding-bottom: 32px; }
.block { display: flex; flex-direction: column; gap: 10px; }
.sec { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink2); }
/* mois en accordéon (Agenda, Compétitions) */
.month { gap: 8px; }
.month .mh { margin: 0; font: inherit; }
.mhead { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 0; border-radius: 3px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; font: inherit; box-shadow: var(--ombre); }
.mhead .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mhead .mn { font-size: 17px; font-weight: 700; }
.mhead .ms { font-size: 14px; color: var(--ink2); }
.mhead .chev { flex: none; display: flex; color: var(--brand-ink); transition: transform .15s; }
.mhead[aria-expanded="true"] { box-shadow: inset 0 5px 0 var(--brand), var(--ombre); }
.mhead[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mhead:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mhead .chev { transition: none; } }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
/* une feuille du panneau : blanche, presque à angle droit, bande de la couleur du club en tête, ombre portée douce */
.card { background: var(--card); border: 0; border-top: 6px solid var(--brand); border-radius: 3px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ombre); }
/* rubrique du compte : chaque partie (notifications, sauvegarde…) est séparée de la précédente par un trait, sans second cadre */
.card > .sous { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
/* punaise : seulement sur ce qui attend une action (à traiter, cours sans réponse, enfant à ajouter) */
.pin { position: relative; margin-top: 8px; }
.pin::before { content: ""; position: absolute; top: -14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--gold); box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .18), 0 2px 3px rgba(0, 0, 0, .3); }
.sec .compte { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-left: 6px; padding: 0 7px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-size: 13px; letter-spacing: 0; vertical-align: 1px; }
.afaire .rows { box-shadow: none; border-radius: 0; margin: -4px -16px -16px; border-top: 1px solid var(--line); }
.afaire .row .go { color: var(--brand-ink); }
/* outils de l'encadrant : deux colonnes */
.outils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.outils .btn { min-height: 56px; padding: 6px 10px; font-size: 15px; line-height: 1.2; }
.outils .btn.primary { grid-column: 1 / -1; }
.empty { color: var(--ink2); font-size: 15px; }
.muted { color: var(--ink2); font-size: 14px; }
.center { text-align: center; padding: 48px 16px; color: var(--ink2); }

/* ----- prochain cours ou événement ----- */
.hero .when { font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.hero .what { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero .where { font-size: 15px; color: var(--ink2); }
.hero .head { display: flex; flex-direction: column; gap: 2px; }
.ask { font-size: 15px; font-weight: 600; }
.answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ----- boutons ----- */
.btn {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 6px;
  border: 2px solid var(--brand);
  background: var(--card);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.btn.primary, .btn.yes[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.btn.no { border-color: var(--no-line); color: var(--no-ink); }
.btn.no[aria-pressed="true"] { background: var(--no-bg); border-width: 3px; }
.btn.quiet { border-color: var(--line); color: var(--ink); }
/* bouton de suppression : bord rouge épais sur fond rouge pâle, pour qu'il se détache même sur un écran peu contrasté */
.btn.danger { border: 3px solid var(--danger); background: var(--danger-bg); color: var(--danger); }
.btn.danger.solid { background: #A32020; border-color: #A32020; color: #FFFFFF; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

/* ----- cartes d'événement ----- */
.ev {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 0;
  box-shadow: var(--ombre);
  color: var(--ink);
  border-radius: 3px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile {
  flex: none;
  width: 52px;
  height: 58px;
  border-radius: 3px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tile .m { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tile .d { font-family: var(--f-display); font-weight: 800; font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile.cours { background: var(--t-cours); color: var(--t-cours-on); }
.tile.competition { background: var(--t-compet); color: var(--t-compet-on); }
.tile.tournoi { background: var(--t-tournoi); color: var(--t-tournoi-on); }
.tile.club { background: var(--t-club); color: var(--t-club-on); box-shadow: inset 0 0 0 2px var(--t-club-line); }
.evb { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.evt { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.evs { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.evm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.counts { font-size: 14px; color: var(--ink2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  background: var(--mute-bg);
  color: var(--mute-ink);
}
.chip > svg { display: block; flex: none; }
.chip.yes { background: var(--brand); color: var(--on-brand); }
.chip.no { background: var(--no-bg); color: var(--no-ink); }
.chip.todo { background: var(--card); color: var(--ink); border: 2px solid var(--gold); padding: 1px 6px; }
.chip.type { background: var(--brand-soft); color: var(--brand-ink); }

/* ----- filtres ----- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.filters button { box-shadow: 0 1px 2px rgba(70, 50, 20, .10); }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }

/* ----- lignes (adhérents, groupes, appel) ----- */
.rows { background: var(--card); border: 0; border-radius: 3px; overflow: hidden; box-shadow: var(--ombre); }
.card .rows, .panel .rows { box-shadow: none; border: 1px solid var(--line); }
.row {
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rows > :last-child { border-bottom: 0; }
.row .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row > .btn { flex: none; min-height: 44px; padding: 0 12px; font-size: 15px; }
.row .name { font-weight: 600; overflow-wrap: anywhere; }
.row .sub { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.row .go { flex: none; color: var(--ink2); display: flex; }
.mark { flex: none; display: flex; gap: 6px; }
.mark button {
  width: 46px;
  height: 44px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark .y[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mark .n[aria-pressed="true"] { background: var(--no-bg); border-color: var(--no-line); color: var(--no-ink); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border-radius: 6px; padding: 8px 12px; display: flex; flex-direction: column; background: var(--mute-bg); color: var(--mute-ink); }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; font-weight: 500; }
.stat span small { font-size: 12px; }
.stat.yes { background: var(--brand); color: var(--on-brand); }
.stat.no { background: var(--no-bg); color: var(--no-ink); }

/* ----- barre d'onglets ----- */
.tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  background: var(--head);
  border-top: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
}
.tabs button {
  min-height: 52px;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--head-sub);
  font-size: 12.5px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.tabs button[aria-current="page"] { color: var(--on-head); font-weight: 700; box-shadow: inset 0 3px 0 var(--on-head); }

/* ----- formulaires ----- */
/* margin: 0 : Chrome ajoute tout seul un espace sous chaque formulaire, Firefox et Safari non. On fixe la même règle pour tous. */
form, .form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, .field .lab { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink2); }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="time"], input[type="search"], input[type="number"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 2px solid var(--champ);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
}
input::placeholder, textarea::placeholder { color: var(--ink2); opacity: 1; }
textarea { min-height: 84px; resize: vertical; }
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="date"]:focus, input[type="time"]:focus, select:focus, textarea:focus { border-color: var(--brand-ink); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checks { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }
.err { color: var(--danger); font-weight: 600; font-size: 15px; }
.confirm { border: 2px solid var(--danger); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.confirm .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm p { margin: 0; }
.creds { background: var(--brand-soft); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.creds b { font-size: 20px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.creds span { font-size: 13px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }

/* ----- feuille (détail, formulaires) ----- */
.layer { position: fixed; inset: 0; z-index: 20; }
.backdrop { position: absolute; inset: 0; background: var(--shade); }
.panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  max-height: 92%;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border-top: 6px solid var(--head);
  border-radius: 6px 6px 0 0;
  outline: none;
}
body.locked { overflow: hidden; }
.sheet { padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.close { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--mute-bg); color: var(--mute-ink); display: flex; align-items: center; justify-content: center; }
.facts { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.facts .k { color: var(--ink2); }
.note { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 6px; padding: 10px 12px; font-size: 15px; }
.actions { display: flex; flex-direction: column; gap: 10px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(calc(100% - 32px), 440px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  z-index: 50;
  text-align: center;
}

/* ----- connexion ----- */
.gate { padding-top: 24px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

/* ----- confidentialité, ménage de fin de saison ----- */
.legal { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.legal h3 { font-size: 16px; font-weight: 600; margin-top: 6px; }
.row.pick { justify-content: flex-start; cursor: pointer; }
.row.pick input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }

/* ----- annulé, annonce, QR code, import ----- */
.ev.off .evt, .hero.off .what { text-decoration: line-through; }
.ev.off .tile { opacity: .5; }
.chip.off { background: var(--card); color: var(--danger); border: 2px solid var(--danger); padding: 1px 6px; }
.banner { background: var(--no-bg); color: var(--no-ink); border-radius: 6px; padding: 12px 14px; font-weight: 600; }
.annonce { gap: 8px; }
/* dans une feuille qui monte du bas, une carte n'a pas d'ombre : un simple filet suffit */
.panel .card { box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.annonce .pour { font-size: 15px; }
/* arbitres nécessaires sur une compétition */
.arbneed { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; }
.arbneed svg { flex: none; margin-top: 2px; }
.arbneed.ko { background: var(--no-bg); color: var(--no-ink); border: 2px solid var(--no-line, #C2610F); }
.arbneed.ok { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.chip.arbko { background: var(--no-bg); color: var(--no-ink); border: 2px solid var(--no-line); padding: 1px 6px; font-weight: 700; }
.annonce .pour .k { color: var(--ink2); }

/* ----- sondages (accueil) et documents du club ----- */
.poll { gap: 8px; }
.poll .q { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.poll .pour .k { color: var(--ink2); }
.pollopts { display: flex; flex-direction: column; gap: 8px; }
.pollopt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--champ); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
button.pollopt { cursor: pointer; }
.pollopt.on { border-color: var(--brand); }
.pollopt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-soft); }
.pollopt .mk, .pollopt .tx, .pollopt .n { position: relative; }
.pollopt .mk { flex: none; width: 18px; display: flex; color: var(--brand-ink); }
.pollopt .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pollopt.on .tx { font-weight: 600; }
.pollopt .n { flex: none; font-weight: 600; font-size: 15px; color: var(--brand-ink); }
.pollnames { margin: -4px 0 2px 12px; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.pollins { display: flex; flex-direction: column; gap: 8px; }
.doclink { color: inherit; text-decoration: none; }
.doclink .name, a.doclink.name { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.docbtns { flex: none; display: flex; gap: 4px; }
.docbtns .btn { min-height: 40px; padding: 0 10px; }
.annonce + .annonce { margin-top: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.qr { width: min(100%, 230px); height: auto; align-self: center; border-radius: 8px; border: 1px solid var(--line); }
.creds b.small { font-size: 14px; }
textarea.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; white-space: pre; overflow-x: auto; min-height: 150px; }
input[type="file"] { font-size: 15px; max-width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .layer:not([hidden]) .panel { animation: up .18s ease-out; }
  @keyframes up { from { transform: translate(-50%, 24px); opacity: .6; } to { transform: translate(-50%, 0); opacity: 1; } }
}

/* ----- compétitions : demandes ----- */
.reqs { display: flex; flex-direction: column; gap: 10px; }
.banner.ok { background: var(--brand); color: var(--on-brand); display: flex; align-items: center; gap: 8px; }
.banner.wait { background: var(--brand-soft); color: var(--ink); }
.chip.wait { background: var(--brand-soft); color: var(--brand-ink); }
.stat.gold { background: var(--gold); color: var(--on-gold); }
.row.new { background: var(--brand-soft); }
details.more { border: 2px solid var(--line); border-radius: 6px; padding: 0 12px; }
details.more summary { min-height: 46px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
details.more[open] { padding-bottom: 12px; }

/* ----- tablette et ordinateur : menu dans le bandeau, colonnes, fenêtres centrées ----- */
[data-w="wide"] #app { max-width: none; }
[data-w="wide"] .top { padding: 14px 28px; gap: 18px; }
[data-w="wide"] .top .logo { max-width: 120px; max-height: 85px; }
[data-w="wide"] .top h1 { font-size: 30px; }
[data-w="wide"] #app.shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; }
[data-w="wide"] .shell > .top { grid-column: 1; grid-row: 1; }
[data-w="wide"] .shell > .tabs {
  grid-column: 2;
  grid-row: 1;
  position: static;
  transform: none;
  width: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--head);
  border: 0;
  padding: 0 24px 0 0;
}
[data-w="wide"] .shell > .tabs button {
  flex-direction: row;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  color: var(--head-sub);
  font-size: 16px;
}
[data-w="wide"] .shell > .tabs button[aria-current="page"] { color: var(--on-head); border-bottom-color: var(--on-head); box-shadow: none; }
[data-w="wide"] .shell > .tabs svg { display: none; }
[data-w="wide"] .shell > .demo, [data-w="wide"] .shell > main { grid-column: 1 / -1; }
[data-w="wide"] main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 28px 40px; }
[data-w="wide"] main.gate { max-width: 540px; }
[data-w="wide"] .hero { max-width: 560px; }
[data-w="wide"] main > .btn.full, [data-w="wide"] .block > .btn.full, [data-w="wide"] main > .answer { max-width: 380px; }
[data-w="wide"] .filters { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
[data-w="wide"] .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
[data-w="wide"] .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
/* Ordinateur (encadrement) : une liste à gauche (elle défile seule), ce qu'on y choisit à droite, sans fenêtre par-dessus (js/ui/ordinateur.js) */
[data-w="wide"] main:has(> .pc-cols), [data-w="wide"] main:has(> .pc-deux) { max-width: 1240px; }
[data-w="wide"] .pc-cols { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
[data-w="wide"] .pc-cols > .gauche { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 4px; }
[data-w="wide"] .pc-cols > .droite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
[data-w="wide"] .pc-cols > .droite > .btn.full { max-width: 380px; }
[data-w="wide"] .pc-cols .fiche, [data-w="wide"] .pc-deux .fiche, [data-w="wide"] .pc-cols > .droite > .card { background: var(--card); border: 0; border-radius: 3px; box-shadow: var(--ombre); padding: 20px 24px; }
[data-w="wide"] .pc-cols .fiche .sheet-head .close, [data-w="wide"] .pc-deux .fiche .sheet-head .close { display: none; }
[data-w="wide"] .pc-cols .fiche > .sa-corps { margin-top: 12px; }
[data-w="wide"] .pc-cols .pc-titre { margin: 0; font-size: 24px; line-height: 1.2; }
/* Agenda, Bourse, Compétitions : toute la largeur de l'écran ; à gauche, les cartes sur deux ou trois colonnes, à droite la fiche choisie (540 px au plus) */
[data-w="wide"] main:has(> .pc-large) { max-width: 1760px; }
[data-w="wide"] .pc-cols.pc-large { grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); }
[data-w="wide"] .pc-large > .gauche .list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
[data-w="wide"] .pc-large > .gauche > .answer { max-width: 560px; }
/* Compétitions : les compétitions à traiter sur deux colonnes quand la place le permet */
[data-w="wide"] .pc-large .pc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 8px 12px; align-items: start; }
[data-w="wide"] .pc-large .pc-grille > h2, [data-w="wide"] .pc-large .pc-grille > p { grid-column: 1 / -1; }
/* le contenu de la page de gauche (Compétitions, Stats), empilé avec le même écart que sur téléphone */
[data-w="wide"] .pc-cols > .gauche > .pc-pile { display: flex; flex-direction: column; gap: 18px; }
[data-w="wide"] .pc-cols .vide { margin: 0; padding: 28px; border: 2px dashed var(--line); border-radius: 6px; color: var(--ink2); text-align: center; }
/* ce qui est choisi dans la liste de gauche : fond clair de la couleur du club, cadre de la même couleur */
[data-w="wide"] .pc-liste [aria-current="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-ink); border-color: var(--brand-ink); }
[data-w="wide"] .pc-liste .mhead[aria-current="true"] .chev { transform: none; }
/* Compte : le sommaire des rubriques */
[data-w="wide"] .pc-sommaire { display: flex; flex-direction: column; gap: 6px; }
[data-w="wide"] .pc-sommaire button { min-height: 48px; padding: 10px 16px; border: 0; box-shadow: var(--ombre); border-radius: 3px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
/* Accueil : deux colonnes */
[data-w="wide"] .pc-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
[data-w="wide"] .pc-deux > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
[data-w="wide"] .pc-deux .btn.full { max-width: none; }
/* Adhérents : la recherche et les filtres restent en haut, seule la liste défile */
[data-w="wide"] .adh-pc > .gauche { overflow: visible; }
[data-w="wide"] .adh-pc .gauche > * { flex: none; }
[data-w="wide"] .adh-pc .gauche .field { margin: 0; }
[data-w="wide"] .adh-pc .gauche .filters { gap: 6px; max-height: 100px; overflow-y: auto; }
[data-w="wide"] .adh-pc .gauche > .defile { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-radius: 6px; }
/* Adhérents, à droite : la barre des rubriques (toujours visible), la rubrique choisie, et « Fermer la fiche » quand un adhérent est ouvert */
[data-w="wide"] .adh-pc .adh-barre { gap: 8px; }
[data-w="wide"] .adh-pc .adh-rubrique { display: flex; flex-direction: column; gap: 12px; }
.ferme-fiche { display: none; }
[data-w="wide"] .pc-cols .fiche .ferme-fiche, [data-w="wide"] .pc-deux .fiche .ferme-fiche { display: inline-flex; flex: none; width: auto; min-height: 40px; padding: 0 14px; font-size: 15px; }
[data-w="wide"] .panel { top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(92%, 560px); max-height: 88%; border-radius: 6px; }
[data-w="wide"] .layer:not([hidden]) .panel { animation: none; }
[data-w="wide"] #toast { bottom: 28px; }

/* ----- statistiques (encadrants) ----- */
.statbar { display: flex; flex-direction: column; gap: 10px; }
.statbar .field { max-width: 320px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.kpi { background: var(--card); border: 0; border-radius: 3px; box-shadow: var(--ombre); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi .kl { font-size: 13px; font-weight: 600; color: var(--ink2); }
.kpi b { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.kpi .ks { font-size: 13px; color: var(--ink2); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head .link { padding: 0; min-height: 44px; align-self: center; }
.ct { font-size: 16px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .mini i { display: block; border-radius: 2px; }
.legend i { width: 12px; height: 12px; }
i.yes, .seg.yes { background: var(--c-yes); fill: var(--c-yes); }
i.no, .seg.no { background: var(--c-no); fill: var(--c-no); }
i.none, .seg.none { background: var(--c-none); fill: var(--c-none); }
.chart { position: relative; padding-top: 34px; }
.scroll { overflow-x: auto; }
.plot { display: block; }
.plot .grid { stroke: var(--grid); stroke-width: 1; }
.plot .tick { font-size: 12px; fill: var(--ink2); font-variant-numeric: tabular-nums; }
.plot .hit { fill: transparent; cursor: default; outline: none; }
.plot .hit:hover, .plot .hit:focus-visible { fill: var(--brand-soft); fill-opacity: .55; }
.tip { position: absolute; top: 0; left: 0; max-width: 100%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; pointer-events: none; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 14px; }
.hbar .hl { overflow-wrap: anywhere; }
.hbar .ht { height: 14px; display: block; }
.hbar .ht i { display: block; height: 100%; min-width: 2px; background: var(--c-yes); border-radius: 0 4px 4px 0; }
.hbar .hv { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.row.srow .who { flex: 1; gap: 5px; }
.mini { display: flex; gap: 2px; height: 8px; max-width: 320px; }
.rate { flex: none; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.tbl { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font-size: 13px; color: var(--ink2); font-weight: 600; }
[data-w="wide"] .statbar { flex-direction: row; align-items: flex-end; justify-content: space-between; }

/* ----- fermetures du gymnase ----- */
.shut { border: 1px dashed var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--mute-bg); color: var(--mute-ink); }
.shut .evs { color: inherit; }
.row.old .who { opacity: .6; }

/* ----- œil pour voir le mot de passe ----- */
.pw { position: relative; display: block; }
.pw input { padding-right: 54px; }
.pw .eye { position: absolute; top: 2px; right: 2px; bottom: 2px; width: 48px; border: 0; border-radius: 8px; background: none; color: var(--ink2); display: flex; align-items: center; justify-content: center; }
.pw .eye[aria-pressed="true"] { color: var(--brand-ink); }

/* ----- compte famille : pour qui on répond ----- */
.fam { display: flex; flex-direction: column; gap: 6px; }
.fam .lab { font-size: 13px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.card .fam .filters { margin: 0; padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; }
.check input[type="radio"] { border-radius: 50%; }
a.btn { text-decoration: none; }

/* ----- événement sur plusieurs jours ----- */
.tile.span { width: 68px; }
.tile.span .d { font-size: 19px; }

/* ----- résultats et covoiturage ----- */
.pal { gap: 4px; }
.pal .when { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.pal .what { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.pal .where { font-size: 14px; color: var(--ink2); margin-bottom: 4px; }
.resbox { background: var(--card); border: 0; border-radius: 3px; box-shadow: var(--ombre); padding: 2px 14px; }
.res { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.resbox .res:first-child { border-top: 0; }
.rk { flex: none; min-width: 48px; height: 38px; padding: 0 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font-family: var(--f-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rk.gold { background: var(--gold); color: var(--on-gold); }
.rk sup { font-size: 12px; margin-left: 1px; }
.cov { border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.cov.offer { background: var(--brand-soft); color: var(--ink); }
.cov.need { background: var(--no-bg); color: var(--no-ink); }
.cov small { display: block; font-size: 14px; margin-top: 2px; }
.row.resrow { flex-wrap: wrap; }
.nums { flex: none; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); }
.nums input[type="number"] { width: 78px; min-height: 44px; padding: 6px 8px; border-radius: 6px; border: 2px solid var(--champ); background: var(--card); color: var(--ink); font-size: 16px; text-align: center; }
.card.test { border: 2px dashed var(--gold); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.res .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.res .name { font-weight: 600; overflow-wrap: anywhere; }
.res .sub { font-size: 14px; color: var(--ink2); }

/* ----- onglet Demandes (encadrant) ----- */
.tabs button { position: relative; }
.tabs.six { padding-left: 4px; padding-right: 4px; }
.tabs.six button { font-size: 12px; }
/* six onglets sur un téléphone : chaque onglet part de la largeur de son mot et la place libre se partage, pour que « Compétitions » tienne en entier */
html:not([data-w="wide"]) .tabs.six { display: flex; }
html:not([data-w="wide"]) .tabs.six button { flex: 1 1 auto; min-width: 0; padding: 0 2px; }
@media (max-width: 350px) { .tabs.six button { font-size: 11px; } }
.badge { position: absolute; top: 2px; left: calc(50% + 4px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
[data-w="wide"] .shell > .tabs .badge { position: static; margin-left: 6px; }
.reqcard { gap: 6px; }
.reqcard .when { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.reqcard .what { font-weight: 700; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.reqcard .rows { margin-top: 6px; }
.row.new { background: var(--brand-soft); }

/* ----- agenda du téléphone : choix ----- */
.sheet .k2 { margin: 16px 0 6px; font-weight: 700; }
.filters.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 0 6px; }
.picks { margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; text-align: left; background: var(--card); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); }
.pick:last-child { border-bottom: 0; }
.pick .box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ink2); display: flex; align-items: center; justify-content: center; color: transparent; }
.pick[aria-pressed="true"] { background: var(--brand-soft); }
.pick[aria-pressed="true"] .box { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pick .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pick .name { font-weight: 600; overflow-wrap: anywhere; }
.pick .sub { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.sheet h3.step { font-size: 18px; font-weight: 700; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet .sheet-head + h3.step { margin-top: 0; padding-top: 0; border-top: 0; }

/* ----- qui vient (groupes d'adultes) ----- */
.whoin { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.whoin .k { font-weight: 700; margin-bottom: 6px; }
.whoin ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
/* ----- catégories sur la carte d'une compétition ----- */
.evs.cat { color: var(--ink); font-weight: 600; }
/* ----- bouton d'enregistrement toujours visible en bas d'une longue liste ----- */
.sheet .stick { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }
/* la barre ne descend jusqu'au bord de la fiche que si rien ne la suit ; sinon elle recouvrirait le haut du bouton suivant (« Supprimer ») */
.sheet > form:last-child > .stick:last-child { margin-bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); }

/* ----- compte famille : compétitions réunies ----- */
.ev.multi { border: 2px solid var(--gold); }
.chip.famc { background: var(--gold); color: var(--on-gold, #0B2E4A); font-weight: 700; }
.evm .wn { font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }

/* ----- stats : présent, puis plus présent ----- */
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 12px; }
.kpis.three .kpi { padding: 10px; }
.kpis.three .kpi b { font-size: 26px; }
.kpis.three .kl, .kpis.three .ks { font-size: 12px; overflow-wrap: anywhere; }
.kpi.hot { border: 2px solid var(--gold); }
.row.tap { width: 100%; text-align: left; background: var(--card); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rows > .row.tap:last-child { border-bottom: 0; }

/* ----- mode d'emploi ----- */
.gsec { display: flex; flex-direction: column; gap: 10px; }
.gsec h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gsec.new { border: 2px solid var(--gold); border-radius: 6px; padding: 14px; }
.gi { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--brand-soft); }
.gi b { font-weight: 700; }
.gi span { color: var(--ink2); font-size: 15px; }
.gi .gt { font-size: 13px; font-weight: 600; color: var(--brand-ink, var(--brand)); }

/* ----- étiquette du type d'événement, de la même couleur que la case de la date ----- */
.chip.type.t-cours { background: var(--t-cours-bg); color: var(--t-cours-ink); }
.chip.type.t-competition { background: var(--t-compet-bg); color: var(--t-compet-ink); }
.chip.type.t-tournoi { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.chip.type.t-club { background: var(--t-club-bg); color: var(--t-club-ink); }

/* ----- apparence choisie à la main : le clair forcé garde des champs clairs même sur un téléphone en mode sombre ----- */
:root[data-theme="light"] { color-scheme: light; }

/* ----- bourse d'échange ----- */
.chip.kind { font-weight: 600; }
.chip.kind.k-vend { background: var(--t-cours-bg); color: var(--t-cours-ink); }
.chip.kind.k-donne { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.chip.kind.k-cherche { background: var(--t-compet-bg); color: var(--t-compet-ink); }
.ev .go { flex: none; color: var(--ink2); display: flex; }
.ev.ad.off .evt { text-decoration: none; color: var(--ink2); }
.adc { display: flex; flex-direction: column; gap: 2px; font-weight: 500; overflow-wrap: anywhere; }
.adc b { font-size: 18px; }
.adc a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ----- photos des annonces ----- */
.adth { flex: none; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; position: relative; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.adth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adth .n { position: absolute; right: 4px; bottom: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(11, 46, 74, .88); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal figure { margin: 0; flex: 0 0 100%; min-width: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 8px; }
.gal.many figure { flex-basis: 86%; }
/* toutes les photos dans un même cadre carré, entières (couchées ou debout), pour que la galerie garde une hauteur fixe */
.gal img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; display: block; }
.galn { margin-top: -4px; }
.pths { display: flex; flex-wrap: wrap; gap: 10px; }
.pth { position: relative; width: 92px; height: 92px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); display: block; }
.pth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pth .pdel { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(11, 46, 74, .88); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.pth.add { border: 2px dashed var(--brand-ink); background: var(--card); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.2; padding: 4px; cursor: pointer; }
.pth.add:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ----- préparation des cours (encadrants) ----- */
.chip.part { font-weight: 600; }
.chip.part.p-echauf { background: var(--t-compet-bg); color: var(--t-compet-ink); }
.chip.part.p-deplac { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.chip.part.p-corps { background: var(--t-cours-bg); color: var(--t-cours-ink); }
.parts { display: flex; flex-direction: column; gap: 10px; }
.part { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.part .ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-weight: 700; font-size: 16px; }
.part .ph small { font-weight: 600; font-size: 13px; }
.part.p-echauf .ph { background: var(--t-compet-bg); color: var(--t-compet-ink); }
.part.p-deplac .ph { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.part.p-corps .ph { background: var(--t-cours-bg); color: var(--t-cours-ink); }
.pit { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); }
.pit .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pit .t b { display: block; font-weight: 600; font-size: 15px; }
.pit .t span { display: block; font-size: 13.5px; color: var(--ink2); }
.pit .pm { flex: none; display: flex; align-items: center; gap: 4px; color: var(--ink2); }
.pit .pm input { width: 50px; min-height: 40px; padding: 4px 6px; text-align: center; font-weight: 700; }
.pit .pb { flex: none; display: flex; }
.pit .pb .nop { width: 36px; }
.pit .pb button { width: 36px; height: 40px; border: 0; background: none; color: var(--ink2); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.padd { display: block; width: 100%; text-align: left; min-height: 44px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--brand-ink); font-weight: 600; font-size: 15px; }
.ptot { font-size: 15px; }

/* ----- grandes fiches (exercice, séance) : larges sur ordinateur, et le texte long se lit sans agrandir la case ----- */
[data-w="wide"] .panel.big { width: min(94%, 980px); max-height: 92%; }
textarea.grow { resize: none; overflow: hidden; min-height: 132px; line-height: 1.5; }
.evs.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.pit .t span { white-space: pre-line; }
.pit .t span.more { cursor: pointer; }
.pit .t span.more:not(.open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- réglages du club ----- */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -2px; }
.crow { display: flex; gap: 8px; align-items: stretch; }
.crow input[type="color"] { flex: none; width: 56px; min-height: 48px; padding: 4px; border-radius: 6px; border: 2px solid var(--champ); background: var(--card); cursor: pointer; }
.crow input[type="text"] { flex: 1; min-width: 0; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; text-transform: uppercase; }
.csample { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.csample .csh { background: var(--head); color: var(--on-head); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.csample .csh .club { font-family: Georgia, 'Times New Roman', serif; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.csample .csh b { font-family: var(--f-display); font-size: 22px; font-weight: 800; }
.csample .csb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--bg); }
.csample .csb .btn { min-height: 40px; }
.clogo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.clprev { flex: none; width: 96px; height: 96px; border-radius: 6px; background: var(--head); display: flex; align-items: center; justify-content: center; padding: 8px; }
.clprev img { max-width: 100%; max-height: 100%; display: block; }
.clbtns { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 180px; }
.clbtns .btn { cursor: pointer; }

/* Bloc « Fiche FFE » (encadrant) : en-tête clair de la couleur du club, une carte par fiche */
.ffesec { gap: 10px; }
.ffehead { display: flex; justify-content: space-between; align-items: center; background: var(--brand-soft); color: var(--brand-ink); border-radius: 3px; padding: 10px 14px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ffecard { background: var(--bg); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ffecard p { margin: 0; }
.ffeday { font-size: 17px; font-weight: 700; color: var(--ink); }
.ffesub { font-size: 15px; color: var(--ink); }
.chip.ffewait { background: var(--t-compet-bg); color: var(--t-compet-ink); border: 2px solid var(--gold); padding: 1px 8px; font-weight: 700; }
.chip.ffeyes { background: var(--brand); color: var(--on-brand); padding: 3px 10px; font-weight: 700; }
.chip.hand { background: var(--danger-bg); color: var(--danger); border: 2px solid var(--danger); padding: 1px 8px; font-weight: 700; }
.hand { display: flex; gap: 8px; align-items: flex-start; background: var(--danger-bg); color: var(--danger); border: 2px solid var(--danger); border-radius: 6px; padding: 10px 12px; font-weight: 600; margin: 0; }

/* Tablette (700 à 1100 px) : les sept onglets ne tiennent pas à côté du titre, ils passent sous le bandeau */
@media (max-width: 1100px) {
  [data-w="wide"] .shell > .top { grid-column: 1 / -1; }
  [data-w="wide"] .shell > .tabs { grid-column: 1 / -1; grid-row: 2; padding: 0 20px 0 28px; overflow-x: auto; }
  [data-w="wide"] .shell > .tabs button { flex: none; }
}

/* Onglet de test « Compétitions FFE » (9 octobre 2026) : l'appli à gauche, la FFE à droite ; l'une sous l'autre sur téléphone */
.ffstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ffst { border-radius: 6px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; }
.ffst b { font-size: 24px; font-variant-numeric: tabular-nums; }
.ffheads { display: none; }
.fflist { display: flex; flex-direction: column; gap: 12px; }
.ffp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ffs { background: var(--card); border: 0; border-radius: 3px; box-shadow: var(--ombre); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ffs .t { font-weight: 700; overflow-wrap: anywhere; }
.ffs .m { color: var(--mute-ink); font-size: 14px; overflow-wrap: anywhere; }
.ffs .link { padding: 4px 0; min-height: 36px; }
.ffm { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-ink); }
.ffx { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; border-top: 1px solid var(--line); }
.ffm + .ffx { border-top: 0; padding-top: 2px; }
.ffx .chip, .ffs > .chip { align-self: flex-start; }
.ffe-a { color: var(--brand-ink); font-weight: 600; font-size: 14px; text-underline-offset: 3px; align-self: flex-start; padding: 4px 0; }
.fc-deja { background: var(--brand-soft); color: var(--brand-ink); }
.fc-auto { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.fc-new, .fc-doute { background: var(--card); color: var(--ink); border: 2px solid var(--gold); }
.chip.fc-new, .chip.fc-doute { padding: 1px 6px; }
.fc-ko { background: var(--danger-bg); color: var(--danger); }
.fc-hors { background: var(--mute-bg); color: var(--mute-ink); }
[data-w="wide"] .ffstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-w="wide"] .ffheads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-ink); padding: 0 4px; }
[data-w="wide"] .ffp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
[data-w="wide"] .ffm { display: none; }
/* Compétitions FFE, étape 2 : cartes « À vérifier » et liste des nouvelles compétitions */
.ffv { border: 2px solid var(--gold); gap: 6px; }
.ffv .t { font-weight: 700; overflow-wrap: anywhere; }
.ffv .m { color: var(--mute-ink); font-size: 14px; overflow-wrap: anywhere; }
.ffv .chip { align-self: flex-start; }
.check.ffck { align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.check.ffck:first-child { border-top: 0; padding-top: 0; }
.check.ffck input { margin-top: 2px; }
.check.ffck span { min-width: 0; overflow-wrap: anywhere; }
.link.back { padding: 4px 0; min-height: 40px; text-decoration: none; font-size: 16px; }

/* Apprendre : cours et quiz (fond et texte toujours contrastés, jamais la couleur seule) */
.ctext { font-size: 1.05rem; line-height: 1.55; margin: 8px 0 16px; }
.btn.qopt { text-align: left; justify-content: flex-start; }
.btn.qopt[disabled] { opacity: 1; }
.btn.qopt:not(.qok):not(.qko)[disabled] { opacity: .6; }
.btn.qok { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); border: 3px solid var(--t-tournoi-ink); }
.btn.qko { background: var(--danger-bg); color: var(--danger); border: 3px solid var(--danger); }
.qm { font-weight: 700; }
/* Formats de tournoi : une ligne par réglage (nom à gauche, nombres et unité à droite) */
.chip.fmt { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); }
.fmf { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; min-height: 48px; }
.fmf > label { font-size: 15px; font-weight: 600; }
.fmf .nums { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fmf .nums input[type="number"] { width: 64px; }
.fmf .nums select { width: auto; }
.fmf .u { color: var(--ink2); font-size: 14px; min-width: 80px; }
.fmcopy { border: 2px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
/* Tournoi interne : grille de poule (glisse dans son cadre, la page ne déborde jamais), tableau, saisie au pouce, carte d'accueil */
.tnscroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.tngrille { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 100%; }
.tngrille th, .tngrille td { border: 1px solid var(--line); min-width: 30px; height: 34px; padding: 2px 5px; text-align: center; }
.tngrille thead th { color: var(--ink2); font-size: 12px; font-weight: 600; background: var(--mute-bg); }
.tngrille .nom { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 600; }
.tngrille thead .nom { background: var(--mute-bg); }
.tngrille td.soi { background: var(--ink); }
.tngrille td.v { background: var(--t-tournoi-bg); color: var(--t-tournoi-ink); font-weight: 700; }
.tngrille tr.ab td { color: var(--ink2); text-decoration: line-through; }
.tngrille tr[data-moi] .nom { color: var(--brand-ink); }
.tnclass .nom { white-space: normal; }
.tnnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tnnav .btn { min-width: 48px; font-size: 22px; }
.tncol { display: flex; flex-direction: column; gap: 10px; }
.tnm { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); text-align: left; font: inherit; }
.tnm.afaire { border: 2px solid var(--brand); }
.tnl { display: flex; justify-content: space-between; gap: 10px; min-height: 26px; align-items: center; }
.tnl.gagne { font-weight: 700; }
.tnarbre { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.tnarbre .col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 190px; flex: 1; }
.tnscore { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.tnscore .btn.pm { width: 64px; min-height: 64px; font-size: 32px; padding: 0; flex: none; }
.tnscore .val { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.tnscore .val .name { font-weight: 600; overflow-wrap: anywhere; }
.tnscore .val b { font-family: var(--f-display); font-size: 44px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tncard .nx { background: var(--brand-soft); color: var(--brand-ink); border-radius: 6px; padding: 8px 10px; }
.tncard .tnplace b { font-size: 22px; }
/* Affichage salle : plein écran, fond blanc, grille et titres dans la couleur du bandeau du club, cases d'un tireur contre lui-même pleines ; gros caractères */
#app.salle-mode { max-width: none; }
.salle { min-height: 100vh; background: #FFFFFF; color: #0B2E4A; padding: 24px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; font-size: clamp(18px, 2.2vw, 32px); }
.salle header, .salle footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--head); font-size: .8em; }
.salle h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.8em; color: var(--head); }
.salle .tnscroll { border-color: transparent; }
.salle .tngrille { font-size: 1em; color: var(--head); }
.salle .tngrille th, .salle .tngrille td { border-color: var(--head); height: 1.9em; min-width: 1.9em; background: #FFFFFF; color: var(--head); }
.salle .tngrille .nom { color: #0B2E4A; }
.salle .tngrille thead th { font-size: .75em; }
.salle .tngrille td.soi { background: var(--head); }
.salle .tngrille td.v { font-weight: 800; }
.salle .tngrille tr.ab td { color: #5A6B7A; }
.salle-nx { font-weight: 700; color: var(--head); }
.salle-tab { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.salle-m { border: 2px solid var(--head); border-radius: 14px; padding: 10px 16px; }
.salle-m div { display: flex; justify-content: space-between; gap: 12px; }
.salle-m .g { font-weight: 800; }
.salle-final { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 8px 24px; }
.salle-final b { display: inline-block; min-width: 2.2em; }
.salle .btn { align-self: flex-start; }

/* ----- dossiers de licence : cases, cartes, tableau, carte de l'adhérent ----- */
.panel.plein { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
[data-w="wide"] .panel.plein { width: min(96%, 1240px); height: auto; max-height: 94%; border-radius: 6px; }
.doscard { display: flex; flex-direction: column; gap: 10px; }
.doscard .dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.doscard .dhead .sub { display: block; color: var(--ink2); font-size: 14px; }
.dcases { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.dcase { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
span.dcase { cursor: default; }
.dcase .box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 6px; background: var(--card); font-weight: 800; }
.dcase.on .box { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dcase.exp .box { background: var(--no-bg); border-color: var(--no-line); color: var(--no-ink); }
.dcase small { display: block; color: var(--ink2); font-size: 12px; }
.dosedit { border: 2px solid var(--gold); }
.dostab { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.dostab th, .dostab td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; vertical-align: middle; }
.dostab thead th { color: var(--ink2); font-size: 12px; font-weight: 600; background: var(--mute-bg); }
.dostab .nom { text-align: left; width: 26%; min-width: 150px; position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 600; }
.dostab th:not(.nom), .dostab td:not(.nom) { min-width: 64px; }
.dostab .dcase small { white-space: nowrap; }
.dostab thead .nom { background: var(--mute-bg); }
.dostab .nom small { display: block; font-weight: 400; color: var(--ink2); }
.dostab .dcase { justify-content: center; border: 0; min-height: 40px; padding: 2px; background: transparent; flex-direction: column; gap: 2px; }
.dostab .nc { color: var(--ink2); }
/* journal des actions sensibles : une ligne par action, l'heure à gauche */
.journal { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; }
.journal li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.journal .h { flex: none; min-width: 48px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.doslist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.doslist li { display: flex; align-items: center; gap: 8px; }
.doslist .ok svg { color: var(--brand); flex: none; }
.doslist .dot { flex: none; width: 14px; height: 14px; border: 2px solid var(--gold); border-radius: 50%; margin: 0 1px; }
.doscert { flex-basis: 100%; border-left: 4px solid var(--gold); padding: 4px 0 4px 10px; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.doscert p { margin: 0; }

/* ----- statistiques : bloc « Fidélisation » (courbes par catégorie, pastilles de score, étiquettes de signaux) ----- */
:root {
  --fl0: #115586; --fl1: #2E7D32; --fl2: #6A3FA0; --fl3: #8A6D1F; --fl4: #00796B; --fl5: #4A5B6B; --fl-bad: #C62828;
  --score3: #B3261E; --score3-on: #FFFFFF; --score2: #FBE9D7; --score2-on: #7A3A00; --score1: #E6EBF0; --score1-on: #0B2E4A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fl0: #6FB3E8; --fl1: #6CC070; --fl2: #B79AE6; --fl3: #E8C65A; --fl4: #4DB6AC; --fl5: #A9B9C7; --fl-bad: #FF7A70; --score2: #4A2A0C; --score2-on: #FFD2A6; --score1: #22313F; --score1-on: #C9D5DF; }
}
:root[data-theme="dark"] { --fl0: #6FB3E8; --fl1: #6CC070; --fl2: #B79AE6; --fl3: #E8C65A; --fl4: #4DB6AC; --fl5: #A9B9C7; --fl-bad: #FF7A70; --score2: #4A2A0C; --score2-on: #FFD2A6; --score1: #22313F; --score1-on: #C9D5DF; }
.fid { display: flex; flex-direction: column; gap: 12px; }
.fid h3.ct { font-size: 16px; }
.fidbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.fidbar .field { margin: 0; }
.plot path.fl { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.plot circle.fl { stroke: var(--card); stroke-width: 1.5; }
.plot .fl.dash { stroke-dasharray: 6 4; }
.plot path.fl.c0 { stroke: var(--fl0); } .plot circle.fl.c0 { fill: var(--fl0); }
.plot path.fl.c1 { stroke: var(--fl1); } .plot circle.fl.c1 { fill: var(--fl1); }
.plot path.fl.c2 { stroke: var(--fl2); } .plot circle.fl.c2 { fill: var(--fl2); }
.plot path.fl.c3 { stroke: var(--fl3); } .plot circle.fl.c3 { fill: var(--fl3); }
.plot path.fl.c4 { stroke: var(--fl4); } .plot circle.fl.c4 { fill: var(--fl4); }
.plot path.fl.c5 { stroke: var(--fl5); } .plot circle.fl.c5 { fill: var(--fl5); }
.plot path.fl.bad { stroke: var(--fl-bad); stroke-width: 3.5; } .plot circle.fl.bad { fill: var(--fl-bad); }
.legend i.fli { height: 4px; width: 18px; border-radius: 2px; }
.legend i.fli.c0 { background: var(--fl0); } .legend i.fli.c1 { background: var(--fl1); } .legend i.fli.c2 { background: var(--fl2); }
.legend i.fli.c3 { background: var(--fl3); } .legend i.fli.c4 { background: var(--fl4); } .legend i.fli.c5 { background: var(--fl5); }
.legend i.fli.bad { background: var(--fl-bad); height: 5px; }
.legend i.fli.dash { background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px); }
.fidrow { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; align-items: flex-start; gap: 10px; }
.fidrow .score { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 15px; }
.score.s3 { background: var(--score3); color: var(--score3-on); }
.score.s2 { background: var(--score2); color: var(--score2-on); }
.score.s1 { background: var(--score1); color: var(--score1-on); }
.fidrow .sigs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip.sig { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.card.grise { opacity: .75; }
.checks.two-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0 10px; }
.fidrg { display: flex; flex-direction: column; gap: 8px; }
.fidrow .who { flex: 1; min-width: 0; text-align: left; }
.fid .hbar { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) auto; }
.fid .hv { white-space: nowrap; text-align: right; }

/* ----- statistiques : bloc « Portrait du club » (pyramide des âges, tableau catégorie × arme, communes) ----- */
:root { --pf: #6A3FA0; --pm: #115586; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pf: #B79AE6; --pm: #6FB3E8; } }
:root[data-theme="dark"] { --pf: #B79AE6; --pm: #6FB3E8; }
.plot.pyr .pf { fill: var(--pf); }
.plot.pyr .pm { fill: var(--pm); }
.plot.pyr .pv { font-size: 12px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.plot.pyr .pc { font-size: 12px; font-weight: 600; fill: var(--ink); }
.legend i.pfi { background: var(--pf); }
.legend i.pmi { background: var(--pm); }
.portab td, .portab th { text-align: center; }
.portab td:first-child, .portab th:first-child { text-align: left; }
.portab .gris { color: var(--ink2); opacity: .7; }
.porcom { display: grid; grid-template-columns: 1fr; gap: 8px; }
[data-w="wide"] .porcom { grid-template-columns: 1fr 1fr; align-items: start; }
.porcom .row { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); }
.porcom .rows > :last-child { border-bottom: 0; }
.portab { font-size: 14px; }
.portab th, .portab td { padding-left: 5px; padding-right: 5px; }
.porcom button.row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.porcom .row .who { flex: 1; min-width: 0; }
@media (max-width: 360px) { .portab { font-size: 12.5px; } .portab th, .portab td { padding-left: 3px; padding-right: 3px; } }
.portab .sh { display: none; }
@media (max-width: 360px) { .portab .lg { display: none; } .portab .sh { display: inline; } }

/* ----- statistiques : bloc « Engagement » (barres empilées des compétitions, tendances, barème) ----- */
:root { --eg1: #115586; --eg2: #8A6D1F; --eg3: #6B7C8C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --eg1: #6FB3E8; --eg2: #E8C65A; --eg3: #8FA3B5; } }
:root[data-theme="dark"] { --eg1: #6FB3E8; --eg2: #E8C65A; --eg3: #8FA3B5; }
.legend i.eg1, .ht.empile i.eg1 { background: var(--eg1); }
.legend i.eg2, .ht.empile i.eg2 { background: var(--eg2); }
.legend i.eg3, .ht.empile i.eg3 { background: var(--eg3); }
.hbar .ht.empile { display: flex; }
.hbar .ht.empile i { border-radius: 0; }
.hbar .ht.empile i:last-child { border-radius: 0 4px 4px 0; }
.fid .sub-h { font-size: 15px; font-weight: 700; margin-top: 6px; }
.chip.tend { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.chip.tend.progresse { border-color: var(--eg1); }
.chip.tend.recule { border-color: var(--no-line); }
.engtab th .link { font-size: 13px; text-decoration: none; }
.engtab th .link[aria-pressed="true"] { text-decoration: underline; }
.bareme { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.kpi b small { font-size: 14px; font-weight: 600; color: var(--ink2); }
.engtab .sh { display: none; }
.engtab th, .engtab td { padding-left: 5px; padding-right: 5px; }
@media (max-width: 420px) { .engtab .lg { display: none; } .engtab .sh { display: inline; } }
@media (max-width: 360px) { .engtab { font-size: 12.5px; } .engtab th, .engtab td { padding-left: 3px; padding-right: 3px; } .engtab th .link { font-size: 12px; } }

/* ----- statistiques : bloc « Pour le bureau » et rapport de saison ----- */
.s-vert { --s: var(--fl1); } .s-ocre { --s: var(--fl3); } .s-rouge { --s: var(--fl-bad); } .s-vide { --s: var(--line); }
b.s-vert, b.s-ocre, b.s-rouge { color: var(--s); }
.legend i.s-vert, .legend i.s-ocre, .legend i.s-rouge { width: 14px; height: 14px; background: var(--s); }
.burpiece .who { gap: 6px; }
.burpiece .ht { display: block; height: 12px; background: var(--brand-soft); border-radius: 4px; overflow: hidden; }
.burpiece .ht i { display: block; height: 100%; min-width: 2px; background: var(--s); }
.burpiece .hv { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.burnoms { padding: 4px 4px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.burnoms p { margin: 0; }
.rapport { display: flex; flex-direction: column; gap: 14px; }
.rapport .raptitre { margin: 0; border-bottom: 3px solid var(--gold); padding-bottom: 6px; }
.rapport .ct { color: var(--brand-ink); }
.rapport .plot.pyr .pf, .legend i.rpf { fill: var(--gold); background: var(--gold); }
.rapport .plot.pyr .pm, .legend i.rpm { fill: var(--brand); background: var(--brand); }
.legend i.rpf, .legend i.rpm { width: 14px; height: 14px; }
/* impression du rapport (« Télécharger (PDF) ») : seule la feuille du rapport, à plat, en clair */
@media print {
  body.imprime .stage > .phone > .screen, body.imprime #toast, body.imprime .backdrop, body.imprime .noprint, body.imprime .sheet-head button { display: none !important; }
  body.imprime .layer, body.imprime .panel { position: static; transform: none; max-height: none; overflow: visible; width: auto; border-radius: 0; box-shadow: none; }
  body.imprime, body.imprime .panel { background: #FFFFFF; color: #000000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.imprime .rapport .ct, body.imprime .plot.pyr .pv, body.imprime .plot.pyr .pc { color: #000000; fill: #000000; }
  body.imprime .rapsec { break-inside: avoid; }
  body.imprime .scroll { overflow: visible; }
  body.imprime .tbl th, body.imprime .tbl td { border-bottom-color: #BBBBBB; color: #000000; }
}

/* ----- tournoi : saisie des scores dans les cases de la poule ----- */
.tngrille td.in { padding: 0; }
.tngrille td.in input { width: 100%; min-width: 34px; height: 40px; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: center; font: 700 16px/1 inherit; padding: 0; }
.tngrille td.in input:focus { outline: none; }
.tngrille td.in:focus-within { outline: 3px solid var(--brand); outline-offset: -3px; }
.tngrille td.in.attente { outline: 3px solid var(--gold); outline-offset: -3px; }
.tngrille td.in.attente:focus-within { outline-color: var(--brand); }
.tngrille td.in.v input { color: var(--t-tournoi-ink); }
.tngrille td.ro { background: var(--mute-bg); color: var(--mute-ink); cursor: help; }
.tngrille td.ro.v { color: var(--t-tournoi-ink); font-weight: 700; }
.tnegal { border: 2px solid var(--gold); border-radius: 6px; padding: 10px 12px; margin-top: 10px; }
.tnegal p { margin: 0 0 8px; }
.tnegal .answer { display: flex; flex-wrap: wrap; gap: 8px; }
.tnordre { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.tnordre span { border: 1px solid var(--line); border-radius: 6px; padding: 8px 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnordre .fait { color: var(--ink2); font-weight: 500; background: var(--mute-bg); border-color: var(--mute-bg); }
.tnordre .nx { border: 2px solid var(--brand); color: var(--brand-ink); }

/* ----- chronomètre d'escrime : plein écran, tireur de gauche en rouge, de droite en vert (lampes de l'appareil), gros chiffres ----- */
#app.chrono-mode { max-width: 640px; }
.chrono { min-height: 100vh; background: #FFFFFF; color: #0B2E4A; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.chrono header { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--head); }
.chrono .btn { background: #FFFFFF; color: #115586; border-color: #115586; }
.chrono .btn.primary, .chrono .ch-go { background: #115586; color: #FFFFFF; }
.ch-du, .ch-min, .ch-bas { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ch-du .btn, .ch-min .btn, .ch-bas .btn { flex: 1; min-height: 44px; }
.ch-du .btn.on { background: #115586; color: #FFFFFF; }
.ch-tm { text-align: center; font-size: clamp(64px, 22vw, 120px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 0; }
.ch-tm.zero { color: #B3261E; }
.ch-go { min-height: 260px; font-size: 56px; font-weight: 800; border-radius: 14px; }
.chrono .ch-go.ch-halte { background: #0B2E4A; border-color: #0B2E4A; }
.chrono .ch-du .btn[disabled], .chrono .ch-min .btn[disabled], .chrono .ch-bas .btn[disabled] { opacity: .35; }
.ch-go[disabled] { opacity: .5; }
.ch-extra { border: 2px solid #115586; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.ch-cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-cote { border-radius: 14px; padding: 10px; color: #FFFFFF; text-align: center; display: flex; flex-direction: column; gap: 6px; border: 4px solid transparent; }
.ch-cote.ch-g { background: #B3261E; }
.ch-cote.ch-d { background: #1E7A46; }
.ch-cote.flash, .ch-cote.gagne { border-color: #F2C200; }
.ch-nom { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ch-prio { display: inline-block; background: #F2C200; color: #3A2E00; border-radius: 8px; padding: 0 6px; font-size: 13px; }
.ch-score { margin: 0; min-width: 0; font-size: clamp(36px, 11vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ch-pl { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 4px; }
.ch-ca { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 80%; margin: 0 auto; }
.chrono .ch-cote .btn { min-height: 56px; background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; font-size: 28px; padding: 0; }
.chrono .ch-cote .btn.ch-j { background: #F2C200; color: #3A2E00; border-color: #F2C200; font-size: 13px; min-height: 30px; border-radius: 8px; }
.chrono .ch-cote .btn.ch-r { background: #FFFFFF; color: #B3261E; border-color: #FFFFFF; font-size: 13px; min-height: 30px; border-radius: 8px; }
.ch-mk { margin: 0; min-height: 1.3em; font-size: 13px; }
.ch-msg { text-align: center; color: #115586; font-weight: 600; margin: 0; }
.ch-fin { border: 2px solid #115586; border-radius: 14px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.ch-res { font-size: 22px; font-weight: 800; margin: 0; }
/* page Stats : le contenu d'un accordéon (le bloc, sans son titre) */
.sa-corps { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.sa-corps[hidden] { display: none; }

/* Pièces du dossier remises par la famille (carte « Mon dossier ») et vérifiées par l'encadrement (fiche d'un licencié) */
.dpiece { flex-wrap: wrap; align-items: flex-start; }
.dpiece > .who { flex: 1 1 0; min-width: 0; }
.dpbas { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dpbas .answer { flex-wrap: wrap; }
.dpfile { cursor: pointer; }
.dpref { color: var(--no-ink); }
.dpattest, .dpavert { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dpavert { border: 2px solid var(--gold); }
.dpavert p { margin: 0; }
.dpverif-t { margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; }
.dpreps { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.dpreps .no { color: var(--no-ink); font-weight: 700; }
.dpchip { cursor: pointer; border: 0; font: inherit; font-size: 13px; }
/* Matériel du club (js/materiel/) : tableaux, inventaire de fin d'année, noms à vérifier */
.mat-tab .nom { width: auto; min-width: 110px; }
.mat-inv .nom .link { padding: 0; min-height: 36px; text-align: left; }
.row.mat-fin { justify-content: flex-start; padding-left: 4px; }
.row.mat-fin .pick { display: flex; align-items: center; justify-content: center; width: auto; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; flex: none; cursor: pointer; }
.row.mat-fin .pick input { width: 22px; height: 22px; accent-color: var(--brand); }
.row.mat-fin .who.link { flex: 1; padding: 4px 0; text-align: left; text-decoration: none; color: inherit; font-weight: 400; }
.row.mat-nom { flex-wrap: wrap; }
.row.mat-nom .answer { width: 100%; }
.mat-soucis { margin: 0; padding-left: 20px; max-height: 240px; overflow-y: auto; font-size: 14px; }
[id^="acc-mat-"] .row .who, .sheet .row .who { flex: 1; }
[id^="acc-mat-"] .row .chip { white-space: nowrap; }
/* « Matériel du club » du Compte : le QR code personnel à côté de son explication (noir sur blanc dans les deux thèmes) */
.mat-qr { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.mat-qr-img { flex: none; width: 132px; height: 132px; }
.mat-qr-img svg { width: 100%; height: 100%; display: block; }
.mat-qr p { margin: 0; }
/* Matériel : scan du QR code d'un adhérent (js/materiel/scan.js) : l'image de la caméra, carrée, avec un cadre blanc pour viser */
.mat-scan { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 8px; overflow: hidden; background: #1F2328; }
.mat-scan video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-scan .cadre { position: absolute; inset: 18%; border: 3px solid #FFFFFF; border-radius: 10px; box-shadow: 0 0 0 999px rgba(31, 35, 40, .45); pointer-events: none; }
/* Matériel : fenêtre d'import d'un classeur (js/materiel/import.js) ; téléphone : un bouton par feuille ; ordinateur : les feuilles à gauche, les colonnes à droite */
.mat-imp-liste { display: none; }
.mat-imp-liste .row[aria-current="true"] { outline: 3px solid var(--brand); outline-offset: -3px; }
.row.mat-imp-col { flex-wrap: wrap; }
.row.mat-imp-col select { width: 100%; }
[data-w="wide"] .mat-imp-onglets { display: none; }
[data-w="wide"] .mat-imp { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
[data-w="wide"] .mat-imp-liste { display: block; }

/* ----- vidéo et coaching individuel (js/video/) : touches données en bleu (--c-yes), reçues en orange (--c-no), cibles en doré ----- */
.vid-gr { width: 100%; max-width: 460px; height: auto; }
.vid-gr .vid-lab { font-size: 12px; fill: var(--ink); }
.vid-gr .vid-val { font-size: 12px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.vid-gr .vid-p { fill: var(--c-yes); }
.vid-gr .vid-c { fill: var(--c-no); }
.vid-gr .vid-piste { fill: var(--grid); }
.vid-gr .vid-pt { stroke: var(--card); stroke-width: 2; }
.vid-gr .vid-lp, .vid-gr .vid-lc { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vid-gr .vid-lp { stroke: var(--c-yes); }
.vid-gr .vid-lc { stroke: var(--c-no); }
.vid-gr .vid-aire { fill: var(--c-yes); fill-opacity: .12; }
.vid-gr .vid-cible { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 3; }
.legend i.vid-p { background: var(--c-yes); }
.legend i.vid-c { background: var(--c-no); }
.vid-score { font-family: var(--f-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vid-score-grand { font-family: var(--f-display); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.vid-score-grand small { font-family: var(--f-body); font-weight: 400; font-size: 13px; }
.vid-p-t { color: var(--c-yes); }
.vid-c-t { color: var(--c-no); }
.vid-obj, .vid-mot { background: var(--card); border-radius: 6px; padding: 12px 14px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 8px; }
.vid-obj-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vid-obj-c { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.vid-obj-c b { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--c-yes); }
.vid-obj-cible { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--mute-bg); border-left: 3px solid var(--gold); padding: 1px 6px; }
.vid-jauge { position: relative; height: 10px; border-radius: 5px; background: var(--grid); margin-bottom: 4px; }
.vid-jauge i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-yes); border-radius: 5px; max-width: 100%; }
.vid-jauge b { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1px; background: var(--gold); border-radius: 2px; }
.vid-obj .btn.quiet { align-self: flex-start; }
.vid-mot .pre { margin: 0; }
.vid-pro { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--gold); border-radius: 6px; padding: 10px 12px; box-shadow: var(--ombre); cursor: pointer; }
.vid-pro .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vid-pro .name { font-weight: 700; }
.vid-pro .sub { font-size: 14px; color: var(--ink2); }
.vid-date { flex: none; width: 52px; text-align: center; background: var(--brand); color: var(--on-brand); border-radius: 6px; padding: 6px 0; line-height: 1.1; }
.vid-date b { display: block; font-size: 20px; }
.vid-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.vid-touches { display: flex; flex-direction: column; background: var(--card); border-radius: 6px; box-shadow: var(--ombre); overflow: hidden; }
.vid-t { display: grid; grid-template-columns: 44px 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; font-variant-numeric: tabular-nums; }
button.vid-t { cursor: pointer; min-height: 44px; }
.vid-t:last-child { border-bottom: 0; }
.vid-t.sel { background: var(--brand-soft); }
.vid-t .tm, .vid-t .sc { color: var(--ink2); font-size: 14px; }
.vid-t i { width: 12px; height: 12px; border-radius: 50%; }
.vid-t i.vid-p, .vp-m.vid-p { background: var(--c-yes); }
.vid-t i.vid-c, .vp-m.vid-c { background: var(--c-no); }

/* écran de pointage plein écran */
#app.pointage-mode { max-width: 720px; }
.vp { min-height: 100vh; background: var(--bg); padding: 10px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.vp header { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.vp-titre { min-width: 0; overflow-wrap: anywhere; }
.vp-video { display: flex; flex-direction: column; gap: 8px; }
.vp-video video { width: 100%; max-height: 52vh; background: #0E1216; border-radius: 6px; }
.vp-choix { background: var(--card); border-radius: 6px; padding: 14px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 10px; }
.vp-choix p { margin: 0; }
.vp-cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.vp-changer { align-self: flex-start; }
.vp-frise { position: relative; height: 22px; background: var(--grid); border-radius: 4px; }
.vp-m { position: absolute; top: 2px; width: 8px; height: 18px; margin-left: -4px; border: 0; border-radius: 3px; padding: 0; cursor: pointer; }
.vp-m::after { content: ""; position: absolute; inset: -10px -8px; } /* cible du doigt plus grande que le repère */
.vp-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; background: var(--card); border-radius: 6px; padding: 8px; box-shadow: var(--ombre); }
.vp-score b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.vp-score span { font-size: 13px; overflow-wrap: anywhere; }
.vp-moi b { color: var(--c-yes); }
.vp-lui b { color: var(--c-no); }
.vp-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vp-deux .btn { min-height: 60px; font-size: 16px; }
.vp .btn.vp-pour { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.vp .btn.vp-contre { background: #9A4A00; border-color: #9A4A00; color: #FFFFFF; } /* orange foncé : texte blanc lisible dans les deux thèmes */
.vp-quoi { background: var(--card); border-radius: 6px; padding: 12px 14px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 10px; }
.vp-quoi p { margin: 0; }
.vp-quoi .filters { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; }
.vp-quoi .vp-deux .btn { min-height: 44px; font-size: 15px; }
.vp-etat p { margin: 0; display: flex; align-items: center; gap: 6px; }
