@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: "Poppins" , sans-serif;
    cursor: url('assets/cursor.png') 4 4, auto !important;
}

/* Style de base pour le curseur */
body {
    background-color: #11101D;
    margin-left: 80px;
}

/* herosection is covering the top carousel */
#heroSection {
    position: relative;
    width: 100%;
    height: 90vh;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    margin-top: 0px;
    padding: 0;
    overflow: hidden;
}

/* Ajout d'un overlay pour améliorer la lisibilité du contenu */
#heroSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(17, 16, 29, 0.7) 0%,
        rgba(17, 16, 29, 0.3) 50%,
        rgba(17, 16, 29, 0.9) 100%);
    z-index: 1;
}

#heroSection .content {
    position: relative;
    z-index: 2;
}

.item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.item.active {
    opacity: 1;
}

.vertical-div {
    width: 100px; /* Adjust width as needed */
    height: 10vh; /* Adjust height as needed */
    background-color: transparent; /* Set background color if needed */
}

.item {
    display: none;
    &:nth-child(1), &:nth-child(2) {
      display: block;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      transform: none;
      border-radius: 0;
      box-shadow: none;
      opacity: 1;
      scrollbar-width: none; /* Firefox */
    }
}
  
.content {    /* this is the text part */
    width: min(30vw,400px);
    position: relative;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    font: 400 0.85rem helvetica,sans-serif;
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
    opacity: 0;
    display: none;
  
    & .title {
      font-family: 'poppins';
      text-transform: uppercase;
      
      text-shadow: 0 0 5px rgba(0,0,0,1) , 0 2px 2px rgba(0,0,0,1);
    }
  
    & .description {
      line-height: 1.7;
      margin: 1rem 0 1.5rem;
      font-size: 0.7rem;
      color: #fff;
      text-shadow: 0 0 5px rgba(0,0,0,1) , 0 2px 2px rgba(0,0,0,1);
    }
  
    /* read more button */
    .watch-now-button {
      width: fit-content;
      text-decoration: none;
      background-color: rgba(0,0,0,0.1);
      color: white;
      border: 2px solid white;
      border-radius: 0.45rem;
      padding: 0.75rem;
      text-shadow: 0 0 5px rgba(0,0,0,1) , 0 2px 2px rgba(0,0,0,1);
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}
  
.item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}
  
@keyframes show {
    0% {
      filter: blur(5px);
      transform: translateY(calc(-50% + 75px));
    }
    100% {
      opacity: 1;
      filter: blur(0);
    }
}
  
.nav {
    display: none;
}

@media (width > 650px) and (width < 900px) {
    .content {
      & .title        { font-size: 1rem; }
      & .description  { font-size: 0.7rem; }
      & button        { font-size: 0.7rem; }
    }
    .item {
      width: 160px;
      height: 270px;
  
      &:nth-child(3) { left: 50%; }
      &:nth-child(4) { left: calc(50% + 170px); }
      &:nth-child(5) { left: calc(50% + 340px); }
      &:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
    }
}
  
@media (width < 650px) {
    .content {
      & .title        { font-size: 0.9rem; }
      & .description  { font-size: 0.55rem; }
      & button        { font-size: 0.6rem; }
    }
    .item {
      overflow-x: hidden;
      overflow-y: hidden;
      width: 130px;
      height: 220px;
  
      &:nth-child(3) { left: 50%;}
      &:nth-child(4) { left: calc(50% + 140px); }
      &:nth-child(5) { left: calc(50% + 280px); }
      &:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
    }
}

/* CSS for main div*/

#hnav_Content {
  position: relative;
  width: 100%;
}

/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    #hnav_Content {
        width: 100vw;
        margin-left: 50px;
    }
    #heroSection {
      width: 100vw;
    }
    body {
      width: 100vw;
    }
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-radius: 15px;
    border-style:solid;
    border-color: #63151500;

    background-color: #1d1b318c;
    border-left: transparent;
    border-right: transparent;
    margin: 20px 0;
    text-decoration-color: rgba(240, 248, 255, 0.443);
    margin-bottom: 5rem;
}

nav a {
    color: #fff;
    text-decoration: wavy;
    font-family: 'Press Start 2p';
    font-size: 0.8em;
    padding: 5px;  
    border-radius: 5px;
    margin: 10px; /** adds space between nav elements**/
    
}

