/* ============================================================
   AEDT - Page d'Actualités Professionnelle (actualites.css)
   ============================================================ */

:root {
  --news-blue: #0b55a1;
  --news-navy: #06254a;
  --news-gold: #ffbd2e;
  --news-surface: #ffffff;
  --news-bg-subtle: #f4f8fc;
  --news-border: #dfe7f1;
  --news-text: #14243b;
  --news-muted: #5d6b7c;
  --news-card-radius: 18px;
  --news-shadow: 0 10px 30px rgba(10, 39, 76, 0.07);
  --news-shadow-hover: 0 18px 45px rgba(10, 39, 76, 0.14);
}

/* --- Hero Actualités --- */
.news-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #051d38 0%, #083464 45%, #0b55a1 100%);
  color: #ffffff;
  padding: 68px 0 54px;
  margin-bottom: 38px;
}
.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 85% 15%, rgba(255, 189, 46, 0.18), transparent 50%),
              radial-gradient(600px circle at 15% 90%, rgba(93, 174, 244, 0.22), transparent 50%);
  pointer-events: none;
}
.news-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.news-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd875;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.news-hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffbd2e;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffbd2e;
  animation: pulseNews 2s infinite;
}
@keyframes pulseNews {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.news-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.news-hero h1 span {
  color: #ffd875;
  background: linear-gradient(120deg, #ffbd2e, #ffe59e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.news-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2edf9;
  margin: 0 auto 30px;
  max-width: 680px;
}

/* --- Barre de recherche & filtres --- */
.news-controls-wrap {
  position: relative;
  z-index: 5;
  margin-top: -24px;
  margin-bottom: 40px;
}
.news-controls-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(10, 39, 76, 0.12);
  border-radius: 20px;
  padding: 18px 24px;
}
.news-search-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.news-search-box {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}
.news-search-box svg {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  fill: #7d8ea3;
  pointer-events: none;
}
.news-search-box input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  border: 1.5px solid #d4e0ee;
  background: #f8fafc;
  color: #15273d;
  font-size: 0.95rem;
  font-weight: 550;
  outline: none;
  transition: all 0.2s ease;
  min-height: 46px;
  margin: 0;
}
.news-search-box input:focus {
  border-color: #0b55a1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 85, 161, 0.15);
}
.news-filter-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-chip {
  background: #edf3fa;
  color: #3b506a;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip:hover {
  background: #e2edf9;
  color: #0b55a1;
  border-color: #bad3f0;
}
.filter-chip.active {
  background: #0b55a1;
  color: #ffffff;
  border-color: #0b55a1;
  box-shadow: 0 4px 14px rgba(11, 85, 161, 0.28);
}
.filter-chip .chip-count {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}
.filter-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --- Section À la Une (Featured) --- */
.news-featured-section {
  margin-bottom: 46px;
}
.news-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #ffffff;
  border: 1px solid var(--news-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--news-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--news-shadow-hover);
}
.news-featured-media {
  position: relative;
  min-height: 340px;
  background: #08284d;
  overflow: hidden;
}
.news-featured-media img,
.news-featured-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-featured-media .featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, #e8a617, #ffbd2e);
  color: #0d1e34;
  font-weight: 850;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.news-featured-media .has-video-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(10, 25, 45, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.news-featured-content {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--news-muted);
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #eaf3fd;
  color: #0b55a1;
}
.category-pill.cat-logement { background: #e6f6ee; color: #0d7845; }
.category-pill.cat-evenement { background: #f5eefc; color: #7934c7; }
.category-pill.cat-communique { background: #fdf5e2; color: #a46908; }
.category-pill.cat-vie-etudiante { background: #e8f3ff; color: #0b55a1; }
.category-pill.cat-pedagogie { background: #fcefed; color: #be2e2e; }

.news-featured-content h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 850;
  color: var(--news-navy);
  margin: 0 0 16px;
}
.news-featured-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--news-muted);
  margin: 0 0 24px;
}
.news-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.btn-read-more {
  background: var(--news-blue);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-read-more:hover {
  background: #084a86;
  transform: translateY(-1px);
}
.btn-share-wa {
  background: #25d366;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-share-wa:hover {
  background: #1eb857;
  transform: translateY(-1px);
  color: #ffffff;
}

/* --- Grille des actualités --- */
.news-grid-section {
  margin-bottom: 60px;
}
.news-section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.news-section-title-bar h2 {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--news-navy);
  margin: 0;
}
.news-section-title-bar p {
  color: var(--news-muted);
  margin: 4px 0 0;
  font-size: 0.92rem;
}
.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card-pro {
  background: #ffffff;
  border: 1px solid var(--news-border);
  border-radius: var(--news-card-radius);
  overflow: hidden;
  box-shadow: var(--news-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.news-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--news-shadow-hover);
  border-color: #b9d1ec;
}
.news-card-media {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #092c53, #154e88);
  overflow: hidden;
}
.news-card-media img,
.news-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card-pro:hover .news-card-media img {
  transform: scale(1.04);
}
.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #0a2d54, #1263ab);
  color: #ffd875;
}
.card-media-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.card-media-tags .category-pill {
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card-media-tags .media-type-badge {
  background: rgba(12, 30, 50, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-date {
  font-size: 0.8rem;
  color: #798a9c;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-body h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--news-navy);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--news-muted);
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf2f7;
  padding-top: 14px;
  margin-top: auto;
}
.news-read-link {
  color: var(--news-blue);
  font-weight: 800;
  font-size: 0.88rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.16s ease;
}
.news-read-link:hover {
  color: #084a86;
  text-decoration: underline;
}
.news-share-mini {
  color: #25d366;
  background: #f0fbf4;
  border: 1px solid #c7f0d5;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
  text-decoration: none;
}
.news-share-mini:hover {
  background: #25d366;
  color: #ffffff;
  transform: scale(1.08);
}
.news-share-mini svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- État vide / Aucun résultat --- */
.news-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border: 1px dashed #d1deed;
  border-radius: 20px;
  color: var(--news-muted);
}
.news-empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.news-empty-state h3 {
  color: var(--news-navy);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* --- Section Communiqués Officiels --- */
.news-official-releases {
  background: linear-gradient(180deg, #f0f6fd, #e5effa);
  border: 1px solid #dbe7f4;
  border-radius: 22px;
  padding: 34px 36px;
  margin-bottom: 50px;
}
.official-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.official-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0b55a1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(11, 85, 161, 0.25);
}
.official-header h2 {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--news-navy);
  margin: 0;
}
.official-header p {
  color: var(--news-muted);
  font-size: 0.88rem;
  margin: 2px 0 0;
}
.official-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.official-item {
  background: #ffffff;
  border: 1px solid #dce6f2;
  border-left: 4px solid var(--news-blue);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.official-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(10, 39, 76, 0.08);
}
.official-item-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--news-navy);
  margin-bottom: 4px;
}
.official-item-info span {
  font-size: 0.78rem;
  color: #728498;
}
.official-item .btn-consult {
  background: #edf5ff;
  color: #0b55a1;
  border: 1px solid #bed6f2;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.official-item .btn-consult:hover {
  background: #0b55a1;
  color: #ffffff;
}

/* --- Bannière Canal WhatsApp AEDT --- */
.news-whatsapp-banner {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #ffffff;
  border-radius: 22px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 50px;
  box-shadow: 0 12px 36px rgba(18, 140, 126, 0.22);
}
.wa-banner-content {
  max-width: 620px;
}
.wa-banner-content .wa-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.wa-banner-content h2 {
  font-size: 1.55rem;
  font-weight: 850;
  margin: 0 0 8px;
}
.wa-banner-content p {
  color: #e3f8f2;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.btn-wa-join {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn-wa-join:hover {
  background: #1eb857;
  transform: translateY(-2px);
  color: #ffffff;
}

/* --- Modale Lecteur d'Article (Reader) --- */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 36, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.news-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.news-modal-container {
  background: #ffffff;
  width: min(780px, 100%);
  max-height: 90vh;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-modal-overlay.open .news-modal-container {
  transform: scale(1) translateY(0);
}
.news-modal-top {
  position: relative;
  background: #092648;
}
.news-modal-media {
  width: 100%;
  max-height: 320px;
  min-height: 180px;
  background: #08213e;
  overflow: hidden;
}
.news-modal-media img,
.news-modal-media video {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 25, 45, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.16s ease;
}
.news-modal-close:hover {
  background: #ffffff;
  color: #0b55a1;
  transform: rotate(90deg);
}
.news-modal-scroll {
  padding: 30px 34px 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.news-modal-title {
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1.25;
  color: var(--news-navy);
  margin: 0 0 16px;
}
.news-modal-excerpt {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: #2b4566;
  padding: 14px 18px;
  background: #f1f6fc;
  border-left: 4px solid var(--news-blue);
  border-radius: 0 12px 12px 0;
  margin-bottom: 22px;
}
.news-modal-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #24354a;
  white-space: pre-line;
}
.news-modal-video-box {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
}
.news-modal-video-box video {
  width: 100%;
  max-height: 380px;
  display: block;
}
.news-modal-video-caption {
  display: block;
  padding: 10px 14px;
  background: #f4f7fb;
  font-size: 0.84rem;
  color: var(--news-muted);
  font-style: italic;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.news-modal-footer {
  border-top: 1px solid #e7edf4;
  padding: 16px 34px;
  background: #f9fbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.modal-author-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b55a1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}
.modal-author-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--news-navy);
}
.modal-author-text span {
  font-size: 0.76rem;
  color: #728498;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .news-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-featured-card {
    grid-template-columns: 1fr;
  }
  .news-featured-media {
    min-height: 260px;
  }
  .official-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .news-articles-grid {
    grid-template-columns: 1fr;
  }
  .news-hero {
    padding: 48px 0 38px;
  }
  .news-hero h1 {
    font-size: 2rem;
  }
  .news-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .news-featured-content {
    padding: 24px 20px;
  }
  .news-featured-content h2 {
    font-size: 1.35rem;
  }
  .news-whatsapp-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .wa-banner-content h2 {
    font-size: 1.35rem;
  }
  .btn-wa-join {
    width: 100%;
    justify-content: center;
  }
  .news-modal-scroll {
    padding: 20px;
  }
  .news-modal-footer {
    padding: 14px 20px;
  }
}
