/* Header (ne pas toucher) */
#main-header {
  background-color: #373C48;
  border-bottom: 1px solid #222;
  padding: 20px 0;
}

/* Reset + typographie */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* Container */
main.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 20px 160px;
}
h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px; /* au lieu de 60px */
}


.renovation-interieur {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background-color: #fff;
  padding: 100px 40px; /* top-bottom 20px, left-right 40px */
  margin-bottom: 60px; /* facultatif : réduit aussi l’espace sous la section */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: 'Playfair Display', serif;
}

.content-texte, .content-image {
  flex: 1 1 45%;
}

.content-image img {
  width: 100%;
  border-radius: 8px;
}

/* Image grid */
.image-grid {
  padding: 40px 0;
  background-color: #f2f2f2;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

/* Footer (ne pas modifier) */
.footer {
  background-color: #2d2f3a;
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.85rem;
  border-top: 1px solid #444;
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

#lightbox.show {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

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

#lightbox .arrow {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  padding: 20px;
  transform: translateY(-50%);
}

#lightbox .arrow.left {
  left: 20px;
}

#lightbox .arrow.right {
  right: 20px;
}
#lightbox-img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

#lightbox-img.zoomed {
  transform: scale(2); /* zoom x2 */
  cursor: zoom-out;
}
#lightbox-img.zoomed {
  max-height: unset;
  max-width: unset;
}
