/* =========================================================
   padelclub-v2 — generic club theme
   Direction C · Plus Jakarta + Inter · radius 8 · shadow md
   Sourced from the Claude Design Padel Gentle handoff.
   White-label: any tenant on this theme can override --lime,
   --lime-deep, --lime-soft via inline <style> in layout.blade
   based on tenants.primary_color / secondary_color.
   ========================================================= */

:root {
  /* Encre · navy royal (aligné sur le logo — blason marine) */
  --ink-950: #0a1838;
  --ink-900: #13265c;
  --ink-800: #23386c;
  --ink-700: #48545f;
  --ink-600: #5d6975;
  --ink-500: #8b95a0;
  --ink-400: #b8bfc6;
  --ink-300: #dadee2;
  --ink-200: #ebede8;
  --ink-100: #f5f4ef;

  /* Signature · or (couleur de marque, balle dorée du logo).
     Source de vérité = --gold ; --lime reste un alias rétro-compat
     pour ne réécrire aucune classe existante. La surcharge par tenant
     (layout.blade) écrase --lime ; on garde donc --gold synchronisé. */
  --gold-deep: #8a6707;
  --gold-700: #e0a30f;
  --gold: #ffc010;
  --gold-soft: #fff1c9;
  --lime-deep: #8a6707;
  --lime-700: #e0a30f;
  --lime: #ffc010;
  --lime-soft: #fff1c9;

  /* Secondaire · coral */
  --coral-deep: #c43e22;
  --coral: #ff6a4d;
  --coral-soft: #ffd7cd;

  /* Sémantique */
  --success: #2e9d5c;
  --warning: #e8a93b;
  --danger: #d14545;

  /* Surface */
  --paper: #f5f4ef;
  --paper-2: #faf9f4;
  --white: #ffffff;
  --line: #e6e2d8;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Tokens */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 43, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 32, 43, 0.08);
  --shadow-lg: 0 12px 28px rgba(20, 32, 43, 0.10);
  --shadow-xl: 0 24px 56px rgba(20, 32, 43, 0.14);
  --motion-fast: 120ms ease-out;
  --motion-med: 320ms cubic-bezier(0.32, 0.72, 0, 1);
  --motion-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;

  /* Layout */
  --wrap: 1320px;
  --pad-x: 48px;
  --nav-h: 76px;
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; --nav-h: 64px; }
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- HELPERS ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.eyebrow.on-dark { color: var(--lime); }
.serif-it { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

/* (Designer's preview viewport toggle removed for production.) */

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--motion-fast), background var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--lime); color: var(--ink-900); }
.btn--primary:hover { background: var(--lime-soft); box-shadow: var(--shadow-md); }
.btn--primary.on-dark { background: var(--lime); color: var(--ink-900); }
.btn--secondary { background: var(--white); color: var(--ink-900); border-color: var(--ink-300); }
.btn--secondary:hover { border-color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-300); }
.btn--ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--sm { font-size: 13px; padding: 10px 16px; min-height: 40px; }
.btn--lg { font-size: 17px; padding: 18px 28px; min-height: 56px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform var(--motion-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--ink-100);
  color: var(--ink-800);
}
.badge--lime { background: var(--lime); color: var(--ink-900); }
.badge--coral { background: var(--coral); color: #fff; }
.badge--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.badge--soft-lime { background: var(--lime-soft); color: var(--lime-deep); }
.badge--soft-coral { background: var(--coral-soft); color: var(--coral-deep); }
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.badge--live .dot { background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* =========================================================
   01 · NAVIGATION
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--motion-slow), border-color var(--motion-slow), box-shadow var(--motion-slow), backdrop-filter var(--motion-slow);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.is-on-hero { color: #fff; }
.nav.is-on-hero .nav-link { color: rgba(255,255,255,0.85); }
.nav.is-on-hero .nav-link:hover { color: #fff; }
.nav.is-on-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.nav.is-on-hero .logo-mark .text { color: #fff; }
.nav.is-on-hero .logo-mark .dot::after { background: var(--lime); }

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
}
.nav.is-scrolled .nav-link { color: var(--ink-700); }
.nav.is-scrolled .nav-link:hover { color: var(--ink-900); }
.nav.is-scrolled .btn--ghost { color: var(--ink-900); border-color: var(--ink-300); }
.nav.is-scrolled .logo-mark .text { color: var(--ink-900); }

.logo-mark { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Uploaded wordmark. Height-constrained, width free: the artwork keeps its
   own aspect ratio instead of being cropped into a square. */
.logo-mark .logo-img {
  display: block; flex: none;
  height: 34px; max-width: 170px;
}
.logo-mark .logo-img img {
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; display: block;
}

.logo-mark .dot {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--ink-900); display: grid; place-items: center;
  position: relative;
  transition: background var(--motion-slow);
}
.nav.is-on-hero .logo-mark .dot { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); }
.logo-mark .dot::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime);
}
.logo-mark .text {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-900);
}
.logo-mark .text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 4px;
  font-weight: 600;
}
.nav.is-on-hero .logo-mark .text small { color: rgba(255,255,255,0.6); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.nav-link:hover { background: rgba(0,0,0,0.04); }
.nav.is-on-hero .nav-link:hover { background: rgba(255,255,255,0.08); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer;
  border-radius: var(--r-md);
}
.hamburger svg { width: 24px; height: 24px; }
.hamburger:hover { background: rgba(0,0,0,0.04); }
.nav.is-on-hero .hamburger:hover { background: rgba(255,255,255,0.08); }

/* Compact account/login icon button — hidden on desktop, shown on mobile
   where the ghost text button is hidden. Inherits nav colour states. */
.btn-user {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-300);
  color: var(--ink-900);
  background: transparent;
}
.btn-user:hover { background: rgba(0,0,0,0.04); }
.nav.is-on-hero .btn-user { color: #fff; border-color: rgba(255,255,255,0.3); }
.nav.is-on-hero .btn-user:hover { background: rgba(255,255,255,0.08); }
.nav.is-scrolled .btn-user { color: var(--ink-900); border-color: var(--ink-300); }

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav-cta .btn--ghost { display: none; }
  .btn-user { display: inline-flex; }
  /* Keep the CTA row compact next to the new icon + hamburger. */
  .nav-cta .btn--primary .arrow { display: none; }
}

