/* Bandeau nouveautés + panneau dédié */
.oft-news-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.12), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  user-select: none;
}
.oft-news-ticker:hover,
.oft-news-ticker:focus-visible {
  border-color: #00e676;
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
  outline: none;
}
.oft-news-ticker-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #00e676;
  color: #0a0f0d;
}
.oft-news-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.oft-news-ticker-track {
  display: flex;
  width: max-content;
  animation: oft-ticker-scroll 45s linear infinite;
}
.oft-news-ticker:hover .oft-news-ticker-track {
  animation-play-state: paused;
}
.oft-news-ticker-content {
  white-space: nowrap;
  padding-right: 48px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #e8e8e8);
}
.oft-news-ticker-cta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #00e676;
}
@keyframes oft-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.oft-nouveautes-panel {
  max-width: 720px;
  width: 96%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.oft-nouveautes-body {
  overflow-y: auto;
  flex: 1;
}
.oft-nouveautes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oft-nouveaute-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
  transition: border-color 0.15s;
}
.oft-nouveaute-card:hover {
  border-color: rgba(0, 230, 118, 0.45);
}
.oft-nouveaute-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.oft-nouveaute-icon { font-size: 18px; }
.oft-nouveaute-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}
.oft-nouveaute-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}
.oft-nouveaute-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}
.oft-nouveaute-summary {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.oft-nouveaute-detail {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}
.oft-nouveaute-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Badge "non lu" — rouge clignotant */
.oft-ticker-badge--unread {
  background: #ff4757 !important;
  color: #fff !important;
  animation: oft-badge-pulse 2s ease-in-out infinite;
}
@keyframes oft-badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* Point vert dans les cards (item non lu) */
.oft-nouv-new-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,230,118,.25);
}

/* Card épinglée */
.oft-nouveaute-card--pinned {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.05);
}

/* Bouton actualiser dans le header panel */
.oft-nouveautes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .oft-news-ticker-cta { display: none; }
  .oft-news-ticker { padding: 7px 10px; }
}
