.dnone {
  display: none !important;
}

/* Bouton de retour en haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e50914;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #ff0a16;
  transform: translateY(-3px);
} 

.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.genre-filter button {
  padding: 6px 12px;
  border: 1px solid #aaa;
  border-radius: 20px;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.genre-filter button.active {
  background: #ff4444;
  color: white;
  border-color: #ff4444;
}

.vider-panier,
.valider-panier {
  border-radius: 3px;
  padding: 8px 12px;
}

.showPanierBtn{
  width: 20px;
}

#showPanierBtn img{
  width: 30px;
}

#addbtn{
  background-color: white;
  color: #e50914;
  
}

#addbtn a{
  text-decoration: none;
  color: #e50914;
  font-size: 20px;
}

.video-info{
  color: black;
}

    /* === Modal === */
    .modal {
      display: none; /* caché par défaut */
      position: fixed;
      z-index: 100;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5);
    }

    .modal-content {
      background-color: #fff;
      margin: 8% auto;
      padding: 20px;
      border-radius: 10px;
      width: 400px;
      box-shadow: 0 0 15px rgba(0,0,0,0.2);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .close {
      color: #888;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
    }

    .close:hover {
      color: #000;
    }

    .panier-list {
      margin-top: 15px;
      border-top: 1px solid #ddd;
      padding-top: 10px;
      max-height: 200px;
      overflow-y: auto;
    }

    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .item span {
      flex: 1;
    }

    #inputPanier {
      width: 100%;
      padding: 8px;
      margin-top: 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }

    .modal-footer {
      margin-top: 15px;
      display: flex;
      justify-content: space-between;
    }

    .movie-title a {
      text-decoration: none;
      color: white;
    }
    .movie-title a:hover {
      text-decoration: underline;
    }

.is_nouveaute{
  float: right;
  width: 15%;
}

.films-grid-container-home{
  float: left;
  width: 83%;
}
/* === SCREENSAVER FULLSCREEN NETFLIX STYLE === */
#screensaver {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    box-sizing: border-box;
    display: none;
    overflow: hidden !important;
    z-index: 99999999 !important;
    flex-direction: column;
    justify-content: space-between;
}

/* Chaque ligne */
.ss-row {
    display: flex;
    overflow: visible !important; /* Changé à visible */
    white-space: nowrap;
    height: 150px;
    position: relative;
    will-change: transform;
}

/* Images - DÉFINIR UNE LARGEUR FIXE */
.ss-row img {
    height: 150px;
    width: 100px !important; /* Largeur fixe */
    margin-right: 20px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Empêche le rétrécissement */
    display: block;
}

.ss-row img:hover {
    transform: scale(1.1);
    z-index: 1;
    position: relative;
}

/* Lignes 2 et 3 plus grandes */
#row2, #row3 {
    height: 240px !important;
}

#row2 img, #row3 img {
    height: 240px !important;
    width: 160px !important;
    margin-right: 24px;
}