/* Application de réservation Hybrid BDN : même identité que le prototype validé (noir, kaki, Archivo). */
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0}
[hidden]{display:none!important}
/* : une colonne mobile, trois vues (client, coach, gérant). Identité Hybrid BDN : blanc, noir, kaki. */
:root {
  color-scheme: dark;
  --paper: #151515; --card: #22251D; --ink: #F4F3EF; --muted: #A9B091; --line: #383B31;
  --kaki: #9AA67C; --kaki-dark: #C7D49A; --kaki-soft: #2F3426; --warn: #E0A64B; --warn-soft: #3A2E1C; --bad: #E0533F;
  --on-accent: #151515; --bar: #0E0F0D; --coach: #E0A64B; --free: #D9D6CC;
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kaki); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 900; font-stretch: 120%; text-transform: uppercase; line-height: 1; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 760px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bar); }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bar); color: var(--ink); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-stretch: 125%; font-size: 18px; }
.brand b { color: #9AA67C; }
main select, main input:not([type="checkbox"]) { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; font-size: 15px; max-width: 100%; }
main select:focus, main input:focus { outline: none; border-color: var(--kaki); }
main option { background: var(--card); color: var(--ink); }
main input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--kaki); }
main input[type="date"] { color-scheme: dark; }
.backsite { color: var(--ink); font-weight: 800; font-stretch: 110%; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; white-space: nowrap; }
.backsite:hover { border-color: var(--kaki); color: var(--kaki); }
.testpill { font-size: 12px; font-weight: 700; background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.tabs { display: flex; gap: 4px; background: var(--bar); padding-bottom: 10px; overflow-x: auto; }
.tabs button { border: 0; background: #2A2C27; color: #C9CDB8; border-radius: 3px; padding: 9px 14px; font-weight: 800; font-stretch: 110%; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--kaki); color: var(--on-accent); }

main { padding-block: 22px 56px; display: grid; gap: 18px; }
.lead { color: var(--muted); }
.notice { background: var(--card); border-left: 4px solid var(--kaki); padding: 12px 14px; border-radius: 3px; font-size: 15px; }
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px; display: grid; gap: 14px; }
.panel h2 { font-size: 22px; }
.panel h3 { font-size: 17px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label.field { display: grid; gap: 5px; font-weight: 600; font-size: 14px; min-width: 0; }
label.field input, label.field select { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; font-weight: 400; }
label.field input:focus, label.field select:focus { outline: none; border-color: var(--kaki); }
.btn { border: 2px solid transparent; border-radius: 3px; padding: 11px 18px; font-weight: 800; font-stretch: 110%; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-main { background: var(--kaki); color: var(--on-accent); }
.btn-kaki { background: var(--kaki); color: var(--on-accent); }
.btn-line { background: transparent; border-color: var(--line); }
.btn-small { padding: 7px 12px; font-size: 14px; }
.link { border: 0; background: none; padding: 0; color: var(--kaki-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.days button { flex: none; width: 60px; border: 1px solid var(--line); background: var(--card); border-radius: 3px; padding: 7px 0; cursor: pointer; display: grid; justify-items: center; }
.days b { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.days strong { font-weight: 900; font-stretch: 120%; font-size: 24px; line-height: 1.05; }
.days button[aria-selected="true"] { background: var(--kaki); border-color: var(--kaki); color: var(--on-accent); }
.days button[aria-selected="true"] b { color: var(--on-accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; }

.slots { display: grid; gap: 10px; }
.slot { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--kaki)); border-radius: 3px; padding: 14px; display: grid; gap: 10px; }
.slot.past { opacity: .5; }
.slot.freed { box-shadow: 0 0 0 2px var(--kaki); }
.slot-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.slot-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.slot-name { font-weight: 900; font-stretch: 120%; font-size: 20px; text-transform: uppercase; line-height: 1.05; }
.slot-meta { font-size: 14px; color: var(--muted); }
.slot-coach b { color: var(--ink, inherit); font-weight: 800; }
.cap { text-align: right; display: grid; gap: 4px; justify-items: end; font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 3px; }
.bars i { width: 8px; height: 14px; border-radius: 1px; background: var(--line); }
.bars i.on { background: var(--c, var(--kaki)); }
.status { font-size: 14px; font-weight: 700; color: var(--muted); }
.status.ok { color: var(--kaki-dark); }
.status.free { color: var(--kaki); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pay { background: var(--kaki-soft); border-radius: 3px; padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.pay strong { font-size: 16px; }
.alertbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: var(--kaki); color: var(--on-accent); border-radius: 3px; padding: 12px 14px; font-weight: 700; }
.alertbar .btn { background: var(--paper); color: var(--ink); padding: 7px 12px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; }
.tablebox { overflow-x: auto; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--kaki-soft); color: var(--kaki-dark); white-space: nowrap; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.empty { color: var(--muted); text-align: center; padding: 24px 12px; border: 1px dashed var(--line); border-radius: 3px; font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tile { background: var(--card); padding: 14px; display: grid; gap: 4px; align-content: start; }
.tile .lab { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tile .val { font-weight: 900; font-stretch: 115%; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile .hint { font-size: 13px; color: var(--muted); }
.tile.main { background: var(--kaki); color: var(--on-accent); }
.tile.main .lab, .tile.main .hint { color: var(--on-accent); opacity: .85; }
.gauge { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--kaki); }
.gauge i.warn { background: var(--warn); } .gauge i.bad { background: var(--bad); }
.auto { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15px; }
.invoice { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 16px; display: grid; gap: 10px; font-size: 14px; }
.invoice .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.chip.ok { background: var(--kaki); color: var(--on-accent); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 3px; font-weight: 600; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .2s ease both; } @keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } } }

/* ---------- Ajouts de l'application connectée ---------- */
.auth { display: grid; gap: 14px; }
.auth form { display: grid; gap: 12px; }
.seg { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); border-radius: 3px; padding: 9px 6px; font-weight: 800; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--kaki); color: var(--on-accent); }
.btn { min-height: 44px; }
.btn-small { min-height: 36px; }
.btn-block { width: 100%; }
.price { font-weight: 900; font-stretch: 115%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.habits { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.habit { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 4px; padding: 10px 12px; text-align: left; cursor: pointer; display: grid; gap: 2px; min-width: 170px; }
.habit b { font-weight: 900; font-stretch: 115%; text-transform: uppercase; }
.habit span { font-size: 13px; color: var(--muted); }
.habit:disabled { opacity: .5; cursor: not-allowed; }
.member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.member .big { font-weight: 900; font-stretch: 120%; font-size: 30px; line-height: 1; color: var(--kaki); white-space: nowrap; }
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.item:first-child { border-top: 0; padding-top: 0; }
.item .t { font-weight: 800; }
.item .m { font-size: 14px; color: var(--muted); }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.subtabs { display: flex; gap: 4px; overflow-x: auto; }
.subtabs button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.subtabs button[aria-selected="true"] { background: var(--kaki-soft); color: var(--kaki-dark); border-color: var(--kaki); }
.hbar { display: grid; grid-template-columns: 92px 1fr 52px; gap: 8px; align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.hbar .track { height: 14px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--kaki); }
.hbar .track i.free { background: var(--free); }
.roster { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.roster li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.att { display: flex; gap: 4px; }
.att button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 3px; padding: 6px 10px; font-weight: 700; cursor: pointer; min-height: 36px; }
.att button[aria-pressed="true"].p { background: var(--kaki); color: var(--on-accent); border-color: var(--kaki); }
.att button[aria-pressed="true"].a { background: var(--bad); color: #fff; border-color: var(--bad); }
.confirmbox { background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 4px; padding: 12px; display: grid; gap: 10px; }
.disclaimer { font-size: 13px; color: var(--warn); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--kaki); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 420px) { .slot-name { font-size: 18px; } .hbar { grid-template-columns: 72px 1fr 46px; } }

/* ===== v0.3 : expérience mobile (couleurs, polices et logo inchangés) ===== */
/* « Réserver à nouveau » : grille qui passe à la ligne au lieu d'un défilement horizontal qui coupait la dernière carte. */
.habits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
.habit { min-width: 0; width: 100%; }
.habit b, .habit span { overflow-wrap: anywhere; }
.qr { background: #fff; padding: 8px; border-radius: 4px; display: block; }
#mfa-secret { user-select: all; word-break: break-all; font-size: 14px; }
.tiles.fin .tile.main .val { color: var(--kaki); }

@media (max-width: 640px) {
  /* En-tête compact : une rangée de 44 px + onglets plus serrés (≈ 90 px au lieu de ≈ 115 px). */
  header.top .wrap { min-height: 44px; gap: 8px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand svg { width: 22px; height: 22px; }
  .backsite { font-size: 12px; padding: 5px 9px; }
  .testpill { font-size: 11px; padding: 3px 8px; }
  .tabs { padding-bottom: 6px; }
  .tabs button { padding: 7px 11px; font-size: 14px; }

  /* Tableaux du gérant : chaque ligne devient une carte « étiquette : valeur ». */
  table.resp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: 100%; }
  table.resp tr { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; margin-bottom: 8px; background: var(--card); }
  table.resp td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; padding: 5px 0; text-align: right; overflow-wrap: anywhere; }
  table.resp td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  table.resp td:not([data-label])::before { content: none; }
  table.resp td[colspan] { justify-content: center; color: var(--muted); }
  .tablebox { overflow-x: visible; }
  .tile .val { font-size: 22px; }
  /* Sous-onglets du gérant (8) : sur plusieurs lignes, tous visibles, plutôt qu'un défilement caché. */
  .subtabs { flex-wrap: wrap; overflow-x: visible; }
  .subtabs button { padding: 6px 11px; font-size: 14px; }
}

/* ===== v0.3.3 : coupures de ligne (couleurs, polices, tailles de marque inchangées) ===== */
/* Libellés courts : jamais coupés au milieu. */
.btn, .seg button, .tabs button, .subtabs button, .status, .legend span, .chip, .price, th, .att button, .roster .att .lead, .hlab, .phone, .backsite, .slot-time > span { white-space: nowrap; }
/* Textes courants : pas de mot seul en dernière ligne. */
p, li, .slot-meta, .item .m, .lead, .notice, .tile .hint, .disclaimer, .empty, td { text-wrap: pretty; }
.toast, .tile .lab { text-wrap: balance; }
/* Durée du créneau : une pastille, qu'elle tienne sur la ligne de l'horaire ou passe dessous. */
.slot-time { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.slot-time .dur { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 18px; }
/* Bouton long (alerte) : il prend la largeur au lieu de se couper. */
.actions .btn { max-width: 100%; }
/* Connexion / Créer un compte / Mot de passe oublié : deux rangées propres sur petit écran plutôt que des mots coupés. */
.seg { flex-wrap: wrap; }
.seg button { flex: 1 1 auto; padding-inline: 10px; }
/* Planning du gérant : téléphone sous le nom. */
.roster .phone { display: block; }
.hbar { grid-template-columns: 8.5em 1fr 3.4em; }
.hlab { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .panel { padding: 14px; }
  .slot { padding: 12px; }
  .hbar { grid-template-columns: 7.6em 1fr 3em; font-size: 13px; }
  .item { grid-template-columns: 1fr; }
  .item .acts { justify-content: flex-start; }
}
/* Carte « étiquette : valeur » : une valeur trop longue passe sous l'étiquette, alignée à droite, sans casser la pastille. */
@media (max-width: 640px) { table.resp td { flex-wrap: wrap; } table.resp td > :last-child { margin-left: auto; } }
/* « Réserver à nouveau » : une carte par ligne sur téléphone pour que « FREE ACCÈS JEUDI 10:00 » tienne sur une ligne. */
.habits { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tile .val { white-space: nowrap; }
/* Grilles et sous-onglets : jamais plus larges que l'écran (débordement de 11 px à 768 px corrigé). */
main > *, .panel > * { min-width: 0; }
.subtabs { flex-wrap: wrap; overflow-x: visible; }
/* Tableaux en mode tableau (écran large) : cellules sur une ligne, défilement dans le cadre si besoin. */
@media (min-width: 641px) { .tablebox td { white-space: nowrap; } }
/* « Résultat estimé » : le montant était écrit en kaki sur fond kaki (invisible). Même couleur que les autres tuiles principales. */
.tiles.fin .tile.main .val { color: var(--on-accent); }
/* Message bref : largeur de son texte (il était limité à la moitié de l'écran par left: 50 %). */
.toast { width: max-content; }

/* v0.4 : formules d'abonnement (mêmes couleurs que les tuiles, la charte ne change pas) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.plan .lab { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.plan b { font-size: 16px; line-height: 1.25; text-wrap: balance; }
.plan .big { font-weight: 900; font-stretch: 115%; font-size: 28px; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .big small { font-size: 14px; font-weight: 700; font-stretch: 100%; }
.plan .btn { margin-top: 6px; }
.plan.main { border-color: var(--kaki); box-shadow: inset 0 0 0 1px var(--kaki); }
.plan.main .lab { color: var(--kaki-dark); }
#sub-acts:empty { display: none; }
/* Prix remplacé par un mot (abonnement, Full accès) : plus petit, pour ne jamais déborder du créneau */
.price.word { font-size: 12px; font-stretch: 100%; text-transform: uppercase; letter-spacing: .05em; color: var(--kaki-dark); }
/* Un créneau ne dépasse jamais de sa carte, même avec un libellé de bouton long */
.slot { min-width: 0; }
.slot .actions .btn { white-space: normal; text-wrap: balance; max-width: 100%; }
/* v0.4.1 : cases CGV / Charte / démarrage immédiat, pied de page des documents */
.terms { display: grid; gap: 10px; margin: 4px 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 2px; }
.check a { color: var(--kaki-dark); text-underline-offset: 3px; }
.plan-confirm { display: grid; gap: 10px; margin-top: 4px; }
.plan-confirm b { text-wrap: balance; }
.docs-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; padding: 24px 16px 40px; font-size: 13px; }
.docs-foot a { color: var(--muted); text-underline-offset: 3px; }

/* ---------- v0.6 : espace de gestion séparé (/gestion) : menu latéral sur ordinateur, menu défilant sur téléphone ---------- */
.wrap.wide { max-width: 1240px; }
.g-tag { margin-left: 8px; font-size: 11px; font-weight: 800; font-stretch: 100%; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-accent); background: var(--kaki); border-radius: 3px; padding: 3px 7px; }
.gestion { display: grid; gap: 18px; padding-top: 18px; padding-bottom: 32px; align-items: start; }
.g-main { min-width: 0; display: grid; gap: 14px; }
.g-main > section { display: grid; gap: 14px; }
.g-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.g-group { display: contents; }
.g-title { display: none; }
.g-nav button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 12px;
  font-weight: 700; cursor: pointer; white-space: nowrap; text-align: left; }
.g-nav button:hover { color: var(--ink); border-color: var(--kaki); }
.g-nav button[aria-current="page"] { background: var(--kaki-soft); color: var(--kaki-dark); border-color: var(--kaki); }
@media (min-width: 980px) {
  .gestion { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 26px; }
  .g-nav { position: sticky; top: 86px; flex-direction: column; gap: 2px; overflow: visible; padding: 14px 10px; background: var(--card);
    border: 1px solid var(--line); border-radius: 4px; }
  .g-group { display: flex; flex-direction: column; gap: 2px; }
  .g-group + .g-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .g-title { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 10px 4px; }
  .g-nav button { border: 0; border-radius: 3px; padding: 8px 10px; width: 100%; }
  .g-nav button[aria-current="page"] { box-shadow: inset 3px 0 0 var(--kaki); }
  .g-main .tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
.g-show-sm { display: none; }
@media (max-width: 560px) { .g-hide-sm { display: none; } .g-show-sm { display: inline; } .g-tag { display: none; }
  [data-espace="gestion"] header.top .backsite { padding: 6px 9px; font-size: 13px; }
  [data-espace="gestion"] header.top .row { flex-wrap: nowrap; }
  [data-espace="gestion"] .brand { font-size: 0; gap: 0; } }

/* ---------- v0.6 : gestion plus lisible (en-têtes de page, pictogrammes, graphiques, planning des coachs) ---------- */
.g-nav button { display: flex; align-items: center; gap: 8px; }
.g-nav button svg { flex: none; opacity: .8; }
.g-nav button[aria-current="page"] svg { opacity: 1; }
.g-head { display: grid; gap: 4px; padding: 2px 0 6px; }
.g-head h1 { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.g-head h1 svg { width: 22px; height: 22px; color: var(--kaki); }
.g-crumb { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kaki); }
.g-sub { color: var(--muted); font-size: 14px; }
.g-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.g-ph .lead { font-size: 13px; }
.g-two { display: grid; gap: 14px; }
@media (min-width: 980px) { .g-two { grid-template-columns: 1fr 1fr; } }
.g-chart svg { width: 100%; height: 170px; display: block; overflow: visible; }
.g-chart .g-grid { stroke: var(--line); stroke-width: 1; }
.g-chart .g-axis { fill: var(--muted); font-size: 11px; }
.g-chart .g-val { fill: var(--ink); font-size: 12px; font-weight: 800; }
.g-chart .g-bar path { fill: var(--kaki); opacity: .55; transition: opacity .15s; }
.g-chart .g-bar.cur path, .g-chart .g-bar:hover path { opacity: 1; }
.g-table { margin-top: 6px; font-size: 13px; }
.g-table summary { cursor: pointer; color: var(--muted); }
.g-tip { position: fixed; z-index: 50; pointer-events: none; background: #0E0F0D; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; font-size: 13px; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.g-tip span { color: var(--muted); }
.g-weekbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.g-weekbar strong { font-stretch: 110%; }
.g-days { display: grid; gap: 12px; }
@media (min-width: 760px) { .g-days { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } }
.g-day { gap: 10px; }
.g-day.today { border-color: var(--kaki); }
.g-dayhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.g-dayhead h3 { font-size: 15px; }
.g-dayall { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.g-slots { display: grid; gap: 6px; }
.g-slot { display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.g-slot select { width: 100%; }
.g-slot.locked { opacity: .55; }
.g-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.g-seats { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gestion .tablebox table tbody tr:hover td { background: rgba(154,166,124,.06); }
.gestion .tile { transition: border-color .15s; }
@media (prefers-reduced-motion: no-preference) {
  .g-main > section:not([hidden]) > * { animation: gfade .18s ease-out both; }
  @keyframes gfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.g-dayall { white-space: nowrap; }
.g-day { align-content: start; }
@media (min-width: 760px) { .gestion .hbar { grid-template-columns: 160px 1fr 52px; } }
.g-weekbar > .row:first-child { flex-wrap: nowrap; min-width: 0; }
.g-weekbar > .row:first-child strong { flex: 1 1 auto; min-width: 0; text-align: center; }
@media (max-width: 560px) { .g-weekbar { justify-content: center; } .g-weekbar > .row:first-child { width: 100%; } .g-weekbar strong { font-size: 14px; } }