/* Narrow bar: the logo artwork already spells out the club name, so the
   text block beside it is redundant and was overlapping the wordmark. */
@media (max-width: 720px) {
  .nav-inner { gap: 12px; }
  /* Nav only — the footer brand block keeps its name, it has the room. */
  .nav .logo-mark .text.has-logo { display: none; }
  .nav .logo-mark .logo-img { height: 30px; max-width: 140px; }
  .nav-cta { gap: 6px; }
}

/* Mobile menu drawer.
   The drawer is a child of .nav, and .nav.is-scrolled carries a
   backdrop-filter. A filtered element becomes the containing block for its
   fixed-position descendants, so the drawer resolved its inset against the
   64px bar instead of the viewport: it was clipped to a sliver and the page
   showed through. Dropping the filter while the menu is out restores the
   viewport as the containing block. Keyed off the drawer's own state class so
   no extra binding is needed on the nav (whose classes the scroll handler
   already mutates). */
.nav:has(.mobile-drawer.is-open) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  /* Explicit viewport sizing rather than inset:0, so the panel still covers the
     screen if the containing block is not the viewport (older engines without
     :has(), any future filtered ancestor). dvh follows the mobile URL bar. */
  width: 100vw;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  background: var(--ink-900); color: #fff;
  z-index: 99;
  padding: 32px var(--pad-x) 40px;
  transform: translateY(-100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform var(--motion-slow), visibility var(--motion-slow);
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* No opacity fade: a translucent dark panel sliding over light content reads
   as a rendering fault. The slide alone carries the transition. */
.mobile-drawer.is-open { transform: translateY(0); pointer-events: auto; visibility: visible; }
.mobile-drawer .m-link {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-drawer .m-link .arrow { color: var(--lime); }
.mobile-drawer .m-cta { margin-top: 32px; display: grid; gap: 12px; }
.mobile-drawer .m-cta .btn { width: 100%; }

/* The drawer is a child of .nav, so `.nav.is-scrolled .btn--ghost` (dark text,
   for the white scrolled bar) also hit the drawer's buttons — on the dark
   panel that rendered "Log in" as an empty outline, invisible. The drawer is
   always dark, so its ghost buttons are always light. Same specificity as the
   nav rule (0,3,0) but declared later, so it wins without !important. */
.nav .mobile-drawer .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.nav .mobile-drawer .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

/* =========================================================
   02 · HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 760px;
  height: 100vh;
  max-height: 920px;
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 80px;
}
.hero-photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-photo image-slot { width: 100%; height: 100%; display: block; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,32,43,0.55) 0%, rgba(20,32,43,0.2) 30%, rgba(20,32,43,0.4) 60%, rgba(10,18,25,0.92) 100%);
  pointer-events: none;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(200, 220, 60, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
}
.hero-content .wrap { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: end; }
@media (min-width: 1024px) { .hero-content .wrap { grid-template-columns: 1.6fr 1fr; } }

.hero-headline-block .eyebrow { color: var(--lime); margin-bottom: 24px; display: inline-block; }
.hero-headline {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.hero-headline em { color: var(--lime); font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-badges {
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
}
.hero-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  min-width: 280px;
}
.hero-badge .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.03em;
  line-height: 1;
  min-width: 40px;
}
.hero-badge .label { color: rgba(255,255,255,0.8); font-size: 13px; }
.hero-badge .label b { color: #fff; font-weight: 600; display: block; font-size: 15px; }

.hero-marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 18, 25, 0.4);
  backdrop-filter: blur(12px);
  font-family: var(--f-display);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: none;
}

@media (max-width: 720px) {
  /* Without the headline block the hero is only the CTAs + agenda, so it must
     size to its content instead of holding a full 100vh of empty photo. */
  .hero { min-height: auto; height: auto; max-height: none; padding: calc(var(--nav-h) + 24px) 0 32px; }
  .hero-content .wrap { gap: 24px; }
  /* Mobile hero is the booking widget, not the pitch: the eyebrow, headline
     and sub-title are dropped so the CTAs and the day agenda sit above the
     fold. Desktop keeps them. */
  .hero-headline-block .eyebrow,
  .hero-headline,
  .hero-sub { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-badge { min-width: auto; padding: 12px 14px; }
  .hero-badge .num { font-size: 26px; }
}

/* =========================================================
   03 · QUICK INFO BANDEAU
   ========================================================= */
.qinfo {
  background: var(--ink-900);
  color: #fff;
  padding: 24px 0;
  position: relative;
}
.qinfo .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .qinfo .wrap { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } }
@media (max-width: 480px) { .qinfo .wrap { grid-template-columns: 1fr; } }

.qinfo-cell {
  display: flex; align-items: center; gap: 14px;
}
.qinfo-cell .ico {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(200, 220, 60, 0.12);
  color: var(--lime);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.qinfo-cell .ico svg { width: 22px; height: 22px; }
.qinfo-cell .body { display: flex; flex-direction: column; line-height: 1.3; }
.qinfo-cell .k { font-size: 11px; color: rgba(255,255,255,0.5); font-family: var(--f-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.qinfo-cell .v { font-size: 15px; font-weight: 600; font-family: var(--f-display); color: #fff; }
.qinfo-cell .v.live { display: flex; align-items: center; gap: 8px; }
.qinfo-cell .v .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }

/* =========================================================
   GENERIC SECTION
   ========================================================= */
section.block {
  padding: 120px 0;
}
section.block.tight { padding: 80px 0; }
section.block.dark { background: var(--ink-900); color: #fff; }
section.block.cream { background: var(--paper); }
section.block.white { background: var(--white); }

.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.section-title em { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--lime-deep); letter-spacing: -0.02em; }
.section.dark .section-title em { color: var(--lime); }
.section-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 640px;
  margin: 0;
}
/* Light lede only on dark-background sections. Scoping to section.block.dark
   (not the global .dark mode toggle) avoids a white lede on cream/beige
   sections, which was unreadable. */
section.block.dark .section-lede { color: rgba(255,255,255,0.7); }
/* Cream / white sections keep readable dark text even in dark mode. */
section.block.cream .section-lede,
section.block.white .section-lede { color: var(--ink-700); }

@media (max-width: 720px) {
  section.block { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}

/* =========================================================
   04 · QU'EST-CE QUE LE PADEL
   ========================================================= */
.padel-explain { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 1024px) { .padel-explain { grid-template-columns: 1fr; gap: 56px; } }

.explain-text p { font-size: 17px; line-height: 1.65; color: var(--ink-800); margin: 0 0 24px; max-width: 56ch; }
.explain-text p:last-of-type { margin-bottom: 32px; }

.explain-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.explain-card {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.explain-card .ico {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--lime-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--lime-deep);
}
.explain-card .ico svg { width: 26px; height: 26px; }
.explain-card .body { display: flex; flex-direction: column; line-height: 1.4; }
.explain-card .t { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink-900); }
.explain-card .d { font-size: 13px; color: var(--ink-600); margin-top: 2px; }

/* Photo collage */
.explain-photos { position: relative; height: 560px; }
@media (max-width: 1024px) { .explain-photos { height: 460px; max-width: 600px; } }
@media (max-width: 600px) { .explain-photos { height: 400px; } }
.explain-photos .ph {
  position: absolute; border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink-200);
}
.explain-photos image-slot { width: 100%; height: 100%; display: block; }
.explain-photos .ph-1 { width: 62%; height: 70%; top: 0; left: 0; }
.explain-photos .ph-2 { width: 48%; height: 48%; bottom: 0; right: 0; }
.explain-photos .ph-3 { width: 32%; height: 32%; top: 28%; right: 0; transform: translateY(-12%); }

.stat-tile {
  position: absolute;
  bottom: 16%;
  left: -4%;
  background: var(--lime);
  color: var(--ink-900);
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  z-index: 2;
}
.stat-tile .num { font-family: var(--f-display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.stat-tile .lbl { font-size: 12px; font-weight: 600; font-family: var(--f-display); line-height: 1.2; max-width: 90px; }
@media (max-width: 600px) {
  .explain-photos .ph-3 { display: none; }
  .stat-tile { left: 0; bottom: 8%; }
}

/* =========================================================
   05 · RÉSERVATION (3 STEPS + PHONE MOCKUP)
   ========================================================= */
.book-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
@media (max-width: 1024px) { .book-row { grid-template-columns: 1fr; gap: 56px; } }

.book-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.step-row {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: var(--motion-fast);
}
.step-row:hover { background: rgba(200, 220, 60, 0.08); border-color: rgba(200, 220, 60, 0.3); }
.step-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
  min-width: 48px;
}
.step-body .t { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.3; color: #fff; }
.step-body .d { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 4px; line-height: 1.5; }

.book-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.book-cta .hint { font-size: 13px; color: rgba(255,255,255,0.5); }

/* Phone mockup */
.phone-mock {
  width: 320px;
  margin: 0 auto;
  background: var(--ink-950);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.04),
    0 0 0 12px rgba(255, 255, 255, 0.02);
  position: relative;
}
@media (max-width: 600px) { .phone-mock { width: 280px; } }
.phone-mock::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #000; border-radius: 14px; z-index: 5;
}
.phone-screen {
  background: var(--paper);
  border-radius: 26px;
  height: 580px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-bar {
  height: 50px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 24px 8px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-900);
}
.phone-content { flex: 1; padding: 18px 18px 24px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; color: var(--ink-900); }
.phone-content .ph-title { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.phone-content .ph-sub { font-size: 12px; color: var(--ink-600); margin: 0; }

.phone-day-pill-row { display: flex; gap: 6px; }
.phone-day-pill {
  flex: 1; padding: 10px 6px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--f-display);
}
.phone-day-pill .d { font-size: 10px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; }
.phone-day-pill .n { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.phone-day-pill.active { background: var(--ink-900); border-color: var(--ink-900); }
.phone-day-pill.active .d { color: var(--lime); }
.phone-day-pill.active .n { color: #fff; }

.phone-slot-list { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.phone-slot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--f-display); font-size: 13px;
}
.phone-slot .t { font-weight: 600; color: var(--ink-900); }
.phone-slot .court { font-size: 11px; color: var(--ink-600); font-weight: 500; }
.phone-slot.taken { opacity: 0.4; background: var(--ink-100); }
.phone-slot.taken .court::after { content: " · pris"; }
.phone-slot.featured { background: var(--lime); border-color: var(--lime); }
.phone-slot.featured .court { color: var(--ink-800); }
.phone-slot .price { color: var(--ink-900); font-weight: 700; }

.phone-cta {
  margin-top: auto;
  background: var(--ink-900); color: #fff;
  padding: 14px; border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.phone-cta .arrow { color: var(--lime); }

/* =========================================================
   06 · TARIFS
   ========================================================= */
.tarifs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
@media (max-width: 1000px) { .tarifs-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
/* Single formula: one centered card instead of a 3-col row. */
.tarifs-grid--single { grid-template-columns: minmax(0, 420px); justify-content: center; }

.tarif-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: var(--motion-fast);
}
.tarif-card:hover { border-color: var(--ink-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tarif-card.featured {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.tarif-card.featured:hover { transform: translateY(-10px); }
.tarif-card .pop-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--ink-900);
  padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.tarif-card .name {
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-700);
}
.tarif-card.featured .name { color: var(--lime); }
.tarif-card .price-row { margin: 20px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.tarif-card .price {
  font-family: var(--f-display); font-weight: 800; font-size: 64px;
  line-height: 1; letter-spacing: -0.04em; color: var(--ink-900);
}
.tarif-card.featured .price { color: #fff; }
.tarif-card .unit { font-size: 14px; color: var(--ink-600); font-weight: 500; }
.tarif-card.featured .unit { color: rgba(255,255,255,0.5); }
.tarif-card .tagline { font-size: 14px; color: var(--ink-600); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.tarif-card.featured .tagline { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.12); }
.tarif-card ul {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.tarif-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-800);
}
.tarif-card.featured li { color: rgba(255,255,255,0.85); }
.tarif-card li .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime-soft);
  color: var(--lime-deep);
  display: grid; place-items: center;
  flex-shrink: 0; margin-top: 2px;
}
.tarif-card.featured li .check {
  background: var(--lime); color: var(--ink-900);
}
.tarif-card .btn { width: 100%; }

.tarifs-link {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-700);
}
.tarifs-link a {
  font-weight: 600; color: var(--ink-900);
  border-bottom: 1.5px solid var(--lime);
  padding-bottom: 1px;
}
.tarifs-link a:hover { color: var(--lime-deep); }

/* =========================================================
   07 · TOURNOIS
   ========================================================= */
.tournois-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.tournois-row .filter-row { display: flex; gap: 8px; align-items: center; }
.tournois-row .filter-chip {
  font-family: var(--f-display); font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink-700); cursor: pointer;
}
.tournois-row .filter-chip.active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.tournois-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .tournois-grid { grid-template-columns: 1fr; } }

.tournoi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--motion-fast);
}
.tournoi-card:hover { box-shadow: var(--shadow-md); border-color: var(--ink-400); transform: translateY(-2px); }

