/* ════════════════════════════════════════════════════════════════════
   tops-archives.css
   ────────────────────────────────────────────────────────────────────
   Styles spécifiques à la page "Tops & Rétrospectives — Archives"
   (tops-archives.html)
   Mise en page magazine éditorial : en-tête + alternance gauche/droite.
   ════════════════════════════════════════════════════════════════════ */


/* ──────────────── EN-TÊTE DE PAGE ──────────────── */
.tops-hero-header {
  padding: 70px 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.tops-hero-header-inner {
  max-width: 780px;
  margin: 0 auto;
}
.tops-page-label {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--red);
  letter-spacing: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}
.tops-page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--white);
}
.tops-page-title em {
  font-style: italic;
  color: var(--red);
  font-weight: 400;
}
.tops-page-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--light-grey);
  max-width: 680px;
  margin: 0 auto;
}


/* ──────────────── LISTE EN ALTERNANCE ──────────────── */
.tops-list {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.tops-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Inversion : image à droite au lieu de gauche */
.tops-row.reverse .tops-row-image {
  grid-column: 2;
  grid-row: 1;
}
.tops-row.reverse .tops-row-text {
  grid-column: 1;
  grid-row: 1;
}

.tops-row-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.tops-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.tops-row:hover .tops-row-image img {
  transform: scale(1.05);
}

/* Badge type (classement / sélection) en haut de l'image */
.tops-row-type {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  padding: 5px 12px;
  border-radius: 3px;
  z-index: 2;
}

.tops-row-text {
  padding: 10px 0;
}
.tops-row-meta {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--red);
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tops-row-meta::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}
.tops-row-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
  transition: color .25s ease;
}
.tops-row:hover .tops-row-title {
  color: var(--red);
}
.tops-row-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--red);
  line-height: 1.4;
  margin-bottom: 18px;
}
.tops-row-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--light-grey);
  margin-bottom: 22px;
}
.tops-row-intro strong { color: var(--white); font-weight: 700; }
.tops-row-intro em { color: #d8d8d8; }

/* Footer du bloc texte : nb films + CTA alignés */
.tops-row-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tops-row-count {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  font-size: 13px;
  color: #888;
}
.tops-row-count strong {
  color: var(--red);
  font-weight: 400;
}

.tops-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
  font-size: 14px;
  color: var(--white);
  border: 1px solid var(--red);
  background: transparent;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all .25s ease;
  cursor: pointer;
}
.tops-cta:hover {
  background: var(--red);
  color: var(--white);
}
.tops-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .25s ease;
}
.tops-cta:hover svg {
  transform: translateX(4px);
}


/* ──────────────── ÉTAT VIDE ──────────────── */
.tops-empty {
  text-align: center;
  color: #666;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 80px 20px;
  font-style: italic;
}


/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 900px) {
  .tops-hero-header {
    padding: 50px 24px 30px;
  }
  .tops-list {
    padding: 0 24px 60px;
    gap: 60px;
  }
  .tops-row,
  .tops-row.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  /* Sur mobile, tout dans l'ordre normal (image puis texte) */
  .tops-row.reverse .tops-row-image,
  .tops-row .tops-row-image {
    grid-column: 1;
    grid-row: 1;
  }
  .tops-row.reverse .tops-row-text,
  .tops-row .tops-row-text {
    grid-column: 1;
    grid-row: 2;
  }
  .tops-row-image {
    aspect-ratio: 16 / 10;
  }
}
