:root {
  --blue: #1543EC;
  --blue-dark: #0f34c0;
  --yellow: #faf328;
  --text: #111827;
  --text-muted: #6B7280;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --radius: 16px;
  --maxw: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ============ SPLASH (réplique de l'app) ============ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;            /* groupe compact centré, terrains proches du logo */
  gap: clamp(8px, 3vh, 32px);
  padding: 24px 0;
  transition: opacity .6s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash .terrain {
  width: clamp(250px, 72vw, 328px);
  height: auto;
  display: block;
}
.splash-logo {
  width: clamp(232px, 67vw, 315px);
  height: auto;
  display: block;
  opacity: 0;
  animation: logoIn .45s ease .35s forwards;
}
.splash-logo .bolt {
  transform-box: fill-box;
  transform-origin: center;
  animation: boltShake 1.9s ease-in-out 1.35s infinite;
}
@keyframes logoIn { to { opacity: 1; } }
@keyframes boltShake {
  0%, 16%, 100% { transform: translateX(0); }
  2%  { transform: translateX(6px); }
  4%  { transform: translateX(-6px); }
  6%  { transform: translateX(5px); }
  8%  { transform: translateX(-5px); }
  10% { transform: translateX(3px); }
  13% { transform: translateX(-3px); }
}

/* ============ PAGE ============ */
.page {
  opacity: 0;
  transition: opacity .5s ease .2s;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px 0;
}
.page.show { opacity: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px 8px;
}
.logo-link { display: inline-flex; }
.site-logo { width: 168px; max-width: 46vw; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,.15); }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 7px;
  border-radius: 999px;
  transition: background .15s ease;
}
.nav-icon:hover { background: rgba(255,255,255,.15); }
.nav-icon svg { width: 24px; height: 24px; display: block; }
.nav-contact {
  border: 1.5px solid rgba(255,255,255,.6);
}
.nav-contact:hover { background: var(--yellow); color: var(--blue); border-color: var(--yellow); }

/* Language bar */
.lang-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 6px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: all .15s ease;
}
.lang-btn .flag { font-size: 16px; line-height: 1; }
.lang-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.lang-btn.active {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--yellow);
  font-weight: 700;
}

/* Hero tagline */
.hero { text-align: center; padding: 50px 0 30px; }
.tagline {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  max-width: min(92vw, 720px);
  margin: 0 auto;
  color: #fff;
}
.hero-sub {
  color: var(--yellow);
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.5;
  max-width: 680px;
  margin: 18px auto 0;
}

/* Stores */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding-bottom: 76px;
}
.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 14px;
  min-width: 220px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.store-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-text small { font-size: 13px; font-weight: 400; letter-spacing: .2px; }
.store-text strong { font-size: 23px; font-weight: 600; }
.store-badge.disabled {
  background: #9aa0a6;
  cursor: not-allowed;
  opacity: .85;
}
.soon-tag {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--yellow);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* Video */
.video-section { padding: 0 0 56px; }
.video-frame {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 40px rgba(21,67,236,.16);
}
.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Click anywhere on the video toggles play/pause */
.video-toggle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.vt-icon {
  width: 74px;
  height: 74px;
  padding: 19px;
  color: #fff;
  background: rgba(0,0,0,.4);
  border-radius: 50%;
  transition: opacity .2s ease, transform .15s ease;
}
.video-toggle:hover .vt-icon { transform: scale(1.06); }
/* Show the right icon for the current state */
.video-frame:not(.is-paused) .vt-play { display: none; }
.video-frame.is-paused .vt-pause { display: none; }
/* While playing, the icon only appears on hover; while paused it stays visible */
.video-frame:not(.is-paused) .vt-icon { opacity: 0; }
.video-frame:not(.is-paused):hover .vt-icon { opacity: 1; }
.video-frame.is-paused .vt-icon { opacity: 1; }

