

  /* ===== SECTION GALERIE ===== */
  body {
    font-family: Roboto, sans-serif;
    margin: 0;
    background: #f4f4f4;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .card:hover {
    transform: scale(1.05);
  }

  .card img, .card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
  }

  .card-title {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 5px 10px;
    text-align: center;
  }

  /* Formes variées */
  .shape1 img, .shape1 video { border-radius: 15px; }
  .shape2 img, .shape2 video { border-radius: 50px; }
  .shape3 img, .shape3 video { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }

  /* Lightbox */
  #lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }

  #lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
  }

  #lightbox.show {
    display: flex;
  }

  #lightbox:after {
    content: '✖';
    color: white;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 80%;
  }

  .lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
  }

  .lightbox-nav span {
    font-size: 50px;
    color: white;
    cursor: pointer;
  }

  .close-lightbox {
      position: absolute;
      top: 30px; /* Distance depuis le haut */
      right: 40px; /* Distance depuis la droite */
      color: #fff; /* Blanc */
      font-size: 40px; /* Taille du "X" */
      cursor: pointer; /* Curseur main */
  }

  /* .modal-body img {
  max-height: 80vh;
  object-fit: contain;
} */

.modal-content .btn-close {
  background-color: rgba(251, 248, 248, 0.5); /* fond noir transparent */
  border-radius: 50%;                  /* rond */
  padding: 0.25rem;                    /* un peu d’espace */
  width: 2rem;
  height: 2rem;
  opacity: 1;                         /* bien visible */
  transition: background-color 0.3s ease;
}

.modal-content .btn-close:hover {
  background-color: rgba(0, 0, 0, 0.5); /* plus foncé au survol */
}


  @media (max-width: 768px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .gallery {
      grid-template-columns: 1fr;
    }
  }
  

/* Section de la galerie1 */
.gallery-section {
  padding: 80px 20px; /* Espacement interne en haut/bas de 80px, à gauche/droite de 20px */
   text-align: center;/* Centre le texte à l'intérieur de la section */
   background: #f8f9fa; /*Couleur de fond gris très clair */
 }

.gallery-section h2 {
  font-size: 3rem; /* Taille de police très grande pour le titre */
  color: #0a1a3a; /* Couleur bleu foncé */
  margin-bottom: 60px; /* Espace sous le titre */
  animation: fadeIn 1s ease-out; /* Animation d’apparition fluide */
}




