.spark { display: block; overflow: visible; }
.spark path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.up .spark path { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(84, 236, 150, 0.6)); }
.down .spark path { stroke: var(--red); filter: drop-shadow(0 0 4px rgba(255, 92, 84, 0.55)); }
.up .tk-var, .up .pm-var, .up .gf-var { color: var(--green); }
.down .tk-var, .down .pm-var, .down .gf-var { color: var(--red); }
.ico { display: inline-grid; place-items: center; border-radius: 50%; background: var(--card-2); box-shadow: 0 0 0 1.5px rgba(169, 214, 247, 0.45); font: 700 0.62rem var(--mono); font-style: normal; color: var(--sky); flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(84, 236, 150, 0.6); animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(84, 236, 150, 0); } }

.prix-ticker { position: fixed; inset: 0 0 auto 0; z-index: 41; height: 38px; display: flex; align-items: stretch; background: rgba(5, 8, 18, 0.96); border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.has-ticker .site-header { top: 38px; }
.has-ticker .skip { bottom: 26px; }
.tk-label { display: flex; align-items: center; gap: 10px; padding: 0 18px 0 clamp(16px, 3.5vw, 48px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); background: var(--night); border-right: 1px solid var(--line); white-space: nowrap; position: relative; z-index: 2; box-shadow: 18px 0 24px -6px var(--night); }
.tk-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent); }
.tk-move { display: flex; align-items: center; width: max-content; height: 100%; animation: tk 38s linear infinite; }
.prix-ticker:hover .tk-move { animation-play-state: paused; }
@keyframes tk { to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; white-space: nowrap; }
.tk-item img, .tk-item .ico { border-radius: 50%; }
.tk-item b { font-weight: 600; }
.tk-px { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.tk-var { font-family: var(--mono); font-size: 0.8rem; }
.tk-item .spark { width: 54px; height: 18px; }
.tk-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(169, 214, 247, 0.3); flex: none; }
@media (max-width: 600px) { .tk-label { padding-right: 12px; } .tk-label { font-size: 0; gap: 0; } .tk-label .dot { margin-right: 0; } }
@media (prefers-reduced-motion: reduce) { .tk-move { animation: none; } .tk-track { overflow-x: auto; } }

.prix-matin { position: relative; background: var(--night); padding: clamp(72px, 10vh, 120px) clamp(16px, 5vw, 72px) 0; }
.pm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 56px; align-items: end; margin-bottom: 36px; }
.pm-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-transform: capitalize; }
.pm-head h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.92; font-size: clamp(2.6rem, 6vw, 5rem); }
.pm-head h2 span { color: var(--green); }
.pm-three { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pm-three li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.02rem; line-height: 1.5; color: rgba(244, 246, 251, 0.86); }
.pm-three b { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; color: var(--sky); }
.pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pm-tile { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 22px 22px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color 250ms var(--ease-out), transform 250ms var(--ease-out); }
.pm-tile::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; pointer-events: none; background: radial-gradient(50% 50% at 50% 100%, rgba(84, 236, 150, 0.12), transparent 70%); }
.pm-tile.down::before { background: radial-gradient(50% 50% at 50% 100%, rgba(255, 92, 84, 0.1), transparent 70%); }
.pm-tile:hover { transform: translateY(-3px); border-color: rgba(169, 214, 247, 0.35); }
.pm-top { display: flex; align-items: center; gap: 12px; }
.pm-top img { border-radius: 50%; }
.pm-top b { display: block; font-weight: 600; }
.pm-top div span { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.pm-var { margin-left: auto; padding: 5px 10px; border-radius: 999px; font-family: var(--mono); font-size: 0.82rem; background: rgba(84, 236, 150, 0.1); }
.down .pm-var { background: rgba(255, 92, 84, 0.1); }
.pm-px { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 3.6vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.pm-tile .spark.big { width: 100%; height: 70px; }
.pm-tile .spark.big path { stroke-width: 2.2; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2000ms var(--ease-out); }
.pm-tile.in .spark.big path { stroke-dashoffset: 0; }
.pm-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 900px) { .pm-head { grid-template-columns: 1fr; } .pm-grid { grid-template-columns: 1fr; } }

.prix-gare { position: relative; background: var(--night); padding: clamp(72px, 10vh, 120px) clamp(16px, 5vw, 72px) 0; }
.gf-board { padding: 22px clamp(16px, 2.5vw, 30px) 12px; border-radius: 18px; background: linear-gradient(180deg, #0A1022, #070C1A); border: 1px solid rgba(169, 214, 247, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.gf-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gf-head b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.gf-src { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.gf-cols, .gf-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 1.6fr) 110px 150px; gap: 18px; align-items: center; }
.gf-cols { padding: 14px 0 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.gf-row { padding: 12px 0; border-top: 1px solid rgba(244, 246, 251, 0.05); }
.gf-name { display: flex; align-items: center; gap: 10px; }
.gf-name img { border-radius: 50%; }
.gf-name b { font-weight: 600; font-size: 1.05rem; }
.gf-name small { color: var(--muted); font-size: 0.82rem; }
.gf-flap { display: flex; gap: 3px; }
.fl { position: relative; display: inline-grid; place-items: center; width: 0.95em; height: 1.45em; border-radius: 4px; background: linear-gradient(180deg, #141C33 50%, #0F1629 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2px 0 rgba(0, 0, 0, 0.5); font: 600 clamp(1.15rem, 2vw, 1.6rem) var(--mono); color: #F4F6FB; overflow: hidden; perspective: 200px; }
.fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.7); }
.fl.flip span { animation: flip 110ms ease-out; display: inline-block; }
@keyframes flip { from { transform: rotateX(-80deg); opacity: 0.3; } to { transform: none; opacity: 1; } }
.gf-var { font-family: var(--mono); font-size: 0.95rem; }
.gf-row .spark { width: 140px; height: 30px; }
@media (max-width: 760px) {
  .gf-cols { display: none; }
  .gf-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .gf-name small { display: none; }
  .gf-flap { grid-column: 1 / -1; order: 3; }
  .gf-row .spark { display: none; }
  .fl { width: 1.05em; }
}

.prix-ticker { transition: transform 380ms var(--ease-out); }
.has-ticker .site-header { transition: top 380ms var(--ease-out); }
.ticker-hidden .prix-ticker { transform: translateY(-100%); }
.ticker-hidden .site-header { top: 0; }
.tk-px.tick-up { animation: tickUp 900ms var(--ease-out); }
.tk-px.tick-down { animation: tickDown 900ms var(--ease-out); }
@keyframes tickUp { from { color: var(--green); text-shadow: 0 0 10px rgba(84, 236, 150, 0.8); } }
@keyframes tickDown { from { color: var(--red); text-shadow: 0 0 10px rgba(255, 92, 84, 0.8); } }
@media (max-width: 600px) { .tk-name { display: none; } }
