/* Actualites */
.news-hero{
  display: grid;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 22px;
  grid-template-columns: 1fr auto;
  position: relative;
  overflow: hidden;
}
.news-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px 220px at 8% -20%, rgba(25,193,180,.16), transparent 70%),
    radial-gradient(480px 220px at 92% -30%, rgba(247,183,51,.14), transparent 70%);
  pointer-events: none;
}
.news-hero > *{ position: relative; z-index: 1; }

/* Match map-day button style for admin CTA and empty-state CTA */
.news-hero .button,
.news-empty .btn--primary{
  border-radius: 12px;
  border: 1px solid rgba(0,10,255,1) !important;
  background: rgba(0,10,255,.45) !important;
  color: #fff !important;
  padding: 7px 12px;
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,10,255,.55) !important;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.news-hero .button:hover,
.news-empty .btn--primary:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.35);
}

.news-list{
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.news-card{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  align-items: start;
  transition: transform .15s ease, border-color .15s ease;
}
.news-card:hover{
  transform: translateY(-2px);
  border-color: rgba(25,193,180,.25);
}

.news-thumb{
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

.news-thumb-btn{
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.news-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8,12,20,0.35);
  opacity: 0;
  transition: opacity .18s ease;
}
.news-thumb-btn:hover .news-thumb__overlay{
  opacity: 1;
}
.news-thumb__pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8,12,20,0.65);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-thumb-fallback{
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.news-body{
  display: grid;
  gap: 6px;
}

.news-body h3{
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.news-body p{
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .9rem;
}

.news-meta .badge{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  padding: 5px 10px;
}

.news-empty{
  padding: 20px;
  text-align: center;
  display: grid;
  gap: 8px;
}

.news-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 70px 16px 24px;
}
.news-modal.open{
  display: grid;
}
.news-modal__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.7);
}
.news-modal__panel{
  position: relative;
  z-index: 1;
  max-width: min(92vw, 980px);
  max-height: 86vh;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,12,20,0.92);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
}
.news-modal__panel img{
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  margin-top: 8px;
}
.news-modal__close{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(15,23,42,0.7);
  color: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

body.modal-open footer,
body.modal-open .ft{
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 700px){
  .news-hero{
    grid-template-columns: 1fr;
  }
  .news-card{
    grid-template-columns: 1fr;
  }
  .news-thumb{
    width: 100%;
    height: 180px;
  }
  .news-meta{
    flex-direction: column;
    align-items: flex-start;
  }
}
