/* SECTION COUNTDOWN */
/* ———————————— Lancement / Countdown Overlay ———————————— */
#launch-overlay {
  position: fixed;
  inset: 0;
  /* top:0; bottom:0; left:0; right:0 */
  background-color: rgba(0, 0, 0, 0.70);
  /* fond noir à 90 % */
  display: flex;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* au-dessus de .dvd-menu et .transition-layer */
  display: none !important;
}

#launch-overlay.hidden {
  display: none;
  /* après fin du countdown, on ajoute la classe .hidden */
}

#launch-overlay .overlay-content {
  text-align: center;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

/* Titre du countdown */
#launch-overlay #release {
  font-size: 2rem;
  margin-bottom: 2vh;
}

/* Conteneur des 4 time-box */
#launch-overlay #countdown {
  display: flex;
  gap: 2vw;
  justify-content: center;
}

/* Chaque “time-box” */
#launch-overlay .time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

/* Valeur numérique (jours / h / min / s) */
#launch-overlay .time-box div[id] {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Label (Jour(s), Heure(s), etc.) */
#launch-overlay .time-box .label {
  margin-top: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Responsive ajustements éventuels */
@media screen and (max-width: 600px) {
  #launch-overlay #release {
    font-size: 1.5rem;
  }

  #launch-overlay .time-box div[id] {
    font-size: 2.5rem;
  }

  #launch-overlay .time-box .label {
    font-size: 0.9rem;
  }

  #launch-overlay #countdown {
    gap: 1rem;
  }
}



@font-face {
  font-family: 'Nexa';
  src: url('fonts/Nexa-Bold.otf') format('opentype');
  font-weight: bold;
}

@font-face {
  font-family: 'Nexa';
  src: url('fonts/Nexa-Light.otf') format('opentype');
  font-weight: 300;
}

/* —— Variables pour hauteur dynamique —— */
:root {
  /* fallback si JS désactivé */
  --vh: 1vh;
}

/* —— transition TV —— */
.transition-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 999;
}

.transition-layer.close {
  opacity: 1;
}

/* —— décor général —— */
body {
  margin: 0;
  padding: 0;
  font-family: 'Nexa', sans-serif;
  overflow: hidden; /* bloque tout le scroll */
  background: black;
}

.dvd-menu {
  width: 100vw;
  height: 100dvh;
  height: calc(var(--vh) * 100);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  min-height: 100vh;
  overflow: hidden;
}

.overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.788) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}

.main-title {
  font-size: 3rem;
  letter-spacing: 4px;
  margin-bottom: 3vh;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* —— menu horizontal —— */
.menu-horizontal {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 3vw;
}

.menu-horizontal .option {
  font-size: 1.5rem;
  margin: 0;
  position: relative;
  transition: color 0.2s;
}

.menu-horizontal .option a {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  color: inherit;
  text-decoration: none;
}

.menu-horizontal .option::after {
  content: "|";
  position: absolute;
  right: -1.5vw;
  color: #444;
}

.menu-horizontal .option:last-child::after {
  content: "";
}

.menu-horizontal .option:hover a,
.menu-horizontal .option.selected a {
  color: #f09433;
  text-shadow: 0 0 8px #f09433;
}

/* —— options génériques —— */
.option {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.2s;
}

.option::after {
  content: "|";
  position: absolute;
  right: -1vw;
  color: #aaa;
}

.option:last-child::after {
  content: "";
}

.option:hover,
.option.selected {
  color: #f09433;
  /*text-shadow: 0 0 5px #0ff;*/
}

/* —— effet scanlines + grain —— */
.dvd-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.1) 0,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 2px);
  pointer-events: none;
  z-index: 3;
}

.dvd-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('Images/noise.png') repeat;
  opacity: 0.025;
  animation: grain 0.3s steps(10) infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2%, -1%);
  }

  50% {
    transform: translate(1%, 2%);
  }

  75% {
    transform: translate(-1%, 1%);
  }

  100% {
    transform: translate(0, 0);
  }
}

.blur-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  /* 110 % pour le zoom initial */
  height: 110%;
  left: -5%;
  /* centrer le zoom */
  top: -5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px);
  z-index: 0;
  opacity: 1;
  will-change: transform;
  /* pour que le navigateur optimise */
  transform: scale(1.1) translate(0, 0);
  transition: transform 0.3s ease-out;
  /* fallback si JS désactivé */
}

.merchButton {
  display: none !important;
}

