/* ===============================
   FICHES PROGRAMMES - STYLES MODIFIÉS
   =============================== */

/* NAVIGATION TOP */
.programme-nav-top {
  padding: 20px 0;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

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

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

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

/* HERO : 3 IMAGES CÔTE À CÔTE */
.programme-hero-gallery {
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3), transparent);
}

.hero-images-grid {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.hero-image {
  height: 300px;
  width: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .4s ease;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.hero-image:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: var(--kyool-blue);
  box-shadow: 
    0 0 40px rgba(36,199,235,.6),
    0 12px 40px rgba(0,0,0,.6);
  filter: brightness(1.1);
}

/* CONTENU PROGRAMME */
.programme-content {
  padding: 60px 0;
}

.programme-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 14px;
}

.programme-header {
  margin-bottom: 50px;
  text-align: center;
}

.programme-title {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0;
  color: var(--kyool-blue);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(36,199,235,.3);
}

/* GRILLE 2 COLONNES */
.programme-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

/* COLONNE GAUCHE */
.programme-info-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-block h2 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--kyool-blue);
  font-weight: 700;
}

.pitch, .resume {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.88);
  margin: 0;
}

.pitch {
  font-size: 19px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
}

/* BANDE-ANNONCE */
.trailer-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: rgba(0,0,0,.5);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.trailer-thumbnail{
  position:absolute !important;
  inset:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.trailer-thumbnail img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: filter .3s ease, transform .3s ease;
}

.trailer-thumbnail:hover img{
  filter: brightness(.8);
}

.trailer-thumbnail .play-button{
  position:relative;
  z-index:2;
}

.trailer-thumbnail:hover .play-button{
  background: rgba(255,0,0,1);
  box-shadow: 0 0 30px rgba(255,0,0,0.5);
  scale: 1.1;
}

/* MODAL YOUTUBE */
.youtube-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.youtube-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
}

.youtube-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 10000;
  animation: zoomIn 0.3s ease;
}

.youtube-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 36px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.youtube-modal-close:hover {
  background: rgba(255,0,0,0.8);
  border-color: rgba(255,0,0,1);
  transform: rotate(90deg) scale(1.1);
}

.youtube-modal-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border: 2px solid rgba(36,199,235,0.3);
}

.youtube-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* BLOC QR CODES TÉLÉCHARGEMENT AVEC TAMPON */
.qr-download-block {
  margin-top: 40px;
}

.qr-download-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.qr-download-content {
  flex: 1;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(36,199,235,.15) 0%, rgba(36,199,235,.05) 100%);
  border: 2px solid rgba(36,199,235,.3);
  text-align: center;
  transition: all .3s ease;
}

.qr-download-content:hover {
  border-color: rgba(36,199,235,.5);
  background: linear-gradient(135deg, rgba(36,199,235,.2) 0%, rgba(36,199,235,.08) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(36,199,235,.2);
}

.qr-download-text {
  margin-bottom: 24px;
}

.qr-download-text p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  margin: 8px 0;
}

.qr-download-text strong {
  color: var(--kyool-blue);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(36,199,235,.3);
}

.qr-codes-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 16px;
}

.qr-code-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .3s ease;
}

.qr-code-item:hover {
  border-color: var(--kyool-blue);
  background: rgba(36,199,235,.1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(36,199,235,.3);
}

.qr-code-item img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.2);
}

.qr-code-item span {
  font-size: 14px;
  font-weight: 700;
  color: var(--kyool-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qr-stores-note {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* TAMPON GRATUIT STYLE CORÉEN */
.korean-stamp {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  position: relative;
  animation: stampPulse 3s ease-in-out infinite;
}

.stamp-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #DC143C 0%, #B81428 100%);
  border: 5px solid #8B0000;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  box-shadow: 
    0 4px 15px rgba(220, 20, 60, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.2),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  transform: rotate(-12deg);
  transition: all 0.3s ease;
  position: relative;
}

.stamp-inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.korean-stamp:hover .stamp-inner {
  transform: rotate(-12deg) scale(1.1);
  box-shadow: 
    0 6px 25px rgba(220, 20, 60, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.3),
    inset 0 -2px 5px rgba(0, 0, 0, 0.4);
}

.stamp-text-kr {
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.5),
    0 0 5px rgba(255, 255, 255, 0.3);
  line-height: 1;
  letter-spacing: 2px;
}

.stamp-text-fr {
  font-family: 'Arial Black', 'Arial Bold', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.5),
    0 0 3px rgba(255, 255, 255, 0.2);
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes stampPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* COLONNE DROITE - MÉTADONNÉES */
.programme-info-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.meta-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  transition: all .3s ease;
}

