/* ============================================================
   SignalOS — V2 Premium (v4) · niche + commentaires
   S'ajoute par-dessus v3.css / v3b.css
   ============================================================ */

/* ── H1 : mot rotatif ── */
.v3-sub strong { color: var(--v3-ink); font-weight: 700; }
.flip-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.flip { display: inline-block; will-change: transform, opacity; transition: transform 0.45s cubic-bezier(.2,.7,.3,1), opacity 0.45s; }
.flip.out { transform: translateY(-105%); opacity: 0; transition: none; }
.flip.pre { transform: translateY(105%); opacity: 0; transition: none; }

/* ── équation du message ── */
.v4-eq { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.v4-eq span { font-size: 0.8rem; font-weight: 700; color: var(--v3-ink); background: var(--v3-card); border: 1px solid var(--v3-line);
  backdrop-filter: blur(10px); border-radius: 100px; padding: 7px 14px; white-space: nowrap; }
.v4-eq i { font-style: normal; color: var(--red); font-weight: 800; }

/* ── Sélecteur de niche ── */
.v4-niches { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.v4-nl { font-size: 0.76rem; font-weight: 700; color: var(--v3-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 2px; }
.nch { cursor: pointer; font-family: inherit; font-size: 0.78rem; font-weight: 700; color: var(--v3-mut);
  background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 100px; padding: 8px 15px;
  backdrop-filter: blur(10px); transition: all 0.22s; }
.nch:hover { color: var(--v3-ink); border-color: var(--v3-mut); transform: translateY(-1px); }
.nch.on { color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); border-color: transparent;
  box-shadow: 0 10px 26px -8px rgba(232,25,60,0.6); }

/* ─────────────────────────────────────────────
   SWARM — le réseau de ta niche
   ───────────────────────────────────────────── */
.v4-swarm-sec { padding-bottom: 50px; }
.swarm { position: relative; max-width: 1050px; margin: 0 auto; height: 520px; }
.sw-beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sw-beams line { stroke: rgba(232,25,60,0.16); stroke-width: 1.5; }
html:not([data-theme="light"]) .sw-beams line { stroke: rgba(232,25,60,0.24); }
.sw-beams line.pulse { stroke: var(--red); stroke-width: 2; stroke-dasharray: 7 93; stroke-dashoffset: 100; opacity: 0.95;
  animation: swTravel 1.1s cubic-bezier(.3,.6,.4,1) forwards; filter: drop-shadow(0 0 5px rgba(232,25,60,0.7)); }
@keyframes swTravel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.sw-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--v3-solid); border: 1px solid var(--v3-line); border-radius: 22px; box-shadow: var(--v3-sh);
  padding: 18px 26px; transition: transform 0.3s cubic-bezier(.2,.9,.3,1.4), box-shadow 0.3s; }
.sw-center.pop { transform: translate(-50%,-50%) scale(1.05); box-shadow: 0 0 0 4px rgba(232,25,60,0.14), var(--v3-sh); }
.sw-vid { width: 52px; height: 72px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1226, #0d1e38 60%, #1c0d24); color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.sw-center b { font-family: var(--display); font-weight: 800; font-size: 0.86rem; color: var(--v3-ink); }
.sw-views { font-size: 0.7rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.sw-last { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap;
  background: var(--v3-card); backdrop-filter: blur(12px); border: 1px solid var(--v3-line); border-radius: 100px;
  padding: 7px 15px; font-size: 0.72rem; font-weight: 600; color: var(--v3-mut); transition: opacity 0.3s; }
.sw-last b { color: var(--v3-ink); filter: blur(2.6px); user-select: none; -webkit-user-select: none; }
.sw-last em { font-style: normal; color: var(--red); font-weight: 700; }

.sw-node { position: absolute; z-index: 2; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.4); }
.sw-node .sw-avw { position: relative; }
.sw-node .sw-av { display: block; width: 52px; height: 52px; border-radius: 50%; background-size: cover; background-position: center;
  filter: blur(1.8px); border: 2.5px solid var(--v3-solid); box-shadow: 0 10px 26px -10px rgba(13,13,21,0.4), 0 0 0 2px rgba(232,25,60,0.18); }
.sw-node .sw-act { position: absolute; right: -7px; bottom: -5px; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
  background: var(--v3-solid); border: 1px solid var(--v3-line); box-shadow: 0 6px 14px -6px rgba(13,13,21,0.4);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1.6); }
