/* ===== HERO SECTION ===== */
.hero-cabinet {
  position: relative;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: black;
  text-shadow: 3px 3px 5px black;
    height: 35vh;
    width: 100%;

    background-image: url("../images/header2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-cabinet .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-cabinet h1 {
	  color: white;
  font-size: 3rem;
  margin-bottom: 0rem !important;
}

.hero-cabinet p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* ===== GALERIE / MOSAÏQUE ===== */

.cabinet-gallery {
  padding: 3rem 2rem;
    max-width: 1000px;
  margin: 2rem auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ===== DESCRIPTION ===== */
.cabinet-description {
  background: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.cabinet-description .container {
  max-width: 800px;
  margin: 0 auto;
}

.cabinet-description h2 {
  color: var(--main-color, #0077b6);
  margin-bottom: 1rem;
}

/* ===== INFOS & CARTE ===== */
.infos-contact {
  background: #eaf4f9;
  padding: 4rem 2rem;
}

.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.infos-text ul {
  list-style: none;
  padding: 0;
}

.infos-text li {
  margin-bottom: 0.4rem;
}

.infos-text a {
  color: var(--main-color, #0077b6);
  text-decoration: none;
}

.infos-text a:hover {
  text-decoration: underline;
}

.infos-map iframe {
  width: 100%;
  border-radius: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .infos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; /* masquée par défaut */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; } 
  to { opacity: 1; }
}

.lightbox-image {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* boutons navigation */
.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox .prev { left: 2%; }
.lightbox .next { right: 2%; }

.lightbox .close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s;
}

.lightbox .close:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .lightbox-image {
    max-width: 95%;
    max-height: 75%;
  }
}
