/* =============================================================
   BELCOTV — SECTION HERO (Zones A, B, C)
   Préfixe : belcotv-   |   Typographie : hérite des variables Foxiz
   ============================================================= */

/* ── Tokens couleurs & effets ────────────────────────────────── */
:root {
  --btv-blue-main:   #031B59;
  --btv-blue-nav:    #082B73;
  --btv-blue-ui:     #0A2C78;
  --btv-red:         #E52421;
  --btv-red-hover:   #C91D1A;
  --btv-white:       #FFFFFF;
  --btv-bg-page:     #F4F6FA;
  --btv-border:      #E5E9F2;
  --btv-text-main:   #101828;
  --btv-text-sec:    #475467;
  --btv-text-muted:  #667085;
  --btv-radius-hero: 16px;
  --btv-radius-card: 10px;
  --btv-radius-btn:  12px;
  --btv-radius-badge:8px;
  --btv-shadow-hero: 0 14px 40px rgba(16,24,40,.14);
  --btv-shadow-col:  0 10px 28px rgba(16,24,40,.08);
  --btv-shadow-card: 0 6px  16px rgba(16,24,40,.08);
  --btv-trans:       180ms ease;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.elementor-widget-belcotv-video-hero {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.belcotv-video-hero-section {
  background: var(--btv-bg-page);
  padding: 24px 0 28px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/*
 * Conteneur interne : à l'intérieur d'Elementor le padding/max-width
 * est géré par la section Elementor, on ne duplique pas.
 */
.belcotv-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.elementor-widget-belcotv-video-hero .belcotv-container {
  max-width: 100%;
  padding: 0;
}

/* ── Main grid (A+B sur rangée 1 | C pleine largeur rangée 2) ── */
.belcotv-video-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 18px;
}
.belcotv-hero-main   { grid-column: 1; grid-row: 1; }
.belcotv-watch-now   { grid-column: 2; grid-row: 1; }
.belcotv-report-rail { grid-column: 1 / -1; grid-row: 2; }

/* ============================================================
   ZONE A – HERO VIDÉO PRINCIPAL
   ============================================================ */

.belcotv-hero-media {
  display: block;
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--btv-radius-hero);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--btv-shadow-hero);
  background: var(--btv-blue-main);
}

/* Image */
.belcotv-hero-img,
.belcotv-hero-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.belcotv-hero-img-placeholder {
  background: linear-gradient(135deg, #031B59 0%, #082B73 60%, #0A2C78 100%);
}

/* Overlays */
.belcotv-hero-overlay-gradient,
.belcotv-hero-overlay-blue {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.belcotv-hero-overlay-gradient {
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.28) 100%);
}
.belcotv-hero-overlay-blue {
  background: rgba(3,27,89,.30);
}

/* Badge EN DIRECT */
.belcotv-hero-badge-live {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--btv-red);
  color: var(--btv-white);
  border-radius: 8px;
  font-family: var(--btn-family, 'Encode Sans Condensed', sans-serif);
  font-weight: 800;
  font-size: var(--btn-fsize, 12px);
  font-size: 13px; /* légèrement plus grand pour lisibilité */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.belcotv-live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--btv-white);
  flex-shrink: 0;
  animation: belcotv-pulse 1.6s ease-in-out infinite;
}
@keyframes belcotv-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Bouton play flottant central */
.belcotv-hero-floating-play {
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 5px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform var(--btv-trans);
  color: var(--btv-red);
}
.belcotv-hero-floating-play svg {
  width: 32px;
  height: 32px;
  margin-left: 3px;
}
.belcotv-hero-floating-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Bloc de texte */
.belcotv-hero-content {
  position: absolute;
  bottom: 64px;
  left: 32px;
  max-width: 54%;
  z-index: 3;
}
.belcotv-hero-kicker {
  font-family: var(--body-family, 'Oxygen', sans-serif);
  color: rgba(255,255,255,.85);
  font-size: var(--meta-fsize, 13px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.belcotv-hero-title {
  font-family: var(--h1-family, 'Encode Sans Condensed', sans-serif);
  color: var(--btv-white);
  /* Proportionnel à --headline-fsize Foxiz (45px desktop → 34px tablet → 26px mobile) */
  font-size: calc(var(--headline-fsize, 45px) * 1.15);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: var(--h1-fspace, normal);
  margin: 0 0 16px;
}
.belcotv-hero-subtitle {
  font-family: var(--body-family, 'Oxygen', sans-serif);
  color: rgba(255,255,255,.92);
  font-size: var(--h4-fsize, 16px);
  font-weight: var(--body-fweight, 400);
  line-height: var(--body-fheight, 1.55);
  max-width: 580px;
  margin: 0 0 24px;
}

/* CTA Regarder */
.belcotv-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  min-width: 160px;
  background: var(--btv-red);
  color: var(--btv-white);
  border-radius: var(--btv-radius-btn);
  font-family: var(--btn-family, 'Encode Sans Condensed', sans-serif);
  font-size: var(--h4-fsize, 16px);
  font-weight: 700;
  letter-spacing: var(--btn-fspace, normal);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(229,36,33,.22);
  transition: background var(--btv-trans), transform var(--btv-trans);
  cursor: pointer;
}
.belcotv-cta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.belcotv-hero-media:hover .belcotv-hero-cta {
  background: var(--btv-red-hover);
  transform: translateY(-1px);
}

/* Badge durée */
.belcotv-hero-duration {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  min-width: 72px;
  padding: 0 12px;
  background: rgba(12,17,29,.82);
  color: var(--btv-white);
  border-radius: 8px;
  font-family: var(--meta-family, 'Encode Sans Condensed', sans-serif);
  font-size: var(--meta-fsize, 13px);
  font-weight: 700;
}
.belcotv-hero-duration svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================================================
   ZONE B – COLONNE "À REGARDER MAINTENANT"
   ============================================================ */

.belcotv-watch-now {
  background: var(--btv-white);
  border-radius: var(--btv-radius-hero);
  border: 1px solid var(--btv-border);
  box-shadow: var(--btv-shadow-col);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.belcotv-watch-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h3-family, 'Encode Sans Condensed', sans-serif);
  color: var(--btv-blue-nav);
  font-size: var(--h3-fsize, 22px);
  font-weight: var(--h3-fweight, 700);
  line-height: var(--h3-fheight, 1.2);
  text-transform: uppercase;
  letter-spacing: var(--h3-fspace, normal);
  margin: 0 0 16px;
}
.belcotv-watch-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--btv-blue-nav);
}
.belcotv-watch-title-icon svg { width: 18px; height: 18px; }

