/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  

  body {
    font-family: sans-serif;
  }
  
  /* Conteneur grille */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19.63vw, 1fr));
    gap: 1.302vw;
    justify-content: center;
    padding: 8.385vw;
    margin-top: 10%;

  }
  
  
  
  
   
  
  
  
  
  
  
  
  /* Cube contenant chaque image */
  .cube {
    width: 19.63vw;
    height: 19.63vw;
    background-color: #ddd;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Image dans le cube */
  .cube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .cube:hover img {
    transform: scale(1.05);
  }


  .cube {
    position: relative;
    overflow: hidden;
}

.cube img {
    width: 100%;
    height: auto;
    display: block;
}

/* Nouvel élément pour le texte */
.cube .name-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(8, 35, 255, 0.9);
    color: white;
    text-align: center;
    transition: bottom 0.3s ease;
    z-index: 10;
}

/* Desktop - Hover */
.cube:hover .name-overlay {
    bottom: 0;
}

/* Mobile - Click */
@media (max-width: 768px) {
    .cube.active .name-overlay {
        bottom: 0;
    }
}


@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 3vw;
    padding: 5vw;
  }

  .cube {
    width: 45vw !important;
    height: 45vw !important;
    margin: 0 auto;
  }

  .baniere-big {
    height: 70vh;
    position: relative;
    overflow: hidden;
  }

  .b-txt {
    transform: translateY(0) !important;
    position: relative;
    z-index: 3;
    width: 80%;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .b-cube {
    display: none; /* Masque l'élément cube sur mobile */
  }
}