.gallery-container{
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
}

.gallery-header{
  max-width:700px;
  margin-bottom:40px;
}

.gallery-header h1{
  color:#0b2340;
  margin-bottom:8px;
}

.gallery-header p{
  color:#5f6c80;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}

.gallery-item{
  position:relative;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  cursor:pointer;
}

.gallery-item img{
  width:100%;
  height:220px;
  object-fit:cover;
  transition:transform .35s ease;
}

.gallery-item:hover img{
  transform:scale(1.05);
}

.gallery-item .zoom{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:46px;
  color:#fff;
  background:rgba(11,35,64,.6);
  opacity:0;
  transition:.25s;
}

.gallery-item:hover .zoom{
  opacity:1;
}

/* Pagination */
.gallery-pagination{
  margin-top:50px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.gallery-pagination a{
  padding:10px 16px;
  border-radius:8px;
  background:#e9eef5;
  color:#0b2340;
  font-weight:700;
}

.gallery-pagination a.active{
  background:#f07a1a;
  color:#fff;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.lightbox.active{
  display:flex;
}

.lightbox img{
  max-width:90%;
  max-height:85%;
}

.lb-close,
.lb-prev,
.lb-next{
  position:absolute;
  background:none;
  border:none;
  color:#fff;
  font-size:40px;
  cursor:pointer;
}

.lb-close{ top:20px; right:30px; }
.lb-prev{ left:20px; }
.lb-next{ right:20px; }

@media(max-width:768px){
  .gallery-item img{ height:180px; }
}

/* CONTENEUR */
.gallery-container{
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
}

/* HEADER */
.gallery-header{
  max-width:700px;
  margin-bottom:40px;
}

.gallery-header h1{
  color:#0b2340;
  margin-bottom:8px;
}

.gallery-header p{
  color:#5f6c80;
}

/* GRILLE FIXE */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr); /* 3 par ligne */
  gap:24px;
}

/* CARTE IMAGE */
.gallery-item{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.gallery-item img{
  width:100%;
  height:220px; /* TAILLE FIXE */
  object-fit:cover;
  display:block;
}

/* CAS VIDE */
.gallery-empty{
  grid-column:1 / -1;
  padding:40px;
  text-align:center;
  color:#5f6c80;
  background:#fff;
  border-radius:12px;
}

/* PAGINATION */
.gallery-pagination{
  margin-top:50px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.gallery-pagination a{
  padding:10px 16px;
  border-radius:8px;
  background:#e9eef5;
  color:#0b2340;
  font-weight:700;
}

.gallery-pagination a.active{
  background:#f07a1a;
  color:#fff;
}

/* RESPONSIVE */
@media (max-width: 1024px){
  .gallery-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .gallery-grid{
    grid-template-columns:1fr;
  }

  .gallery-item img{
    height:200px;
  }
}
.gallery-section{
  padding:60px 0;
}

.gallery-desc{
  margin-bottom:30px;
  color:#5f6c80;
}

.gallery-grid{
  display:grid;
  gap:24px;
}

.gallery-grid.cols-3{
  grid-template-columns:repeat(3,1fr);
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.gallery-item img{
  width:100%;
  height:240px;
  object-fit:cover;
  transition:transform .3s ease;
}

.gallery-item:hover img{
  transform:scale(1.06);
}

/* Pagination */
.gallery-pagination{
  margin-top:40px;
  text-align:center;
}

.gallery-pagination a{
  display:inline-block;
  margin:0 6px;
  padding:8px 14px;
  border-radius:8px;
  background:#e9edf3;
  color:#0b2340;
  font-weight:700;
}

.gallery-pagination a.active{
  background:#f07a1a;
  color:#fff;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.lightbox.open{ display:flex; }

.lb-img{
  max-width:90%;
  max-height:90%;
  border-radius:10px;
}

.lb-close{
  position:absolute;
  top:30px;
  right:40px;
  font-size:42px;
  color:#fff;
  cursor:pointer;
}

/* Responsive */
@media(max-width:900px){
  .gallery-grid.cols-3{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:600px){
  .gallery-grid.cols-3{
    grid-template-columns:1fr;
  }
}
/* LIGHTBOX */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.lightbox.open{
  display:flex;
}

/* IMAGE */
.lightbox-img{
  display:block;
  max-width:90%;
  max-height:85%;
  object-fit:contain;
  z-index:10001;
}

/* BOUTONS */
.lb-close,
.lb-prev,
.lb-next{
  position:absolute;
  background:none;
  border:none;
  color:#fff;
  font-size:42px;
  cursor:pointer;
  z-index:10002;
}

.lb-close{
  top:20px;
  right:30px;
}

.lb-prev{
  left:20px;
}

.lb-next{
  right:20px;
}
