/* FastClip — landing : nav, hero, téléphone, notifications, marquee */
/* ───────── NAV ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: var(--s2) var(--s3) 0; }
@media (min-width: 640px) { .nav { padding: var(--s4) var(--s4) 0; } }
.nav-bar {
  position: relative; margin: 0 auto; width: min(100%, 1200px); height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 0 var(--s2) 0 var(--s4); border-radius: 18px;
  transition: background-color .3s;
}
@media (min-width: 640px) { .nav-bar { height: 64px; padding: 0 var(--s3) 0 var(--s5); border-radius: 20px; } }
.nav-links { display: none; gap: var(--s1); }
.nav-links a { white-space: nowrap; padding: var(--s2) 14px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
@media (min-width: 1180px) { .nav-links { display: flex; position: absolute; left: 50%; transform: translateX(-50%); } }
.nav-right { display: flex; align-items: center; gap: var(--s1); }
.lang { font-size: 13px; font-weight: 600; letter-spacing: .04em; display: none; }
@media (min-width: 640px) { .lang { display: inline-flex; } }
.btn-login {
  height: 44px; padding: 0 var(--s4); border-radius: 12px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--accent-ink); background: var(--accent-grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s var(--ease-out), filter .2s;
}
.btn-login:hover { filter: brightness(1.06); }
.btn-login:active { transform: scale(.97); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
@media (min-width: 1180px) { .menu-btn { display: none; } }
.sound-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.sound-btn .lucide { width: 19px; height: 19px; }
.sound-btn[aria-pressed="false"] { color: var(--text-3); }
.nav-sheet {
  position: absolute; top: calc(100% + var(--s2)); left: 0; right: 0;
  padding: var(--s2); border-radius: 18px; display: grid; gap: 2px;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out);
}
.nav-sheet.open { opacity: 1; transform: none; pointer-events: auto; }
.nav-sheet a { min-height: 48px; display: flex; align-items: center; padding: 0 var(--s4); border-radius: 12px; font-size: 16px; font-weight: 500; }
.nav-sheet a:active { background: rgba(255,255,255,.06); }

/* ───────── HERO ───────── */
.hero { position: relative; isolation: isolate; padding: calc(var(--s8) + var(--s6)) var(--gutter) var(--s7); overflow: hidden; }
@media (min-width: 960px) { .hero { padding-top: calc(var(--s8) + var(--s6)); padding-bottom: var(--s7); } }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* flou ~40 px rendu sur une vidéo réduite à 25 % puis agrandie : même rendu, 16× moins de pixels à flouter */
.hero-bg video { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; object-fit: cover; filter: blur(10px) saturate(1.15) brightness(.42); transform: translate(-50%, -50%) scale(4); will-change: transform; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 70% 30%, rgba(7,7,10,.15) 0%, rgba(7,7,10,.7) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgba(7,7,10,.55) 0%, rgba(7,7,10,0) 30%, rgba(7,7,10,.2) 70%, var(--bg) 100%);
}
.hero-grid { position: relative; margin: 0 auto; width: min(100%, 1200px); display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s8); } }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
@media (max-width: 959px) { .hero-copy { margin: 0 auto; text-align: center; } }

.proof { display: inline-flex; align-items: center; gap: var(--s3); font-size: 14px; color: var(--text-2); }
.avatars { display: flex; }
.avatars img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -8px; background: var(--surface-2); }
.avatars img:first-child { margin-left: 0; }
.proof b { color: var(--text); font-weight: 600; }

