/* Navigation membre : identité ALC, matériaux discrets et onglets façon iOS.
   Les réservations gardent leur grille sur bureau et leur liste sur mobile. */
:root {
  --member-ink: #004049;
  --member-muted: #536b68;
  --member-line: #dde6e1;
  --member-surface: #f5f7f5;
}
body:has(#bookingView.active) { background: var(--member-surface); }
body:has(#bookingView.active) .bg-blob { display: none; }
html:has(#bookingView.active) { scroll-padding-top: 116px; }
#bookingView {
  max-width: 1280px;
  padding: 24px 40px 64px;
  color: var(--member-ink);
  font-family: 'acumin-pro', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
#bookingView.active { animation: none; }
#bookingView .app-header {
  position: sticky;
  top: 16px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  padding: 12px 20px;
  margin-bottom: 40px;
  border: 1px solid rgb(255 255 255 / .95);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .04), 0 2px 4px rgb(0 0 0 / .03), 0 12px 32px rgb(0 0 0 / .04);
}
#bookingView .header-left { min-width: 0; width: auto; gap: 12px; }
#bookingView .header-logo { flex: none; }
#bookingView .header-wordmark, #bookingView .header-divider { display: none; }
#bookingView .header-monogram { display: block; width: 40px; height: 40px; filter: none; }
.header-identity { min-width: 0; }
.header-context { display: block; color: var(--member-muted); font-size: 12px; line-height: 1.5; }
#bookingView .header-welcome { overflow: hidden; color: var(--member-ink); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
#bookingView .header-right { width: auto; justify-content: flex-end; }
#bookingView .session-badge { min-height: 36px; padding: 6px 12px; background: #e5ffe1; color: var(--member-ink); font-size: 13px; }
#bookingView .session-badge.warning { background: #fff0c6; color: #754500; }
#bookingView .session-badge.empty { background: #ffebe7; color: #9b3023; }
#bookingView .session-badge-icon, #bookingView .session-badge-rest { display: none; }

#bookingView .tab-bar {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #e4eae6;
  border-radius: 999px;
  background: #edf1ee;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .02);
}
#bookingView .tab-bar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--member-muted);
  font: 600 13px/1.2 'acumin-pro', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
#bookingView .tab-bar-item[aria-current="page"] {
  color: var(--member-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / .06), 0 3px 8px rgb(0 0 0 / .04);
}
#bookingView .tab-bar-icon { position: relative; display: grid; place-items: center; width: 21px; height: 24px; background: transparent; }
#bookingView .tab-bar-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#bookingView .tab-bar-item[aria-current="page"] svg { stroke-width: 2.2; }
#bookingView .tab-bar-item:active { transform: scale(.96); }
#bookingView .tab-bar-item:focus-visible { outline: 2px solid var(--member-ink); outline-offset: 3px; }
#bookingView .tab-badge { position: absolute; top: -6px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--member-ink); color: #fff; font: 700 10px/16px -apple-system, BlinkMacSystemFont, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
#bookingView .tab-badge[hidden] { display: none; }
@media (hover: hover) {
  #bookingView .tab-bar-item:not([aria-current="page"]):hover { background: #e0e8e2; color: var(--member-ink); }
}