.sw-node .sw-tag { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red);
  background: rgba(232,25,60,0.09); border: 1px solid rgba(232,25,60,0.3); border-radius: 100px; padding: 3px 9px; white-space: nowrap;
  backdrop-filter: blur(6px); }
.sw-node.fire { transform: translate(-50%,-50%) scale(1.14); z-index: 4; }
.sw-node.fire .sw-av { box-shadow: 0 10px 30px -8px rgba(232,25,60,0.55), 0 0 0 3px rgba(232,25,60,0.5); }
.sw-node.fire .sw-act { transform: scale(1.35); background: linear-gradient(135deg, var(--red-2), var(--red)); border-color: transparent; }
.sw-node.cm .sw-act { background: rgba(232,25,60,0.1); border-color: rgba(232,25,60,0.4); }

.sw-legend { position: absolute; left: 50%; bottom: -96px; transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sw-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.7rem; font-weight: 600; color: var(--v3-mut);
  background: var(--v3-card); backdrop-filter: blur(10px); border: 1px solid var(--v3-hair); border-radius: 100px; padding: 6px 13px; white-space: nowrap; }
.sw-legend b { color: var(--red); font-weight: 800; }
.sw-legend .lead { border-color: rgba(232,25,60,0.4); background: rgba(232,25,60,0.06); color: var(--v3-mut); }
.swarm-foot { max-width: 640px; margin: 118px auto 0; text-align: center; font-size: 0.88rem; color: var(--v3-mut); line-height: 1.7; }
.swarm-foot strong { color: var(--v3-ink); }

/* ─────────────────────────────────────────────
   TRUST — commentaires, le game changer
   ───────────────────────────────────────────── */
