/* =========================================================
   Padel Square — maquette
   Couleurs du club : rouge et bleu vifs sur fond sombre
   ========================================================= */
:root {
  --bg: #07090f;
  --bg-2: #0b0f19;
  --surface: #111725;
  --surface-2: #182033;
  --surface-3: #212b42;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f7fc;
  --muted: #8f9ab2;
  --muted-2: #5f6a84;
  --red: #ef2b36;
  --red-2: #ff4d55;
  --red-deep: #b5121d;
  --blue: #2f6bff;
  --blue-2: #5b8cff;
  --blue-deep: #1638a8;
  --amber: #ffb547;
  --grad-red: linear-gradient(135deg, #ff4a52 0%, #e8202c 45%, #b5121d 100%);
  --grad-blue: linear-gradient(135deg, #4f86ff 0%, #2f6bff 45%, #1638a8 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --font-d: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 84px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overscroll-behavior: none; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.ic { flex: none; display: block; }

#app { position: fixed; inset: 0; max-width: 520px; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 521px) { #app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .6); } body { background: #03040a; } }

/* ---------- Vues & transitions ---------- */
#views { position: absolute; inset: 0; }
.view {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + var(--sab) + 28px);
  opacity: 0; pointer-events: none;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.active { opacity: 1; pointer-events: auto; }
.view.entering { animation: viewIn .48s var(--ease) both; }
.view.leaving { animation: viewOut .32s var(--ease) both; pointer-events: none; }
@keyframes viewIn { from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 28px), 0, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes viewOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -22px), 0, 0) scale(.985); } }

