.portfolio-complet {
  background-color: #FFF3E9;
  padding: 175px 20px 100px 20px;
}

.portfolio-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #68191D;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #68191D;
  margin: 12px auto 0;
}

.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
}

.portfolio-box {
  width: 350px;
  height: 350px;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
  background-color: #fff3e9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-box:hover {
  transform: scale(1.05);
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(104, 25, 29, 0.7); /* couleur overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-box:hover .portfolio-thumb::after {
  opacity: 1;
}

/* .portfolio-thumb h3 {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: #fff3e9;
  z-index: 2;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
} */

.portfolio-box:hover .portfolio-thumb h3 {
  opacity: 1;
}

.portfolio-thumb .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(104, 25, 29, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
}

.portfolio-box:hover .overlay {
  opacity: 1;
}

.portfolio-thumb .overlay h3 {
  color: #FFF3E9;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 3rem;
  }
}

@media (max-width: 768px) {
  .portfolio-gallery {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }

  .portfolio-box {
    max-width: 90%;
    margin: 0 auto;
  }

  .section-title {
    font-size: 1.8rem;
  }
}