h1 {
  margin: var(--s5) 0 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(40px, 2.9vw + 20px, 64px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}
.pill {
  position: relative; display: inline-flex; align-items: center; gap: .16em;
  margin: 0 .04em 0 .02em; padding: .02em .22em .06em .2em; border-radius: .22em;
  background: var(--accent-grad); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -2px 0 rgba(0,0,0,.14);
  line-height: 1.04; white-space: nowrap;
}
.rec { position: relative; width: .34em; height: .34em; border-radius: 50%; background: #1A0A08; display: grid; place-items: center; flex: none; transform: translateY(.02em); }
.rec::before { content: ""; width: 52%; height: 52%; border-radius: 50%; background: var(--accent-bright); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.8); } }
.h1-soft { background: linear-gradient(180deg, var(--text) 10%, #9C9CA6 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lede { margin: var(--s5) 0 0; font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 520px; text-wrap: pretty; }
@media (max-width: 959px) { .lede { margin-left: auto; margin-right: auto; max-width: 350px; } }

.steps { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
@media (max-width: 959px) { .steps { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; } }
.steps li { display: flex; align-items: center; gap: var(--s3); font-size: 15px; color: var(--text); }
.steps .n {
  width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--text-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
}

/* Champ façon prompt IA */
.prompt { position: relative; margin-top: var(--s5); padding: 20px var(--s3) var(--s3) var(--s5); border-radius: 20px; text-align: left; transition: opacity .4s ease-out, transform .4s ease-out, filter .4s ease-out, border-color .25s, box-shadow .25s; transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s; }
.nav-sheet a { color: var(--text); }
.prompt:focus-within { border-color: rgba(255,106,77,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(255,61,46,.12), 0 24px 60px rgba(0,0,0,.45); }
@media (max-width: 639px) { .prompt { padding: var(--s4) var(--s3) var(--s3) var(--s4); } }
.prompt-text { position: relative; padding-right: var(--s3); }
.prompt textarea {
  display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 20px/1.45 var(--f-body); letter-spacing: -.01em; min-height: 58px;
}
@media (max-width: 639px) { .prompt textarea { font-size: 17px; min-height: 50px; } }
.prompt-hint { position: absolute; inset: 0 var(--s3) auto 0; pointer-events: none; font: 500 20px/1.45 var(--f-body); letter-spacing: -.01em; color: var(--text-3); }
@media (max-width: 639px) { .prompt-hint { font-size: 17px; } }
.prompt.has-value .prompt-hint, .prompt:focus-within .prompt-hint { opacity: 0; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--accent-bright); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); }
.prompt-label { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.prompt-label .lucide { width: 16px; height: 16px; color: var(--accent-bright); }
.prompt .btn { padding: 0 var(--s4) 0 var(--s5); }
.prompt .btn .lucide { transition: transform .25s var(--ease-out); }
.prompt .btn:hover .lucide { transform: translateX(3px); }
@media (max-width: 419px) { .prompt-label { display: none; } .prompt .btn { flex: 1; } }
.prompt-error { margin: var(--s2) 0 0; font-size: 13px; color: #FF8A7A; min-height: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 959px) { .chips { justify-content: center; } }
.chips span { font-size: 13px; color: var(--text-3); align-self: center; margin-right: var(--s1); }
.chip {
  height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: color .2s, border-color .2s, background-color .2s, transform .18s var(--ease-out);
}
.chip:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.07); }
.chip:active { transform: scale(.97); }
@media (max-width: 639px) { .chip { height: 44px; padding: 0 14px; } .chips span { flex-basis: 100%; text-align: center; margin: 0 0 var(--s1); } }

/* Flèche dessinée à la main */
.hand-arrow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; display: none; }
@media (min-width: 960px) { .hand-arrow { display: block; } }
.hand-arrow path { fill: none; stroke: rgba(245,245,247,.55); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hand-arrow .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1) .9s; }
.hand-arrow.is-in .draw { stroke-dashoffset: 0; }
.hand-arrow .head { opacity: 0; transition: opacity .2s 1.9s; }
.hand-arrow.is-in .head { opacity: 1; }