nav a:hover {  /* Styling individual navbar elements*/
    background-color: #4a97e400;
    animation: jello-horizontal 1.0s;
}

 @-webkit-keyframes jello-horizontal{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes jello-horizontal{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}

/* Media queries for responsiveness of navbar */
@media only screen and (max-width: 600px) {
  nav {
  width: 100%;
  flex-direction: column; /* Stack nav links vertically on smaller screens */
  align-items: center; /* Center nav links */
  }
  
  nav a {
  margin: 5px 0; /* Add space between nav links */
  }
}

p {
  font-size: 25px;
  font-family: poppins;
  font-weight: bolder;
}

/* Configuration du défilement horizontal */
.imgbtn {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Style des boutons de navigation */
.btf, .btw {
  display: none;
}

.btf i, .btw i {
  font-size: 24px;
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  position: relative;
  background-color: #1D1B31;
  min-height: 35vh;
  border-radius: 15px;
  margin: 20px 0;
  scroll-behavior: smooth;
    border-radius: 15px;
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: nowrap;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1;
    scroll-behavior: smooth;
}

@media (max-width: 767px) {
  div.scroll-container {
      min-height: 25vh;
      max-height: 25vh; /* Adjust the height as needed for smaller screens */
  }
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.scroll-container {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
}

div.scroll-container img {
  /* height: 20vw; */
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: inline-block;
}

/* Styles pour les boutons de navigation */
.btf, .btw {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(123, 116, 198, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btf {
  left: 10px;
}

.btw {
  right: 10px;
}

.btf:hover, .btw:hover {
  background-color: rgba(123, 116, 198, 1);
  transform: translateY(-50%) scale(1.1);
}

.shimmer-placeholder {
  position: relative;
  overflow: hidden;
}

.shimmer-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-90deg, #efeded 0%, #7db7f5 50%, #eeeeee 100%);
  background-size: 200% 200%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

main {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#hnav_Content {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#heroSection, .slider, .scroll-container, .imgbtn {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.row.copyright {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Correction pour les marges dans les conteneurs de copyright */
.row.copyright p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}
  
.home-section .text{
  display: inline-block;
  color: #11101d;
  font-size: 25px;
  font-weight: 500;
  margin: 18px
}
@media (max-width: 420px) {
  .sidebar li .tooltip{
    display: none;
  }
}

.card-image {
    transition: transform 0.3s ease-in-out;
}

.pro {
    color: red;
}
.pro::after {
    content: '*';
    margin-left: 2px;
}

/* Styles pour la grille de genres */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.genre-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.genre-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.genre-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(29, 27, 49, 0.7) 0%,
        rgba(29, 27, 49, 0.8) 100%);
    transition: all 0.3s ease;
}

.genre-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.genre-content i {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #7B74C6;
    transition: all 0.3s ease;
}

.genre-content span {
    font-size: 1.5em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(123, 116, 198, 0.4);
}

.genre-card:hover .genre-background {
    transform: scale(1.1);
}

.genre-card:hover .genre-overlay {
    background: linear-gradient(to bottom,
        rgba(123, 116, 198, 0.7) 0%,
        rgba(123, 116, 198, 0.8) 100%);
}

.genre-card:hover .genre-content i {
    color: #FFD836;
    transform: scale(1.2);
}

/* Media queries pour la grille de genres */
@media (max-width: 768px) {
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 10px;
    }
    
    .genre-content i {
        font-size: 2em;
    }
    
    .genre-content span {
        font-size: 1.2em;
    }
}

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

/* Styles du slider */
.slider {
    height: 100%;
    list-style: none;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-in-out, transform 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Animation pour le contenu des slides */
.slide-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 2;
    max-width: 50%;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.slide-content h2 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    background: #7B74C6;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.watch-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}

.watch-btn:hover {
    background: #9791D1;
    transform: translateY(-2px);
}

.slider-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.info-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.info-button i {
    font-size: 1.2em;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 2;
    display: flex;
    gap: 1em;
}

.btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(123, 116, 198, 0.8);
    transform: scale(1.1);
}

/* Responsive design pour le slider */
@media screen and (max-width: 768px) {
    .slider .title {
        font-size: 1.8rem;
    }

    .movie-info-slider {
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .slider .description {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .slider-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .watch-now-button, .info-button {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Navigation */
    #hnav_Content nav {
        flex-direction: column;
        padding: 10px;
    }

    #hnav_Content nav a {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    /* Sections titres */
    #Films p, #Series p, #MeilleursFilms p, #MeilleuresSeries p, #Bollywood p {
        font-size: 18px;
        padding: 0 15px;
    }

    /* Conteneurs de défilement */
    .scroll-container {
        margin: 0 10px;
    }

    /* Boutons de navigation */
    .btf, .btw {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    /* Grille des genres */
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .genre-card {
        height: 120px;
    }

    /* Section Discord */
    .discord-section {
        margin: 20px 10px;
        padding: 20px 10px;
    }

    .discord-section h2 {
        font-size: 24px;
    }

    .discord-section p {
        font-size: 16px;
        padding: 0 15px;
    }

    /* Bandeau défilant */
    .scroll-banner .scroll-content span {
        font-size: 14px;
    }

    /* Footer */
    .copyright p {
        font-size: 12px;
        margin: 5px 15px;
    }
}

/* Ajustements pour très petits écrans */
@media screen and (max-width: 480px) {
    .genres-grid {
        grid-template-columns: 1fr;
    }

    .genre-card {
        height: 100px;
    }

    /* Hero Section ajustements */
    #heroSection {
        height: 200px;
    }

    .slider {
        height: 200px;
    }

    /* Ajustements des conteneurs de films/séries */
    .scroll-container img {
        width: 120px;
        height: 180px;
    }
}

/* Optimisations pour le mode paysage sur mobile */
@media screen and (max-height: 480px) and (orientation: landscape) {
    #heroSection {
        height: 150px;
    }

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

    .genre-card {
        height: 80px;
    }
}

