/* StreamFlow — site vitrine (aucune ressource externe : pas de police Google, pas de traceur) */
:root {
  --bg: #0d0b1a;
  --bg-2: #141226;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f0fb;
  --muted: #a7a2c3;
  --accent: #6b5cf5;
  --accent-2: #ad52ed;
  --pink: #e85ad8;
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--pink) 100%);
  --radius: 22px;
  --wrap: 1180px;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--text-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- Fond animé ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 620px; height: 620px; background: var(--accent); top: -180px; left: -120px; }
.aurora span:nth-child(2) { width: 540px; height: 540px; background: var(--accent-2); top: 30%; right: -200px; animation-delay: -7s; }
.aurora span:nth-child(3) { width: 460px; height: 460px; background: var(--pink); bottom: -220px; left: 25%; opacity: .3; animation-delay: -14s; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-60px, 120px) scale(.95); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13, 11, 26, .72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px var(--display); letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 8px 24px rgba(107, 92, 245, .45);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(107, 92, 245, .45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(173, 82, 237, .55); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.nav .btn { padding: 10px 18px; font-size: 14px; color: #fff; }

/* ---------- Typographie ---------- */
.display {
  font: italic 900 clamp(42px, 6.2vw, 84px)/.95 var(--display);
  letter-spacing: -.035em; text-transform: uppercase; margin: 0;
}
.h2 { font: italic 900 clamp(34px, 4.6vw, 58px)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Héros ---------- */
.hero { padding: 150px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { margin: 26px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; height: 600px; perspective: 1400px; }
.device {
  position: absolute; border-radius: 46px; padding: 12px; background: #1b1830;
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(173, 82, 237, .25), 0 0 60px rgba(107, 92, 245, .35);
  transition: transform .2s ease-out;
}
.device img { border-radius: 36px; }
.device.main { width: 255px; left: 50%; top: 10px; transform: translateX(-30%) rotate(4deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.device.back { width: 215px; left: 0; top: 90px; transform: rotate(-9deg); opacity: .9; animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 50% { translate: 0 -18px; } }
.chip {
  position: absolute; z-index: 3; padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 15px;
  background: rgba(30, 24, 60, .75); backdrop-filter: blur(14px); border: 1px solid rgba(173, 82, 237, .45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 24px rgba(107, 92, 245, .3);
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-size: 22px; font-style: italic; }
.chip.c1 { right: 0; top: 70px; animation-delay: -1s; }
.chip.c2 { left: 0; bottom: 110px; animation-delay: -2.5s; }
.chip.c3 { right: 6%; bottom: 40px; animation-delay: -4s; }

/* ---------- Bandeau défilant ---------- */
.marquee { position: relative; z-index: 3; backdrop-filter: blur(10px); border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; }
.marquee span { font: italic 800 26px var(--display); color: rgba(255, 255, 255, .35); white-space: nowrap; text-transform: uppercase; }
.marquee span.on { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 120px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .lead { margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(173, 82, 237, .22), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(173, 82, 237, .45); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(107, 92, 245, .3), rgba(232, 90, 216, .25)); border: 1px solid rgba(173, 82, 237, .4);
}
.card h3 { margin: 0 0 8px; font: 750 20px var(--display); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Vitrine alternée */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 120px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.flip .showcase-media { order: 2; }
.showcase-media { position: relative; display: flex; justify-content: center; }
.showcase-media::after {
  content: ""; position: absolute; inset: 15% 10%; z-index: -1; filter: blur(70px); opacity: .6; background: var(--grad); border-radius: 50%;
}
.device.inline { position: relative; width: 290px; transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
.device.inline.tilt { transform: rotate(4deg); animation-delay: -3s; }
.showcase ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.showcase li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.showcase li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--grad) center / 100%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4.1-4.1 1.4-1.4 2.7 2.7 6-6 1.4 1.4-7.4 7.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4.1-4.1 1.4-1.4 2.7 2.7 6-6 1.4 1.4-7.4 7.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.showcase li strong { color: var(--text); }

/* Plateformes */
.platforms { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.platform { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.platforms { align-items: center; }
.platform img { width: 100%; transition: transform .6s; }
.platform-label { margin: 0; padding: 18px 24px; font-weight: 650; color: var(--muted); }
.platform:hover img { transform: scale(1.04); }

/* Bloc « Vous apportez le contenu » */
.byo {
  border-radius: 32px; padding: 60px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(107, 92, 245, .2), rgba(232, 90, 216, .12)); border: 1px solid rgba(173, 82, 237, .35);
}
.byo .lead { margin: 0 auto; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan h3 { margin: 0; font: 750 18px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.plan .price { font: italic 900 46px/1.1 var(--display); margin: 14px 0 4px; }
.plan .price small { font: 600 16px var(--text-font); color: var(--muted); font-style: normal; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.plan ul li::before { content: "✓  "; color: var(--accent-2); font-weight: 800; }
.plan.featured { background: linear-gradient(160deg, rgba(107, 92, 245, .32), rgba(173, 82, 237, .18)); border-color: rgba(173, 82, 237, .6); position: relative; }
.plan .tag {
  position: absolute; top: -13px; right: 24px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--grad); text-transform: uppercase; letter-spacing: .06em;
}
.fineprint { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }

/* Appel final */
.cta-final { text-align: center; padding: 140px 0; }
.cta-final .hero-ctas { justify-content: center; margin-top: 34px; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h4 { color: var(--text); margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* ---------- Pages juridiques / assistance ---------- */
.page { padding: 140px 0 80px; }
.page-head { margin-bottom: 50px; }
.page-head .lead { margin-top: 14px; }
.legal { max-width: 820px; }
.legal h2 { font: 800 24px var(--display); margin: 48px 0 12px; letter-spacing: -.01em; }
.legal h3 { font: 700 18px var(--display); margin: 28px 0 8px; }
.legal p, .legal li { color: #cfcbe6; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: #c9b8ff; }
.callout {
  padding: 24px 28px; border-radius: 18px; margin: 10px 0 30px;
  background: linear-gradient(135deg, rgba(107, 92, 245, .18), rgba(173, 82, 237, .1)); border: 1px solid rgba(173, 82, 237, .35);
}
.callout p { margin: 0; }
.updated { color: var(--muted); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text); font-weight: 700; }
.table td { color: #cfcbe6; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(173, 82, 237, .45); background: rgba(107, 92, 245, .08); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--accent-2);
  transition: rotate .3s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 34px 38px; border-radius: 24px; margin-bottom: 50px;
  background: linear-gradient(135deg, rgba(107, 92, 245, .28), rgba(232, 90, 216, .14)); border: 1px solid rgba(173, 82, 237, .45);
}
.contact-card h2 { margin: 0 0 6px; font: 800 26px var(--display); }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .hero-grid, .showcase, .platforms { grid-template-columns: 1fr; }
  .showcase.flip .showcase-media { order: 0; }
  .hero-visual { height: 560px; }
  .features, .pricing { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 470px; }
  .device.main { width: 230px; }
  .device.back { width: 190px; }
  .chip { font-size: 13px; padding: 9px 13px; }
  .chip b { font-size: 18px; }
  .features, .pricing, .foot { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .byo, .contact-card { padding: 34px 24px; }
  .showcase { margin-bottom: 80px; }
}
