/* =====================================================
   news-platform.css — CSS global partagé
   Pages plateformes : news-netflix.html, news-hbo.html,
   news-prime.html, news-disney.html, news-canal.html,
   news-apple.html, news-paramount.html, news-crunchyroll.html,
   news-people.html
   Regarde Movie — 2026
   ===================================================== */


/* =====================================================
   1. BODY — COMPENSATION HEADER FIXE
   ===================================================== */

body {
  padding-top: 64px;
}


/* =====================================================
   2. RESET CONFLITS NEWSS.CSS
   ===================================================== */

.news-subnav-wrapper .news-subnav {
  position: static !important;
  top: auto !important;
  margin-top: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-subnav-wrapper .news-subnav::-webkit-scrollbar { display: none; }


/* =====================================================
   3. WRAPPER SOUS-NAV STICKY
   ===================================================== */

.news-subnav-wrapper {
  background: var(--bg-surface, #111);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.09));
  position: sticky !important;
  top: 64px !important;
  z-index: 500 !important;
}


/* =====================================================
   4. SOUS-NAV NIVEAU 1 — RUBRIQUES
   ===================================================== */

.news-subnav-inner-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.news-subnav-wrapper .news-subnav .news-cat {
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim, #888);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.news-subnav-wrapper .news-subnav .news-cat:hover { color: var(--text, #fff); }
.news-subnav-wrapper .news-subnav .news-cat.active {
  color: var(--text, #fff);
  border-bottom-color: var(--accent, #ff00cc);
}


/* =====================================================
   5. SOUS-NAV NIVEAU 2 — PLATEFORMES
   ===================================================== */

.news-subnav-platforms { overflow-x: auto; scrollbar-width: none; }
.news-subnav-platforms::-webkit-scrollbar { display: none; }

.news-subnav-platforms-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platforms-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #666);
  white-space: nowrap;
  padding-right: 6px;
  flex-shrink: 0;
}

.subnav-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
  flex-shrink: 0;
}


/* =====================================================
   6. BADGES PLATEFORME (sous-nav)
   Logos SVG en background-image
   ===================================================== */

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.platform-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.platform-badge.active { border-color: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,0.12); }

/* Icône logo dans les badges */
.platform-badge .badge-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* Couleurs de fond */
.platform-badge.netflix     { background: #E50914; color: #fff; }
.platform-badge.hbo         { background: #5822b4; color: #fff; }
.platform-badge.prime       { background: #00A8E0; color: #fff; }
.platform-badge.disney      { background: #113CCF; color: #fff; }
.platform-badge.canal       { background: #111;    color: #fff; border-color: rgba(255,255,255,0.3); }
.platform-badge.apple       { background: #1c1c1e; color: #fff; border-color: rgba(255,255,255,0.2); }
.platform-badge.paramount   { background: #0064FF; color: #fff; }
.platform-badge.crunchyroll { background: #F47521; color: #fff; }
.platform-badge.people      { background: linear-gradient(135deg, #ff00cc, #ff6b35); color: #fff; }


/* =====================================================
   7. BANNIÈRE PLATEFORME
   Couleurs via custom properties par page :
     --platform-color  ex: #E50914
     --platform-glow   ex: rgba(229,9,20,0.10)
   ===================================================== */

.platform-banner {
  background: linear-gradient(135deg, var(--platform-glow, rgba(255,0,204,0.07)) 0%, transparent 70%);
  border-bottom: 3px solid var(--platform-color, #ff00cc);
  padding: 28px 0 24px;
  position: relative;
  z-index: 1;
}

.platform-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Carré logo — contient l'image SVG */
.platform-banner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--platform-color, #ff00cc);
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px var(--platform-glow, rgba(255,0,204,0.35));
  padding: 10px;
}

.platform-banner-logo img,
.platform-banner-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Texte */
.platform-banner-text h1 {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: var(--text, #fff);
  margin: 0 0 4px;
  line-height: 1;
}

.platform-banner-text p {
  font-size: 0.82rem;
  color: var(--text-dim, #aaa);
  margin: 0;
}

/* Badge EN DIRECT */
.platform-banner-badge {
  margin-left: auto;
  background: var(--platform-color, #ff00cc);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  animation: platform-pulse 2s ease-in-out infinite;
}

.platform-banner-badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-blink 1.2s ease-in-out infinite;
}

@keyframes platform-pulse {
  0%,  100% { box-shadow: 0 0 0 0   var(--platform-glow, rgba(255,0,204,0.5)); }
  50%        { box-shadow: 0 0 0 8px transparent; }
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}


/* =====================================================
   8. HERO SECTION
   ===================================================== */

.platform-hero-wrap {
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface, #1a1a1a);
  margin-bottom: 0;
}


/* =====================================================
   9. CONTENU PRINCIPAL
   ===================================================== */

.news-main {
  padding-top: 24px !important;
  margin-top: 0 !important;
}


/* =====================================================
   10. RESPONSIVE MOBILE
   ===================================================== */

@media (max-width: 768px) {
  body { padding-top: 56px; }

  .news-subnav-wrapper { top: 56px !important; }

  .platform-banner { padding: 18px 0 16px; }

  .platform-banner-inner { padding: 0 16px; gap: 14px; }

  .platform-banner-logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    padding: 8px;
  }

  .platform-banner-text h1 { font-size: 1.7rem; letter-spacing: 1px; }
  .platform-banner-text p  { font-size: 0.73rem; }

  .platform-banner-badge {
    font-size: 0.62rem;
    padding: 6px 12px;
    letter-spacing: 1px;
  }

  .platform-hero-wrap { height: 220px; border-radius: 10px; }

  .news-subnav-platforms-inner { padding: 6px 16px; }
  .news-subnav-inner-row { padding: 0 16px; }
}