/* Liste items */
.belcotv-watch-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.belcotv-watch-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #E9EDF5;
  text-decoration: none;
  transition: background var(--btv-trans);
}
.belcotv-watch-item:first-child {
  border-top: none;
  padding-top: 0;
}

/* Thumbnail */
.belcotv-watch-thumb {
  position: relative;
  width: 110px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--btv-blue-main);
}
.belcotv-watch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.belcotv-watch-thumb--placeholder {
  background: linear-gradient(135deg, #082B73, #0A2C78);
}
.belcotv-watch-mini-play {
  position: absolute;
  bottom: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: var(--btv-white);
}
.belcotv-watch-mini-play svg { width: 9px; height: 9px; margin-left: 1px; }
.belcotv-watch-live-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btv-red);
  animation: belcotv-pulse 1.6s ease-in-out infinite;
}

/* Contenu */
.belcotv-watch-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.belcotv-watch-live-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  background: var(--btv-red);
  color: var(--btv-white);
  border-radius: 5px;
  font-family: var(--btn-family, 'Encode Sans Condensed', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.belcotv-watch-item-title {
  font-family: var(--h5-family, 'Encode Sans Condensed', sans-serif);
  color: var(--btv-text-main);
  font-size: var(--h5-fsize, 14px);
  font-weight: var(--h5-fweight, 700);
  line-height: var(--h5-fheight, 1.3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.belcotv-watch-item:hover .belcotv-watch-item-title { color: var(--btv-blue-nav); }

.belcotv-watch-cat {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--cat-family, 'Oxygen', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: var(--cat-fspace, 0.07em);
  text-transform: uppercase;
  align-self: flex-start;
}

/* Durée */
.belcotv-watch-duration {
  background: #EEF2F7;
  color: var(--btv-text-main);
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: var(--meta-family, 'Encode Sans Condensed', sans-serif);
  font-size: var(--meta-fsize, 13px);
  font-weight: 700;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Voir plus */
.belcotv-watch-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  font-family: var(--body-family, 'Oxygen', sans-serif);
  color: var(--btv-text-muted);
  font-size: var(--body-fsize, 16px);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--btv-trans);
}
.belcotv-watch-more svg { width: 13px; height: 13px; }
.belcotv-watch-more:hover { color: var(--btv-blue-nav); }

/* ============================================================
   ZONE C – RAIL HORIZONTAL "DERNIERS REPORTAGES VIDÉO"
   ============================================================ */

.belcotv-report-rail { padding-top: 8px; }

/* Header */
.belcotv-rail-header { margin-bottom: 16px; }

.belcotv-rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h2-family, 'Encode Sans Condensed', sans-serif);
  color: var(--btv-blue-nav);
  font-size: var(--h2-fsize, 28px);
  font-weight: var(--h2-fweight, 700);
  line-height: var(--h2-fheight, 1.2);
  text-transform: uppercase;
  letter-spacing: var(--h2-fspace, normal);
  margin: 0 0 14px;
}
.belcotv-rail-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Filtres */
.belcotv-rail-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.belcotv-rail-filters::-webkit-scrollbar { display: none; }