.tournoi-date {
  background: var(--ink-900);
  color: #fff;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.tournoi-date .d-col { display: flex; flex-direction: column; line-height: 1.1; }
.tournoi-date .day { font-family: var(--f-display); font-weight: 800; font-size: 36px; letter-spacing: -0.04em; }
.tournoi-date .month { font-family: var(--f-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); margin-top: 4px; }
.tournoi-date .pcat {
  background: var(--lime); color: var(--ink-900);
  padding: 6px 10px; border-radius: var(--r-sm);
  font-family: var(--f-display); font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
}

.tournoi-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tournoi-title { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.015em; color: var(--ink-900); }
.tournoi-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-600); margin-bottom: 20px; }
.tournoi-meta .m { display: flex; align-items: center; gap: 6px; }
.tournoi-meta svg { width: 14px; height: 14px; }
.tournoi-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.tournoi-bottom .seats { font-size: 12px; color: var(--ink-600); }
.tournoi-bottom .seats b { color: var(--ink-900); }
.tournoi-bottom .seats .bar { display: block; height: 3px; background: var(--ink-200); border-radius: 99px; margin-top: 6px; overflow: hidden; width: 110px; }
.tournoi-bottom .seats .bar::after { content: ""; display: block; height: 100%; background: var(--lime); }
.tournoi-bottom .seats.p70 .bar::after { width: 70%; }
.tournoi-bottom .seats.p40 .bar::after { width: 40%; }
.tournoi-bottom .seats.p90 .bar::after { width: 90%; background: var(--coral); }
.tournoi-bottom .seats.p25 .bar::after { width: 25%; }

