.hidden {
  opacity: 0;
}

#film-detail-popup #prods {
  background-color: white;
  height: 100vh;
  overflow: hidden;
  overflow-y: scroll;
  width: 100%;
  position: relative;
  z-index: 4;
 display: flex;
}
#film-detail-popup #prods-container {
      display: flex;
  gap:50px;
  width: 2200px;
  justify-content: center;
  align-content: center;
  align-self: center;
  padding: 50px; 
}
#film-detail-popup #prods-container div {
  background-color: black;
  width: 300px;
  height: 300px;
}

#film-detail-popup div.grid {
  margin-bottom:2em;
}

#film-detail-popup .bandeau-prod {
    background-image: url("../img/1.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat; 
    background-attachment: fixed;
    height: calc(100vh - 100px);
    /*! margin-top: 100px; */ 
    width:100%; 
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

#film-detail-popup .bandeau-prod.merteuil {
  background-image: url("../img/merteuil/merteuil4.jpg");}

#film-detail-popup .bandeau-prod:after {
  content:"";
  display: block;
  position: absolute; 
  top: 0;
  left: 0; 
  width: 100%; 
  height: 100%;
   background-image: url("../img/pattern.png"); 
}

#film-detail-popup .bandeau-prod.belle {
   background-image: url("../img/works/works-2.jpg"); 
}
#film-detail-popup .bandeau-prod.mensonges {
   background-image: url("../img/works/works-3.jpg"); 
}
#film-detail-popup .bandeau-prod.le-feu {
   background-image: url("../img/jouer-avec-le-feu/1.jpg"); 
}


#film-detail-popup .bandeau-prod:before {
    content:"";
    display: block;
    position: absolute;
    z-index: 1;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
     background: rgb(255,255,255);
/*background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 19%, rgba(0,0,0,0.2) 51%, rgba(0,0,0,0.2) 89%, rgba(0,0,0,1) 100%); 
    */
    box-sizing: border-box;
    /*border: var(--border-width, 50px) solid black;*/
    background-color: rgba(0,0,0,0.1);
  background-attachment: fixed;
}
#film-detail-popup .bandeau-prod h1 {
  font-family:"Oswald", sans-serif;
    position: relative;
    z-index: 2;
    font-size: 8vw;
  line-height: 8vw;
    font-weight: 400;
  text-transform: uppercase;
  color:#fff;
  margin: 0; 
}
#film-detail-popup .bandeau-prod h2 {
  font-family:"Oswald", sans-serif;
  color:#fff;
position:relative;
  z-index:3;
  font-weight: 400;
  margin: 0;
}


#film-detail-popup .bandeau-prod #scroll-dwn {
    height: 130px;
    width: 50px;
    background-image: url(../img/fleche.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    bottom: 20px;
    z-index: 4;
    cursor: pointer;
  transition:all 0.3s;
}
#film-detail-popup .bandeau-prod #scroll-dwn:hover {
 translate: 0px 10px;
}
#film-detail-popup .prod-resum, #film-detail-popup .prod-param {
    margin: 0;
    line-height: 1.2em;
	text-align: center;
    display: flex; 
    align-content: center;
    align-items: center;
    
}

#film-detail-popup .prod-resum p {
  	font-size: 18px;
    line-height: 1.2em;
    font-weight: normal;
    padding: 2em;
    text-align: left;
  	font-family: "Raleway", sans-serif;
  color:#ccc;
}

#film-detail-popup .prod-param p {
	font-size: 1.5vw;
        line-height: 1.2em;
    margin: 0;
    text-align: center;
}

  

#film-detail-popup .prod-casting .title, #film-detail-popup .prod-casting .value {
  margin: 0!important;
  
}
#film-detail-popup .prod-casting .value {
  white-space:normal;
  text-align: left;
}


#film-detail-popup .details {
    /*! font-family: Arial, sans-serif; */
    font-size: 16px;
    width: 100%;
    margin: 50px;
}

#film-detail-popup .detail-row {
    display: flex;
  width: 100%;
    align-items: center;
    margin: 20px 0;
}

#film-detail-popup .title {
    text-align: left;
    font-weight: bold;
  font-size: 16px;
margin-right: 1em; 
  color:#fff;
  white-space: nowrap;
  font-family: "Raleway", sans-serif;
}

#film-detail-popup .separator {
    width: 100%;
    height: 1px;
    background-color:#fff;
    margin: 0 10px;
}

#film-detail-popup .value {
    text-align: right;
    white-space: nowrap; 
  margin-left: 1em;
    font-family: "Raleway", sans-serif;
color: #fff;
}

/* Ensure the parent div is a flex container for centering */
#film-detail-popup .grid__item-img-inner.teaser {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%; /* Ensure height is defined */
    width: 100%; /* Ensure width is defined */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Style the play button */
#film-detail-popup .play-button {
    font-family: "Raleway", sans-serif; 

    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.7);
    /*! border-radius: 50px; */
    text-align: center;
    position: absolute;
  z-index: 3;
  bottom: 70px;
  right: 70px;
  filter:invert(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add hover animation */
#film-detail-popup .play-button:hover {
    transform: scale(0.9);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.9);
}

/* Optional: Add a play icon before the text */
#film-detail-popup .play-button::before {
    content: '▶';
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    color: #fff;
}




/* Styles pour les transitions */
#film-detail-popup .p-right, #film-detail-popup .p-left {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.5s;
}

/* Transition pour p-right : de droite à gauche */
#film-detail-popup .p-right {
  transform: translateX(20px);
}

#film-detail-popup .p-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Transition pour p-left : de gauche à droite */
#film-detail-popup .p-left {
  transform: translateX(-20px);
}

#film-detail-popup .p-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Invisibilité par défaut */
#film-detail-popup .hidden {
  visibility: hidden; 
  display: block!important;
}

#film-detail-popup .visible {
  visibility: visible;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 2s;
    width: 100%;
}

.movie-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 2s;
}

.release-date {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 2.2s;
}

.learn-more-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 2.4s;
    backdrop-filter: blur(5px);
}

.learn-more-btn:visited {
  color: white;
}

.learn-more-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: #000;
    transform: translateY(-2px);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media screen and (max-width:500px) {
  
  .hero-content h1 {
    font-size: 30px;
    padding: 0 2em;
    line-height: 30px;
  }
  
  .hero-content .release-date {
        font-size: 16px;
    padding: 0 3em;
    line-height: 16px;
  }
  #film-detail-popup .detail-row {
	display: flex;
   flex-wrap: wrap;
}
  #film-detail-popup .value {
	text-align: left;
    display: block;
  width: 100%;
	white-space: wrap;
	margin-left: 0em;
    margin-top: 1em;
	font-family: "Raleway", sans-serif;
	color: #fff;
}
  
}