/* =====================================================
   article.css — Page article de la Rédaction
===================================================== */

.article-main { padding-top: 64px; min-height: 100vh; }

/* ── Loading skeleton ── */
.article-skeleton-hero {
  width: 100%; height: 480px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.article-skeleton-body { max-width: 780px; margin: 40px auto; padding: 0 24px; }
.skeleton-line {
  height: 14px; border-radius: 4px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from{background-position:200% 0} to{background-position:-200% 0} }

/* ── Contenu article ── */
.article-content {
  opacity: 0; transition: opacity 0.4s ease;
}
.article-content.hidden { display: none; }
.article-content.visible { opacity: 1; }

/* ── Hero ── */
.article-hero {
  position: relative; width: 100%; height: 520px;
  overflow: hidden; background: var(--bg-surface);
}
.article-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.92) 100%);
}
.article-hero-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px clamp(20px, 5vw, 80px);
  max-width: 900px;
}
.article-tag {
  display: inline-block; color: #fff;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-body); font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700; color: #fff; line-height: 1.2;
  margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.article-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: rgba(255,255,255,0.78);
  line-height: 1.6; margin-bottom: 16px; max-width: 700px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
}
.article-dot { opacity: 0.4; }

/* ── Corps ── */
.article-body-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-body {
  font-size: 1rem; line-height: 1.85;
  color: var(--text-dim);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: var(--font-body); font-size: 1.35rem; font-weight: 700;
  color: var(--text); margin: 36px 0 14px;
  padding-left: 14px; border-left: 3px solid var(--accent);
}
.article-body strong { color: var(--text); font-weight: 700; }

/* ── Footer article ── */
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 24px 0; border-top: 1px solid var(--border);
  margin-top: 40px;
}
.article-share { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); }
.article-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  padding: 7px 14px; border-radius: 50px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.article-share-btn:hover { border-color: var(--accent); color: var(--accent); }
.article-back {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }

/* ── Films liés ── */
.article-related { margin-top: 48px; }
.article-related-title {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.article-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related-card {
  text-decoration: none; border-radius: 10px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.related-card img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block;
}
.related-card-info { padding: 10px; }
.related-card-title {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  margin-bottom: 3px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-card-year { font-size: 0.7rem; color: var(--text-muted); }
.related-card-vote { font-size: 0.7rem; color: #f5c518; font-weight: 700; margin-top: 2px; }

/* ── 404 ── */
.article-not-found {
  text-align: center; padding: 80px 24px;
}
.article-not-found h2 { font-size: 1.5rem; margin: 16px 0 8px; }
.article-not-found p { color: var(--text-muted); margin-bottom: 24px; }
.article-back-btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 0.88rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .article-hero { height: 380px; }
  .article-related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-footer { flex-direction: column; align-items: flex-start; }
}
