/* ===== Page Actualités ===== */
.actu-hero{
  background:#fff;
  padding:56px 0 22px;
  text-align:center;
}
.actu-hero h1{
  margin:0 0 10px;
  font-size:44px;
  font-weight:900;
  color:#0b0b0b;
}
.actu-hero p{
  max-width:720px;
  margin:0 auto;
  color:#444;
  font-size:16px;
  line-height:1.7;
}

.actu-list{
  padding:24px 0 70px;
  background:#fff;
}

.actu-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  max-width:1100px;
  margin:0 auto;
}

.actu-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #ececec;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.actu-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,0,0,.10);
}

.actu-card__media{
  aspect-ratio:16 / 10;
  background:#f1f1f1;
}
.actu-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.actu-card__body{
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.actu-card__date{
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#c0392b;
}
.actu-card__title{
  margin:0;
  font-size:19px;
  line-height:1.35;
  font-weight:800;
  color:#111;
}
.actu-card__excerpt{
  margin:0;
  color:#555;
  font-size:14.5px;
  line-height:1.6;
}
/* fonctionne en <a> comme en <button> */
.actu-card__link{
  margin-top:auto;
  align-self:flex-start;
  font:inherit;
  font-weight:700;
  color:#16a766;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  text-decoration:none;
}
.actu-card__link:hover{ text-decoration:underline; }

/* États (chargement / vide / erreur) */
.actu-loading, .actu-empty, .actu-error{
  text-align:center;
  color:#666;
  padding:48px 16px;
  font-size:16px;
  line-height:1.6;
}
.actu-error{ color:#c0392b; }

/* ===== Fenêtre de lecture (modal) ===== */
.actu-modal[hidden]{ display:none; }
.actu-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px;
  overflow:auto;
}
.actu-modal__backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
}
.actu-modal__dialog{
  position:relative;
  margin:auto;
  width:100%;
  max-width:720px;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.actu-modal__close{
  position:absolute;
  top:10px;
  right:14px;
  z-index:2;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  color:#222;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.actu-modal__media{
  aspect-ratio:16 / 9;
  background:#f1f1f1;
}
.actu-modal__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.actu-modal__text{ padding:22px 26px 28px; }
.actu-modal__title{
  margin:6px 0 14px;
  font-size:26px;
  font-weight:900;
  line-height:1.25;
  color:#111;
}

/* Typographie de l'article formaté */
.actu-article{ color:#333; font-size:16px; line-height:1.75; }
.actu-article p{ margin:0 0 14px; }
.actu-article ul{ margin:0 0 14px; padding-left:22px; }
.actu-article li{ margin:4px 0; }
.actu-article h3, .actu-article h4, .actu-article h5{
  margin:18px 0 8px;
  line-height:1.3;
  color:#0b0b0b;
}
.actu-article strong{ font-weight:800; }
.actu-article a{ color:#16a766; }

/* Responsive */
@media (max-width: 900px){
  .actu-grid{ grid-template-columns:repeat(2, 1fr); }
  .actu-hero h1{ font-size:34px; }
}
@media (max-width: 560px){
  .actu-grid{ grid-template-columns:1fr; }
  .actu-modal{ padding:0; }
  .actu-modal__dialog{ border-radius:0; min-height:100%; }
}
