/* ============================================================
   release-notes.css — Page Release Notes
   Hero + bouton retour + stats des cartes. La timeline serpentante
   réutilise .cv-thread / .cv-rail / .xp-card (cv.css) ; release-notes.js
   pilote le fil et le rendu. Scopé .rn-*.
   ============================================================ */

/* ── Bouton retour discret (haut gauche, fixe) ── */
.rn-back {
  position: fixed;
  top: 1.4rem; left: 1.4rem;
  z-index: 95;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), background 0.2s ease, color 0.2s ease;
}
.rn-back svg { width: 18px; height: 18px; }
.rn-back:hover { transform: translateX(-2px); background: rgba(255,255,255,0.16); color: #fff; }
.rn-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* sous la nav quand elle est visible → on le décale un peu (la nav flotte en haut) */
@media (max-width: 600px) { .rn-back span { display: none; } .rn-back { padding: 0.5rem; } }

/* ── Hero ── */
.rn-hero { padding: 3.5rem 0 0.5rem; }
.rn-hero-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0.5rem 0 1.1rem;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}
.rn-hero-sub {
  max-width: 660px;
  font-size: 1.05rem; line-height: 1.65;
  color: rgba(255,255,255,0.84);
}
.rn-hero-note { margin-top: 0.9rem; font-size: 0.92rem; color: rgba(255,255,255,0.6); }
.rn-hero-note strong { color: #5eead4; }

/* ── Version dans la pastille (réutilise .xp-logo, mais texte version) ── */
.rn-logo {
  font-family: ui-monospace, 'SF Mono', monospace !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Chiffres clés dans le détail déroulé ── */
.rn-stats {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.rn-stat { display: flex; flex-direction: column; }
.rn-stat-num {
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1;
  background: linear-gradient(120deg, var(--accent, #7C3AED), var(--accent2, #00D8A2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rn-stat-label { margin-top: 0.25rem; font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ── En-tête « produit documenté » au-dessus de la timeline ── */
.rn-product {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 auto 1.8rem;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.rn-product-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: #5eead4;
  background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(0,216,162,0.3));
  flex-shrink: 0;
}
.rn-product-text { display: flex; flex-direction: column; line-height: 1.25; }
.rn-product-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.rn-product-name { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; }
.rn-product-badge {
  margin-left: 0.4rem;
  font-family: ui-monospace, monospace; font-size: 0.74rem; font-weight: 700;
  color: #c4b5fd;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  padding: 0.18rem 0.55rem; border-radius: 999px;
}
