/* KAYAK — v0.2 « iOS 26 » : Liquid Glass, capsules flottantes, grands titres, ressorts.
   Identité club SCCK : rouge #e2001a, noir, blanc (logo pagaie / carrés inclinés). */

:root {
  --fond: #f2f2f7;
  --verre: rgba(255, 255, 255, .72);
  --verre-fort: rgba(255, 255, 255, .86);
  --encre: #141414;
  --encre-2: #6e6e73;
  --primaire: #e2001a;          /* rouge SCCK — réservé à la marque et aux vraies alertes */
  --primaire-presse: #b80015;
  --action: #1c1c1e;            /* contrôles & CTA : noir doux */
  --action-presse: #000;
  --noir: #141414;
  --ok: #34c759;                /* positif : fait / meilleur temps */
  --or: #e09c3f;                /* chaleureux : prochaine séance */
  --bord: rgba(20, 20, 20, .10);
  --hairline: rgba(20, 20, 20, .12);
  --rayon: 22px;
  --rayon-rangee: 18px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .08);
  --ressort: cubic-bezier(.32, 1.6, .38, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1000px 500px at 110% -10%, rgba(226, 0, 26, .10), transparent 60%),
    radial-gradient(800px 420px at -20% 0%, rgba(20, 20, 20, .07), transparent 55%),
    var(--fond);
  background-attachment: fixed;
  color: var(--encre);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.chargement { padding: 40vh 0; text-align: center; color: var(--encre-2); }

/* ---------- En-tête (grand titre, verre) ---------- */
header.barre {
  position: sticky; top: 0; z-index: 20;
  background: var(--verre);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: .5px solid var(--hairline);
  color: var(--encre);
  padding: calc(env(safe-area-inset-top) + 14px) 18px 12px;
  display: flex; align-items: center; gap: 12px;
}
header.barre .logo { display: flex; }
header.barre .logo svg { width: 34px; height: 34px; }
header.barre .titre {
  font-weight: 800; font-size: 21px; letter-spacing: -.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}
header.barre .sous { font-size: 12px; color: var(--encre-2); display: block; margin-top: -1px; }
header.barre .droite { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-sortir {
  background: rgba(20, 20, 20, .06); color: var(--encre); border: none;
  border-radius: 20px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .35s var(--ressort), background .15s;
}
.btn-sortir:active { transform: scale(.94); background: rgba(20, 20, 20, .12); }
/* Icône messagerie du header (athlète) — cible tactile ≥ 44px, pastille de non-lus neutre */
.btn-action {
  position: relative; background: rgba(20, 20, 20, .06); border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 19px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ressort), background .15s;
}
.btn-action:active { transform: scale(.9); background: rgba(20, 20, 20, .12); }
.action-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: var(--action); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px;
}

/* ---------- Tab bar flottante (capsule verre) ---------- */
nav.onglets {
  position: sticky; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 20; margin-top: auto;
  display: flex; gap: 2px;
  margin-left: 14px; margin-right: 14px;
  background: var(--verre);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: .5px solid rgba(255, 255, 255, .6);
  box-shadow: var(--ombre);
  border-radius: 32px;
  padding: 6px;
}
nav.onglets button {
  flex: 1; background: none; border: none; padding: 7px 2px 6px;
  font-size: 10.5px; font-weight: 600; color: var(--encre-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-radius: 26px;
  transition: transform .35s var(--ressort), background .2s, color .2s;
}
nav.onglets button .ico { position: relative; font-size: 21px; line-height: 1.15; filter: grayscale(1) opacity(.62); transition: filter .2s; }
.tab-badge {
  position: absolute; top: -3px; left: 60%; min-width: 15px; height: 15px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  /* Neutre (--action), pas le rouge marque : cohérent avec le non-lu de la boîte coach et l'icône athlète */
  background: var(--action); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; filter: none;
}
nav.onglets button:active { transform: scale(.9); }
nav.onglets button.actif { color: var(--encre); background: rgba(20, 20, 20, .08); }
nav.onglets button.actif .ico { filter: none; }

main { flex: 1; padding: 16px 14px 28px; }
/* App installée (écran d'accueil) : la tab bar se dock complètement en bas — plus de marge « navigateur »,
   et le contenu reçoit assez de marge basse pour ne plus passer dessous. */
body.standalone nav.onglets {
  bottom: 0; margin-left: 0; margin-right: 0;
  border-radius: 24px 24px 0 0;
  padding: 6px 10px calc(env(safe-area-inset-bottom) + 6px);
}
body.standalone main { padding-bottom: calc(env(safe-area-inset-bottom) + 88px); }

/* ---------- Cartes & sections ---------- */
.carte {
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: .5px solid rgba(255, 255, 255, .65);
  border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 14px 16px; margin-bottom: 12px;
}
h2.section {
  font-size: 13px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--encre-2); margin: 20px 6px 8px; font-weight: 700;
}
h2.section:first-child { margin-top: 2px; }

