/* ===== Filaments Manager — Landing page ===== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f1c3d;
  --ink-soft: #4b5565;
  --muted: #8a92a3;
  --primary: #3b6ef5;
  --primary-dark: #2b56c9;
  --accent: #5fbf6a;
  --line: #e3e6ee;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(15, 28, 61, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 28, 61, 0.25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-sm { font-size: 14px; padding: 9px 18px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(59, 110, 245, 0.55);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

.btn-download {
  background: linear-gradient(135deg, #3b6ef5, #5a3cf5);
  color: #fff;
  font-size: 18px;
  padding: 18px 40px;
  box-shadow: 0 18px 40px -12px rgba(59, 110, 245, 0.7);
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -12px rgba(59, 110, 245, 0.8); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand em { font-style: normal; color: var(--primary); }
.main-nav { margin-left: auto; display: flex; gap: 26px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.15s; }
.main-nav a:hover { color: var(--primary); }
.header-inner .btn { margin-left: 6px; }

/* ===== Héro ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(59, 110, 245, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(95, 191, 106, 0.12), transparent 60%),
    linear-gradient(180deg, #eef2fb 0%, var(--bg) 100%);
  padding: 84px 0 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.accent {
  background: linear-gradient(90deg, #3b6ef5, #7a4df0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; color: var(--muted); font-size: 14px;
}
.hero-meta strong { color: var(--ink); }
.meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.5; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59, 110, 245, 0.1);
  color: var(--primary);
  font-weight: 600; font-size: 13px;
  padding: 7px 14px; border-radius: 999px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.badge-light .badge-dot { background: var(--accent); }

/* Aperçu fenêtre */
.hero-visual { position: relative; align-self: stretch; }
.hero-glow {
  position: absolute; inset: -6%;
  background: radial-gradient(400px 300px at 50% 50%, rgba(59, 110, 245, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.hero-window {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 28, 61, 0.08);
  height: calc(100% + 56px);
  margin-top: -28px;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-window:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hero-window img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 110px; display: block; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, #fff, #f5f7fb); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }

/* Fonctionnalités */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -12px rgba(15, 28, 61, 0.16); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--i) 12%, white);
  color: var(--i);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ===== Carrousel ===== */
.carousel { position: relative; max-width: 980px; margin: 0 auto; }
.carousel-track {
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 28, 61, 0.08);
  background: #fff;
}
.slide { flex: 0 0 100%; min-width: 100%; }
.slide img { width: 100%; height: auto; }
.slide figcaption {
  padding: 16px 22px;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 34px);
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  z-index: 5;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--primary); color: #fff; }
.carousel-btn.prev { left: -68px; }
.carousel-btn.next { right: -68px; }
.carousel-btn:active { transform: translateY(-50%) scale(0.94); }

.carousel-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 22px;
}
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 999px;
  border: none; background: #d3d8e4; cursor: pointer;
  padding: 0; transition: all 0.25s ease;
}
.carousel-dots button.active { width: 30px; background: var(--primary); }

/* ===== Téléchargement ===== */
.download-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(140deg, #16224d 0%, #243c8c 55%, #3b6ef5 130%);
  border-radius: 28px;
  padding: 72px 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.download-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(500px 300px at 20% 0%, rgba(95, 191, 106, 0.25), transparent 60%),
    radial-gradient(500px 320px at 90% 100%, rgba(122, 77, 240, 0.4), transparent 60%);
  filter: blur(20px);
}
.download-card > *:not(.download-glow) { position: relative; z-index: 1; }
.download-icon img {
  width: 88px; height: 88px; border-radius: 22px;
  margin: 0 auto 22px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.download-card h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 18px 0 12px; }
.download-sub { max-width: 560px; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.dl-meta { display: block; margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.dl-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 54px;
  text-align: left;
}
.step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px 24px;
  backdrop-filter: blur(6px);
}
.step-body { flex: 1; min-width: 0; }
.step-num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700; font-size: 15px;
}
.step h4 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.step .step-alt { font-size: 12px; margin-top: 8px; color: rgba(255, 255, 255, 0.6); }
.step .cmd {
  display: block;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #9fe3b0;
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 26px 24px; font-size: 14px; color: var(--muted);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer-icon { width: 26px; height: 26px; border-radius: 7px; }
.footer-inner p { flex: 1; }
.footer-top { font-weight: 500; color: var(--ink-soft); }
.footer-top:hover { color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}

@media (max-width: 1024px) {
  .dl-steps { gap: 12px; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .hero { padding: 56px 0 90px; }
  .features-grid { grid-template-columns: 1fr; }
  .dl-steps { gap: 10px; }
  .step { align-items: flex-start; flex-wrap: wrap; padding: 16px 14px; }
  .step .cmd { flex-basis: 100%; white-space: normal; word-break: break-all; font-size: 10.5px; }
  .hero-window { transform: none; height: auto; }
  .hero-window img { height: auto; object-fit: contain; }
  .download-card { padding: 52px 24px; }
  .footer-inner { justify-content: center; text-align: center; }
}
