/* FastClip — tokens & primitives partagés (landing, funnel, studio) */
:root {
  --bg: #07070A;
  --surface: #0E0E13;
  --surface-2: #15151C;
  --text: #F5F5F7;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.12);
  --accent: #FF3D2E;
  --accent-bright: #FF6A4D;
  --accent-grad: linear-gradient(180deg, #FF6A4D 0%, #FF3D2E 100%);
  --accent-ink: #FFF4F1;
  --money: #30D158;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 96px;
  --gutter: 20px;
  --r-btn: 14px;
  --r-card: 24px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.money { color: var(--money); }
[hidden] { display: none !important; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.035em; height: 44px; }
.logo svg { width: 28px; height: 28px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain 3 % sur tout le site */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) }
  60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) }
}

/* Verre dépoli : uniquement au-dessus d'une image / d'un fond texturé */
.glass {
  background: rgba(20,20,24,.55);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.45);
  border-radius: var(--r-card);
}
.glass-strong { background: rgba(20,20,24,.72); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 56px; padding: 0 var(--s5);
  border-radius: var(--r-btn);
  font-family: var(--f-body); font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .2s, box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.14), 0 8px 24px -8px rgba(255,61,46,.55);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { height: 44px; padding: 0 var(--s3); color: var(--text-2); border-radius: 12px; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 12px; }

.lucide { width: 20px; height: 20px; stroke-width: 1.5; flex: none; }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }

/* Entrées : montée + flou qui se dissipe, cascade 60 ms */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
  transition: opacity .4s ease-out, transform .4s ease-out, filter .4s ease-out;
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ───────── Icônes qui flottent (toutes les pages) ─────────
   « translate » (propriété séparée) : le flottement s'ajoute aux transformations existantes
   (survol des boutons, rebonds) sans les écraser. */
@keyframes iconFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
.lucide, .mq-item img, .plat-ico img, .hero-plats img, .opt .ico img, .notif .app img, .vis-post img, .sum .plats img, .conn img, .cut-url img {
  animation: iconFloat 4s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.mq-item:nth-child(2n) img, .sum .plats span:nth-child(2) img, .vis-post span:nth-child(2) img { animation-delay: -1.3s; }
.mq-item:nth-child(3n) img, .sum .plats span:nth-child(3) img, .vis-post span:nth-child(3) img { animation-delay: -2.6s; }
@media (prefers-reduced-motion: reduce) {
  .lucide, .mq-item img, .plat-ico img, .hero-plats img, .opt .ico img, .notif .app img, .vis-post img, .sum .plats img, .conn img, .cut-url img { animation: none; }
}

/* ───────── Les icônes gonflent au survol ─────────
   Sur l'icône elle-même, ou sur le bouton, le lien ou la carte qui la contient.
   « scale » (propriété séparée) se combine au flottement sans l'interrompre. */
.lucide, .mq-item img, .plat-ico img, .hero-plats img, .opt .ico img, .notif .app img, .vis-post img, .sum .plats img, .conn img, .cut-url img {
  transition: scale .3s cubic-bezier(.34, 1.56, .64, 1);
}
@media (hover: hover) {
  .lucide:hover,
  a:hover .lucide, button:hover .lucide, summary:hover .lucide, label:hover .lucide,
  .mon:hover .lucide, .step3:hover img, .ba-list li:hover .lucide, .cut-points li:hover .lucide, .feats li:hover .lucide,
  .phase li:hover .lucide, .mono:hover .lucide, .card:hover .lucide, .kpi:hover .lucide, .panel-h:hover .lucide,
  .mq-item:hover img, .hero-plats img:hover, .opt:hover .ico img, .vis-post span:hover img, .sum .plats span:hover img, .conn:hover img, .stream:hover .plat-ico img {
    scale: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lucide, .mq-item img, .plat-ico img, .hero-plats img, .opt .ico img, .notif .app img, .vis-post img, .sum .plats img, .conn img, .cut-url img { transition: none; }
}

/* Mot-symbole FastClip : légèrement penché vers l'avant, « Clip » un ton plus clair */
.logo .wm { display: inline-block; transform: skewX(-9deg); line-height: 1; }
.logo .wm span { color: var(--text-2); }
.logo svg { width: 30px; height: 30px; }
