body { padding-top: 70px; }
.nav { background: rgba(7,9,15,.92); backdrop-filter: blur(14px);
       border-bottom: 1px solid rgba(255,255,255,.06); }

.news-hero {
  text-align: center; padding: 54px 20px 26px;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,222,128,.10), transparent 60%);
}
.news-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.news-hero p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.news-page { max-width: 1080px; margin: 0 auto; padding: 10px 20px 70px; }
.news-loading, .news-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Article à la une ---------- */
.news-featured {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.08);
  min-height: 300px; display: flex; align-items: flex-end;
  background: var(--panel); background-size: cover; background-position: center;
  margin-bottom: 30px;
  transition: transform .25s, box-shadow .3s, border-color .25s;
}
.news-featured:hover { transform: translateY(-4px); border-color: rgba(74,222,128,.4); box-shadow: 0 22px 55px rgba(0,0,0,.5); }
.news-featured.has-img { min-height: 380px; }
.feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,15,.15) 0%, rgba(7,9,15,.55) 55%, rgba(7,9,15,.96) 100%);
}
.news-featured:not(.has-img) .feat-overlay {
  background: linear-gradient(120deg, rgba(74,222,128,.10), transparent 60%);
}
.feat-body { position: relative; z-index: 1; padding: 34px 36px; max-width: 720px; }
.feat-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.feat-tag, .nc-tag, .nm-tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 11px; border-radius: 20px;
  color: var(--tc, var(--accent));
  background: color-mix(in srgb, var(--tc, var(--accent)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 40%, transparent);
}
.feat-badge { font-size: 11.5px; font-weight: 700; color: var(--gold); }
.feat-date { font-size: 12px; color: var(--muted); }
.feat-body h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.feat-body p { color: #d7deea; font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.feat-more { color: var(--accent); font-weight: 800; font-size: 14px; }

/* ---------- Contrôles : recherche + filtres ---------- */
.news-controls {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.news-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 0 14px;
}
.news-search:focus-within { border-color: var(--accent); }
.ns-ico { opacity: .6; font-size: 14px; }
.news-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 14px; padding: 12px 0;
}
.news-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ntag {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: var(--muted); border-radius: 22px; padding: 8px 16px;
  font-family: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ntag:hover { color: var(--text); }
.ntag.active { color: #052e16; background: var(--accent); border-color: var(--accent); }

/* ---------- Grille de cartes ---------- */
.news-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.news-card2 {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: transform .18s, border-color .2s, box-shadow .25s;
}
.news-card2:hover { transform: translateY(-5px); border-color: rgba(74,222,128,.4); box-shadow: 0 16px 40px rgba(0,0,0,.42); }
.nc-img { height: 158px; background-size: cover; background-position: center; }
.nc-noimg {
  display: flex; align-items: center; justify-content: center; font-size: 38px; opacity: .5;
  background: linear-gradient(135deg, rgba(74,222,128,.08), rgba(18,22,33,.6));
}
.nc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.nc-date { font-size: 11.5px; color: var(--muted); }
.nc-body h3 { font-size: 17px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.nc-body p { color: #b9c2d0; font-size: 13.5px; line-height: 1.6; flex: 1; }
.nc-more { margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 13px; }

/* ---------- Modal de lecture ---------- */
.news-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.66); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .22s;
}
.news-modal.show { opacity: 1; }
.nm-box {
  position: relative; width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
  background: #0f1320; border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  transform: translateY(16px) scale(.98); transition: transform .22s;
}
.news-modal.show .nm-box { transform: none; }
.nm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 15px; backdrop-filter: blur(6px);
}
.nm-close:hover { background: rgba(0,0,0,.75); }
.nm-img { height: 240px; background-size: cover; background-position: center; }
.nm-body { padding: 26px 30px 32px; }
.nm-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nm-date { font-size: 12px; color: var(--muted); }
.nm-body h2 { font-size: 25px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.nm-content { color: #d7deea; font-size: 15px; line-height: 1.75; white-space: pre-line; }

@media (max-width: 560px) {
  .feat-body { padding: 24px 22px; }
  .nm-body { padding: 22px; }
  .nm-img { height: 180px; }
}

footer {
  padding: 26px 20px 34px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px;
}
footer b { font-weight: 900; }
.foot-note { font-size: 11px; opacity: .6; }
