/* ============================================================
   SignalOS — Fonctionnalités v2 · « Les 24 heures d'une vidéo »
   scène sticky pilotée par le scroll — complète fx2.css
   ============================================================ */

.jrny { position: relative; height: 520vh; }
.jrny-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 128px 24px 30px; overflow: hidden; }
/* pas de re-animation des lignes à chaque frame de scroll */
.jrny-feed .feed-row { animation: none; }
.jrny-feed .feed-row.pop { animation: rowIn 0.4s cubic-bezier(.2,.7,.3,1); }

/* HUD temps */
.jrny-hud { max-width: 1050px; width: 100%; margin: 0 auto 18px; display: flex; align-items: center; gap: 16px; }
.jrny-t { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; color: var(--v3-ink); white-space: nowrap; }
.jrny-t b { font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--red); }
.jrny-t span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--v3-dim); }
.jrny-bar { flex: 1; height: 4px; border-radius: 100px; background: var(--v3-hair); overflow: hidden; }
.jrny-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 100px;
  background: linear-gradient(90deg, var(--red-2), var(--red)); box-shadow: 0 0 10px rgba(232,25,60,0.5); }
.jrny-phases { display: flex; gap: 6px; }
.jrny-ph { font-size: 0.68rem; font-weight: 800; border-radius: 100px; padding: 6px 13px; white-space: nowrap;
  color: var(--v3-dim); background: var(--v3-card); border: 1px solid var(--v3-line); backdrop-filter: blur(8px); transition: all 0.3s; }
.jrny[data-phase="0"] .jrny-ph:nth-child(1), .jrny[data-phase="1"] .jrny-ph:nth-child(2), .jrny[data-phase="2"] .jrny-ph:nth-child(3) {
  color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); border-color: transparent; box-shadow: 0 8px 20px -6px rgba(232,25,60,0.6); }

/* grille copy + scène */
.jrny-grid { max-width: 1050px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; min-height: 0; flex: 1; }
.jrny-copy { position: relative; min-height: 240px; }
.jc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(22px); pointer-events: none;
  transition: opacity 0.5s cubic-bezier(.2,.7,.3,1), transform 0.5s cubic-bezier(.2,.7,.3,1); }
.jc.on { opacity: 1; transform: none; pointer-events: auto; }
.jc h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.7vw, 2.3rem); letter-spacing: -0.038em; line-height: 1.05; color: var(--v3-ink); text-wrap: balance; }
.jc p { color: var(--v3-mut); font-size: 0.94rem; line-height: 1.7; margin-top: 12px; max-width: 380px; }
.jc p strong { color: var(--red); }
.jc .f-kicker { margin-bottom: 12px; }
.jrny-hint { margin-top: 18px; font-size: 0.72rem; font-weight: 700; color: var(--v3-dim); display: inline-flex; align-items: center; gap: 8px; }
.jrny-hint i { font-style: normal; animation: jHint 1.6s ease-in-out infinite; display: inline-block; }
@keyframes jHint { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* scène */
.jrny-stage { position: relative; border-radius: 24px; background: var(--v3-solid); border: 1px solid var(--v3-line); box-shadow: var(--v3-sh); overflow: hidden; }
.jrny-vid { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--v3-hair); background: var(--v3-dash-side); }
.jrny-vid .th { width: 36px; height: 50px; border-radius: 9px; 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.8); font-size: 0.7rem; }
.jrny-vid .vt b { display: block; font-size: 0.82rem; color: var(--v3-ink); }
.jrny-vid .vt span { font-size: 0.66rem; color: var(--v3-dim); }
.jrny-views { margin-left: auto; text-align: right; }
.jrny-views b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1; }
.jrny-views span { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--v3-dim); }

.jrny-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px 0; }
.jk { background: var(--v3-dash-card); border: 1px solid var(--v3-hair); border-radius: 11px; padding: 8px 11px; }
.jk span { display: block; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--v3-dim); }
.jk b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--v3-ink); font-variant-numeric: tabular-nums; }
.jk.hot b { color: var(--red); }

.jrny-feed { padding: 12px 16px 16px; min-height: 268px; display: flex; flex-direction: column; gap: 7px; justify-content: flex-end; }
.jrny-feed .feed-row { margin-bottom: 0; }

/* couche algorithme (phase 3) */
.jrny-algo { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 16px;
  background: linear-gradient(180deg, transparent, var(--v3-solid) 26%);
  opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.jrny[data-phase="2"] .jrny-algo { opacity: 1; transform: none; }
.jrny-algo .dm-card { background: var(--v3-dash-card); }
.fyp-badge { position: absolute; top: -16px; right: 18px; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; font-size: 0.7rem; font-weight: 800;
  border-radius: 100px; padding: 7px 15px; box-shadow: 0 10px 26px -8px rgba(232,25,60,0.7); }
.jrny[data-phase="2"] .fyp-badge { animation: fypPop 0.5s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes fypPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#jGraphL { stroke-dasharray: 1200; stroke-dashoffset: calc(1200 - var(--gp, 0) * 1200); }

@media (max-width: 1020px) {
  .jrny { height: 460vh; }
  .jrny-grid { grid-template-columns: 1fr; gap: 16px; align-content: start; }
  .jrny-copy { min-height: 232px; }
  .jc .f-points span { font-size: 0.76rem; }
  .jc h3 { font-size: 1.35rem; }
  .jc p { font-size: 0.84rem; margin-top: 8px; }
  .jrny-sticky { padding: 108px 16px 20px; justify-content: flex-start; }
  .jrny-hud { flex-wrap: wrap; gap: 10px; }
  .jrny-phases { order: 3; width: 100%; justify-content: center; }
  .jrny-feed { min-height: 200px; }
  .jrny-kpis { grid-template-columns: repeat(4, 1fr); padding: 10px 12px 0; }
  .jk { padding: 7px 9px; }
  .jk b { font-size: 0.9rem; }
  .jrny-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jc { transition: opacity 0.3s; transform: none !important; }
  .jrny-hint i { animation: none; }
}
