/* Suivi client My Coach — identité « Athletic Precision » (validée le 18/10/2026) : fond blanc cassé, cartes blanches à
   bordure fine, actions principales noires, police Inter hébergée avec l'application (aucune ressource externe).
   RÈGLE UNIQUE DES COULEURS (tous les écrans : planning, clients, fiche, Pilotage) — la couleur n'est jamais le seul
   indice : chaque état garde un libellé explicite ou une icône.
     ROUGE  : sécurité du client uniquement (précautions à vérifier, douleur signalée).
     ORANGE : action importante à réaliser ou information à valider.
     VERT   : information vérifiée, action réalisée, état confirmé.
     GRIS   : information secondaire, neutre, à vérifier ou indisponible.
     NOIR   : action principale et éléments structurants.
   Les teintes vives de la maquette (vert #10B981, orange #F59E0B) servent aux points et aux fonds légers ; les textes
   utilisent des teintes foncées. Contrastes (WCAG) : textes ≥ 4,5:1 sur blanc et sur le fond ; bordures et graphiques
   ≥ 3:1. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-ExtraBold.woff2") format("woff2"); }
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f4f5f7;       /* fonds passifs, pistes des segments */
  --ink: #111111;             /* noir : texte principal, actions principales (18,9:1) */
  --ink-2: #4b5563;           /* texte courant secondaire (7,6:1) */
  --ink-3: #6b7280;           /* libellés et gris secondaires (4,8:1 ; 4,6:1 sur le fond) */
  --line: #e5e7eb;            /* bordure fine des cartes et séparateurs */
  --line-2: #c9cdd3;          /* bordure discrète des encarts neutres */
  --accent: #111111;
  --accent-ink: #ffffff;
  --rouge: #b91c1c;   --rouge-bord: #ef4444;  --rouge-fond: #fef2f2;  /* sécurité uniquement */
  --orange: #92400e;  --orange-bord: #d97706; --orange-barre: #d97706; --orange-fond: #fffbeb; --orange-point: #f59e0b; /* action importante / à valider */
  --vert: #047857;    --vert-bord: #059669;   --vert-fond: #ecfdf5;   --vert-point: #10b981;  /* vérifié / réalisé / confirmé */
  --gris-point: #8a9099;      /* information à vérifier (3,2:1) */
  /* Anciens noms conservés (mêmes valeurs que la règle ci-dessus) : aucun autre jeu de couleurs. */
  --danger: var(--rouge);   --danger-bg: var(--surface);
  --warn: var(--orange);    --warn-bg: var(--surface);
  --info: var(--ink-2);     --info-bg: var(--surface);
  --ok: var(--vert);        --ok-bg: var(--surface);
  --fict: var(--ink-2);     --fict-bg: var(--surface-2);
  --radius: 16px;             /* cartes et modules */
  --radius-ctl: 8px;          /* boutons, champs */
  --shadow: none;             /* profondeur par bordures fines, sans ombre */
  --shadow-flottant: 0 8px 24px -4px rgba(17,17,17,.08), 0 2px 6px -1px rgba(17,17,17,.04);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); letter-spacing: -.005em; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.boot { padding: 2rem; color: var(--ink-3); }

