/*
 * changelog-ticker.css — VERSION ULTRA COMPACTE
 * ════════════════════════════════════════════════════════════
 * Ligne unique : "v2.6.0 • 27 avr. 2026 • Titre court"
 * Hauteur ~26px, fond bleu pâle discret, animation fade au switch.
 * ════════════════════════════════════════════════════════════ */

a.sf-changelog-ticker {
  display: none;
  text-decoration: none;
  align-items: center;
  gap: 8px;
  /* hauteur stricte pour empêcher tout pseudo-element de l'agrandir */
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  margin: 0;
  border-radius: 12px;
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #e2e8f0;
  box-sizing: border-box !important;
}

.sf-ct-version {
  font-weight: 800;
  color: #4338ca;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.sf-ct-sep {
  color: #94a3b8;
  flex-shrink: 0;
}
.sf-ct-date {
  color: #64748b;
  flex-shrink: 0;
}
.sf-ct-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #1e293b;
  animation: sf-ct-fade 500ms ease-out;
}

@keyframes sf-ct-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a.sf-changelog-ticker:hover {
  background: #e0e7ff !important;
  background-color: #e0e7ff !important;
  border-color: #c7d2fe;
}

/* ─── Variante MOBILE ─── */
@media (max-width: 767px) {
  a.sf-changelog-ticker-mobile {
    display: flex;
    margin: 4px 12px 8px 12px;
  }
}
@media (min-width: 768px) {
  a.sf-changelog-ticker-mobile { display: none; }
}

/* ─── Variante DESKTOP ─── */
@media (min-width: 768px) {
  a.sf-changelog-ticker-desktop {
    display: flex;
    max-width: 720px;
    margin: 6px auto 4px auto;
  }
}
@media (max-width: 767px) {
  a.sf-changelog-ticker-desktop { display: none; }
}