.meta-card:hover {
  border-color: rgba(36,199,235,.3);
  background: rgba(36,199,235,.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(36,199,235,.15);
}

.meta-card h3 {
  font-size: 18px;
  margin: 0 0 20px;
  color: var(--kyool-blue);
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.meta-item:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 15px;
  color: rgba(255,255,255,.95);
  line-height: 1.5;
}

/* MOTS-CLÉS */
.mots-cles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mot-cle {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(36,199,235,.15);
  color: var(--kyool-blue);
  font-size: 13px;
  font-weight: 600;
  transition: all .3s ease;
}

.mot-cle:hover {
  background: rgba(36,199,235,.25);
  transform: scale(1.05);
}

/* VOUS POURRIEZ AUSSI AIMER */
.recommendations-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.2));
}

.section-title-center {
  font-size: 32px;
  margin: 0 0 40px;
  text-align: center;
  color: var(--kyool-blue);
  font-weight: 700;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.recommendation-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(36,199,235,.3);
  border-color: rgba(36,199,235,.5);
}

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

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

.recommendation-card:hover .recommendation-image img {
  transform: scale(1.1);
}

.recommendation-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 50%, rgba(0,0,0,0) 100%);
}

.recommendation-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.recommendation-theme {
  color: var(--kyool-blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* NAVIGATION BOTTOM */
.programme-nav-bottom {
  padding: 50px 0 100px;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.1);
}

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

.nav-btn {
  display: inline-block;
  text-decoration: none;
}

.nav-btn[style*="display: none"] {
  display: none !important;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-images-grid{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-image{
    width: 100%;
    height: 300px;
  }

  .programme-grid {
    grid-template-columns: 1fr;
  }

  .programme-info-meta {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .programme-hero-gallery {
    padding: 40px 0;
  }

  .hero-image {
    height: 250px;
  }

  .programme-content {
    padding: 40px 0;
  }

  .programme-header {
    margin-bottom: 30px;
  }

  .programme-info-main {
    gap: 30px;
  }

  .info-block h2 {
    font-size: 20px;
  }

  .pitch, .resume {
    font-size: 16px;
  }

  .meta-card {
    padding: 20px;
  }

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

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

  .programme-nav-bottom {
    padding: 40px 0 80px;
  }

  /* Modal responsive */
  .youtube-modal-content {
    width: 95%;
  }

  .youtube-modal-close {
    top: -45px;
    width: 45px;
    height: 45px;
    font-size: 30px;
  }

  /* QR + Tampon responsive */
  .qr-download-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .korean-stamp {
    align-self: center;
    margin-top: 20px;
  }

  .qr-download-content {
    padding: 20px;
  }

  .qr-download-text p {
    font-size: 15px;
  }

  .qr-codes-row {
    gap: 20px;
  }

  .qr-code-item img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .qr-codes-row {
    flex-direction: column;
    gap: 16px;
  }

  .qr-code-item {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .youtube-modal-close {
    top: -40px;
    right: 5px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .korean-stamp {
    width: 120px;
    height: 120px;
  }

  .stamp-text-kr {
    font-size: 20px;
  }

  .stamp-text-fr {
    font-size: 11px;
  }
}
/* ===============================
   OPTION 1 : BOUTONS CÔTE À CÔTE
   Les deux boutons ont le même style oval
   =============================== */

/* NAVIGATION BOTTOM - BOUTONS CÔTE À CÔTE */
.programme-nav-bottom {
  padding: 60px 0 80px;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.08);
}

.programme-nav-bottom .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Style commun pour les boutons */
.nav-actions .btn,
.nav-actions .explore-category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
  border: 2px solid;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

/* Bouton Accueil (style primaire) */
.nav-actions .btn-primary {
  background: linear-gradient(135deg, var(--kyool-blue) 0%, #1a8a9e 100%);
  color: #fff;
  border-color: var(--kyool-blue);
}

.nav-actions .btn-primary:hover {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  color: var(--kyool-blue);
  border-color: var(--kyool-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(36,199,235,.4);
}

/* Bouton Explorer (style secondaire) */
.explore-category-btn {
  background: rgba(36,199,235,.1);
  color: var(--kyool-blue);
  border-color: rgba(36,199,235,.5);
  backdrop-filter: blur(10px);
}

.explore-category-btn:hover {
  background: var(--kyool-blue);
  color: #fff;
  border-color: var(--kyool-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(36,199,235,.6);
}

.explore-category-btn .arrow {
  font-size: 20px;
  transition: transform .3s ease;
}

.explore-category-btn:hover .arrow {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions .btn,
  .nav-actions .explore-category-btn {
    width: 100%;
    max-width: 350px;
  }
}
