/* vb_mobile.css — V2 TrainSmarter : téléphone seulement (largeur de mise en page 506 px). */
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  :root { --t-base: 17px; --t-petit: 14px; --t-titre: 19px; --t-chiffre: 30px; --h-entete: 58px; }
  html, body { height: 100%; }
  body { overscroll-behavior: none; }
  #app { height: 100dvh; }

  /* Barre du haut toujours en haut */
  .entete { padding: env(safe-area-inset-top, 0px) 16px 0; gap: 12px; }
  .entete .droite { font-size: 13px; }

  /* Zones qui défilent, jamais la page */
  .corps { overflow: hidden; }
  .corps > *, .page { overscroll-behavior: contain; }
  .page { padding: 16px 16px 120px; }

  /* Barre du bas : toujours visible, au-dessus des feuilles */
  .barre-bas { position: relative; z-index: 45; display: flex; border-top: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--entete) 72%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
  .barre-bas a { flex: 1; min-height: 52px; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; border-radius: var(--vb-r-s); }
  .barre-bas a.actif { color: var(--texte); background: rgba(255,255,255,.08); }
  :root[data-theme="clair"] .barre-bas a.actif { background: rgba(0,0,0,.06); }

  /* Feuilles : montent du bas, passent SOUS la barre du bas */
  .feuille { top: auto; bottom: 0; width: 100%; max-height: calc(var(--vb-vvh, 100dvh) - var(--h-entete) - 12px); border-radius: var(--vb-r-feuille) var(--vb-r-feuille) 0 0; border: 0; opacity: 1; transform: translate(-50%, 110%); transition: transform 380ms cubic-bezier(.16,.84,.3,1); padding-bottom: calc(var(--vb-h-bas, 0px) + 8px); }
  .feuille.ouvert { transform: translate(-50%, 0); }
  .feuille.plein { height: auto; max-height: calc(var(--vb-vvh, 100dvh) - 8px); border-radius: var(--vb-r-feuille) var(--vb-r-feuille) 0 0; }
  .feuille header { border-bottom: 0; padding: 14px 18px 6px; position: relative; }
  .feuille header::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 5px; margin-left: -20px; border-radius: var(--vb-r-pill); background: rgba(255,255,255,.22); }
  .fond-feuille { z-index: 40; }

  /* Cibles tactiles >= 44 px, enfoncement léger */
  button, .bouton, .barre-bas a, select, input { min-height: 44px; }
  .choix.vb-selecteur > button { min-height: 38px; }
  button:active, .bouton:active, .barre-bas a:active { transform: scale(.97); transition: transform 80ms; }
  input, select, textarea { font-size: 17px; }

  /* Menu « Plus » */
  .vb-plus-liste { display: grid; gap: 6px; }
  .vb-plus-l { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; border-radius: var(--vb-r-s); background: rgba(255,255,255,.07); color: var(--texte); text-decoration: none; font-weight: 600; font-size: 17px; width: 100%; text-align: left; }
  .vb-plus-l.actif { background: rgba(255,255,255,.14); }
  :root[data-theme="clair"] .vb-plus-l { background: rgba(0,0,0,.05); }
}

@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  .barre-plan { left: 50%; bottom: calc(var(--vb-h-bas, 0px) + 12px); max-width: calc(100vw - 24px); border-radius: var(--vb-r-l); flex-wrap: wrap; }
  .outils-plan { gap: 6px; }
  .outils-plan #cl { flex: 1 1 100%; }
  .outils-plan .vb-espace { display: none; }
  .outils-plan .vb-principal { flex: 1 1 100%; justify-content: center; min-height: 48px; order: 9; }
}

/* 2026-11-13 : la barre du bas reste visible au-dessus des feuilles (aperçu d'une séance, réglages) ; #racine ne crée plus de calque au téléphone */
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  #racine { z-index: auto; }
}

