/* ═══════════════════════════════════════════════════════════════════════════
   Stack Scroll Posts Widget v2 — Styles
   ═══════════════════════════════════════════════════════════════════════════ */

.ssv2-scene *, .ssv2-scene *::before, .ssv2-scene *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* ── Scène ────────────────────────────────────────────────────────────────── */
.ssv2-scene {
  position: relative;
  background-color: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 20px;
}

/* ── Stack ────────────────────────────────────────────────────────────────── */
.ssv2-stack {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
}

/* ── Carte ────────────────────────────────────────────────────────────────── */
.ssv2-card {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: center center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  cursor: pointer;
}

/* ── Image ────────────────────────────────────────────────────────────────── */
.ssv2-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  will-change: transform;
}

/* ── Overlay fondu ────────────────────────────────────────────────────────── */
.ssv2-fade-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM — positions
   ═══════════════════════════════════════════════════════════════════════════ */
.ssv2-glass {
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
  z-index: 3;
  background-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

/* Bas */
.ssv2-glass--bottom {
  bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-radius: 0 0 inherit inherit;
}

/* Haut */
.ssv2-glass--top {
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  border-radius: inherit inherit 0 0;
}

/* Entier */
.ssv2-glass--full {
  inset: 0;
  height: 100% !important;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENU
   ═══════════════════════════════════════════════════════════════════════════ */
.ssv2-card-content {
  position: absolute;
  left: 0; right: 0;
  z-index: 10;
  padding: 28px 36px 34px;
}

.ssv2-content-bottom .ssv2-card-content { bottom: 0; }
.ssv2-content-top    .ssv2-card-content { top: 0; }
.ssv2-content-center .ssv2-card-content { top: 50%; transform: translateY(-50%); text-align: center; }

/* Meta */
.ssv2-card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}

.ssv2-cat {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.15);
  padding: 3px 11px; border-radius: 20px;
  backdrop-filter: blur(6px);
}

.ssv2-date {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.5);
}

/* Titre */
.ssv2-title {
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.ssv2-title a { color: inherit; text-decoration: none; }

/* Extrait */
.ssv2-excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bouton */
.ssv2-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: #fff; color: #111;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 30px; text-decoration: none;
  transition: gap .25s, transform .2s, background .2s;
  will-change: transform;
}
.ssv2-btn:hover { gap: 14px; transform: translateY(-2px); background: rgba(255,255,255,0.9); }
.ssv2-btn-arrow { width: 15px; height: 15px; flex-shrink: 0; transition: transform .2s; }
.ssv2-btn:hover .ssv2-btn-arrow { transform: translateX(3px); }

/* Compteur */
.ssv2-counter {
  position: absolute; top: 20px; right: 24px;
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  z-index: 10;
}

/* ── Dots ─────────────────────────────────────────────────────────────────── */
.ssv2-nav-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 100;
}

.ssv2-nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer; padding: 0;
  transition: background .3s, transform .3s, width .3s;
}
.ssv2-nav-dot.active {
  background: #fff;
  width: 22px; border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ssv2-scene { padding: 0 12px; min-height: auto; }
  .ssv2-stack { max-width: 100%; aspect-ratio: 4/3; }
  .ssv2-card-content { padding: 18px 20px 22px; }
  .ssv2-title { font-size: clamp(1rem, 5vw, 1.4rem); }
  .ssv2-excerpt { -webkit-line-clamp: 2; font-size: 0.83rem; }
}
@media (max-width: 480px) {
  .ssv2-excerpt { display: none; }
  .ssv2-counter { display: none; }
}
