@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Barlow+Condensed:wght@700;900&family=DM+Sans:wght@400;500&display=swap');

/* ============================================================
   BASE
   ============================================================ */

body.page-news {
  background: #09090f;
  color: #e2e8f0;
  font-family: 'DM Sans', sans-serif;
}

body.page-news::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(187,62,253,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,253,233,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.news-hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.news-hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #25fde9;
  margin-bottom: 1rem;
}

.news-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: #f8fafc;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.news-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-hero-sub {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 520px;
  line-height: 1.6;
}

/* ============================================================
   FILTRES
   ============================================================ */

.news-filters {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}

.news-filter-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-right: 4px;
}

.news-filter-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.news-filter-btn:hover {
  border-color: #bb3efd;
  color: #bb3efd;
}

.news-filter-btn.active {
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  border-color: transparent;
  color: #fff;
}

.news-counter {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: #475569;
  letter-spacing: 0.08em;
}

.news-counter span { color: #bb3efd; font-weight: 700; }

/* ============================================================
   MAIN
   ============================================================ */

.news-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============================================================
   GRID
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* ============================================================
   CARD
   ============================================================ */

.news-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #bb3efd, #25fde9);
  opacity: 0;
  transition: opacity 0.25s;
}

.news-card:hover {
  border-color: rgba(187,62,253,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(187,62,253,0.1);
}

.news-card:hover::before { opacity: 1; }

.news-card.nc-high {
  border-color: rgba(187,62,253,0.2);
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ============================================================
   BADGES CATEGORIE
   ============================================================ */

.news-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.nb-dep { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.nb-fin { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.nb-pro { background: rgba(187,62,253,0.12); color: #bb3efd; border: 1px solid rgba(187,62,253,0.25); }
.nb-rch { background: rgba(59,130,246,0.1);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.nb-mkt { background: rgba(37,253,233,0.1);  color: #25fde9; border: 1px solid rgba(37,253,233,0.2); }

.news-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #475569;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   CONTENU CARD
   ============================================================ */

.news-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0;
}

.news-resume {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.news-source {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-read-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bb3efd;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.news-read-btn:hover { opacity: 0.7; }

/* ============================================================
   EMPTY / LOADING
   ============================================================ */

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #475569;
  letter-spacing: 0.1em;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.news-page-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.news-page-btn:hover { border-color: #bb3efd; color: #bb3efd; }

.news-page-btn.active {
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  border-color: transparent;
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .news-hero    { padding: 2rem 1.25rem 1.5rem; }
  .news-main    { padding: 1.5rem 1.25rem; }
  .news-filters { padding: 1rem 1.25rem; }
  .news-grid    { grid-template-columns: 1fr; gap: 14px; }
  .news-counter { margin-left: 0; margin-top: 4px; }
}
