/* Mise en forme de la page d'accueil */

/* Style pour le bouton vidéo*/
.video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    cursor: pointer;
}

iframe {
    z-index: 2;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    box-sizing: border-box;
    outline: none;
  }
  /* Styles pour le message temporaire */
#temporaryMessage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #007bff;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
}
#closeBtn {
    position: absolute;
    top: 10px; 
    right: 10px; 
    border: none;
    color: orange;
    font-size: 20px;
    background: transparent; 
    cursor: pointer; 
}
  
  body {
    color: white;
    font-family: "microsoft yahei", arial, -apple-system, BlinkMacSystemFont,
      "segoe ui", roboto, oxygen, cantarell, "helvetica neue", ubuntu, sans-serif;
    background: #6b6b82;
    /*#080823;*/
  }
  /*Style pour le favori(coeur)*/
  .favorite-btn {
    position: absolute; 
    top: 10px; /* Espace de 10px depuis le haut de la carte */
    left: 10px; /* Espace de 10px depuis la gauche de la carte */
    background-color: rgba(255, 255, 255, 0); 
    border: none; 
    font-size: 22px; 
    color: red; 
    cursor: pointer;
    transition: transform 0.3s ease; /* Transition pour un effet au survol */
}

.favorite-btn:hover {
    transform: scale(1.2); /* Effet de zoom au survol */
}

/* Style pour le bouton de partage*/
.card {
    position: relative; /* Nécessaire pour permettre à l'enfant d'utiliser position:absolute */
}

.share-btn {
    position: absolute;
    top: 10px;
    left: 60px; 
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 8px;
    z-index: 10; /* S'assurer qu'il soit au-dessus des autres éléments */
}
.play-btn {
    top: 10px;
    left: 75px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 8px;
    cursor: pointer;
}

/*Style pour la liste déroulante de recherche*/
#dropdown-results {
    position: relative; 
    color: black;
    list-style: none; 
    background: white; 
    padding: 0; 
    margin: 0; 
    margin-left: 5px;
    border: 1px solid #ccc; 
    width: 100%; 
    display: none; 
    z-index: 999; /* Priorité supérieure pour s'assurer qu'il est au-dessus */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ajoute une ombre pour mieux distinguer */
}
 
  /* Bouton menu */
  #menu {
    background: #f5f5f5;
    color: white;
    border: 3px solid orange;
    cursor: pointer;
    margin-left: 12px;
    height: 42px;
  }
    #my-logo {
      display: flex;
      width: 80px;
      height: 55px;
      cursor: pointer;
  }
   /* Div de défilement */
  #defilement {
  display: flex;
  width: 92%;
  overflow: hidden;  /*Masquer les éléments dépassant de la div */
}

