/* 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: nowrap; 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; white-space: nowrap; }
.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.
   Callouts sit beside the phone on a wide screen, and stack under it otherwise. */
.stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.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; }
.pin { display: none; appearance: none; position: absolute; z-index: 3; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); pointer-events: none; cursor: pointer; }
.pin::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: inherit; animation: pin-pulse 2.4s ease-out infinite; animation-delay: var(--pin-delay, 0s); }
.pin-session { --pin-delay: 0s; background: #f0a24b; left: 6.5%; top: 32.2%; }
.pin-arnold { --pin-delay: .6s; background: #5b8cf5; left: 71%; top: 15.2%; }
.pin-access { --pin-delay: 1.2s; background: #4fb58a; left: 76.5%; top: 48.6%; }
.pin-whatsapp { --pin-delay: 1.8s; background: #e56a9f; left: 84%; top: 59.2%; }
@keyframes pin-pulse {
  0% { transform: scale(1); opacity: .65; }
  75%, 100% { transform: scale(2.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pin::before { animation: none; }
}
.feature-dialog { margin: auto; padding: 0; border: 0; background: transparent; width: min(380px, calc(100vw - 32px)); }
.feature-dialog-sheet { position: relative; }
.feature-dialog::backdrop { background: rgba(14, 10, 20, .62); }
.feature-dialog .co { position: static; width: auto; margin: 0; transform: none; padding-right: 52px; }
.feature-dialog .ic { transform: none; }
.feature-dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: #1d2529; cursor: pointer; }
.feature-dialog-close svg { width: 16px; height: 16px; display: block; }

.callouts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; width: min(560px, 100%); }
.arrows { display: none; }
.co { padding: 12px 15px 13px; color: #1d2529; border-radius: 22px; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.co-session { background: #fff1d4; }
.co-arnold { background: #e6eeff; }
.co-access { background: #e0f4e8; }
.co-whatsapp { background: #fde4ee; }
.co-h { display: flex; align-items: flex-start; gap: 9px; }
.ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.ic svg, .ic img { width: 28px; height: 28px; display: block; }
.co strong { font-size: .93rem; line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
.co p { margin: 3px 0 0; font-size: .78rem; line-height: 1.38; color: #3a454a; text-wrap: pretty; }

.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 (max-width: 1239px) {
  .stage { display: contents; }
  .callouts, .arrows { display: none; }
  .pin { display: block; pointer-events: auto; }
}
@media (min-width: 821px) and (max-width: 1239px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; justify-content: stretch; gap: 36px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .phone { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (min-width: 1240px) {
  html, body { overflow: hidden; }
  .site-header .wrap, .site-footer .wrap { max-width: 1440px; padding-inline: max(36px, env(safe-area-inset-left, 0px)) max(36px, env(safe-area-inset-right, 0px)); }
  /* The phone sits on the right. The flexible column is the title, and the
     right padding is exactly the room the labels need beside the phone. */
  .hero-grid { max-width: 1440px; grid-template-columns: minmax(420px, 1fr) auto; gap: 0; align-items: center;
    padding-left: max(36px, env(safe-area-inset-left, 0px));
    padding-right: calc(214px + 28px + max(36px, env(safe-area-inset-right, 0px))); }
  .hero-copy { padding-right: calc(214px + 28px + 20px); }
  .stage { width: min(250px, calc((100dvh - 220px) / 2.2)); justify-self: end; display: block; }
  .phone { width: 100%; }
  .callouts { display: block; width: auto; margin: 0; }
  .arrows { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .callouts .co { position: absolute; width: 214px; }
  .callouts .co-session { right: calc(100% + 28px); top: 22%; transform: rotate(-2.5deg); }
  .callouts .co-arnold { left: calc(100% + 28px); top: -2%; transform: rotate(2deg); }
  .callouts .co-access { left: calc(100% + 28px); top: 32%; transform: rotate(-1.6deg); }
  .callouts .co-whatsapp { left: calc(100% + 28px); top: 64%; transform: rotate(2.2deg); }
  .callouts .ic { transform: translate(-3px, -9px) rotate(-9deg); }
  .callouts .co-arnold .ic, .callouts .co-whatsapp .ic { transform: translate(-3px, -9px) rotate(8deg); }
}
@media (min-width: 1240px) and (max-height: 780px) {
  html, body { overflow: auto; }
}
@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); }
  .store { flex: 1 1 0; min-width: 0; width: auto; padding-inline: 12px; gap: 8px; }
}
@media (max-width: 520px) {
  .store { padding: 9px 10px; }
  .store .ico { width: 22px; }
  .store .ico svg { width: 18px; height: auto; }
  .store strong { font-size: .92rem; }
  .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; }