.reveal { animation: rise .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 55ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* Réaction au toucher, partout */
button, .pressable { transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, opacity .2s; }
button:active:not(:disabled) { transform: scale(.96); transition-duration: .08s; }
[data-ripple] { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 70%); transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; z-index: 5; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Écran de lancement ---------- */
#splash { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
#splash img { width: min(62vw, 260px); mix-blend-mode: screen; animation: splashIn .9s var(--ease) both; }
#splash.out { opacity: 0; visibility: hidden; }
#splash.out img { transform: scale(1.12); transition: transform .5s var(--ease); }
@keyframes splashIn { from { opacity: 0; transform: scale(.86); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Accueil ---------- */
.hero { position: relative; height: max(520px, 66svh); overflow: hidden; }
.hero-slides { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.on { opacity: 1; transform: scale(1.0); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 100% 100%, rgba(47, 107, 255, .28), transparent 60%),
    radial-gradient(90% 50% at 0% 85%, rgba(239, 43, 54, .26), transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 15, .78) 0%, rgba(7, 9, 15, .1) 22%, rgba(7, 9, 15, .15) 48%, rgba(7, 9, 15, .86) 80%, var(--bg) 100%);
}
.topbar {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  padding: calc(var(--sat) + 10px) 16px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { height: 50px; width: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.6)); margin-inline-start: -6px; animation: rise .8s var(--ease) both; }
.topbar-actions { display: flex; gap: 10px; align-items: center; animation: rise .8s .1s var(--ease) both; }
.icon-btn, .avatar-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: rgba(17, 23, 37, .5); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #0d1220; }
.avatar-btn { background: var(--grad-blue); font-weight: 800; font-size: 14px; letter-spacing: .02em; border-color: rgba(255, 255, 255, .25); }

.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; padding: 0 20px; will-change: transform, opacity; }
.loc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); padding: 6px 11px 6px 9px; border-radius: 99px; background: rgba(7, 9, 15, .45); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hello { margin-top: 16px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.headline {
  font-family: var(--font-d); font-style: italic; font-weight: 900;
  font-size: clamp(52px, 15vw, 70px); line-height: .88; letter-spacing: -.01em; text-transform: uppercase;
  margin-top: 6px; text-shadow: 0 6px 40px rgba(0, 0, 0, .45);
}
.headline::after { content: ''; display: block; width: 64px; height: 5px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); transform-origin: left; animation: grow .9s .5s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.live { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14px; font-weight: 700; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-2); position: relative; box-shadow: 0 0 12px var(--blue-2); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--blue-2); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.hero-dots { position: absolute; z-index: 2; right: 20px; bottom: 40px; display: flex; flex-direction: column; gap: 6px; }
.hero-dots i { width: 4px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: height .5s var(--ease), background .5s; }
.hero-dots i.on { height: 28px; background: #fff; }

.home-body { padding: 0 16px; margin-top: -6px; position: relative; z-index: 2; }

.cta {
  width: 100%; min-height: 76px; border-radius: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 22px;
  background: var(--grad-red);
  box-shadow: 0 18px 40px -14px rgba(239, 43, 54, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.cta::before { /* reflet qui passe */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 4.2s 1.2s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.cta-text { display: flex; flex-direction: column; position: relative; z-index: 2; }
.cta-text b { font-family: var(--font-d); font-weight: 800; font-style: italic; font-size: 27px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.cta-text small { font-size: 13px; font-weight: 600; opacity: .85; margin-top: 5px; }
.cta-arrow { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--red-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.cta-arrow .ic { animation: nudge 2.4s 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(5px); } 90% { transform: translateX(-1px); } }

/* Prochain match */
.next-match {
  display: block; width: 100%; margin-top: 16px; padding: 18px; border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(91, 140, 255, .35), transparent 55%),
    linear-gradient(160deg, #18306f 0%, #0f1a3a 60%, #0d1428 100%);
  border: 1px solid rgba(91, 140, 255, .28);
}
.nm-top { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
.nm-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.nm-main { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.nm-day { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.nm-time { font-family: var(--font-d); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.01em; }
.nm-time span { font-size: 22px; color: rgba(255, 255, 255, .55); font-weight: 600; }
.nm-court { text-align: center; padding: 6px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); }
.nm-court small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nm-court b { font-family: var(--font-d); font-size: 32px; line-height: 1; font-weight: 800; }
.nm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.nm-paid { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #9fe3b8; }

.avatars { display: flex; }
.av {
  --h: 220; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 30) 70% 38%));
  border: 2px solid #101a36; margin-inline-start: -8px;
}
.av:first-child { margin-inline-start: 0; }
.av.me { background: var(--grad-red); }

/* Titres de section */
.section-head { gap: 12px; display: flex; justify-content: space-between; align-items: baseline; margin: 30px 2px 12px; }
.section-head h2, .h2 { font-family: var(--font-d); font-weight: 800; font-size: 25px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.link { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: var(--blue-2); padding: 6px 0 6px 10px; }

/* Rail de créneaux */
.slot-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; scroll-padding: 16px; }
.slot-rail::-webkit-scrollbar { display: none; }
.slot-card {
  flex: none; width: 128px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 13px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 380ms);
}
.slot-card.peak { background: linear-gradient(180deg, rgba(47, 107, 255, .16), rgba(47, 107, 255, .03)), var(--surface); border-color: rgba(91, 140, 255, .28); }
@keyframes cardIn { from { opacity: 0; transform: translate3d(40px, 0, 0) scale(.94); } to { opacity: 1; transform: none; } }
.sc-day { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-time { font-family: var(--font-d); font-weight: 800; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; }
.sc-free { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--blue-2); }
.sc-free i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.sc-price { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }

/* Garantie */
.guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.g-ic { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad-blue); box-shadow: 0 10px 24px -10px rgba(47, 107, 255, .8); }
.guarantee b { display: block; font-size: 15.5px; font-weight: 800; }
.guarantee p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats > div { padding: 16px 8px 14px; text-align: center; }
.stats > div + div { border-inline-start: 1px solid var(--line); }
.stats b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats > div:nth-child(1) b { color: var(--red-2); }
.stats > div:nth-child(2) b { color: #fff; }
.stats > div:nth-child(3) b { color: var(--blue-2); }
.stats span { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Raccourcis */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.quick {
  min-height: 168px; padding: 16px; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.q-order { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 77, 85, .4), transparent 60%), linear-gradient(160deg, #2a1218, #140b10); border-color: rgba(255, 77, 85, .2); }
.q-ic { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[dir='rtl'] .q-ic { left: auto; right: 14px; }
.quick b { font-size: 15.5px; font-weight: 800; line-height: 1.2; }
.quick small { font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 600; }

.demo-note { text-align: center; font-size: 11.5px; color: var(--muted-2); margin: 26px 0 0; letter-spacing: .04em; }

/* ---------- Barre d'onglets ---------- */
#tabbar {
  position: absolute; z-index: 20; left: 12px; right: 12px; bottom: max(10px, calc(var(--sab) - 8px));
  height: 70px; border-radius: 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(12, 16, 27, .9);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  transition: transform .45s var(--ease), opacity .3s;
}
#tabbar.hidden { transform: translateY(140%); opacity: 0; }
.tab-glow { position: absolute; left: 0; top: 8px; width: 44px; height: 32px; border-radius: 12px; background: rgba(91, 140, 255, .16); opacity: 0; transition: transform .45s var(--spring), opacity .3s; pointer-events: none; }
.tab { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); position: relative; }
.tab-ic { height: 32px; display: grid; place-items: center; }
.tab-label { font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }
.tab.active { color: #fff; }
.tab.active .tab-ic { color: var(--blue-2); }
.tab.bump .tab-ic, .tab.bump .tab-main-btn { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(.82); } 100% { transform: scale(1); } }
.tab-main { color: #fff; }
.tab-main-btn {
  width: 54px; height: 54px; margin-top: -30px; border-radius: 19px;
  display: grid; place-items: center; background: var(--grad-red);
  box-shadow: 0 12px 26px -8px rgba(239, 43, 54, .9), 0 0 0 5px var(--bg), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.tab-main .tab-label { color: var(--text); }
.tab-badge { position: absolute; top: 8px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #0e131f; }

/* ---------- Toast ---------- */
#toast {
  position: absolute; z-index: 90; left: 50%; top: calc(var(--sat) + 12px);
  display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 700;
  background: rgba(24, 32, 51, .92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, -160%); opacity: 0; transition: transform .45s var(--spring), opacity .3s;
  pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast .ic { color: var(--blue-2); }

/* ---------- Feuille du bas ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, .6); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto;
  padding: 10px 20px calc(var(--sab) + 22px);
  border-radius: 28px 28px 0 0; background: var(--bg-2); border-top: 1px solid var(--line-2);
  transform: translateY(100%); transition: transform .42s var(--ease);
  scrollbar-width: none;
}
.sheet-grip { width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.closing .sheet { transform: translateY(100%); }

.stub { padding: calc(var(--sat) + 60px) 20px; }
.stub h1 { font-family: var(--font-d); font-size: 44px; text-transform: uppercase; font-style: italic; }
.stub p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Parcours de réservation
   ========================================================= */
#flow {
  position: absolute; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column;
  transform: translate3d(0, 100%, 0); transition: transform .5s var(--ease);
  visibility: hidden;
}
#flow.open { transform: none; visibility: visible; }
.flow-head {
  flex: none; position: relative; z-index: 3;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: calc(var(--sat) + 8px) 14px 14px;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(7, 9, 15, 0));
  transition: opacity .3s, transform .4s var(--ease);
}
.flow-head.gone { opacity: 0; transform: translateY(-20px); pointer-events: none; position: absolute; left: 0; right: 0; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
[dir='rtl'] .round-btn .ic { transform: scaleX(-1); }
.flow-title { text-align: center; line-height: 1.1; }
.flow-title small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.flow-title b { font-family: var(--font-d); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.flow-progress { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.flow-progress i { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.flow-progress b { display: block; height: 100%; background: var(--grad-red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
[dir='rtl'] .flow-progress b { transform-origin: right; }
.flow-progress i.on b { transform: scaleX(1); }

.flow-body { flex: 1; position: relative; overflow: hidden; }
.panel {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 40px;
  scrollbar-width: none;
}
.panel::-webkit-scrollbar { display: none; }
.panel.in { animation: panelIn .44s var(--ease) both; }
.panel.out { animation: panelOut .36s var(--ease) both; pointer-events: none; }
@keyframes panelIn { from { opacity: 0; transform: translate3d(calc(var(--dir) * 60px), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes panelOut { to { opacity: 0; transform: translate3d(calc(var(--dir) * -60px), 0, 0); } }

.flow-foot {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(var(--sab) + 12px);
  background: rgba(11, 15, 25, .94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: transform .35s var(--ease);
}
.flow-foot.empty { display: none; }
.foot-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.foot-sum span { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-sum b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.foot-sum b small { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.btn-primary {
  height: 56px; padding: 0 22px; border-radius: 18px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 16px; background: var(--grad-red);
  box-shadow: 0 12px 28px -12px rgba(239, 43, 54, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary.wide { width: 100%; margin-top: 14px; }
.btn-primary:disabled { background: var(--surface-2); color: var(--muted-2); box-shadow: none; }
.btn-ghost { width: 100%; height: 50px; margin-top: 6px; border-radius: 16px; font-weight: 700; color: var(--muted); }
[dir='rtl'] .btn-primary .ic, [dir='rtl'] .cta-arrow .ic { transform: scaleX(-1); }

.step-h { font-family: var(--font-d); font-weight: 800; font-style: italic; font-size: 34px; text-transform: uppercase; line-height: 1; margin: 6px 2px 14px; }
.step-sub { margin: -8px 2px 14px; color: var(--muted); font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 2px 4px; }

/* jours */
.day-rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.day-rail::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 58px; height: 80px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--surface); border: 1px solid var(--line);
  animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i) * 25ms);
}
.day small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day b { font-family: var(--font-d); font-size: 27px; font-weight: 800; line-height: 1.05; }
.dens { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.dens i { display: block; height: 100%; background: var(--blue-2); transform-origin: left; }
.day.sel { background: var(--grad-red); border-color: transparent; box-shadow: 0 10px 22px -10px rgba(239, 43, 54, .9); transform: translateY(-2px); }
.day.sel small { color: rgba(255, 255, 255, .85); }
.day.sel .dens { background: rgba(255, 255, 255, .25); }
.day.sel .dens i { background: #fff; }

.legend { display: flex; gap: 14px; margin: 10px 2px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-free { background: var(--blue); }
.lg-few { background: var(--amber); }
.lg-full { background: repeating-linear-gradient(45deg, #3a4357 0 2px, #1b2233 2px 4px); }

.slots-wrap.swap { animation: rise .4s var(--ease) both; }
.slot-group { margin-top: 16px; }
.sg-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 2px 8px; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot {
  position: relative; display: flex; flex-direction: column; gap: 5px; padding: 12px 13px 11px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(47, 107, 255, .14), rgba(47, 107, 255, .04)), var(--surface);
  border: 1.5px solid rgba(91, 140, 255, .35);
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 22ms);
}
.sl-top { display: flex; justify-content: space-between; align-items: center; }
.sl-top b { font-family: var(--font-d); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.sl-top em { color: var(--red-2); font-style: normal; display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(239, 43, 54, .14); }
.sl-dots { display: flex; gap: 3px; }
.sl-dots i { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.sl-dots i.f { background: var(--blue-2); }
.sl-state { font-size: 12.5px; font-weight: 800; color: var(--blue-2); }
.sl-price { font-size: 13px; font-weight: 800; color: var(--text); }
.sl-price small { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.slot.s-few { border-color: rgba(255, 181, 71, .45); background: linear-gradient(180deg, rgba(255, 181, 71, .12), rgba(255, 181, 71, .02)), var(--surface); }
.slot.s-few .sl-state { color: var(--amber); }
.slot.s-few .sl-dots i.f { background: var(--amber); }
.slot.s-full { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 12px), var(--bg-2); border-color: var(--line); }
.slot.s-full b, .slot.s-full .sl-price { color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.slot.s-full .sl-state { color: var(--muted-2); }
.slot.s-past { opacity: .35; background: var(--bg-2); border-color: var(--line); }
.slot.s-past .sl-state { color: var(--muted-2); }
.slot.sel { background: var(--grad-red); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(239, 43, 54, .9); transform: scale(1.03); }
.slot.sel .sl-state, .slot.sel .sl-price small, .slot.sel .sl-top em { color: #fff; }
.slot.sel .sl-dots i.f { background: #fff; }
.slot.sel .sl-top em { background: rgba(255, 255, 255, .2); }

.price-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.price-note .ic { color: var(--blue-2); margin-top: 1px; }

/* plan + terrains */
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.court-map { display: block; width: 100%; height: auto; }
.map-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(7, 9, 15, .65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cm { cursor: pointer; }
.cm polygon { fill: rgba(47, 107, 255, .18); stroke: var(--blue-2); stroke-width: 3; stroke-linejoin: round; transition: fill .3s, stroke .3s; }
.cm circle { fill: var(--blue); stroke: #fff; stroke-width: 3; transition: fill .3s, r .3s; }
.cm text { fill: #fff; font: 800 26px var(--font-d); pointer-events: none; }
.cm-taken polygon, .cm-mine polygon { fill: rgba(7, 9, 15, .55); stroke: rgba(255, 255, 255, .25); stroke-dasharray: 8 7; }
.cm-taken circle, .cm-mine circle { fill: #2a3142; stroke: rgba(255, 255, 255, .3); }
.cm-taken text { fill: rgba(255, 255, 255, .5); }
.cm.sel polygon { fill: rgba(239, 43, 54, .32); stroke: #fff; stroke-width: 4; animation: courtGlow 1.6s ease-in-out infinite; }
.cm.sel circle { fill: var(--red); }
@keyframes courtGlow { 50% { fill: rgba(239, 43, 54, .15); } }

.court-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 4px 16px 12px; scrollbar-width: none; }
.court-rail::-webkit-scrollbar { display: none; }
.court-card {
  flex: none; width: 78%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 2px solid var(--line); text-align: start;
  animation: cardIn .55s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 120ms);
}
.court-card.sel { border-color: var(--red); box-shadow: 0 16px 34px -16px rgba(239, 43, 54, .8); }
.court-card.taken { opacity: .5; filter: grayscale(.7); }
.cc-photo { position: relative; height: 124px; background-color: #0c1220; transition: transform .6s var(--ease); }
.court-card.sel .cc-photo { transform: scale(1.0); }
.cc-status { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 99px; background: rgba(7, 9, 15, .75); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cc-status.ok { color: #fff; background: var(--blue); }
.cc-check { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); transform: scale(0); transition: transform .35s var(--spring); }
.court-card.sel .cc-check { transform: scale(1); }
.cc-thumbs { display: flex; gap: 6px; padding: 8px 12px 0; }
.cc-thumbs i { width: 44px; height: 32px; border-radius: 8px; background-size: cover; background-position: center; display: grid; place-items: center; color: var(--muted-2); }
.cc-thumbs i.ph { border: 1.5px dashed var(--line-2); }
.cc-info { padding: 10px 14px 14px; }
.cc-name { display: flex; align-items: center; gap: 8px; }
.cc-name b { font-family: var(--font-d); font-size: 24px; font-weight: 800; text-transform: uppercase; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(91, 140, 255, .15); color: var(--blue-2); text-transform: uppercase; letter-spacing: .06em; }
.cc-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cc-feats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cc-feats span + span::before { content: '·'; margin-inline-end: 6px; }
.cc-price { margin-top: 8px; }
.cc-price b { font-size: 17px; font-weight: 800; }
.cc-price small { color: var(--muted); font-size: 12px; font-weight: 600; }

/* joueurs */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); transition: color .3s; }
.seg button b { font-family: var(--font-d); font-size: 28px; line-height: 1; font-weight: 800; }
.seg button small { font-size: 12px; font-weight: 700; }
.seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 16px; background: var(--grad-blue); box-shadow: 0 10px 22px -10px rgba(47, 107, 255, .9); transition: transform .45s var(--spring); }
.seg[data-players='4'] .seg-thumb { transform: translateX(100%); }
[dir='rtl'] .seg-thumb { left: auto; right: 5px; }
[dir='rtl'] .seg[data-players='4'] .seg-thumb { transform: translateX(-100%); }
.seg[data-players='2'] button[data-p='2'], .seg[data-players='4'] button[data-p='4'] { color: #fff; }

.team { margin-top: 18px; }
.team-row { display: flex; justify-content: center; gap: 14px; }
.mate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; }
.mate small { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.av.xl { width: 58px; height: 58px; font-size: 18px; border: 3px solid var(--bg); margin: 0; }
.av.lg { width: 44px; height: 44px; font-size: 14px; border: 0; margin: 0; }
.av.sm { width: 26px; height: 26px; font-size: 9.5px; border-width: 2px; border-color: var(--surface); }
.av.ghost { background: transparent; border: 2px dashed var(--line-2); color: var(--muted); }
.mate.me .av { box-shadow: 0 0 0 2px var(--red); }
.mate .rm { position: absolute; top: -2px; right: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 2px solid var(--bg); }
.mate.pop .av { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.team-state { text-align: center; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 6px; }
.team-state.ok { color: #9fe3b8; }

.split-card { margin-top: 16px; }
.split { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.sp-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue-2); flex: none; }
.sp-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sp-txt b { font-size: 15px; }
.sp-txt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .3s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .35s var(--spring); }
.on > .switch { background: var(--blue); }
.on > .switch i { transform: translateX(20px); }
[dir='rtl'] .switch i { left: auto; right: 3px; }
[dir='rtl'] .on > .switch i { transform: translateX(-20px); }
.share-bar { display: flex; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s, margin .3s; }
.share-bar.show { max-height: 80px; opacity: 1; margin-top: 8px; }
.share-bar span { flex: 1; text-align: center; padding: 9px 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.share-bar span.me { border-color: rgba(239, 43, 54, .5); }
.share-bar b { font-size: 13.5px; font-weight: 800; }
.share-bar small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-head.sm { margin: 24px 2px 10px; }
.section-head.sm h2 { font-size: 21px; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 17px; font-weight: 800; color: #fff; text-decoration: none; background: linear-gradient(135deg, #2fd16a, #179e4c); box-shadow: 0 12px 26px -14px rgba(37, 211, 102, .8); transition: transform .18s var(--ease); }
.btn-wa:active { transform: scale(.97); }
.friends { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 35ms + 100ms); }
.fr-name { flex: 1; font-weight: 700; }
.fr-lvl { font-size: 12px; color: var(--muted); font-weight: 700; }
.fr-add { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--blue-2); transition: background .3s, color .3s, transform .35s var(--spring); }
.friend.added { border-color: rgba(91, 140, 255, .45); background: rgba(47, 107, 255, .08); }
.friend.added .fr-add { background: var(--blue); color: #fff; transform: rotate(45deg); }

/* acompte */
.guar-hero { text-align: center; padding: 8px 10px 4px; }
.gh-ic { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-blue); box-shadow: 0 16px 36px -12px rgba(47, 107, 255, .9); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-5px); } }
.guar-hero h2 { font-family: var(--font-d); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; }
.guar-hero p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.recap { margin-top: 18px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.rc-photo { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 10px 14px; }
.rc-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(7, 9, 15, .85)); }
.rc-photo span { position: relative; font-family: var(--font-d); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.rc-rows > div, .bill > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.rc-rows span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.bill { background: rgba(255, 255, 255, .02); }
.bill span { color: var(--muted); font-weight: 600; }
.bill .hl { background: linear-gradient(90deg, rgba(239, 43, 54, .16), rgba(239, 43, 54, .04)); }
.bill .hl span { color: #fff; font-weight: 800; }
.bill .hl b { font-size: 18px; color: var(--red-2); }
.covers { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.covers b { font-size: 14.5px; }
.covers ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.covers li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.covers li .ic { color: #6be29a; margin-top: 2px; }
.rules { margin-top: 12px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.rules > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13px; }
.rules > div + div { border-top: 1px solid var(--line); }
.rules i { width: 10px; height: 10px; border-radius: 50%; }
.rules span { color: var(--muted); font-weight: 600; }
.rules b { font-weight: 800; text-align: end; }
.r-ok i { background: #3fd57f; } .r-mid i { background: var(--amber); } .r-no i { background: var(--red); }

.paycard { margin-top: 18px; }
.card3d { perspective: 1000px; height: 190px; }
.card-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.card3d.flip .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.card-front {
  padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 100% 0%, rgba(239, 43, 54, .9), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(47, 107, 255, .95), transparent 60%), #0d1222;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.card-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 45%, transparent 60%); animation: shine 5s 1s ease-in-out infinite; }
.card-logo { height: 34px; width: auto; align-self: flex-end; }
.card-chip { position: absolute; top: 22px; left: 20px; width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #f5d98b, #b8913a); }
.card-num { font-family: var(--font-d); font-size: 23px; font-weight: 700; letter-spacing: .06em; direction: ltr; }
.card-row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; opacity: .9; }
.card-back { transform: rotateY(180deg); background: linear-gradient(135deg, #1d2742, #0d1222); }
.stripe { position: absolute; top: 28px; left: 0; right: 0; height: 40px; background: #000; }
.cvc { position: absolute; top: 92px; right: 22px; background: #fff; color: #111; font-weight: 800; padding: 6px 12px; border-radius: 6px; font-style: italic; }
.card-fields { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.card-fields .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-fields label { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.card-fields label:focus-within { border-color: var(--blue-2); }
.card-fields small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.card-fields input { background: none; border: 0; outline: 0; font-size: 17px; font-weight: 700; padding: 0; direction: ltr; }
.demo-pill { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px auto 0; font-size: 12.5px; font-weight: 700; color: var(--amber); }
.pay-dock { position: sticky; bottom: 0; margin: 16px -16px -40px; padding: 14px 16px calc(var(--sab) + 14px); background: linear-gradient(180deg, rgba(7, 9, 15, 0), var(--bg) 30%); text-align: center; }
.pay-dock small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.btn-pay { width: 100%; height: 62px; border-radius: 20px; position: relative; font-weight: 800; font-size: 17px; background: var(--grad-red); box-shadow: 0 16px 34px -14px rgba(239, 43, 54, 1), inset 0 1px 0 rgba(255, 255, 255, .25); transition: width .4s var(--ease), border-radius .4s var(--ease), background .4s, transform .18s; margin: 0 auto; display: block; }
.btn-pay > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .25s, transform .3s var(--ease); }
.bp-load, .bp-done { opacity: 0; transform: translateY(10px); }
.bp-load i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-pay.loading .bp-label, .btn-pay.done .bp-label, .btn-pay.done .bp-load { opacity: 0; transform: translateY(-10px); }
.btn-pay.loading .bp-load { opacity: 1; transform: none; }
.btn-pay.done { width: 62px; border-radius: 50%; background: linear-gradient(135deg, #3fd57f, #1b9e52); box-shadow: 0 0 0 10px rgba(63, 213, 127, .15); }
.btn-pay.done .bp-done { opacity: 1; transform: none; }

/* confirmation */
.confirm { position: absolute; inset: 0; overflow-y: auto; padding: calc(var(--sat) + 20px) 16px calc(var(--sab) + 30px); scrollbar-width: none; }
.conf-head { text-align: center; }
.check-anim { width: 92px; height: 92px; display: block; margin: 0 auto; }
.check-anim circle { fill: rgba(63, 213, 127, .14); stroke: #3fd57f; stroke-width: 5; stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw .7s .05s var(--ease) forwards; }
.check-anim path { fill: none; stroke: #3fd57f; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.conf-head h1 { font-family: var(--font-d); font-style: italic; font-weight: 900; font-size: 46px; text-transform: uppercase; line-height: 1; margin-top: 12px; animation: rise .6s .3s var(--ease) both; }
.conf-head p { color: var(--muted); margin-top: 8px; font-weight: 600; animation: rise .6s .4s var(--ease) both; }
.speed { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 800; background: rgba(255, 181, 71, .14); color: var(--amber); border: 1px solid rgba(255, 181, 71, .3); animation: rise .6s .5s var(--ease) both; }

.ticket { margin-top: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.ticket.drop { animation: ticketDrop .9s .35s var(--spring) both; }
@keyframes ticketDrop { from { opacity: 0; transform: translateY(-40px) rotateX(25deg) scale(.95); } to { opacity: 1; transform: none; } }
.tk-top { position: relative; height: 128px; padding: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.tk-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 15, .35), rgba(17, 23, 37, .95)), radial-gradient(80% 100% at 100% 0%, rgba(239, 43, 54, .35), transparent); }
.tk-logo { position: relative; height: 38px; width: auto; }
.tk-ok { position: relative; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: rgba(63, 213, 127, .18); color: #7fe9a8; border: 1px solid rgba(63, 213, 127, .35); }
.tk-court { position: absolute; left: 16px; bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
.tk-court small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tk-court b { font-family: var(--font-d); font-size: 46px; font-weight: 900; font-style: italic; line-height: 1; }
.tk-body { padding: 4px 16px 14px; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.tk-grid small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tk-grid b { font-size: 15px; font-weight: 800; }
.tk-av { display: flex; padding-inline-start: 6px; margin-top: 3px; }
.tk-av .av { margin-inline-start: -6px; }
.paid { display: inline-flex; align-items: center; gap: 5px; color: #7fe9a8; }
.tk-cut { position: relative; height: 22px; }
.tk-cut::before, .tk-cut::after { content: ''; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tk-cut::before { left: -12px; } .tk-cut::after { right: -12px; }
.tk-cut i { position: absolute; left: 16px; right: 16px; top: 10px; border-top: 2px dashed var(--line-2); }
.tk-qr { display: flex; gap: 16px; align-items: center; padding: 6px 16px 18px; }
.qr { flex: none; width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-fallback { display: grid; place-items: center; height: 100%; color: #000; font-weight: 800; }
.tk-code small { font-size: 12px; font-weight: 700; color: var(--muted); display: block; }
.tk-code b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 34px; letter-spacing: .04em; line-height: 1.1; }
.tk-code span { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.conf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700; text-align: center; transition: transform .18s var(--ease); }
.act:active { transform: scale(.96); }
.act.wa { color: #fff; background: linear-gradient(135deg, rgba(47, 209, 106, .2), rgba(23, 158, 76, .1)); border-color: rgba(47, 209, 106, .35); }
.act.wa svg { color: #3ee07c; }
.reminder { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rm-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 181, 71, .14); color: var(--amber); flex: none; }
.rm-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.rm-txt b { font-size: 14.5px; }
.rm-txt small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.reminder.on .rm-ic .ic { animation: ring 1.2s .8s ease-in-out; }
@keyframes ring { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 50% { transform: none; } }

.confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }

.push {
  position: absolute; z-index: 95; left: 10px; right: 10px; top: calc(var(--sat) + 8px);
  display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 22px;
  background: rgba(40, 46, 60, .82); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: translateY(-140%); transition: transform .55s var(--spring);
}
.push.show { transform: none; }
.push img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.push div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.push b { font-size: 14px; }
.push span { font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.push small { align-self: flex-start; font-size: 12px; color: rgba(255, 255, 255, .55); }
/* correctifs Safari : carte 3D + champs */
.card-inner { -webkit-transform-style: preserve-3d; }
.card-front { transform: rotateY(0deg) translateZ(1px); }
.card-back { transform: rotateY(180deg) translateZ(1px); }
.card-fields label { min-width: 0; }
.card-fields input { width: 100%; min-width: 0; }

/* =========================================================
   Pages communes
   ========================================================= */
.page-head { padding: calc(var(--sat) + 22px) 16px 6px; }
.page-title { font-family: var(--font-d); font-style: italic; font-weight: 900; font-size: 44px; line-height: .95; text-transform: uppercase; animation: rise .6s var(--ease) both; }
.page-sub { color: var(--muted); font-weight: 600; margin-top: 6px; animation: rise .6s .06s var(--ease) both; }
.page-body { padding: 10px 16px 0; }
.muted { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }
.hint.center { text-align: center; }
.swap { animation: rise .4s var(--ease) both; }
.btn-danger { width: 100%; height: 56px; margin-top: 16px; border-radius: 18px; font-weight: 800; font-size: 16px; background: var(--grad-red); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; margin-top: 12px; border-radius: 14px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 14px; }
.btn-primary.sm { height: 46px; padding: 0 18px; font-size: 14.5px; margin-top: 12px; border-radius: 14px; }

.seg-sm button { height: 46px; flex-direction: row; gap: 8px; font-weight: 800; font-size: 14.5px; }
.seg-sm[data-tab='past'] .seg-thumb { transform: translateX(100%); }
[dir='rtl'] .seg-sm[data-tab='past'] .seg-thumb { transform: translateX(-100%); }
.seg-sm[data-tab='upcoming'] [data-t='upcoming'], .seg-sm[data-tab='past'] [data-t='past'] { color: #fff; }
.seg-sm .seg-thumb { border-radius: 14px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; }

/* Mes réservations */
.bk-list { margin-top: 14px; }
.bk {
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px;
  animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms);
  transition: height .45s var(--ease), opacity .35s, transform .45s var(--ease), margin .45s;
}
.bk.fresh { border-color: rgba(239, 43, 54, .6); box-shadow: 0 0 0 4px rgba(239, 43, 54, .12), 0 20px 40px -20px rgba(239, 43, 54, .6); animation: rise .55s var(--ease) both, freshGlow 2.2s 0.6s ease-in-out 2; }
@keyframes freshGlow { 50% { box-shadow: 0 0 0 8px rgba(239, 43, 54, .05), 0 20px 40px -20px rgba(239, 43, 54, .6); } }
.bk.removing { height: 0 !important; opacity: 0; transform: translateX(-30px) scale(.96); margin-bottom: 0; }
.bk-photo { position: relative; height: 128px; padding: 12px 14px; }
.bk-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 15, .2), rgba(17, 23, 37, .96)); }
.bk-new, .bk-ok { position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 99px; }
.bk-new { left: 12px; background: var(--red); }
.bk-ok { right: 12px; background: rgba(63, 213, 127, .18); color: #7fe9a8; border: 1px solid rgba(63, 213, 127, .35); }
.bk-when { position: absolute; left: 14px; bottom: 10px; }
.bk-when small { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.bk-when b { display: block; font-family: var(--font-d); font-size: 40px; font-weight: 800; line-height: 1; }
.bk-when b span { font-size: 20px; color: var(--muted); font-weight: 600; }
.bk-court { position: absolute; right: 14px; bottom: 10px; text-align: center; }
.bk-court small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bk-court b { font-family: var(--font-d); font-size: 40px; font-weight: 900; font-style: italic; line-height: 1; }
.bk-body { padding: 12px 14px 14px; }
.bk-cd { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bk-cd b { color: #fff; font-variant-numeric: tabular-nums; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bk-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 99px; }
.chip-ok { background: rgba(63, 213, 127, .12); color: #7fe9a8; }
.chip-rem { background: rgba(255, 181, 71, .12); color: var(--amber); }
.chip-rem.off { background: var(--surface-2); color: var(--muted); }
.bk-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.avatars.sm .av { margin-inline-start: -6px; }
.avatars.sm .av:first-child { margin-inline-start: 0; }
.bk-price { font-weight: 800; font-size: 14px; }
.bk-price small { color: var(--muted); font-weight: 600; }
.bk-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.bk-btn { height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); }
.bk-btn.qr-btn { background: var(--grad-blue); border-color: transparent; }
.bk-btn.danger { color: var(--red-2); }
.bk-refund { display: flex; gap: 7px; align-items: center; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bk-refund.r100 .ic { color: #3fd57f; } .bk-refund.r50 .ic { color: var(--amber); } .bk-refund.r0 .ic { color: var(--red); }

.past-list { display: flex; flex-direction: column; gap: 8px; }
.past { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.past-court { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none; position: relative; overflow: hidden; }
.past-court::before { content: ''; position: absolute; inset: 0; background: rgba(7, 9, 15, .55); }
.past-court b { position: relative; font-family: var(--font-d); font-size: 26px; font-weight: 900; font-style: italic; }
.past-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.past-txt b { font-size: 14.5px; }
.past-txt small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.replay { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--blue-2); background: rgba(47, 107, 255, .12); }
.empty { text-align: center; padding: 40px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.empty b { color: var(--text); }

.cancel-sheet .h2, .checkout .h2, .cell-sheet .h2 { font-size: 28px; }
.timeline { margin-top: 22px; }
.tl-bar { position: relative; display: grid; grid-template-columns: 50% 37.5% 12.5%; height: 10px; border-radius: 10px; overflow: visible; }
.tl-bar i:nth-child(1) { background: #3fd57f; border-radius: 10px 0 0 10px; }
.tl-bar i:nth-child(2) { background: var(--amber); }
.tl-bar i:nth-child(3) { background: var(--red); border-radius: 0 10px 10px 0; }
.tl-now { position: absolute; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); animation: pop .6s .2s var(--spring) both; }
.tl-now em { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: #fff; color: #000; padding: 3px 8px; border-radius: 8px; }
.tl-lbl { position: relative; height: 16px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tl-lbl span { position: absolute; top: 0; white-space: nowrap; }
.tl-lbl span:nth-child(1) { left: 0; } .tl-lbl span:nth-child(2) { left: 50%; transform: translateX(-50%); } .tl-lbl span:nth-child(3) { left: 87.5%; transform: translateX(-50%); } .tl-lbl span:nth-child(4) { right: 0; }
.tl-now.at-start em { left: -4px; transform: none; } .tl-now.at-end em { left: auto; right: -4px; transform: none; }
.btn-danger { display: flex; align-items: center; justify-content: center; }
.timeline { margin-top: 44px; }
.refund-box { margin-top: 20px; padding: 16px; border-radius: 18px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.refund-box small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.refund-box b { display: block; font-family: var(--font-d); font-size: 46px; font-weight: 800; line-height: 1.1; }
.refund-box.r100 b { color: #3fd57f; } .refund-box.r50 b { color: var(--amber); } .refund-box.r0 b { color: var(--red-2); }
.refund-box span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.qr-sheet .ticket { margin-top: 0; }
.qr-sheet .qr { width: 132px; height: 132px; }

/* Commander */
.order-head { padding-bottom: 10px; }
.deliver { margin-top: 16px; }
.dl-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dl-chips { display: flex; gap: 8px; overflow-x: auto; margin: 8px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.dl-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 15px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); }
.chip.sel { background: var(--grad-blue); border-color: transparent; box-shadow: 0 8px 18px -10px rgba(47, 107, 255, .9); }
.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: calc(var(--sat) * 0 + 10px) 16px 10px; overflow-x: auto; background: linear-gradient(180deg, var(--bg) 75%, rgba(7, 9, 15, 0)); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 42px; padding: 0 16px; border-radius: 14px; font-family: var(--font-d); font-size: 19px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.cat.sel { color: #fff; background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--red); }
.items { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.it-pic { width: 70px; height: 70px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 36px; }
.c-drinks { background: radial-gradient(circle at 30% 20%, rgba(91, 140, 255, .55), rgba(22, 56, 168, .25)); }
.c-fresh { background: radial-gradient(circle at 30% 20%, rgba(255, 181, 71, .5), rgba(239, 43, 54, .2)); }
.c-snacks { background: radial-gradient(circle at 30% 20%, rgba(255, 77, 85, .45), rgba(120, 20, 30, .3)); }
.c-meals { background: radial-gradient(circle at 30% 20%, rgba(63, 213, 127, .4), rgba(20, 90, 60, .3)); }
.it-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.it-txt b { font-size: 15px; line-height: 1.25; }
.it-txt span { font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.it-txt em { align-self: flex-start; font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red-2); margin-top: 3px; }
.stepper { display: flex; align-items: center; gap: 0; height: 42px; border-radius: 14px; background: transparent; transition: background .3s; }
.stepper.has { background: var(--surface-2); }
.st-minus, .st-q { width: 0; opacity: 0; overflow: hidden; transition: width .3s var(--ease), opacity .2s; display: grid; place-items: center; }
.stepper.has .st-minus { width: 38px; opacity: 1; }
.stepper.has .st-q { width: 24px; opacity: 1; font-weight: 800; }
.st-q.bump { animation: bump .35s var(--spring); }
.st-plus { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-red); box-shadow: 0 8px 18px -10px rgba(239, 43, 54, .9); }
.fly { position: absolute; z-index: 70; font-size: 30px; pointer-events: none; animation: fly .7s var(--ease) forwards; }
@keyframes fly { 60% { opacity: 1; } to { transform: translate(40px, 60vh) scale(.3); opacity: 0; } }
.cart-bar {
  position: fixed; z-index: 15; left: 0; right: 0; margin: 0 auto; width: calc(100% - 32px); max-width: 488px;
  bottom: calc(max(10px, var(--sab) - 8px) + 80px);
  height: 60px; border-radius: 20px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 10px;
  background: var(--grad-red); box-shadow: 0 16px 36px -12px rgba(239, 43, 54, .9);
  transform: translateY(160%); opacity: 0; transition: transform .5s var(--spring), opacity .3s;
}
.cart-bar.show { transform: none; opacity: 1; }
.cb-n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--red-deep); font-weight: 900; font-size: 17px; }
.cb-n.pop { animation: bump .4s var(--spring); }
.cb-txt { flex: 1; font-weight: 800; }
.cb-total { font-weight: 900; font-size: 17px; }
.lines { margin-top: 14px; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ln-e { font-size: 22px; }
.ln-n { flex: 1; }
.line.total { border: 0; font-size: 17px; font-weight: 800; }
.line.total span { flex: 1; }
.deliver-box { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 13px 14px; border-radius: 16px; background: rgba(47, 107, 255, .1); border: 1px solid rgba(91, 140, 255, .3); font-size: 14.5px; }
.deliver-box .ic { color: var(--blue-2); }
.checkout .hint { display: flex; align-items: center; gap: 6px; }
.sent { text-align: center; padding-top: 6px; }
.sent-ic { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; background: var(--grad-red); animation: pop .6s var(--spring); }
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 10px; }
.tr-line { position: absolute; left: 12.5%; right: 12.5%; top: 14px; height: 3px; background: var(--surface-3); z-index: 0; }
.tr-line b { display: block; height: 100%; background: #3fd57f; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.tr-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tr-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: transparent; transition: background .3s, color .3s, transform .4s var(--spring); }
.tr-step.on { color: #fff; }
.tr-step.on i { background: #3fd57f; color: #062; transform: scale(1.1); }

/* Le complexe */
.cx-hero { position: relative; height: 340px; background-size: cover; background-position: center 30%; }
.cx-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 15, .5), rgba(7, 9, 15, .1) 35%, var(--bg)), radial-gradient(80% 60% at 0% 100%, rgba(239, 43, 54, .3), transparent); }
.cx-copy { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.cx-body { margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts > * { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.facts .ic { color: var(--blue-2); }
.facts span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.facts small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.facts b { font-size: 13px; }
.venue { margin-top: 14px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.vn-photo { position: relative; height: 170px; background-size: cover; background-position: center; }
.venue.big .vn-photo { height: 200px; }
.vn-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 99px; }
.vn-badge.red { background: var(--red); } .vn-badge.blue { background: var(--blue); }
.vn-txt { padding: 14px 16px 16px; }
.vn-txt h3 { font-family: var(--font-d); font-size: 26px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.vn-txt p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.vn-txt .link { padding-left: 0; margin-top: 6px; }
.ph-photo {
  height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px), radial-gradient(80% 100% at 100% 0%, rgba(47, 107, 255, .2), transparent), radial-gradient(80% 100% at 0% 100%, rgba(239, 43, 54, .15), transparent), var(--bg-2);
  border-bottom: 1px dashed var(--line-2);
}
.ph-photo small { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.club-entry { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(47, 107, 255, .16), rgba(239, 43, 54, .1)); border: 1px solid rgba(91, 140, 255, .3); }
.ce-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-blue); flex: none; }
.ce-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ce-txt b { font-size: 15px; } .ce-txt small { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.profile-sheet .ps-top { display: flex; align-items: center; gap: 14px; }
.profile-sheet .ps-top b { font-size: 20px; display: block; }
.profile-sheet .ps-top small { color: var(--muted); font-weight: 600; }
.cs-row { display: flex; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cs-row span { color: var(--muted); font-weight: 600; }
.cell-sheet .muted { margin-bottom: 8px; }

/* =========================================================
   Espace gérant
   ========================================================= */
.club { position: absolute; inset: 0; z-index: 45; background: #05070c; overflow-y: auto; transform: translate3d(100%, 0, 0); transition: transform .5s var(--ease); scrollbar-width: none; }
.club.open { transform: none; }
.club-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 8px) 14px 12px; background: rgba(5, 7, 12, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.club-head > div { flex: 1; line-height: 1.1; }
.club-head small { display: block; font-size: 11.5px; font-weight: 800; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; }
.club-head b { font-family: var(--font-d); font-size: 26px; font-weight: 800; text-transform: uppercase; }
.club-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; padding: 7px 11px; border-radius: 99px; background: rgba(47, 107, 255, .14); }
.club-body { padding: 4px 16px calc(var(--sab) + 30px); }
.club-date { color: var(--muted); font-weight: 700; margin: 10px 2px 12px; text-transform: capitalize; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi small { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.kpi b { font-family: var(--font-d); font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.k-red { background: radial-gradient(100% 100% at 100% 0%, rgba(239, 43, 54, .28), transparent 60%), var(--surface); border-color: rgba(239, 43, 54, .3); }
.k-red b { color: #fff; }
.k-blue b { color: var(--blue-2); }
.k-green b { color: #3fd57f; }
.kpi b.flash { animation: flash .9s var(--ease); }
@keyframes flash { 0% { color: #3fd57f; transform: scale(1.08); } 100% { color: #fff; transform: none; } }
.kpi .bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.kpi .bar i { display: block; height: 100%; width: var(--w); background: var(--grad-blue); animation: growW 1.2s .3s var(--ease) both; }
@keyframes growW { from { width: 0; } }
.card-block { margin-top: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cb-head.out { margin: 24px 2px 10px; }
.cb-head h3 { font-family: var(--font-d); font-size: 21px; font-weight: 800; text-transform: uppercase; }
.cb-head small { font-size: 12px; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.ba { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ba-row { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ba-row b { font-family: var(--font-d); font-size: 26px; color: #fff; text-align: end; }
.ba-bar { height: 14px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.ba-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; animation: growW 1.4s .4s var(--ease) both; }
.b-red { background: var(--grad-red); } .b-green { background: linear-gradient(90deg, #3fd57f, #1b9e52); }

.plan { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.plan-scroll { overflow-x: auto; scrollbar-width: none; }
.plan-scroll::-webkit-scrollbar { display: none; }
.plan-grid { position: relative; display: grid; grid-template-columns: 40px repeat(var(--cols), 74px); gap: 4px; padding: 10px; width: max-content; }
.pg-corner, .pg-court { position: sticky; left: -10px; z-index: 2; background: var(--surface); box-shadow: -10px 0 0 var(--surface), 4px 0 0 var(--surface); }
.pg-court { display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 18px; color: var(--muted); }
.pg-time { font-size: 11.5px; font-weight: 800; color: var(--muted); text-align: center; padding-bottom: 2px; }
.pg-cell { height: 50px; border-radius: 11px; display: flex; flex-direction: column; justify-content: center; padding: 0 8px; text-align: start; font-size: 12px; line-height: 1.2; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 25ms + 200ms); }
.pg-cell b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-cell small { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; opacity: .85; }
.pg-cell.k-app { background: linear-gradient(135deg, #3c74ff, #1c45c4); }
.pg-cell.k-desk { background: var(--surface-3); color: rgba(255, 255, 255, .8); }
.pg-cell.k-free { border: 1.5px dashed var(--line-2); }
.pg-cell.past { opacity: .4; }
.pg-cell.fresh { background: var(--grad-red); box-shadow: 0 0 0 2px #fff inset; }
.pg-now { position: absolute; top: 30px; bottom: 8px; left: calc(50px + (100% - 60px) * var(--x) / 100); width: 2px; background: var(--red); z-index: 3; pointer-events: none; box-shadow: 0 0 10px var(--red); }
.pg-now span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; background: var(--red); padding: 1px 6px; border-radius: 6px; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 12px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legend i { width: 12px; height: 12px; border-radius: 4px; }
.plan-legend i.k-app { background: var(--blue); } .plan-legend i.k-desk { background: var(--surface-3); } .plan-legend i.k-free { border: 1.5px dashed var(--line-2); }

.live-dot .pulse { width: 7px; height: 7px; }
.feed { margin-top: 10px; display: flex; flex-direction: column; }
.feed-it { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.feed-it:first-child { border-top: 0; }
.feed-it.new { animation: feedIn .6s var(--spring) both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(.96); background: rgba(63, 213, 127, .2); } to { opacity: 1; transform: none; } }
.fi-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(63, 213, 127, .14); color: #3fd57f; flex: none; }
.fi-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.fi-txt b { font-size: 14px; } .fi-txt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fi-amt { text-align: end; font-weight: 800; color: #3fd57f; font-size: 14px; display: flex; flex-direction: column; line-height: 1.25; }
.fi-amt small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 12px; align-items: end; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wk-v { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.wk-bar { width: 100%; height: 110px; border-radius: 9px; background: var(--surface-2); display: flex; align-items: flex-end; overflow: hidden; }
.wk-bar i { display: block; width: 100%; height: var(--h); border-radius: 9px; background: var(--grad-blue); animation: growH .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 300ms); transform-origin: bottom; }
.wk-bar i.today { background: var(--grad-red); }
@keyframes growH { from { transform: scaleY(0); } }
.wk small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ord { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ord:nth-child(2) { border-top: 0; margin-top: 4px; }
.ord-c { font-family: var(--font-d); font-weight: 800; font-size: 17px; min-width: 64px; }
.ord-t { flex: 1; color: var(--muted); font-weight: 600; }
.ord-s { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.s-new { background: rgba(239, 43, 54, .16); color: var(--red-2); } .s-prep { background: rgba(255, 181, 71, .14); color: var(--amber); } .s-road { background: rgba(47, 107, 255, .16); color: var(--blue-2); }
.btn-ghost { text-align: center; }
