/* Stories achetables + bannière live shopping (app stories). */

/* ---------- Bulles ---------- */
.ns-stories-rail { display: flex; gap: .9rem; overflow-x: auto; padding: .35rem .15rem .6rem; scroll-snap-type: x proximity;
  scrollbar-width: thin; }
.ns-story-item { flex: 0 0 auto; scroll-snap-align: start; }
.ns-story-bubble { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center;
  gap: .35rem; width: 78px; color: var(--ns-text); }
.ns-story-ring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; display: block;
  background: conic-gradient(from 210deg, var(--naydor-gold), #f5c26b, var(--ns-teal), var(--ns-navy), var(--naydor-gold));
  transition: transform .2s ease; }
.ns-story-ring img, .ns-story-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--ns-surface, #fff); display: flex; align-items: center; justify-content: center;
  background: var(--ns-surface-2); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--ns-navy); }
.ns-story-bubble:hover .ns-story-ring, .ns-story-bubble:focus-visible .ns-story-ring { transform: scale(1.06); }
.ns-story-bubble:focus-visible { outline: 3px solid var(--naydor-gold); outline-offset: 3px; border-radius: 12px; }
.ns-story-bubble.is-seen .ns-story-ring { background: var(--ns-border); }
.ns-story-bubble.is-seen img { filter: grayscale(.35); opacity: .85; }
.ns-story-label { font-size: .72rem; font-weight: 600; max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Viewer plein écran ---------- */
html.ns-story-open, html.ns-story-open body { overflow: hidden; }
.ns-story-viewer { position: fixed; inset: 0; z-index: 2050; background: rgba(5,8,18,.94); display: flex;
  align-items: center; justify-content: center; }
.ns-story-viewer[hidden] { display: none; }
.ns-story-frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; max-height: 100dvh;
  background: #000; overflow: hidden; }
@media (min-width: 768px) { .ns-story-frame { height: 92dvh; border-radius: 18px; width: min(460px, calc(92dvh * 9 / 16)); } }
.ns-story-progress { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; gap: 4px; z-index: 4; }
.ns-story-seg { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 3px; overflow: hidden; }
.ns-story-fill { display: block; height: 100%; width: 0; background: #fff; }
.ns-story-top { position: absolute; top: 1.2rem; left: .8rem; right: .5rem; display: flex; align-items: center; gap: .25rem; z-index: 4; color: #fff; }
.ns-story-title { flex: 1; font-weight: 700; font-size: .92rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-story-ctrl { border: 0; background: rgba(0,0,0,.35); color: #fff; width: 2.3rem; height: 2.3rem; border-radius: 50%; }
.ns-story-ctrl:focus-visible, .ns-story-arrow:focus-visible { outline: 3px solid var(--naydor-gold); outline-offset: 2px; }
.ns-story-slides, .ns-story-slide { position: absolute; inset: 0; }
.ns-story-slide[hidden] { display: none; }
.ns-story-media { width: 100%; height: 100%; object-fit: cover; background: #000; }
.ns-story-hit { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ns-story-cta { position: absolute; left: .7rem; right: .7rem; bottom: .9rem; z-index: 3; display: flex; flex-direction: column; gap: .45rem; }
.ns-story-deal { align-self: flex-start; background: var(--naydor-gold); color: #fff; font-size: .8rem; border-radius: 999px; padding: .25rem .75rem; }
.ns-story-cd { font-variant-numeric: tabular-nums; margin-left: .3rem; }
.ns-story-prod { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.94); color: #1f2329;
  border-radius: 14px; padding: .45rem .55rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ns-story-prod-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.ns-story-prod-info { flex: 1; min-width: 0; }
.ns-story-prod-name { display: block; font-weight: 700; font-size: .85rem; color: #1f2329; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-story-prod-price { font-size: .82rem; }
.ns-story-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; border: 0; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ns-navy); display: none; }
.ns-story-arrow-prev { left: .5rem; }
.ns-story-arrow-next { right: .5rem; }
@media (hover: hover) and (pointer: fine) { .ns-story-arrow { display: block; } }

/* ---------- Bannière live ---------- */
.ns-live-banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding: 1.1rem 1.4rem;
  border-radius: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--ns-navy) 0%, #3a1f6e 55%, #b23a5a 100%); box-shadow: 0 12px 34px rgba(25,42,108,.3); }
.ns-live-banner.is-on-air { background: linear-gradient(120deg, #7a0f2a 0%, #c21d45 60%, #e28a3b 100%); }
.ns-live-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; letter-spacing: .06em; font-size: .78rem;
  text-transform: uppercase; background: rgba(255,255,255,.16); border-radius: 999px; padding: .3rem .8rem; }
.ns-live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.7);
  animation: ns-live-pulse 1.6s infinite; }
@keyframes ns-live-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.ns-live-body { flex: 1 1 260px; min-width: 0; }
.ns-live-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 0 0 .2rem; color: #fff; }
.ns-live-desc { margin: 0 0 .35rem; opacity: .9; font-size: .9rem; }
.ns-live-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .85rem; opacity: .95; }
.ns-live-deal { background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 .6rem; font-weight: 700; }
.ns-live-cd { margin-top: .35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ns-live-products { display: flex; gap: .4rem; }
.ns-live-prod { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.9); display: flex;
  align-items: center; justify-content: center; font-size: .6rem; color: #1f2329; text-decoration: none; }
.ns-live-prod img { width: 100%; height: 100%; object-fit: cover; }
.ns-live-cta { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .ns-story-ring { transition: none; }
  .ns-story-bubble:hover .ns-story-ring { transform: none; }
  .ns-live-dot { animation: none; }
}

/* Tableau de bord */
.ns-story-dash-thumb { object-fit: cover; }
