.views-shuffle-bloc {
  width: 100vw; 
  position: relative;
  left: 50%;
  margin-left: -50vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2. La zone de contenu à l'intérieur (Masonry) */
.views-shuffle-bloc .view-content {
  width: 100%;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* 3. Les colonnes (Chaque projet) */
.views-shuffle-bloc .views-row {
  width: 25%; 
  padding: 0px;
  box-sizing: border-box;
  display: inline-block; 
  vertical-align: bottom;
}

/* 4. Les images à l'intérieur des colonnes */
.views-shuffle-bloc .views-row img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* 5. La pagination */
.views-shuffle-bloc .pager {
  width: 100%;
  clear: both;
  display: flex;
  justify-content: center; 
  margin-top: 20px;
}


.shuffle-filters-container {
  width: 100%;
  clear: both;
  display: flex;
  justify-content: center; 
  margin-top: 20px;
}

/* Positionnement pour l'overlay */
.views-shuffle-bloc .shuffle-inner {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Le voile noir (Overlay) */
.views-shuffle-bloc .shuffle-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Couleur du survol */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

/* Le texte (récupéré via le JS dans data-title) */
.views-shuffle-bloc .shuffle-inner::after {
  content: attr(data-title);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%); /* On le part d'un peu plus bas */
  color: #fff;
  width: 80%;
  text-align: center;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 11;
}

/* Affichage au survol */
.views-shuffle-bloc .views-row:hover .shuffle-inner::before {
  opacity: 1;
}

.views-shuffle-bloc .views-row:hover .shuffle-inner::after {
  opacity: 1;
  transform: translate(-50%, -50%); /* Remonte à sa place centrale */
}

/* Animation de l'image */
.views-shuffle-bloc .views-row img {
  transition: transform 0.8s ease !important;
}

.views-shuffle-bloc .views-row:hover img {
  transform: scale(1.1) !important;
}

/* On cache le lien colorbox original s'il prend de la place inutilement */
.views-shuffle-bloc .field--name-field-media-image {
  display: none;
}



