/* =====================================================
   article-joker.css — Version Optimisée
===================================================== */

.article-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
}


/* =====================================================
   SOUS-NAV RUBRIQUES
===================================================== */
.news-subnav {
  position: sticky;
  top: 64px;
  z-index: 500;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  margin-top: 64px; /* Compense le header fixe */
}

.news-subnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-subnav-inner::-webkit-scrollbar { display: none; }

.news-cat {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.news-cat:hover  { color: var(--text); }
.news-cat.active { color: var(--text); border-bottom-color: var(--accent); }

/* =====================================================
   BANNIÈRE PUBLICITAIRE (style AlloCiné)
===================================================== */
.pub-banner {
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  margin-top: 64px; /* Compense le header fixe */
}

.pub-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 1150px;
  max-width: 100%;
  height: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.pub-label {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pub-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 10px;
}

.pub-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.4;
}

.pub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ==================== HERO ==================== */
.article-hero {
  position: relative;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 1s ease;
}

.article-hero:hover .article-hero-img {
  transform: scale(1.05);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.75) 65%, rgba(0,0,0,0.95));
}

.article-hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 40px 40px;
  color: white;
}

.article-tag {
  background: #e50914;
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
}

.article-title {
  font-size: 2.9rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.article-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 1rem;
  opacity: 0.9;
}

/* ==================== CORPS DE L'ARTICLE ==================== */
.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 760px;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 52px 0 22px;
  color: var(--text);
  position: relative;
  padding-left: 24px;
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 28px;
  background: #e50914;
  border-radius: 4px;
}

/* Images dans l'article */
.article-image {
  width: 100%;
  border-radius: 12px;
  margin: 35px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Citations */
.joker-quote {
  background: var(--bg-card);
  border-left: 5px solid #e50914;
  padding: 25px 30px;
  margin: 40px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  border-radius: 0 8px 8px 0;
}

.quote-author {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--accent);
}

/* Pub */
.pub-article {
  background: var(--bg-card);
  min-height: 150px;          /* Hauteur minimale généreuse */
  flex: 1;                    /* S'étire pour remplir l'espace disponible */

  max-width: 750px; /* ← réduire ici largeur */
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  margin: 60px 0;
  border: 1px dashed #e50914;
}

/* Pub avec hover */
.pub-article {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  margin: 60px 0;
  border: 1px dashed #e50914;
  transition: all 0.4s ease;
}

.pub-article:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

/* ==================== SIDEBAR ==================== */
.article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-pub, .sidebar-section {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-hero { height: 420px; }
}



/* ==================== SOMMAIRE DYNAMIQUE ==================== */
.toc-container {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 40px;
  position: sticky;
  top: 50px;
}

.toc-container h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--accent);
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: all 0.3s ease;
  padding-left: 8px;
  border-left: 2px solid transparent;
}

.toc-nav a:hover,
.toc-nav a.active {
  color: var(--accent);
  border-left-color: #e50914;
  padding-left: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .toc-container {
    position: static;
  }
}


/* ── 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; }

/* ── 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; }
}
