/* Habillage du club (USAL : bleu marine, rouge, blanc). Titres en Bebas Neue, textes en Lexend. */
:root {
  --navy: #1f3d68; --navy-deep: #0f2240; --brand-ink: #1f3d68;
  --bg: #f2f5f9; --surface: #ffffff; --surface-2: #e6ecf3; --ink: #0f1d2e; --muted: #5b6b7d; --line: #d5dde7;
  --accent: #cc232d; --accent-ink: #ffffff; --ok: #1b7f4c; --ok-soft: #dcf1e5; --late: #b86200; --late-soft: #fdf0d9; --bad: #b3261e;
  --head-muted: #c9d6e6;
  --ph-1: #2a78d6; --ph-2: #eb6834;   /* poules du matin et de l'après-midi (graphique des temps de jeu) */
  --f-display: "Bebas Neue", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Lexend", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-deep: #081426; --brand-ink: #9fc0ea; --bg: #0b1626; --surface: #13233a; --surface-2: #1b2e49; --ink: #eef3f9; --muted: #9db0c6;
    --line: #24395a; --accent: #e53a43; --ok: #3fc483; --ok-soft: #12382a; --late: #ffb23e; --late-soft: #3b2a10; --bad: #ff6b62; --ph-1: #3987e5; --ph-2: #d95926; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy-deep: #081426; --brand-ink: #9fc0ea; --bg: #0b1626; --surface: #13233a; --surface-2: #1b2e49; --ink: #eef3f9; --muted: #9db0c6;
  --line: #24395a; --accent: #e53a43; --ok: #3fc483; --ok-soft: #12382a; --late: #ffb23e; --late-soft: #3b2a10; --bad: #ff6b62; --ph-1: #3987e5; --ph-2: #d95926; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--f-body); font-synthesis: none; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Écran : colonne qui remplit la hauteur, sans défilement sur un téléphone de 375 × 667 */
#app { min-height: 100%; display: flex; flex-direction: column; }
.ecran { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
.haut { background: var(--navy-deep); color: #fff; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.haut-l { display: flex; align-items: center; gap: 10px; }
.club { font: 400 26px/1 var(--f-display); letter-spacing: .03em; }
.bonjour { font-size: 13px; color: var(--head-muted); }
.avatar { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--accent); background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; }
.cat { align-self: flex-start; position: relative; display: inline-flex; align-items: center; }
.cat select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 12px; border-radius: 17px; border: 1px solid #3a5784; background: var(--navy); color: #fff; font-size: 13px; }
.cat::after { content: ""; position: absolute; right: 12px; top: 13px; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); pointer-events: none; }
.cat span { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--navy); font-size: 13px; display: inline-flex; align-items: center; }
.cat:has(span)::after { display: none; }
.barre { background: var(--navy-deep); color: #fff; min-height: 56px; padding: env(safe-area-inset-top, 0px) 12px 0 4px; display: flex; align-items: center; gap: 4px; }
.barre h1 { flex: 1; margin: 0; font: 400 26px/1 var(--f-display); letter-spacing: .04em; }
.retour { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; }
.test { background: var(--late-soft); color: var(--ink); font-size: 12px; padding: 6px 16px; }
.horsligne { background: var(--surface-2); font-size: 12px; padding: 6px 16px; }

main.corps { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.carte { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(15, 34, 64, .08); }
.etiquette { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--accent); text-transform: uppercase; }
.titre { font: 400 28px/1 var(--f-display); letter-spacing: .02em; color: var(--brand-ink); }
.sous { font-size: 13px; color: var(--muted); }
.annulee { color: var(--bad); font-weight: 600; }
.bouton { height: 44px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; }
.bouton.second { background: var(--surface); color: var(--brand-ink); border: 1.5px solid var(--brand-ink); }
.bouton:disabled { opacity: .5; }
.ligne { background: var(--surface); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 0; text-align: left; width: 100%; box-shadow: 0 1px 2px rgba(15, 34, 64, .08); }
.jour { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--surface-2); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.jour b { font-size: 17px; }
.ligne .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne .txt b { font-size: 14px; }
.alerte { color: var(--late); font-weight: 600; }
.tuiles { display: flex; flex-direction: column; gap: 6px; }
.tuile { min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; gap: 14px; padding: 0 16px; text-align: left; width: 100%; }
.tuile.premiere { background: var(--navy); border-color: var(--navy); color: #fff; }
.tuile svg { flex: none; }
.tuile b { display: block; font: 400 26px/1 var(--f-display); letter-spacing: .02em; color: var(--brand-ink); }
.tuile.premiere b { color: #fff; }
.tuile small { font-size: 12px; color: var(--muted); }
.tuile.premiere small { color: var(--head-muted); }
.pied { border-top: 1px solid var(--line); background: var(--surface); min-height: 44px; padding: 0 16px env(safe-area-inset-bottom, 0px); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.lien { border: 0; background: none; color: var(--brand-ink); font-weight: 600; font-size: 13px; padding: 10px 0; text-decoration: underline; }

/* Formulaires (connexion, mot de passe, compte) */
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.champ { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.champ input { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 16px; font-weight: 400; color: var(--ink); }
.message { font-size: 13px; line-height: 1.4; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.message.erreur { background: #fde4e2; color: #8c1d16; }
.message.ok { background: var(--ok-soft); color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .message.erreur { background: #3a1513; color: #ffb4ad; } }
.accueil-co { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 20px; }
.marque { text-align: center; }
.marque b { display: block; font: 400 38px/1 var(--f-display); letter-spacing: .03em; color: var(--brand-ink); }
.marque span { font-size: 13px; color: var(--muted); }
.liste { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.liste li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.liste li span:last-child { color: var(--muted); text-align: right; }
.chargement { flex: 1; display: grid; place-items: center; color: var(--muted); padding: 40px 0; }
.toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }

/* ---------- Terrain : séance, chrono, appel, tournoi (repris de l'appli M8) ---------- */
.ecran.terrain { min-height: 100%; }
.wrap { padding: 0 16px 150px; }
.incident-btn { height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px solid #ff8a90; background: none; color: #fff; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.incident-btn svg { stroke: #ff8a90; }
.hero { position: relative; overflow: hidden; margin-inline: -16px; padding: 14px 16px 16px; color: #fff; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.hero .wm { position: absolute; left: -4px; bottom: -12px; font: 400 92px/.8 var(--f-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .15); white-space: nowrap; pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -50px; top: -40px; width: 170px; height: 170px; border: 22px solid var(--accent); border-radius: 50%; opacity: .14; pointer-events: none; }
.tag { display: inline-block; background: var(--accent); color: #fff; font: 600 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; }
.snav { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.snav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); color: #fff; font-size: 22px; line-height: 1; }
.snav button:disabled { opacity: .3; }
.sdate { text-align: center; min-width: 0; }
.sdate .d { font: 400 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; margin-top: 6px; }
.sdate .m { font-size: 12.5px; opacity: .85; }
.hero.compact { padding-block: 10px 12px; }
.hero.compact .sdate .d { font-size: 24px; }
.hero.compact .wm { font-size: 70px; }
.theme-line { position: relative; z-index: 1; margin: 8px 0 0; font-size: 14px; text-align: center; opacity: .95; }
.hero + * { margin-top: 14px; }
.chrono { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; border-radius: 10px; padding: 16px; display: grid; gap: 12px; margin-bottom: 18px; }
.chrono .lbl { font: 600 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #ff8a90; }
.chrono .name { font: 400 28px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.chrono .time { font: 400 clamp(88px, 32vw, 150px)/.85 var(--f-display); font-variant-numeric: tabular-nums; }
.chrono .time.last { color: #ff5a63; }
.chrono .next { font-size: 14px; opacity: .8; }
.segs { display: flex; gap: 3px; height: 10px; }
.seg { background: rgba(255, 255, 255, .18); overflow: hidden; min-width: 6px; }
.seg i { display: block; height: 100%; width: 0; background: var(--accent); }
.seg.done i { width: 100%; background: rgba(255, 255, 255, .55); }
.ctrls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ctrls button { height: 54px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; white-space: nowrap; font: 400 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.ctrls .main { background: var(--accent); color: var(--accent-ink); }
.chrono .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; opacity: .85; }
.chrono .foot button { background: none; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; border-radius: 999px; padding: 6px 14px; }
.chrono.fini .name { font-size: 40px; }
.start-big { width: 100%; height: 60px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 400 27px/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 4px 14px rgba(204, 35, 45, .28); }
.alarm { position: fixed; inset: 0; z-index: 40; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px 20px; text-align: center; color: #fff; background: #cc232d; animation: alarm .5s steps(1) infinite; }
@keyframes alarm { 50% { background: #0f2240; } }
@media (prefers-reduced-motion: reduce) { .alarm { animation: none; } }
.alarm .k { font: 600 14px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.alarm .t { font: 400 56px/.95 var(--f-display); text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.alarm .s { font-size: 16px; max-width: 30ch; }
.alarm button { width: 100%; max-width: 480px; height: 128px; border: 4px solid #fff; border-radius: 999px; background: rgba(0, 0, 0, .18); color: #fff; font: 400 42px/1 var(--f-display); text-transform: uppercase; }
.exos { display: grid; gap: 12px; }
.exo { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 1px 2px rgba(15, 34, 64, .06); }
.exo.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.exo.past { opacity: .55; }
.exo-h { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; }
.num { font: 400 32px/1 var(--f-display); color: var(--accent); }
.exo-t { font: 400 25px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; min-width: 0; text-wrap: balance; padding-top: 3px; }
.dur { display: flex; align-items: center; gap: 4px; }
.dur span { font: 400 26px/1 var(--f-display); min-width: 48px; text-align: center; color: var(--brand-ink); }
.dur button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 10.5px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.chip.lvl { background: var(--navy); color: #fff; padding: 3px 7px; }
.desc { font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.mat { font-size: 14px; color: var(--muted); }
.mat b { color: var(--ink); }
.fiche-infos { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fiche-infos .voir-video { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.vid { justify-self: start; font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; padding: 8px 0; border: 0; background: none; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 22px 18px; color: var(--muted); margin-top: 14px; }
.empty strong { display: block; color: var(--ink); font: 400 24px/1.1 var(--f-display); text-transform: uppercase; margin-bottom: 4px; }
.today-missing { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: var(--surface); border-left: 4px solid var(--accent); box-shadow: 0 0 0 1px var(--line); }
.today-missing div { display: grid; min-width: 0; } .today-missing b { font: 400 21px/1 var(--f-display); text-transform: uppercase; } .today-missing span { font-size: 13px; color: var(--muted); }
.today-missing button { margin-left: auto; flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 400 21px/1 var(--f-display); text-transform: uppercase; }
.plan-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.plan-row b { font: 400 22px/1 var(--f-display); text-transform: uppercase; }
.edit-btn { margin-left: auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--brand-ink); background: var(--surface); color: var(--brand-ink); font-weight: 600; font-size: 13px; }
.edit-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan-info { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.exo-tools { display: flex; gap: 8px; }
.exo-tools button { height: 44px; min-width: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 18px; }
.exo-tools .rm { margin-left: auto; font-size: 15px; padding: 0 12px; color: var(--bad); }
.exo-tools button:disabled { opacity: .3; }
.add-exo { width: 100%; height: 52px; margin-top: 12px; border-radius: 12px; border: 2px dashed var(--line); background: var(--surface); font-weight: 700; }
.debrief { margin-top: 18px; display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.debrief h2 { margin: 0; font: 400 26px/1 var(--f-display); text-transform: uppercase; }
.debrief textarea, .sheet textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; font: 15px/1.4 var(--f-body); color: var(--ink); resize: vertical; }
.hint { font-size: 13.5px; color: var(--muted); margin: 0; }
.count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; padding-block: 0 4px; }
.count .n { font: 400 44px/1 var(--f-display); color: var(--ok); }
.count .nl { font: 400 32px/1 var(--f-display); color: var(--late); margin-left: 6px; }
.count .of { color: var(--muted); font-size: 14px; }
.status { font-size: 13px; line-height: 1.35; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); margin-bottom: 12px; }
.status.ok { background: var(--ok-soft); }
.kids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
@media (min-width: 560px) { .kids { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.kid { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 6px; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ph { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: hsl(var(--h, 215) 35% 40%); color: #fff; font: 400 20px/1 var(--f-display); box-shadow: 0 0 0 2px var(--line); transition: filter .15s, opacity .15s; }
.kid .ph { width: 92px; height: 92px; font-size: 36px; }
.kids.petits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kids.petits .ph { width: 58px; height: 58px; font-size: 22px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; border-radius: 50%; pointer-events: none; }
.kid .nm { font-size: 13.5px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.kid.absent .ph { filter: grayscale(1); opacity: .45; }
.kid.on .ph { box-shadow: 0 0 0 4px var(--ok); }
.kid.on .nm { color: var(--ink); font-weight: 700; }
.kid.late .ph { box-shadow: 0 0 0 4px var(--late); }
.kid.late .nm { color: var(--late); font-weight: 700; }
.pb { position: absolute; z-index: 1; right: -2px; bottom: -2px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font: 600 12.5px/1 var(--f-body); color: #fff; border: 2px solid var(--bg); }
.kid.on .pb { background: var(--ok); } .kid.late .pb { background: var(--late); }
@media (prefers-reduced-motion: reduce) { .ph { transition: none; } }
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(15, 29, 43, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 14px 14px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.sheet-title { font: 400 26px/1 var(--f-display); text-transform: uppercase; color: var(--brand-ink); }
.sheet-h { display: flex; align-items: center; gap: 12px; }
.sheet-h .ph { width: 84px; height: 84px; font-size: 28px; }
.sheet-h b { display: block; font: 400 30px/1 var(--f-display); text-transform: uppercase; }
.sheet-h small { color: var(--muted); font-size: 13px; }
.sheet details { border-bottom: 1px solid var(--line); padding: 6px 0; } .sheet summary { font-weight: 600; cursor: pointer; padding: 6px 0; }
.opt { height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; }
.opt.cur { border: 2px solid var(--ink); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot.present { background: var(--ok); } .dot.retard { background: var(--late); } .dot.absent { background: var(--muted); }
.sheet-close { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 8px; }
.search { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.filters button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 13px; }
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lib { display: grid; gap: 6px; }
.lib button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.lib b { font: 400 18px/1.1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.lib small { grid-column: 1; color: var(--muted); font-size: 12px; }
.lib .d { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 400 18px/1 var(--f-display); }
.free { border-top: 1px solid var(--line); padding-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 6px; }
.free input { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; min-width: 0; }
.free button { height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 0 14px; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.case input { width: 22px; height: 22px; accent-color: var(--navy); }
.formulaire select { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-size: 15px; font-weight: 400; color: var(--ink); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--navy-deep); padding-bottom: env(safe-area-inset-bottom, 0px); }
.action { background: var(--bg); padding: 10px 0; }
.action > button { display: block; width: calc(100% - 32px); max-width: 608px; margin: 0 auto; height: 54px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 400 24px/1 var(--f-display); text-transform: uppercase; }
.action > button:disabled { background: var(--surface-2); color: var(--muted); }
.tabs { max-width: 640px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabs button { height: 60px; border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 4px; font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .62); position: relative; }
.tabs:has(> :nth-child(5)) button { font-size: 10px; letter-spacing: 0; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button[aria-selected="true"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--accent); }
/* Tournoi du jour */
.tournoi-tete { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.tournoi-tete > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tournoi-tete small { font-size: 12px; color: var(--muted); }
.pointage { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.pointage.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.equipes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.equipes button { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--brand-ink); font-size: 13px; }
.equipes button[aria-selected="true"] { border: 2px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; }
.noms { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.noms span { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.noms span.absent { background: var(--late-soft); color: var(--late); border-color: var(--late); }
.score { background: var(--navy-deep); color: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.score-l { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.etiquette-claire { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #ff8a90; }
.score-n { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.score-n span { display: flex; flex-direction: column; } .score-n small { font-size: 12px; color: var(--head-muted); } .score-n b { font: 400 60px/1 var(--f-display); }
.score-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.score-b button { height: 54px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; font-weight: 600; }
.score-b .nous { background: var(--accent); }
.petit { height: 40px; padding: 0 12px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 12.5px; }
.petit.plein { background: #fff; color: var(--navy-deep); border-color: #fff; font-weight: 600; }
.petit:disabled { opacity: .4; }
.matchs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.matchs li { display: flex; justify-content: space-between; gap: 8px; background: var(--surface); border-radius: 8px; padding: 8px 10px; }
.gagne { color: var(--ok); font-weight: 600; } .perdu { color: var(--bad); font-weight: 600; } .nul { color: var(--muted); font-weight: 600; }
/* ---------- Organisation ---------- */
.pastille { height: 28px; padding: 0 10px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 12px; display: inline-flex; align-items: center; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 10px; }
.cal-tete .search { flex: 1; }
.cal-tete .titre-section { margin: 6px 0 0; }
.ajouter { height: 40px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.evs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }   /* minmax : une ligne trop longue se coupe au lieu d'élargir l'écran */
.ev { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ev .txt, .ev-h .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev small, .dispos small, .prevus small { font-size: 12px; color: var(--muted); }
.ev small.alerte { color: var(--late); font-weight: 600; }
.ev.tournoi { flex-direction: column; align-items: stretch; gap: 8px; border: 2px solid var(--navy); }
.ev-h { display: flex; gap: 12px; align-items: flex-start; border: 0; background: none; padding: 0; text-align: left; }
.barre-rep { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; color: inherit; text-align: left; cursor: pointer; }
.barre-rep small { color: var(--brand-ink); font-weight: 600; }
.barre-rep .fl { color: var(--muted); font-weight: 400; margin-left: 4px; }
.jauge { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .jauge i { display: block; height: 8px; background: var(--navy); }
.etats { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.etats span { background: var(--surface-2); color: var(--brand-ink); border-radius: 8px; padding: 5px 8px; } .etats .ok { background: var(--ok-soft); color: var(--ok); }
.titre-section { font: 400 24px/1 var(--f-display); text-transform: uppercase; color: var(--brand-ink); margin: 18px 0 6px; }
.dispos, .prevus { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.dispos li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 8px 10px; }
.dispos .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.choix3 { display: flex; gap: 4px; }
.choix3 button { min-width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--brand-ink); }
.choix3 button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.choix3 button.presume[aria-pressed="true"] { background: var(--surface-2); color: var(--brand-ink); border: 2px dashed var(--navy); }
.prevus li { background: var(--surface); border-radius: 12px; padding: 8px 10px; }
.prevus summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.prevus summary .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prevus .detail { font-size: 13px; padding: 6px 0 0 56px; } .prevus .detail p { margin: 2px 0; }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.champs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.champ textarea { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; font: 15px/1.4 var(--f-body); color: var(--ink); resize: vertical; }
.champ select { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 8px; font-size: 14px; font-weight: 400; color: var(--ink); }
.lien.rouge { color: var(--bad); }
.jours { display: grid; gap: 4px; }
.jours .case { justify-content: space-between; background: var(--surface-2); border-radius: 10px; padding: 0 10px; }
.jours .case span { flex: 1; text-transform: capitalize; }
.jours input[type="time"] { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: var(--surface); }
.editeur { padding-top: 10px; padding-bottom: 12px; }
.editeur.formulaire { gap: 8px; }
.editeur .champ input, .editeur .champ select { height: 42px; }
.editeur .champ textarea { padding: 6px 10px; }
.gabarits { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.gabarits button { flex: none; }
.gabarits button { height: 34px; padding: 0 10px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); color: var(--brand-ink); font-size: 12px; }
.gabarits button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.sheet .schema svg { display: block; width: 100%; height: auto; max-height: 46vh; }
.sheet .schema { color: var(--ink); }
.editeur .hint { font-size: 12px; margin: 4px 0 0; }
.etiquette-sec { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 4px; }
.ed2 .etiquette-sec:first-child { margin-top: 0; }
/* Étape « le terrain » : aperçu du schéma, le dessin se fait en plein écran */
.apercu-ed { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; margin: 10px 0; }
.apercu-ed > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.apercu-schema { width: 130px; height: 170px; flex: none; border: 0; padding: 0; background: none; color: var(--ink); }
.apercu-schema svg { display: block; width: 100%; height: 100%; }
/* Dessin en plein écran : terrain au plus grand, outils en bas sous le pouce */
.plein-ed { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; background: var(--navy-deep); color: #fff; }
.plein-ed .barre { background: transparent; }
.plein-ed .retour:disabled { opacity: .35; }
.fini { margin-left: auto; border: 0; border-radius: 16px; padding: 7px 14px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; }
.zone-ed { flex: 1; min-height: 0; padding: 4px 8px 0; touch-action: none; user-select: none; -webkit-user-select: none; color: #fff; }
.zone-ed svg { display: block; width: 100%; height: 100%; }
.aide-ed { flex: none; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 10px; font-size: 12.5px; color: var(--head-muted); text-align: center; }
.aide-ed button { border: 0; border-radius: 16px; padding: 7px 14px; font-weight: 600; font-size: 12.5px; background: #fff; color: var(--navy-deep); }
.aide-ed button.rouge { background: var(--accent); color: #fff; }
.outils-ed { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, .25); }
.outils-ed button { height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--head-muted); font-size: 10.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.outils-ed button[aria-pressed="true"] { background: #fff; color: var(--navy-deep); }
.outils-ed .pt { width: 18px; height: 18px; border: 2px solid #fff; } .outils-ed .tri { border-left-width: 9px; border-right-width: 9px; border-bottom-width: 15px; } .outils-ed .bal { width: 20px; height: 13px; }
.pt { width: 12px; height: 12px; border-radius: 50%; display: inline-block; } .pt.rouge { background: #cc232d; } .pt.jaune { background: #f2c230; }
.tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #f08a24; display: inline-block; }
.bal { width: 12px; height: 8px; border-radius: 50%; background: #8a4b1d; display: inline-block; }
.compteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.compteur { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 10px; }
.compteur span { flex: 1; font-size: 12px; color: var(--muted); } .compteur b { width: 26px; text-align: center; }
.compteur button { width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--brand-ink); font-size: 18px; }
.editeur .deux { margin-top: 10px; }
.ed2 .compteurs { margin: 0; }
/* Équipes (repris de l'appli M8) */
.wrap.plein { padding-bottom: 0; }
.eq { display: flex; flex-direction: column; min-height: 300px; }
.eq .hero { flex: none; }
.eq .sdate .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-zones { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 10px; padding: 8px 0 10px; }
.eq-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.eq-leg span { display: inline-flex; align-items: center; gap: 4px; }
.eq-ico { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zone { background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px 10px; }
.zone.ns { background: var(--surface-2); border-color: var(--surface-2); }
.zone.target { border-style: dashed; border-color: var(--accent); } .zone.home { border-color: var(--brand-ink); }
.zone.over { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.zh { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 4px; }
.zt { font: 400 23px/1 var(--f-display); text-transform: uppercase; color: var(--brand-ink); }
.eff { font: 600 10.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--surface-2); }
.zone.ns .eff { background: var(--surface); } .eff.alert { background: var(--late-soft); color: var(--late); } .eff.vide { background: none; color: var(--muted); padding-left: 0; }
.here { margin-left: auto; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 400 19px/1 var(--f-display); text-transform: uppercase; }
.zempty { margin: 0 2px 2px; font-size: 12.5px; color: var(--muted); }
.eq-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 4px; }
.vg { position: relative; border: 0; background: none; padding: 4px 0 2px; border-radius: 8px; display: grid; justify-items: center; gap: 3px; min-width: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vg .ph { width: 50px; height: 50px; font-size: 21px; }
.vg.warn .ph { outline: 2px dashed var(--late); outline-offset: 3px; }
.vg.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); } .vg.sel .ph { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); }
.vg.drag { opacity: .3; }
.vg .pn { font-size: 12px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.vg.sel .pn { color: var(--accent); font-weight: 600; }
.vs { display: flex; gap: 5px; font-size: 10.5px; line-height: 1; color: var(--muted); } .vs span { display: inline-flex; align-items: center; gap: 1px; }
.vb { position: absolute; z-index: 1; top: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; border: 2px solid var(--bg); font: 600 10.5px/15px var(--f-body); color: #fff; text-align: center; }
.vb.multi { right: -6px; background: var(--navy); } .vb.q { left: -6px; background: var(--late); } .vb.x { left: -6px; background: var(--muted); }
.eq-leg .vb { position: static; display: inline-block; min-width: 15px; height: 15px; font-size: 9.5px; line-height: 13px; border-width: 1px; padding: 0 2px; }
.eq-ghost { position: fixed; z-index: 30; pointer-events: none; transform: translate(-50%, -60%) scale(1.15); box-shadow: 0 8px 20px rgba(15, 34, 64, .35); }
.eq-act { width: calc(100% - 32px); max-width: 608px; margin: 0 auto; }
.eq-act > button { width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 400 24px/1 var(--f-display); text-transform: uppercase; }
.eq-act > button:disabled { background: var(--surface-2); color: var(--muted); }
.eq-sum { font-size: 12px; color: var(--muted); text-align: center; margin: -2px 0 6px; }
.eq-who { display: flex; align-items: center; gap: 8px; } .eq-who > div { flex: 1; min-width: 0; display: grid; }
.eq-who b { font: 400 24px/1 var(--f-display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-who small { font-size: 12px; color: var(--muted); } .eq-who small.w { color: var(--late); font-weight: 600; }
.eq-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-size: 22px; }
.eq-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; margin-top: 8px; }
.eq-chips button { height: 46px; border-radius: 999px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font: 400 18px/1 var(--f-display); padding: 0 4px; display: grid; align-content: center; justify-items: center; gap: 1px; white-space: nowrap; }
.eq-chips small { font: 600 10px/1 var(--f-body); } .eq-chips button.ns { border-color: var(--muted); color: var(--ink); }
.eq-chips button:disabled { border: 2px dashed var(--line); background: none; color: var(--muted); }
.eq-recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.eq-recap li { display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; padding: 6px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.eq-recap li.alert span:last-child { color: var(--late); } .eq-recap li.muted span:last-child { color: var(--muted); font-weight: 400; }
.eq-note { font-size: 13px; color: var(--muted); margin: 0; }
/* ---------- Messages ---------- */
.msgs { display: grid; gap: 6px; }
.opt.msg { height: auto; min-height: 48px; padding: 5px 14px; }
.opt.msg span { display: flex; flex-direction: column; } .opt.msg small { font-weight: 400; font-size: 12px; color: var(--muted); }
.journal, .liens { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.journal li, .liens li { display: flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.journal li > span, .liens li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.journal small, .liens small { font-size: 12px; color: var(--muted); }
.ecran .journal b, .ecran .journal small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran .journal li { padding: 6px 10px; min-width: 0; }
.petit-bouton { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--brand-ink); background: var(--surface); color: var(--brand-ink); font-size: 12.5px; font-weight: 600; }
.petit-bouton:disabled { opacity: .35; }
.alerte-fond { background: var(--late-soft) !important; color: var(--late) !important; }
/* ---------- Pages des parents et d'inscription ---------- */
.parents .corps { gap: 10px; }
.p-nav { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.p-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; color: var(--brand-ink); }
.p-nav button:disabled { opacity: .3; }
.p-presence { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.p-presence span { flex: 1; font-weight: 600; font-size: 14px; }
.p-presence button { width: 72px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.p-presence button.oui { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 600; }
.p-presence button.non { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 600; }
.p-convoc summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.liste-convoc { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.liste-convoc b { color: var(--brand-ink); margin-right: 4px; }
.p-covoit { gap: 8px; }
.p-trajet { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.p-trajet .sous { width: 52px; } .p-trajet b { flex: 1; }
.p-onglets { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.p-onglets button { flex: 1; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; }
.p-onglets button[aria-selected="true"] { background: var(--surface); color: var(--brand-ink); font-weight: 600; }
.p-voiture { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.p-voiture.moi { border: 2px solid var(--navy); }
.p-voiture-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.p-voiture .noms { margin: 2px 0; } .noms .libre { border-style: dashed; color: var(--ok); border-color: var(--ok); }
.noms .x { border: 0; background: none; color: var(--bad); font-size: 15px; padding: 0 2px; }
.p-cherchent { background: var(--late-soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.p-cherchent span { flex: 1 1 100%; }
.p-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-haut .club { font-size: 22px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-haut button { flex: none; border: 0; background: none; color: var(--head-muted); text-decoration: underline; font-size: 12.5px; padding: 4px 0; }
.p-enfants { display: flex; gap: 6px; }
.p-enfants button { flex: 1; min-height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; background: none; color: #fff; font-size: 14px; font-weight: 600; }
.p-enfants button[aria-selected="true"] { background: #fff; color: var(--navy-deep); }
/* Bandeau d'installation et carte des alertes : une ligne, pour ne pas allonger la page */
.p-installer { background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 6px 8px 10px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.3; }
.p-installer .p-logo { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.p-installer .p-cloche { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-inst-t { flex: 1; min-width: 0; color: var(--head-muted); }
.p-inst-t b { display: block; color: #fff; font-size: 13.5px; }
.p-inst-b { flex: none; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; padding: 8px 12px; touch-action: manipulation; }
.p-installer .x { flex: none; border: 0; background: none; color: var(--head-muted); font-size: 20px; line-height: 1; padding: 4px 6px; }
.p-etapes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: etape; font-size: 14px; }
.p-etapes li { display: flex; gap: 10px; align-items: flex-start; counter-increment: etape; }
.p-etapes li::before { content: counter(etape); width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: grid; place-items: center; flex: none; }
.k { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--surface-2); white-space: nowrap; font-weight: 600; }
.k svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-note { margin: 0; background: var(--late-soft); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.p-tel { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; }
.p-tel > span:first-child { font-weight: 600; }
.p-tel .lien { padding: 4px 0; margin-left: 8px; }
/* Qui utilise l'espace des familles (Organisation > Messages) et alerte dans la feuille d'envoi */
.suivi-compte { display: flex; gap: 8px; }
.suivi-compte span { flex: 1; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.suivi-compte b { display: block; font-size: 20px; color: var(--ink); }
.suivi-f { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.suivi-f li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.suivi-f li:last-child { border-bottom: 0; }
.suivi-f small { color: var(--muted); text-align: right; }
.suivi-noms { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.suivi-noms small { color: var(--muted); }
/* Mon compte : ligne des alertes sur ce téléphone */
.liste li.alertes-l { align-items: center; }
.alertes-l > span:first-child { display: flex; flex-direction: column; }
.alertes-l small { color: var(--muted); font-size: 12px; text-align: right; }
.alertes-l > span:first-child small { text-align: left; }
.alertes-a { display: flex; align-items: center; gap: 10px; flex: none; }
.alertes-a .lien { padding: 4px 0; }
.hint.alerte-envoi { color: var(--ok); font-weight: 600; }
.hint.alerte-envoi:empty { display: none; }
/* Message du club (« Information générale ») : deux lignes, le texte entier au toucher */
.p-message { width: 100%; text-align: left; border: 2px solid var(--brand-ink); font: inherit; color: inherit; cursor: pointer; }
.p-extrait { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; }
.p-histo { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.p-histo span:first-child { display: flex; flex-direction: column; min-width: 0; }
.p-histo small { color: var(--muted); font-size: 12.5px; }
.p-histo .fl { font-size: 22px; color: var(--muted); }
.sheet.p-histo-f { display: flex; flex-direction: column; overflow: hidden; }
.sheet.p-histo-f > * { flex: none; }
.sheet.p-histo-f > .p-histo-l { flex: 1 1 auto; }
.p-histo-l { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.p-histo-l li + li { border-top: 1px solid var(--line); }
.p-histo-l button { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 0; background: none; font: inherit; color: inherit; padding: 10px 0; cursor: pointer; }
.p-histo-l button > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.p-histo-l small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-histo-d { flex: none; width: 52px; color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.p-texte { white-space: pre-line; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; max-height: 50vh; overflow-y: auto; }
.familles .hint.centre { text-align: center; }
.familles .deux .lien { justify-self: center; }
.champ input.code { font: 400 30px/1 var(--f-display); letter-spacing: .35em; text-align: center; color: var(--brand-ink); }
.inscription { padding-top: 12px; padding-bottom: 24px; gap: 12px; }
.groupe { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.groupe legend { font: 400 20px/1 var(--f-display); text-transform: uppercase; color: var(--brand-ink); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.covoit-lecture { margin-top: 12px; background: var(--surface); border-radius: 10px; padding: 8px 12px; }
.covoit-lecture summary { font-weight: 600; cursor: pointer; }
.ajout-note { width: 100%; height: 44px; margin-top: 14px; border-radius: 10px; border: 1.5px dashed var(--brand-ink); background: var(--surface); color: var(--brand-ink); font-weight: 600; font-size: 13.5px; }

/* Administration (lot 5) */
.adm-liste { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 5px; }
.adm-ligne { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 0; border-radius: 10px; padding: 6px 10px; text-align: left; min-height: 48px; }
.adm-ligne .ph { width: 36px; height: 36px; font-size: 16px; }
.adm-ligne .nom, .adm-ech .nom { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; }
.adm-ligne small, .adm-ech small { font-weight: 400; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pastilles { display: flex; gap: 4px; flex: none; }
.p { font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 6px; white-space: nowrap; flex: none; }
.p.ok { background: var(--ok-soft); color: var(--ok); } .p.wa { background: var(--late-soft); color: var(--late); }
.p.ko { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); } .p.nd { background: var(--surface-2); color: var(--muted); }
.adm-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 14px; }
.adm-tete .lien { padding: 6px 0; }
.adm-attente { background: var(--late-soft); border: 1px solid var(--late); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; margin-bottom: 8px; }
.adm-attente-h { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; color: var(--ink); }
.adm-attente-h small { color: var(--muted); font-size: 12px; }
.adm-attente .bouton { height: 40px; font-size: 14px; }
.bloc { background: var(--bg); border-radius: 12px; padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.bloc .lb { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.kv-t { min-width: 0; display: flex; flex-direction: column; } .kv-t small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.act { display: flex; gap: 4px; flex: none; }
a.petit-bouton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex: none; }
.seg button { border: 0; background: var(--surface); padding: 7px 10px; font-size: 12.5px; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button:disabled { cursor: default; } .seg button:disabled[aria-pressed="false"] { color: var(--muted); }
.petit-champ { width: 9.5em; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-size: 14px; color: var(--ink); }
.montant { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rouge { color: var(--bad); } .vert { color: var(--ok); font-weight: 600; }
.fiche-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.lien.photo { display: inline-block; padding: 4px 0; cursor: pointer; }
.lb-l { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .lb-l .lien, .kv .lien { padding: 2px 0; font-size: 12.5px; }
.petit-champ.large { flex: 1; width: auto; min-width: 0; }
/* Fiche d'un enfant : toute la hauteur de l'écran, éléments resserrés pour éviter de faire défiler */
.sheet.haute { max-height: calc(100% - 8px); grid-template-columns: minmax(0, 1fr); }
.sheet.fiche { gap: 8px; padding-top: 12px; }
/* Formulaires longs (paiement, encadrant) : champs moins hauts */
.serree .formulaire { gap: 8px; } .serree .champ input, .serree .champ select { height: 40px; } .serree .case { min-height: 36px; }
.serree .trois .champ select { font-size: 13px; padding: 0 4px; }
.serree .kv-t { flex: 1; } .serree .kv-t b, .serree .kv-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.plus { background: var(--bg); border-radius: 10px; padding: 4px 10px; } details.plus[open] { padding-bottom: 10px; display: grid; gap: 8px; }
details.plus summary { font-size: 13.5px; font-weight: 600; color: var(--brand-ink); padding: 6px 0; cursor: pointer; }
.fiche .sheet-h .ph { width: 56px; height: 56px; font-size: 22px; } .fiche .sheet-h b { font-size: 26px; }
.fiche .bloc { padding: 6px 10px; gap: 2px; }
.fiche .kv { min-height: 34px; } .fiche .kv-t { flex: 1; }
.fiche .kv-t b, .fiche .kv-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.fiche .petit-bouton { min-height: 32px; } .fiche .petit-champ { height: 32px; } .fiche .seg button { padding: 6px 9px; }
.fiche .fiche-pied .lien { padding: 4px 0; } .fiche .sheet-close { padding: 4px; }
.compteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cpt { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; text-align: left; color: var(--ink); }
.cpt b { font: 400 30px/1 var(--f-display); font-variant-numeric: tabular-nums; } .cpt span { font-size: 12px; color: var(--muted); }
.cpt.ko b { color: var(--bad); } .cpt.wa b { color: var(--late); } .cpt.zero b { color: var(--ok); }
.cpt[aria-pressed="true"] { border: 2px solid var(--accent); padding: 7px 11px; }
.adm-caisse { background: var(--surface); border-radius: 12px; padding: 6px 12px 10px; margin: 8px 0 4px; display: grid; gap: 4px; }
.jauge { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .jauge i { display: block; height: 100%; background: var(--ok); }
.adm-frais { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 12px; display: grid; gap: 3px; text-align: left; color: var(--ink); }
.adm-frais .kv { min-height: 0; } .adm-frais small { color: var(--muted); font-size: 12px; }
.coches { background: var(--bg); border-radius: 10px; padding: 6px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
.coches label { display: flex; align-items: center; gap: 5px; min-height: 30px; font-size: 13px; font-weight: 400; color: var(--ink); white-space: nowrap; overflow: hidden; }
.coches input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.p-regler { background: var(--late-soft) !important; border: 1px solid var(--late); }
.p-regler .etiquette { color: var(--late); }
.adm-tarif { border: 0; background: none; padding: 0; text-align: left; font-size: 14px; color: var(--ink); text-decoration: underline dotted; }
.adm-ech { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; padding: 6px 10px; }
.adm-ech.proche { box-shadow: inset 3px 0 0 var(--late); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 6px 12px; font-size: 13px; font-weight: 400; color: var(--ink); background: var(--surface); cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Préparer une séance */
.prep { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.prep-quand { display: flex; flex-wrap: wrap; gap: 6px; border: 0; background: none; padding: 0; text-align: left; }
.prep-quand span { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 5px 10px; font-size: 12.5px; color: var(--ink); }
.prep-quand .crayon { border-style: dashed; color: var(--brand-ink); font-weight: 600; }
.prep-total { background: var(--surface); border-radius: 12px; padding: 8px 12px; display: grid; gap: 5px; }
.prep-total b { font-variant-numeric: tabular-nums; }
.jauge.trop i { background: var(--late); }
.plan-prep { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.plan-prep li { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px; }
.plan-prep li.tire { position: relative; z-index: 2; border-color: var(--navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.poignee { width: 32px; height: 44px; display: grid; place-items: center; flex: none; color: var(--muted); font-size: 20px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.plan-prep .num { width: 18px; flex: none; text-align: center; font: 400 18px/1 var(--f-display); color: var(--muted); }
.plan-prep .nom { flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; text-align: left; font-weight: 600; font-size: 13.5px; color: var(--ink); display: flex; flex-direction: column; }
.plan-prep .nom, .plan-prep .nom small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-prep .nom small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.plan-prep .duree { display: flex; align-items: center; gap: 2px; flex: none; }
.plan-prep .duree button { width: 30px; height: 32px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--brand-ink); font-size: 16px; }
.plan-prep .duree b { min-width: 42px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.plan-prep .retirer { width: 28px; height: 32px; flex: none; border: 0; background: none; color: var(--muted); font-size: 18px; }
.prep-dock { padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.prep-dock .deux { margin: 0; } .prep-dock .bouton { font-size: 14px; white-space: nowrap; padding: 0 6px; }
.prep-dock .bouton.second { border-color: #fff; color: var(--brand-ink); }
.prep-dock .prep-prete[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.bouton.bleu { background: #fff; color: var(--navy-deep); }
/* Choix dans une liste (bibliothèque, séances passées) */
.choix-exos .filters { flex: none; }
.choix { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; overflow-y: auto; min-height: 0; }
.choix button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg); border: 1.5px solid transparent; border-radius: 10px; padding: 7px 10px; color: var(--ink); }
.choix button[aria-pressed="true"] { border-color: var(--navy); }
.choix .rond { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.choix [aria-pressed="true"] .rond { background: var(--navy); border-color: var(--navy); color: #fff; }
.choix .nom { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: 13.5px; }
.choix .nom small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
/* Trombinoscope : 5 enfants par ligne (30 tiennent sur un 375 × 667), fiche avec grande photo et parents à appeler */
.trombi { padding: 10px 10px 16px; display: grid; gap: 10px; align-content: start; }
.trombi .search { height: 40px; border-radius: 20px; }
.trombi-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 4px; }
.t-case { border: 0; background: none; padding: 0; min-width: 0; display: grid; justify-items: center; gap: 3px; touch-action: manipulation; }
.t-case .ph { width: 60px; height: 60px; font-size: 22px; }
.t-case > span:last-child { max-width: 100%; font-size: 12px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-fiche { display: grid; justify-items: center; gap: 8px; text-align: center; }
.t-fiche .ph { width: 168px; height: 168px; border-radius: 16px; font-size: 56px; }
.t-fiche .ph img { border-radius: 16px; }
.t-ident b { display: block; font: 400 30px/1 var(--f-display); text-transform: uppercase; color: var(--brand-ink); }
.t-ident small { color: var(--muted); font-size: 13px; }
.t-parents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-parents li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; min-height: 52px; }
.t-parents .t { flex: 1; min-width: 0; }
.t-parents small { display: block; font-size: 12px; color: var(--muted); }
.t-parents .urg { margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.appel { flex: none; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--ok); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* Présences d'un enfant (fiche et détail) */
.pres-chiffres { display: flex; gap: 6px; }
.pres-chiffres span { flex: 1; min-width: 0; background: var(--surface); border-radius: 10px; padding: 4px 6px; text-align: center; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.sheet > .pres-chiffres span { background: var(--bg); }
.pres-chiffres b { display: block; font: 400 24px/1 var(--f-display); color: var(--brand-ink); }
.pres-chiffres .r b { color: var(--late); }
.sheet > .lb { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pres-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.pres-liste li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pres-liste li span:first-child::first-letter { text-transform: uppercase; }
.pres-liste .abs { color: var(--bad); font-weight: 600; } .pres-liste .ret { color: var(--late); font-weight: 600; } .pres-liste .jo { color: var(--ok); font-weight: 600; flex: none; }
.pres-ligne { display: block; text-align: left; font-size: 12.5px; padding: 2px 0; }
small.pres-ligne { color: var(--muted); }
/* ---------- Mots des parents et covoiturage (covoit.js) ---------- */
.lien.discret { color: var(--muted); font-weight: 400; font-size: 12.5px; justify-self: start; }
.lignes-t { display: grid; gap: 6px; margin-top: 12px; }
.lignes-t:empty { display: none; }
.ligne-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ligne-t small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.ligne-t .fl { color: var(--muted); font-size: 20px; }
.ligne-t.neuf { background: var(--late-soft); border-color: var(--late); }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; text-align: center; }
.mots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mots button { width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 7px 10px; background: var(--surface-2); display: grid; gap: 2px; font-size: 13.5px; color: var(--ink); }
.mots button:disabled { opacity: 1; cursor: default; }
.mots .neuf button { background: var(--late-soft); }
.mots .h { display: flex; justify-content: space-between; gap: 8px; }
.mots q { font-style: normal; } .mots q::before { content: "« "; } .mots q::after { content: " »"; }
.mots small { color: var(--muted); font-size: 12px; } .mots small::first-letter { text-transform: uppercase; }
.mots .oui { color: var(--ok); font-weight: 600; } .mots .non { color: var(--bad); font-weight: 600; }
.voiture { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: grid; gap: 2px; }
.sheet.covoit { gap: 8px; padding-top: 12px; }
.voiture-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; }
.voiture-h small { color: var(--muted); font-size: 12px; }
.voiture .noms { margin: 2px 0 0; }
.voiture .lien { flex: none; padding: 0; font-size: 12.5px; }
.noms span.cond { background: var(--navy); color: #fff; border-color: var(--navy); }
.sans { background: var(--late-soft); border-radius: 10px; padding: 6px 10px; display: grid; gap: 4px; }
.sans .lb { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sans .l { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.sans .petit-bouton { min-height: 32px; }
.pied-feuille { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet .opt small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.sheet .opt { justify-content: space-between; }
.sheet .opt:disabled { opacity: .45; }
.voiture.enc, .p-voiture.enc { border: 2px solid var(--navy); }
.carte-tournoi { width: 100%; text-align: left; font: inherit; color: var(--ink); gap: 2px; }
.carte-tournoi .titre { font-size: 22px; }
.carte-tournoi .ct-l { display: flex; gap: 8px; font-size: 13px; line-height: 1.3; }
.carte-tournoi .ct-l b { width: 92px; flex: none; color: var(--brand-ink); font-weight: 600; }
.carte-tournoi .ct-l span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-voiture { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; }
.ma-voiture.neuf { background: var(--late-soft); }
.ma-voiture .lien { padding: 0; font-size: 12.5px; flex: none; }
/* ---------- Formulaire d'un trajet (voiture.js) ---------- */
.v-form { gap: 8px; }
.v-form .champ input { height: 40px; }
.v-segm { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.v-segm button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 12.5px; line-height: 1.15; padding: 2px 4px; }
.v-segm button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.v-ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-ligne .lien { padding: 2px 0; font-size: 12.5px; }
.v-voiture { display: grid; gap: 8px; }
.v-voiture[hidden] { display: none; }
.v-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); height: 40px; }
.v-stepper button { width: 40px; height: 100%; border: 0; background: var(--surface-2); color: var(--brand-ink); font-size: 20px; font-weight: 600; }
.v-form .v-stepper input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; text-align: center; font: 400 22px/1 var(--f-display); color: var(--brand-ink); padding: 0; }
.v-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; }
.v-chips button { border: 1px dashed var(--brand-ink); background: none; color: var(--brand-ink); border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.v-repris { margin: 0; background: var(--late-soft); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
.v-form .case { min-height: 32px; font-size: 13px; }
.v-tel { align-items: end; } .v-tel .case { min-height: 40px; line-height: 1.2; }
/* ---------- Suivi des matchs en tournoi (terrain.js) ---------- */
.equipes button small { font-size: 10px; font-weight: 400; opacity: .85; }
.equipes.tj-haut { margin-top: 10px; }
.equipes.tj-haut button { height: 34px; }
.tj-prog { display: grid; gap: 6px; margin-bottom: 10px; }
.tj-poule { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 12px; background: var(--surface); padding: 8px 12px; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 34, 64, .08); }
.tj-poule i, .tj-ph i, .tj-graph .leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; display: inline-block; }
.tj-poule > span:first-of-type { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.tj-poule small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-mod { font-size: 12.5px; font-weight: 600; color: var(--brand-ink); text-decoration: underline; flex: none; }
.tj-actions .bouton { flex-direction: column; gap: 0; height: 48px; line-height: 1.15; }
.tj-actions .bouton small { font-size: 12px; font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-match { margin-top: 8px; background: var(--navy-deep); color: #fff; border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.tj-match .lbl { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ff8a90; font-weight: 600; }
.tj-match .lbl span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-match .lbl span:last-child { color: var(--head-muted); letter-spacing: 0; text-transform: none; font-weight: 400; white-space: nowrap; }
.tj-match .temps { font: 400 64px/.9 var(--f-display); font-variant-numeric: tabular-nums; }
.tj-match .temps.fin { color: #ff5a63; }
.tj-match .periode { grid-column: 1; font-size: 11.5px; color: var(--head-muted); }
.tj-score { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: center; grid-row: span 2; }
.tj-score > span { min-width: 0; }
.tj-score b { display: block; font: 400 38px/1 var(--f-display); }
.tj-score small { display: block; font-size: 11px; color: var(--head-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-score button { height: 34px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 12.5px; }
.tj-score button.nous { background: var(--accent); border-color: var(--accent); }
.tj-match .cmd { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 4px; }
.tj-match .cmd button { flex: 1; height: 40px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 14px; }
.tj-match .cmd button.go { background: #fff; color: var(--navy-deep); border-color: #fff; font-weight: 600; }
.tj-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tj-titre span:last-child { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.tj-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.tj-grille .hint { grid-column: 1 / -1; font-size: 12.5px; }
.tj-j { min-width: 0; border-radius: 10px; border: 1.5px solid transparent; background: var(--surface); color: var(--ink); padding: 6px 2px 5px; display: grid; gap: 1px; text-align: center; box-shadow: 0 1px 2px rgba(15, 34, 64, .08); touch-action: manipulation; }
.tj-j .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-j .tm { font: 400 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tj-j .to { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tj-j.sur { background: var(--ok-soft); border-color: var(--ok); }
.tj-j.bas .to { color: var(--late); font-weight: 600; }
.tj-j.choisi { background: #ffd84d; color: #0f1d2e; border-color: #0f1d2e; }
.tj-j.choisi .to { color: #0f1d2e; }
.tj-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tj-aide { margin: 0; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.tj-aide b { color: var(--ink); }
.tj-bas .lien { flex: none; padding: 6px 0; }
.tj-match .cmd button.annuler { flex: none; width: 40px; font-size: 18px; }
.tj-match .cmd button:disabled { opacity: .35; }
.tj-format { display: flex; align-items: center; gap: 6px; }
.tj-per { display: inline-flex; flex: none; border: 1.5px solid var(--brand-ink); border-radius: 999px; overflow: hidden; }
.tj-per button { border: 0; background: var(--surface); color: var(--brand-ink); padding: 7px 10px; font-size: 12.5px; font-weight: 400; white-space: nowrap; }
.tj-per button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.tj-pas { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.tj-pas button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brand-ink); background: var(--surface); color: var(--brand-ink); font-size: 18px; line-height: 1; }
.tj-pas b { font: 400 24px/1 var(--f-display); min-width: 52px; text-align: center; color: var(--ink); }
.tj-puces { display: flex; flex-wrap: wrap; gap: 5px; }
.tj-puces small { font-weight: 400; color: var(--muted); }
.tj-puce { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 400; }
.tj-puce[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tj-puce[aria-pressed="true"] small { color: inherit; opacity: .8; }
.tj-puce.joue { color: var(--muted); text-decoration: line-through; }
.tj-puce.joue[aria-pressed="true"] { color: #fff; }
.tj-feuille > .champ > input, .tj-ajout input { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-size: 16px; font-weight: 400; color: var(--ink); }
.tj-ajout { display: flex; gap: 6px; }
.tj-ajout input { flex: 1; min-width: 0; }
.tj-ajout .bouton { width: auto; height: 40px; padding: 0 14px; }
.tj-coche { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.tj-coche input { width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.tj-feuille { display: grid; gap: 10px; }
.tj-feuille .champ small { font-weight: 400; }
.tj-final { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tj-final > span { background: var(--surface-2); border-radius: 10px; padding: 6px 10px; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.tj-final small { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-final .tj-pas { margin: 0; }
.tj-final .tj-pas b { font-size: 32px; min-width: 40px; }
.tj-carte { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: grid; gap: 5px; }
.tj-res { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 11.5px; }
.tj-res small { color: var(--muted); }
.tj-ph { display: inline-flex; align-items: center; gap: 5px; width: 76px; color: var(--muted); }
.tj-res .r { border-radius: 6px; padding: 1px 5px; background: var(--surface); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tj-res .r b { margin-right: 3px; }
.tj-res .r.gagne b { color: var(--ok); } .tj-res .r.perdu b { color: var(--bad); } .tj-res .r.nul b { color: var(--muted); }
.tj-res .r.gagne, .tj-res .r.perdu, .tj-res .r.nul { color: var(--ink); font-weight: 400; }
.tj-graph .leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.tj-graph .leg span { display: inline-flex; align-items: center; gap: 5px; }
.tj-graph .leg .egal-l::before { content: ""; height: 12px; border-left: 2px dashed var(--ink); opacity: .6; }
.tj-gl { display: grid; grid-template-columns: 56px minmax(0, 1fr) 38px; align-items: center; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.tj-gl .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-gl .v { text-align: right; }
.tj-gl .v.bas { color: var(--late); font-weight: 600; }
.tj-gl .piste { position: relative; height: 14px; display: flex; gap: 2px; }
.tj-gl .piste button { height: 100%; border: 0; padding: 0; min-width: 0; background: var(--c); }
.tj-gl .piste button:last-of-type { border-radius: 0 4px 4px 0; }
.tj-gl .piste button.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.tj-gl .egal { position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed var(--ink); opacity: .55; pointer-events: none; }
.tj-graph .axe { display: grid; grid-template-columns: 56px minmax(0, 1fr) 38px; gap: 6px; font-size: 10px; color: var(--muted); }
.tj-graph .axe div { position: relative; height: 12px; }
.tj-graph .axe div span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tj-graph .axe div span:first-child { transform: none; }
.tj-info { margin: 0; font-size: 11.5px; color: var(--muted); }
.tj-info b { color: var(--ink); }
.sheet .tj-titre { margin: 2px 0 -4px; }
.suivi .choix3 button { min-width: 40px; }
/* ---------- Calendrier par semaines, planification, thèmes (organisation.js) ---------- */
.cal-boutons { display: flex; gap: 6px; }
.ajouter.second { background: var(--surface); color: var(--brand-ink); border: 1.5px solid var(--brand-ink); }
.semaine { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 4px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.sem-t { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-bottom: 4px; min-width: 0; }
.sem-t b { color: var(--ink); font-weight: 600; flex: none; }
.sem-theme { margin-left: auto; min-width: 0; border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sem-theme.vide { border-style: dashed; color: var(--muted); }
.ev-s { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; padding: 5px 0; color: var(--ink); line-height: 1.25; }
.ev-s .jour { width: 38px; height: 38px; font-size: 10px; }
.ev-s .jour b { font-size: 15px; }
.ev-s .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.ev-s small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-etat { flex: none; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 7px; }
.ev-etat.pret { background: var(--ok-soft); color: var(--ok); }
.ev-etat.afaire { background: var(--late-soft); color: var(--late); }
.ev-etat.off { background: var(--surface-2); color: var(--muted); }
.semaine .ev.tournoi { margin: 4px -4px 6px; }
.theme-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-puce { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 400; }
.theme-puce[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.theme-puce.vide, .theme-puce.plus { border-style: dashed; color: var(--brand-ink); }
.theme-puce small { font-size: 11px; color: var(--muted); }
.theme-puce[aria-pressed="true"] small { color: inherit; opacity: .8; }
.theme-puce.suppr { padding-right: 9px; }
.prep-sugg, .prep-copie { margin-top: 10px; display: grid; gap: 6px; font-size: 13px; }
.prep-sugg { background: var(--late-soft); border-radius: 12px; padding: 8px 10px; }
.planifier { gap: 8px; }
.pl-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pl-jours button { height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; padding: 0; }
.pl-jours button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pl-heures { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; font-weight: 400; color: var(--ink); }
.pl-heures label { display: inline-flex; align-items: center; gap: 6px; }
.pl-heures input { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 6px; font-size: 14px; }
.pl-nb { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink); font-weight: 400; }
.pl-nb .tj-pas b { min-width: 92px; font-size: 20px; }
.pl-semaines { display: grid; gap: 4px; }
.pl-sem { display: grid; grid-template-columns: 22px 104px minmax(0, 1fr); align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; color: var(--ink); }
.pl-sem input { width: 20px; height: 20px; accent-color: var(--navy); }
.pl-sem .q { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pl-sem .q small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sem select { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 6px; font-size: 12.5px; color: var(--ink); }
.pl-sem.off .q, .pl-sem.off select { opacity: .45; }
.eq-graph { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: grid; gap: 5px; }
.eq-graph .leg { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.eq-graph .leg span { display: inline-flex; align-items: center; gap: 5px; }
.eq-graph .leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.eq-graph .gl { display: grid; grid-template-columns: 118px minmax(0, 1fr) 32px; align-items: center; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.eq-graph .gl .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-graph .gl .v { text-align: right; color: var(--muted); }
.eq-graph .piste { display: flex; gap: 2px; height: 12px; }
.eq-graph .piste i { display: block; height: 100%; background: var(--c); min-width: 2px; }
.eq-graph .piste i:last-child { border-radius: 0 4px 4px 0; }

/* Administration : tri des enfants, filtre des paiements, « Pour qui ? » */
.adm-tri { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 6px; margin: 2px 0 6px; }
.adm-tri > span { font-size: 12.5px; color: var(--muted); }
.adm-tri.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-tri button { height: 34px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--ink); font: 600 12.5px var(--f-body); padding: 0 4px; }
.adm-tri button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg.large { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.seg.large button { padding: 9px 6px; font-weight: 600; font-size: 13px; }
.bouton.rouge { background: var(--bad); border-color: var(--bad); }
.adm-ligne .nom .p { font-size: 10.5px; margin-left: 4px; vertical-align: 1px; }

/* Anniversaires : une ligne discrète sous la séance ou le tournoi */
.anniv { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--brand-ink); }
.anniv svg { flex: none; }
.hero .anniv { position: relative; z-index: 1; justify-content: center; margin: 6px 0 0; font-size: 12.5px; color: #fff; text-align: center; }.enc-ident { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; }
.enc-photo { display: grid; justify-items: center; gap: 2px; cursor: pointer; font-size: 11px; color: var(--brand-ink); font-weight: 600; }
.enc-photo .ph { width: 44px; height: 44px; font-size: 16px; }

/* Espace des familles : calendrier, absences, infos pratiques */
.parents main.corps { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.p-periode { align-self: flex-start; height: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); font: 600 13px var(--f-body); padding: 0 14px; }
.p-semaine { display: flex; flex-direction: column; gap: 6px; }
.p-sem-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; margin-top: 4px; }
.p-sem-t span { font-size: 12.5px; color: var(--brand-ink); font-weight: 600; text-align: right; }
.p-ev, .p-ev-h { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 0; border-radius: 12px; padding: 8px 10px; text-align: left; font: inherit; color: var(--ink); }
.p-ev-h { padding: 0; background: none; }
.p-ev .txt, .p-ev-h .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.p-ev small, .p-ev-h small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-ev small.rouge { color: var(--bad); font-weight: 600; }
.p-ev.annulee .txt b { text-decoration: line-through; color: var(--muted); } .p-ev.annulee .p-jour b { color: var(--muted); }
.p-ev.a-repondre { flex-direction: column; align-items: stretch; border: 2px solid var(--late); }
.p-jour { width: 36px; flex: none; display: flex; flex-direction: column; align-items: center; font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.p-jour b { font-size: 18px; color: var(--ink); line-height: 1.1; }
.p-etat { flex: none; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.p-etat.oui { background: var(--ok-soft); color: var(--ok); }
.p-etat.non { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); }
.p-etat.attente { background: var(--late-soft); color: var(--late); }
.p-rep { height: 42px; border-radius: 10px; border: 1px solid currentColor; background: var(--surface); font: 600 14px var(--f-body); }
.p-rep.oui { color: var(--ok); } .p-rep.non { color: var(--bad); }
.p-rep.oui[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.p-rep.non[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.p-theme { color: var(--brand-ink); }
.p-resume { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.p-resume:empty { display: none; }
.p-resume small { color: var(--muted); font-size: 12px; }
.p-agenda { display: flex; align-items: center; justify-content: center; gap: 8px; }
.p-retour { align-self: flex-start; padding: 4px 0; }
.p-info .desc { margin: 0; white-space: pre-line; font-size: 14px; }
.p-educ { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }/* Appel : absences annoncées par les familles */
.annonces { background: var(--surface); border: 2px solid var(--bad); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.annonces > b { font-size: 13.5px; }
.kid.prevu .ph { opacity: .45; }
.kid .prevu-l { display: block; font-size: 10px; font-weight: 600; color: var(--bad); line-height: 1.1; }/* Plateau et entraînement le même jour */
.ev-alerte { display: flex; align-items: center; gap: 8px; background: var(--late-soft); color: var(--late); border-radius: 10px; padding: 6px 8px; margin: 2px 0 6px; font-size: 12.5px; }
.ev-alerte span { flex: 1; min-width: 0; }
.ev-alerte .petit-bouton { flex: none; color: var(--late); border-color: var(--late); }
.bouton.second.rouge-l { color: var(--bad); border-color: var(--bad); }
.plateau-jour { background: var(--late-soft); color: var(--late); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.p-plateau { color: var(--late); font-weight: 600; }/* Chrono : pas de délai ni de zoom au double toucher sur téléphone */
.chrono button, .start-big { touch-action: manipulation; }
/* Sondages des familles */
.so-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.so-t b { text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink); }
.so-t span { color: var(--muted); }
.so-q { font-size: 15px; line-height: 1.3; }
.so-carte { border: 2px solid var(--navy); margin-bottom: 10px; }
.so-l { display: grid; grid-template-columns: 92px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 13px; }
.so-l b { text-align: right; }
.so-b { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.so-b i { display: block; height: 100%; border-radius: 5px; background: var(--navy); }
.so-l.c0 i { background: var(--ok); } .so-l.c1 i { background: var(--bad); } .so-l.sans { color: var(--late); } .so-l.sans i { background: var(--late); }
.so-ajout { display: flex; gap: 6px; margin-top: 6px; } .so-ajout input { flex: 1; min-width: 0; }
.chip.so-choix { gap: 4px; padding-right: 4px; } .chip.so-choix button { border: 0; background: none; color: var(--muted); font-size: 16px; padding: 0 4px; }
.so-noms { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; }   /* prénoms à la suite : le détail tient sur l'écran */
.so-noms small { color: var(--muted); }
.p-sondage.urgent { border: 2px solid var(--accent); }
.p-sondage.urgent .so-t b { color: var(--accent); }
.p-so-choix { display: grid; gap: 6px; }
.p-rep.neutre { color: var(--brand-ink); }
.p-rep.neutre[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.p-so-rep { display: flex; align-items: center; gap: 8px; }
.p-so-rep small { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.p-etat.neutre { background: var(--surface-2); color: var(--brand-ink); }.p-pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }   /* question du club sans réponse pour cet enfant */

/* ---------- Observations de séance (observations.js) ---------- */
/* Ligne discrète en haut de la séance (et de l'appel pour les encadrants) : même hauteur quel que soit le nombre de mots */
.obs-l { display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0 4px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 34, 64, .08); }
.obs-l svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obs-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-l .fl { flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.obs-manque { color: var(--accent); font-weight: 600; }
.obs-ok { color: var(--ok); font-weight: 600; }
.enc-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.enc-p { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.enc-p[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-weight: 600; }
.sheet.obs-f { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.sheet.obs-f > * { flex: none; }
.sheet.obs-f > .obs-mots { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.obs-mots { display: flex; flex-direction: column; gap: 8px; }
.obs-mot { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.obs-mot b { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 2px; white-space: normal; }
.obs-mot b span { color: var(--muted); font-weight: 400; }
.obs-saisie { display: flex; flex-direction: column; gap: 8px; }
.obs-saisie .lien { padding: 4px 0; align-self: center; }
.obs-case { position: relative; }
.obs-case textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 40px; font: 15px/1.4 var(--f-body); background: var(--surface); color: var(--ink); resize: vertical; }
.dicter { position: absolute; right: 8px; bottom: 10px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; background: var(--navy); color: #fff; font: 600 13px var(--f-body); padding: 6px 12px; touch-action: manipulation; }
.dicter svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dicter.ecoute { background: var(--accent); }
.dicter.ecoute::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: obs-pulse 1s infinite; }
@keyframes obs-pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .dicter.ecoute::before { animation: none; } }
/* Accueil : le mot attendu remplace « Bonjour … » dans l'en-tête, même hauteur */
.obs-haut { display: block; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; line-height: inherit; color: #fff; text-align: left; cursor: pointer; }
.obs-haut b { color: #fff; background: var(--accent); border-radius: 99px; padding: 0 8px; margin-left: 2px; }
/* Administration > Séances : observations de la saison */
.obs-liste { display: flex; flex-direction: column; gap: 8px; }
.obs-sea { background: var(--surface); border-radius: 12px; padding: 0 12px; box-shadow: 0 1px 2px rgba(15, 34, 64, .08); }
.obs-sea summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; font-size: 14px; }
.obs-sea summary::-webkit-details-marker { display: none; }
.obs-sea summary > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-sea[open] { padding-bottom: 10px; }
.obs-sea[open] > .obs-mot + .obs-mot { margin-top: 6px; }
.obs-comp { flex: none; font-size: 12px; border-radius: 99px; padding: 2px 9px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.obs-comp.ok { background: var(--ok-soft); color: var(--ok); }
.obs-comp.manque { background: var(--late-soft); color: var(--late); }
/* Réponses des familles à un tournoi (covoit.js) : la liste défile, « Fermer » reste visible */
.sheet.rep-f { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.sheet.rep-f > * { flex: none; }
.sheet.rep-f > .rep-l { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.rep-l { margin: 0; padding: 0; list-style: none; }
.rep-l li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rep-l li:last-child { border-bottom: 0; }
.rep-n { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.rep-n small { color: var(--muted); font-size: 12px; }
.rep-choix { display: flex; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rep-choix button { min-height: 36px; min-width: 40px; padding: 0 10px; border: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; touch-action: manipulation; }
.rep-choix button + button { border-left: 1px solid var(--line); }
.rep-choix button.oui[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.rep-choix button.non[aria-pressed="true"] { background: var(--late-soft); color: var(--bad); font-weight: 600; }
.rep-choix button.rien[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.rep-etat { flex: none; font-size: 12.5px; color: var(--muted); }
.rep-etat.oui { color: var(--ok); font-weight: 600; }
.rep-etat.non { color: var(--bad); font-weight: 600; }