/* ── Barre supérieure ── */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; max-width: 1200px; margin: 0 auto; }
.top-row img { height: 26px; width: auto; }
.top-row .grow { flex: 1; }
.studio-select { min-height: 40px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; max-width: 52vw; }
.coach { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
nav.tabs { display: flex; gap: .25rem; padding: 0 .75rem; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { padding: .6rem .8rem; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
nav.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.badge-count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .25em; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; text-align: center; line-height: 1.5; }

.banner { padding: .5rem 1rem; font-size: 13px; text-align: center; }
.banner.fict { background: var(--surface-2); color: var(--ink-2); font-weight: 600; border-bottom: 1px dashed var(--line-2); }
.banner.stale { background: var(--surface); color: var(--orange); box-shadow: inset 4px 0 0 var(--orange-bord); border-bottom: 1px solid var(--line); }
.banner.err { background: var(--surface); color: var(--orange); font-weight: 600; box-shadow: inset 4px 0 0 var(--orange-bord); border-bottom: 1px solid var(--line); }

main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 22px; margin: .2rem 0 1rem; }
h2 { font-size: 17px; margin: 0 0 .75rem; }
h3 { font-size: 15px; margin: 1rem 0 .5rem; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ── Cartes ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.tight { padding: .75rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .grid.two { grid-template-columns: 1.3fr 1fr; } }

/* ── Planning ── */
.datebar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.datebar .date { font-weight: 700; font-size: 17px; text-transform: capitalize; min-width: 12ch; }
.slot { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; margin-bottom: .75rem; }
.slot-time { font-weight: 700; font-size: 17px; padding-top: .6rem; }
.slot-meta { font-size: 12px; color: var(--ink-3); margin-bottom: .35rem; }
.slot-clients { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.client-card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; cursor: pointer; box-shadow: var(--shadow); min-height: 44px; }
.client-card:hover, .client-card:focus-visible { border-color: var(--ink-2); outline: none; }
.client-card.cancelled { color: var(--ink-3); text-decoration: line-through; }
.client-name { font-weight: 700; font-size: 16px; }
.client-sub { font-size: 13px; color: var(--ink-2); margin: .15rem 0 .35rem; }

/* ── Pastilles d'alerte (icône + texte, jamais la couleur seule) ── */
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.chip.haute { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); font-weight: 700; }
.chip.moyenne { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); }
.chip.basse { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.chip.ok { background: var(--surface); color: var(--vert); border-color: var(--vert-bord); }
.chip.neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.chip.fict { background: var(--surface-2); color: var(--ink-2); border-style: dashed; border-color: var(--line-2); }
.chip .ico { font-weight: 800; }

/* ── Fiche ── */
.fiche-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fiche-head h1 { margin: 0; }
.safety { border-left: 4px solid var(--ink); }
.safety.prec-a_verifier { border-left-color: var(--rouge); }
.safety.prec-non_verifiee { border-left-color: var(--orange-bord); }
.safety.empty { border-left-color: var(--line); background: var(--surface); }
.onb-banner { border-left: 4px solid var(--orange-bord); background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.alert-list li { display: flex; gap: .5rem; align-items: baseline; }
.ex-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.ex { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ex.replaced { border-style: dashed; border-color: var(--line-2); background: var(--surface); }
.ex .from { text-decoration: line-through; color: var(--ink-3); margin-right: .25rem; }
.ex .meta { display: block; font-size: 12px; color: var(--ink-3); }
.desc { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; max-height: 320px; overflow: auto; }
.seances { display: grid; gap: .5rem; }
details.seance { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
details.seance > summary { padding: .55rem .75rem; cursor: pointer; display: flex; gap: .5rem; align-items: center; list-style: none; }
details.seance > summary::-webkit-details-marker { display: none; }
details.seance[open] > summary { border-bottom: 1px solid var(--line); }
details.seance .body { padding: .6rem .75rem; }
details.seance.passee { background: var(--surface-2); }
details.seance.passee summary strong { color: var(--ink-2); }
details.seance.courante { border-color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.timeline li { border-left: 3px solid var(--line); padding-left: .65rem; }
.timeline li.victoire { border-left-color: var(--ok); }
.timeline li.defi { border-left-color: var(--line-2); }
.timeline li.vigilance { border-left-color: var(--orange-bord); }
.timeline .who { font-size: 12px; color: var(--ink-3); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.table-wrap { overflow-x: auto; }
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--orange); font-weight: 600; }
.chart { width: 100%; height: 160px; }

/* ── Formulaires ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: .45rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--orange); }
.btn.small { min-height: 32px; padding: .2rem .6rem; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.field { display: grid; gap: .25rem; margin-bottom: .75rem; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.field textarea { min-height: 84px; resize: vertical; }
.fields-inline { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, nav.tabs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.search { flex: 1; min-width: 200px; }

/* ── Onboarding ── */
.steps { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.steps li button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .3rem .7rem; font-size: 13px; cursor: pointer; min-height: 34px; }
.steps li button.done { background: var(--surface); color: var(--vert); border-color: var(--vert-bord); }
.steps li button.current { border-color: var(--ink); font-weight: 700; }

/* ── Dialogue ── */
dialog { border: none; border-radius: var(--radius); padding: 1.25rem; max-width: min(560px, calc(100vw - 2rem)); width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }

/* ── Divers ── */
.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-3); }
.error-box { background: var(--surface); color: var(--orange); border: 1px solid var(--orange-bord); border-left-width: 4px; font-weight: 600; padding: .75rem 1rem; border-radius: 10px; }
#toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 2rem); }
#toast.show { opacity: 1; }
.login { max-width: 380px; margin: 12vh auto; }
.login img { height: 40px; display: block; margin: 0 auto 1rem; }
.prio-row { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .6rem .25rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.prio-row:hover { background: var(--surface-2); }
@media (max-width: 600px) {
  main { padding: .75rem; }
  .slot { grid-template-columns: 1fr; gap: .25rem; }
  .slot-time { padding-top: 0; }
  .coach { display: none; }
}
@media (max-width: 600px) {
  .top-row { gap: .5rem; padding: .5rem .75rem; }
  .top-row img { height: 20px; }
  .studio-select { max-width: 46vw; }
  .top-row .btn.small { padding: .2rem .5rem; font-size: 12px; }
}

/* ═══ v2 : grille horaire, panneau latéral, familles d'alertes ═══ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.block { display: flex; width: 100%; }
.btn.icon { min-width: 40px; }
.btn.link { border: none; background: none; padding: 0 .25rem; min-height: auto; font-weight: 500; color: var(--ink-3); text-decoration: underline; }
.studio-name { font-weight: 700; }
.sync-ind { font-size: 12px; font-weight: 600; text-decoration: none; padding: .25rem .55rem; border-radius: 99px; white-space: nowrap; }
.sync-ind.ok { color: var(--vert); background: var(--surface); border: 1px solid var(--vert-bord); }
.sync-ind.bad { color: var(--orange); background: var(--surface); border: 1px solid var(--orange-bord); }

/* Familles : séance (rouge/orange) · fidélisation (bleu) */
.chip.seance.haute, .chip.seance.moyenne { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); }
/* Fidélisation : action à réaliser (orange, icône ↻) — plus de bleu confondu avec un lien. */
.chip.fidelisation { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); }

/* Planning */
.datebar h1.date { font-size: 19px; margin: 0; text-transform: capitalize; }
.day-summary { margin: 0 0 .25rem; font-size: 15px; }
.legend { margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; }
.day-grid { display: grid; gap: .35rem; }
.slot-row { display: grid; grid-template-columns: 118px 1fr; gap: .75rem; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .6rem; }
/* Créneau passé : plus discret SANS transparence (les textes et les marqueurs de sécurité restent lisibles). */
.slot-row.passe { background: var(--surface-2); }
.slot-row.passe .cell-name { color: var(--ink-2); font-weight: 600; }
.slot-row.next { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.slot-row.encours { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); opacity: 1; }
.slot-head { display: flex; flex-direction: column; gap: .15rem; }
.slot-time { font-weight: 800; font-size: 18px; line-height: 1.2; min-width: 3.1em; }
.slot-info { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.slot-info strong { color: var(--ink-2); }
.tag-live { color: var(--ink); font-weight: 700; }
.coach-l { display: block; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.cell { display: flex; flex-direction: column; gap: .1rem; text-align: left; min-height: 56px; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.cell:hover, .cell:focus-visible { border-color: var(--ink-2); background: var(--surface); outline: none; }
.cell.active { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
.cell-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { font-size: 12px; color: var(--ink-2); }
.cell-marks { display: flex; gap: .25rem; margin-top: .1rem; }
.cell.libre { cursor: default; border-style: dashed; background: transparent; color: var(--ink-3); font-size: 12px; justify-content: center; align-items: center; }
.ok-mark { color: var(--ok); font-weight: 800; }
.mk { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 .3rem; border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 1; }
.mk.prec { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.mk.prec.a-verifier { color: var(--rouge); border-color: var(--rouge); background: var(--rouge-fond); }
.mk.act { background: var(--surface); color: var(--orange); border: 1px solid var(--orange-bord); }
.mk.fid { background: var(--surface); color: var(--orange); border: 1px solid var(--orange-bord); }
.mk.new { background: var(--ink); color: #fff; letter-spacing: .03em; }
.now-line { position: relative; height: 18px; margin: .1rem 0; }
.now-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--ink); }
.now-line span { position: relative; background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 700; padding: 0 .5rem; margin-left: 1rem; }

/* Panneau latéral */
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0,0,0,.12); z-index: 50; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#drawer-overlay { display: none; }
.drawer-body { padding: 1rem 1.1rem 2rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }
.drawer-head h2 { margin: 0; font-size: 20px; }
.safety-banner { display: grid; gap: .15rem; background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--ink); color: var(--ink); border-radius: 10px; padding: .55rem .7rem; margin: .25rem 0 .75rem; }
/* Précautions connues mais non confirmées par un coach : vérification de sécurité nécessaire (rouge). */
.safety-banner.a-verifier { background: var(--rouge-fond); border-color: var(--rouge-bord); border-left-color: var(--rouge); color: var(--rouge); }
.safety-banner.a-verifier span { color: var(--ink); }
.no-prec { margin: .1rem 0 .75rem; }
.xp { border-top: 1px solid var(--line); padding: .75rem 0 .5rem; }
.xp h3 { margin: 0 0 .45rem; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.xp p { margin: .15rem 0; }
.seance-head { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.seance-code { font-size: 20px; font-weight: 800; }
.desc-wrap { margin-top: .4rem; }
.wait { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: .35rem .5rem; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.todo li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .55rem; border-radius: 10px; border: 1px solid var(--line); }
.todo li.haute { background: var(--surface); border-color: var(--orange-bord); box-shadow: inset 4px 0 0 var(--orange-bord); }
.todo li.haute .ico { color: var(--orange); }
.todo li.moyenne { background: var(--surface); border-color: var(--line-2); box-shadow: inset 4px 0 0 var(--orange-bord); }
.todo li.moyenne .ico { color: var(--orange); }
.todo.fid li { background: var(--surface); border-color: var(--line-2); }
.todo.fid li .ico { color: var(--orange); }
.ok-text { color: var(--vert); font-weight: 600; }
.quick-note { margin-top: .6rem; display: grid; gap: .4rem; }
.quick-note textarea { width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.quick-note select { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: .2rem .4rem; background: var(--surface); }
@media (min-width: 1280px) { body.drawer-open main, body.drawer-open .top { margin-right: 600px; } }
@media (max-width: 1279px) { body.drawer-open #drawer-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 40; } }

/* Listes (priorités, clients, programmes) */
.list { padding: .25rem .5rem; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; padding: .65rem .35rem; border: none; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; text-decoration: none; color: inherit; min-height: 48px; }
.list-row:last-child { border-bottom: none; }
.list-row:hover, .list-row:focus-visible { background: var(--surface-2); outline: none; }
.list-row .chips { justify-content: flex-end; }
.tabs-inline { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: .5rem .85rem; font-weight: 600; cursor: pointer; min-height: 42px; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .count { display: inline-block; min-width: 1.5em; margin-left: .3rem; padding: 0 .35em; border-radius: 99px; background: rgba(127,127,127,.2); font-size: 12px; text-align: center; }

@media (max-width: 600px) {
  .slot-row { grid-template-columns: 1fr; gap: .4rem; }
  .slot-head { flex-direction: row; align-items: baseline; gap: .6rem; }
  .coach-l { display: inline; }
  .coach-l::before { content: ' · '; }
  .slot-info { font-size: 13px; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sync-ind { display: none; }
  .list-row { flex-direction: column; align-items: flex-start; }
  .list-row .chips { justify-content: flex-start; }
}

/* ═══ v3 : séances officielles V4 (blocs, patterns, exercices de référence) ═══ */
.seance-meta { font-size: 13px; color: var(--ink-2); margin: .2rem 0 .4rem; }
.rpe { display: inline-block; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 .35rem; font-size: 12px; }
.objs { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .6rem; margin: .2rem 0 .6rem; font-size: 13px; }
.objs dt { font-weight: 700; color: var(--ink-3); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; padding-top: .1rem; }
.objs dd { margin: 0; }
.blocs { display: grid; gap: .5rem; }
.bloc { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; background: var(--surface); }
.bloc header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-bottom: .35rem; }
.bloc-l { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; }
.bloc-t { font-weight: 700; }
.bloc-v { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.bloc p { margin: .2rem 0; }
.consigne { color: var(--ink-2); }
.slot { display: grid; grid-template-columns: 78px 1fr auto; gap: .45rem; align-items: center; padding: .4rem .45rem; margin: .25rem 0; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.slot.vide { border-style: dashed; }
.slot.modifie { background: var(--surface); border-style: dashed; border-color: var(--line-2); }
.slot-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.slot-main { min-width: 0; }
.slot-pat { font-size: 13px; color: var(--ink-2); }
.slot-ex { font-size: 15px; }
.slot-todo { font-size: 13px; color: var(--warn); font-weight: 600; }
.slot-trace { display: block; font-size: 12px; color: var(--ink-3); margin-top: .1rem; }
.slot .picker { grid-column: 1 / -1; display: grid; gap: .4rem; margin-top: .3rem; }
.picker input[name=nom] { width: 100%; min-height: 42px; padding: .5rem .6rem; border: 1px solid var(--ink-2); border-radius: 10px; }
.picker .sug { display: flex; flex-wrap: wrap; gap: .3rem; }
.picker .sug .chip { cursor: pointer; }
table.refs td, table.refs th { padding: .3rem .4rem; }
@media (max-width: 600px) {
  .slot { grid-template-columns: 1fr auto; }
  .slot-role { grid-column: 1 / -1; }
  .bloc-v { margin-left: 0; width: 100%; }
}

/* Statut de suivi et historique importé */
.statut { display: inline-block; margin-top: .25rem; padding: .05rem .5rem; border-radius: 99px; font-size: 12px; font-weight: 600; vertical-align: middle; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
h1 .statut { font-size: 13px; margin-left: .4rem; }
.statut.s-nouveau { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.statut.s-a_completer { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); }
.statut.s-historique_importe { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.card.reprise { border-left: 4px solid var(--orange-bord); }
.card.reprise.a-verifier { border-left-color: var(--orange-bord); }
.warn-text { color: var(--warn); }

.datebar .fraicheur { margin-left: .5rem; white-space: nowrap; }

/* ── Refonte coaching : planning épuré, panneau centré sur la séance ── */
.cell { min-height: 44px; justify-content: center; }
.cell-name { font-size: 15.5px; }
.drawer-body { padding-top: 0; }
.drawer-top { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 1rem 0 .5rem; border-bottom: 1px solid var(--line); }
.drawer-top .drawer-head { margin-bottom: .45rem; }
.drawer-top .safety-banner { margin: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: .5rem; }
.no-prec { margin: 0; font-size: 13px; color: var(--ink-3); }
.seance-du-jour { border-top: 0; padding-top: .6rem; }
.seance-du-jour h3 { font-size: 13px; color: var(--ink-2); }
.seance-du-jour .seance-code { font-size: 22px; }
.seance-vide { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; display: grid; gap: .5rem; justify-items: start; }
.proposition { border: 1px solid var(--line-2); border-left: 4px solid var(--orange-bord); background: var(--surface); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .6rem; display: grid; gap: .35rem; }
.prop-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange); background: var(--surface); border: 1px solid var(--orange-bord); border-radius: 99px; padding: .05rem .55rem; }
details.bloc > summary.bloc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; cursor: pointer; list-style: none; margin-bottom: .35rem; }
details.bloc > summary.bloc-h::-webkit-details-marker { display: none; }
details.bloc { position: relative; }
details.bloc > summary.bloc-h { padding-right: 1.1rem; }
details.bloc > summary.bloc-h::after { content: '▾'; color: var(--ink-3); font-size: 12px; position: absolute; right: .6rem; top: .6rem; }
details.bloc:not([open]) > summary.bloc-h { margin-bottom: 0; }
details.bloc:not([open]) > summary.bloc-h::after { content: '▸'; }
.blocs { display: grid; gap: .5rem; }
.actions-dues h3 { font-size: 12px; }
.actions-dues .todo li { background: var(--surface-2); }
.drawer-pied { display: grid; gap: .6rem; }
@media (min-width: 700px) and (max-width: 1279px) { #drawer { width: min(680px, 92vw); } }

/* ── Pilotage (responsable / administrateur) ─────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: .5rem 0 .75rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem; }
.kpi.doute { border-style: dashed; background: var(--surface-2); }
.kpi-v { font-size: 30px; font-weight: 700; line-height: 1.1; }
.kpi-l { font-weight: 600; }
.kpi-s { font-size: 12px; color: var(--ink-3); }
.regles { margin-bottom: .75rem; color: var(--ink-2); }
.regles ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .6rem; }
.chip-btn { min-height: 40px; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; cursor: pointer; }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-btn .count { font-weight: 400; margin-left: .2rem; }
.pil-row { display: grid; grid-template-columns: 1.1fr 1.4fr .9fr 1.4fr auto; gap: .6rem 1rem; align-items: start; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.pil-row:last-child { border-bottom: 0; }
.pil-row.p-en_retard { box-shadow: inset 4px 0 0 var(--orange-bord); }
.pil-row.p-non_affectee { box-shadow: inset 4px 0 0 var(--line-2); }
.pil-row.p-resolu { background: var(--surface-2); }
.pil-btns { display: flex; flex-direction: column; gap: .35rem; align-items: stretch; }
.pil-form { grid-column: 1 / -1; }
.pil-form:empty { display: none; }
.pil-f { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.pil-f .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; }
.pil-journal { grid-column: 1 / -1; color: var(--ink-2); }
.pil-journal ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.lien { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.prio { color: var(--ink-2); }
.p-en_retard .prio { color: var(--orange); font-weight: 700; }
.p-non_affectee .prio { color: var(--orange); font-weight: 600; }
.niv { display: inline-block; padding: 0 .45rem; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
.niv.n-eleve { background: var(--surface); color: var(--orange); border: 2px solid var(--orange-bord); font-weight: 700; }
.niv.n-modere { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); }
.niv.n-replanifier { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.etat { display: inline-block; padding: 0 .45rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.etat.e-traite { background: var(--surface); color: var(--vert); border-color: var(--vert-bord); }
.etat.e-en_cours { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.res { display: inline-block; margin-left: .3rem; font-weight: 600; }
.res-ok { color: var(--ok); } .res-warn { color: var(--warn); } .res-neutral { color: var(--ink-3); }
.ok-text { color: var(--ok); }
.perimetre ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.actions-confiees li { flex-wrap: wrap; }
.form-traite { flex-basis: 100%; margin-top: .4rem; }
.form-traite textarea { width: 100%; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pil-row { grid-template-columns: 1fr 1fr; }
  .pil-btns { flex-direction: row; flex-wrap: wrap; grid-column: 1 / -1; }
  .pil-btns .btn { min-height: 44px; }
}
@media (max-width: 560px) {
  .pil-row, .pil-f .grid2 { grid-template-columns: 1fr; }
  .kpi-v { font-size: 24px; }
}

/* ── Planning compact par horaire (créneaux du coach ou du studio) ─────────── */
.day-grid { display: grid; gap: .6rem; align-items: start; }
.day-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.day-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day-col { display: grid; gap: .3rem; align-content: start; }
.slot-row.hr { grid-template-columns: 50px 1fr; gap: .5rem; padding: .3rem .45rem; align-items: start; }
.slot-row.hr .slot-time { font-size: 15px; padding-top: .25rem; min-width: 0; }
.crs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; min-width: 0; }
.cr { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.cr + .cr { padding-left: .5rem; border-left: 1px solid var(--line); }
.cr.vide { display: flex; align-items: baseline; gap: .4rem; padding-top: .15rem; padding-bottom: .15rem; }
.cr-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; font-size: 12px; color: var(--ink-3); line-height: 1.3; margin-bottom: .15rem; }
.cr.vide .cr-h { margin: 0; }
.cr-act { font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
.cr-cap { font-variant-numeric: tabular-nums; }
.cr-coach { color: var(--ink-2); }
.cr.sans-coach .cr-coach { color: var(--warn); font-weight: 600; }
.cr-libre { font-size: 12px; color: var(--ink-3); }
.slot-row.hr .cells { display: flex; flex-wrap: wrap; gap: .3rem; }
.slot-row.hr .cells .cell { width: 124px; }
.slot-row.hr .cells .cell.libre { width: auto; min-width: 58px; padding: 0 .55rem; }
.slot-row.hr .cell { min-height: 40px; padding: .25rem .5rem; }
.slot-row.hr .cell-name { font-size: 14.5px; }
.slot-row.hr .cell.libre { min-height: 40px; }
.vue-coach { font-size: 13px; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: var(--ink); color: #fff; }
.filtre-coach select { min-height: 40px; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; max-width: 100%; }
.coach-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: .5rem 1rem; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.coach-row:last-child { border-bottom: 0; }
.coach-row.manque { box-shadow: inset 4px 0 0 var(--warn); }
.coach-row.ok { box-shadow: inset 4px 0 0 var(--ok); }
.coach-assoc { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.coach-assoc select { min-height: 40px; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; max-width: 100%; }
@media (max-width: 700px) {
  .slot-row.hr { grid-template-columns: 1fr; gap: .2rem; }
  .slot-row.hr .cells .cell { width: calc(50% - .15rem); }
  .cr { flex-basis: 100%; }
  .cr + .cr { padding-left: 0; border-left: 0; }
  .coach-row { grid-template-columns: 1fr; }
}

/* ── Onboarding en 4 étapes ──────────────────────────────────────────────── */
.steps.onb { gap: .4rem; }
.steps.onb li { flex: 1 1 0; min-width: 150px; }
.steps.onb li button { width: 100%; min-height: 44px; border-radius: 10px; font-size: 14px; text-align: left; display: flex; align-items: center; gap: .45rem; }
.steps.onb .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 12px; flex: none; }
.steps.onb button.current .num { background: var(--ink); color: #fff; border-color: var(--ink); }
.onb-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.onb-form legend { font-weight: 700; margin-bottom: .45rem; padding: 0; }
.req { font-size: 11px; font-weight: 700; color: var(--orange); background: var(--surface); border: 1px solid var(--orange-bord); border-radius: 99px; padding: .05rem .45rem; margin-left: .3rem; text-transform: uppercase; letter-spacing: .03em; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.opt { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 600; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt.on .muted { color: #e8e8e6; }
.opt:focus-within { box-shadow: 0 0 0 3px rgba(22,23,26,.25); }
.identite { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); margin-bottom: .5rem; }
.identite > div { display: flex; flex-direction: column; }
.lbl { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.confirm { margin: .2rem 0 1rem; font-weight: 600; min-height: 44px; }
.onb-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.bloc-depart { border: 1px solid var(--line) !important; border-radius: 12px; padding: .8rem !important; }
.progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.prog { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; min-height: 88px; }
.prog input { position: absolute; opacity: 0; pointer-events: none; }
.prog strong { font-size: 20px; }
.prog.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.prog:focus-within { box-shadow: 0 0 0 3px rgba(22,23,26,.25); }
.recap h3 { margin: 0 0 .4rem; }
.recap dl { display: grid; grid-template-columns: 140px 1fr; gap: .25rem .8rem; margin: 0 0 .6rem; font-size: 14px; }
.recap dt { color: var(--ink-3); font-weight: 600; }
.recap dd { margin: 0; }
.onb-actions { margin-top: .8rem; gap: .5rem; flex-wrap: wrap; }
.onb-actions .btn { min-height: 44px; }
.no-prec.p-non_verifiee, .p-txt.p-non_verifiee { color: var(--orange); font-weight: 600; }
.no-prec.p-aucune, .p-txt.p-aucune { color: var(--vert); }
.p-txt.p-a_verifier { color: var(--rouge); font-weight: 700; }
@media (max-width: 700px) {
  .onb-form .grid2, .progs { grid-template-columns: 1fr; }
  .recap dl { grid-template-columns: 1fr; }
  .steps.onb li { min-width: 45%; }
}

/* ── Dossier client en 4 onglets et module Transformation ────────────────── */
.dtabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin: .3rem 0 1rem; overflow-x: auto; }
.dtabs a { padding: .65rem .95rem; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.dtabs a.on { color: var(--ink); border-color: var(--ink); }
.safety-banner.head { margin: 0; align-self: center; }
.o-titre { font-size: 22px; font-weight: 800; line-height: 1.2; margin: .15rem 0; }
.favorable { color: var(--ok); font-weight: 700; }
.defavorable { color: var(--warn); font-weight: 700; }
.neutre { color: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .5rem .9rem; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button:disabled { color: var(--ink-3); cursor: not-allowed; }
.small-seg button { padding: .3rem .65rem; font-size: 13px; min-height: 34px; }
.barre-cmp { margin: .2rem 0 .7rem; }
.transfo-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.tl { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .6rem; }
.tl .b { padding: .35rem .7rem; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: var(--surface); text-decoration: none; color: var(--ink-2); }
.tl .b.s-valide { background: var(--surface); color: var(--vert); border-color: var(--vert-bord); }
.tl .b.s-a_realiser { background: var(--surface); color: var(--orange); border-color: var(--orange-bord); border-width: 2px; }
.tl .b.s-non_realise { color: var(--ink-3); border-style: dashed; }
.k-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.k-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
.k-v { font-size: 24px; font-weight: 800; }
.k-v.indispo { font-size: 18px; color: var(--ink-3); }
.k-d { font-size: 14px; }
.k-s { font-size: 12px; color: var(--ink-3); margin-top: .15rem; }
.graph { width: 100%; height: auto; display: block; }
.graph .g-grid { stroke: var(--line); }
.graph .g-txt { font-size: 11px; fill: var(--ink-3); }
.graph .g-line { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.graph .g-pt { fill: var(--ink); }
.graph .g-susp { fill: none; stroke: var(--warn); stroke-width: 2.5; }
.graph .g-bilan { stroke: var(--ink-3); stroke-dasharray: 4 4; }
.flag-box { background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--orange-bord); border-radius: 10px; padding: .5rem .7rem; font-size: 13px; color: var(--warn); margin-top: .5rem; }
.flag-box summary { cursor: pointer; font-weight: 600; }
.flag-box.static { color: var(--warn); }
.susp-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin: .4rem 0; }
.bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar span { display: block; width: 100%; max-width: 26px; background: var(--ink-2); border-radius: 4px 4px 0 0; }
.bar.avant em { opacity: .45; }
.bar.low span { background: var(--orange-barre); }
.bar em { font-style: normal; font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.t-perf, .t-bilan { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: .6rem; }
.t-perf th, .t-perf td, .t-bilan th, .t-bilan td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.t-perf th, .t-bilan th { font-size: 12px; color: var(--ink-3); text-transform: uppercase; }
.evo-l { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.prog-bar { width: 100%; height: 8px; margin-top: .4rem; appearance: none; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.prog-bar::-webkit-progress-bar { background: var(--surface-2); }
.prog-bar::-webkit-progress-value { background: var(--ink); }
.prog-bar::-moz-progress-bar { background: var(--ink); }
.graph.barres .b-ok { fill: var(--ink-2); }
.graph.barres .b-low { fill: var(--orange-barre); }
.graph.barres .b-part { fill: var(--ink-2); fill-opacity: .55; }
.graph.barres .b-na { fill: none; stroke: var(--ink-3); stroke-dasharray: 4 3; }
.graph .g-txt.avant { opacity: .45; }
.filtre-hist { margin-bottom: .8rem; }
.bilan-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bilan .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.bilan textarea[readonly] { background: var(--surface-2); }
@media (max-width: 1000px) {
  .k-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transfo-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .k-grid, .bilan .grid2 { grid-template-columns: 1fr; }
}

/* ── Séance du jour : en-tête, progression estimée, confirmations sur place, tablette ── */
.sdj-entete { margin: 0 0 .35rem; font-size: 14px; line-height: 1.5; }
.estime { margin: 0 0 .5rem; padding: .45rem .6rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--orange-bord); color: var(--orange); font-size: 13px; font-weight: 600; }
.journee { margin: 0 0 .4rem; color: var(--ink-2); }
.progs-direct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .5rem 0; }
.progs-direct .btn { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-height: 64px; text-align: left; }
.confirm-box { margin-top: .5rem; padding: .6rem .7rem; border: 1px solid var(--ink); border-radius: 10px; background: var(--surface); font-size: 14px; }
.confirm-box .row { margin-top: .45rem; }
.prec-form { margin: .5rem 0; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.prec-form textarea { width: 100%; margin: .3rem 0; }
.safety-banner .btn { margin-left: auto; }
.picker input[name=motif] { width: 100%; margin-top: .35rem; }
.picker-choix { flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
#drawer .btn { min-height: 44px; }
#drawer .btn.small { min-height: 40px; }
@media (max-width: 900px) and (orientation: portrait) { #drawer { width: 100vw; border-left: 0; } }
@media (max-width: 560px) { .progs-direct { grid-template-columns: 1fr; } }

/* Qualité des données : fiable / estimée / indisponible */
.q { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: none; padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.q-fiable { background: var(--surface); color: var(--vert); border: 1px solid var(--vert-bord); }
.q-estimee { background: var(--surface); color: var(--orange); border: 1px solid var(--orange-bord); }
.q-indispo { background: var(--surface); color: var(--ink-3); border: 1px dashed var(--line-2); }

.absence-form input[name=motif] { width: 100%; margin: 8px 0; min-height: 40px; }
.presences .todo li { flex-wrap: wrap; }
.presences .confirm-zone { flex-basis: 100%; }

/* Marqueur de précautions dans le planning (toujours accompagné d'un libellé accessible). */
.cell-l { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.cell .mk.prec { flex: none; height: 20px; font-size: 12px; font-weight: 800; padding: 0 .35rem; border-radius: 6px; }

.chart .g-txt { fill: var(--ink-3); }

/* Registre des séances : « Valider la reprise » (encart blanc à liseré orange : information à valider). */
.reprise-form { display: grid; gap: .5rem; background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--orange-bord); border-radius: 10px; padding: .7rem .8rem; margin: 0 0 .7rem; }
.reprise-form h4 { margin: 0; font-size: 15px; }
.reprise-form select { min-height: 44px; width: 100%; padding: .35rem .5rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.reprise-form label { display: grid; gap: .2rem; font-weight: 600; color: var(--ink-2); }
.sea-choix { display: grid; grid-template-columns: 44px 1fr 44px; gap: .4rem; align-items: center; }
.sea-choix .btn { min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; font-weight: 700; }
.reprise-form .pourquoi { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; color: var(--ink-2); }
.reprise-form input[name=motif] { width: 100%; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--orange-bord); border-radius: 8px; }
.reg-etat { color: var(--vert); margin: .2rem 0 .4rem; }
.info-reg { margin: .3rem 0; padding: .4rem .6rem; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); }
.reg-verif { display: grid; gap: .35rem; margin: .4rem 0; padding: .5rem .6rem; border: 1px solid var(--line-2); border-left: 4px solid var(--orange-bord); border-radius: 8px; color: var(--orange); }
.reg-liste li { display: grid; gap: .25rem; justify-items: start; }

/* Pilotage — tuile « Reprises clients » : synthèse, renvoi vers le Suivi sportif filtré. Vert = validé, orange = action,
   gris = information secondaire (nouveaux clients, non bloqués). */
.rep-tuile { margin: 0 0 .75rem; display: grid; gap: .5rem; }
.rep-titre { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.rep-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.rep-cat { display: flex; flex-direction: column; gap: .1rem; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 10px; padding: .5rem .7rem; min-height: 44px; }
button.rep-cat { cursor: pointer; }
button.rep-cat:hover, button.rep-cat.on { background: var(--surface-2); }
button.rep-cat.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.rep-cat.t-ok { border-left-color: var(--vert-bord); }
.rep-cat.t-ok .rep-v { color: var(--vert); }
.rep-cat.t-act { border-left-color: var(--orange-bord); }
.rep-cat.t-act .rep-v { color: var(--orange); }
.rep-cat.t-sec .rep-v { color: var(--ink-2); }
.rep-v { font-size: 24px; font-weight: 700; line-height: 1.1; }
.rep-l { font-weight: 600; font-size: 14px; }
.rep-filtre { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .25rem 0 .5rem; padding: .5rem .75rem; border: 1px solid var(--line); border-left: 4px solid var(--orange-bord); border-radius: 10px; background: var(--surface); }
@media (max-width: 1100px) { .rep-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rep-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══ Athletic Precision — composants communs (styles globaux, sans changement de structure) ═══ */
h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
h3 { font-weight: 600; letter-spacing: -.01em; }
.card { border-radius: var(--radius); box-shadow: none; padding: 1.1rem 1.25rem; }
.card.tight { padding: .75rem .9rem; }
/* En-tête : navigation en pastilles sur une piste grise. */
.top { box-shadow: none; }
.top-row { min-height: 60px; gap: .9rem; }
.studio-name { font-size: 15px; letter-spacing: -.01em; }
.coach { font-weight: 600; color: var(--ink-2); }
nav.tabs { gap: .25rem; padding: 0 1rem .6rem; }
nav.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 99px; border-bottom: 0; color: var(--ink-2); font-weight: 600; background: var(--surface-2); }
nav.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a[aria-current="page"]:hover { color: #fff; }
.sync-ind { display: inline-flex; align-items: center; gap: .35rem; border: 0 !important; padding: .3rem .7rem; }
.sync-ind.ok { background: var(--vert-fond); }
.sync-ind.bad { background: var(--orange-fond); }
.banner.fict { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: .3rem 1rem; color: var(--ink-3); background: var(--surface); }
/* Boutons : principal noir, secondaire blanc à bordure fine ; zones tactiles ≥ 44 px. */
.btn { min-height: 44px; padding: .45rem 1rem; border-radius: var(--radius-ctl); border: 1px solid var(--line); font-weight: 600; letter-spacing: -.01em; transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #262626; border-color: #262626; }
.btn.small { min-height: 36px; padding: .2rem .75rem; font-size: 13.5px; }
.btn.link, .btn.link:hover { background: none; border: none; }
.top-row .btn.small { min-height: 40px; }
/* Champs */
.field input, .field select, .field textarea, .search, .quick-note textarea, .quick-note select, .filtre-coach select, .studio-select { border-radius: var(--radius-ctl); border-color: var(--line); }
.field input, .field select { min-height: 48px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
/* Pastilles d'état : fonds légers, textes foncés. */
.chip { padding: .15rem .6rem; border-radius: 99px; }
.chip.haute, .chip.moyenne, .chip.seance.haute, .chip.seance.moyenne, .chip.fidelisation { background: var(--orange-fond); border-color: transparent; color: var(--orange); }
.chip.ok { background: var(--vert-fond); border-color: transparent; color: var(--vert); }
.chip.neutral, .chip.basse { background: var(--surface-2); border-color: transparent; color: var(--ink-2); }
.statut { border-color: transparent; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .6rem; }
.statut.s-nouveau { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.statut.s-a_completer { background: var(--orange-fond); color: var(--orange); border-color: transparent; }
.q-fiable { background: var(--vert-fond); border-color: transparent; }
.q-estimee { background: var(--orange-fond); border-color: transparent; }
/* Onglets, segments, filtres */
.tab, .chip-btn { border-radius: 99px; min-height: 44px; }
.tab.on, .chip-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg { border: 0; background: var(--surface-2); padding: 4px; border-radius: 10px; gap: 2px; }
.seg button { border-radius: 8px; min-height: 36px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,17,.08); }
.dtabs a.on { border-bottom-width: 2px; }
/* Tableaux et étiquettes */
th, .t-perf th, .t-bilan th { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
.xp h3, .lbl, .objs dt, .slot-role { letter-spacing: .06em; }
/* Indicateurs */
.kpi, .k-card { border-radius: var(--radius); box-shadow: none; padding: 1rem 1.15rem; }
.kpi-v { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.k-v { font-weight: 800; letter-spacing: -.03em; }
/* Panneaux flottants */
#drawer { box-shadow: var(--shadow-flottant); border-left-color: var(--line); }
dialog { border-radius: var(--radius); box-shadow: var(--shadow-flottant); }
#toast { border-radius: 10px; padding: .7rem 1.1rem; font-weight: 600; box-shadow: var(--shadow-flottant); }
.error-box { border-radius: var(--radius-ctl); }
/* Menu du compte (Déconnexion) */
.moi { position: relative; }
.moi > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .75rem 0 .3rem; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; background: var(--surface); }
.moi > summary::-webkit-details-marker { display: none; }
.moi > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.moi-av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.moi-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-flottant); }
@media (max-width: 600px) { .moi .coach { display: none; } }

/* ═══ Panneau client (refonte étape 2) ═══ */
@media (min-width: 1280px) { #drawer { width: 640px; } body.drawer-open main, body.drawer-open .top { margin-right: 640px; } }
.drawer-body { padding: 0 1.25rem 1.5rem; display: flex; flex-direction: column; }
.drawer-top { padding: .75rem 0 .75rem; display: grid; gap: .6rem; }
.pnav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.pnav.seul { grid-template-columns: 1fr auto auto; }
.pnav .btn { min-height: 44px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnav > .btn:first-child { justify-self: start; } .pnav > [data-act="nav-client"].primary { justify-self: end; }
.pnav-pos { text-align: center; white-space: nowrap; }
.drawer-top .drawer-head { display: flex; align-items: flex-start; gap: .5rem; margin: 0; }
.dh-id { flex: 1; min-width: 0; }
.drawer-top .drawer-head h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.sdj-entete { margin: .2rem 0 0; font-size: 14px; color: var(--ink-2); }
.sdj-entete strong { color: var(--ink); }
.dh-dossier { white-space: nowrap; }
.drawer-top .safety-banner { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin: 0; padding: .55rem .75rem; border-radius: 12px; border-left-width: 1px; }
.drawer-top .safety-banner span { flex: 1 1 12rem; }
.drawer-top .safety-banner.a-verifier { border-color: #fca5a5; }
.drawer-top .safety-banner .btn { margin-left: auto; }
.drawer-top .no-prec { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.xp { border-top: 1px solid var(--line); padding: .85rem 0 .6rem; }
.xp h3 { font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 .5rem; }
.xp-h { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.xp-h h3 { margin: 0; flex: 1; }
.todo.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.todo.actions li { border: 1px solid var(--line); border-left: 4px solid var(--orange-point); border-radius: 12px; padding: .6rem .7rem; background: var(--surface); box-shadow: none; }
.todo.actions li[hidden] { display: none; }
.act-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.act-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.actions-dues .reprise-zone:not(:empty) { margin-top: .6rem; }
.seance-du-jour .seance-code { font-size: 22px; letter-spacing: -.02em; }
.seance-meta { margin: .1rem 0 .5rem; }
details.bloc { border-radius: 12px; padding: 0; }
details.bloc > summary.bloc-h { min-height: 52px; padding: .55rem 2rem .55rem .7rem; margin: 0; align-items: center; row-gap: .1rem; }
details.bloc > summary.bloc-h::after { top: 50%; transform: translateY(-50%); right: .8rem; font-size: 14px; }
details.bloc[open] > summary.bloc-h { border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
details.bloc > :not(summary) { margin-left: .7rem; margin-right: .7rem; }
details.bloc[open] { padding-bottom: .5rem; }
.bloc-ex { flex-basis: 100%; padding-left: calc(24px + .4rem); font-size: 13px; color: var(--ink-2); }
details.bloc[open] .bloc-ex { display: none; }
.bloc-l { width: 26px; height: 26px; border-radius: 7px; }
/* Observation : raccourcis (RAS et Super séance en un toucher), saisie libre */
.raccs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.btn.racc { min-height: 52px; border-radius: 12px; padding: .3rem .4rem; white-space: normal; text-align: center; }
.btn.racc.on { border: 2px solid var(--ink); }
.btn.racc.fait { border-color: var(--vert-bord); color: var(--vert); background: var(--vert-fond); }
.racc-ok { color: var(--vert); font-weight: 600; margin: 0 0 .4rem; }
.racc-aide { margin: 0; color: var(--ink-2); }
.quick-note textarea { min-height: 52px; font-size: 15px; }
.quick-note select { min-height: 44px; }
.drawer-pied { border-top: 0; padding-top: 0; }
/* Barre fixe (tablette) : observation, absence et dossier à portée de pouce. */
.drawer-barre { display: none; }
@media (max-width: 1279px) {
  .drawer-body { padding-bottom: 0; }
  .drawer-barre { display: flex; gap: .5rem; position: sticky; bottom: 0; margin: .5rem -1.25rem 0; padding: .7rem 1.25rem calc(.8rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -10px rgba(17,17,17,.12); z-index: 3; }
  .drawer-barre .btn { flex: 1; min-height: 52px; font-size: 15px; }
  .drawer-barre .btn.primary { flex: 1.6; }
  .drawer-pied { display: none; }
}
@media (max-width: 560px) { .raccs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dh-dossier { display: none; } }
.drawer-top { position: static; border-bottom: 0; }
@media (max-width: 900px) and (orientation: portrait) { #drawer { width: 100vw; border-left: 0; } }
@media (max-width: 560px) { .pnav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .pnav-pos { display: none; } }
#drawer .drawer-body { min-height: 100%; }
@media (max-width: 1279px) { .drawer-barre { margin-top: auto; } .pnav .dh-dossier { display: none; } .pnav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; } .pnav.seul { grid-template-columns: 1fr auto; } }
details.bloc > summary.bloc-h { position: relative; }
#toast { z-index: 70; }

/* ═══ Planning (refonte étape 3) : créneau en cours encadré, créneaux vides sur une ligne, points d'action ═══ */
.datebar { gap: .5rem; margin-bottom: .75rem; }
.datebar h1.date { font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.datebar .btn.icon { min-width: 44px; padding: 0; font-size: 18px; }
.date-pick { position: relative; display: inline-flex; }
.date-pick input { position: absolute; inset: 0; width: 44px; height: 44px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.date-pick input.visible { position: static; opacity: 1; width: auto; pointer-events: auto; min-height: 44px; margin-left: .4rem; border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 0 .5rem; }
.fraicheur { margin: -.25rem 0 .6rem; }
.day-grid { gap: .5rem; }
.day-col { gap: .45rem; }
.slot-row.hr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .65rem; grid-template-columns: 64px 1fr; box-shadow: none; }
.slot-row.hr .slot-time { font-size: 15px; font-weight: 700; padding-top: .2rem; align-self: start; text-align: center; border-radius: 8px; }
.slot-row.hr.passe { background: #fbfbfc; }
.slot-row.hr.passe .slot-time { color: var(--ink-3); }
.slot-row.hr.vide { background: transparent; border-style: dashed; border-color: var(--line-2); padding: .3rem .65rem; align-items: center; }
.slot-row.hr.vide .slot-time { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 0; }
.slot-row.hr.vide .cr.vide { padding: 0; }
.slot-row.hr.vide .cr-h { margin: 0; }
.slot-row.next, .slot-row.encours { border: 2px solid var(--ink) !important; box-shadow: none; background: var(--surface) !important; border-style: solid !important; }
.slot-row.next .slot-time, .slot-row.encours .slot-time { background: var(--ink); color: #fff !important; padding: .25rem .3rem; }
.cr-h { font-size: 12px; }
.cr-act { color: var(--ink); letter-spacing: .05em; font-size: 11px; }
.slot-row.hr .cells { gap: .4rem; }
.slot-row.hr .cells .cell { width: auto; min-width: 118px; }
.slot-row.hr .cell { min-height: 44px; padding: .3rem .7rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.slot-row.hr .cell:hover, .slot-row.hr .cell:focus-visible { border-color: var(--ink-3); }
.slot-row.hr .cell.active { border: 2px solid var(--ink); box-shadow: none; padding: calc(.3rem - 1px) calc(.7rem - 1px); }
.slot-row.hr.passe .cell { background: var(--surface); }
.slot-row.hr .cell.libre { border-style: dashed; color: var(--ink-3); min-width: 0; }
.cell-l { gap: .45rem; }
.pt { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.pt-r { background: var(--rouge-bord); } .pt-o { background: var(--orange-point); box-shadow: 0 0 0 1px var(--orange-bord) inset; } .pt-n { background: var(--gris-point); }
.cell .mk.prec { height: auto; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; border-radius: 0; }
.now-line span { background: var(--bg); }
.legende-points { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; margin: .75rem 0 0; }
.legende-points > span { display: inline-flex; align-items: center; gap: .35rem; }
.legende-points .mk.prec { border: 0; background: none; padding: 0; min-width: 0; color: var(--ink); }
@media (max-width: 700px) { .slot-row.hr.vide { grid-template-columns: 56px 1fr; } }
/* Message de confirmation : jamais sur le panneau ni sur la barre fixe. */
@media (min-width: 1280px) { body.drawer-open #toast { left: calc((100vw - 640px) / 2); } }
@media (max-width: 1279px) { body.drawer-open #toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ═══ Panneau client v2 (validé le 19/10/2026) : séance immédiatement visible ═══ */
.xp.bande { border-top: 0; padding: .1rem 0 .5rem; }
.bande-l { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.bchip { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .25rem .5rem .25rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 600; color: var(--ink); text-align: left; }
button.bchip { cursor: pointer; padding-right: .8rem; }
button.bchip:hover { border-color: var(--ink-3); }
button.bchip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bchip.brep { background: var(--orange-fond); border-color: var(--orange-bord); color: var(--orange); }
.bchip.sea { border-left: 4px solid var(--orange-point); }
.bchip-t { display: flex; flex-direction: column; line-height: 1.25; }
.bchip-t strong { font-size: 14px; }
.bchip-t .small { font-size: 12px; font-weight: 400; }
.bchip .act-k { font-size: 10.5px; }
.bchip.faire { color: var(--ink-2); }
.bande-rep:not(:empty) { margin-top: .6rem; }
.faire-liste { margin-top: .5rem; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faire-liste li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .55rem .75rem; min-height: 56px; }
.faire-liste li:last-child { border-bottom: 0; }
.seance-du-jour { padding-top: .6rem; }
.seance-du-jour h3 { margin-bottom: .25rem; }
.seance-du-jour .seance-head { gap: .5rem; align-items: baseline; }
.seance-nom { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.objs-l { margin: .25rem 0 .55rem; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.objs-l strong { color: var(--ink); font-weight: 600; }
.qn-ligne { display: flex; gap: .5rem; align-items: stretch; }
.qn-ligne textarea { flex: 1; min-height: 44px; height: 44px; resize: none; padding: .6rem .7rem; }
.qn-ligne select { width: auto; }
.quick-note.ouverte .qn-ligne { flex-wrap: wrap; }
.quick-note.ouverte .qn-ligne textarea, .qn-ligne textarea:focus { height: auto; min-height: 76px; flex-basis: 100%; resize: vertical; }
.quick-note { margin-top: .4rem; gap: .35rem; }
.raccs { margin-bottom: 0; }
.btn.racc { min-height: 44px; }
/* Ordinateur : observation fixée en bas du panneau, compacte ; le contenu défile au-dessus (jamais masqué). */
@media (min-width: 1280px) {
  #drawer .observation { position: sticky; bottom: 0; z-index: 3; background: var(--surface); margin: .4rem -1.25rem 0; padding: .55rem 1.25rem .7rem; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(17,17,17,.14); }
  #drawer .observation h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #drawer .observation .racc-ok { margin: .3rem 0 0; }
}
.faire-liste[hidden] { display: none; }
.bande-l .bchip.sea { flex: 1 1 260px; max-width: 100%; justify-content: space-between; }
.bande-l .bchip.sea .btn { flex: none; }

/* ═══ Refonte v3 — lot B : socle visuel et structure responsive (validé le 19/10/2026) ═══
   Paliers : téléphone < 768 px (navigation en bas, en-tête compact) · tablette 768–1023 px · tablette paysage et
   petit ordinateur 1024–1279 px · ordinateur ≥ 1280 px. Hiérarchie par la typographie et l'espacement plutôt que par
   des bordures ; cibles tactiles ≥ 44 px ; mouvements réduits respectés. Couleurs : règle unique ci-dessus, inchangée. */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --t-titre: 24px; --t-sous-titre: 17px; --t-corps: 15px; --t-petit: 13px; --t-label: 11px;
  --hauteur-nav-bas: 64px;
}
h1 { font-size: var(--t-titre); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* En-tête : une seule ligne (logo, studio, navigation, statut Déciplus, compte) dès 768 px. */
.top { border-bottom: 1px solid var(--line); }
.top-row { max-width: none; min-height: 64px; padding: 0 var(--s5); gap: var(--s4); flex-wrap: nowrap; }
.top-row .grow { flex: 1; min-width: var(--s2); }
.top-row > img { height: 26px; }
.studio-name { font-size: var(--t-corps); color: var(--ink-2); white-space: nowrap; }
/* Navigation intégrée à la ligne d'en-tête (ordinateur, tablette). */
.top-row > nav.tabs { display: flex; gap: var(--s1); margin: 0; padding: 0; max-width: none; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 768px) and (max-width: 1023px) { .top-row { gap: var(--s3); padding: 0 var(--s4); } .top-row > nav.tabs a { padding: 0 .75rem; font-size: 14px; } }
nav.tabs a { min-height: 44px; }

/* Statut Déciplus : pastille avec l'heure exacte (version courte sur téléphone). */
.sync-ind { display: inline-flex !important; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px; font-size: var(--t-petit); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sync-ind .si-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }
.sync-ind.ok { color: var(--vert); background: var(--vert-fond); }
.sync-ind.cours { color: var(--ink-2); background: var(--surface-2); }
.sync-ind.bad { color: var(--orange); background: var(--orange-fond); box-shadow: inset 0 0 0 1.5px var(--orange-bord); }
.sync-ind .si-court { display: none; }
@media (max-width: 1099px) { .sync-ind .si-long { display: none; } .sync-ind .si-court { display: inline; } .moi .coach { display: none; } }

/* Navigation du bas : téléphone uniquement. */
.nav-bas { display: none; }
@media (max-width: 767px) {
  .top-row { min-height: 56px; padding: 0 var(--s4); gap: var(--s3); }
  .top-row > nav.tabs, .top .moi { display: none; }
  .studio-select { max-width: 40vw; }
  .nav-bas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .nav-bas a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--hauteur-nav-bas);
    text-decoration: none; color: var(--ink-3); font-size: var(--t-label); font-weight: 600; letter-spacing: .01em; }
  .nav-bas a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .nav-bas a[aria-current="page"] .ico { stroke-width: 2.4; }
  .nav-bas a:focus-visible { outline-offset: -4px; border-radius: 12px; }
  body:has(.nav-bas) main { padding-bottom: calc(var(--hauteur-nav-bas) + var(--s5) + env(safe-area-inset-bottom, 0px)); }
  body:has(.nav-bas) #toast { bottom: calc(var(--hauteur-nav-bas) + var(--s3) + env(safe-area-inset-bottom, 0px)); }
}

/* Écran « Moi ». */
.moi-carte { background: var(--surface); border-radius: var(--radius); margin-bottom: var(--s4); }
.moi-carte:not(.liste) { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.moi-id { display: flex; align-items: center; gap: var(--s3); }
.moi-id > span:last-child { display: flex; flex-direction: column; }
.moi-av.grand { width: 48px; height: 48px; font-size: 16px; }
.moi-studio { display: flex; flex-direction: column; gap: var(--s1); }
.moi-studio select { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-ctl); padding: 0 var(--s3); background: var(--surface); font-weight: 600; }
.moi-ligne { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s3) var(--s4);
  border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; }
.moi-carte.liste > .moi-ligne:first-child { border-top: 0; }
.moi-ligne > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.moi-ligne > span:last-child { font-size: 20px; color: var(--ink-3); }

/* Barre de navigation entre clients (fiche) : jamais de bouton étiré ni de case vide sur téléphone. */
@media (max-width: 767px) {
  .pnav, .pnav.seul { display: flex; align-items: center; gap: var(--s2); }
  .pnav > span:empty, .pnav > .pnav-pos { flex: 1; }
  .pnav > [data-act="nav-client"] { flex: 0 1 auto; max-width: 46%; }
  .pnav > [data-close] { flex: none; width: 44px; min-height: 44px; padding: 0; }
}

/* ═══ Refonte v3 — lot C : fiche lisible en 5 secondes (validé le 19/10/2026) ═══
   Ordre : identité · précautions · synthèse (objectif, dernière transmission, à reprendre) · actions prioritaires ·
   programme du jour · suivi rapide fixé en bas. Hiérarchie par la typographie : pas de cartes ni de bordures ajoutées. */
#drawer .drawer-top .drawer-head h2 { font-size: 24px; font-weight: 800; }
#drawer .drawer-top .safety-banner { font-size: 16px; padding: var(--s3) var(--s4); }
#drawer .drawer-top .safety-banner strong { font-size: var(--t-label); letter-spacing: .07em; text-transform: uppercase; }
#drawer .drawer-top .safety-banner span { font-weight: 700; }
#drawer .drawer-top .safety-banner.a-verifier span { color: #7f1d1d; }

/* Synthèse : deux colonnes dès 768 px, séparées par l'espace ; libellés discrets, contenu en avant. */
.synthese { display: grid; grid-template-columns: 1fr; gap: var(--s4); border-top: 0; padding: var(--s4) 0 var(--s2); }
@media (min-width: 768px) { .synthese { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s5); } }
.syn { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.synthese h3.syn-k { margin: 0; font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.syn-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 28px; }
.syn-tete .btn.link { min-height: 32px; padding: 0 var(--s1); font-size: var(--t-petit); font-weight: 700; text-decoration: underline; background: none; border: 0; }
.syn-v { margin: 0; font-size: var(--t-sous-titre); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.syn-v.vide { font-size: var(--t-corps); font-weight: 600; color: var(--ink-3); }
.syn-t { margin: 0; font-size: var(--t-corps); line-height: 1.45; }
.syn-m { margin: 0; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.syn-reprendre { margin: var(--s1) 0 0; font-size: 14px; font-weight: 700; color: var(--orange); }
.syn-reprendre .syn-m { font-weight: 500; }
.syn .btn.small { align-self: flex-start; margin-top: var(--s1); }
.trans-liste { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.trans-liste[hidden] { display: none; }
.trans-liste li { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s3); border-top: 1px solid var(--line); }
.trans-type { font-size: var(--t-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.trans-c { font-size: 14px; line-height: 1.45; }

/* Programme du jour : en-tête de bloc lisible, zone de toucher confortable. */
#drawer .seance-du-jour { padding-top: var(--s4); }
#drawer .seance-du-jour details.bloc > summary.bloc-h { min-height: 52px; }

/* Suivi rapide : toujours fixé en bas du panneau, quatre grands boutons sur une ligne ; la saisie libre s'ouvre à la
   demande sur téléphone et tablette (Fatigue, Douleur, « ✎ Observation libre »), visible en permanence sur ordinateur. */
#drawer .observation { position: sticky; bottom: 0; z-index: 3; margin: auto -1.25rem 0; padding: var(--s3) 1.25rem calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(17,17,17,.14); }
#drawer .observation h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#drawer .observation .raccs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
#drawer .observation .btn.racc { min-height: 56px; font-size: var(--t-corps); font-weight: 700; border: 1.5px solid var(--ink); border-radius: 14px; padding: 0 var(--s1); }
#drawer .observation .btn.racc.on { background: var(--ink); color: #fff; }
@media (max-width: 1279px) { #drawer .quick-note:not(.ouverte) { display: none; } }
@media (max-width: 560px) { #drawer .observation .btn.racc { min-height: 54px; font-size: 14px; } }
.drawer-barre { display: none !important; }

/* Menu « ⋯ » de la fiche (tablette, téléphone). */
.pnav-plus { position: relative; display: none; }
.pnav-plus > summary { list-style: none; width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pnav-plus > summary::-webkit-details-marker { display: none; }
.pnav-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 230px; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-flottant); }
@media (max-width: 1279px) { .pnav-plus { display: inline-block; } .pnav .dh-dossier { display: none; } .pnav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto; } .pnav.seul { grid-template-columns: 1fr auto auto; } }
@media (max-width: 767px) { .pnav > .pnav-plus { flex: none; } }
/* Libellé court des raccourcis sur téléphone (« ★ Super »), libellé complet pour les lecteurs d'écran. */
.racc .racc-c { display: none; }
@media (max-width: 560px) { .racc .racc-l { display: none; } .racc .racc-c { display: inline; } }
/* Ordinateur, fiche ouverte : l'en-tête garde tous ses onglets (nom du compte et statut en version courte). */
@media (min-width: 1280px) { body.drawer-open .moi .coach { display: none; } body.drawer-open .sync-ind .si-long { display: none; } body.drawer-open .sync-ind .si-court { display: inline; } body.drawer-open .top-row { gap: var(--s3); } }
/* Téléphone : fiche resserrée pour que le programme du jour apparaisse sans défiler. */
@media (max-width: 767px) {
  #drawer .drawer-top .drawer-head h2 { font-size: 21px; }
  #drawer .sdj-entete .sdj-detail { display: none; }
  #drawer .drawer-top .safety-banner { font-size: 15px; padding: var(--s2) var(--s3); }
  .synthese { gap: var(--s3); padding-top: var(--s3); }
  .syn-v { font-size: 16px; }
  .syn-obj { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--s2); }
  .syn-obj h3.syn-k { flex-basis: 100%; }
  #drawer .seance-du-jour { padding-top: var(--s3); }
  #drawer .seance-du-jour .objs-l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ═══ Refonte v3 — lot D : planning responsive (validé le 19/10/2026) ═══
   ≥ 1024 px : fiche ANCRÉE à droite, sous l'en-tête (qui garde toute sa largeur), planning à gauche en mode liste ;
   pas de voile. < 1024 px : fiche plein écran (geste « retour »). Téléphone : planning en liste plein écran.
   Mode liste : un client par ligne, motif du point écrit en clair (jamais la couleur seule). */
@media (min-width: 1024px) {
  #drawer { top: var(--haut-entete, 64px); bottom: 0; border-left: 1px solid var(--line); box-shadow: none; }
  body.drawer-open .top { margin-right: 0; }
  body.drawer-open #drawer-overlay { display: none !important; }
  body.drawer-open main { max-width: none; margin-left: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  #drawer { width: calc(100vw - 380px); }
  body.drawer-open main { margin-right: calc(100vw - 380px); }
  body.drawer-open #toast { left: 190px; bottom: 1.25rem; }
}
@media (min-width: 1280px) {
  #drawer { width: min(760px, calc(100vw - 480px)); }
  body.drawer-open main { margin-right: min(760px, calc(100vw - 480px)); }
  body.drawer-open #toast { left: calc((100vw - min(760px, calc(100vw - 480px))) / 2); }
}
/* L'en-tête reste complet quand la fiche est ouverte (nom du compte et statut en version courte entre 1024 et 1279 px). */
@media (min-width: 1024px) and (max-width: 1279px) { body.drawer-open .moi .coach { display: none; } }

/* Mode liste. */
.cell-motif { display: none; }
@media (max-width: 767px) {
  .slot-row.hr .cells { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
  .slot-row.hr .cells .cell { width: 100%; min-height: 52px; padding: 0 var(--s3); }
  .slot-row.hr .cells .cell.libre { min-height: 36px; justify-content: flex-start; }
  .cell-motif { display: inline; }
  .slot-row.hr { grid-template-columns: 52px 1fr; }
}
@media (min-width: 1024px) {
  body.drawer-open .slot-row.hr .cells { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
  body.drawer-open .slot-row.hr .cells .cell { width: 100%; min-height: 48px; }
  body.drawer-open .slot-row.hr .cells .cell.libre { min-height: 34px; justify-content: flex-start; }
  body.drawer-open .cell-motif { display: inline; }
  body.drawer-open .datebar { flex-wrap: wrap; }
  body.drawer-open .datebar h1.date { font-size: 20px; }
}
.cell-l { width: 100%; }
.cell-motif { margin-left: auto; padding-left: var(--s2); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.cell-motif.m-r { color: var(--rouge); } .cell-motif.m-o { color: var(--orange); } .cell-motif.m-n { color: var(--ink-3); }
/* Client sélectionné : fond noir, texte blanc (repère immédiat dans la liste). */
.slot-row.hr .cell.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot-row.hr .cell.active .cell-name, .slot-row.hr .cell.active .mk.prec { color: #fff; }
.slot-row.hr .cell.active .cell-motif { color: #e5e7eb; }
/* Mode liste : les créneaux d'un même horaire s'empilent (une seule colonne de clients). */
@media (max-width: 767px) { .slot-row.hr .crs { display: flex; flex-direction: column; gap: var(--s2); } .slot-row.hr .crs > .cr { border-left: 0; padding-left: 0; width: 100%; } }
@media (min-width: 1024px) { body.drawer-open .slot-row.hr .crs { display: flex; flex-direction: column; gap: var(--s2); } body.drawer-open .slot-row.hr .crs > .cr { border-left: 0; padding-left: 0; width: 100%; } }

/* ── Panneau « Valider la reprise » (objectif, actuel → retenu, date, confirmation ; détails repliés) ── */
.reprise-form .rep-resume { display: grid; gap: var(--s2); }
.reprise-form .rep-k { display: block; font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.reprise-form .rep-obj, .reprise-form .rep-quand { margin: 0; display: grid; gap: 2px; }
.reprise-form .rep-transition { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s2); }
.reprise-form .rep-cote { display: grid; gap: 2px; min-width: 0; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: 10px; }
.reprise-form .rep-nouveau { border-color: var(--ink); }
.reprise-form .rep-fleche { font-size: 20px; font-weight: 800; color: var(--ink-2); }
.reprise-form .rep-coherence { margin: 0; font-size: var(--t-petit); }
.reprise-form [hidden] { display: none !important; }
.reprise-form details { border-top: 1px solid var(--line); }
.reprise-form details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: var(--s2); list-style: none; font-size: var(--t-petit); font-weight: 600; color: var(--ink-2); }
.reprise-form details > summary::-webkit-details-marker { display: none; }
.reprise-form details > summary::before { content: "▸"; font-size: 12px; color: var(--ink-3); }
.reprise-form details[open] > summary::before { content: "▾"; }
.reprise-form details[open] > summary { color: var(--ink); }
.reprise-form .rep-modif[open] { padding-bottom: var(--s2); }
.reprise-form .rep-modif > label, .reprise-form .rep-modif > .sea-choix, .reprise-form .rep-modif > .motif-zone { margin-top: var(--s2); }
.reprise-form .rep-confirm .confirm-box p { margin: 0 0 var(--s1); }
@media (max-width: 479px) {
  .reprise-form .rep-transition { grid-template-columns: minmax(0, 1fr); }
  .reprise-form .rep-fleche { justify-self: center; transform: rotate(90deg); line-height: 1; }
}

/* ═══ Direction artistique v4 (validée le 20/10/2026) ═══
   Structure nuit / anthracite, surfaces blanc cassé, coaching en sauge désaturée, client sélectionné cerné de noir,
   ESCULPT (et VISIO vide) en ligne discrète. Couleurs fonctionnelles : vert = validé, orange = à reprendre / action,
   rouge = sécurité. Inter (déjà validée), hiérarchie par la taille et la graisse. Affichage seulement. */
:root {
  --nuit: #141518; --anthracite: #23252a; --anthracite-2: #2e3036; --nuit-texte: #c9ccd2;
  --bg: #f7f6f3; --surface: #ffffff; --surface-2: #f0efeb;
  --ink: #16171a; --ink-2: #4a4d55; --ink-3: #7c7f87;
  --line: #e7e5e0; --line-2: #d9d6cf;
  --sauge: #3f8f68; --sauge-fond: #f2f7f4; --sauge-filet: #d5e8dc;
  --vert: #0b7a53; --vert-bord: #3fa77c; --vert-fond: #ecf7f1;
  --orange: #a24f06; --orange-vif: #e8710a; --orange-bord: #e8710a; --orange-barre: #e8710a; --orange-fond: #fff4ea; --orange-filet: #f6c99f; --orange-point: #e8710a;
  --rouge: #c8312b; --rouge-bord: #e2625c; --rouge-fond: #fdf0ef; --rouge-filet: #f3c3bf;
  --gris-point: #9a9ca2;
  --radius: 14px; --radius-ctl: 10px;
  --ombre-douce: 0 1px 2px rgba(20,21,24,.04), 0 4px 14px -6px rgba(20,21,24,.10);
}
body { background: var(--bg); }
.btn { border-radius: var(--radius-ctl); font-weight: 600; }
.btn.primary { background: var(--ink); border-color: var(--ink); }
.banner { border-radius: 10px; margin: 0 0 var(--s3); }
.bandeaux:empty { display: none; }
.banner.fict { background: transparent; border: 0; padding: 0 0 var(--s2); margin: 0; text-align: left; }

/* ── Planning ── */
.slot-row.hr { background: transparent; border: 0; box-shadow: none; padding: 0; gap: var(--s2); grid-template-columns: 58px minmax(0, 1fr); }
.slot-row.hr + .slot-row.hr { margin-top: var(--s1); }
.slot-row.next, .slot-row.encours { border: 0; box-shadow: none; }
.slot-row.hr .slot-time { font-size: 16px; font-weight: 700; letter-spacing: -.01em; padding-top: 11px; }
.slot-row.passe { background: transparent; }
.slot-row.passe .slot-time { color: var(--ink-3); font-weight: 600; }
.slot-row.passe .cr-coaching { opacity: .66; }
.slot-row.hr .crs { display: flex; flex-direction: column; gap: var(--s1); }
.slot-row.hr .crs > .cr { width: 100%; border-left: 0; padding-left: 0; }
/* Carte coaching : sauge, filet à gauche, clients en lignes (jamais de carte dans la carte). */
.cr.cr-coaching { background: var(--sauge-fond); border: 1px solid var(--sauge-filet); border-left: 3px solid var(--sauge); border-radius: 12px; padding: 7px 6px 4px 12px; }
.cr.cr-coaching .cr-h { align-items: center; gap: 4px var(--s2); margin: 0 0 2px; padding-right: var(--s2); min-height: 22px; }
.cr.cr-coaching .cr-act { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sauge); }
.cr-cap { font-weight: 600; color: var(--ink-3); }
.cr.cr-coaching .cr-coach { margin-left: auto; color: var(--ink-3); }
.tag-live { font-size: 11px; font-weight: 700; color: var(--vert); background: var(--surface); border: 1px solid var(--sauge-filet); border-radius: 999px; padding: 1px 8px; text-transform: none; letter-spacing: 0; }
.slot-row.hr .cr-coaching .cells { display: flex; flex-direction: column; gap: 0; }
.slot-row.hr .cr-coaching .cells .cell { width: 100%; min-height: 50px; padding: 6px 8px 6px 2px; background: transparent; border: 0; border-radius: 10px; justify-content: center; }
.slot-row.hr .cr-coaching .cells .cell + .cell { box-shadow: 0 -1px 0 rgba(63,143,104,.14); }
.slot-row.hr .cr-coaching .cells .cell:hover { background: rgba(255,255,255,.7); }
.cell .cell-l { display: grid; grid-template-columns: 32px minmax(0, auto) auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; }
.cell-av { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.cell-av .pt { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; margin: 0; border: 2px solid var(--sauge-fond); }
.cell .cell-name { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .mk.prec { font-size: 12px; }
.cell .cell-motif { display: block; grid-column: 2 / span 3; margin: 0; padding: 0; max-width: none; font-size: 12.5px; font-weight: 600; text-align: left; }
.cell .cell-motif.m-n { font-weight: 500; }
.slot-row.hr .cr-coaching .cells .cell.libre { min-height: 30px; padding: 0 0 0 4px; flex-direction: row; justify-content: flex-start; align-items: center; gap: var(--s2); font-size: 12.5px; font-weight: 500; color: var(--sauge); box-shadow: none; cursor: default; }
.slot-row.hr .cr-coaching .cells .cell.libre::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed #9fc7b1; }
.cr.cr-coaching.vide .cr-libre { display: flex; align-items: center; gap: var(--s2); min-height: 28px; font-size: 12.5px; color: var(--sauge); }
/* Client sélectionné : contour noir, fond blanc. */
.slot-row.hr .cell.active { background: var(--surface) !important; border-color: transparent; color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--ombre-douce) !important; }
.slot-row.hr .cell.active .cell-name { color: var(--ink); }
.slot-row.hr .cell.active .mk.prec { color: var(--rouge); }
.slot-row.hr .cell.active .cell-motif.m-r { color: var(--rouge); } .slot-row.hr .cell.active .cell-motif.m-o { color: var(--orange); } .slot-row.hr .cell.active .cell-motif.m-n { color: var(--ink-3); }
.slot-row.hr .cell.active + .cell { box-shadow: none; }
/* Secondaires : ESCULPT, VISIO vide — une ligne, petite, neutre. */
.cr.cr-sec { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s2); min-height: 28px; padding: 2px 10px 2px 12px; border: 0; border-radius: 8px; background: transparent; }
.cr.cr-sec .cr-h { display: contents; }
.cr.cr-sec .cr-act { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a3a5ab; }
.cr.cr-sec .cr-cap, .cr.cr-sec .cr-coach, .cr.cr-sec .cr-libre { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.cr.cr-sec .cr-libre { margin-left: auto; }
.cr.cr-sec .tag-live { font-size: 10.5px; }
.cr.cr-sec:not(.vide) { background: var(--surface-2); }
.cr.cr-sec .cells { display: flex !important; flex-wrap: wrap; gap: 2px var(--s2); margin-left: auto; }
.slot-row.hr .cr.cr-sec .cells .cell { width: auto; min-height: 28px; padding: 0 var(--s1); background: transparent; border: 0; border-radius: 6px; }
.cr.cr-sec .cell .cell-l { display: flex; gap: 6px; }
.cr.cr-sec .cell-av { display: none; }
.cr.cr-sec .cell .cell-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cr.cr-sec .cell .cell-motif, .cr.cr-sec .cells .cell.libre { display: none; }
.cr.cr-sec .cell .pt { width: 7px; height: 7px; }
.cr.cr-sec .cell-av .pt { display: none; }
.cr.cr-sec .cell.active { box-shadow: 0 0 0 2px var(--ink) !important; }
.now-line span { font-weight: 700; }
.legende-points { margin-top: var(--s4); }

/* Neutralise les cadres des versions précédentes (créneau suivant / en cours, créneau vide, passé). */
.slot-row.hr, .slot-row.hr.passe, .slot-row.hr.vide, .slot-row.next, .slot-row.encours { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0; }
.slot-row.hr.vide { align-items: start; }
.slot-row.next .slot-time, .slot-row.encours .slot-time { background: transparent; color: var(--ink) !important; padding: 11px 0 0; }
.slot-row.hr.vide .slot-time { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 6px; }
.slot-row.hr.vide:has(.cr-coaching) .slot-time { font-size: 16px; font-weight: 700; color: var(--ink); padding-top: 11px; }
.slot-row.hr.passe .slot-time { color: var(--ink-3) !important; }
.slot-row.hr .slot-time { text-align: left; }
.slot-row.encours .cr-coaching { box-shadow: 0 0 0 1px var(--sauge), var(--ombre-douce); }
.slot-row.hr.passe .cell { background: transparent; }
.slot-row.hr .cr-coaching .cells .cell.active { padding: 6px 8px 6px 2px; border: 0; }
.cell .cell-name, .cell .cell-motif { line-height: 1.3; }
.now-line span { background: var(--surface); }
@media (max-width: 1279px) { .now-line span { background: var(--bg); } }

/* ── Fiche client ── */
#drawer .drawer-head { display: flex; align-items: center; gap: var(--s4); }
.dh-av { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 17px; font-weight: 700; color: var(--ink); }
#drawer .drawer-top .drawer-head h2 { font-size: 27px; letter-spacing: -.025em; line-height: 1.1; }
#drawer .sdj-entete { color: var(--ink-3); font-size: 14px; margin-top: 3px; }
#drawer .sdj-entete strong { color: var(--ink-2); font-weight: 600; }
#drawer .drawer-top .safety-banner { border-radius: 12px; background: var(--rouge-fond); border: 1px solid var(--rouge-filet); box-shadow: none; }
.synthese h3.syn-k, .bande-k { color: var(--ink-3); }
.bande-k { flex-basis: 100%; margin: 0 0 var(--s2); font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#drawer .bande { flex-wrap: wrap; border: 0; background: transparent; padding: var(--s3) 0 0; }
#drawer .bande .bchip.brep { background: var(--orange-vif); border-color: var(--orange-vif); color: #fff; font-weight: 700; box-shadow: none; }
#drawer .bande .bchip.brep[aria-expanded="true"] { background: #c95f06; border-color: #c95f06; }
#drawer .bande .bchip.faire { background: var(--surface); border: 1px solid var(--line); }
#drawer .bande .bchip.sea { background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--orange-vif); }
#drawer .seance-du-jour details.bloc { border-color: var(--line); border-radius: 12px; }
/* Suivi rapide : bordures fines colorées selon le sens (vert validé, orange à reprendre, rouge sécurité). */
#drawer .observation .btn.racc { border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
#drawer .observation .btn.racc[data-racc="ras"] { color: var(--vert); border-color: #b9dfcc; }
#drawer .observation .btn.racc[data-racc="fatigue"] { color: var(--orange); border-color: var(--orange-filet); }
#drawer .observation .btn.racc[data-racc="douleur"] { color: var(--rouge); border-color: var(--rouge-filet); }
#drawer .observation .btn.racc.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#drawer .observation { box-shadow: 0 -10px 24px -16px rgba(20,21,24,.18); }
/* Accès direct au dossier complet. */
.fiche-liens { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); padding: var(--s2) 0 var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s3); }
.fiche-liens a { min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.fiche-liens a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
#drawer .drawer-pied .btn.block { border: 0; background: transparent; color: var(--ink-3); font-weight: 500; justify-content: flex-start; padding-left: 0; min-height: 36px; }

/* ── Tablette et petit ordinateur (768–1279) : barre d'en-tête nuit ── */
@media (min-width: 768px) and (max-width: 1279px) {
  .top { background: var(--nuit); border-bottom: 0; }
  .top-row > img { filter: invert(1); }
  .top .studio-name, .top .studio-select { color: var(--nuit-texte); }
  .top .studio-select { background: var(--anthracite); border-color: var(--anthracite-2); }
  .top-row > nav.tabs a { background: transparent; color: var(--nuit-texte); }
  .top-row > nav.tabs a[aria-current="page"] { background: var(--anthracite-2); color: #fff; box-shadow: inset 0 -2px 0 var(--orange-vif); }
  .top .moi summary { color: var(--nuit-texte); background: var(--anthracite); border-color: var(--anthracite-2); }
  .top .moi-av { background: var(--anthracite-2); color: #fff; }
}

/* ── Ordinateur (≥ 1280) : menu latéral nuit, toile blanche aux coins arrondis ── */
@media (min-width: 1280px) {
  :root { --largeur-menu: 216px; --largeur-fiche: min(760px, calc(100vw - var(--largeur-menu) - 482px)); }
  body { background: var(--nuit); }
  .top { position: fixed; top: 0; left: 0; bottom: 0; width: var(--largeur-menu); background: var(--nuit); border: 0; z-index: 30; }
  .top-row { height: 100%; flex-direction: column; align-items: stretch; gap: var(--s2); padding: 22px 14px 18px; min-height: 0; }
  .top-row > img { height: 32px; align-self: flex-start; margin: 0 0 22px 10px; filter: invert(1); }
  .top .studio-name { order: 5; color: var(--nuit-texte); padding: var(--s3) 12px 0; border-top: 1px solid #2c2e33; font-weight: 500; }
  .top .studio-select { order: 5; background: var(--anthracite); color: #fff; border: 1px solid var(--anthracite-2); min-height: 40px; }
  .top-row > nav.tabs { flex-direction: column; gap: 4px; overflow: visible; }
  .top-row > nav.tabs a { justify-content: flex-start; min-height: 44px; padding: 0 12px; border-radius: 10px; background: transparent; color: var(--nuit-texte); font-weight: 500; font-size: 14.5px; }
  .top-row > nav.tabs a:hover { color: #fff; background: var(--anthracite); }
  .top-row > nav.tabs a[aria-current="page"] { background: var(--anthracite-2); color: #fff; box-shadow: inset 3px 0 0 var(--orange-vif); }
  .top-row .grow { flex: 1; }
  #sync-slot { order: 4; }
  #sync-slot .sync-ind { width: 100%; justify-content: flex-start; background: var(--anthracite); color: #7fd3ac; }
  #sync-slot .sync-ind.bad { background: #3a2614; color: #ffb36b; box-shadow: none; }
  #sync-slot .sync-ind .si-long { display: inline !important; } #sync-slot .sync-ind .si-court { display: none !important; }
  .top .moi { order: 6; position: relative; }
  .top .moi summary { width: 100%; background: transparent; border: 0; color: #fff; justify-content: flex-start; }
  .top .moi .coach { display: inline !important; }
  .top .moi-av { background: var(--anthracite-2); color: #fff; }
  .top .moi-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
  main, body.drawer-open main { max-width: none; margin: 12px 12px 12px calc(var(--largeur-menu)); min-height: calc(100vh - 24px); background: var(--surface); border-radius: 20px; padding: var(--s4) var(--s5) var(--s5); }
  body.drawer-open main { margin-right: calc(var(--largeur-fiche) + 12px); border-radius: 20px 0 0 20px; }
  #drawer { top: 12px !important; bottom: 12px; right: 12px; width: var(--largeur-fiche) !important; border-radius: 0 20px 20px 0; border-left: 1px solid var(--line); }
  #drawer .observation { border-radius: 0 0 20px 0; }
  body.drawer-open #toast { left: calc(var(--largeur-menu) + (100vw - var(--largeur-menu) - var(--largeur-fiche)) / 2); }
  .datebar { padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid var(--line); }
}
.cell .cell-l:not(:has(.cell-motif)) .cell-av { grid-row: 1; }
.cr.cr-coaching.vide { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s2); padding: 6px 12px; }
.cr.cr-coaching.vide .cr-h { display: contents; }
.cr.cr-coaching.vide .cr-coach { margin-left: 0; }
.cr.cr-coaching.vide .cr-libre { margin-left: auto; min-height: 0; white-space: nowrap; }
/* Téléphone : navigation du bas nuit (maquette validée). */
@media (max-width: 767px) {
  .nav-bas { background: var(--nuit); border-top: 0; }
  .nav-bas a { color: #8d9098; }
  .nav-bas a[aria-current="page"] { color: #fff; }
  .nav-bas a[aria-current="page"] .ico { stroke: var(--orange-vif); }
  .slot-row.hr { grid-template-columns: 48px minmax(0, 1fr); }
  .slot-row.hr .slot-time { font-size: 15px; }
  .cr.cr-coaching { background: var(--surface); border-color: var(--line); border-left-color: var(--sauge); }
  .cell-av .pt { border-color: var(--surface); }
}

/* ── Page Priorités (tous les coachs) ── */
.prio-tete h1 { margin: 0; }
.prio-tete p { margin: var(--s1) 0 var(--s4); }
.prio-seg { margin-bottom: var(--s4); }
.prio-n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.seg button.on .prio-n { background: rgba(255,255,255,.18); color: inherit; }
.prio-liste { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prio-ligne { display: grid; grid-template-columns: 32px minmax(160px, 1fr) minmax(0, 2fr) 16px; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: var(--s3) var(--s4);
  border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.prio-ligne:first-child { border-top: 0; }
.prio-ligne:hover, .prio-ligne:focus-visible { background: var(--bg); outline: none; }
.prio-ligne.active { box-shadow: inset 0 0 0 2px var(--ink); }
.prio-ligne .cell-av { position: static; }
.prio-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prio-id strong { font-size: 15px; font-weight: 600; }
.prio-quand { font-size: 12.5px; color: var(--ink-3); }
.prio-motifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.pm { display: flex; flex-wrap: wrap; gap: 0 var(--s2); align-items: baseline; padding-left: var(--s3); border-left: 3px solid var(--line-2); font-size: 13.5px; line-height: 1.35; }
.pm strong { font-weight: 600; }
.pm span { font-size: 12.5px; color: var(--ink-3); }
.pm.pm-seance { border-left-color: var(--orange-vif); }
.pm.pm-seance strong { color: var(--orange); }
.pm.pm-fidelisation { border-left-color: var(--gris-point); }
.prio-ligne .chev { color: #b5b7bc; font-size: 18px; }
@media (max-width: 767px) {
  .prio-ligne { grid-template-columns: 32px minmax(0, 1fr) 16px; grid-template-areas: "av id ch" "mo mo mo"; row-gap: var(--s2); padding: var(--s3); }
  .prio-ligne .cell-av { grid-area: av; } .prio-id { grid-area: id; } .prio-motifs { grid-area: mo; } .prio-ligne .chev { grid-area: ch; }
  .nav-bas a span { font-size: 10.5px; }
}
.prio-seg .lib-court { display: none; }
@media (max-width: 767px) {
  .prio-seg { display: flex; flex-wrap: nowrap; }
  .prio-seg button { flex: 1 1 auto; white-space: nowrap; padding-left: var(--s2); padding-right: var(--s2); }
  .prio-seg .lib-long { display: none; } .prio-seg .lib-court { display: inline; }
}

/* ═══ Refonte fidèle à la maquette de référence (20/10/2026) ═══
   Deux zones : planning chronologique à gauche (~40 %), fiche adhérent à droite (~60 %), barre haute commune
   (date, coach, recherche, synchro), menu latéral anthracite. Affichage seulement : aucune règle métier ici. */
:root {
  --mq-orange: #ee7a2e; --mq-orange-fond: #fff3ea; --mq-orange-filet: #f3b183;
  --mq-sauge: #4b9a70; --mq-sauge-pill: #e2f0e7; --mq-sauge-texte: #3a7c58; --mq-sauge-fond: #f5f9f6; --mq-sauge-filet: #e0ece5;
  --mq-bleu: #2f62ad; --mq-bleu-fond: #ebf2fc; --mq-bleu-filet: #c8daf3;
  --mq-gris-pill: #ececee; --mq-ligne: #ebebeb; --mq-fond-doux: #f6f6f7;
  --haut-barre: 72px;
}
.ico { flex: none; }
.barre-haute { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); background: var(--surface); border-bottom: 1px solid var(--line); }
.barre-haute .grow { flex: 1; }
.barre-haute .datebar { display: flex; align-items: center; gap: var(--s3); margin: 0; padding: 0; border: 0; flex-wrap: nowrap; min-width: 0; }
.date-groupe { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 3px; gap: 2px; }
.date-groupe .btn.icon { width: 40px; min-height: 40px; border: 0; background: transparent; padding: 0; justify-content: center; }
.date-groupe .date-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--mq-fond-doux); color: var(--ink); }
.date-groupe h1.date { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.datebar .filtre-coach select { min-height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 500; color: var(--ink); }
.recherche { position: relative; width: min(280px, 26vw); }
.recherche input { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border: 0; border-radius: 12px; background: var(--mq-fond-doux); font: inherit; font-size: 15px; color: var(--ink); }
.recherche input::placeholder { color: #9a9ca2; }
.recherche .rch-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9a9ca2; display: flex; }
.rch-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-flottant); padding: 6px; max-height: 360px; overflow: auto; }
.rch-l { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.rch-l:hover, .rch-l:focus-visible { background: var(--mq-fond-doux); outline: none; }
.rch-l > span:last-child { display: flex; flex-direction: column; }
.rch-vide { padding: 10px; margin: 0; }
.barre-haute #sync-slot .sync-ind { width: auto !important; min-height: 46px; padding: 0 16px; border-radius: 12px; background: var(--vert-fond); color: var(--vert); box-shadow: none; font-size: 16px; }
.barre-haute #sync-slot .sync-ind.bad { background: var(--orange-fond); color: var(--orange); }
.barre-haute #sync-slot .sync-ind .si-long { display: none !important; } .barre-haute #sync-slot .sync-ind .si-court { display: inline !important; }
.barre-haute #sync-slot .sync-ind.ok::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.bh-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mq-fond-doux); font-weight: 700; font-size: 15px; color: var(--ink); flex: none; }
.side-studio { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.side-studio .studio-select { border: 0; background: transparent; color: inherit; font: inherit; }
.fiche-vide { display: none; }

/* ── Planning ── */
.slot-row.hr { grid-template-columns: 66px minmax(0, 1fr) !important; gap: 10px !important; }
.slot-row.hr + .slot-row.hr { margin-top: 10px; }
.slot-row.hr .slot-time { font-size: 18px !important; font-weight: 700 !important; padding-top: 14px !important; color: var(--ink); letter-spacing: -.01em; }
.slot-row.hr.passe .slot-time { color: #9ea1a7 !important; font-weight: 600 !important; }
.slot-row.hr.vide .slot-time { font-size: 18px !important; padding-top: 10px !important; }
.slot-row.passe .cr-coaching { opacity: 1; }
.slot-row.hr .crs { display: flex !important; flex-direction: column; gap: 8px !important; }
.now-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 16px; }
.now-line::before, .now-line::after { content: none; }
.now-line .nl-pt { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ink); margin-left: 2px; flex: none; }
.now-line > span:last-child { background: transparent !important; font-weight: 700; padding: 0; white-space: nowrap; display: flex; align-items: center; gap: 10px; flex: 1; }
.now-line > span:last-child::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
/* Carte coaching */
.cr.cr-coaching { background: var(--mq-sauge-fond) !important; border: 1px solid var(--mq-sauge-filet) !important; border-left: 3px solid var(--mq-sauge) !important; border-radius: 12px !important; padding: 10px 12px 6px 14px !important; box-shadow: none !important; transition: background .12s, border-color .12s; }
.cr.cr-coaching .cr-h { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; min-height: 26px; padding: 0; flex-wrap: wrap; }
.cr .cr-act { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12.5px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cr.cr-coaching .cr-act { background: var(--mq-sauge-pill); color: var(--mq-sauge-texte) !important; }
.cr .cr-cap { font-size: 14px; font-weight: 600; color: var(--mq-sauge-texte); }
.cr .cr-coach { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.cr .tag-live { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--mq-bleu-fond) !important; border: 1px solid var(--mq-bleu-filet) !important; color: var(--mq-bleu) !important; font-size: 13px !important; font-weight: 600; text-transform: none; }
.cr .cr-libre { margin-left: auto; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.cr .cr-coach + .cr-libre { margin-left: 12px; }
.cr .cr-rond { width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed #c9cbd0; flex: none; }
.slot-row.hr .cr-coaching .cells { display: flex !important; flex-direction: column; gap: 2px; }
.slot-row.hr .cr-coaching .cells .cell { width: 100% !important; min-height: 60px !important; padding: 8px 8px 8px 2px !important; background: transparent !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; }
.slot-row.hr .cr-coaching .cells .cell + .cell { border-top: 1px solid rgba(75,154,112,.14) !important; border-radius: 0 !important; }
.cell .cell-l { display: flex !important; align-items: center; gap: 14px; width: 100%; }
.cell .cell-av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative; background: #e6e8eb; border: 0; font-size: 14.5px; font-weight: 700; color: #3b3e45; grid-row: auto; }
.cell .cell-av .pt { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid #fff; margin: 0; }
.cell .cell-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cell .cell-name { font-size: 17px !important; font-weight: 600 !important; color: var(--ink) !important; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .cell-sous { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .cell-id .cell-motif { display: block !important; margin: 0 !important; padding: 0 !important; font-size: 14px !important; font-weight: 500 !important; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cell .cell-motif.m-o { color: var(--orange) !important; } .cell .cell-motif.m-n { color: var(--ink-3) !important; }
.cell .cell-obj { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; flex: none; }
.cell .cell-obj .ico { color: var(--ink); }
.cell > .cell-l > .cell-motif.m-r { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; padding: 7px 12px !important; border-radius: 10px; background: var(--rouge-fond); color: var(--rouge) !important; font-size: 14.5px !important; font-weight: 600 !important; white-space: nowrap; flex: none; max-width: none; }
.cell .cell-chev { color: #9a9ca2; display: flex; flex: none; }
.cr.cr-coaching:has(.cell-prec) { border-left-color: var(--rouge) !important; background: var(--surface) !important; border-color: var(--mq-ligne) !important; border-left-color: var(--rouge) !important; }
/* Adhérent sélectionné : carte orange (maquette). */
.cr.cr-coaching:has(.cell.active) { background: var(--mq-orange-fond) !important; border: 1.5px solid var(--mq-orange-filet) !important; border-left: 3px solid var(--mq-orange) !important; }
.slot-row.hr .cr .cells .cell.active { background: transparent !important; box-shadow: none !important; }
.cr.cr-coaching:has(.cell + .cell) .cells .cell.active { background: rgba(255,255,255,.75) !important; box-shadow: inset 0 0 0 1.5px var(--mq-orange-filet) !important; border-radius: 10px !important; }
.slot-row.hr .cr .cells .cell.active .cell-name { color: var(--ink) !important; }
.slot-row.hr .cr-coaching .cells .cell:hover { background: rgba(255,255,255,.6) !important; }
/* Places libres sous la carte */
.cr-places { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border: 1px solid var(--mq-ligne); border-radius: 12px; background: #fbfbfb; font-size: 14.5px; color: var(--ink-3); }
.cr-places .pl-icos { display: inline-flex; color: #b9bcc2; }
.cr-places .pl-icos .ico { margin-right: -3px; }
/* ESCULPT / VISIO vide : une ligne */
.cr.cr-sec { display: flex !important; align-items: center; gap: 10px; min-height: 48px !important; padding: 6px 14px 6px 16px !important; border: 1px solid var(--mq-ligne) !important; border-left: 3px solid #dcdde0 !important; border-radius: 12px !important; background: #fbfbfb !important; }
.cr.cr-sec .cr-h { display: contents !important; }
.cr.cr-sec .cr-act { background: var(--mq-gris-pill); color: #2a2c31 !important; }
.cr.cr-sec .cr-cap { color: var(--ink-3); font-weight: 500; }
.cr.cr-sec .cr-coach { margin-left: 4px; }
.cr.cr-sec .cr-libre { margin-left: auto !important; }
.cr.cr-sec:not(.vide) { background: #fbfbfb !important; }
.cr.cr-sec .cells { margin-left: auto; display: flex !important; gap: 6px; }
.slot-row.hr .cr.cr-sec .cells .cell { width: auto !important; min-height: 34px !important; padding: 0 10px !important; border: 1px solid var(--mq-ligne) !important; border-radius: 999px !important; background: #fff !important; }
.cr.cr-sec .cell .cell-l { gap: 6px; }
.cr.cr-sec .cell .cell-av, .cr.cr-sec .cell .cell-obj, .cr.cr-sec .cell .cell-chev, .cr.cr-sec .cell .cell-sous, .cr.cr-sec .cell .cell-motif { display: none !important; }
.cr.cr-sec .cell .cell-name { font-size: 14px !important; font-weight: 500 !important; color: var(--ink-2) !important; }
.cr.cr-sec .cell.active { box-shadow: inset 0 0 0 1.5px var(--mq-orange) !important; }
.legende-points { font-size: 12.5px; }

/* ── Fiche adhérent ── */
#drawer .drawer-body { padding: 14px 24px 0; }
#drawer .pnav { display: flex !important; align-items: center; gap: 10px; padding: 4px 0 14px; border-bottom: 0; }
#drawer .pnav .btn { min-height: 46px; border-radius: 12px; font-size: 15.5px; font-weight: 600; padding: 0 16px; }
#drawer .pnav [data-act="nav-client"]:not(.primary) { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
#drawer .pnav .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
#drawer .pnav .pnav-pos { flex: 1; font-size: 15px; color: var(--ink-3); padding-left: 10px; }
#drawer .pnav [data-close] { width: 46px; padding: 0; justify-content: center; }
#drawer .drawer-head { display: flex; align-items: center; gap: 20px; padding: 6px 0 16px; }
#drawer .dh-av { width: 84px; height: 84px; font-size: 26px; background: #e6e8eb; color: #3b3e45; }
#drawer .dh-id { flex: 1; min-width: 0; }
#drawer .drawer-top .drawer-head h2 { font-size: 34px !important; font-weight: 700 !important; letter-spacing: -.025em; margin: 0; line-height: 1.1; }
#drawer .dh-nom { letter-spacing: -.01em; }
#drawer .dh-sous { margin: 6px 0 0; font-size: 17px; color: var(--ink-3); }
#drawer .sdj-entete { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
#drawer .sdj-entete .sdj-detail { display: none; }
#drawer .dh-studio { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--mq-fond-doux); font-size: 16px; font-weight: 600; color: var(--ink); align-self: flex-start; margin-top: 6px; }
#drawer .drawer-top .safety-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px !important; border-radius: 12px; background: var(--rouge-fond); border: 1px solid #f7cdc8; }
#drawer .drawer-top .safety-banner strong { display: inline-flex; align-items: center; gap: 8px; font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--rouge); font-weight: 600; }
#drawer .drawer-top .safety-banner span { color: #8f241f; font-size: 15.5px; font-weight: 500 !important; }
#drawer .drawer-top .safety-banner .btn { margin-left: auto; min-height: 42px; border-radius: 10px; border: 1px solid #f3c3bf; background: #fff; color: var(--rouge); font-weight: 700; font-size: 16px; padding: 0 18px; }
#drawer .synthese { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 16px 0 6px; }
#drawer .synthese .syn { display: flex !important; flex-direction: row !important; gap: 14px; align-items: flex-start; padding-right: 16px; }
#drawer .synthese .syn + .syn { border-left: 1px solid var(--line); padding-left: 18px; }
#drawer .syn-ico { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--mq-fond-doux); display: grid; place-items: center; color: var(--ink-2); }
#drawer .syn-c { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
#drawer .synthese h3.syn-k { font-size: 12.5px; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
#drawer .syn-v { font-size: 18px; font-weight: 600; }
#drawer .syn-m { font-size: 14px; }
/* Actions prioritaires */
#drawer .bande { padding: 10px 0 4px !important; gap: 12px; }
#drawer .bande .bande-k { display: none; }
#drawer .bande .bande-l { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
#drawer .bande .bchip.brep, #drawer .bande .bchip.faire { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 12px; font-size: 17px; font-weight: 600; }
#drawer .bande .bchip.brep { background: linear-gradient(180deg, #f2893e, #ec7429) !important; border: 0 !important; color: #fff !important; box-shadow: 0 2px 8px -2px rgba(236,116,41,.45) !important; }
#drawer .bande .bchip.faire { background: var(--surface) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
/* Onglets */
.fiche-onglets { display: flex; gap: 6px; margin: 14px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.fiche-onglets [role=tab] { flex: 1 0 auto; min-height: 50px; padding: 0 18px; border: 0; background: transparent; font: inherit; font-size: 16.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.fiche-onglets [role=tab][aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.fiche-pane { padding: 14px 0 6px; }
.fiche-pane[hidden] { display: none !important; }
.fiche-pane > .card, .fiche-pane > section.xp:not(.seance-du-jour) { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: none; }
.fiche-pane h3 { margin: 0 0 8px; font-size: 15px; }
.lien-dossier { display: inline-flex; margin: 4px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
#drawer .seance-du-jour { padding: 0 !important; }
#drawer .seance-du-jour > h3 { display: none; }
#drawer .seance-du-jour .seance-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 18px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); margin: 0; }
#drawer .seance-code { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
#drawer .seance-num { font-size: 14.5px; color: var(--ink-3); }
#drawer .prop-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--mq-orange); color: #c75a15; background: var(--mq-orange-fond); font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
#drawer .seance-head .chip { font-size: 12.5px; }
#drawer .seance-rep { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); }
#drawer .seance-int { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
#drawer .seance-int .ico { color: var(--mq-orange); }
#drawer .seance-du-jour dl.objs { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; padding: 14px 18px 16px; border: 1px solid var(--line); border-top: 1px solid var(--mq-ligne); border-radius: 0 0 14px 14px; background: var(--surface); }
#drawer .seance-du-jour dl.objs dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
#drawer .seance-du-jour dl.objs dd { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
#drawer .seance-du-jour .blocs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#drawer .seance-du-jour details.bloc { border: 1px solid var(--line) !important; border-radius: 14px !important; background: var(--surface); overflow: hidden; }
#drawer .seance-du-jour details.bloc > summary.bloc-h { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px; cursor: pointer; list-style: none; }
#drawer .seance-du-jour details.bloc > summary.bloc-h::-webkit-details-marker { display: none; }
#drawer .bloc-l { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
#drawer .bloc-t { font-size: 17px; font-weight: 600; color: var(--ink); }
#drawer .bloc-v { margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
#drawer .bloc-h::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); margin-left: 10px; flex: none; }
#drawer details.bloc[open] > .bloc-h::after { transform: rotate(-135deg) translateY(-3px); }
#drawer details.bloc[open] .bloc-ex { display: none; }
#drawer .bloc-ex { font-size: 13px; color: var(--ink-3); }
#drawer .seance-du-jour .slot { display: flex; align-items: center; gap: 14px; margin: 0 14px 8px; padding: 10px 12px; border-radius: 10px; background: var(--mq-fond-doux); border: 0 !important; }
#drawer .seance-du-jour .slot-role { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: #e8e9ec; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); flex: none; }
#drawer .seance-du-jour .slot-main { flex: 1; font-size: 15px; color: var(--ink-2); }
#drawer .seance-du-jour details.bloc > p { margin: 0 16px 10px; }
/* Suivi rapide et observation (maquette) */
#drawer .observation { padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px)) !important; margin: auto -24px 0 !important; box-shadow: 0 -12px 24px -18px rgba(20,21,24,.25) !important; }
#drawer .observation .raccs { gap: 12px !important; }
#drawer .observation .btn.racc { min-height: 56px !important; border-radius: 12px !important; font-size: 17px !important; font-weight: 600 !important; }
#drawer .observation .btn.racc[data-racc="ras"] { background: #eef8f2; border: 1.5px solid #9fd2b5 !important; color: var(--vert) !important; }
#drawer .observation .btn.racc[data-racc="super"] { background: #fff; border: 1.5px solid var(--line) !important; color: var(--ink) !important; }
#drawer .observation .btn.racc[data-racc="fatigue"] { background: var(--mq-orange-fond); border: 1.5px solid var(--mq-orange-filet) !important; color: #c25d12 !important; }
#drawer .observation .btn.racc[data-racc="douleur"] { background: var(--rouge-fond); border: 1.5px solid #ee9f99 !important; color: var(--rouge) !important; }
#drawer .observation .btn.racc.on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
#drawer .quick-note .qn-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; margin-top: 12px; }
#drawer .quick-note textarea { min-height: 54px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; resize: none; }
#drawer .quick-note select { min-height: 54px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; }
#drawer .quick-note .btn.primary { min-height: 54px; padding: 0 24px; border-radius: 12px; background: var(--ink); border-color: var(--ink); font-size: 17px; font-weight: 600; }
#drawer .drawer-pied .fiche-liens { display: none; }

/* ── Grand écran (≥ 1024) : menu latéral, barre haute commune, deux zones 40 / 60 ── */
@media (min-width: 1024px) {
  :root { --largeur-menu: 76px; --largeur-fiche: calc((100vw - var(--largeur-menu) - 24px) * .6); }
  body { background: var(--nuit) !important; }
  .top { position: fixed !important; top: 0; left: 0; bottom: 0; width: var(--largeur-menu); background: var(--nuit) !important; border: 0 !important; z-index: 30; }
  .top-row { height: 100%; flex-direction: column !important; align-items: stretch !important; gap: 6px !important; padding: 22px 12px 18px !important; min-height: 0 !important; }
  .top-row > img { filter: invert(1); align-self: flex-start; }
  .top-row > nav.tabs { display: flex !important; flex-direction: column; gap: 4px; overflow: visible; margin-top: 18px; }
  .top-row > nav.tabs a { display: flex !important; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: transparent !important; color: var(--nuit-texte) !important; font-size: 16px; font-weight: 500; box-shadow: none !important; }
  .top-row > nav.tabs a:hover { color: #fff !important; background: var(--anthracite) !important; }
  .top-row > nav.tabs a[aria-current="page"] { background: var(--anthracite-2) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--mq-orange) !important; }
  .top-row .grow { flex: 1; }
  .top .side-studio { display: flex !important; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; color: var(--nuit-texte); border-top: 0; font-size: 16px; }
  .top .side-studio .studio-select, .top .side-studio .studio-name { color: var(--nuit-texte) !important; background: transparent !important; border: 0 !important; padding: 0; font-weight: 500; min-height: 0; }
  .top .moi { display: block !important; position: relative; border-top: 1px solid #2c2e33; padding-top: 14px; margin-top: 4px; }
  .top .moi summary { display: flex !important; align-items: center; gap: 12px; width: 100%; padding: 4px 6px; background: transparent !important; border: 0 !important; color: #fff !important; cursor: pointer; list-style: none; }
  .top .moi summary::-webkit-details-marker { display: none; }
  .top .moi .moi-av { width: 44px; height: 44px; border-radius: 50%; background: var(--anthracite-2); color: #fff; font-size: 14px; display: grid; place-items: center; flex: none; }
  .top .moi .moi-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .top .moi .coach { display: block !important; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .moi .moi-role { font-size: 13px; color: #8d9098; }
  .top .moi .moi-chev { color: #8d9098; display: flex; }
  .top .moi-menu { top: auto !important; bottom: calc(100% + 6px); left: 0; right: auto; }
  .barre-haute { position: fixed; top: 12px; left: var(--largeur-menu); right: 12px; height: var(--haut-barre); z-index: 25; padding: 0 20px; border-radius: 20px 20px 0 0; }
  main, body.drawer-open main { max-width: none !important; margin: 12px 12px 12px var(--largeur-menu) !important; min-height: calc(100vh - 24px); background: var(--surface) !important; border-radius: 20px !important; padding: calc(var(--haut-barre) + 18px) 22px 24px 20px !important; }
  body.drawer-open main, body[data-page="planning"] main { margin-right: calc(var(--largeur-fiche) + 12px) !important; border-radius: 20px 0 0 20px !important; border-right: 1px solid var(--line); }
  html body #drawer { top: calc(12px + var(--haut-barre)) !important; bottom: 12px !important; right: 12px !important; width: var(--largeur-fiche) !important; border-radius: 0 0 20px 0 !important; border-left: 0 !important; box-shadow: none !important; background: var(--surface); }
  html body #drawer .observation { border-radius: 0 0 20px 0; }
  .fiche-vide { position: fixed; top: calc(12px + var(--haut-barre)); bottom: 12px; right: 12px; width: var(--largeur-fiche); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 40px; background: var(--surface); border-radius: 0 0 20px 0; color: var(--ink-2); }
  .fiche-vide p { margin: 0; max-width: 360px; }
  .fiche-vide .fv-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mq-fond-doux); color: #9a9ca2; margin-bottom: 10px; }
  body.drawer-open .fiche-vide { display: none; }
  .banner.fict { padding-top: 0; }
  body.drawer-open #toast, body[data-page="planning"] #toast { left: calc(var(--largeur-menu) + (100vw - var(--largeur-menu) - var(--largeur-fiche)) / 2); }
}
/* Tablette paysage, petit ordinateur (1024–1279) : menu réduit aux icônes. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .top-row > img { width: 52px; height: auto; margin: 0 0 0 0; }
  .top-row > nav.tabs a { justify-content: center; padding: 0; }
  .top-row > nav.tabs a span, .top .side-studio select, .top .side-studio .studio-name, .top .moi .moi-id, .top .moi .moi-chev { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .side-studio { justify-content: center; padding: 0; }
  .top .moi summary { justify-content: center; padding: 4px 0; }
  .recherche { width: 200px; }
  .barre-haute { gap: 8px; padding: 0 14px; }
  .barre-haute .bh-av { display: none; }
  .cell .cell-obj span { display: none; }
}
@media (min-width: 1280px) {
  :root { --largeur-menu: 216px; }
  .top-row { padding: 26px 14px 18px !important; }
  .top-row > img { height: 40px; margin: 0 0 0 10px; }
}
/* Tablette portrait et téléphone (< 1024) : barre haute dans le flux, fiche plein écran. */
@media (max-width: 1023px) {
  .barre-haute { position: sticky; top: 0; z-index: 9; }
  .side-studio .ico { display: none; }
  .top .moi .moi-id .moi-role { display: none; }
}
@media (max-width: 767px) {
  .barre-haute { padding: 8px 12px; gap: 8px; position: static; }
  .barre-haute .recherche, .barre-haute .bh-av { display: none; }
  .barre-haute .datebar { flex-wrap: wrap; gap: 8px; width: 100%; }
  .date-groupe { flex: 1; justify-content: space-between; }
  .date-groupe h1.date { font-size: 16px; }
  .datebar .filtre-coach { width: 100%; } .datebar .filtre-coach select { width: 100%; min-height: 44px; }
  .barre-haute #sync-slot { display: none; }
  .slot-row.hr { grid-template-columns: 50px minmax(0, 1fr) !important; }
  .slot-row.hr .slot-time { font-size: 15px !important; }
  .cell .cell-obj { display: none; }
  .cell .cell-av { width: 38px; height: 38px; font-size: 13px; }
  .cell .cell-name { font-size: 16px !important; }
  .cell > .cell-l > .cell-motif.m-r { padding: 5px 8px !important; font-size: 13px !important; }
  #drawer .drawer-body { padding: 10px 14px 0; }
  #drawer .drawer-head { gap: 14px; }
  #drawer .dh-av { width: 60px; height: 60px; font-size: 20px; }
  #drawer .drawer-top .drawer-head h2 { font-size: 24px !important; }
  #drawer .dh-sous { font-size: 14.5px; }
  #drawer .dh-studio { display: none; }
  #drawer .synthese { grid-template-columns: 1fr; gap: 12px; }
  #drawer .synthese .syn + .syn { border-left: 0; padding-left: 0; }
  #drawer .fiche-onglets [role=tab] { padding: 0 12px; font-size: 15px; flex: 0 0 auto; }
  #drawer .seance-du-jour dl.objs { grid-template-columns: 1fr; gap: 2px; }
  #drawer .seance-rep { margin-left: 0; width: 100%; }
  #drawer .observation { padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important; margin: auto -14px 0 !important; }
  #drawer .observation .btn.racc { min-height: 54px !important; font-size: 14px !important; }
  #drawer .quick-note .qn-ligne { grid-template-columns: 1fr; }
}
.cell .cell-id { flex: 1 1 auto; min-width: 96px; }
.cell .cell-obj { flex: 0 1 auto; min-width: 0; max-width: 46%; }
.cell .cell-obj > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-haute #sync-slot { order: 0 !important; }
.barre-haute .bh-av { order: 1; }
/* Densité de la fiche (maquette) et lignes sans débordement */
.slot-row.hr .cr-coaching .cells .cell { overflow: hidden; }
.cell > .cell-l > .cell-motif.m-r { flex: 0 1 auto !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cell .cell-id { min-width: 84px; }
#drawer .drawer-head { padding: 2px 0 12px; }
#drawer .synthese { padding: 12px 0 2px; }
#drawer .syn-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
#drawer .syn-trans .syn-m { font-size: 13px; }
#drawer .syn-tete { min-height: 0; }
#drawer .syn-tete .btn.link { font-size: 12.5px; min-height: 0; }
#drawer .bande { padding: 8px 0 0 !important; }
.fiche-onglets { margin-top: 10px; }
.fiche-onglets [role=tab] { min-height: 46px; }
#drawer .syn-tete { flex-wrap: wrap; justify-content: flex-start; gap: 0 10px; }
#drawer .syn-tete h3.syn-k, #drawer .syn-tete .btn.link { white-space: nowrap; }
#drawer .seance-rep { flex-wrap: wrap; }
@media (min-width: 1024px) { .barre-haute { z-index: 55; } }
/* Écrans étroits : pastille de sécurité sous le nom, recherche dans la page Clients */
@media (max-width: 1279px) {
  .slot-row.hr .cr-coaching .cells .cell .cell-l { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av id ch" "av pr ch"; column-gap: 12px; row-gap: 4px; }
  .cell .cell-l > .cell-av { grid-area: av; } .cell .cell-l > .cell-id { grid-area: id; } .cell .cell-l > .cell-chev { grid-area: ch; } .cell .cell-l > .cell-obj { grid-area: pr; justify-self: start; }
  .cell > .cell-l > .cell-motif.m-r { grid-area: pr; justify-self: start; padding: 3px 9px !important; font-size: 13px !important; }
  .cell:has(> .cell-l > .cell-motif.m-r) .cell-sous { display: none; }
  #drawer .observation .btn.racc { font-size: 15px !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .cell .cell-obj { display: none !important; } }
@media (max-width: 1023px) {
  .barre-haute .recherche, .barre-haute .bh-av { display: none; }
  .barre-haute .datebar { flex: 1; flex-wrap: wrap; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .top-row > nav.tabs a .ico { display: none; }
  .top-row > nav.tabs a { padding: 0 .7rem; }
  .top .moi .moi-id, .top .moi .moi-chev { display: none; }
}
@media (max-width: 767px) {
  .cr.cr-sec .cr-coach { display: none; }
  .cr.cr-sec { flex-wrap: nowrap; }
}
.cr.cr-sec { flex-wrap: nowrap !important; }
@media (max-width: 1279px) { .cr.cr-sec .cr-coach { display: none; } }
