:root {
  --bg: #0b0b0d;
  --surface: #17171a;
  --surface-2: #202024;
  --border: #2a2a2f;
  --text: #f2f2f4;
  --muted: #9a9aa2;
  --accent: #d9a0ea;
  --accent-ink: #1a1020;
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.brand-pill { width: 30px; height: 12px; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px #3a3a40; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.lang {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 99px; padding: 4px 12px; cursor: pointer;
}
.lang:hover { border-color: var(--muted); }

/* Hero */
.hero { max-width: 820px; margin: 0 auto; padding: 72px 16px 40px; text-align: center; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 40px 0 18px; text-wrap: balance; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 auto; max-width: 640px; text-wrap: pretty; }

/* Capsule animée */
.island {
  position: relative; margin: 0 auto;
  width: 190px; height: 40px; border-radius: 22px;
  background: #000; box-shadow: 0 0 0 1px #2c2c31, 0 20px 60px -20px rgba(217,160,234,.35);
  overflow: hidden;
  transition: width .5s cubic-bezier(.3,1.4,.5,1), height .5s cubic-bezier(.3,1.4,.5,1), border-radius .5s;
  cursor: default;
}
.island-compact {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; transition: opacity .2s;
}
.island-time { font-size: 14px; font-weight: 600; }
.eq { display: flex; gap: 3px; align-items: center; height: 16px; }
.eq i { width: 3px; border-radius: 2px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }
.island-open {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  opacity: 0; transition: opacity .2s; text-align: left;
}
.cover {
  flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 28px; color: var(--muted);
}
.track { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.track strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { margin-top: 10px; height: 4px; border-radius: 2px; background: #333; }
.bar b { display: block; width: 35%; height: 100%; border-radius: 2px; background: var(--text); }
.island:hover, .island.open { width: min(380px, 100%); height: 104px; border-radius: 32px; }
.island:hover .island-compact, .island.open .island-compact { opacity: 0; }
.island:hover .island-open, .island.open .island-open { opacity: 1; transition-delay: .15s; }

/* Boutons */
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 99px; font-weight: 600; text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.gh { fill: currentColor; stroke: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e6b9f2; }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Démo */
.demo { max-width: 960px; margin: 24px auto 0; padding: 0 16px; }
.demo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 80px 16px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; margin: 0 0 28px; text-align: center; text-wrap: balance; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 14px; border: 1px solid var(--border); background: #000; }
.shots figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

.steps { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 18px 20px 18px 64px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted);
}
.steps li strong { color: var(--text); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.note { max-width: 720px; margin: 8px auto 0; font-size: 14px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }

.footer { max-width: 1080px; margin: 96px auto 0; padding: 28px 16px 40px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.muted { color: var(--muted); }

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links a[href="#features"] { display: none; }
  .hero { padding-top: 48px; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq i { animation: none; height: 10px; }
  .island, .island * { transition: none !important; }
}
