/* ===================================================================
   FEUILLE DE STYLE OFFICIELLE : ACTUALITÉS & MODALES DE LECTURE
   SIRRI-NA & CO LEGAL (Desktop & Mobile)
   =================================================================== */

/* SECTION HERO OFFICIELLE ACTUALITÉS & PROJETS (Parfaitement lisible, fond bleu souverain & typographie lumineuse) */
.hero-card-shell.news-hero-shell,
.hero-card-shell {
  background: var(--navy-deep, #001226) !important;
  color: #FFFFFF !important;
  position: relative;
  overflow: hidden;
}

.blog-hero-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 42px 20px 24px !important;
  margin-bottom: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  color: #FFFFFF !important;
  text-align: center !important;
}

.blog-hero-inner {
  max-width: 960px !important;
  margin: 0 auto !important;
  text-align: center !important;
  position: relative !important;
  z-index: 3 !important;
}

.blog-breadcrumb {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 16px !important;
}

.blog-breadcrumb a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.blog-breadcrumb a:hover {
  color: var(--gold-highlight, #D4A853) !important;
}

.blog-breadcrumb-sep {
  opacity: 0.5 !important;
  color: #FFFFFF !important;
}

.blog-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(168, 77, 27, 0.25) !important;
  color: #FEE7B8 !important;
  border: 1px solid rgba(212, 168, 83, 0.5) !important;
  font-family: var(--font-display, 'Cinzel', serif) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border-radius: 30px !important;
  margin: 0 auto 18px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.blog-hero-title {
  font-family: var(--font-serif, 'Playfair Display', serif) !important;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  margin: 0 auto 16px !important;
  color: #FFFFFF !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  max-width: 900px !important;
}

.blog-hero-subtitle {
  font-size: 1.05rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.7 !important;
  max-width: 820px !important;
  margin: 0 auto 28px !important;
  font-weight: 400 !important;
}

.filter-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}

.filter-tab-btn.active {
  background: var(--copper-terracotta, #A84D1B) !important;
  color: #FFFFFF !important;
  border: 1px solid #D4A853 !important;
  box-shadow: 0 4px 14px rgba(168, 77, 27, 0.4) !important;
}

/* Grille Métriques & Partenaires */
.news-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 22px 0 26px;
  background: rgba(10, 25, 47, 0.03);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(168, 77, 27, 0.16);
}
.news-metric-card {
  text-align: center;
}
.news-metric-num {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--copper-terracotta);
  display: block;
  line-height: 1.2;
}
.news-metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.35;
  margin-top: 4px;
  display: block;
}
.news-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.news-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(168, 77, 27, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: var(--navy-deep);
}
.news-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.news-gallery-item img:hover {
  transform: scale(1.04);
}
.badge-news {
  background-color: var(--copper-terracotta);
  color: var(--white);
}

/* Grille des Cartes d'Actualités */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 15px;
  margin-bottom: 50px;
}
@media (max-width: 920px) {
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.news-compact-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(168, 77, 27, 0.16);
  box-shadow: 0 4px 18px rgba(10, 25, 47, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.news-compact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(10, 25, 47, 0.12);
  border-color: var(--copper-terracotta);
}
.news-compact-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--navy-deep);
  cursor: pointer;
}
.news-compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-compact-card:hover .news-compact-img {
  transform: scale(1.05);
}
.news-compact-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.news-compact-body {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-compact-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.news-compact-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.news-compact-card:hover .news-compact-title {
  color: var(--copper-terracotta);
}
.news-compact-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--copper-terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}
.news-compact-excerpt {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.news-compact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.news-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(10, 25, 47, 0.04);
  border: 1px solid rgba(10, 25, 47, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-deep);
}
.news-compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  margin-top: auto;
}
.news-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-highlight);
}
.news-author-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-deep);
  display: block;
  line-height: 1.2;
}
.news-author-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}
.btn-read-news-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #152A4A 100%);
  color: #FFFFFF !important;
  border: 1px solid var(--gold-highlight);
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(10, 25, 47, 0.15);
  white-space: nowrap;
  text-decoration: none;
}
.btn-read-news-compact:hover {
  background: var(--copper-terracotta);
  border-color: #FEE7B8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 77, 27, 0.35);
}

/* ===================================================================
   MODALE DE LECTURE DE L'ACTUALITÉ (POP-UP READER)
   VERROUILLÉE À OPACITY: 0 & VISIBILITY: HIDDEN PAR DÉFAUT
   =================================================================== */
.article-reader-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 18, 38, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
}

.article-reader-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.article-reader-dialog {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 18, 38, 0.45);
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 36px 40px;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.article-reader-overlay.open .article-reader-dialog {
  transform: scale(1) translateY(0);
}

.reader-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #0F172A;
  transition: all 0.2s ease;
  z-index: 10;
}
.reader-close-btn:hover {
  background: var(--copper-terracotta);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.reader-hero-media {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 24px;
}
.reader-hero-img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.reader-content-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}
.reader-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy-deep);
  line-height: 1.3;
  margin: 12px 0 8px;
}
.reader-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  margin: 20px 0;
}
.reader-author-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reader-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-highlight);
}
.reader-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}