.v4-trust { position: relative; }
.ab-grid { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.ab-card { position: relative; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px;
  background: var(--v3-card); backdrop-filter: blur(16px); border: 1px solid var(--v3-line); box-shadow: var(--v3-sh); }
.ab-card.with { border-color: rgba(232,25,60,0.45); box-shadow: 0 0 0 1px rgba(232,25,60,0.25), 0 34px 80px -30px rgba(232,25,60,0.4); }
.ab-tag { position: absolute; top: -13px; left: 22px; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--v3-solid); color: var(--v3-dim); border: 1px solid var(--v3-line); border-radius: 100px; padding: 5px 14px; }
.ab-tag.on { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px -6px rgba(232,25,60,0.7); }
.ab-vid { display: flex; align-items: center; gap: 10px; }
.ab-vid .th { width: 34px; height: 46px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1226, #0d1e38 60%, #1c0d24); color: rgba(255,255,255,0.75); font-size: 0.62rem; }
.ab-vid b { display: block; font-size: 0.78rem; color: var(--v3-ink); }
.ab-vid span { font-size: 0.66rem; color: var(--v3-dim); }

.cpanel { flex: 1; background: var(--v3-dash-card); border: 1px solid var(--v3-hair); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.cp-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.68rem; font-weight: 800; color: var(--v3-dim);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 11px; }
.cp-head b { color: var(--v3-ink); }
.cp-head .cnt { font-variant-numeric: tabular-nums; }
.cp-rows { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cp-row { display: flex; gap: 9px; align-items: flex-start; background: var(--v3-solid); border: 1px solid var(--v3-hair);
  border-radius: 12px; padding: 10px 12px; transition: opacity 0.45s, transform 0.45s; }
.cp-row.rep { margin-left: 26px; position: relative; }
.cp-row.rep::before { content: ''; position: absolute; left: -15px; top: -8px; bottom: 50%; width: 12px;
  border-left: 1.5px solid rgba(232,25,60,0.3); border-bottom: 1.5px solid rgba(232,25,60,0.3); border-radius: 0 0 0 8px; }
.cp-row i.avv { width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; filter: blur(1.8px); }
.cp-row .bd { flex: 1; min-width: 0; }
.cp-row .nm { display: block; font-size: 0.64rem; font-weight: 700; color: var(--v3-ink); filter: blur(2.6px); user-select: none; -webkit-user-select: none; }
.cp-row .tx { display: block; font-size: 0.78rem; color: var(--v3-mut); line-height: 1.45; }
.cp-row .lk { font-size: 0.64rem; color: var(--v3-dim); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.cp-row .lk.hot { color: var(--red); font-weight: 700; }
.cp-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--v3-line); border-radius: 12px; padding: 22px; text-align: center; }
.cp-empty em { font-style: normal; font-size: 1.3rem; opacity: 0.5; }
.cp-empty span { font-size: 0.76rem; color: var(--v3-dim); }

.tm { margin-top: 2px; }
.tm-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.tm-top span { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--v3-dim); }
.tm-top b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--v3-ink); font-variant-numeric: tabular-nums; }
.ab-card.with .tm-top b { color: var(--red); }
.tm-bar { height: 8px; border-radius: 100px; background: var(--v3-hair); overflow: hidden; }
.tm-fill { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--v3-dim); transition: width 1.5s cubic-bezier(.2,.7,.2,1) 0.2s; }
.ab-card.with .tm-fill { background: linear-gradient(90deg, var(--red-2), var(--red)); box-shadow: 0 0 12px rgba(232,25,60,0.5); }
.ab-note { font-size: 0.7rem; color: var(--v3-dim); display: flex; align-items: center; gap: 7px; }
.ab-note.hot { color: var(--red); font-weight: 600; }

/* points + composer */
.trust-points { max-width: 1050px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tp { display: flex; gap: 12px; align-items: flex-start; background: var(--v3-card); backdrop-filter: blur(14px);
  border: 1px solid var(--v3-line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--v3-sh); }
.tp em { font-style: normal; font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.tp b { display: block; font-size: 0.84rem; font-weight: 700; color: var(--v3-ink); }
.tp span { font-size: 0.76rem; color: var(--v3-mut); line-height: 1.5; }
.cmp-strip { max-width: 1050px; margin: 18px auto 0; background: var(--v3-solid); border: 1px solid var(--v3-line);
  border-radius: 20px; box-shadow: var(--v3-sh); padding: 20px; }
.cmp-strip .f-ui-head { margin-bottom: 12px; }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1020px) {
  .ab-grid { grid-template-columns: 1fr; max-width: 560px; }
  .trust-points { grid-template-columns: 1fr; max-width: 560px; }
  .cmp-strip { max-width: 560px; }
}
@media (max-width: 720px) {
  .swarm { height: 470px; }
  .sw-node .sw-av { width: 44px; height: 44px; }
  .sw-node .sw-tag { font-size: 0.52rem; padding: 2px 7px; }
  .sw-center { padding: 14px 18px; border-radius: 18px; }
  .sw-vid { width: 42px; height: 58px; }
  .sw-legend { bottom: -108px; width: 100%; }
  .swarm-foot { margin-top: 128px; }
  .v4-niches { gap: 6px; }
  .v4-eq { gap: 7px; }
  .v4-eq span { font-size: 0.72rem; padding: 6px 11px; }
  .nch { font-size: 0.72rem; padding: 7px 12px; }
  .cmp-meta { gap: 6px; }
}

/* ── perf : ne pas rendre le hors-écran ── */
.v4-swarm-sec, .v4-trust, #features, .v3-metrics, #avis, #pricing, #faq, .v3-ctasec, footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sw-beams line.pulse { animation: none !important; }
  .flip { transition: none !important; }
  .tm-fill { transition: none !important; }
}
