/* ============ ESYA Coaching — App Coach (admin) ============
   Styles spécifiques au back-office coach. Réutilise les tokens et
   composants d'esya.css (chargé AVANT ce fichier). Desktop + mobile. */

/* Largeur un peu plus large que l'app client sur desktop */
.app { max-width: 720px; padding-bottom: 40px; }

/* ============ Barre haute (titre + retour) ============ */
.barre-haut { display: flex; align-items: center; gap: 12px; padding: 6px 2px 4px; }
.barre-haut .marque { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.barre-haut .marque b { color: var(--accent-fonce); }
/* Le logo d'Olivier remplace la marque texte (vocal du 26/08, n°1).
   `width`/`height` sont poses dans le HTML : sans eux, l'image reserve 0 px
   pendant son chargement et la barre saute quand elle arrive. Si le fichier
   manque, le texte `alt` s'affiche a la place — jamais un carre casse. */
.logo-marque { height: 34px; width: auto; flex-shrink: 0; display: block;
  font-size: 0.9rem; font-weight: 800; color: var(--accent-fonce); }
.logo-marque.grand { height: 96px; margin: 0 auto 10px; }
.barre-haut .titre-page { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-haut .sous { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.btn-retour { width: 42px; height: 42px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--line); font-size: 1.2rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; box-shadow: var(--shadow); }
.btn-deco { color: var(--muted); font-weight: 700; font-size: 0.82rem; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); flex-shrink: 0; }

/* ============ Connexion ============ */
.ecran-connexion { max-width: 400px; margin: 0 auto; padding-top: 8vh; }
.ecran-connexion .logo-onboarding .marque { font-size: 2.4rem; }
.ecran-connexion .erreur-connexion { color: #d43a3a; font-weight: 700; font-size: 0.88rem;
  text-align: center; margin-top: 12px; min-height: 20px; }

/* ============ Tableau de bord ============ */
.stat-grille.trois { grid-template-columns: repeat(3, 1fr); }
.stat-tuile.alerte-tuile .valeur { color: var(--orange); }

.bloc-titre { font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin: 22px 4px 10px; }

.alerte { display: flex; align-items: center; gap: 12px; background: #fdf3e7;
  border: 1px solid #f3dcc0; border-radius: 18px; padding: 13px 15px; margin-bottom: 10px; }
.alerte .ico { font-size: 1.4rem; flex-shrink: 0; }
.alerte .infos { flex: 1; min-width: 0; }
.alerte .infos b { display: block; font-size: 0.98rem; }
.alerte .infos span { color: #b5701f; font-size: 0.82rem; font-weight: 600; }
.alerte .fleche { color: #c07b23; font-size: 1.1rem; }

/* ============ Liste clients ============ */
.client-row { display: flex; align-items: center; gap: 13px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 13px 15px; margin-bottom: 10px;
  text-align: left; width: 100%; box-shadow: var(--shadow); }
.client-row .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-fonce); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0; }
.client-row .infos { flex: 1; min-width: 0; }
.client-row .infos { display: flex; flex-direction: column; }
/* `.nom` et `.meta` sont des <span> : en `display:inline`, `overflow` et
   `text-overflow` n'ont AUCUN effet (ils ne s'appliquent qu'aux boites de bloc).
   L'ellipse ne se declenchait donc jamais et un nom long venait chevaucher la
   pastille de droite — visible a l'oeil sur une capture 375 px, invisible pour
   toutes les assertions structurelles. Les passer en bloc suffit. */
.client-row .infos .nom { display: block; font-weight: 800; font-size: 1rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.client-row .infos .meta { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-row .fleche { color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }
.pastille-jours { font-size: 0.7rem; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; flex-shrink: 0; }
.pastille-jours.actif { background: var(--accent-soft); color: var(--accent-fonce); }
.pastille-jours.inactif { background: #fdf3e7; color: #c07b23; }
.pastille-jours.jamais { background: var(--line); color: var(--muted); }

/* ============ Bloc lien client ============ */
.lien-box { display: flex; align-items: center; gap: 8px; background: var(--card-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.lien-box .url { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.lien-box button { background: var(--noir); color: var(--accent); font-weight: 700; font-size: 0.78rem;
  padding: 8px 12px; border-radius: 999px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.03em; }
.lien-box a.ouvrir { background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-weight: 700; font-size: 0.78rem; padding: 8px 12px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; text-decoration: none; }

/* ============ Programme 7 jours ============ */
.jours-prog { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.jours-prog::-webkit-scrollbar { display: none; }
.jour-prog-btn { min-width: 52px; padding: 9px 6px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); font-weight: 700; font-size: 0.8rem; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; box-shadow: var(--shadow); }
.jour-prog-btn .pt { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.jour-prog-btn.high .pt { background: var(--orange); }
.jour-prog-btn.low .pt { background: var(--c-lipides); }
.jour-prog-btn.modere .pt { background: var(--vert); }
.jour-prog-btn.repos .pt { background: #cfccc6; }
.jour-prog-btn.actif { background: var(--noir); color: #fff; border-color: var(--noir); }

.macro-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.macro-inputs .champ-bloc { margin-bottom: 0; }
.macro-inputs .plein { grid-column: 1 / -1; }
.copie-programme { margin-top: 12px; }
.copie-programme select { width: 100%; }

/* ============ Mesures / indicateurs ============ */
.indic-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.indic-item { display: flex; align-items: center; gap: 12px; background: var(--card-soft);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-weight: 600;
  text-align: left; width: 100%; }
.indic-item .coche { margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #d9d6d0; display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 0.9rem; flex-shrink: 0; }
.indic-item.choisi { background: var(--accent-soft); }
.indic-item.choisi .coche { background: var(--accent); border-color: var(--accent); color: var(--noir); }

/* ============ Journal (lecture seule) ============ */
.journal-jour { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.journal-jour:last-child { border-bottom: none; }
.journal-jour .entete { display: flex; align-items: baseline; gap: 8px; }
.journal-jour .date { font-weight: 800; font-size: 0.95rem; text-transform: capitalize; }
.journal-jour .kcal { margin-left: auto; font-weight: 800; }
.journal-jour .kcal small { color: var(--muted); font-weight: 600; }
.journal-jour .detail { color: var(--muted); font-size: 0.82rem; margin-top: 4px; line-height: 1.5; }

/* ============ Bilan ============ */
.liens-rapport { margin-top: 14px; }
.zone-danger { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.btn-danger { width: 100%; background: #fdecec; color: #d43a3a; font-weight: 800; font-size: 0.92rem;
  padding: 14px; border-radius: 999px; border: 1px solid #f4d0d0; }

.vide-liste { text-align: center; color: var(--muted); padding: 30px 20px; font-weight: 600; line-height: 1.5; }

/* ============ Bilans hebdomadaires (réponse coach) ============ */
/* Compteur global sur le tableau de bord */
.compteur-bilans { display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--accent-soft); border: 1px solid #e3f0b6; border-radius: 18px;
  padding: 13px 15px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.compteur-bilans .ico { font-size: 1.2rem; flex-shrink: 0; }
.compteur-bilans b { font-weight: 800; }
.compteur-bilans.calme { background: var(--card-soft); border-color: var(--line); color: var(--muted); }

/* Ligne « client à répondre » (variante verte de .alerte) */
.alerte.bilan { background: var(--accent-soft); border-color: #e3f0b6; }
.alerte.bilan .infos span { color: var(--accent-fonce); }
.alerte.bilan .fleche { color: var(--accent-fonce); }

/* Pastille de compte sur l'onglet Bilan */
.pastille-nb { display: inline-flex; align-items: center; justify-content: center; min-width: 18px;
  height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--accent);
  color: var(--noir); font-size: 0.68rem; font-weight: 800; vertical-align: middle; }
.segment.actif .pastille-nb { background: var(--accent); color: var(--noir); }

/* Carte d'un bilan reçu */
.bilan-carte { border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  margin-top: 12px; background: var(--card-soft); }
.bilan-carte.a-repondre { background: var(--card); border-color: #e3f0b6; box-shadow: var(--shadow); }
.bilan-entete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bilan-semaine { font-weight: 800; font-size: 0.98rem; }
.bilan-date { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.badge-bilan { margin-left: auto; font-size: 0.68rem; font-weight: 800; padding: 4px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.badge-bilan.attente { background: var(--accent); color: var(--noir); }
.badge-bilan.repondu { background: var(--line); color: var(--muted); }

/* Aperçu des réponses du client */
.bilan-apercu { margin-top: 12px; }
.curseurs-bilan { display: flex; flex-direction: column; gap: 7px; }
.curseur-ligne { display: flex; align-items: center; gap: 10px; }
.curseur-lib { flex: 0 0 40%; max-width: 40%; font-size: 0.84rem; font-weight: 700; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.curseur-barre { flex: 1; min-width: 40px; height: 8px; border-radius: 999px;
  background: var(--line); overflow: hidden; }
.curseur-barre i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.curseur-val { flex-shrink: 0; font-size: 0.84rem; font-weight: 800; min-width: 44px; text-align: right; }
.curseur-val small { color: var(--muted); font-weight: 600; }
.curseur-val.large { margin-left: auto; min-width: 0; }
.bilan-champ { margin-top: 12px; }
.bilan-champ-lib { font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.bilan-champ-txt { font-size: 0.92rem; line-height: 1.5; overflow-wrap: anywhere; }
.bilan-liste { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.bilan-liste li { position: relative; padding-left: 16px; font-size: 0.92rem; line-height: 1.45;
  overflow-wrap: anywhere; }
.bilan-liste li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); }

/* Formulaire de réponse */
.bilan-reponse { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.bilan-reponse .zone-texte { min-height: 84px; font-size: 0.94rem; }
.bilan-reponse .champ-bloc input { background: var(--card); }
.bilan-reponse .btn-secondaire { padding: 12px; font-size: 0.9rem; }
.retour-date { margin-top: 8px; text-align: center; color: var(--muted);
  font-size: 0.76rem; font-weight: 700; }

/* ============ Badge programme (liste clients) ============ */
.badge-prog { font-size: 0.68rem; font-weight: 800; padding: 4px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-fonce); letter-spacing: 0.03em;
  white-space: nowrap; flex-shrink: 0; }

/* ============ Phases du programme ============ */
.phases-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.phase-ligne { display: flex; align-items: center; gap: 6px; background: var(--card-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.phase-ligne .phase-rang { width: 22px; height: 22px; border-radius: 50%; background: var(--noir);
  color: #fff; font-weight: 800; font-size: 0.72rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; }
.phase-ligne .phase-nom { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 0.88rem; font-weight: 600; background: var(--card); }
.phase-ligne .phase-sem { width: 54px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 6px; font-size: 0.88rem; font-weight: 700; text-align: center; background: var(--card); }
.phase-ligne .phase-unite { font-size: 0.72rem; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.phase-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); font-size: 0.9rem; font-weight: 700; color: var(--muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.phase-btn:disabled { opacity: 0.35; }
.phase-btn.suppr { color: #d43a3a; border-color: #f4d0d0; background: #fdecec; }

/* Aperçu calculé */
.apercu-prog { margin-top: 14px; background: var(--card-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; }
.apercu-prog .apercu-ligne { font-weight: 800; font-size: 0.95rem; line-height: 1.4; }
.apercu-prog .apercu-sous { color: var(--muted); font-size: 0.82rem; font-weight: 600; margin-top: 3px; }
.phases-barre { position: relative; height: 12px; border-radius: 999px; background: var(--line);
  overflow: hidden; margin-top: 12px; }
.phases-barre .phases-fill { position: absolute; top: 0; left: 0; height: 100%;
  background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.phases-barre .phases-segs { position: absolute; inset: 0; display: flex; }
.phases-barre .phase-seg { border-right: 2px solid var(--card); }
.phases-barre .phase-seg:last-child { border-right: none; }
.phases-barre .phase-seg.actif { box-shadow: inset 0 0 0 2px var(--accent-fonce); border-radius: 3px; }

/* ====================================================================
   Bilan hebdo : tableau « Activité physique » des 7 jours (retour n°7)
   Le coach doit voir TOUTES les informations du bilan. Le tableau scrolle
   dans sa propre carte : la page, elle, ne déborde jamais.
   ==================================================================== */
.bilan-total {
  margin-left: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--noir); background: var(--accent); border-radius: 999px; padding: 2px 8px;
}
.table-seances-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-seances {
  width: 100%; min-width: 360px; border-collapse: collapse; font-size: 0.86rem;
}
.table-seances thead th {
  text-align: left; font-size: 0.66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); padding: 6px 8px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table-seances tbody th, .table-seances tbody td {
  padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle;
}
.table-seances tbody tr:last-child th, .table-seances tbody tr:last-child td { border-bottom: none; }
.table-seances tbody th { font-weight: 800; white-space: nowrap; }
.table-seances tbody td { font-weight: 600; white-space: nowrap; }
.table-seances tbody tr.repos { color: var(--muted); }

/* ============ Mesures suivies : poids verrouillé (retour n°12) ============ */
/* Le poids est toujours suivi : sa case reste cochée, non cliquable, et se distingue
   des autres par un curseur neutre + une mention discrète. Pas d'opacité réduite :
   la ligne doit rester parfaitement lisible, ce n'est pas un champ désactivé « en erreur ». */
.indic-item.verrouille { cursor: default; }
.indic-item.verrouille .coche { opacity: 0.72; }
.indic-item .indic-verrou {
  display: block; margin-top: 2px; color: var(--muted);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em;
}

/* ============ Ressources : éditeur des modules / vidéos de la formation ============ */
/* Même vocabulaire visuel que l'éditeur de phases (.phase-ligne / .phase-btn, réutilisés
   tels quels pour ↑ ↓ ✕). Un seul module déplié à la fois : la liste reste lisible même
   avec 10 modules de 10 vidéos. */
.res-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.res-module { background: var(--card-soft); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.res-module.ouvert { background: var(--card); box-shadow: var(--shadow); }
.res-mod-tete { display: flex; align-items: center; gap: 6px; }
.res-rang {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--noir); color: #fff;
  font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.res-emoji {
  width: 46px; flex-shrink: 0; text-align: center; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 8px 4px; font-size: 1rem;
}
.res-mod-titre, .res-vid-titre, .res-vid-url, .res-vid-note, .res-mod-image, .res-doc-titre, .res-doc-url {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 8px 10px; font-size: 0.9rem; font-weight: 600;
}
.res-bascule {
  display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; padding: 6px 4px 2px;
  background: none; border: none; color: var(--muted); font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.res-bascule .fleche { margin-left: auto; font-size: 1rem; }
.res-corps { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.res-emojis { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.res-emoji-sugg {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-size: 1rem;
}
.res-video {
  display: flex; flex-direction: column; gap: 6px; background: var(--card-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 9px; margin-bottom: 8px;
}
.res-module.ouvert .res-video { background: var(--card-soft); }
.res-vid-tete { display: flex; align-items: center; gap: 6px; }
.res-vid-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.res-vid-bas { display: flex; align-items: center; gap: 6px; }
.res-bonus {
  flex-shrink: 0; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 8px 12px; font-size: 0.78rem; font-weight: 800; white-space: nowrap;
}
.res-bonus.choisi { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-fonce); }
.res-ajout-video { margin-top: 4px; padding: 11px; font-size: 0.88rem; }

/* --- Miniature du module (lien d'image collé par le coach) --- */
.res-image { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.res-mod-image { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.res-image-apercu {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card-soft);
}
.res-image-apercu[hidden] { display: none; }
.res-image-apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Documents joints (PDF / audio / lien) --- */
.res-docs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.res-doc {
  display: flex; flex-direction: column; gap: 6px; background: var(--card-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 9px;
}
.res-doc-tete { display: flex; align-items: center; gap: 6px; }
.res-doc-ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.res-doc-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

/* ============ Case à cocher en ligne (forfait à engagement) ============ */
/* Label cliquable : cible tactile ≥ 44px de haut, coche 22px. */
.case-ligne {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  margin-bottom: 12px; padding: 2px; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; -webkit-user-select: none; user-select: none;
}
.case-ligne input[type="checkbox"] {
  width: 22px; height: 22px; flex-shrink: 0; margin: 0;
  accent-color: var(--accent-fonce); cursor: pointer;
}
.case-ligne span { line-height: 1.3; }

/* Champs date en colonne double : sans min-width:0, une cellule de grille refuse
   de descendre sous la largeur intrinsèque du champ (valeur JJ/MM/AAAA + icône du
   sélecteur natif) et déborde de l'écran en mobile 375px. */
.champ-double > .champ-bloc { min-width: 0; }
.champ-bloc input[type="date"] { min-width: 0; padding-left: 11px; padding-right: 8px; }

/* ====================================================================
   MODULE RÉSERVATION — écrans coach (agenda, fiche séance, série,
   annulation, pointage, historique). Contrat : docs/CONTRAT-RESERVATION.md.
   Tout réutilise les tokens d'esya.css (--accent, --line, --card…) et le
   vocabulaire visuel déjà en place (.carte, .alerte, .stat-tuile, .feuille).
   ==================================================================== */

/* ---- Barre de période de l'agenda ---- */
.periode-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px 4px 12px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
/* Cible tactile : ce lien est une ACTION, il lui faut 44 px de haut réels
   (mesuré à 375/390/768/1280/1440 px), pas la seule hauteur du texte. */
.periode-barre .lien-modif { color: var(--accent-fonce); font-weight: 800; text-decoration: underline;
  padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.85rem; }
.periode-champs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end;
  margin-bottom: 14px; }
.periode-champs .champ-bloc { margin-bottom: 0; min-width: 0; }
.periode-champs input[type="date"] { min-width: 0; padding: 12px 8px 12px 11px; font-size: 0.92rem; }
.periode-champs button { flex-shrink: 0; height: 48px; padding: 0 16px; border-radius: 14px;
  background: var(--noir); color: var(--accent); font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Boutons d'action de l'agenda (2 colonnes en desktop, empilés en mobile) ---- */
.agenda-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0 4px; }
@media (min-width: 560px) { .agenda-actions { grid-template-columns: 1fr 1fr; } }
.agenda-actions .btn-principal, .agenda-actions .btn-secondaire { margin: 0; }

/* ---- Groupe « un jour » ---- */
.agenda-jour { margin-top: 18px; }
.agenda-jour-tete { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 0 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.agenda-jour-tete .jj { font-weight: 800; font-size: 0.98rem; }
.agenda-jour-tete .jj-nb { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-weight: 700;
  white-space: nowrap; }
.agenda-jour.auj .agenda-jour-tete .jj { color: var(--accent-fonce); }
.badge-auj { font-size: 0.64rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: var(--accent); color: var(--noir); text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap; }
.agenda-rien { color: var(--muted); font-size: 0.86rem; font-weight: 600; padding: 4px 6px 8px; }

/* ---- Ligne « une séance » (cœur de l'écran quotidien d'Olivier) ---- */
.seance-ligne { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.seance-ligne .sl-heure { flex-shrink: 0; width: 58px; display: flex; flex-direction: column; }
.seance-ligne .sl-heure b { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.seance-ligne .sl-heure small { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
/* Vignette du lieu dans l'agenda. `alt=""` côté HTML : c'est une aide visuelle,
   pas une information — la ligne dit déjà le lieu en toutes lettres. */
.seance-ligne .sl-photo { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  object-fit: cover; background: var(--card-soft); }
.seance-ligne.annulee .sl-photo { opacity: 0.45; }
/* La vignette prend de la largeur ; sur un écran de téléphone, l'intitulé serait
   tronqué à « DOUSM… » alors que c'est l'information n° 1 de la ligne. Sur les
   lignes AVEC photo on le laisse donc passer à la ligne (2 au maximum) plutôt
   que de le couper. Les lignes sans photo gardent leur rendu d'origine. */
.seance-ligne .sl-photo ~ .sl-infos .sl-theme { white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; }
@media (max-width: 420px) {
  .seance-ligne { gap: 9px; }
  .seance-ligne .sl-photo { width: 36px; height: 36px; border-radius: 10px; }
}
.seance-ligne .sl-infos { flex: 1; min-width: 0; }
.seance-ligne .sl-theme { display: block; font-weight: 800; font-size: 0.97rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seance-ligne .sl-lieu { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600;
  margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seance-ligne .sl-attente { display: block; color: var(--orange); font-size: 0.76rem;
  font-weight: 800; margin-top: 3px; }
/* « Annulé » en rouge sous l'intitulé : c'est la convention que le coach connaît
   déjà (Bookwhen), on la garde et on y ajoute le motif, qui lui manquait. */
.seance-ligne .sl-annule { display: block; color: #d43a3a; font-size: 0.76rem;
  font-weight: 800; margin-top: 3px; }
.seance-ligne .fleche { color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }

/* Compteur d'inscrits — l'information que le coach vient chercher chaque jour. */
.sl-nb { flex-shrink: 0; min-width: 54px; text-align: center; border-radius: 14px;
  padding: 7px 8px; background: var(--card-soft); border: 1px solid var(--line); }
.sl-nb b { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.1; }
.sl-nb small { display: block; color: var(--muted); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; margin-top: 1px; }
.sl-nb.plein { background: var(--accent-soft); border-color: #e3f0b6; }
.sl-nb.plein b { color: var(--accent-fonce); }
/* Séance vide : c'est celle qu'Olivier cherche pour l'annuler. Elle doit sauter aux yeux. */
.sl-nb.vide { background: #fdf3e7; border-color: #f3dcc0; }
.sl-nb.vide b { color: #c07b23; }
.seance-ligne.vide { border-color: #f3dcc0; }
.seance-ligne.annulee { background: var(--card-soft); box-shadow: none; }
.seance-ligne.annulee .sl-theme, .seance-ligne.annulee .sl-heure b { text-decoration: line-through;
  color: var(--muted); }
.sl-nb.off { background: var(--line); border-color: var(--line); }
.sl-nb.off b { color: var(--muted); }

/* ---- Chips d'état (annulée, porte ouverte, rouverte) ---- */
.chip-etat { display: inline-block; font-size: 0.66rem; font-weight: 800; padding: 3px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.chip-etat.annule { background: #fdecec; color: #d43a3a; }
.chip-etat.porte { background: var(--accent-soft); color: var(--accent-fonce); }
.chip-etat.rouvert { background: #fdf3e7; color: #c07b23; }
.chip-etat.neutre { background: var(--line); color: var(--muted); }

/* ---- Fiche séance ---- */
.seance-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px;
  display: block; margin-bottom: 12px; background: var(--card-soft); }
.seance-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.seance-meta span { background: var(--card-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.remplissage { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.remplissage .gros { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.remplissage .cible { color: var(--muted); font-weight: 700; }
.remplissage .reste { margin-left: auto; color: var(--muted); font-size: 0.85rem; font-weight: 700; }

/* ---- Participants + pointage de présence ---- */
.participant { display: flex; align-items: center; gap: 11px; background: var(--card-soft);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.participant .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-fonce); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.88rem; flex-shrink: 0; }
.participant .rang { width: 38px; height: 38px; border-radius: 50%; background: var(--noir); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem;
  flex-shrink: 0; }
.participant .p-infos { flex: 1; min-width: 0; }
/* Le nom du participant ne se tronque JAMAIS : le coach appelle les gens par
   leur nom au bord du terrain. « Karine Sylves… » ne lui sert à rien — on laisse
   le nom passer à la ligne en mobile plutôt que de le couper. */
.participant .p-nom { display: block; font-weight: 800; font-size: 0.94rem;
  overflow-wrap: anywhere; line-height: 1.25; }
.participant .p-sous { display: block; color: var(--muted); font-size: 0.78rem;
  font-weight: 600; margin-top: 1px; }
.pointage { display: flex; gap: 6px; flex-shrink: 0; }
.pointage button { min-width: 44px; min-height: 38px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font-size: 0.9rem; font-weight: 800;
  color: var(--muted); }
.pointage button.present.choisi { background: var(--accent); border-color: var(--accent); color: var(--noir); }
.pointage button.absent.choisi { background: #fdecec; border-color: #f4d0d0; color: #d43a3a; }
.pointage button:disabled { opacity: 0.5; }

/* Avertissement honnête : aucun canal sortant n'existe en phase 1. */
.note-envoi { background: #fdf3e7; border: 1px solid #f3dcc0; border-radius: 14px;
  padding: 10px 12px; color: #a8641a; font-weight: 600; margin-top: 10px; }
.champ-bloc label .chip-etat { margin-left: 6px; vertical-align: middle; text-transform: none;
  letter-spacing: 0.02em; }

/* ---- Bandeau d'issue d'annulation (retour B16 : le manque n°1 de Bookwhen) ---- */
.alerte.prevenus { background: var(--accent-soft); border-color: #e3f0b6; }
.alerte.prevenus .infos span { color: var(--accent-fonce); }
.alerte.rouge { background: #fdecec; border-color: #f4d0d0; }
.alerte.rouge .infos span { color: #d43a3a; }
.alerte.info { background: var(--card-soft); border-color: var(--line); }
.alerte.info .infos span { color: var(--muted); }

/* ---- Sélecteur de jours de la semaine (création d'une série) ---- */
.jours-serie { display: flex; gap: 6px; margin-top: 6px; }
.jours-serie button { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px;
  background: var(--card-soft); border: 1px solid var(--line); font-weight: 800; font-size: 0.84rem;
  color: var(--muted); }
.jours-serie button.choisi { background: var(--noir); color: var(--accent); border-color: var(--noir); }

/* ---- Aperçu de la photo du lieu dans le formulaire ---- */
.photo-champ { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.photo-apercu { width: 68px; height: 68px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card-soft); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; color: var(--muted); }
.photo-apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-boutons { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.photo-boutons .btn-secondaire { padding: 11px; font-size: 0.86rem; }
.photo-boutons input[type="file"] { display: none; }

/* ---- Historique client ---- */
/* .filtre vient d'esya.css (hors périmètre) : on ne le modifie pas globalement,
   on ne remonte que ces filtres-ci à 44 px de haut. */
.filtres-hist .filtre { min-height: 44px; display: inline-flex; align-items: center; }
.hist-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.hist-resa { display: flex; align-items: center; gap: 11px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; margin-bottom: 8px; }
.hist-resa .hr-date { flex-shrink: 0; width: 56px; text-align: center; }
.hist-resa .hr-date b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.hist-resa .hr-date small { color: var(--muted); font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; }
.hist-resa .hr-infos { flex: 1; min-width: 0; }
.hist-resa .hr-theme { display: block; font-weight: 800; font-size: 0.92rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.hist-resa .hr-sous { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600;
  margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-presence { flex-shrink: 0; font-size: 0.66rem; font-weight: 800; padding: 4px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.chip-presence.venue { background: var(--accent-soft); color: var(--accent-fonce); }
.chip-presence.absent { background: #fdecec; color: #d43a3a; }
.chip-presence.annulee { background: var(--line); color: var(--muted); }
.chip-presence.avenir { background: #e9f0fd; color: #4a72d4; }
.chip-presence.attente { background: #fdf3e7; color: #c07b23; }
.chip-presence.nonpointe { background: var(--card-soft); color: var(--muted); }

/* ---- Chargement (pas de flash de contenu vide, pas de saut de mise en page) ---- */
.chargement-bloc { color: var(--muted); font-weight: 700; text-align: center;
  padding: 26px 20px; font-size: 0.9rem; }
.squelette { border-radius: 18px; background: linear-gradient(90deg, var(--card-soft) 25%,
  var(--line) 37%, var(--card-soft) 63%); background-size: 400% 100%;
  animation: chatoyer 1.3s ease infinite; height: 68px; margin-bottom: 8px; }
@keyframes chatoyer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Feuille modale : le module en crée (annulation), admin.html n'en a pas ---- */
.feuille .recap-annul { background: var(--card-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.feuille .recap-annul b { display: block; font-size: 0.98rem; }
.feuille .recap-annul span { color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.compteur-car { text-align: right; color: var(--muted); font-size: 0.74rem; font-weight: 700;
  margin-top: 4px; }
.feuille .btn-danger { margin-top: 4px; }
.feuille .btn-secondaire { margin-top: 8px; }

/* ---- Bloc statistiques du tableau de bord (retour B19, priorité basse) ---- */
/* Le libellé peut tenir sur deux lignes (« Réservations reçues · 30 j ») : on le
   laisse respirer plutôt que de le tronquer, la tuile s'étire. */
.stat-tuile .libelle { line-height: 1.25; }
/* Bornes réelles de la fenêtre glissante, renvoyées par l'API (`periode`). */
.stat-sous { color: var(--muted); font-size: 0.72rem; font-weight: 600; margin-top: 2px; }
.stat-tuile .evolution { font-size: 0.74rem; font-weight: 800; margin-top: 5px; line-height: 1.25; }
.stat-tuile .evolution.hausse { color: var(--accent-fonce); }
.stat-tuile .evolution.baisse { color: var(--orange); }
.stat-tuile .evolution.plat { color: var(--muted); }

/* ============ Notes du coach : suppression (vocal du 26/08, n°6 / n°16) ============
   La note affiche desormais un bouton de retrait. Cible de 44 px de haut minimum :
   sur un iPhone, un lien de 30 px se rate une fois sur trois. */
.note-coach { position: relative; }
.btn-suppr-note {
  margin-top: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: #fdecec; color: #d43a3a; font-weight: 800; font-size: 0.82rem;
  border: 1px solid #f7d7d7;
}
.btn-suppr-note:disabled { opacity: 0.55; }

/* ============ Mensurations relevees (vocal du 26/08, n°7) ============ */
.releve-mesure {
  background: var(--card-soft); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; margin-bottom: 12px;
}
.releve-mesure .rm-valeurs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.releve-mesure .rm-actions { display: flex; gap: 10px; margin-top: 12px; }
/* .btn-danger est en width:100% ailleurs (zone de suppression client) : ici les
   deux boutons se partagent la ligne, sinon « Supprimer » chasse « Enregistrer »
   hors de l'ecran sur un mobile de 375 px. */
.releve-mesure .rm-actions .btn-secondaire,
.releve-mesure .rm-actions .btn-danger { flex: 1; width: auto; min-height: 44px; margin: 0; }

/* ====================================================================
   COQUILLE COACH — navigation basse, tuiles, acces rapide (vocal n°3)
   ==================================================================== */
.app { padding-bottom: 104px; }        /* la nav basse ne doit rien recouvrir */

.nav-coach {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 690px; z-index: 50;
}
.nav-coach-pilule {
  display: flex; background: rgba(28, 27, 27, 0.96); backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 8px 26px rgba(28, 27, 27, 0.28); padding: 7px;
}
.nav-coach-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px; border-radius: 999px; font-size: 0.64rem; font-weight: 700;
  color: #b8b6b2; min-height: 48px;    /* cible tactile confortable au pouce */
}
.nav-coach-ico { font-size: 1.15rem; line-height: 1; filter: grayscale(1); opacity: 0.7; }
.nav-coach-btn.actif { color: var(--accent); }
.nav-coach-btn.actif .nav-coach-ico { filter: none; opacity: 1; }

.sous-titre-page { color: var(--muted); font-weight: 600; font-size: 0.88rem; margin: -6px 0 14px; }

/* La cloche : elle COMPTE quelque chose de reel (clientes a relancer + bilans
   sans reponse). Une pastille qui n'ouvre rien serait une decoration. */
.btn-cloche {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.pastille-cloche {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--orange); color: #fff;
  font-size: 0.62rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* Quatre tuiles sur une ligne qui DEFILE (comme la maquette). `auto` et non
   `hidden` : un conteneur qui deborde sans defiler rend sa 4e tuile
   definitivement inatteignable au doigt. */
.tuiles-coach {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 6px; margin-bottom: 18px; -webkit-overflow-scrolling: touch;
}
.tuiles-coach::-webkit-scrollbar { display: none; }
/* Largeur FIXE et non « au contenu » : sinon « Abonnements actifs » fait une
   tuile de 156 px a cote d'une tuile de 114 px, et la ligne ressemble a une
   erreur de mise en page plutot qu'a une serie. */
.tuile-coach {
  flex: 0 0 118px; background: var(--card-soft); display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; padding: 13px 14px; min-height: 92px;
}
.tuile-coach .valeur { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tuile-coach .libelle { color: var(--muted); font-size: 0.74rem; font-weight: 700; margin-top: 4px; line-height: 1.25; }
/* `tuile-alerte`, PAS `alerte` : la classe `.alerte` existe deja dans ce meme
   fichier pour les boutons d'alerte, avec un `display:flex` qui posait le chiffre
   A COTE de son libelle au lieu de l'empiler. Une classe reprise d'un autre
   composant apporte toute sa mise en page avec elle, sans qu'aucune assertion
   structurelle ne le voie — c'est l'oeil, puis la mesure, qui l'ont trouve. */
.tuile-coach.tuile-alerte { background: #fdf3e7; border-color: #f3e0c6; }
.tuile-coach.tuile-alerte .valeur { color: var(--orange); }

/* Cartes « Acces rapide » — icone, numero, titre, description, chevron. */
.carte-acces {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 20px; padding: 16px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
  min-height: 76px;
}
.carte-acces .acces-ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
/* Bloc, pas inline : `overflow` et `text-overflow` n'ont aucun effet sur une
   boite inline — c'est le defaut deja corrige sur la liste des clientes. */
.carte-acces .acces-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.carte-acces .acces-titre { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; }
.carte-acces .acces-num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--noir);
  font-size: 0.7rem; font-weight: 800; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.carte-acces .acces-desc { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.carte-acces .fleche { color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }

/* ============ Abonnements : selection multiple ============ */
.barre-selection { display: flex; gap: 10px; margin: 14px 0 12px; }
.barre-selection .btn-secondaire { flex: 1; margin: 0; min-height: 44px; }
.ligne-abo {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 13px 15px; margin-bottom: 10px;
  box-shadow: var(--shadow); min-height: 60px;
}
.ligne-abo.cochee { border-color: var(--accent); background: var(--accent-soft); }
.ligne-abo .case-abo { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--accent-fonce); }
.ligne-abo .abo-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne-abo .abo-infos .nom { display: block; font-weight: 800; font-size: 0.98rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-abo .abo-infos .meta { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* La barre d'action se pose AU-DESSUS de la nav basse, jamais dessous. */
.barre-lot {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 690px; z-index: 49;
  background: var(--noir); border-radius: 22px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(28, 27, 27, 0.35);
}
.barre-lot .lot-compte { color: #fff; font-weight: 800; font-size: 0.86rem; margin-bottom: 9px; text-align: center; }
.barre-lot .lot-boutons { display: flex; gap: 7px; }
.barre-lot .lot-boutons button {
  flex: 1; width: auto; margin: 0; min-height: 44px; padding: 10px 4px;
  font-size: 0.78rem; letter-spacing: 0; text-transform: none; box-shadow: none;
}
.barre-lot .btn-secondaire { background: #3a3936; color: #fff; border-color: #4a4946; }

/* Reserve de bas de page quand la barre d'action est ouverte : elle s'ajoute a
   la nav basse et masquerait la derniere ligne de la liste.
   La valeur reelle est POSEE PAR JS (majBarreLot), qui mesure la hauteur de la
   barre : une valeur fixe a tenu jusqu'au jour ou un bouton de plus y a ete
   ajoute, et le defaut est revenu a l'identique. Celle-ci n'est qu'un plancher. */
.app.avec-barre-lot { padding-bottom: 200px; }

/* ============ Agenda : mode « annuler plusieurs creneaux » (vocal n°8) ============ */
.btn-secondaire.actif-sel { background: var(--noir); color: var(--accent); border-color: var(--noir); }
/* En mode selection la ligne est une <label>, plus un <button> : une meme zone
   qui ouvrirait ET cocherait selon un etat invisible est le meilleur moyen
   d'annuler un cours en croyant l'ouvrir. */
.seance-ligne.selectionnable { cursor: default; }
.seance-ligne.selectionnable.cochee { border-color: #d43a3a; background: #fdecec; }
.seance-ligne .case-seance { width: 22px; height: 22px; flex-shrink: 0; accent-color: #d43a3a; margin-right: 2px; }
/* Une seance DEJA annulee n'est pas cochable : la recocher ne ferait rien (son
   motif d'origine est conserve) et laisserait croire au coach qu'il agit. */
.seance-ligne .case-vide { width: 22px; flex-shrink: 0; margin-right: 2px; }
.barre-lot .btn-danger { background: #fdecec; color: #d43a3a; border: 1px solid #f7d7d7; }
.barre-lot .lot-message { margin: 9px 0 0; width: 100%; min-height: 44px; background: #3a3936; color: #fff; border-color: #4a4946; }