.belcotv-rail-filter {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--btv-border);
  background: #F8FAFC;
  color: #344054;
  font-family: var(--btn-family, 'Encode Sans Condensed', sans-serif);
  font-size: var(--h6-fsize, 13px);
  font-weight: 700;
  letter-spacing: var(--btn-fspace, normal);
  cursor: pointer;
  transition: background var(--btv-trans), color var(--btv-trans), border-color var(--btv-trans);
}
.belcotv-rail-filter:hover:not(.is-active) { background: var(--btv-border); }

/* Panels */
.belcotv-rail-panels { position: relative; }

.belcotv-rail-cards {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.belcotv-rail-cards.is-active { display: grid; }

/* ── Carte vidéo ──────────────────────────────────────────────── */
.belcotv-video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--btv-trans);
}
.belcotv-video-card:hover { transform: translateY(-2px); }

.belcotv-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--btv-radius-card);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--btv-shadow-card);
  background: var(--btv-blue-main);
}
.belcotv-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--btv-trans);
}
.belcotv-video-card:hover .belcotv-card-thumb img { transform: scale(1.03); }
.belcotv-card-thumb--placeholder {
  background: linear-gradient(135deg, #082B73, #0A2C78);
}

.belcotv-card-mini-play {
  position: absolute;
  bottom: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: var(--btv-white);
}
.belcotv-card-mini-play svg { width: 9px; height: 9px; margin-left: 1px; }

.belcotv-card-duration {
  position: absolute;
  bottom: 7px;
  right: 7px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(0,0,0,.75);
  color: var(--btv-white);
  font-family: var(--meta-family, 'Encode Sans Condensed', sans-serif);
  font-size: var(--meta-fsize, 13px);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.belcotv-card-cat {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--cat-family, 'Oxygen', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: var(--cat-fspace, 0.07em);
  text-transform: uppercase;
  margin-bottom: 7px;
  align-self: flex-start;
}

.belcotv-card-title {
  font-family: var(--h5-family, 'Encode Sans Condensed', sans-serif);
  color: var(--btv-text-main);
  font-size: var(--h5-fsize, 14px);
  font-weight: var(--h5-fweight, 700);
  line-height: var(--h5-fheight, 1.3);
  letter-spacing: var(--h5-fspace, normal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.belcotv-video-card:hover .belcotv-card-title { color: var(--btv-blue-nav); }

/* ============================================================
   RESPONSIVE — breakpoints alignés sur Foxiz + Elementor
   ============================================================ */

/* Tablette ≤ 1024px */
@media (max-width: 1024px) {
  .belcotv-video-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .belcotv-hero-main   { grid-column: 1; grid-row: 1; }
  .belcotv-watch-now   { grid-column: 1; grid-row: 2; }
  .belcotv-report-rail { grid-column: 1; grid-row: 3; }

  .belcotv-hero-media { height: 400px; }

  /* Zone B : liste horizontale sur tablette */
  .belcotv-watch-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }
  .belcotv-watch-item:nth-child(odd):not(:first-child) { border-top-color: #E9EDF5; }

  .belcotv-rail-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .belcotv-video-hero-section { padding: 14px 0 18px; }

  .belcotv-hero-media { height: 280px; border-radius: 12px; }
  .belcotv-hero-badge-live { height: 30px; font-size: 11px; padding: 0 10px; gap: 7px; }
  .belcotv-live-dot { width: 8px; height: 8px; }
  .belcotv-hero-floating-play { width: 64px; height: 64px; }
  .belcotv-hero-floating-play svg { width: 20px; height: 20px; }
  .belcotv-hero-content { left: 16px; bottom: 44px; max-width: 78%; }
  .belcotv-hero-cta { height: 42px; padding: 0 16px; min-width: 0; }
  .belcotv-hero-duration { height: 28px; }

  /* Zone B : liste simple colonne */
  .belcotv-watch-list { display: flex; flex-direction: column; }
  .belcotv-watch-item { grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; }
  .belcotv-watch-thumb { width: 90px; height: 51px; }
  .belcotv-hero-subtitle { max-width: 100%; }

  /* Zone C : scroll horizontal */
  .belcotv-rail-cards {
    display: flex !important;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .belcotv-rail-cards::-webkit-scrollbar { display: none; }
  .belcotv-rail-cards:not(.is-active) { display: none !important; }
  .belcotv-video-card { min-width: 190px; scroll-snap-align: start; }
}