#defilement img {
  width: 70%;  /*Assurez-vous que les images prennent toute la largeur de la div*/
  max-height:800px; /* Définir la hauteur maximale de l'image*/
  margin: 5px 15%; /* Marges*/
  display: none; /* Affichage en ligne pour les images*/
  transition: transform 1s ease; /* Transition pour créer l'effet de défilement*/ 
}
/*Style pour l'image actuellement affichée*/
#defilement .active {
  border-top: 2px solid orange;
  border-bottom: 1px solid white;
  display: inline-block; /*afficher l'image avec la classe active*/
}
 /*Style pour les boutons previous et next
#prevBtn {
  color: white;
  background: #6b6b82;
  border: none;
  cursor: pointer;
  max-height: 50px;
  position: absolute;
  top: 40%;
  left: 16%;
  opacity: 60%;
}
#nextBtn {
  color: white;
  background: #6b6b82;
  border: none;
  cursor: pointer;
  max-height: 50px;
  position: absolute;
  top: 40%;
  left: 82%;
  opacity: 60%;
}*/

  h1 {
    text-decoration: underline solid rgb(237, 118, 15);
    text-align: center;
  }
  h2 { /* Animation du text enjoy yours movies*/
  letter-spacing: 2px;
  background-image: linear-gradient(to right, #ff8c00, #ff8c00);
  background-repeat: no-repeat;
  background-clip: text;
  color: transparent;
  animation: colorSlide 10s infinite linear;
}

@keyframes colorSlide {
  0% {
    background-size: 0% 100%;
  }
  100% {
    background-size: 100% 100%;
  }
}
/* Texte de Bienvenu + email*/
.username {
  color: #4c6598; 
  font-weight: bold; 
}
/* Style pour le bouton d'accès aux infos */
.userInfos, #formBtn {
  border: orange 3px solid;
  padding: 6px 8px;
  background: white;
  color: #305e93;
  text-decoration: none;
  cursor: pointer;
}
.userInfos:hover {
  background-color: rgba(245, 216, 216, 0.75);
}
#formBtn:hover {
  background-color:rgba(245, 216, 216, 0.75);
}
  
  .btn {
    color: white;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: inherit;
  }
  
  /* Place de la div "Something went wrong" */
  .row {
    display: flex;
    max-width: 1200px;
    gap: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  p:hover {
    color: rgb(237, 118, 15);
  }
  
  .wrapper {
    margin: 5px;
    width: 100%;
    min-height: 100vh;
    /*padding: 15px 0; Espace au dessus*/
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
  }
  
  .wrapper .card {
    position: relative;
    font-size: 14px;
    line-height: 21px;
    width: 285px;
    height: 360px;
    overflow: hidden;
    transition: 0.5s ease all;
  }
  
  .wrapper .card .card-content {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 50px 10px 7px;
    background-image: linear-gradient(
      180deg,
      rgba(51, 55, 69, 0),
      rgba(16, 21, 40, 0.95)
    );
    transition: inherit;
  }
  
  .wrapper .card .card-content .card-cont-header {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .wrapper .card .card-content .describe {
    max-height: 0;
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: inherit;
  }
  
  .wrapper .card:hover {
    cursor: pointer;
  }
  
  .wrapper .card:hover .card-content {
    background-image: linear-gradient(180deg, rgba(51, 55, 69, 0) 0, #101528 48%);
  }
  
  .wrapper .card:hover .btn {
    background: #06c3dd;
    border-color: #06c3dd;
  }
  
  .wrapper .card:hover .describe {
    max-height: 200px;
    padding: 8px 0;
    opacity: 1;
  }
  
  .search-block {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    align-items: center;
    margin-bottom: 10px;
    /*margin: 15px 0 30px 0;*/
    margin-right: 20px;
  }
  
  .search-block #search-form {
    display: flex;
    width: auto;
    margin-left: auto;
  }
  
  .search-block input {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border-radius: 0;
    border: none;
    background: rgba(245, 216, 216, 0.75);
  }
  
  .search-block .btn {
    width: 120px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid lightgray;
  }
  
  .search-block .btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid white;
  }
  
  .btn-load {
    background-color: skyblue;
    padding: 10px 25px;
    border: none;
    margin-top: 15px;
  }
  /* Bouton de reservation */
  .reserve-btn {
   position: absolute;
   top: 10px; 
   right: 10px; 
   width: auto;
   color: white;
   background: transparent;
   padding: 5px 10px;
  }
  
  a {
    color: rgb(66, 64, 64);
    text-decoration: none;
  }
 
  #footer, #cookie, #terms-of-use, #privacy-policy, #legal-notices {
    text-align: center;
     color: white;
    background: #6b6b82;
    border: none;
    cursor: pointer;
  }
  
  /* Styles pour le bouton de remontée en haut */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
}

#scrollToTopBtn:hover {
  /*background-color: #0056b3;*/
  background-color: lightgreen;
}

  /* MenuList */
  #menuList {
    overflow: hidden;
    transition: max-height 0.5 ease-in-out;
    width: 230px;
    display: none;
    position: absolute;
    list-style: none;
    padding: 0;
    margin-top: 100px;
    background-color: #fff;
  }
  
  #menuList li {
    padding: 10px;
    cursor: pointer;
  }
  
  #menuList li:hover {
    background-color: #f5d271;
  }
  /* Mise en forme des sections */
  #nos-cinemas, #la-programmation, #vos-avis, #newsletters {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    border: 3px solid #f5d271;
    margin-bottom: 20px;
    margin: 10px 10px;
  }
/* Styles pour la vue mobile */
@media screen and (max-width: 599px) {
  h1 {
      font-size: 22px;
    text-align: center;
  }
  #formBtn {
      width: auto;
      margin-left: 5px;
      margin-bottom: 3px;
  }

  .btn {
      width: auto;
      margin-right: 5px;
  }
  #menuList {
    width: 100%;
    box-sizing: border-box;
  }

  #search-form {
    width: 100%;
  }
   #my-logo {
      display: flex;
      width: 60px;
      height: 40px;
      margin: auto;
  }
  h3, h4 {
    display: flex;
    width: auto;
  }
    #defilement {
    flex-direction: column; /* Aligner les éléments verticalement */
  }
  #defilement img {
    width: auto; /* Réduire la largeur des images pour les adapter à la largeur de l'écran */
    max-height: none; /* Supprimer la hauteur maximale des images */
    display: none; /* Afficher les images en tant que bloc pour une disposition verticale */
  }
  #nextBtn {
  left: 78%;
  }
  #dropdown-results {
      width: 100%;
  }
}

/* Styles pour la vue tablette */
@media screen and (min-width: 600px) and (max-width: 1024px) {
    #dropdown-results {
        position: absolute;
        color: black;
        list-style: none;
        background: white;
        padding: 0;
        margin-top: 30px;
        border: 1px solid #ccc;
        width: 90%; /* Utilisez une largeur adaptée pour tablettes */
        left: 5%; /* Centrez la liste déroulante */
        z-index: 9999; /* Assurez qu'il est au-dessus des autres éléments */
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }
  h1 {
      font-size: 22px;
      text-align: center;
  }
  #menuList {
    width: 100%;
    box-sizing: border-box;
  }
  #search-form {
    width: 100%;
  }
   #my-logo {
      display: flex;
      width: 45px;
      height: 35px;
      margin: auto;
  }
  h3, h4 {
    display: flex;
    width: auto;
  }
}
