/* ===============================
   PAGE CATÉGORIE - TOUT EXPLORER
   VERSION 4 - HERO PLEINE LARGEUR SANS QR CODES
   =============================== */

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.95);
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.breadcrumb a {
  color: var(--kyool-blue);
  text-decoration: none;
  transition: all .3s ease;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #fff;
}

.breadcrumb span {
  color: rgba(255,255,255,.6);
}

/* HERO CATÉGORIE PLEINE LARGEUR */
.categorie-hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
}

/* Image de fond PLEINE LARGEUR */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlay pour assombrir et rendre le texte lisible */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.7) 40%,
    rgba(0,0,0,0.85) 70%,
    rgba(0,0,0,0.95) 100%
  );
  z-index: 2;
}

/* Contenu par-dessus l'image */
.hero-content-overlay {
  position: relative;
  z-index: 10;
  padding: 80px 0 100px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-block {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.categorie-title {
  font-size: clamp(48px, 7vw, 80px);
  margin: 0 0 32px;
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 
    0 4px 20px rgba(36,199,235,.6),
    0 2px 10px rgba(0,0,0,.9),
    0 0 60px rgba(36,199,235,.3);
  letter-spacing: -1px;
}

.categorie-description {
  font-size: 22px;
  line-height: 1.8;
  color: rgba(255,255,255,.98);
  text-shadow: 
    0 2px 12px rgba(0,0,0,.9),
    0 4px 20px rgba(0,0,0,.7);
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* BARRE DE RECHERCHE */
.search-section {
  padding: 60px 0 50px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.2) 100%
  );
  border-top: 1px solid rgba(255,255,255,.05);
}

.search-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto 24px;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 28px;
  border-radius: 16px;
  border: 2px solid rgba(36,199,235,.3);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 17px;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
}

.search-input:focus {
  outline: none;
  border-color: var(--kyool-blue);
  background: rgba(36,199,235,.12);
  box-shadow: 0 0 30px rgba(36,199,235,.4);
}

.search-input::placeholder {
  color: rgba(255,255,255,.5);
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kyool-blue);
  pointer-events: none;
}

.results-count {
  text-align: center;
  font-size: 16px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

.results-count span {
  color: var(--kyool-blue);
  font-weight: 800;
  font-size: 20px;
}

/* GRID DES PROGRAMMES */
.programmes-section {
  padding: 80px 0 100px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    transparent 30%
  );
}

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.programme-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all .35s ease;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  color: inherit;
  display: block;
}

.programme-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 
    0 20px 60px rgba(36,199,235,.5),
    0 0 50px rgba(36,199,235,.3);
  border-color: rgba(36,199,235,.7);
}

.programme-image {
  width: 100%;
  aspect-ratio: 10/14;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,.7);
}

.programme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.programme-card:hover .programme-image img {
  transform: scale(1.18);
}

.programme-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.99) 0%,
    rgba(0,0,0,.9) 50%,
    rgba(0,0,0,0) 100%
  );
  transform: translateY(100%);
  transition: transform .35s ease;
}

.programme-card:hover .programme-overlay {
  transform: translateY(0);
}

.programme-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

.programme-link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--kyool-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 6px 16px rgba(36,199,235,.4);
}

.programme-link:hover {
  background: #fff;
  color: var(--kyool-blue);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(36,199,235,.6);
}

/* MESSAGE AUCUN RÉSULTAT */
.no-results {
  text-align: center;
  padding: 100px 20px;
  color: rgba(255,255,255,.7);
}

.no-results p {
  font-size: 20px;
  margin: 0;
}

/* NAVIGATION BOTTOM */
.navigation-bottom {
  padding: 60px 0 80px;
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  .programmes-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
  }
}

@media (max-width: 1024px) {
  .programmes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .categorie-hero-fullwidth {
    min-height: 500px;
  }

  .hero-content-overlay {
    min-height: 500px;
    padding: 60px 0 80px;
  }
}

@media (max-width: 768px) {
  .categorie-hero-fullwidth {
    min-height: 450px;
  }

  .hero-content-overlay {
    min-height: 450px;
    padding: 50px 0 70px;
  }

  .breadcrumb {
    margin-bottom: 30px;
  }

  .categorie-description {
    font-size: 18px;
  }

  .programmes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .search-section {
    padding: 50px 0 40px;
  }

  .programmes-section {
    padding: 60px 0 80px;
  }

  .nav-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .categorie-hero-fullwidth {
    min-height: 400px;
  }

  .hero-content-overlay {
    min-height: 400px;
    padding: 40px 0 60px;
  }

  .categorie-description {
    font-size: 16px;
    line-height: 1.6;
  }

  .programmes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .programme-title {
    font-size: 16px;
  }

  .search-input {
    padding: 18px 50px 18px 20px;
    font-size: 16px;
  }
}
/* Animation de chargement */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loader responsive */
@media (max-width: 768px) {
  .programmes-grid > div[style*="grid-column"] {
    padding: 60px 20px !important;
  }
  
  .programmes-grid > div[style*="grid-column"] > div {
    width: 50px !important;
    height: 50px !important;
  }
  
  .programmes-grid > div[style*="grid-column"] p:first-of-type {
    font-size: 18px !important;
  }
  
  .programmes-grid > div[style*="grid-column"] p:last-of-type {
    font-size: 14px !important;
  }
}

/* Remonter SEULEMENT le titre pour Documentaire, TV Shows & KYOOL Original */
body.category-documentaire .categorie-title,
body.category-tv-shows .categorie-title,
body.category-kyool-original .categorie-title {
  transform: translateY(-50%);
}

/* Remonter SEULEMENT la description pour Documentaire, TV Shows & KYOOL Original */
body.category-documentaire .categorie-description,
body.category-tv-shows .categorie-description,
body.category-kyool-original .categorie-description {
  transform: translateY(-110%);
}

/* Mobile : remonter un peu moins */
@media (max-width: 768px) {
  body.category-documentaire .categorie-title,
  body.category-tv-shows .categorie-title,
  body.category-kyool-original .categorie-title {
    transform: translateY(-70%);
  }
  
  body.category-documentaire .categorie-description,
  body.category-tv-shows .categorie-description,
  body.category-kyool-original .categorie-description {
    transform: translateY(-70%);
  }
}
