:root {
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --text: #16161F;
  --muted: #5E5E73;
  --line: rgba(20, 20, 40, 0.09);
  --accent: #4F46E5;
  --accent-text: #FFFFFF;
  --glow: rgba(79, 70, 229, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E14;
    --surface: #17171F;
    --text: #F2F2F7;
    --muted: #A1A1B5;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #8B93FF;
    --accent-text: #0E0E14;
    --glow: rgba(139, 147, 255, 0.22);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.lang {
  font: inherit; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.lang:active { transform: scale(0.96); }

main { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.hero { text-align: center; padding: 64px 0 56px; }
.icon { width: 168px; height: 168px; }
h1 {
  font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 18px 0 10px; font-weight: 700;
}
.lead {
  font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--muted); max-width: 30ch; margin: 0 auto 30px;
}
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--surface);
  transition: transform 100ms ease-out;
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.97); }
.button.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.1; text-align: center; margin: 0 0 28px; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 8px; }

/* Captures : défilement continu et sans fin (piste doublée, menée par main.js),
   qu'on peut aussi faire défiler à la main ; un clic agrandit une image. */
.gallery { margin: 0 calc(50% - 50vw); padding: 8px 0 24px; }
.marquee {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.track { display: flex; align-items: center; width: max-content; padding: 24px 0; }
.shot { margin: 0 32px 0 0; flex: none; }
.shot img { display: block; width: auto; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.shot.window img { height: 500px; }
.shot.small img { height: 340px; filter: drop-shadow(0 16px 30px rgba(20, 20, 50, 0.22)); }

/* Image agrandie : elle part de sa place dans le carrousel et y revient. */
.lightbox {
  position: fixed; inset: 0; z-index: 50; cursor: zoom-out;
  background: rgba(8, 8, 14, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.lightbox img { position: fixed; transform-origin: 0 0; cursor: zoom-out; will-change: transform; }

.how { padding: 40px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 20px; text-align: center;
}
.step p { margin: 14px 0 0; color: var(--muted); }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; padding: 0 12px;
  font: 600 1.6rem/1 system-ui, sans-serif; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 12px;
}
.wave { display: inline-flex; gap: 5px; align-items: center; height: 52px; }
.wave i { display: block; width: 6px; border-radius: 3px; background: var(--accent); animation: talk 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 18px; animation-delay: -0.2s; }
.wave i:nth-child(2) { height: 34px; animation-delay: -0.5s; }
.wave i:nth-child(3) { height: 46px; animation-delay: -0.1s; }
.wave i:nth-child(4) { height: 30px; animation-delay: -0.7s; }
.wave i:nth-child(5) { height: 16px; animation-delay: -0.3s; }
@keyframes talk { 50% { transform: scaleY(0.45); } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 0 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.card p { margin: 0; color: var(--muted); }

.install { max-width: 640px; margin: 0 auto; padding: 32px 0 64px; }
.install ol { margin: 0; padding-left: 1.3em; }
.install li { margin: 0 0 12px; padding-left: 4px; }
.install .fine { margin-top: 20px; }

footer { text-align: center; color: var(--muted); padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 0.9rem; }

@media (max-width: 760px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .shot.window img { height: 300px; }
  .shot.small img { height: 210px; }
  .shot { margin-right: 18px; }
  .hero { padding: 40px 0 36px; }
  .icon { width: 128px; height: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .button, .lang { transition: none; }
}