/* Text block (title + yellow subtitle) */
.text-section { text-align: center; padding: 6px 0 64px; }
.text-section .section-title { margin-bottom: 10px; }
.anywhere-title br { display: none; } /* one line on desktop */
.section-sub {
  color: var(--yellow);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============ CAROUSEL ============ */
.carousel-section,
.onboarding-section { padding-bottom: 60px; }
.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #fff;
}
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.carousel-track {
  position: relative; /* make it the offset parent so slide.offsetLeft is in scroll coords */
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  flex: 1;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
/* Prevent the browser from grabbing the screenshot image itself while dragging to scroll */
.carousel-track img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: center;
  flex: 0 0 auto;
}
/* Phone screenshots 1284×2778 ≈ 0.462 ratio */
.carousel[data-type="phone"] .slide {
  width: clamp(220px, 26vw, 300px);
}
/* No mandatory snap on the gallery — lets arrows advance smoothly (no jerk) */
.carousel[data-type="phone"] .carousel-track { scroll-snap-type: none; }
/* Push the gallery arrows further from the screenshots (desktop) */
.carousel[data-type="phone"] { gap: 44px; }
.carousel[data-type="phone"] .slide .shot {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid #e5e7eb;
}
.carousel[data-type="phone"] .slide .shot img { width:100%; height:100%; object-fit: cover; }
.placeholder-shot {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  background:
    repeating-linear-gradient(45deg, #eceef1 0 12px, #f4f5f7 12px 24px);
}
/* Onboarding — one slide at a time; arrows hug the image (~40px gap) on desktop */
.carousel[data-type="onboarding"] {
  justify-content: center;
  gap: 40px;
}
.carousel[data-type="onboarding"] .carousel-track {
  flex: 0 0 auto;
  width: min(460px, 100%);
}
.carousel[data-type="onboarding"] .slide {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
}
.onb-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.onb-text {
  padding: 0 28px;
}
.onb-anim {
  position: relative;
  width: 100%;
  aspect-ratio: 884 / 661;
  margin-bottom: 20px;
}
/* Step 2 images are panoramic (884×361) — give them their own ratio so they
   fill the box instead of floating with empty space. */
.onb-anim.wide { aspect-ratio: 884 / 361; }
.onb-anim img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  /* Instant swap (like the app's discrete frames) — a cross-fade made both
     frames semi-transparent mid-transition, showing the background = grey flash. */
}
.onb-anim img.active { opacity: 1; }
.onb-step {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 8px;
}
.onb-title {
  margin: 0 6px 8px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
}
.onb-sub {
  margin: 0 6px 10px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  color: var(--yellow);
  line-height: 1.35;
}
.onb-desc {
  margin: 0 6px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}
.carousel-arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: var(--blue);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.carousel-arrow:hover { background: #fff; transform: scale(1.06); }
.arrow-icon { width: 19px; height: 19px; display: block; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
.dot.active { background: var(--yellow); transform: scale(1.25); }

/* FAQ */
.faq-section { padding: 30px 0 64px; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: background .2s ease;
}
.faq-item[open] { background: rgba(255,255,255,.1); }
.faq-q {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(15px, 2.2vw, 17px);
  color: #fff;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--yellow);
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 0 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 30px 0 46px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  margin-bottom: 16px;
}
.footer-icon { display: inline-flex; align-items: center; color: #fff; }
.footer-icon:hover { color: var(--yellow); }
.footer-icon svg { width: 22px; height: 22px; display: block; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }
.footer-rights { color: rgba(255,255,255,.7); font-size: 13px; }

@media (max-width: 600px) {
  .carousel-arrow { display: none; }
  /* Onboarding: image slightly narrower so arrows sit in the side margins
     (beside the image, not over it); text stays full width */
  .carousel[data-type="onboarding"] { position: relative; display: block; }
  .carousel[data-type="onboarding"] .carousel-track { width: 100%; flex: none; }
  .carousel[data-type="onboarding"] .onb-anim {
    max-width: calc(100% - 64px);
    margin-left: auto;
    margin-right: auto;
  }
  .carousel[data-type="onboarding"] .carousel-arrow {
    display: flex;
    position: absolute;
    top: 0;
    z-index: 5;
    width: 36px;
    height: 36px;
  }
  .carousel[data-type="onboarding"] .carousel-arrow .arrow-icon { width: 16px; height: 16px; }
  /* négatif pour dépasser le padding (40px) de la page → 18px du bord de l'écran */
  .carousel[data-type="onboarding"] .prev { left: -22px; }
  .carousel[data-type="onboarding"] .next { right: -22px; }
  .onb-text { padding: 0 10px; }   /* texte onboarding moins serré sur mobile */
  .anywhere-title br { display: inline; }   /* "Play anywhere." / "Buzz anywhere." sur 2 lignes */
  /* +2px d'interlignage sur les gros titres, mobile uniquement */
  .tagline { line-height: 1.23; }
  .section-title { line-height: 1.28; }
  .onb-title { line-height: 1.3; }
  /* Edge-to-edge video, no rounding */
  .video-section { margin-left: -40px; margin-right: -40px; }
  .video-frame { border-radius: 0; max-width: none; box-shadow: none; }
  .lang-btn .lang-name { display: none; }
  .lang-btn { padding: 8px 10px; }
  .lang-btn .flag { font-size: 20px; }
  .store-badge { min-width: 0; flex: 1 1 auto; justify-content: center; }
  .site-logo { width: 140px; }
  .nav-link { font-size: 13px; padding: 7px 10px; }
  .faq-item { padding: 2px 16px; }
  .faq-a { font-size: 14px; }
}