/* —— menu vertical sur mobiles —— */
@media only screen and (max-width: 599px) {
  body {
    overflow: auto !important; /* permet le scroll vertical */
    overflow-x: hidden !important; /* empêche de scroller à l’horizontale */
    overflow-y: auto !important;   /* permet le scroll vertical */
  }

  .menu-horizontal {
    flex-direction: column;
    gap: 2vh;
    align-items: center;
  }

  .menu-horizontal .option::after {
    content: none;
  }

  .menu-horizontal .option a {
    padding: 0;
    font-size: 1.4rem;
  }

  .main-title {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 3vh;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  .overlay {
    background: none !important;
  }

  .dvd-menu {
    position: relative;
    width: 100vw;
    min-height: 100vh; /* <-- ici */
    height: auto !important;
    display: flex;
    flex-direction: column; /* <-- important pour l'empilement */
    justify-content: flex-start; /* <-- éviter center pour scroll */
    align-items: center;
    color: white;
    overflow: auto;
    overflow-x: hidden !important;
    overflow-y: auto !important; /* <-- permet le scroll vertical */
  }

  .blur-background {
    width: 100%;
    height: 100%;
  }

  .transition-layer,
  .video-background {
    pointer-events: none;
    touch-action: none;
  }

  .menu-horizontal {
    margin-bottom: 6em !important;
    margin-top: 5em !important;
  }

  * {
    max-width: 100% !important;
    max-height: 100% !important;
  } 

  .dvd-menu::after {
    animation: none !important;
    opacity: 0.02 !important;
  }
}

/* SECTION PLAY INDEX.PHP */
.albumCover {
  border-radius: 6%;
  height: 40vh;
  max-width: 80%;
  margin-bottom: 20px;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
}

.album-title {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.platform-button {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 95);
  /* translucide blanc */
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  text-align: center;
}

.platform-button:hover {
  transform: scale(1.05);
}

.platform-button .icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10%;
  filter: brightness(0);
  /* rend l'icône noire */
}

.youtube-icon {
  font-size: 47px;
  color: black;
  margin-bottom: 10px;
  border-radius: 0 !important;
}

.platform-button p {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.music-section {
  width: 100%;
  height: 100%;
  align-content: center;
}

@media screen and (max-width: 600px) {
  .platform-button {
    width: 45%;
    height: 120px;
  }

  .platform-button p {
    font-size: 12px;
  }

  .albumCover {
    height: 25vh;
    max-width: 70%;
  }

  .links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .platform-button {
    width: 80%;
    height: 60px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 15px;
  }

  .platform-button .icon {
    width: 25px;
    height: 25px;
    font-size: 24px;
    border-radius: 10%;
    margin-bottom: 0;
  }

  .youtube-icon {
    width: 20px;
    height: 20px;
    font-size: 30px;
    margin-bottom: 0;
  }

  .platform-button p {
    font-size: 14px;
    margin: 0;
  }

  .desktop-only {
    display: none !important;
  }

  .music-section {
    margin-top: 0.3em;
    margin-bottom: 2em;
  }

  .albumCover {
    margin-top: 2em;
    margin-bottom: 2em;
  }

  .merchButton {
    display: flex !important;
  }

  .blur-overlay, .blur-background { 
    height: 100% !important;
    width: 100% !important;
  }
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  /* Derrière tout */
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* SECTION MERCH */
.product-images {
  flex: 1;
  text-align: -webkit-center;
}

.main-carousel,
.preview-carousel,
.main-carousel-pack {
  position: relative;
  overflow: hidden;
}

.main-carousel {
  width: 305px;
  height: 405px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-carousel {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

img {
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.preview-item {
  width: 66px;
  height: 66px;
  margin: 0 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

img.carousel-item,
img.preview-item-pack,
img.preview-item {
  object-fit: cover;
  border-radius: 8px;
}

.preview-item.active {
  border-color: rgba(0, 255, 234, 0.842);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  text-decoration: none;
  z-index: 1;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.merch-section {
  height: 100%;
  width: 100%;
  align-content: center;
}

@media only screen and (max-width: 730px) {
  .product {
    flex-direction: column;
  }

  .main-carousel {
    border-radius: 0px;
  }

  .products-container {
    flex-direction: column !important;
    gap: 3em;
    margin-bottom: 3em;
    width: 90%;
    justify-self: center;
  }

  .instagram-contact-button {
    width: 45% !important;
  }

  .products-container {
    grid-template-columns: repeat(1, 1fr) !important;
    margin-bottom: 6em;
  }
}

.instagram-contact-button {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 20px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 35%;
  align-self: center;
}

.instagram-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.instagram-contact-button i {
  margin-right: 8px;
}

/* Grille normale (exemple 4 par ligne) */
.products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* espace entre les produits */
}

/* Quand largeur <= 1250px → seulement 2 produits par ligne */
@media screen and (max-width: 1350px) {
  .products-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      margin: 0 auto 6em auto;  /* ← centre la grille horizontalement */
      justify-content: center;  /* ← centre les colonnes dans le conteneur */
      gap: 90px !important;
      width: fit-content;       /* ← optionnel, pour que la grille s’ajuste */
  }

  .dvd-menu {
    overflow: visible;
    height: auto;
    min-height: 100vh;
  }

  .blur-background {
    width: 100% !important;
    height: 100% !important;
  }

  .menu-horizontal {
    margin-top: 3em;
  }
}

.main-carousel-pack {
  width: 405px;
  height: 505px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-item-pack {
  width: 90px;
  height: 90px;
  margin: 0 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.preview-item-pack.active {
  border-color: rgba(0, 255, 234, 0.842);
}