/* =====================================================
   news.css — Page News style AlloCiné
   Regarde Movie
===================================================== */

/* =====================================================
   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); }

/* =====================================================
   LAYOUT PRINCIPAL
===================================================== */
.news-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* =====================================================
   HERO ARTICLE
===================================================== */
.news-hero-section {
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

/* Skeleton */
.news-hero-skeleton { width: 100%; height: 100%; }
.skeleton-block {
  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;
  border-radius: 4px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.news-hero-article {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.4s ease;
}
.news-hero-article.hidden { display: none; }

.news-hero-img-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.news-hero-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.news-hero-gradient {
  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%
  );
}

.news-hero-body {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.news-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-cat-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.news-hero-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.news-hero-body h1 {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 680px;
}

#hero-overview {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-hero-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.news-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.news-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.news-hero-btn:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }


/* Container global centré */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Style des cases de numéros */
.page-num {
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  background: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Le rond gris clair de la page sélectionnée */
.page-num.active {
  background-color: #cccccc;
  color: #111111;
  border-radius: 50%;
}

/* Effet au survol sur les autres numéros */
.page-num:hover:not(.active) {
  color: #ff00cc; /* Ton rose signature */
}

/* Bouton SUIVANTE (Style ovale asymétrique sombre) */
.btn-next {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  margin-left: 10px;
}

.btn-next:hover {
  background-color: #252525;
}

/* La petite flèche jaune personnalisée */
.btn-next::after {
  content: "❯";
  color: #ffcc00;
  font-size: 11px;
}

/* Bouton PRÉCÉDENT (Style ovale asymétrique sombre) */
.btn-prev {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  margin-right: 10px;
}

.btn-prev:hover {
  background-color: #252525;
}

/* La petite flèche jaune personnalisée pointant vers la gauche */
.btn-prev::before {
  content: "❮";
  color: #ffcc00;
  font-size: 11px;
}

/* Éléments de pagination désactivés */
.btn-prev.disabled {
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   GRILLE D'ARTICLES
===================================================== */
.news-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Article standard */
.news-article {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  animation: articleIn 0.4s ease both;
}

@keyframes articleIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Grand article (tous les 5) */
.news-article--big {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Image */
.news-article-img-link { display: block; text-decoration: none; }

.news-article-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 14px;
  aspect-ratio: 16/9;
}
.news-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Indispensable ! */
}

.news-article--big .news-article-img { margin-bottom: 0; aspect-ratio: 4/3; }

.news-article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.news-article-img:hover img { transform: scale(1.04); }

.news-article-vote {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.72);
  color: #f5c518;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.news-article-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(229,9,20,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.news-article-img:hover .news-article-img-overlay { opacity: 1; }
.news-article-img-overlay span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Corps de l'article */
.news-article-body { display: flex; flex-direction: column; flex: 1; }

.news-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.news-article-cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.news-article-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.news-article-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}
.news-article--big .news-article-title { font-size: 1.25rem; }

.news-article-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.news-article-title a:hover { color: var(--accent); }

.news-article-excerpt {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-dim);
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-article--big .news-article-excerpt { -webkit-line-clamp: 5; }

/* Footer de l'article */
.news-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.news-read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.news-read-more:hover { opacity: 0.75; }

.news-wl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.news-wl-btn:hover { border-color: var(--accent); color: var(--accent); }
.news-wl-btn.added { background: rgba(229,9,20,0.08); border-color: var(--accent); color: var(--accent); }

/* =====================================================
   SKELETON ARTICLES
===================================================== */
.news-skeletons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.news-article-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  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;
}
.skeleton-lines { display: flex; flex-direction: column; gap: 8px; }

/* =====================================================
   BOUTON VOIR PLUS
===================================================== */
.news-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 12px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.news-load-more:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ==================== 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; }
}

/* =====================================================
   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;
}


/* =====================================================
   newss-gnews-extras.css
   Ajouts CSS pour les articles sources externes (GNews)
   À ajouter dans newss.css ou via <link> dans news.html
===================================================== */

/* Badge "Actu" sur la miniature d'un article externe */
.news-article-badge-ext {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);          /* rouge Regarde Movie */
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Label de catégorie coloré pour les sources externes */
.news-article-cat--ext {
  color: var(--accent-alt, #e88c00);  /* orange / ambre */
}

/* Tag "Source externe" dans le hero */
.news-tag--external {
  background: rgba(229, 140, 0, 0.15);
  border-color: rgba(229, 140, 0, 0.35);
  color: rgba(255, 200, 80, 0.9);
}

/* =====================================================
   LIEN ACTIF DANS LA NAV
===================================================== */
.nav-active { color: var(--accent) !important; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .news-hero-section    { height: 360px; }
  .news-hero-body h1    { font-size: 1.2rem; }
  #hero-overview        { display: none; }
  .news-articles-grid   { grid-template-columns: 1fr; }
  .news-skeletons       { grid-template-columns: 1fr; }
  .news-article--big    { grid-template-columns: 1fr; }
  .news-sidebar         { grid-template-columns: 1fr; }
  .news-subnav-inner    { padding: 0 16px; gap: 0; }
  .news-main            { padding: 24px 16px 60px; }
}
