body {
  font-family: 'Georgia', serif;
  background-color: #f2f2f2;
  color: #333;
}








/*Hero*/
.hero {
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.hero-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.hero-arrow.left {
  left: 10px;
}

.hero-arrow.right {
  right: 10px;
}

/* Animation de rebond/flottement */
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-down-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s ease;
  z-index: 10;
  animation: bounce 2s infinite;
}

/* Grossissement au hover */
.scroll-down-arrow:hover {
  opacity: 1;
}
.arrow-icon {
  transition: transform 0.3s ease;
  font-size: 2rem;
}

.scroll-down-arrow:hover .arrow-icon {
  transform: scale(1.5);
}

/*About*/
@media (min-width: 767.98px) {
  .about-text {
      padding-left: 2.5rem; 
  }
}

@media (max-width: 767.98px) {
  .col-md-3 {
    margin-bottom: 2.5rem;
  }
  .about-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }
}

/*Gallery*/
.filter-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  color: #333;
  font-weight: normal;
  position: relative;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.filter-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: transparent;
  margin: 4px auto 0;
  transition: background 0.3s ease, width 0.3s ease;
}

.filter-btn:hover::after {
  background: #000;
  width: 70%;
}

.filter-btn.active {
  font-weight: bold;
  color: #000;
}

.filter-btn.active::after {
  background: #000;
  width: 70%;
}

.gallery-img {
  width: 100%;
  height: auto; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
  aspect-ratio: 4/4;
  object-fit: cover;
}




.modal-image-wrapper {
  max-height: 90vh;
  max-width: 90vw;
  padding-top: 0rem;
}

.modal-image-wrapper .btn-light {
  top: 0.5rem;
  right: 0.5rem;
}

.popup-img {
  max-height: 90vh;
  max-width: 90vw;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#imageModal .btn-light {
  z-index: 1055;
  color: #000;
}



#category-title {
  font-size: 2.5rem;
  font-size: bold;
}

#category-description {
  font-size: 1.1rem;
  line-height: 1.6;
}



@media (max-width: 767.98px) {
  .gallery-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }

  .filters {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .filters .filter-btn {
    align-self: center;
  }

  .gallery-title {
    width: 100%;
    text-align: center;
  }

  #gallery .row {
    justify-content: center !important;
  }

  #gallery .row > [class*="col-"] {
    margin-bottom: 0.2rem !important; /* réduit l'espace entre les images */
  }

  #gallery.row.g-4 {
    --bs-gutter-y: 0.2rem; 
  }

  #gallery .col-12 {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .gallery-img {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
  }
}






.error-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
h1 {
  font-size: 4rem;
  font-weight: bold;
}
p.lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}




/* === Page 404 === */
.page-404 {
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.page-404 h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #222;
}

.page-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
}

.page-404 p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.page-404 .btn-dark {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.page-404 .error-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  box-shadow: none;
}