/* =========================================================
   08 · TÉMOIGNAGES
   ========================================================= */
.testi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .testi-row { grid-template-columns: 1fr; } }
.testi {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 32px 28px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.testi .stars { display: flex; gap: 2px; color: var(--lime-deep); }
.testi .stars svg { width: 16px; height: 16px; fill: currentColor; }
.testi blockquote {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.testi .person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.testi .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink-200);
  overflow: hidden;
}
.testi image-slot { width: 100%; height: 100%; display: block; }
.testi .person .name { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--ink-900); }
.testi .person .meta { font-size: 12px; color: var(--ink-600); }

/* =========================================================
   09 · PARTENAIRES
   ========================================================= */
.partners {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.partners-label {
  text-align: center; margin-bottom: 32px;
  font-family: var(--f-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-600);
}
.partners-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.partner-logo {
  height: 36px;
  display: flex; align-items: center;
  color: var(--ink-500);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 22px;
  opacity: 0.7;
  transition: var(--motion-fast);
  filter: grayscale(1);
}
.partner-logo:hover { opacity: 1; filter: grayscale(0); color: var(--ink-900); }
.partner-logo svg { height: 28px; width: auto; }
.partner-logo .l-text { display: flex; align-items: baseline; gap: 4px; }
.partner-logo .l-text sup { font-size: 0.5em; font-weight: 500; }

@media (max-width: 720px) {
  .partners-row { justify-content: center; gap: 20px 32px; }
}

/* =========================================================
   10 · CONTACT
   ========================================================= */
.contact-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; }
@media (max-width: 1024px) { .contact-row { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 8px; }
.info-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 24px 28px;
  border: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px;
}
.info-card .ico {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--ink-900); color: var(--lime);
  display: grid; place-items: center; flex-shrink: 0;
}
.info-card .ico svg { width: 22px; height: 22px; }
.info-card .body { flex: 1; }
.info-card .k { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 4px; }
.info-card .v { font-family: var(--f-display); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink-900); letter-spacing: -0.01em; }
.info-card .v small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-600); margin-top: 2px; font-family: var(--f-body); letter-spacing: 0; }
.info-card.social .socials { display: flex; gap: 8px; margin-top: 8px; }
.info-card.social .s-btn {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--paper); display: grid; place-items: center;
  color: var(--ink-800); transition: var(--motion-fast);
}
.info-card.social .s-btn:hover { background: var(--lime); color: var(--ink-900); }
.info-card.social .s-btn svg { width: 18px; height: 18px; }

