/* Volley 360 · page de présentation. Mobile d'abord ; ordinateur à partir de 1024 px. Mêmes couleurs que l'app. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --accent: #1f4fd8;
  --accent-strong: #163ba6;
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #e5e7eb;
  --soft: #f4f6f9;
  --frame: #1b2128;
  --radius: 20px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --bar: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 var(--sans); overflow-x: hidden; padding-bottom: var(--bar); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Boutons : au moins 48 px de haut */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--white { background: #fff; color: #0b1f4d; }
.btn--ghost { background: none; color: var(--accent); }
.btn--large { min-height: 56px; font-size: 1.125rem; }
.btn--small { min-height: 48px; padding: 0 20px; }
.btn:focus-visible, a:focus-visible, .carousel:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 1rem; text-align: center; }

/* Barre du haut : le logo seul sur mobile */
.top { height: 60px; display: flex; align-items: center; border-bottom: 1px solid #f0f1f3; background: #fff; }
.top__inner { display: flex; align-items: center; justify-content: space-between; }
.top__logo img { height: 28px; width: auto; }
.top__cta { display: none; }

/* Cadre de téléphone, coupé en bas */
.phone { position: relative; border: 6px solid var(--frame); border-bottom: 0; border-radius: 34px 34px 0 0; overflow: hidden; background: #fff; }
.phone img { width: 100%; height: auto; }

/* En-tête : exactement la hauteur visible (barre du haut comprise) */
.hero { min-height: calc(100svh - 60px); display: flex; }
.hero__inner { display: flex; flex-direction: column; flex: 1; padding-top: 16px; padding-bottom: 24px; }
.hero__visual { flex: 1 1 0; min-height: 120px; display: flex; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.phone--hero { width: min(300px, 78%); align-self: flex-start; }
.hero__text { padding-top: 20px; }
.hero h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); }
.hero__sub { margin: 12px 0 20px; color: var(--muted); font-size: 1.0625rem; }
.hero__cta .btn { width: 100%; }
.hero__qr { display: none; }

/* Ce que tu peux faire */
.features { background: var(--soft); padding: 40px 0 28px; }
.features h2, .steps h2 { font-size: 1.875rem; margin-bottom: 20px; }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.cards { list-style: none; margin: 0; padding: 0 20px; display: flex; gap: 16px; width: max-content; }
.card { scroll-snap-align: start; width: 300px; height: max(540px, 70svh); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__visual { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; padding-top: 22px; overflow: hidden; border-bottom: 1px solid var(--line); }
.card__visual .phone { width: 74%; align-self: flex-start; }
.card__body { padding: 20px 20px 24px; }
.card h3 { font-size: 1.375rem; }
.card__body > p { margin: 8px 0 12px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; list-style: disc; }
.card--cta { display: none; }
.dots { display: flex; justify-content: center; gap: 8px; padding-top: 20px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: #cfd5df; transition: width .2s, background .2s; }
.dots span.on { width: 28px; background: var(--accent); }

/* Comment ça marche */
.steps { padding: 40px 0 44px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps__list li { display: flex; gap: 14px; align-items: flex-start; }
.steps__n { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 1.125rem/40px var(--display); text-align: center; }
.steps h3 { display: none; font-size: 1.125rem; }
.steps p { margin: 7px 0 0; font-size: 1.0625rem; }
.d-only { display: none; }

/* Pied de page bleu */
.foot { background: var(--accent); color: #fff; padding: 32px 0 28px; text-align: center; }
.foot__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.foot__cta { width: 100%; }
.foot p { margin: 0; }
.foot a:not(.btn) { color: #fff; font-weight: 600; white-space: nowrap; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__made { opacity: .92; }
.foot__osm { opacity: .85; }

/* Barre fixe du bas (mobile) : visible quand le bouton de l'en-tête est sorti de l'écran */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(15 23 42 / 8%); transform: translateY(110%); transition: transform .25s ease; }
.stickybar.on { transform: none; }
.stickybar__text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.stickybar__text strong { font-family: var(--display); font-size: 1.0625rem; }
.stickybar__text span { color: var(--muted); font-size: 0.9375rem; }
.stickybar .btn { flex: 1; }

/* Navigateur intégré d'iPhone */
.sheet { border: 0; border-radius: 20px; padding: 24px; max-width: 360px; width: calc(100% - 32px); }
.sheet::backdrop { background: rgb(15 23 42 / 45%); }
.sheet h2 { font-size: 1.375rem; }
.sheet .btn { width: 100%; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Ordinateur ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .wrap { padding: 0 48px; }
  .top { height: 72px; }
  .top__cta { display: inline-flex; }
  .stickybar { display: none; }
  .hero { min-height: 0; }
  .hero__inner { flex-direction: row-reverse; align-items: stretch; gap: 48px; padding-top: 48px; padding-bottom: 0; }
  .hero__visual { flex: 0 0 340px; border-bottom: 0; max-height: 560px; }
  .phone--hero { width: 300px; }
  .hero__text { flex: 1; align-self: center; padding: 0 0 48px; }
  .hero h1 { font-size: 4rem; max-width: 9.5em; }
  .hero__sub { font-size: 1.25rem; max-width: 26em; margin: 20px 0 32px; }
  .hero__actions { display: flex; align-items: center; gap: 28px; }
  .hero__cta .btn { width: auto; padding: 0 32px; }
  .hero__cta .hint { text-align: left; font-size: 0.9375rem; }
  .hero__qr { display: flex; align-items: center; gap: 16px; padding-left: 28px; border-left: 1px solid var(--line); }
  .hero__qr p { margin: 0; max-width: 12em; color: var(--muted); font-size: 1rem; }
  .qr { width: 96px; height: 96px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .qr svg { width: 100%; height: 100%; display: block; }
  .features { padding: 72px 0 80px; }
  .features h2, .steps h2 { font-size: 2.5rem; margin-bottom: 32px; }
  .carousel { overflow: visible; max-width: 1200px; margin: 0 auto; padding: 0 48px; }
  .cards { width: auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card { width: auto; height: auto; }
  .card__visual { flex: none; height: 230px; }
  .card__visual .phone { width: 62%; }
  .card--cta { display: flex; background: var(--accent); color: #fff; border-color: var(--accent); justify-content: flex-end; }
  .card--cta .card__body > p { color: #e8eeff; }
  .card--cta h3 { font-size: 1.75rem; }
  .card--cta .btn { margin-top: 4px; }
  .dots { display: none; }
  .steps { padding: 80px 0; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps__list li { flex-direction: column; gap: 16px; }
  .steps h3 { display: block; }
  .m-only { display: none; }
  .d-only { display: inline; }
  .foot { padding: 28px 0; text-align: left; }
  .foot__inner { flex-direction: row; justify-content: space-between; gap: 24px; }
  .foot__cta { display: none; }
  .foot__made { order: -1; }
  .foot__inner { flex-wrap: wrap; }
  .foot__osm { flex-basis: 100%; }
}
