/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-frame {
  background: white;
  width: 80%;
  max-width: 95%;
  height: 80%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  position: relative;

}

/* ================== SLIDER ================== */
.slider {
  flex: 1;
  background: black;
  position: relative;
  min-width: 70%;
  object-fit: contain;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  opacity: 1;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 22px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.dot.active {
  background: white;
}

.text-panel_hebergt {
   width: 100%;
   overflow-y: scroll;
}

.text-panel_hebergt h3 {
  	margin-top: 10px;
  	margin-bottom: 20px;
    font-size: 2em;
    font-weight: bold;
    unicode-bidi: isolate;
}

.text-panel_hebergt p {
   font-size: 1.2em;
  	margin-top: 5px;
  	margin-bottom: 5px;
}

.calendar{
		max-width: 20%;
  display: block;
  margin: 0 auto;
}
.gallery img{
  object-fit: contain;
}


.overlay {
/*  position: absolute;
  inset: 0;
*/  background: rgba(0,0,0,0.6);
  color: white;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.Hebergement_bloc:hover .overlay {
  opacity: 1;
}


/* ===== VERSION MOBILE ===== */
        @media (max-width: 768px) {
            body {
                align-items: flex-start;
            }

            .modal {
                width: 90vw;
                height: auto;
            }

            .modal-frame {
                flex-direction: column;
            }

            .slider {
                width: 100%;
                min-height: 200px;
            }

            .slider img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .text-panel_hebergt {
                width: 100%;
                overflow-y: scroll;
         	}
        }