.contact-map {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  border: 1px solid var(--line);
  background: var(--ink-100);
}
.contact-map .map-vis {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(200, 220, 60, 0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(20,32,43,0.05) 0px, rgba(20,32,43,0.05) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(20,32,43,0.05) 0px, rgba(20,32,43,0.05) 1px, transparent 1px, transparent 32px),
    var(--ink-100);
  overflow: hidden;
}
.contact-map .map-road {
  position: absolute;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.contact-map .road-1 { left: -10%; right: -10%; top: 38%; height: 18px; transform: rotate(-4deg); }
.contact-map .road-2 { top: 12%; bottom: -10%; left: 62%; width: 14px; transform: rotate(2deg); }
.contact-map .road-3 { left: -10%; right: 24%; top: 70%; height: 10px; transform: rotate(2deg); }

.map-pin {
  position: absolute;
  top: 48%; left: 56%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 4;
}
.map-pin .pin-card {
  background: var(--ink-900); color: #fff;
  padding: 10px 14px; border-radius: var(--r-md);
  font-family: var(--f-display); font-size: 13px; font-weight: 600;
  white-space: nowrap; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px;
}
.map-pin .pin-card .l { color: var(--lime); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.map-pin .pin-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime); border: 3px solid var(--ink-900);
  box-shadow: 0 0 0 4px rgba(200, 220, 60, 0.3);
  position: relative;
}
.map-pin .pin-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: var(--lime); opacity: 0.2;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-attr {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 11px; color: var(--ink-500); font-family: var(--f-display);
  background: rgba(255,255,255,0.8); padding: 4px 8px; border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}

/* =========================================================
   11 · FOOTER
   ========================================================= */
.footer {
  background: var(--ink-950);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer .ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 900px) { .footer .ftr-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }

/* Compact mobile footer. Stacking all four blocks in one column produced a very
   long dead strip at the end of every page, so the link lists stay side by side
   (they are short labels) and only the brand block spans the full width. */
@media (max-width: 540px) {
  .footer { padding: 40px 0 24px; }
  .footer .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 28px; }
  .footer .ftr-brand { grid-column: 1 / -1; }
  .ftr-brand p { margin-top: 14px; font-size: 13px; }
  .ftr-col h5 { margin-bottom: 12px; font-size: 11px; }
  .ftr-col ul { gap: 8px; }
  .ftr-col a { font-size: 13px; }
  .ftr-bottom { padding-top: 20px; gap: 10px; font-size: 12px; }
  .ftr-bottom .links { gap: 14px; }
}

