
body {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    
    
   
    

  }
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
   
    z-index: -1;
  }

.titre {
  text-align: center;
  padding: 20px;
  color: #333;
}

.gallery {
  columns: 4 250px;
  column-gap: 1rem;
  padding: 1rem;
  
}
.backgrnd {
  background-image: url('images/MIRSGraphicElements.svg');
  background-repeat: no-repeat;
  
}
.gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 6px;
  break-inside: avoid;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.02);
}

@media (max-width: 1000px) {
  .gallery {
    columns: 3 200px;
  }
}

@media (max-width: 700px) {
  .gallery {
    columns: 2 150px;
  }
}

@media (max-width: 500px) {
  .gallery {
    columns: 1 100%;
    z-index: 1000;
  }
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.lightbox-content {
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 40px;
  padding: 16px;
  color: white;
  user-select: none;
  transform: translateY(-50%);
}

.prev { left: 10px; }
.next { right: 10px; }



.shape {
  position: absolute;
  opacity: 0.15;
  z-index: 0;
  animation: float linear infinite;
}

.circle {
  border-radius: 50%;
  background-color: #38bdf8;
}

.square {
  background-color: #facc15;
}

.rectangle {
  background-color: #a78bfa;
}

.semi-circle {
  background-color: #34d399;
  border-radius: 100px 100px 0 0;
  transform: rotate(0deg);
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(-200px) translateX(50px) rotate(360deg);
  }
}
.frame {
  background: #fff8e1; /* couleur du passe-partout */
  padding: 10px;
  border: 10px solid #3e2c1c; /* couleur du cadre */
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  width: 250px;
  height: auto;
  transition: transform 0.3s;
}

.frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #d2b48c; /* contour intérieur */
}

.frame:hover {
  transform: scale(1.03);
}