/* Outside app/assets so stylesheet_link_tag :app does not load this on sign-in, the club, or the mobile app. */
:root {
  --bg: #ffffff;
  --surface: #eef2f3;
  --ink: #12191c;
  --muted: #5b676c;
  --line: #e5e9ea;
  --on-photo: #ffffff;
  --on-photo-muted: rgba(255, 255, 255, .86);
  --btn: #ffffff;
  --btn-ink: #0d1a20;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.cms a { color: inherit; }
:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto;
  padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); }

/* Hero : photo plein cadre + voile sombre à gauche pour le texte, téléphone entier à droite */
html { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; }
.hero { position: relative; isolation: isolate; color: var(--on-photo); flex: 1 0 auto; display: flex; flex-direction: column; min-height: 600px; }
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #1a1218; }
.hero-photo img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 72%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 10, 20, .86) 0%, rgba(14, 10, 20, .7) 30%, rgba(14, 10, 20, .22) 52%, rgba(14, 10, 20, .05) 100%),
    linear-gradient(180deg, rgba(14, 10, 20, .5) 0%, rgba(14, 10, 20, 0) 26%, rgba(14, 10, 20, 0) 74%, rgba(14, 10, 20, .4) 100%); }

.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login { color: var(--on-photo); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 7px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.login:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .94) 0%, rgba(240, 236, 232, .88) 100%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 4px rgba(255, 255, 255, .26), 0 6px 18px rgba(0, 0, 0, .25); }
.logo img { width: 29px; height: auto; display: block; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; align-items: center; align-content: center; gap: 40px; padding-block: 16px 48px; flex: 1; }

.hero h1 { margin: 0; font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 .mark { position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .mark::after { content: ""; position: absolute; z-index: -1; left: -0.04em; right: 0.02em; bottom: 0.08em; height: 0.18em; border-radius: 999px; background: #e3aa55; }
.lead { margin: 22px 0 0; font-size: clamp(1.02rem, 1.8vw, 1.15rem); color: var(--on-photo-muted); text-wrap: pretty; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }

.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; padding: 10px 20px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); text-decoration: none; line-height: 1.15; }
.store svg { flex: none; display: block; }
.store .ico { display: grid; place-items: center; width: 30px; flex: none; }
.store small { display: block; font-size: .7rem; opacity: .7; letter-spacing: .02em; }
.store strong { display: block; font-size: 1.05rem; font-weight: 600; }
.store[aria-disabled="true"] { opacity: .85; cursor: default; pointer-events: none; }

.contact-row { margin-top: 22px; }
.contact-link { color: var(--on-photo-muted); text-decoration: none; font-size: .98rem; text-wrap: balance; }
.contact-link strong { color: var(--on-photo); font-weight: 600; border-bottom: 1px solid currentColor; }
.contact-link:hover strong { border-bottom-width: 2px; }

/* iPhone frame. The app is painted at 390×844 inside the iframe, then scaled
   to the screen so a larger frame keeps the same layout. */
.phone { position: relative; width: min(340px, calc((100dvh - 260px) / 2.1)); padding: 10px; border-radius: 75px;
  background: linear-gradient(145deg, #5b6469 0%, #20262a 34%, #343c41 66%, #1a1f22 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 50px 90px -24px rgba(0, 0, 0, .7), 0 12px 30px -10px rgba(0, 0, 0, .5); }
.phone::before { content: ""; position: absolute; left: -4px; top: 23%; width: 4px; height: 10.5%; border-radius: 2px 0 0 2px; background: #3b4348;
  box-shadow: 0 97px 0 #3b4348, 0 -58px 0 #3b4348; }
.phone::after { content: ""; position: absolute; right: -4px; top: 29%; width: 4px; height: 15.6%; border-radius: 0 2px 2px 0; background: #3b4348; }
.screen { --app-width: 390px; --app-height: 844px; position: relative; border-radius: 66px; overflow: hidden; background: #f2f2f7; border: 6px solid #000; aspect-ratio: 390 / 844; container-type: size; }
.screen iframe { position: absolute; top: 0; left: 0; width: var(--app-width); height: var(--app-height); border: 0; transform-origin: top left; transform: scale(calc(100cqw / var(--app-width))); pointer-events: none; background: #f2f2f7; overflow: hidden; }
.screen::after { content: ""; position: absolute; z-index: 2; top: 15px; left: 50%; width: 32%; height: 31px; transform: translateX(-50%); border-radius: 18px; background: #000; }

.site-footer { flex: none; border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: .9rem; color: var(--muted); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (min-width: 821px) {
  html, body { overflow: hidden; }
}
@media (max-width: 820px) {
  .hero::before { background: linear-gradient(180deg, rgba(14, 10, 20, .82) 0%, rgba(14, 10, 20, .62) 48%, rgba(14, 10, 20, .5) 100%); }
  .hero-photo img { left: 0; width: 100%; object-position: 62% 60%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 44px; }
  .phone { margin-inline: auto; width: min(340px, 86vw); }
}
@media (max-width: 520px) {
  .store { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

.site-header .wrap { flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.lang a { text-decoration: none; opacity: .72; }
.lang a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang span { opacity: .55; }