/* === Audit téléphone du 2026-11-13 (CONTEXTE\REGISTRES\INTERFACE\AUDIT_TELEPHONE_2026-11-13.md) === */
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* 1. Évolution / Monitoring : rien ne dépasse à droite */
  .mon-grille { grid-template-columns: minmax(0, 1fr) !important; }
  .mon-carte, .mon-carte > * { min-width: 0; max-width: 100%; }
  .mon-carte .rp-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mon-carte .form-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .mon-carte svg { max-width: 100%; height: auto; }
  .ev-tab { overflow-x: auto; }
  /* 2. Rapports : chaque ligne d'un tableau devient une carte (libellé à gauche, valeur à droite) */
  .rp-papier { overflow: hidden; }
  .rp-table.vb-cartes, .rp-table.vb-cartes tbody, .rp-table.vb-cartes tr, .rp-table.vb-cartes td { display: block; width: 100%; }
  .rp-table.vb-cartes thead { display: none; }
  .rp-table.vb-cartes tr { border: 1px solid rgba(0,0,0,.12); border-radius: var(--vb-r-m); padding: 8px 12px; margin: 0 0 10px; }
  .rp-table.vb-cartes td { display: block; overflow: hidden; border: 0 !important; padding: 4px 0 !important; text-align: right; font-size: 14px; }
  .rp-table.vb-cartes td:first-child { display: block; text-align: left; font-weight: 700; font-size: 15px; padding-bottom: 6px !important; }
  .rp-table.vb-cartes td[data-l]:not(:first-child)::before { content: attr(data-l); float: left; margin-right: 12px; text-align: left; color: #5b6270; font-weight: 400; }
  /* 4. Textes : 13 px au moins ; axes des graphiques lisibles */
  .pt, .muet.pt, small, .mention, .rp-s { font-size: max(13px, 1em); }
  .tuile small, .tuile .pt, .stats .pt { font-size: 13px; }
  /* 6. Points « i » : zone de toucher de 44 px */
  .info-pt::after { content: ""; position: absolute; inset: -11px; }
  /* 5. Fiche client : tuiles par 2, la dernière seule prend toute la ligne ; accès et actions derrière « … » */
  .col-centre .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .col-centre .tuiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .vb-fiche-plus { margin: 4px 0 12px; padding: 12px; border-radius: var(--vb-r-m); background: rgba(255,255,255,.05); }
  .vb-fiche-plus .rangee { flex-wrap: wrap; margin: 0 0 8px !important; }
  .vb-fiche-plus .rangee:last-child { margin-bottom: 0 !important; }
  .vb-plus-fiche { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--texte); border: 0; flex: none; font-size: 20px; line-height: 1; }
  /* 3. Retour de séance : une question à la fois */
  .retour.vb-pas .titre-section { display: none; }
  .vb-etapes { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
  .vb-etapes-barre { flex: 1; height: 4px; border-radius: var(--vb-r-pill); background: rgba(255,255,255,.1); overflow: hidden; }
  .vb-etapes-barre i { display: block; height: 100%; background: var(--texte); border-radius: inherit; }
  .vb-etapes span { font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
  .retour.vb-pas .retour-ligne, .retour.vb-pas label.curseur { font-size: 18px; }
  .retour.vb-pas .vb-note button { min-height: 52px; font-size: 18px; }
  .vb-pas-nav { display: flex; gap: 10px; margin-top: 16px; }
  .vb-pas-nav button { flex: 1; min-height: 52px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* 4 (suite). Plus de texte sous 13 px au téléphone (les heures du planning restent à 12 px, comme la référence) */
  .rp-s, .mon-puce, .vm-v, .vm-tot, .mon-carte span, .mon-carte label, .bouton, .badge, .vb-gout, .ps-m { font-size: 13px; }
  .puce-s .ps-t, .puce-s .ps-qui { font-size: 14px; }
  .vb-heures span { font-size: 12px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* petits iPhone (375 px) : les grilles à une colonne ne dépassent jamais l'écran */
  .trois, .vb-tb-haut, .vb-equipe { grid-template-columns: minmax(0, 1fr) !important; }
  .trois > *, .vb-tb-haut > *, .vb-equipe > * { min-width: 0; }
}

/* === iPhone seulement (Jean-Roch, 2026-11-13) === */
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* barre des menus : tous les onglets, 4 visibles, défile à l'horizontale */
  .barre-bas.vb-defile { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .barre-bas.vb-defile::-webkit-scrollbar { display: none; }
  .barre-bas.vb-defile a { flex: 0 0 25%; scroll-snap-align: start; }
  /* Clients : pas de tri ni de bouton compact ; « + » à droite de la recherche, sur la même ligne */
  .outils:has(#rech) { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .outils:has(#rech) #rech { flex: 1 1 auto !important; width: auto !important; min-width: 0; }
  .outils:has(#rech) #tri, .outils:has(#rech) #compact { display: none !important; }
  .outils:has(#rech) #nv-client { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
  /* Évolution : pas de bouton « Monitoring » */
  #ev-mon { display: none !important; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* « + » Nouvelle séance (éditeur) : plus rien ne dépasse, la fenêtre ne défile jamais à l'horizontale */
  .feuille .contenu { overflow-x: hidden; }
  .feuille .lig { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-template-areas: none !important; gap: 8px !important; }
  .feuille .lig > * { grid-area: auto !important; min-width: 0; width: 100%; }
  .feuille .lig > .l-ex, .feuille .lig > .l-cons, .feuille .lig > .l-act, .feuille .lig > .lig-info { grid-column: 1 / -1 !important; }
  .feuille .lig > .l-bloc, .feuille .lig > .l-rpe { grid-column: span 2 !important; }
  .feuille .form-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .feuille .form-grille > * { min-width: 0; }
}

/* === Planning iPhone, au plus près des captures VICOBOSS (Jean-Roch, 2026-11-13) === */
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* réglages du planning : restent seulement les outils utiles au téléphone (Exercices) */
  .outils-plan.vb-opts #cl, .outils-plan.vb-opts #vp, .outils-plan.vb-opts .vb-nav-sem, .outils-plan.vb-opts #mods { display: none !important; }
  /* bande des 7 jours : case arrondie, lettre grise, numéro blanc, nombre en tout petit ; le jour vu : fond et cadre un peu plus clairs, numéro teinté */
  .vb-bande { gap: 6px; margin: 4px 0 12px; }
  .vb-bande .vb-jt { padding: 9px 0 7px; border-radius: var(--vb-r-s); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); gap: 1px; }
  .vb-bande .vb-jt small { font-size: 12px; color: var(--texte-2); letter-spacing: 0; }
  .vb-bande .vb-jt b { font-size: 21px; font-weight: 700; background: none !important; color: var(--texte) !important; padding: 0; min-width: 0; }
  .vb-bande .vb-jt i { font-size: 11px; color: rgba(255,255,255,.35); }
  .vb-bande .vb-jt.sel { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
  .vb-bande .vb-jt.sel b { color: color-mix(in srgb, var(--accent) 55%, #ffffff) !important; }
  .vb-bande .vb-jt.auj:not(.sel) b { color: color-mix(in srgb, var(--accent) 55%, #ffffff) !important; }
  /* grille horaire : heures à gauche, trait vertical, une ligne fine par heure, une plus discrète par demi-heure */
  .vb-edt-grille { background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.09) 0 1px, transparent 1px calc(var(--hpx) / 2), rgba(255,255,255,.04) calc(var(--hpx) / 2) calc(var(--hpx) / 2 + 1px), transparent calc(var(--hpx) / 2 + 1px) var(--hpx)); background-position: 52px 0; background-repeat: no-repeat; background-size: calc(100% - 52px) 100%; }
  .vb-edt-ligne { grid-template-columns: 52px repeat(var(--nj), minmax(0, 1fr)) !important; }
  .vb-heures { border-right: 1px solid rgba(255,255,255,.1); }
  .vb-heures span { font-size: 12px; color: var(--texte-2); transform: translateY(-50%); }
  .vb-edt { border: 0; background: none; }
  /* cartes de séance : rectangle arrondi en léger dégradé de la couleur du client, liseré plus clair à gauche ; heure en petit au-dessus, titre en gras */
  .vb-plan-jour .puce-s.vb-bloc-s, .vb-plan-jour .vb-libre .puce-s { border-radius: var(--vb-r-xs); padding: 7px 12px 7px 14px; border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, rgba(255,255,255,.25)); border-left: 3px solid color-mix(in srgb, var(--c, var(--accent)) 60%, #ffffff); background: linear-gradient(120deg, color-mix(in srgb, var(--c, var(--accent)) 42%, #141633), color-mix(in srgb, var(--c, var(--accent)) 22%, #10122a)); box-shadow: none; color: #fff; }
  .vb-plan-jour .puce-s .ps-h { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
  .vb-plan-jour .puce-s .ps-t { display: block; font-size: 15px; font-weight: 700; color: #fff; }
  .vb-plan-jour .puce-s .ps-qui { color: #fff; opacity: .8; font-weight: 600; }
  .vb-plan-jour .puce-s .ps-m { font-size: 12px; opacity: .75; color: #fff; }
  .vb-plan-jour .puce-s::before { display: none !important; }
  .vb-plan-jour .puce-s.fait { opacity: .6; }
  /* séances sans heure : une rangée compacte au-dessus de la journée */
  .vb-plan-jour .vb-edt-libre { border: 0; background: none; padding: 0 0 8px; }
  .vb-plan-jour .vb-edt-libre .vb-gout { font-size: 12px; color: var(--texte-2); text-transform: none; align-self: start; padding-top: 10px; }
  .vb-plan-jour .vb-libre { gap: 6px; }
  .vb-plan-jour .vb-libre .puce-s { width: 100%; }
  /* ligne « maintenant » : trait rouge avec un point à gauche */
  .vb-maintenant { height: 2px; background: #E5484D; }
  .vb-maintenant::before { background: #E5484D; width: 10px; height: 10px; left: -5px; top: -4px; }
  /* dock : réglages (rond gris) à gauche, « + » (rond plein) à droite */
  .vb-dock-g { background: #2a2c33; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* Monitoring : cartes repliables, titre plus lisible, plus d'air */
  .mon-carte { padding: 14px 16px; margin-bottom: 12px; }
  .mon-carte > h3.vb-rep-titre { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; margin: 0; min-height: 32px; }
  .mon-carte > h3.vb-rep-titre::after { margin-left: auto; }
  .mon-carte:not(.vb-replie) > h3.vb-rep-titre { margin-bottom: 12px; }
  .mon-carte.vb-replie > :not(h3) { display: none !important; }
  .mon-carte .rp-tuiles > div { padding: 10px 12px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* === Fiche client iPhone, façon « tâche » de la référence VICOBOSS (Jean-Roch, 2026-11-13) === */
  /* en-tête : étiquette en petites capitales grises, nom en gras, bouton « Voir comme » encadré à droite */
  .col-centre > div > .ligne-liste:first-child { align-items: flex-start; gap: 12px; padding-bottom: 14px !important; }
  .col-centre > div > .ligne-liste:first-child .avatar { display: none; }
  .col-centre > div > .ligne-liste:first-child .grow { display: flex; flex-direction: column; gap: 4px; }
  .col-centre > div > .ligne-liste:first-child .grow .muet { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-2); }
  .col-centre > div > .ligne-liste:first-child .grow .gras { font-size: 22px !important; font-weight: 700; line-height: 1.2; }
  .col-centre > div > .ligne-liste:first-child #vc { background: transparent; color: var(--texte); border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--vb-r-s); font-size: 14px; padding: 8px 12px; min-height: 40px; }
  /* chiffres : une liste à ronds, séparateurs fins, libellé à gauche, valeur à droite (comme les articles d'une tâche) */
  .col-centre .tuiles { display: block !important; margin: 4px 0 14px; }
  .col-centre .tuiles > .tuile { display: grid !important; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; width: 100%; min-height: 56px; padding: 10px 2px; background: none !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.09) !important; border-radius: 0 !important; box-shadow: none !important; text-align: left; grid-column: auto !important; }
  .col-centre .tuiles > .tuile::before { content: ""; grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
  .col-centre .tuiles > .tuile.actif::before { background: var(--texte); border-color: var(--texte); }
  .col-centre .tuiles > .tuile .lib { grid-column: 2; font-size: 17px; color: var(--texte) !important; text-transform: none; letter-spacing: 0; }
  .col-centre .tuiles > .tuile .delta { grid-column: 2; font-size: 13px; }
  .col-centre .tuiles > .tuile .chiffre { grid-column: 3; grid-row: 1 / span 2; font-size: 20px; font-weight: 700; text-align: right; }
  .col-centre .tuiles > .tuile .chiffre small, .col-centre .tuiles > .tuile .chiffre span { font-size: 12px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* === Barres et boutons iPhone, proportions VICOBOSS / Apple (Jean-Roch, 2026-11-13) === */
  /* barre du haut : 52 px, logo TRAIN SMARTER à gauche, icônes rondes 36 px à droite, titre caché (l'onglet actif le dit déjà) */
  .entete { height: 52px !important; min-height: 52px; padding: 0 16px !important; display: flex; align-items: center; gap: 8px; }
  .entete .titre-page { display: none !important; }
  .entete #logo-marque { width: 40px; height: 44px; background: url("/logo") -23px -9px / 84px 67px no-repeat; flex: none; }
  .entete #logo-marque .marque { display: none !important; }
  .entete .droite { margin-left: auto; display: flex; gap: 8px; align-items: center; }
  .entete .droite > button { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: var(--vb-r-pill); display: grid; place-items: center; }
  /* barre du bas : 4 onglets visibles, icône 24 px au-dessus d'un libellé 10 px, comme la barre d'onglets d'iOS */
  .barre-bas { height: calc(56px + env(safe-area-inset-bottom)) !important; padding: 0 0 env(safe-area-inset-bottom) !important; align-items: stretch; }
  .barre-bas a { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 0 !important; border-radius: 0 !important; background: none !important; }
  .barre-bas a .ic { width: 24px; height: 24px; }
  .barre-bas a span { font-size: 10px !important; font-weight: 500; letter-spacing: .01em; line-height: 1.1; text-align: center; white-space: nowrap; }
  .barre-bas a.actif { color: var(--accent) !important; }
  /* boutons : texte toujours au centre, police système Apple ; 17 px semi-gras (bouton principal), 15 px (secondaire), 13 px (petit) */
  button, .bouton, a.bouton { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
  .bouton, a.bouton, button.bouton { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
  .bouton.principal, .bouton.plein, button[type=submit] { font-size: 17px; }
  .bouton.petit, .bouton.mini { min-height: 32px; font-size: 13px; }
  .choix button, .vb-selecteur button { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 600; }
}

@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* bande des jours iPhone : 3 semaines côte à côte, défilement avec inertie, aimantée semaine par semaine (Jean-Roch, 2026-11-13) */
  .vb-bande.vb-bande3 { display: flex !important; gap: 0 !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .vb-bande.vb-bande3::-webkit-scrollbar { display: none; }
  .vb-bande3 .vb-sem { flex: 0 0 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* barres : encoche du haut respectée, hauteurs cohérentes, éléments flottants calés sur la barre du bas (2026-11-13) */
  :root { --h-entete: 52px; }
  #app { grid-template-rows: calc(var(--h-entete) + env(safe-area-inset-top, 0px)) auto 1fr auto; }
  .entete { height: calc(var(--h-entete) + env(safe-area-inset-top, 0px)) !important; min-height: 0; padding: env(safe-area-inset-top, 0px) 16px 0 !important; box-sizing: border-box; }
  .feuille { max-height: calc(var(--vb-vvh, 100dvh) - var(--h-entete) - env(safe-area-inset-top, 0px) - 8px); }
  .barre-bas { background: var(--entete); border-top: 1px solid var(--vb-trait) !important; }
  .barre-bas a { min-height: 0 !important; padding: 5px 0 4px !important; }
  .barre-bas a:active { transform: none; opacity: .6; }
  .outils-plan #nv, .vb-dock { bottom: calc(var(--vb-h-bas, calc(56px + env(safe-area-inset-bottom, 0px))) + 14px); }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* === Audit des boutons iPhone : texte centré, tailles Apple, cible 44 px (2026-11-13) === */
  button { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
  button:not(.puce-s):not(.vb-eq):not(.tuile):not(.carte-client):not(.ligne-liste):not(.vb-k-i):not(.vb-plus-l):not(.vb-jt):not(.vb-ag-l):not(.vb-lien) { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
  .bouton.vb-principal, .vb-cs-cta { font-size: 17px; font-weight: 600; min-height: 50px; }
  .choix.vb-selecteur > button, .choix button, .vb-selecteur button { min-height: 44px; font-size: 13px; }
  .bouton.petit, .bouton.mini { min-height: 44px; }
  .col-centre > div > .ligne-liste:first-child #vc { min-height: 44px; font-size: 15px; font-weight: 600; }
  .vb-gelule { justify-content: center; min-height: 44px; font-size: 13px; padding: 0 16px; }
  .outils-plan.vb-opts .vb-gelule { justify-content: flex-start; font-size: 17px; }
  .vb-rond, .mod-x, .vb-video, .plus-j, .coller-j, .pastille-couleur { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  .vb-mus, .vb-cl-p, .mon-puce { min-height: 44px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
  .vb-mus-leg .vb-mus { min-height: 0; font-size: 11px; }
  .vb-lien { min-height: 44px; font-size: 13px; padding: 0 4px; }
  .l-act .vb-det { min-height: 44px; font-size: 13px; }
  .vb-k-i { font-size: 15px; }
  .vb-plus-fiche, .outils:has(#rech) #nv-client { border-radius: var(--vb-r-pill); }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* Tableau de bord allégé : la ligne entière est tappable, plus de gélules « Planifier » répétées (2026-11-13) */
  .vb-l-suite { position: relative; }
  .vb-l-suite .vb-suite { position: absolute !important; inset: 0; opacity: 0; min-height: 0 !important; z-index: 1; }
  .vb-l-suite::after { content: "\203A"; margin-left: auto; font-size: 22px; color: var(--texte-2); padding-left: 8px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* === Harmonie iPhone (audit Apple, Jean-Roch carte blanche, 2026-11-13) === */
  /* en-tête : logo à gauche, 3 ronds à droite (recherche, Claude, thème) ; « Séance » retiré (le + du Planning le fait) */
  .entete #vb-k-ouvrir { margin-left: auto; width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: var(--vb-r-pill); display: grid; place-items: center; flex: none; }
  .entete #vb-k-ouvrir span, .entete #vb-k-ouvrir kbd { display: none !important; }
  .entete .droite { margin-left: 0; }
  .entete #vb-nouv, .entete .vb-acces { display: none !important; }
  /* marges de page identiques partout : 16 px sur les côtés, 12 px entre les blocs */
  .page { padding-left: 16px !important; padding-right: 16px !important; }
  .page > * + * { margin-top: 12px; }
  /* Monitoring / Évolution : contrôles sur une seule rangée qui défile, en gélules de même hauteur */
  .page > .outils.outils-plan:not(.vb-opts):not([hidden]) { display: flex !important; flex-wrap: nowrap !important; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .page > .outils.outils-plan:not(.vb-opts):not([hidden])::-webkit-scrollbar { display: none; }
  .page > .outils.outils-plan:not(.vb-opts):not([hidden]) > * { flex: none !important; width: auto !important; min-height: 36px !important; height: 36px; border-radius: var(--vb-r-pill) !important; padding: 0 14px !important; font-size: 13px !important; white-space: nowrap; }
  .page > .outils.outils-plan:not(.vb-opts):not([hidden]) > span { display: none !important; }
  .page > .outils.outils-plan:not(.vb-opts):not([hidden]) > select { padding-right: 30px !important; }
  /* Clients : les chiffres de charge restent discrets (pas d'alarme rouge sur la liste) */
  .liste-clients .delta, .carte-client .delta, .ligne-liste .neg { color: var(--texte-2) !important; font-weight: 500; }
  /* Tableau de bord : la colonne « à caser » répétée disparaît, la ligne garde nom + séance */
  .vb-ag-l .vb-ag-h, .vb-ag .vb-ag-h { display: none !important; }
  /* cartes et tuiles : un seul rayon, un seul fond, un seul liseré */
  .carte, .vb-tuile-act, .tuile { border-radius: var(--vb-r-m); }
  /* titres de section : même taille partout (17 px semi-gras, comme iOS) */
  .carte > h2, .carte > h3, .carte .titre-carte, .mon-carte > h3 { font-size: 17px !important; font-weight: 600; letter-spacing: -.01em; }
  /* libellés en capitales des tuiles : moins criards (casse normale) */
  .tuile .lib, .vb-tuile .lib, .mon-tuile .lib { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* Tableau de bord, « Mes clients » : une liste façon iOS, une ligne par client (Jean-Roch, 2026-11-13) */
  .vb-tb-tete .pt { display: none; }
  .vb-equipe { display: block !important; background: var(--carte, rgba(255,255,255,.04)); border-radius: var(--vb-r-m); padding: 0 14px; }
  .vb-equipe > .vb-eq { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; width: 100%; padding: 12px 0 !important; margin: 0 !important; background: none !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 !important; box-shadow: none !important; text-align: left; min-height: 0; }
  .vb-equipe > .vb-eq:last-child { border-bottom: 0 !important; }
  .vb-eq .vb-eq-ch { display: none !important; }
  .vb-eq .vb-eq-t { grid-column: 1; display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; }
  .vb-eq .vb-eq-t .avatar { width: 40px; height: 40px; flex: none; font-size: 14px; }
  .vb-eq .vb-eq-t .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .vb-eq .vb-eq-t b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vb-eq .vb-eq-t .muet { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vb-eq .vb-eq-t .zone-pastille { order: -1; width: 8px; height: 8px; margin-right: -4px; }
  .vb-eq .vb-eq-p { grid-column: 1; padding-left: 52px; margin: 4px 0 0 !important; font-size: 13px; border: 0 !important; }
  .vb-eq .vb-eq-p svg { display: none; }
  /* à droite : séances faites / prévues en gros, douleur en dessous ; fatigue cachée quand vide */
  .vb-eq .vb-eq-st { grid-column: 2; grid-row: 1 / span 2; display: flex !important; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; padding: 0; border: 0 !important; }
  .vb-eq .vb-eq-st > div:nth-child(2) { display: none; }
  .vb-eq .vb-eq-st > div { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
  .vb-eq .vb-eq-st > div:first-child b { font-size: 17px; font-weight: 700; }
  .vb-eq .vb-eq-st > div:first-child .muet { order: 2; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  .vb-equipe .vb-eq { grid-template-rows: auto auto; }
  .vb-equipe .vb-eq .vb-eq-p { padding-left: 64px; margin-top: 2px !important; }
  /* à droite : « 0/3 séances » en gras, « Douleur 2/10 » en dessous ; fatigue retirée de la ligne (dans la fiche) */
  .vb-equipe .vb-eq .vb-eq-st > span { display: flex !important; flex-direction: row !important; align-items: baseline; gap: 4px; white-space: nowrap; font-size: 13px; }
  .vb-equipe .vb-eq .vb-eq-st > span:nth-child(2) { display: none !important; }
  .vb-equipe .vb-eq .vb-eq-st > span:first-child { font-size: 17px; font-weight: 700; }
  .vb-equipe .vb-eq .vb-eq-st > span:first-child > .muet { display: none !important; }
  .vb-equipe .vb-eq .vb-eq-st > span:first-child::after { content: "séances"; font-size: 13px; font-weight: 400; color: var(--texte-2); }
  .vb-equipe .vb-eq .vb-eq-st > span > .muet { font-size: 13px; }
}
/* === Séances du planning façon Calendrier Apple (Jean-Roch, 2026-11-14), PC et téléphone :
   fond teinté léger de la couleur du client, barre pleine à gauche, heure et titre colorés, pas d'aplat ni de dégradé === */
.vb-edt .puce-s, .vb-plan-jour .puce-s.vb-bloc-s, .vb-plan-jour .vb-libre .puce-s {
  background: color-mix(in srgb, var(--c, var(--accent)) 20%, transparent) !important;
  border: 0 !important; border-left: 3px solid var(--c, var(--accent)) !important;
  border-radius: var(--vb-r-xs) !important; box-shadow: none !important;
  padding: 6px 10px 6px 10px !important;
}
.vb-edt .puce-s .ps-t, .vb-plan-jour .puce-s .ps-t { color: color-mix(in srgb, var(--c, var(--accent)) 45%, #ffffff) !important; font-weight: 600 !important; }
.vb-edt .puce-s .ps-h, .vb-plan-jour .puce-s .ps-h { color: color-mix(in srgb, var(--c, var(--accent)) 70%, #ffffff) !important; opacity: 1 !important; font-weight: 500; }
.vb-edt .puce-s .ps-qui, .vb-plan-jour .puce-s .ps-qui { color: color-mix(in srgb, var(--c, var(--accent)) 35%, #ffffff) !important; opacity: .9 !important; font-weight: 500; }
.vb-edt .puce-s .ps-m, .vb-plan-jour .puce-s .ps-m { color: color-mix(in srgb, var(--c, var(--accent)) 30%, #ffffff) !important; opacity: .7 !important; }
.vb-edt .puce-s.fait, .vb-plan-jour .puce-s.fait { opacity: .55; }
[data-theme="clair"] .vb-edt .puce-s .ps-t, [data-theme="clair"] .vb-plan-jour .puce-s .ps-t,
[data-theme="clair"] .vb-edt .puce-s .ps-qui, [data-theme="clair"] .vb-plan-jour .puce-s .ps-qui { color: color-mix(in srgb, var(--c, var(--accent)) 75%, #000000) !important; }
[data-theme="clair"] .vb-edt .puce-s .ps-h, [data-theme="clair"] .vb-plan-jour .puce-s .ps-h, [data-theme="clair"] .vb-edt .puce-s .ps-m, [data-theme="clair"] .vb-plan-jour .puce-s .ps-m { color: color-mix(in srgb, var(--c, var(--accent)) 60%, #000000) !important; }

/* === Séances « très belles », façon événements du Calendrier Apple (Jean-Roch, 2026-11-14) === */
.vb-edt .puce-s, .vb-plan-jour .puce-s.vb-bloc-s, .vb-plan-jour .vb-libre .puce-s {
  position: relative;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, rgba(255,255,255,.02)) !important;
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 22%, transparent) !important;
  border-radius: var(--vb-r-s) !important;
  padding: 9px 12px 9px 20px !important;
  box-shadow: none !important;
  transition: none;
}
.vb-edt .puce-s::before, .vb-plan-jour .puce-s::before {
  content: "" !important; display: block !important; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 4px;
  border-radius: var(--vb-r-pill); background: var(--c, var(--accent)) !important; opacity: 1 !important;
}
.vb-edt .puce-s .ps-t, .vb-plan-jour .puce-s .ps-t { color: rgba(255,255,255,.96) !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: -.01em; line-height: 1.25; }
.vb-edt .puce-s .ps-qui, .vb-plan-jour .puce-s .ps-qui { color: color-mix(in srgb, var(--c, var(--accent)) 60%, #ffffff) !important; font-weight: 600 !important; opacity: 1 !important; }
.vb-edt .puce-s .ps-h, .vb-plan-jour .puce-s .ps-h { color: color-mix(in srgb, var(--c, var(--accent)) 55%, #ffffff) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .01em; }
.vb-edt .puce-s .ps-m, .vb-plan-jour .puce-s .ps-m { color: rgba(235,235,245,.55) !important; font-size: 12px !important; font-weight: 500; opacity: 1 !important; margin-top: 2px; }
.vb-plan-jour .vb-libre { gap: 8px !important; }
.vb-edt .puce-s:active, .vb-plan-jour .puce-s:active { background: color-mix(in srgb, var(--c, var(--accent)) 24%, rgba(255,255,255,.02)) !important; }
.vb-edt .puce-s.fait, .vb-plan-jour .puce-s.fait { opacity: .5; }
[data-theme="clair"] .vb-edt .puce-s .ps-t, [data-theme="clair"] .vb-plan-jour .puce-s .ps-t { color: #1c1c1e !important; }
[data-theme="clair"] .vb-edt .puce-s .ps-m, [data-theme="clair"] .vb-plan-jour .puce-s .ps-m { color: rgba(60,60,67,.6) !important; }
.vb-edt .puce-s::before, .vb-plan-jour .puce-s::before { position: absolute !important; left: 7px !important; top: 8px !important; bottom: 8px !important; height: auto !important; width: 4px !important; margin: 0 !important; transform: none !important; }
.vb-edt .puce-s.vb-bloc-s { position: absolute !important; }

@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* === Éditeur de séance iPhone simplifié (Jean-Roch, 2026-11-14 : « fait pour gagner du temps ») ===
     une carte par exercice : le nom, puis Séries × Reps · Charge · RPE en une ligne, la consigne en dessous ;
     groupe, monter/descendre, dupliquer retirés de l'écran (glisser ≡ et « Détails » restent) ; le bas ne recouvre plus rien */
  #e-lignes { counter-reset: lig; }
  #e-lignes::before { content: "Séries      Reps      Charge      RPE"; display: block; white-space: pre; font-size: 12px; font-weight: 600; color: var(--texte-2); letter-spacing: .02em; margin: 0 4px 6px; }
  #e-lignes .lig { counter-increment: lig; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); border-radius: var(--vb-r-m); padding: 12px !important; margin: 0 0 10px !important; }
  #e-lignes .lig .l-ex { grid-column: 1 / -1 !important; grid-row: 1; font-size: 17px !important; font-weight: 600; padding-right: 44px !important; }
  #e-lignes .lig .l-series { grid-column: 1 !important; grid-row: 2; }
  #e-lignes .lig .l-reps { grid-column: 2 !important; grid-row: 2; }
  #e-lignes .lig .l-charge { grid-column: 3 !important; grid-row: 2; }
  #e-lignes .lig .l-rpe { grid-column: 4 !important; grid-row: 2; }
  #e-lignes .lig .l-cons { grid-column: 1 / -1 !important; grid-row: 3; }
  #e-lignes .lig input { min-height: 44px; font-size: 17px !important; text-align: center; padding: 0 6px !important; border-radius: var(--vb-r-s) !important; }
  #e-lignes .lig .l-ex, #e-lignes .lig .l-cons { text-align: left; padding-left: 12px !important; }
  #e-lignes .lig .l-bloc, #e-lignes .lig .l-repos, #e-lignes .lig [data-a="haut"], #e-lignes .lig [data-a="bas"], #e-lignes .lig [data-a="dup"], #e-lignes .lig .unite, #e-lignes .lig .l-unite { display: none !important; }
  #e-lignes .lig .l-act { grid-column: 1 / -1 !important; grid-row: 4; display: flex !important; justify-content: flex-start; gap: 8px; position: static; }
  #e-lignes .lig .l-act [data-a="x"] { position: absolute; top: 18px; right: 18px; width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; border-radius: var(--vb-r-pill); background: rgba(255,255,255,.08); }
  #e-lignes .lig { position: relative; }
  #e-lignes .lig .l-act .vb-det { min-height: 36px !important; font-size: 13px; }
  /* le bas de l'éditeur : fond plein, ne recouvre plus les exercices ; « Enregistrer » en grand */
  .feuille .vb-pied { position: sticky; bottom: 0; background: var(--fond-feuille, var(--fond, #0b0e1a)); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) !important; margin-top: 8px; z-index: 3; box-shadow: 0 -1px 0 rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 8px; }
  .feuille .vb-pied .vb-principal { order: -1; flex: 1 1 100%; min-height: 50px; font-size: 17px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  #e-lignes::before { content: "Séries Reps Charge RPE" !important; white-space: normal !important; text-align: justify; text-align-last: justify; padding: 0 30px 0 26px; }
  .feuille .vb-pied { width: 100%; box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; }
  .feuille .vb-pied > *:not(.vb-principal):not(.vb-espace) { flex: 1 1 0; min-width: 0; justify-content: center; }
  .feuille .vb-pied .vb-espace { display: none; }
}

/* PC : la colonne des modèles collée au planning, sans vide (2026-11-14) */
.plan.vb-plan-semaine { column-gap: 10px !important; gap: 10px !important; }
.plan-obj > .carte { width: 100% !important; box-sizing: border-box; margin-right: 0 !important; }
/* « Voir comme … » : un simple œil blanc rond, l'en-tête garde la place pour le nom (2026-11-14) */
#vc { font-size: 0 !important; gap: 0 !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; padding: 0 !important; border-radius: var(--vb-r-pill) !important; display: inline-grid !important; place-items: center; flex: none; }
#vc svg { width: 20px; height: 20px; color: #fff; stroke: #fff; margin: 0 !important; }
#vc { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #fff !important; box-shadow: none !important; }

/* === Audit Apple PC + téléphone (Jean-Roch, 2026-11-14 : « soit critique ») === */
/* 1. titres des chiffres : gris ; la couleur ne sert qu'à alerter */
.tuile .lib, .vb-tuile-act .lib, .vb-tb-chiffre .lib, .tuiles .lib { color: var(--texte-2) !important; }
.tuile[data-k="alertes"] .lib, .vb-tuile-act[data-k="alertes"] .lib, .tuile.alerte .lib { color: var(--zone-forte, #EB3B30) !important; }
/* 2. petits titres en casse normale, 13 px, gris */
.mon-tuile .lib, .ev-tuile .lib, .tuile .lib, .kpi .lib, .vb-kpi span, .tuiles .delta + .lib { text-transform: none !important; letter-spacing: 0 !important; }
.muet.pt, .pt.muet { font-size: 13px; }
/* 3. lignes « À surveiller » / « Tâches » : la ligne entière se clique, flèche › (PC aussi) */
.vb-l-suite { position: relative; cursor: pointer; }
.vb-l-suite .vb-suite { position: absolute !important; inset: 0; opacity: 0; z-index: 1; }
.vb-l-suite::after { content: "\203A"; margin-left: auto; font-size: 22px; color: var(--texte-2); padding-left: 8px; }
.vb-l-suite:hover { background: rgba(255,255,255,.03); }
/* 4. en-tête : « Accès local » retiré (dans Paramètres) */
.entete .vb-acces { display: none !important; }
/* 6. arrondis et respirations homogènes */
.carte { border-radius: var(--vb-r-l); }
.tuile, .vb-tuile-act { border-radius: var(--vb-r-m); }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* audit 2026-11-14 : cibles de 44 px partout */
  .page > .outils.outils-plan:not(.vb-opts):not([hidden]) > * { height: 44px !important; min-height: 44px !important; }
  #vc, .vb-plus-fiche { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
  .vb-retour-m, .periodes button, .choix.vb-selecteur > button, .carte > .ligne-liste, button.ligne-liste { min-height: 44px !important; }
}

/* audit 2026-11-14 : lisibilité PC et téléphone (tableaux 13 px, titres de section 12 px, axes des graphiques 11 px) */
td, th { font-size: 13px !important; }
.titre-section { font-size: 12px !important; }
.carte svg text, .graphe svg text, .courbe svg text { font-size: 11px !important; }

/* === Audit des boutons PC, façon macOS (Jean-Roch, 2026-11-14) ===
   avant : 12 hauteurs différentes (24 à 40 px) et 6 tailles de texte (10 à 13,5 px).
   après : 3 familles seulement, texte centré, police système, pas d'espacement de lettres :
   - boutons : 36 px, 14 px semi-gras
   - choix, périodes, gélules de filtre : 30 px, 13 px
   - ronds (icône seule) : 36 px ; petits ronds dans les cases : 28 px */
@media (min-width: 900px) and (pointer: fine), (min-width: 1100px) {
  button { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: normal !important; }
  .bouton, .bouton.sec, .bouton.vb-principal, .vb-gelule, .entete .vb-boite-bt, .entete .vb-nouv, .rp-pdf, #rp-pdf {
    height: 36px !important; min-height: 36px !important; padding-top: 0 !important; padding-bottom: 0 !important;
    font-size: 14px !important; font-weight: 600 !important; line-height: 1 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px; white-space: nowrap;
  }
  .bouton.petit, .bouton.mini { height: 30px !important; min-height: 30px !important; font-size: 13px !important; }
  .choix.vb-selecteur > button, .choix button, .periodes button, .mon-puce {
    height: 30px !important; min-height: 30px !important; padding-top: 0 !important; padding-bottom: 0 !important;
    font-size: 13px !important; line-height: 1 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
  }
  .vb-rond, .entete .vb-theme-bt { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; padding: 0 !important; display: inline-grid !important; place-items: center !important; }
  .plus-j, .mod-x { width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; padding: 0 !important; display: inline-grid !important; place-items: center !important; }
  select { height: 36px !important; min-height: 36px !important; font-size: 13px !important; }
  .info-pt { width: 20px !important; height: 20px !important; min-width: 20px !important; padding: 0 !important; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important; font-size: 12px !important; font-weight: 600 !important; font-style: normal !important; display: inline-grid !important; place-items: center !important; line-height: 1 !important; }
}
/* téléphone : le « i » d'aide en police système aussi (plus de Georgia) */
.info-pt { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important; font-style: normal !important; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  /* audit des boutons iPhone (2026-11-14) : 3 tailles de texte seulement (17 principal, 15 boutons, 13 choix et gélules) */
  .info-pt { width: 24px !important; height: 24px !important; min-width: 24px !important; flex: none !important; padding: 0 !important; font-size: 13px !important; font-weight: 600 !important; display: inline-grid !important; place-items: center !important; line-height: 1 !important; overflow: visible !important; }
  .vb-rep-titre { min-height: 44px !important; }
  .rp-raccourcis .bouton, .rp-raccourcis button { font-size: 13px !important; min-height: 44px !important; }
  .periodes button { font-size: 13px !important; }
  .entete .vb-k-pill, .entete .vb-boite-bt { font-size: 15px !important; }
  .bouton.sec:not(.petit):not(.mini) { font-size: 15px; }
}

/* === Clients : suivi administratif (2026-11-16) === */
.adm { display: grid; gap: 12px; }
.adm-entete { display: flex; align-items: center; gap: 12px; }
.adm-entete .avatar { width: 52px; height: 52px; font-size: 17px; flex: none; }
.adm-nom { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.adm-plus { position: relative; }
.adm-plus summary { list-style: none; cursor: pointer; font-weight: 700; }
.adm-plus summary::-webkit-details-marker { display: none; }
.adm-menu { position: absolute; right: 0; top: 44px; z-index: 20; display: grid; min-width: 210px; background: #1c1c1e; border: 1px solid rgba(255,255,255,.12); border-radius: var(--vb-r-m); padding: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.adm-menu button { text-align: left; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: var(--vb-r-s); cursor: pointer; }
.adm-menu button:hover { background: rgba(255,255,255,.08); }
[data-theme="clair"] .adm-menu { background: #fff; border-color: rgba(0,0,0,.1); }
.adm-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.adm-carte { padding: 14px 16px; display: grid; gap: 2px; }
.adm-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.adm-tete h3 { margin: 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.adm-l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.adm-l:last-child { border-bottom: 0; }
.adm-l > span { color: var(--texte-2); flex: none; }
.adm-l > b { font-weight: 500; text-align: right; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.adm-l.alerte > span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: var(--vb-r-pill); background: #ff9f0a; margin-right: 6px; vertical-align: middle; }
.adm-formule { display: grid; gap: 2px; padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: var(--vb-r-s); margin-bottom: 4px; }
.adm-formule b { font-size: 16px; }
.adm-formule span { font-size: 13px; color: var(--texte-2); }
.adm-jauge { display: inline-block; width: 70px; height: 6px; background: rgba(255,255,255,.1); border-radius: var(--vb-r-pill); overflow: hidden; }
.adm-jauge i { display: block; height: 100%; background: #34c759; }
.adm-etat { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--vb-r-pill); background: color-mix(in srgb, var(--e) 18%, transparent); color: var(--e); white-space: nowrap; }
.adm-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 8px; }
.adm-chiffres.col { grid-template-columns: 1fr; }
.adm-chiffres > div { display: grid; gap: 2px; padding: 10px 12px; background: rgba(255,255,255,.04); border-radius: var(--vb-r-s); }
.adm-chiffres span { font-size: 12px; color: var(--texte-2); }
.adm-chiffres b { font-size: 19px; font-weight: 700; }
.adm-chiffres .rouge b, .rouge { color: #ff453a; }
.orange { color: #ff9f0a; }
.adm-rapide { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; border: 1px dashed rgba(255,255,255,.22); background: none; color: inherit; font: inherit; font-size: 14px; border-radius: var(--vb-r-s); cursor: pointer; margin-bottom: 6px; }
.adm-rapide:hover { background: rgba(255,255,255,.05); }
.adm-ps { display: grid; }
.adm-p { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.adm-p:last-child { border-bottom: 0; }
.adm-p .grow { display: grid; gap: 1px; min-width: 0; }
.adm-p .grow b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-p-d { width: 70px; flex: none; font-size: 12px; color: var(--texte-2); }
.adm-p-m { font-size: 15px; white-space: nowrap; }
.adm-p.retard .adm-p-d, .adm-p.retard .adm-p-m { color: #ff453a; }
.adm-p.attente .adm-p-d { color: #ff9f0a; }
.adm-encaisser { height: 30px; padding: 0 10px; font-size: 13px; }
.adm-acces { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--texte-2); padding: 10px 12px; background: rgba(255,255,255,.04); border-radius: var(--vb-r-s); margin-top: 6px; }
.adm-notes { font-size: 14px; padding: 10px 12px; background: rgba(255,255,255,.04); border-radius: var(--vb-r-s); margin-top: 6px; line-height: 1.45; }
.adm-vide { font-size: 14px; color: var(--texte-2); padding: 8px 0; }
.adm-caisse h3, .col-detail .carte h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.adm-e { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.adm-e:last-child { border-bottom: 0; }
.adm-e .grow { display: grid; gap: 1px; min-width: 0; }
.adm-e.retard > b { color: #ff453a; }
.carte-client .val .adm-etat { font-size: 11px; }
@media (max-width: 1299px) { .adm-grille { grid-template-columns: 1fr; } }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  .adm-nom { font-size: 20px; }
  .adm-chiffres b { font-size: 17px; }
  .adm-p, .adm-e { min-height: 44px; }
  .adm-encaisser { height: 36px; }
  .adm-rapide { height: 44px; }
}

/* === Éditeur de séance : liste d'exercices maison, filtrable (2026-11-16) === */
.ac-filtre { margin: 0 0 10px; }
.ac-filtre label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texte-2); flex-wrap: wrap; }
.ac-filtre select { min-width: 220px; border-radius: var(--vb-r-pill); }
.ac-liste { position: fixed; z-index: 9999; overflow-y: auto; background: #1c1c1e; border: 1px solid rgba(255,255,255,.14); border-radius: var(--vb-r-m); box-shadow: 0 12px 32px rgba(0,0,0,.5); padding: 4px; overscroll-behavior: contain; }
[data-theme="clair"] .ac-liste { background: #fff; border-color: rgba(0,0,0,.12); }
.ac-o { display: grid; gap: 1px; width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 8px 10px; border-radius: var(--vb-r-s); cursor: pointer; }
.ac-o b { font-size: 14px; font-weight: 600; }
.ac-o span { font-size: 12px; color: var(--texte-2); }
.ac-o.sel, .ac-o:hover { background: rgba(79,140,255,.22); }
.ac-t { font-size: 12px; font-weight: 600; color: var(--texte-2); padding: 6px 10px 4px; }
.ac-vide { font-size: 13px; color: var(--texte-2); padding: 10px; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  .ac-filtre select { flex: 1 1 100%; height: 44px; }
  .ac-o { min-height: 44px; }
  .ac-o b { font-size: 15px; }
}

/* === Bibliothèque : filtres groupe musculaire / pattern de mouvement (2026-11-16) === */
.bib-filtres { display: grid; gap: 10px; margin: 10px 0; }
.bib-f-l { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bib-f-t { flex: 1 1 100%; font-size: 12px; font-weight: 600; color: var(--texte-2); }
.bib-f { height: 30px; padding: 0 12px; border-radius: var(--vb-r-pill); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.bib-f.on { background: #fff; color: #1c1c1e; border-color: #fff; font-weight: 600; }
[data-theme="clair"] .bib-f.on { background: #1c1c1e; color: #fff; }
.bib-f-r { font-size: 13px; color: var(--texte-2); display: flex; align-items: center; gap: 10px; }
.bib-f-r b { color: inherit; font-size: 15px; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  .bib-f-l { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .bib-f-l::-webkit-scrollbar { display: none; }
  .bib-f-t { flex: none; position: sticky; left: 0; }
  .bib-f { height: 36px; flex: none; }
}

/* === Onglet Programmation : macro / méso / microcycles (Jean-Roch, 2026-11-14) === */
.cy-page { display: flex; flex-direction: column; gap: 12px; }
.cy-barre-outils { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cy-barre-outils select { min-width: 180px; border-radius: var(--vb-r-pill); }
.cy-saison { padding: 14px 16px 12px; }
.cy-s-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cy-s-tete h3, .cy-arbre h3 { margin: 0; font-size: 17px; font-weight: 600; }
.cy-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--texte-2); }
.cy-leg span { display: inline-flex; align-items: center; gap: 5px; }
.cy-leg i { width: 8px; height: 8px; border-radius: var(--vb-r-pill); display: inline-block; }
.cy-leg i.v { background: rgba(255,255,255,.75); }
.cy-leg i.n { background: #ff5a4f; }
.cy-frise-cadre { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.cy-legende-g { display: grid; grid-template-rows: 22px 30px 30px 18px 26px 44px 22px; font-size: 11px; color: var(--texte-2); }
.cy-legende-g span { display: flex; align-items: center; }
.cy-legende-g span:nth-child(1) { grid-row: 2; }
.cy-legende-g span:nth-child(2) { grid-row: 3; }
.cy-legende-g span:nth-child(3) { grid-row: 5; }
.cy-legende-g span:nth-child(4) { grid-row: 6; }
.cy-legende-g span:nth-child(5) { grid-row: 7; }
.cy-frise { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain; }
.cy-piste { position: relative; height: 196px; }
.cy-ligne-mois { position: relative; height: 22px; }
.cy-mois { position: absolute; top: 2px; font-size: 11px; font-weight: 600; color: var(--texte-2); padding-left: 4px; border-left: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.cy-ligne { position: relative; }
.cy-l-macro { height: 30px; }
.cy-l-meso { height: 30px; }
.cy-barre { position: absolute; top: 3px; height: 24px; border: 0; padding: 0 8px; display: flex; align-items: center; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; border-radius: var(--vb-r-xs); }
.cy-barre span { overflow: hidden; text-overflow: ellipsis; }
.cy-barre.macro { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.cy-barre.meso { background: color-mix(in srgb, var(--c) 24%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: inset 3px 0 0 var(--c); }
.cy-barre:hover { filter: brightness(1.2); }
.cy-barre { cursor: grab; touch-action: pan-x; user-select: none; -webkit-user-select: none; }
.cy-barre.saisi { cursor: grabbing; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 3px 0 0 var(--c); filter: brightness(1.25); overflow: visible; }
.cy-poignee { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.cy-poignee::after { content: ""; position: absolute; right: 3px; top: 6px; bottom: 6px; width: 2px; background: currentColor; opacity: .45; border-radius: var(--vb-r-pill); }
.cy-bulle { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); background: #fff; color: #1c1c1e; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--vb-r-pill); white-space: nowrap; pointer-events: none; }
.cy-sem.cible { background: rgba(79,140,255,.18); box-shadow: inset 0 0 0 1px #4f8cff; border-radius: var(--vb-r-s); }
.cy-l-macro, .cy-l-meso { overflow: visible; }
.cy-piste { padding-top: 0; }
.cy-echeance { position: absolute; top: 0; width: 12px; height: 12px; margin-left: -6px; background: #bf5af2; transform: rotate(45deg); border-radius: var(--vb-r-xs); pointer-events: auto; }
.cy-l-sem { height: 114px; }
.cy-sem { position: absolute; top: 0; height: 112px; border: 0; background: none; padding: 0 2px; display: grid; grid-template-rows: 18px 26px 44px 22px; align-items: center; justify-items: stretch; font: inherit; color: inherit; cursor: pointer; border-left: 1px solid rgba(255,255,255,.05); }
.cy-sem:hover { background: rgba(255,255,255,.04); }
.cy-sem.sel { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); border-radius: var(--vb-r-s); }
.cy-num { font-size: 11px; color: var(--texte-2); text-align: center; }
.cy-sem.auj .cy-num { color: #fff; font-weight: 700; }
.cy-type { height: 22px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--t, transparent); border-radius: var(--vb-r-xs); opacity: .9; }
.cy-type:empty { background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 4px, transparent 4px 8px); }
.cy-vi { height: 40px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.cy-vi i { width: 7px; border-radius: var(--vb-r-xs) var(--vb-r-xs) 0 0; display: block; }
.cy-vi i.v { background: rgba(255,255,255,.75); }
.cy-vi i.n { background: #ff5a4f; }
.cy-pts { font-size: 11px; color: var(--texte-2); text-align: center; }
.cy-pts b { color: #fff; }
.cy-auj { position: absolute; top: 22px; bottom: 0; width: 2px; margin-left: -1px; background: #ff5a4f; pointer-events: none; }
.cy-bas { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.cy-detail { padding: 14px 16px; }
.cy-d-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cy-d-titre { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cy-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--vb-r-pill); background: color-mix(in srgb, var(--t) 25%, transparent); color: color-mix(in srgb, var(--t) 60%, #fff); }
.cy-reglages { display: grid; gap: 10px; margin-bottom: 14px; }
.cy-types { display: flex; flex-wrap: wrap; gap: 6px; }
.cy-t { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--texte-2); font: inherit; font-size: 13px; padding: 0 12px; height: 30px; border-radius: var(--vb-r-pill); cursor: pointer; }
.cy-t.on { background: color-mix(in srgb, var(--t) 28%, transparent); border-color: var(--t); color: #fff; font-weight: 600; }
.cy-curseurs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cy-curseurs label { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; font-size: 13px; color: var(--texte-2); align-items: center; }
.cy-curseurs output { color: #fff; font-weight: 700; text-align: right; }
.cy-curseurs input { grid-column: 1 / -1; width: 100%; }
#cy-vol { accent-color: #e5e5ea; }
#cy-int { accent-color: #ff5a4f; }
#cy-notes { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 14px; }
.cy-hors { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--texte-2); margin-bottom: 14px; }
.cy-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cy-jour { min-height: 150px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--vb-r-m); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cy-jour.auj { border-color: rgba(255,90,79,.6); }
.cy-jour.cible { background: rgba(79,140,255,.12); border-color: #4f8cff; }
.cy-j-t { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--texte-2); }
.cy-j-t b { color: #fff; font-size: 15px; }
.cy-plus { width: 28px; height: 28px; border-radius: var(--vb-r-pill); border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cy-plus:hover { background: rgba(255,255,255,.16); }
.cy-seance { text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 2px; padding: 8px 8px 8px 12px; background: color-mix(in srgb, var(--c, #4f8cff) 16%, transparent); box-shadow: inset 3px 0 0 var(--c, #4f8cff); border-radius: var(--vb-r-s); }
.cy-seance.fait { --c: #34c759; opacity: .75; }
.cy-seance.glisse { opacity: .4; }
.cy-s-h { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--c, #4f8cff) 60%, #fff); }
.cy-s-t { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cy-s-m { font-size: 11px; color: var(--texte-2); }
.cy-repos { margin: auto 0; text-align: center; font-size: 12px; color: rgba(235,235,245,.3); }
.cy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cy-arbre { padding: 14px 16px; display: grid; gap: 10px; }
.cy-arbre-macro { display: grid; gap: 4px; }
.cy-arbre-m, .cy-arbre-meso { border: 0; background: none; font: inherit; color: inherit; text-align: left; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--vb-r-s); cursor: pointer; width: 100%; }
.cy-arbre-m { background: rgba(255,255,255,.06); }
.cy-arbre-m .grow, .cy-arbre-meso .grow { display: grid; gap: 2px; min-width: 0; }
.cy-arbre-meso { margin-left: 12px; width: calc(100% - 12px); box-shadow: inset 3px 0 0 var(--c); }
.cy-arbre-meso:hover, .cy-arbre-m:hover { background: rgba(255,255,255,.08); }
.cy-vide { display: grid; gap: 6px; font-size: 14px; color: var(--texte-2); }
.cy-vide b { color: #fff; }
[data-theme="clair"] .cy-barre.macro, [data-theme="clair"] .cy-j-t b, [data-theme="clair"] .cy-pts b, [data-theme="clair"] .cy-curseurs output, [data-theme="clair"] .cy-vide b, [data-theme="clair"] .cy-plus, [data-theme="clair"] .cy-t.on { color: #1c1c1e; }
[data-theme="clair"] .cy-vi i.v, [data-theme="clair"] .cy-leg i.v { background: #3a3a3c; }
@media (max-width: 1199px) { .cy-bas { grid-template-columns: 1fr; } }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1099px) {
  .cy-barre-outils select { flex: 1 1 100%; height: 44px; }
  .cy-barre-outils .vb-espace { display: none; }
  .cy-barre-outils .vb-gelule { flex: 1 1 0; }
  .cy-frise-cadre { grid-template-columns: 52px minmax(0, 1fr); }
  .cy-legende-g { font-size: 10px; }
  .cy-leg { display: none; }
  .cy-jours { grid-template-columns: 1fr; }
  .cy-jour { min-height: 0; }
  .cy-repos { margin: 0; text-align: left; }
  .cy-curseurs { grid-template-columns: 1fr; }
  .cy-t { height: 36px; }
  .cy-plus { width: 44px; height: 44px; }
  .cy-seance { min-height: 44px; }
  .cy-s-t { font-size: 15px; }
}
