@font-face { font-family: 'Bricolage'; font-weight: 200 800; font-display: swap; src: url('fonts/bricolage-latin-wght.woff2') format('woff2-variations'); }
@font-face { font-family: 'Geist'; font-weight: 100 900; font-display: swap; src: url('fonts/geist-latin-wght.woff2') format('woff2-variations'); }

:root {
  --fog: #e8e9ee;
  --paper: #f7f7f9;
  --ink: #0e0f14;
  --slate: #62667a;
  --line: rgba(14, 15, 20, 0.08);
  --blurple: #5865f2;
  --night: #050506;
  --night-lift: #14161b;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --soft: 0 40px 80px -32px rgba(40, 44, 78, 0.28), 0 10px 28px -14px rgba(40, 44, 78, 0.14);
  --display: 'Bricolage', ui-sans-serif, sans-serif;
  --text: 'Geist', ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--fog); }
body {
  margin: 0;
  background:
    radial-gradient(60% 40% at 82% 6%, rgba(88, 101, 242, 0.16), transparent 70%),
    radial-gradient(50% 40% at 4% 52%, rgba(88, 101, 242, 0.07), transparent 70%),
    var(--fog);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blurple); outline-offset: 3px; }

.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- Boutons : la pastille d'icône vit dans le bouton ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: transform 0.7s var(--spring), background-color 0.7s var(--spring);
}
.btn:hover { background: #1c1e27; }
.btn:active { transform: scale(0.98); }
.btn-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 19px;
  transition: transform 0.7s var(--spring);
}
.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.06); }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light:hover { background: #fff; }
.btn-light .btn-ico { background: rgba(14, 15, 20, 0.07); }
.btn-small { padding: 4px 4px 4px 18px; gap: 12px; font-size: 15px; }
.btn-small .btn-ico { width: 32px; height: 32px; font-size: 16px; }

/* ---------- Navigation : une île flottante ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(247, 247, 249, 0.66);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(40, 44, 78, 0.3);
  backdrop-filter: blur(22px) saturate(1.5);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: 16px; font: 700 18px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--slate); transition: color 0.5s var(--spring), background-color 0.5s var(--spring); }
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(14, 15, 20, 0.05); }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(14, 15, 20, 0.06); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.7s var(--spring); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 32px;
  background: rgba(232, 233, 238, 0.78);
  backdrop-filter: blur(40px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--spring), visibility 0s linear 0.6s;
}
.menu-open .overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
.overlay a { font: 600 44px/1.15 var(--display); letter-spacing: -0.03em; opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--spring), transform 0.7s var(--spring); }
.menu-open .overlay a { opacity: 1; transform: none; }
.menu-open .overlay a:nth-child(1) { transition-delay: 0.08s; }
.menu-open .overlay a:nth-child(2) { transition-delay: 0.16s; }
.menu-open .overlay a:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero { min-height: 100dvh; display: grid; align-items: center; padding: 140px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
h1 { font: 700 clamp(44px, 5.5vw, 80px)/0.96 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; transform: translateY(105%); animation: rise-line 1.1s var(--spring) forwards; animation-delay: calc(0.1s + var(--n) * 0.12s); }
@keyframes rise-line { to { transform: none; } }
.lede { max-width: 44ch; margin-top: 28px; font-size: 19px; color: var(--slate); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fade-in { opacity: 0; transform: translateY(24px); animation: fade-up 1s var(--spring) forwards; animation-delay: var(--delay, 0.5s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Fenêtre StreamCat : plateau clair, puis fenêtre sombre */
.stage { position: relative; }
.tray { padding: 10px; border-radius: 40px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px var(--line), var(--soft); }
.app { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 30px; background: var(--night); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14); isolation: isolate; }
.scene { position: absolute; inset: 0; background: linear-gradient(180deg, #12123a 0%, #3b1f6b 42%, #c2457a 68%, #f59b6c 82%); }
.sun { position: absolute; left: 58%; top: 50%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe7b5, #ffb36b 70%); animation: bob 9s var(--spring) infinite alternate; }
@keyframes bob { to { transform: translateY(-14px); } }
.ridge { position: absolute; left: -20%; right: -20%; bottom: 0; will-change: transform; }
.ridge-1 { height: 46%; background: #2a1650; clip-path: polygon(0 100%, 0 50%, 8% 38%, 15% 55%, 24% 24%, 33% 52%, 41% 34%, 52% 58%, 61% 30%, 70% 56%, 80% 28%, 90% 50%, 100% 36%, 100% 100%); animation: drift 38s var(--spring) infinite alternate; }
.ridge-2 { height: 34%; background: #190d38; clip-path: polygon(0 100%, 0 44%, 10% 58%, 20% 30%, 31% 60%, 42% 36%, 55% 62%, 66% 34%, 78% 60%, 88% 38%, 100% 54%, 100% 100%); animation: drift 26s var(--spring) infinite alternate-reverse; }
.ridge-3 { height: 20%; background: #0b0620; clip-path: polygon(0 100%, 0 40%, 14% 62%, 28% 30%, 44% 66%, 60% 34%, 76% 64%, 90% 36%, 100% 58%, 100% 100%); animation: drift 18s var(--spring) infinite alternate; }
@keyframes drift { to { transform: translateX(-9%); } }
.hud-bar { position: absolute; left: 4.5%; top: 7%; width: 24%; height: 3.2%; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.hud-bar::after { content: ''; position: absolute; inset: 0 28% 0 0; border-radius: inherit; background: #fff; }
.hud-map { position: absolute; right: 4.5%; top: 6%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: rgba(5, 5, 6, 0.4); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.hud-map::after { content: ''; position: absolute; left: 48%; top: 38%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #ffe7b5; }
.hud-count { position: absolute; left: 4.5%; bottom: 8%; font: 700 clamp(14px, 2.1vw, 28px)/1 var(--display); color: rgba(255, 255, 255, 0.92); letter-spacing: -0.02em; }

/* Barre flottante de l'appli : elle apparaît puis s'efface, comme dans l'appli */
.mini-dock { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; padding: 5px; border-radius: 999px; background: rgba(22, 24, 28, 0.55); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px); animation: dock-cycle 9s var(--spring) infinite; }
.mini-dock div { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: #f3f4f6; font-size: clamp(13px, 1.7vw, 20px); }
.mini-dock .track { width: clamp(46px, 8vw, 100px); height: 3px; border-radius: 2px; background: linear-gradient(90deg, #f3f4f6 78%, rgba(255, 255, 255, 0.2) 78%); }
.mini-dock .bar { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.18); }
@keyframes dock-cycle { 0%, 38% { opacity: 1; transform: none; } 48%, 90% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }

.live-tag { position: absolute; z-index: 1; left: 9%; top: -20px; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--soft); font-size: 14px; font-weight: 500; }
.live-tag i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(88, 101, 242, 0.12); color: var(--blurple); font-size: 15px; }
.live-tag b { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blurple); }
.live-tag b::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--blurple); animation: ping 2.4s var(--spring) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3.2); opacity: 0; } }
.stage-rise { opacity: 0; transform: translateY(60px) scale(0.98); filter: blur(10px); animation: stage-in 1.4s var(--spring) 0.45s forwards; }
@keyframes stage-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 64px; }
h2 { font: 700 clamp(34px, 4.6vw, 64px)/1 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.section-head p { color: var(--slate); max-width: 40ch; text-wrap: pretty; }

/* Double cadre pour chaque carte */
.shell { padding: 8px; border-radius: 36px; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 1px var(--line); }
.core { height: 100%; padding: 32px; border-radius: 28px; background: var(--paper); box-shadow: inset 0 1px 1px #fff, var(--soft); }
.shell-dark { background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.shell-ink { background: rgba(14, 15, 20, 0.07); box-shadow: 0 0 0 1px var(--line); }
.shell-ink .core-dark { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), var(--soft); }
.core-dark { background: linear-gradient(180deg, #181a21, #0d0e12); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1); color: #f3f4f6; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card-a { grid-column: span 7; }
.card-b { grid-column: span 5; }
.card-c { grid-column: span 5; }
.card-d { grid-column: span 7; }
.card .core { display: flex; flex-direction: column; gap: 28px; justify-content: space-between; min-height: 360px; }
h3 { font: 650 26px/1.15 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.card p { margin-top: 10px; max-width: 42ch; color: var(--slate); text-wrap: pretty; }
.core-dark p { color: rgba(243, 244, 246, 0.62); }

/* Réglages miniatures (reprennent l'interface réelle) */
.mini-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #181a21, #0d0e12); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1); color: #f3f4f6; font-size: 14px; }
.mini-sheet small { display: block; margin-bottom: 8px; font-size: 12.5px; color: rgba(243, 244, 246, 0.55); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); text-align: center; }
.seg span { padding: 8px 0; border-radius: 10px; color: rgba(243, 244, 246, 0.5); }
.seg .on { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14); }

/* Niveau sonore */
.meter { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.meter span { flex: 1; height: 100%; border-radius: 6px; background: linear-gradient(180deg, #8c96ff, var(--blurple)); transform-origin: bottom; animation: level 1.8s var(--spring) infinite alternate; animation-delay: calc(var(--k) * -0.23s); }
@keyframes level { 0% { transform: scaleY(0.14); } 100% { transform: scaleY(var(--h, 0.8)); } }

/* Fenêtre sans bordure */
.mini-win { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, #1c1740, #5a2a79 60%, #e0745d); box-shadow: 0 0 0 1px var(--line), var(--soft); }
.mini-win .mini-dock { bottom: 9%; }
.mini-win .mini-dock div { font-size: 14px; padding: 6px 12px; }
.mini-win .mini-dock .track { width: 40px; }

/* Reprise automatique */
.flow { display: grid; gap: 10px; }
.flow div { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(14, 15, 20, 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--slate); animation: step 7.5s var(--spring) infinite; animation-delay: calc(var(--s) * 2.5s); }
.flow div::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.4; }
@keyframes step { 0%, 4% { background: rgba(14, 15, 20, 0.04); color: var(--slate); } 10%, 30% { background: var(--ink); color: #fff; } 36%, 100% { background: rgba(14, 15, 20, 0.04); color: var(--slate); } }

/* ---------- Mode d'emploi ---------- */
.steps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.steps-grid h2 { position: sticky; top: 120px; }
ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; counter-reset: step; }
ol li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 28px 28px 28px 24px; border-radius: 28px; background: var(--paper); box-shadow: inset 0 1px 1px #fff, var(--soft); }
ol li::before { content: counter(step); font: 300 64px/0.9 var(--display); letter-spacing: -0.04em; color: var(--blurple); }
ol h3 { font-size: 22px; }
ol p { margin-top: 6px; color: var(--slate); text-wrap: pretty; }

/* ---------- Téléchargement ---------- */
.download { padding-top: 40px; }
.download-panel { padding: 72px 56px; border-radius: 48px; background: radial-gradient(60% 80% at 80% 0%, rgba(88, 101, 242, 0.35), transparent 70%), var(--night); color: #f3f4f6; box-shadow: var(--soft); }
.download-panel h2 { max-width: 14ch; }
.download-panel .lede { color: rgba(243, 244, 246, 0.62); }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.platform .core { display: flex; flex-direction: column; gap: 28px; justify-content: space-between; min-height: 280px; padding: 32px; }
.platform .os { display: flex; align-items: center; gap: 14px; }
.platform .os .i { font-size: 34px; }
.platform .os h3 { font-size: 28px; }
.platform p { margin-top: 4px; color: rgba(243, 244, 246, 0.6); }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.platform .btn { background: #fff; color: var(--ink); }
.platform .btn:hover { background: #fff; }
.platform .btn-ico { background: rgba(14, 15, 20, 0.08); }

footer { padding: 56px 0 64px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--slate); font-size: 15px; }
footer .brand { margin: 0; color: var(--ink); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(56px); filter: blur(10px); transition: opacity 1s var(--spring), transform 1s var(--spring), filter 1s var(--spring); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 64px; }
  .hero .wrap, .section-head, .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { gap: 20px; margin-bottom: 40px; }
  .steps-grid h2 { position: static; }
  .card-a, .card-b, .card-c, .card-d { grid-column: 1 / -1; }
  .live-tag { left: 8px; top: -14px; }
  .platforms { grid-template-columns: 1fr; }
  .download-panel { padding: 48px 24px; border-radius: 36px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .burger { display: block; }
  .brand { margin-right: 24px; }
  .card .core, .platform .core { padding: 24px; min-height: 0; }
  ol li { grid-template-columns: 52px 1fr; padding: 22px 20px; }
  ol li::before { font-size: 46px; }
  .cta-row .btn { width: 100%; justify-content: space-between; }
}
@media (min-width: 768px) { .overlay { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; animation-delay: 0s !important; }
  .line > span, .fade-in, .stage-rise { transform: none; opacity: 1; filter: none; }
}
