/* ==========================================================================
   MEDELEC - ARTICLE DETAIL STYLE DEFINITIONS (ULTRA-PREMIUM B2B LUXURY)
   Atmospheric Dark Theme, Elegant Light Article Card & Solid Readability
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

/* --- PAGE LEVEL THEME FOR ARTICLES --- */
body {
  background-color: #020617 !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
}

/* Atmospheric Blue grid background identical to references page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: #020617 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, #0b5e92 0, #05386b 50%, #020617 100%) !important;
  background-size: 50px 50px, 50px 50px, 100% 100% !important;
  z-index: -1;
  pointer-events: none;
}

/* --- WRAPPER SECTION --- */
.actualite-detail {
  padding: clamp(120px, 15vw, 170px) 0 clamp(80px, 12vw, 120px);
  position: relative;
  overflow: hidden;
}

/* --- THE WHITE ARTICLE CARD --- */
.article-card {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff !important; /* Premium Crisp White Card */
  border: 1px solid rgba(2, 6, 23, 0.08) !important;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(2, 6, 23, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  position: relative;
  z-index: 2;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.article-card:hover {
  border-color: rgba(11, 94, 146, 0.25) !important;
  box-shadow:
    0 35px 80px rgba(2, 6, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.article-body {
  padding: clamp(30px, 6%, 50px);
}

/* --- BACK TO LIST LINK (PREMIUM WHITE PILL FOR HIGH LEGIBILITY) --- */
.back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 30px !important;
  color: #020617 !important; /* Crisp dark navy text */
  text-decoration: none !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important; /* Extremely bold for legibility */
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  background: #ffffff !important; /* Pure solid white pill background */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(2, 6, 23, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  left: 0 !important;
}

.back-link:hover {
  color: #ffffff !important;
  background: #0b5e92 !important; /* Shift to beautiful brand blue on hover */
  border-color: #0b5e92 !important;
  box-shadow: 0 4px 20px rgba(11, 94, 146, 0.4) !important;
  transform: translateX(-4px) !important;
}

/* --- TITLE & HEADINGS --- */
.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 16px !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important; /* Crisp Deep Navy/Black */
  color: #0f172a !important;
  filter: none !important;
}

/* --- DATE METADATA --- */
.article-date {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #64748b !important; /* Muted Slate Grey */
  margin-bottom: 35px !important;
}

.article-date::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #facc15;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}

/* --- ARTICLE HERO IMAGE --- */
.article-hero {
  width: 100% !important;
  height: clamp(240px, 45vw, 440px) !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(2, 6, 23, 0.06) !important;
  margin-bottom: 40px !important;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08) !important;
  background-color: #f8fafc !important;
}

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

/* --- ARTICLE TEXT CONTENT (HIGH CONTRAST BLACK) --- */
.article-content {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(1rem, 1.8vw, 1.12rem) !important;
  line-height: 1.85 !important;
  color: #1e293b !important; /* Slate Black for crystal-clear readability */
}

/* Override inline section tags style from HTML content */
.article-content section {
  color: #1e293b !important;
  font-family: 'Outfit', sans-serif !important;
  line-height: 1.85 !important;
}

.article-content p {
  margin-bottom: 24px;
}

/* Highlighted keywords completely black */
.article-content strong {
  color: #020617 !important; /* Solid deep black for high contrast */
  font-weight: 800 !important;
  text-shadow: none !important;
}

.article-content ul, 
.article-content ol {
  margin: 0 0 24px 20px;
}

.article-content li {
  margin-bottom: 12px;
  position: relative;
}

/* Style list markers beautifully */
.article-content ul li::marker {
  color: #0b5e92 !important; /* Elegant brand blue */
}

/* --- EDITOR INFO --- */
.editor {
  margin-top: 50px !important;
  padding-top: 25px !important;
  border-top: 1px solid rgba(2, 6, 23, 0.08) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.9rem !important;
  font-style: italic !important;
  color: #64748b !important;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .article-card {
    margin: 0 16px;
    border-radius: 24px;
  }
  .article-body {
    padding: 24px;
  }
  .article-title {
    font-size: 1.8rem;
  }
  .back-link {
    margin-bottom: 24px;
  }
}







/* Article Container - Unified Desktop & Mobile */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(20px, 4%, 60px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.08);
}

/* Article Content */
.article-content {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 20px;
  color: #333;
}

.article-content strong {
  color: #1a1a2e;
  font-weight: 700;
}

.article-content li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: #333;
}

/* Highlight Box - Same colors desktop & mobile */
.article-highlight {
  background: #f0f7ff;
  border-left: 4px solid #0b5e92;
  padding: 20px;
  border-radius: 8px;
  margin: 28px 0;
}

.article-highlight p {
  margin: 0;
  color: #1a1a2e;
  font-weight: 500;
}

/* Mobile - Same colors as desktop */
@media (max-width: 900px) {
  .article-container {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.08);
  }

  .article-content,
  .article-content p,
  .article-content li {
    color: #333;
  }

  .article-content strong {
    color: #1a1a2e;
  }

  .article-highlight {
    background: #f0f7ff;
    border-left: 4px solid #0b5e92;
  }

  .article-highlight p {
    color: #1a1a2e;
  }
}

@media (max-width: 480px) {
  .article-container {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.08);
  }

  .article-content,
  .article-content p,
  .article-content li {
    color: #333;
  }

  .article-content strong {
    color: #1a1a2e;
  }

  .article-highlight {
    background: #f0f7ff;
    border-left: 4px solid #0b5e92;
  }
}