/* ============================================================
   Bumpool — Landing styles
   Palette pastel bébé : bleu primaire + rose accent (calée sur l'app).
   ============================================================ */

:root {
  --blue: #2f6bed;
  --blue-strong: #1e52c8;
  --cyan: #4cc0e8;
  --pink: #ec6fa6;
  --pink-soft: #fce6f0;
  --blue-soft: #eaf1fc;

  --bg: #f4f7fc;
  --bg-alt: #eaf1fc;
  --surface: #ffffff;
  --text: #16233b;
  --muted: #647089;
  --border: #dee7f3;
  --gold: #f2b84b;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 2px 8px rgba(22, 35, 59, 0.06);
  --shadow: 0 12px 30px rgba(22, 35, 59, 0.10);
  --shadow-lg: 0 24px 60px rgba(47, 107, 237, 0.18);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1726;
    --bg-alt: #142138;
    --surface: #172234;
    --text: #eaf1fb;
    --muted: #94a3bc;
    --border: #26344d;
    --blue-soft: #16223b;
    --pink-soft: #241a2a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--pill);
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  color: var(--blue);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.brand-emoji { font-size: 22px; }
.brand-name { letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  margin-right: auto;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: var(--blue); }
.lang-switch .chevron { font-size: 11px; color: var(--muted); transition: transform 0.2s; }
.lang-switch[open] .chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 168px;
  z-index: 60;
  display: grid;
  gap: 2px;
}
.lang-switch-up .lang-menu { top: auto; bottom: calc(100% + 8px); }
.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.lang-menu a:hover { background: var(--blue-soft); }
.lang-menu a[aria-current="true"] { color: var(--blue); background: var(--blue-soft); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 15% -10%, var(--pink-soft), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, var(--blue-soft), transparent 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--pill);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.stores { display: flex; flex-direction: column; gap: 8px; }
.stores-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.store-badges { display: flex; gap: 10px; }
.store-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.store-badge.is-soon { position: relative; }

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  z-index: 0;
}
.blob-1 { width: 260px; height: 260px; background: var(--pink); top: 4%; right: 8%; opacity: 0.35; }
.blob-2 { width: 220px; height: 220px; background: var(--cyan); bottom: 6%; left: 6%; opacity: 0.3; }

.phone {
  position: relative;
  z-index: 2;
  width: 250px;
  height: 380px;
  background: var(--surface);
  border-radius: 38px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  animation: float 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: var(--bg-alt);
  border-radius: var(--pill);
}
.phone-screen {
  height: 100%;
  background: linear-gradient(180deg, var(--blue-soft), var(--surface));
  border-radius: 26px;
  padding: 34px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-weight: 800;
}
.mini-emoji { font-size: 18px; }
.mini-title { font-size: 15px; }

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 46px; }
.pod .medal { font-size: 20px; }
.pod .bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
}
.pod-1 .bar { height: 84px; background: linear-gradient(180deg, var(--gold), #e0952f); }
.pod-2 .bar { height: 60px; }
.pod-3 .bar { height: 44px; background: linear-gradient(180deg, var(--pink), #c94f88); }

.mini-rows { display: flex; flex-direction: column; gap: 8px; }
.mini-row { height: 12px; border-radius: 6px; background: var(--bg-alt); }
.mini-row.short { width: 62%; }

.float-qr {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 12%;
  width: 96px;
  height: 96px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite reverse;
}
.qr-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
}
.qr-grid i { background: var(--text); border-radius: 2px; }
.qr-grid i:nth-child(3n) { background: var(--blue); }
.qr-grid i:nth-child(4n) { background: transparent; }
.qr-grid i:nth-child(7n) { background: var(--pink); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -16px;
  left: 26px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.step-icon { font-size: 34px; margin: 10px 0 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); }

/* ---------- Predictions chips ---------- */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.chip span { font-size: 18px; }
.chip-accent { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(60px, 10vw, 110px) 0;
  background:
    radial-gradient(700px 320px at 50% 0%, var(--pink-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.cta-band h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 19px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--surface); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-tagline { color: var(--muted); margin-top: 10px; max-width: 34ch; }
.footer-col { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .steps .step:nth-child(2) { animation-delay: 0.08s; }
  .steps .step:nth-child(3) { animation-delay: 0.16s; }
  .feature-grid .feature-card:nth-child(2) { animation-delay: 0.05s; }
  .feature-grid .feature-card:nth-child(3) { animation-delay: 0.1s; }
  .feature-grid .feature-card:nth-child(4) { animation-delay: 0.15s; }
  .feature-grid .feature-card:nth-child(5) { animation-delay: 0.2s; }
  .feature-grid .feature-card:nth-child(6) { animation-delay: 0.25s; }
  .feature-card { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 340px; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px clamp(20px, 5vw, 40px) 18px;
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 10px 0; }
  .header-actions .btn-primary { display: none; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Page légale (politique de confidentialité) ---------- */
.legal { padding-block: clamp(16px, 4vw, 32px); }
.legal-back { margin-bottom: 20px; }
.legal-back a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}
.legal-back a:hover { text-decoration: underline; }
.legal-head { margin-bottom: 28px; }
.legal-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}
.legal-intro {
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}
.legal p {
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 68ch;
}
.legal p:last-child { margin-bottom: 0; }

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-link:hover { color: var(--blue); }