.ftr-brand .logo-mark .text { color: #fff; }
.ftr-brand .logo-mark .text small { color: rgba(255,255,255,0.5); }
.ftr-brand .logo-mark .dot { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.ftr-brand p { font-size: 14px; line-height: 1.6; margin: 24px 0 0; max-width: 30ch; }

.ftr-col h5 {
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
}
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr-col a { font-size: 14px; color: rgba(255,255,255,0.85); transition: var(--motion-fast); }
.ftr-col a:hover { color: var(--lime); }

.ftr-newsletter p { font-size: 14px; line-height: 1.55; margin: 0 0 16px; max-width: 32ch; }
.ftr-input-row { display: flex; gap: 6px; }
.ftr-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: #fff;
  font-family: inherit; font-size: 14px;
  transition: var(--motion-fast);
}
.ftr-input::placeholder { color: rgba(255,255,255,0.4); }
.ftr-input:focus { outline: none; border-color: var(--lime); background: rgba(255,255,255,0.08); }
.ftr-input-row .btn { padding: 12px 18px; min-height: 44px; }

.ftr-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.5); }
.ftr-bottom .links { display: flex; gap: 20px; }
.ftr-bottom .links a:hover { color: #fff; }
.ftr-bottom .pwrd { display: flex; align-items: center; gap: 6px; }
.ftr-bottom .pwrd b { color: var(--lime); font-weight: 600; }

/* =========================================================
   ADD TO HOME SCREEN BANNER (phones only)
   ========================================================= */
.pwa-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  /* Clears the iOS home indicator. */
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink-900); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg, 16px);
  padding: 14px 14px 14px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  transform: translateY(calc(100% + 24px));
  transition: transform var(--motion-slow);
}
.pwa-banner.is-in { transform: translateY(0); }
/* Desktop never sees it — the script also guards, this is belt and braces. */
@media (min-width: 721px) { .pwa-banner { display: none; } }

.pwa-body { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.pwa-icon {
  flex: none; width: 40px; height: 40px;
  border-radius: 10px; background: rgba(255,255,255,0.1);
  display: grid; place-items: center; overflow: hidden;
}
.pwa-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pwa-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwa-text strong {
  font-family: var(--f-display); font-size: 14px; font-weight: 600;
  line-height: 1.25; color: #fff;
}
.pwa-hint { font-size: 12px; line-height: 1.35; color: rgba(255,255,255,0.65); }
.pwa-share { width: 14px; height: 14px; vertical-align: -3px; display: inline-block; }

.pwa-banner .pwa-install { flex: none; white-space: nowrap; }

.pwa-close {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; padding: 0;
  border: none; background: transparent; cursor: pointer;
  color: rgba(255,255,255,0.5);
  display: grid; place-items: center; border-radius: 50%;
}
.pwa-close svg { width: 14px; height: 14px; }
.pwa-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

@media (prefers-reduced-motion: reduce) {
  .pwa-banner { transition: none; }
}

/* =========================================================
   FADE-INS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   LICENCE PAGE (achat licence multi-raquettes · Stancer)
   Sourced from the Padel Gentle design handoff.
   ========================================================= */

/* page hero band */
.lic-hero {
  background: var(--ink-900);
  color: #fff;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  position: relative;
  overflow: hidden;
}
.lic-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% -10%, rgba(255, 192, 16, 0.16), transparent 46%);
  pointer-events: none;
}
.lic-hero .wrap { position: relative; }
.lic-breadcrumb { font-family: var(--f-display); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.55); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; }
.lic-breadcrumb a { color: rgba(255, 255, 255, 0.55); }
.lic-breadcrumb a:hover { color: var(--gold); }
.lic-hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(38px, 5.2vw, 68px); line-height: 1.0;
  letter-spacing: -0.035em; margin: 0 0 18px; max-width: 16ch;
}
.lic-hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--gold); letter-spacing: -0.02em; }
.lic-hero p { font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0; line-height: 1.55; }
.lic-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lic-hero .chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-size: 13px; font-weight: 600;
  color: #fff; padding: 9px 15px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.lic-hero .chip svg { width: 16px; height: 16px; color: var(--gold); }

/* checkout */
.checkout { background: var(--paper); padding: 64px 0 110px; }
.checkout-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .checkout-grid { grid-template-columns: 1fr; gap: 28px; } }

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 36px;
}
@media (max-width: 600px) { .panel { padding: 26px 22px; } }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.panel-step {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; background: var(--ink-900); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 14px;
}
.panel-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin: 0; color: var(--ink-900); }
.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-600); }

/* category picker */
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .cat-row { grid-template-columns: 1fr; } }
/* Single licence category: let the only card span the full row. */
.cat-row:has(> .cat-opt:only-child) { grid-template-columns: 1fr; }

