/* ══════════════════════
   ARTICLE PAGE — Clean, readable design
══════════════════════ */

/* Header band */
.article-header {
  background: var(--bg-darker);
  padding: 120px 6vw 3rem;
}
.article-header-inner {
  max-width: 820px;
  margin: 0 auto;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.article-back:hover { color: #fff; }
.article-back svg { width: 16px; height: 16px; }

.article-cat-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-family: 'Space Grotesk', sans-serif;
  flex-wrap: wrap;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Cover image (if exists) */
.article-cover {
  max-width: 820px;
  margin: -1.5rem auto 0;
  padding: 0 6vw;
  position: relative;
  z-index: 2;
}
.article-cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: block;
}

/* Content — force light background for readability */
.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 6vw 4rem;
  background: #fff;
  color: #334155;
}

/* Resume / chapeau */
.article-resume {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #1e293b;
  font-weight: 400;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Article body typography */
.article-body {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #334155;
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.5rem 0 1rem;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2rem 0 0.8rem;
}
.article-body p {
  margin-bottom: 1.3rem;
  color: #334155;
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.2rem;
  padding-left: 0.5rem;
  color: #334155;
}
.article-body li {
  margin-bottom: 0.5rem;
  padding-left: 4px;
}
.article-body ul li::marker {
  color: var(--primary);
}
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  background: #f1f5f9;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #475569;
  font-size: 0.95rem;
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-body th, .article-body td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
  color: #334155;
}
.article-body th {
  background: #f1f5f9;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
}
.article-body strong {
  color: #0f172a;
}

/* Footer bar with share & back */
.article-footer-bar {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 6vw 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-share-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s;
  cursor: pointer;
}
.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(233,30,140,0.05);
}
.article-back-bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s;
}
.article-back-bottom:hover { gap: 10px; }

/* Related articles */
.related-section {
  padding: 4rem 6vw;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}
.related-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.related-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0f172a;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.related-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.related-card-img {
  height: 150px;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.related-card:hover .related-card-img img {
  transform: scale(1.04);
}
.related-card-body {
  padding: 1.2rem 1.4rem;
}
.related-card-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.related-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}
.related-card-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* 404 */
.article-notfound {
  text-align: center;
  padding: 160px 2rem 6rem;
  background: var(--bg-darker);
  color: #fff;
}
.article-notfound h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.article-notfound p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .article-header { padding: 100px 5vw 2rem; }
  .article-header h1 { font-size: 1.6rem; }
  .article-cover { padding: 0 5vw; }
  .article-content { padding: 2rem 5vw 3rem; }
  .article-footer-bar { padding: 1.5rem 5vw 2rem; }
  .related-section { padding: 3rem 5vw; }
  .related-grid { grid-template-columns: 1fr; }
}