.member-screen-heading { margin-bottom: 28px; }
.member-screen-heading h1 { font-family: 'acumin-pro-condensed', 'Arial Narrow', sans-serif; font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.member-screen-heading p { margin-top: 10px; color: var(--member-muted); font-size: 16px; line-height: 1.5; max-width: 60ch; text-wrap: pretty; }
.member-skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: #fff; color: var(--member-ink); transform: translateY(-150%); }
.member-skip-link:focus { transform: none; }
#bookingView :focus-visible { outline: 2px solid var(--member-ink); outline-offset: 3px; }
#bookingView :focus { scroll-margin-block: 120px; }
#bookingView:not([data-tab="reserver"]) [data-tab-panel="reserver"],
#bookingView:not([data-tab="seances"]) [data-tab-panel="seances"],
#bookingView:not([data-tab="acheter"]) [data-tab-panel="acheter"],
#bookingView:not([data-tab="compte"]) [data-tab-panel="compte"] { display: none !important; }
#bookingView .app-only { display: revert; }
#bookingView .btn.app-only { display: inline-flex; }
#bookingView .purchase-section, #bookingView .sessions-section, #bookingView .account-section { margin-top: 0; }
#bookingView .account-section { border: 0; padding-top: 0; }
#bookingView .section-title-icon { display: none; }
#bookingView .account-card { padding: 24px; margin-bottom: 20px; border: 1px solid var(--member-line); border-radius: 24px; background: #fff; }
#bookingView .account-who { display: flex; align-items: center; gap: 16px; }
#bookingView .account-avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #e5ffe1; color: var(--member-ink); font-size: 20px; font-weight: 700; }
#bookingView .account-id { display: flex; flex-direction: column; min-width: 0; font-size: 14px; color: var(--member-muted); }
#bookingView .account-id strong { color: var(--member-ink); font-size: 20px; }
#bookingView .account-id span { overflow-wrap: anywhere; white-space: normal; }
#bookingView .account-facts { margin-top: 24px; }
#bookingView .account-facts div { display: flex; justify-content: space-between; gap: 16px; margin-top: 0; padding: 16px 0; border-top: 1px solid var(--member-line); font-size: 15px; }
#bookingView .account-facts dt { color: var(--member-muted); }
#bookingView .account-facts dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
#bookingView .account-logout { color: #a32d25; }
#bookingView .btn, #bookingView .purchase-cta-btn {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  font: 600 15px/1.4 'acumin-pro', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
#bookingView .change-pwd-btn, #bookingView .account-logout { border: 1px solid var(--member-line); background: #fff; }
#bookingView .no-credits-banner { background: #faf6e9; border-color: #e6ddbf; color: #685322; text-align: left; }
#bookingView .no-credits-banner.visible { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#bookingView .buy-sessions-link { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid #d9cfaf; border-radius: 12px; background: #fff; color: #685322; font: 600 14px/1.4 'acumin-pro', Arial, sans-serif; transition: background-color 150ms ease; }
#bookingView .buy-sessions-link:hover { background: #f7f1df; transform: none; }

@media (min-width: 769px) {
  #bookingView .calendar-section, #bookingView .sessions-section { padding: 24px; border: 1px solid var(--member-line); border-radius: 24px; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .02); }
  #bookingView #venueInfo { border: 1px solid var(--member-line) !important; background: #edf3ee !important; border-radius: 16px !important; }
  #bookingView #venueInfo > div > div:first-child { font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; }
  #bookingView .calendar-week-label, #bookingView .cal-header, #bookingView .term-title, #bookingView .history-toggle { font-family: inherit; letter-spacing: 0; text-transform: none; }
  #bookingView .cal-header { font-size: 14px; }
  #bookingView .cal-slot { border-width: 1px; box-shadow: none; }
  #bookingView .cal-slot.available { background: #e5ffe1; color: var(--member-ink); border-color: #b5d7b2; }
  #bookingView .calendar-nav-btn { border-radius: 50%; min-width: 44px; min-height: 44px; }
  #bookingView .account-section { max-width: 640px; }
  #bookingView .account-logout { margin-left: 12px; }
  #bookingView .consent-panel { border: 1px solid var(--member-line); border-radius: 24px; }
  #bookingView .purchase-subtitle { font-size: 16px; }
  @supports (backdrop-filter: blur(20px)) {
    #bookingView .app-header { background: rgb(255 255 255 / .86); -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px); }
  }
}
@media (min-width: 769px) and (max-width: 1120px) {
  #bookingView { padding-inline: 24px; }
  #bookingView .app-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  #bookingView .tab-bar { grid-column: 1 / -1; grid-row: 2; }
  #bookingView .header-right { grid-column: 2; grid-row: 1; }
  html:has(#bookingView.active) { scroll-padding-top: 168px; }
}
@media (max-width: 768px) {
  :root { --tab-h: 88px; }
  #bookingView { padding: 0 max(0px, env(safe-area-inset-right)) calc(var(--tab-h) + env(safe-area-inset-bottom) + 32px) max(0px, env(safe-area-inset-left)); }
  #bookingView .app-header { position: sticky; top: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 76px; margin-bottom: 24px; padding: calc(12px + env(safe-area-inset-top)) 20px 12px; border: 0; border-radius: 0; background: var(--member-surface); box-shadow: none; }
  #bookingView .header-monogram { width: 36px; height: 36px; }
  #bookingView .header-welcome { font-size: 15px; }
  #bookingView .session-badge { font-size: 12px; padding: 6px 10px; }
  #bookingView .tab-bar {
    position: fixed;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    z-index: 60;
    width: auto;
    max-width: 480px;
    margin-inline: auto;
    gap: 3px;
    padding: 6px;
    border: 1px solid #fff;
    border-radius: 32px;
    background: #fdfefd;
    box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 4px 8px rgb(0 0 0 / .04), 0 12px 32px rgb(0 0 0 / .12);
  }
  #bookingView .tab-bar-item { flex-direction: column; min-height: 58px; padding: 7px 2px; gap: 4px; border-radius: 25px; font-size: 11px; }
  #bookingView .tab-bar-item[aria-current="page"] { background: #e5f3e8; box-shadow: inset 0 0 0 1px rgb(0 64 73 / .04); }
  #bookingView .tab-bar-icon { width: 28px; height: 24px; }
  #bookingView .tab-bar-icon svg { width: 24px; height: 24px; }
  #bookingView .tab-bar-item:focus-visible { outline-offset: -2px; }
  .member-screen-heading { padding-inline: 20px; margin-bottom: 24px; }
  .member-screen-heading h1 { font-size: 34px; }
  .member-screen-heading p { font-size: 15px; margin-top: 8px; }
  #bookingView .account-card { padding: 20px; }
  #bookingView .account-facts div { font-size: 14px; }
  #bookingView .purchase-cta { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); }
  @supports (backdrop-filter: blur(24px)) {
    #bookingView .tab-bar { background: rgb(250 253 250 / .88); -webkit-backdrop-filter: saturate(1.6) blur(24px); backdrop-filter: saturate(1.6) blur(24px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(#bookingView.active) { scroll-behavior: auto; }
  #bookingView .tab-bar-item { transition: none; }
  #bookingView .tab-bar-item:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  #bookingView .app-header, #bookingView .tab-bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  #bookingView .tab-bar-item[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