/* ---------- Accordéon des périodes (home séances) ---------- */
.bloc-tete {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; font: inherit; color: inherit;
  padding: 14px 8px 6px; text-align: left;
}
.bloc-tete .nom {
  font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}
.bloc-tete .compte {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--encre-2);
  background: rgba(20, 20, 20, .06); border-radius: 20px; padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}
.bloc-tete .compte.fini { color: #1d8f45; background: rgba(52, 199, 89, .14); }
.bloc-tete .chevron {
  font-size: 13px; color: var(--encre-2);
  transition: transform .35s var(--ressort);
}
.bloc-tete.ouvert .chevron { transform: rotate(90deg); }
.bloc-corps { overflow: hidden; }

.bandeau-alerte {
  background: rgba(226, 0, 26, .09);
  border: .5px solid rgba(226, 0, 26, .25);
  color: #a40013;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--rayon-rangee); padding: 11px 14px; margin-bottom: 12px; font-size: 14px;
}

/* ---------- Rangées (séances / compétitions / athlètes) ---------- */
.ligne {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: .5px solid rgba(255, 255, 255, .65);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  border-radius: var(--rayon-rangee);
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: transform .35s var(--ressort), box-shadow .2s;
}
.ligne:active { transform: scale(.97); box-shadow: none; }
.ligne .lib { font-weight: 600; letter-spacing: -.01em; }
.ligne .meta { font-size: 12.5px; color: var(--encre-2); }
.ligne .etat { margin-left: auto; font-size: 17px; color: var(--encre-2); }
.ligne.rempli { border-color: rgba(52, 199, 89, .35); }
.ligne.prochaine { border: 1.5px solid var(--or); box-shadow: 0 0 0 4px rgba(224, 156, 63, .14), var(--ombre); }
.badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: rgba(20, 20, 20, .07); color: var(--encre);
}
.badge.decalee { background: rgba(226, 0, 26, .12); color: var(--primaire); }
.badge.annulee { background: rgba(20, 20, 20, .06); color: #8e8e93; text-decoration: line-through; }
.badge.horsliste { background: rgba(255, 149, 0, .15); color: #c93d00; }
.badge.inscrit { background: rgba(52, 199, 89, .14); color: #1d8f45; }
.ligne .badge { margin-left: auto; flex-shrink: 0; }

/* Licenciés sans compte : estompés par les couleurs (pas d'opacity globale — le texte reste lisible, WCAG AA) */
.ligne.pas-inscrit { background: rgba(255, 255, 255, .45); box-shadow: none; }
.ligne.pas-inscrit .lib { color: var(--encre-2); font-weight: 600; }
.ligne.pas-inscrit .etat {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(20, 20, 20, .07); color: var(--action);
  font-size: 17px; font-weight: 700;
}

/* Fil des messages du coach (athlète) */
.message-coach { padding: 8px 0 6px; border-top: 1px solid rgba(20, 20, 20, .06); font-size: 14.5px; }
.message-coach:first-of-type { border-top: none; }
/* Glisser-pour-révéler-une-action (générique : fil athlète + cartes coach) */
.swipe-item { position: relative; overflow: hidden; transition: height .24s ease, opacity .24s ease; }
.swipe-item.suppression { height: 0 !important; opacity: 0; }
.swipe-corps { position: relative; z-index: 1; transition: transform .28s var(--ressort); touch-action: pan-y; }
.swipe-item.ouvert .swipe-corps { transform: translateX(-96px); }
.swipe-action {
  position: absolute; top: 0; right: 0; bottom: 0; width: 96px; z-index: 0;
  border: none; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.swipe-action.rouge { background: var(--primaire); }
.swipe-action.rouge:active { background: var(--primaire-presse); }
.swipe-action.neutre { background: var(--action); }
.swipe-action.neutre:active { background: var(--action-presse); }
/* Fil athlète : séparateurs + fond opaque du contenu qui coulisse */
.fil-coach .swipe-item { border-top: 1px solid rgba(20, 20, 20, .06); }
.fil-coach .swipe-item:first-child { border-top: none; }
.msg-swipe .message-coach { background: #f4f4f7; border-top: none; }
/* Cartes coach swipeables : espacement + coins arrondis (clip l'action) + fond opaque */
.swipe-item.swipe-carte { margin-bottom: 10px; border-radius: var(--rayon); }
.swipe-item.swipe-carte .swipe-corps.carte { margin-bottom: 0; background: #fdfdfe; }
.message-coach.nonlu { font-weight: 650; }
.message-coach .meta { color: var(--encre-2); font-size: 12px; font-weight: 400; white-space: nowrap; }
.message-coach.envoye { color: var(--encre-2); }
.message-coach .msg-moi { font-weight: 700; color: var(--encre); }
/* Boîte de réception coach */
.carte.msg-recu { margin-bottom: 10px; }
/* Non lu = repère neutre (encre/CTA), pas le rouge marque — réservé aux vraies alertes (compèt décalée) */
.carte.msg-recu.nonlu { border-left: 3px solid var(--action); }
.msg-recu-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.msg-recu-tete .meta { color: var(--encre-2); font-size: 12px; white-space: nowrap; }
.msg-recu-texte { margin: 6px 0 10px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }

/* Navigation clavier visible */
.ligne:focus-visible, .btn:focus-visible, .bloc-tete:focus-visible, nav.onglets button:focus-visible, .btn-sortir:focus-visible, .home-compteur:focus-visible {
  outline: 2px solid var(--action); outline-offset: 2px;
}

/* ---------- Formulaires ---------- */
label.champ { display: block; margin: 14px 2px 5px; font-size: 13px; font-weight: 600; color: var(--encre-2); }
input[type=text], input[type=number], input[type=password], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px;
  border: .5px solid var(--bord); border-radius: 13px;
  font: inherit; background: rgba(255, 255, 255, .9); color: var(--encre);
  transition: box-shadow .2s;
}
textarea { min-height: 64px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: transparent;
  box-shadow: 0 0 0 3px rgba(20, 20, 20, .28);
}

.curseur { display: flex; align-items: center; gap: 12px; }
.curseur input[type=range] { flex: 1; accent-color: var(--action); height: 28px; }
.curseur .val {
  min-width: 46px; text-align: center; font-weight: 800; font-size: 18px; color: var(--encre);
  background: rgba(20, 20, 20, .06); border-radius: 12px; padding: 5px 0;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: block; width: 100%; margin-top: 16px; padding: 14px;
  background: var(--action); color: #fff; font-weight: 700; font-size: 16px;
  border: none; border-radius: 16px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .35s var(--ressort), background .15s, box-shadow .2s;
}
.btn:active { transform: scale(.965); background: var(--action-presse); box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.btn.secondaire { background: rgba(20, 20, 20, .07); color: var(--encre); box-shadow: none; }
.btn.secondaire:active { background: rgba(20, 20, 20, .13); }
.btn.danger { background: rgba(226, 0, 26, .10); color: var(--primaire); box-shadow: none; }
.btn.petit { width: auto; display: inline-block; padding: 9px 15px; font-size: 14px; margin-top: 8px; }

/* ---------- Connexion ---------- */
.ecran-connexion {
  padding: 7vh 24px calc(env(safe-area-inset-bottom) + 16px);
  text-align: center;
  display: flex; flex-direction: column;
  min-height: 100dvh;
}
.ecran-connexion .logo-grand svg { width: 108px; height: 108px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .14)); }
.ecran-connexion .logo-grand img {
  width: min(160px, 41vw); height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .14));
}
/* Wordmark club : « SilleryChampagne / canoëkayak » comme sur le logo */
.ecran-connexion h1.wordmark {
  margin: 12px 0 0; font-weight: 800; font-size: 27px; letter-spacing: -.03em; line-height: 1.08;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}
.wordmark .rouge { color: var(--primaire); }
.wordmark .ck { font-size: .62em; font-weight: 600; letter-spacing: .34em; text-transform: lowercase; }
.ecran-connexion .club { color: var(--encre-2); font-size: 14px; margin: 8px 0 26px; }
.formulaire-connexion {
  max-width: 320px; margin: 0 auto; text-align: left;
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: .5px solid rgba(255, 255, 255, .65);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 18px 20px 20px;
}
.formulaire-connexion label.champ:first-child { margin-top: 0; }
.bonjour { font-size: 19px; text-align: center; margin: 2px 0 4px; letter-spacing: -.01em; }
.lien-discret {
  display: block; width: 100%; background: none; border: none; color: var(--encre-2);
  font-size: 13px; margin-top: 14px; cursor: pointer; text-decoration: underline; text-align: center;
}
.btn-inscription { max-width: 320px; margin: 14px auto 0; }
label.champ small { font-weight: 400; }
.pied-entree { margin-top: auto; padding-top: 24px; } /* collé en bas de l'écran d'entrée */
/* Footer global « Installer l'appli » : fixé en bas, présent sur toutes les pages (si éligible) */
#footer-install {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; justify-content: center;
  padding: 8px 14px calc(env(safe-area-inset-bottom) + 8px);
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border-top: .5px solid var(--hairline);
}
#footer-install[hidden] { display: none; }
#footer-install .lien-install { margin: 0; width: 100%; max-width: 420px; }
/* Quand le footer est présent : on remonte la tab bar au-dessus et on aère le bas des écrans */
body.avec-footer-install nav.onglets { bottom: calc(env(safe-area-inset-bottom) + 12px + 62px); }
body.avec-footer-install main { padding-bottom: 100px; }
body.avec-footer-install .ecran-connexion { padding-bottom: calc(env(safe-area-inset-bottom) + 82px); }

/* Bouton « Installer sur l'écran d'accueil » (masqué si déjà installée / non éligible) */
.lien-install {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; max-width: 320px; min-height: 44px; margin: 0 auto 14px;
  background: rgba(20, 20, 20, .06); border: 1px solid var(--hairline); color: var(--encre);
  font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.lien-install:active { background: rgba(20, 20, 20, .12); transform: scale(.97); }
.lien-install[hidden] { display: none; }
/* Étapes d'installation iOS (dans la feuille) */
.install-etapes { list-style: none; margin: 12px 0 2px; padding: 0; }
.install-etapes li { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0;
  border-top: 1px solid var(--hairline); font-size: 15px; line-height: 1.45; }
.install-etapes li:first-child { border-top: none; }
.ie-num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--action);
  color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.lien-coach {
  background: none; border: none; color: var(--encre-2); font-size: 14px;
  cursor: pointer; text-decoration: underline; padding: 4px 0;
}
.credit { font-size: 11.5px; color: var(--encre-2); margin-top: 8px; }
.credit a { color: inherit; font-weight: 600; text-decoration: none; }
.version-app { font-size: 11.5px; color: var(--encre-2); margin-top: 6px; }
.lien-maj { background: none; border: none; color: var(--action); font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: underline; padding: 6px 6px; display: inline-block; }
.lien-maj:disabled { opacity: .5; cursor: default; }
.attente-texte { font-size: 14px; color: var(--encre-2); margin: 10px 0; }
.erreur { color: var(--primaire); font-size: 14px; margin-top: 10px; min-height: 1.2em; font-weight: 600; }

/* ---------- Feuille (sheet iOS) ---------- */
.voile {
  position: fixed; inset: 0; background: rgba(20, 20, 20, .35); z-index: 30;
  animation: fondu .25s ease;
}
.panneau {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  max-width: 560px; margin: 0 auto; max-height: 88dvh; overflow-y: auto;
  background: rgba(246, 246, 249, .92);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  border-radius: 26px 26px 0 0;
  border-top: .5px solid rgba(255, 255, 255, .7);
  box-shadow: 0 -14px 50px rgba(0, 0, 0, .22);
  padding: 10px 20px calc(env(safe-area-inset-bottom) + 20px);
  animation: glisse .45s var(--ressort);
}
@keyframes glisse { from { transform: translateY(60%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.panneau .poignee { width: 38px; height: 5px; border-radius: 3px; background: rgba(20, 20, 20, .18); margin: 5px auto 12px; }
.panneau h3 { margin: 4px 0 2px; font-size: 20px; letter-spacing: -.02em; }
.panneau h3:focus-visible { outline: none; }
/* Feuille « Le coach » : ligne réglage notifs + interrupteur iOS + fil scrollable */
.ligne-reglage { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.ligne-reglage-lib { font-size: 15px; font-weight: 600; }
.switch {
  flex: none; width: 46px; height: 28px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(20, 20, 20, .18); position: relative; transition: background .2s;
}
.switch.on { background: var(--ok); } /* vert = idiome iOS de l'interrupteur ON (extension assumée du token --ok) */
.switch:disabled { opacity: .6; }
.switch-pouce {
  position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.switch.on .switch-pouce { transform: translateX(18px); }
.lien-inline { background: none; border: none; color: var(--action); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer; padding: 0; }
.fil-coach { max-height: 44vh; overflow-y: auto; margin: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.nudge-notifs { margin-bottom: 10px; }
.panneau .sous-titre { color: var(--encre-2); font-size: 13px; margin-bottom: 6px; }

/* ---------- Puces (segments) & temps ---------- */
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puces button {
  flex-shrink: 0; padding: 9px 15px; border-radius: 22px;
  border: .5px solid rgba(255, 255, 255, .65);
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--encre);
  transition: transform .35s var(--ressort), background .2s, color .2s;
}
.puces button:active { transform: scale(.93); }
.puces button.actif { background: var(--noir); color: #fff; border-color: var(--noir); }

.ligne-temps { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: .5px solid var(--hairline); }
.ligne-temps:last-of-type { border-bottom: none; }
.ligne-temps .ech { flex: 1; font-size: 14px; }
.ligne-temps input { width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
/* Home coach : rangée de compteurs d'action */
.home-compteurs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.home-compteur {
  background: var(--verre-fort); border: .5px solid rgba(255, 255, 255, .65); border-radius: var(--rayon-rangee);
  box-shadow: var(--ombre); padding: 12px 6px 10px; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .35s var(--ressort);
}
.home-compteur:active { transform: scale(.96); }
.home-compteur .n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-compteur .l { font-size: 11px; color: var(--encre-2); text-align: center; line-height: 1.2; }
/* Compteur qui attend une action : fond + bordure encre bien visibles (le rouge reste réservé marque/alertes) */
.home-compteur.attention { background: rgba(20, 20, 20, .07); border: 1.5px solid rgba(20, 20, 20, .30); }

/* Cases « distances pratiquées » (formulaire athlète, côté coach) */
.cases-distances { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 4px; }
.case-distance { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 30px; }
.case-distance input { width: 18px; height: 18px; accent-color: var(--action); }

/* Échéance à venir (pas encore saisissable) ou figée (verrouillée après J+7) */
.ligne-temps.avenir .ech, .ligne-temps.fige .ech { color: var(--encre-2); }
.ligne-temps.avenir input:disabled, .ligne-temps.fige input:disabled { opacity: .55; background: rgba(20, 20, 20, .04); }

.graphe { width: 100%; height: auto; margin-top: 6px; }

table.recap { width: 100%; border-collapse: collapse; font-size: 13px; }
table.recap th, table.recap td { padding: 7px 6px; border-bottom: .5px solid var(--hairline); text-align: center; font-variant-numeric: tabular-nums; }
table.recap tr:last-child td { border-bottom: none; }
table.recap th { color: var(--encre-2); font-weight: 600; font-size: 11.5px; }
table.recap td:first-child, table.recap th:first-child { text-align: left; font-weight: 700; }
.defiler-x { overflow-x: auto; }

.note-coach {
  background: rgba(20, 20, 20, .05); border: .5px solid var(--hairline);
  border-radius: 14px; padding: 10px 13px; font-size: 14px; margin-top: 12px;
}
.note-coach .qui { font-size: 11px; font-weight: 700; color: var(--encre-2); text-transform: uppercase; letter-spacing: .06em; }

.vide { color: var(--encre-2); text-align: center; padding: 24px 0; font-size: 14px; }
.info-discrete { font-size: 12px; color: var(--encre-2); margin: 10px 4px 0; }
.journal-rappels { margin: 14px 4px 0; font-size: 13px; }
.journal-rappels summary { cursor: pointer; color: var(--encre-2); padding: 6px 0; }
.liste-journal { list-style: none; margin: 6px 0 0; padding: 0; }
.liste-journal li { padding: 8px 0; border-top: 1px solid var(--trait, rgba(0,0,0,.08)); line-height: 1.4; }
.src-journal { display: inline-block; margin-left: 6px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--encre-2); opacity: .7; }

@media (min-width: 561px) {
  #app { box-shadow: 0 0 60px rgba(0, 0, 0, .10); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