/* ───────── TÉLÉPHONE ───────── */
.stage { position: relative; display: grid; justify-items: center; padding-top: var(--s6); }
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 54px;
  background: linear-gradient(145deg, #3A3A42 0%, #17171C 30%, #0C0C10 60%, #2A2A31 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 3px #050507, 0 50px 100px -20px rgba(0,0,0,.8), 0 30px 60px -30px rgba(0,0,0,.9);
}
@media (max-width: 639px) { .phone { --w: 272px; border-radius: 48px; padding: 9px; } }
.phone::before { /* boutons latéraux */
  content: ""; position: absolute; left: -2px; top: 22%; width: 3px; height: 9%; border-radius: 2px 0 0 2px; background: #26262C;
  box-shadow: 0 calc(var(--w) * .2) 0 #26262C;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #0B0B0F; isolation: isolate; }
@media (max-width: 639px) { .screen { border-radius: 39px; } }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 100%); }
.island { position: absolute; z-index: 6; top: 11px; left: 50%; transform: translateX(-50%); width: 31%; height: 25px; border-radius: 20px; background: #000; }
.status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; font: 600 14px/1 var(--f-body); color: #fff; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.status-icons i { display: block; background: #fff; border-radius: 1.5px; }
.tabs { position: absolute; z-index: 5; top: 52px; left: 0; right: 0; display: flex; justify-content: center; gap: var(--s4); font: 600 14px/1 var(--f-body); color: rgba(255,255,255,.62); }
.tabs b { color: #fff; position: relative; }
.tabs b::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -7px; height: 2px; border-radius: 2px; background: #fff; }

.hook {
  position: absolute; z-index: 4; top: 37%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 84%;
  padding: 6px 10px 7px; border-radius: 8px; background: rgba(250,250,250,.96); color: #0B0B0F;
  font: 800 15px/1.2 var(--f-display); letter-spacing: -.01em; text-align: center;
}
.subs { position: absolute; z-index: 4; top: 57%; left: 8%; right: 18%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; align-content: flex-start; gap: 4px 6px; min-height: 60px; }
.subs span {
  font: 800 21px/1.15 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; color: #fff;
  padding: 1px 5px 2px; border-radius: 6px;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .14s ease-out, transform .18s var(--ease-out), background-color .12s;
}
.subs span.on { opacity: 1; transform: none; }
.subs span.cur { background: var(--accent); text-shadow: none; transform: scale(1.06); }
@media (max-width: 639px) { .subs span { font-size: 19px; } .hook { font-size: 14px; } }

.rail { position: absolute; z-index: 4; right: 10px; bottom: 96px; display: grid; gap: 14px; justify-items: center; color: #fff; }
.rail .av { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #fff; background: #222 center/cover; position: relative; margin-bottom: 6px; }
.rail .av::after { content: "+"; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px/17px var(--f-body); text-align: center; }
.rail div { display: grid; justify-items: center; gap: 3px; font: 600 11px/1 var(--f-body); font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.rail .lucide { width: 27px; height: 27px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.rail .liked .lucide { fill: var(--accent); stroke: var(--accent); }
.meta { position: absolute; z-index: 4; left: 14px; right: 64px; bottom: 22px; color: #fff; font-size: 12.5px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.meta b { font-size: 14px; display: block; margin-bottom: 3px; }
.meta .snd { display: flex; align-items: center; gap: 5px; margin-top: 6px; opacity: .9; }
.meta .snd .lucide { width: 13px; height: 13px; }
.progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.progress i { display: block; height: 100%; width: 0; background: #fff; }

/* Notifications en verre */
.notifs { position: absolute; z-index: 8; top: -12px; left: 50%; width: min(352px, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%); height: 160px; pointer-events: none; }
.notif {
  position: absolute; left: 0; right: 0; top: 0; height: 70px;
  display: grid; grid-template-columns: 38px 1fr; gap: var(--s3); align-items: center;
  padding: 0 14px; border-radius: 20px;
  background: rgba(24,24,30,.74);
  transition: transform .55s var(--ease-out), opacity .45s ease-out, filter .45s ease-out;
  will-change: transform, opacity;
}
.notif.enter { opacity: 0; transform: translateY(-34px) scale(.94); filter: blur(6px); }
.notif.leave { opacity: 0; filter: blur(4px); }
.notif .app { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #0B0B0F; border: 1px solid rgba(255,255,255,.1); }
.notif .app img { width: 19px; height: 19px; filter: invert(1); }
.notif .app .lucide { width: 19px; height: 19px; }
.notif .app.red { background: var(--accent-grad); border-color: transparent; color: var(--accent-ink); }
.notif .app.cash { color: var(--money); background: rgba(48,209,88,.12); border-color: rgba(48,209,88,.22); }
.notif .top { display: flex; gap: 8px; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,245,247,.62); }
.notif .top em { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 500; }
.notif .ttl { display: block; margin-top: 2px; font: 600 15px/1.25 var(--f-body); letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif .sub { display: block; font-size: 12.5px; color: rgba(245,245,247,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Carte vues flottante */
.views-card { position: absolute; z-index: 7; left: calc(50% - var(--pw) / 2 - 64px); bottom: 15%; width: 188px; padding: 14px var(--s4) var(--s3); border-radius: 18px; }
.stage { --pw: 300px; }
@media (max-width: 639px) { .stage { --pw: 272px; } .views-card { left: 0; width: 164px; bottom: 9%; padding: var(--s3); } }
.views-card .lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.views-card .lbl .lucide { width: 14px; height: 14px; }
.views-card .big { margin-top: 4px; font: 700 26px/1.1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .views-card .big { font-size: 22px; } }
.views-card .up { font-size: 12px; font-weight: 600; color: var(--money); display: inline-flex; align-items: center; gap: 4px; }
.views-card .up .lucide { width: 13px; height: 13px; }
.views-card svg.spark { width: 100%; height: 34px; margin-top: 6px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--money); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1); }
.spark path.area { fill: url(#sparkFill); opacity: 0; transition: opacity .8s 1s; }
.views-card.is-in .spark path.line { stroke-dashoffset: 0; }
.views-card.is-in .spark path.area { opacity: 1; }

.stage-caption { margin-top: var(--s5); font-size: 13px; color: var(--text-3); text-align: center; max-width: 320px; }
.stage-caption b { color: var(--text-2); font-weight: 500; }

/* ───────── MARQUEE ───────── */
.marquee { padding: var(--s7) 0 var(--s8); }
.marquee h2 { margin: 0 0 var(--s5); text-align: center; font: 500 14px/1.4 var(--f-body); color: var(--text-2); letter-spacing: 0; }
.mq { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; gap: var(--s8); padding-right: var(--s8); }
.mq-item { display: inline-flex; align-items: center; gap: var(--s3); font: 600 20px/1 var(--f-display); letter-spacing: -.02em; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.mq-item img { width: 24px; height: 24px; filter: invert(1) brightness(.68); transition: filter .2s; }
.mq-item:hover { color: var(--text); }
.mq-item:hover img { filter: invert(1); }
@media (max-width: 639px) { .mq-group { gap: var(--s7); padding-right: var(--s7); } .mq-item { font-size: 17px; } .mq-item img { width: 20px; height: 20px; } }
@keyframes mq { to { transform: translateX(-50%); } }

.next-hint { padding: 0 var(--gutter) var(--s8); text-align: center; color: var(--text-3); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .mq-group[aria-hidden] { display: none; }
  .mq-group { flex-wrap: wrap; justify-content: center; gap: var(--s6); padding: 0 var(--gutter); }
  .rec::before { animation: none; }
}