/* Member-discount highlight: price held despite the licence fee increase. */
.lic-offer {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fffaf0; border: 1.5px solid var(--gold, #ffc010);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px;
  font-size: 14px; line-height: 1.5; color: var(--ink-800, #2a2f36);
}
.lic-offer b { color: var(--ink-900); }
.lic-offer-ico { flex: 0 0 auto; color: var(--gold-deep, #b8860b); }
.lic-offer-ico svg { width: 22px; height: 22px; display: block; }
.cat-opt { position: relative; cursor: pointer; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; transition: var(--motion-fast);
  display: flex; flex-direction: column; gap: 4px; height: 100%;
}
.cat-card .ct { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink-900); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat-card .ct .pr { color: var(--gold-deep); font-size: 20px; letter-spacing: -0.02em; }
.cat-card .cd { font-size: 13px; color: var(--ink-600); line-height: 1.45; }
.cat-opt:hover .cat-card { border-color: var(--ink-400); }
.cat-opt input:checked + .cat-card { border-color: var(--ink-900); background: #fffdf5; box-shadow: 0 0 0 3px rgba(255, 192, 16, 0.18); }
.cat-opt input:focus-visible + .cat-card { box-shadow: 0 0 0 3px var(--gold-soft); }

/* form */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-2 { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-display); font-size: 13px; font-weight: 600;
  color: var(--ink-800); letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
}
.field label .opt { font-weight: 500; font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 15px; color: var(--ink-900);
  background: var(--white); border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md); padding: 0 15px; min-height: 50px;
  transition: var(--motion-fast); width: 100%;
}
.field textarea { padding: 13px 15px; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-soft); }
.field label .opt { font-weight: 400; font-size: 12px; color: var(--ink-500); text-transform: none; letter-spacing: 0; }
.field .hint { font-size: 12px; color: var(--ink-600); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(209, 69, 69, 0.14); }
.field .err { display: none; font-size: 12px; color: var(--danger); font-weight: 500; }
.field.invalid .err { display: block; }

/* Stancer payment block */
.pay-secure {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--ink-100); border: 1px solid var(--line);
}
.pay-secure svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.pay-secure .txt { font-size: 12.5px; color: var(--ink-700); line-height: 1.4; }
.pay-secure .txt b { color: var(--ink-900); font-weight: 600; }
.stancer-tag {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--f-display); font-weight: 800; font-size: 13px;
  letter-spacing: -0.01em; color: var(--ink-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.stancer-tag .sp { width: 9px; height: 9px; border-radius: 50%; background: #635bff; }

/* summary */
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary .panel { padding: 28px 28px; }
.sum-title { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); margin: 0 0 20px; }
.sum-product { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sum-product .badge-ico {
  width: 46px; height: 46px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--ink-900); color: var(--gold); display: grid; place-items: center;
}
.sum-product .badge-ico svg { width: 24px; height: 24px; }
.sum-product .pn { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink-900); line-height: 1.25; }
.sum-product .pm { font-size: 13px; color: var(--ink-600); margin-top: 3px; }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-700); padding: 11px 0; }
.sum-line.muted { color: var(--ink-600); font-size: 13px; }
.sum-line span:last-child { font-family: var(--f-display); font-weight: 600; color: var(--ink-900); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.sum-total .lbl { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink-900); }
.sum-total .amt { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: var(--ink-900); }
.sum-total .amt small { font-size: 16px; font-weight: 600; color: var(--ink-600); }
.summary .btn { width: 100%; margin-top: 20px; }
.sum-fine { font-size: 11.5px; color: var(--ink-600); line-height: 1.5; margin: 14px 0 0; text-align: center; }
.sum-fine a { color: var(--ink-800); text-decoration: underline; text-underline-offset: 2px; }

