/**
 * AllôPharma — Feuille de style dédiée Page Actualités (actualites.html)
 * Standard d'Excellence 100M€ · Sober Radius (4-8px) · WCAG AAA
 */

:root {
  --news-primary: #0c8855;
  --news-primary-hover: #0a5e3a;
  --news-primary-light: #f0faf5;
  --news-primary-border: #b4f1d8;
  --news-dark: #0f172a;
  --news-muted: #475569;
  --news-light: #f8fafc;
  --news-border: #e2e8f0;
  --news-radius-sm: 4px;
  --news-radius-md: 6px;
  --news-radius-lg: 8px;
}

[data-theme="dark"] {
  --news-primary-light: #064e3b;
  --news-primary-border: #047857;
  --news-dark: #f8fafc;
  --news-muted: #94a3b8;
  --news-light: #1e293b;
  --news-border: #334155;
}

.news-page {
  background-color: var(--news-light);
  color: var(--news-muted);
  min-height: 100vh;
}

/* HERO SECTION */
.news-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--news-primary-light) 100%);
  border-bottom: 1px solid var(--news-border);
  padding: clamp(96px, 12vw, 140px) 20px 48px;
  text-align: center;
}

[data-theme="dark"] .news-hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.news-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.news-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--news-muted);
  margin-bottom: 16px;
}

.news-crumb a {
  color: var(--news-primary);
  text-decoration: none;
  font-weight: 500;
}

.news-crumb a:hover {
  text-decoration: underline;
}

.news-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(12, 136, 85, 0.1);
  color: var(--news-primary);
  border: 1px solid rgba(12, 136, 85, 0.2);
  border-radius: var(--news-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.news-hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--news-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.news-hero h1 em {
  font-style: italic;
  color: var(--news-primary);
}

.news-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--news-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

/* FILTRES PAR CATÉGORIE */
.news-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-filter-btn {
  padding: 6px 14px;
  border-radius: var(--news-radius-md);
  border: 1px solid var(--news-border);
  background: #ffffff;
  color: var(--news-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .news-filter-btn {
  background: #1e293b;
}

.news-filter-btn:hover {
  border-color: var(--news-primary);
  color: var(--news-primary);
}

.news-filter-btn.active {
  background: var(--news-primary);
  border-color: var(--news-primary);
  color: #ffffff;
}

/* CONTENEUR PRINCIPAL */
.news-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* ARTICLE VEDETTE (FEATURED) */
.featured-article-card {
  background: #ffffff;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

[data-theme="dark"] .featured-article-card {
  background: #1e293b;
}

.featured-article-card:hover {
  border-color: var(--news-primary);
  transform: translateY(-2px);
}

.featured-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-featured {
  background: rgba(12, 136, 85, 0.1);
  color: var(--news-primary);
  border: 1px solid rgba(12, 136, 85, 0.2);
  border-radius: var(--news-radius-sm);
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-reading-time {
  font-size: 0.75rem;
  color: var(--news-muted);
}

.featured-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 700;
  color: var(--news-dark);
  line-height: 1.25;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover {
  color: var(--news-primary);
}

.featured-excerpt {
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--news-muted);
}

.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--news-border);
}

.btn-read-featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--news-radius-md);
  background: var(--news-primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-read-featured:hover {
  background: var(--news-primary-hover);
}

/* GRILLE D'ARTICLES */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .news-card {
  background: #1e293b;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--news-primary);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-tag {
  background: var(--news-primary-light);
  color: var(--news-primary);
  border: 1px solid var(--news-primary-border);
  border-radius: var(--news-radius-sm);
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-time {
  font-size: 0.75rem;
  color: var(--news-muted);
}

.news-card-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--news-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--news-primary);
}

.news-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--news-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--news-primary);
  text-decoration: none;
}

.news-card-link:hover {
  text-decoration: underline;
}

/* AVERTISSEMENT MÉDICAL DÉONTOLOGIQUE */
.medical-disclaimer-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--news-radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
  color: #92400e;
}

[data-theme="dark"] .medical-disclaimer-card {
  background: rgba(146, 64, 14, 0.15);
  border-color: rgba(146, 64, 14, 0.3);
  color: #fde68a;
}

.disclaimer-icon {
  flex-shrink: 0;
  color: #d97706;
}

.disclaimer-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.disclaimer-content p {
  font-size: 0.8438rem;
  line-height: 1.55;
}

/* SECTION GUIDES LOCAUX */
.local-guides-box {
  background: #ffffff;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg);
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
}

[data-theme="dark"] .local-guides-box {
  background: #1e293b;
}

.local-guides-box h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--news-dark);
  margin-bottom: 8px;
}

.local-guides-box p {
  font-size: 0.9375rem;
  color: var(--news-muted);
  max-width: 580px;
  margin: 0 auto 20px;
}

.local-guides-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guide-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--news-radius-md);
  background: var(--news-light);
  border: 1px solid var(--news-border);
  color: var(--news-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.guide-chip-btn:hover {
  background: var(--news-primary-light);
  border-color: var(--news-primary);
  color: var(--news-primary);
}
