/* ══════════════════════════════════════
   actualites.css — Page Actualités
   ══════════════════════════════════════ */

/* ── PAGE HEADER ── */
.actu-page-header {
  padding: 60px 0 40px;
  margin-top: 48px;
}
.actu-page-header h1 {
  font-size: 2.8rem;
  margin: 0 0 8px;
}
.actu-page-header p {
  color: var(--muted);
  margin: 0;
}

/* ── ACTUALITÉS RÉCENTES ── */
.carousel-section {
  padding-bottom: 64px;
}

.reference-card--pending {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(19, 38, 65, 0.78), rgba(7, 18, 33, 0.9));
  box-shadow: none;
}

.reference-card--pending .card-body {
  display: grid;
  width: 100%;
  min-height: 320px;
  place-items: center;
  padding: 32px;
}

.pending-status {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: #0d1a2e;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}
.modal-body {
  padding: 32px 40px 40px;
}
.modal-body .tag {
  display: inline-block;
  background: #e8f0fd;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.modal-body h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.modal-body p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}
.modal-close {
  display: block;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover {
  background: #0a42c0;
}

/* ── ANCIENNES ACTUS ── */
.old-actus-section {
  padding-bottom: 80px;
}
.old-actus-section h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
.old-actu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.old-actu-card:nth-child(n + 2) {
  display: none;
}

.old-actu-card--pending {
  display: grid;
  min-height: 150px;
  place-items: center;
  grid-template-columns: 1fr;
  border-style: dashed;
  background: linear-gradient(145deg, rgba(19, 38, 65, 0.72), rgba(7, 18, 33, 0.86));
}
.old-actu-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  background: #0d1a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  transition: box-shadow 0.2s;
}
.old-actu-card:hover {
  box-shadow: 0 4px 20px rgba(12, 84, 237, 0.08);
}
.old-actu-card img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.old-actu-info .tag {
  display: inline-block;
  background: #e8f0fd;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.old-actu-info h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--dark);
}
.old-actu-info p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.old-actu-date {
  font-size: 0.8rem;
  color: #9aa4b2;
  white-space: nowrap;
}
.old-actu-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.btn-lire-plus {
  padding: 8px 18px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-lire-plus:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .old-actu-card {
    grid-template-columns: 1fr;
  }
  .old-actu-card img {
    width: 100%;
    height: 160px;
  }
  .old-actu-actions {
    align-items: flex-start;
  }
  .actu-page-header h1 {
    font-size: 2rem;
  }
  .modal-body {
    padding: 24px 22px 28px;
  }
  .modal-img {
    height: 180px;
  }
}