/* success */
.lic-success { padding: 80px 0 120px; background: var(--paper); }
.success-card {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 52px 48px;
}
@media (max-width: 600px) { .success-card { padding: 40px 26px; } }
.success-card .tick {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--gold); color: var(--ink-900); display: grid; place-items: center;
}
.success-card .tick.pending { background: var(--warning); }
.success-card .tick svg { width: 38px; height: 38px; }
.success-card h2 { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; margin: 0 0 12px; color: var(--ink-900); }
.success-card h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--gold-deep); }
.success-card p { font-size: 16px; color: var(--ink-700); line-height: 1.6; margin: 0 auto 8px; max-width: 46ch; }
.success-card .ref { display: inline-block; margin-top: 18px; font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--ink-700); background: var(--ink-100); border: 1px solid var(--line); padding: 9px 16px; border-radius: var(--r-pill); }
.success-card .ref b { color: var(--ink-900); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* =========================================================
   HERO DAY AGENDA  (replaces the KPI badges — CMS toggle)
   Glass board on the dark hero: courts grid or FullCalendar.
   ========================================================= */
@media (min-width: 1024px) {
  /* Give the agenda a touch more room than the KPI badges had. */
  .hero-content .wrap.has-agenda { grid-template-columns: 1.15fr 1fr; align-items: center; }
}

.home-agenda {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.home-agenda-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.home-agenda-head .ha-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-agenda .ha-eyebrow {
  font-family: var(--f-display); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime);
}
.home-agenda .ha-day {
  font-family: var(--f-display); font-weight: 600; font-size: 15px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-agenda .ha-book {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lime); color: var(--ink-900);
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  padding: 7px 13px; border-radius: var(--r-pill);
  transition: background var(--motion-fast), transform var(--motion-fast);
}
.home-agenda .ha-book:hover { background: var(--lime-soft); transform: translateY(-1px); }

.home-agenda-empty { padding: 28px 16px; text-align: center; color: rgba(255,255,255,0.65); font-size: 14px; }

/* ---------- Courts (resource) grid ---------- */
.home-agenda-grid-wrap { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.home-agenda-grid { width: 100%; border-collapse: collapse; font-family: var(--f-body); }
.home-agenda-grid thead th {
  position: sticky; top: 0; z-index: 1;
  background: rgba(10, 18, 25, 0.72);
  backdrop-filter: blur(6px);
  padding: 9px 8px; text-align: center;
  font-family: var(--f-display); font-weight: 600; font-size: 12px; color: #fff;
  border-bottom: 2px solid var(--court, rgba(255,255,255,0.2));
  white-space: nowrap;
}
.home-agenda-grid thead th.ha-time-col {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5); border-bottom-color: rgba(255,255,255,0.12);
}
.home-agenda-grid .ha-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.home-agenda-grid tbody td { border-top: 1px solid rgba(255,255,255,0.07); }
.home-agenda-grid .ha-time {
  font-family: var(--f-body); font-size: 11px; color: rgba(255,255,255,0.55);
  padding: 0 8px; white-space: nowrap; text-align: right; width: 52px;
  font-variant-numeric: tabular-nums;
}
.home-agenda-grid .ha-cell { height: 46px; padding: 3px 5px; vertical-align: middle; text-align: center; }

.home-agenda-grid .ha-free { padding: 0; }
.home-agenda-grid .ha-free-link {
  display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
  color: var(--lime); font-family: var(--f-display); font-weight: 700; font-size: 13px;
  border-radius: var(--r-sm);
  transition: background var(--motion-fast);
}
.home-agenda-grid .ha-free-link:hover { background: rgba(255, 192, 16, 0.14); }
.home-agenda-grid .ha-price { pointer-events: none; }

.home-agenda-grid .ha-booked {
  text-align: left;
  background: color-mix(in oklab, var(--court, #DA8A3D) 24%, transparent);
  border-left: 3px solid var(--court, #DA8A3D);
}
.home-agenda-grid .ha-booked-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.home-agenda-grid .ha-booked-label { font-family: var(--f-display); font-weight: 600; font-size: 11px; color: #fff; }
.home-agenda-grid .ha-chip { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 4px; font-size: 9px; font-weight: 800; color: #fff; }
.home-agenda-grid .ha-chip--paid { background: #16a34a; }
.home-agenda-grid .ha-chip--partial { background: #f59e0b; }
.home-agenda-grid .ha-chip--due { background: #dc2626; }
.home-agenda-grid .ha-amounts { display: block; margin-top: 2px; font-size: 10px; line-height: 1.25; white-space: nowrap; }
.home-agenda-grid .ha-paid { color: #4ade80; font-weight: 600; }
.home-agenda-grid .ha-rest { color: #fca5a5; font-weight: 700; }
.home-agenda-grid .ha-sep { color: rgba(255,255,255,0.4); margin: 0 2px; }

.home-agenda-grid .ha-tournament {
  background: rgba(245, 158, 11, .14);
  border-left: 3px solid #f59e0b;
}
.home-agenda-grid .ha-tournament .ha-tn { font-size: 14px; }
.home-agenda-grid .ha-past,
.home-agenda-grid .ha-blocked {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 6px, transparent 6px, transparent 12px);
}

.home-agenda-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; color: rgba(255,255,255,0.6);
}
.home-agenda-legend span { display: inline-flex; align-items: center; gap: 6px; }
.home-agenda-legend .lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.home-agenda-legend .lg-free { background: var(--lime); }
.home-agenda-legend .lg-booked { background: #6FA8DC; }
.home-agenda-legend .lg-closed { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0, rgba(255,255,255,0.25) 3px, transparent 3px, transparent 6px); border: 1px solid rgba(255,255,255,0.2); }

/* ---------- FullCalendar day view (dark-skinned) ---------- */
.home-agenda-cal { padding: 6px 8px 10px; max-height: 48vh; overflow-y: auto; }
.home-agenda-cal .fc { --fc-border-color: rgba(255,255,255,0.1); --fc-page-bg-color: transparent; color: rgba(255,255,255,0.85); font-family: var(--f-body); }
.home-agenda-cal .fc .fc-timegrid-slot { height: 30px; }
.home-agenda-cal .fc .fc-timegrid-axis-cushion,
.home-agenda-cal .fc .fc-timegrid-slot-label-cushion { color: rgba(255,255,255,0.5); font-size: 11px; }
.home-agenda-cal .fc .fc-timegrid-now-indicator-line { border-color: var(--lime); }
.home-agenda-cal .fc-theme-standard td, .home-agenda-cal .fc-theme-standard th { border-color: rgba(255,255,255,0.1); }
.home-agenda-cal .fc .fc-event { border: none; border-radius: var(--r-sm); padding: 2px 5px; }
.home-agenda-cal .hac-ev-title { font-family: var(--f-display); font-weight: 700; font-size: 11px; color: #fff; line-height: 1.15; }
.home-agenda-cal .hac-ev-time { font-size: 10px; color: rgba(255,255,255,0.85); }
.home-agenda-cal .hac-ev-amt { font-size: 10px; color: #fff; margin-top: 1px; }
.home-agenda-cal .hac-ev-amt b { color: #ffe08a; }

@media (max-width: 720px) {
  .home-agenda-grid-wrap { max-height: 52vh; }
  .home-agenda .ha-day { font-size: 14px; }
  .home-agenda-grid .ha-cell { height: 42px; }
}
