.acces-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
}

h1 {
  margin-bottom: 2rem;
}

.map-container {
  width: 100%;
  height: 400px;
  margin-bottom: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.acces-block {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
}

.acces-block h2 {
  width: 100%;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.acces-text {
  flex: 1 1 60%;
  order: 1;
}

.acces-text p {
  margin: 0;
  text-align: justify;
}

.acces-thumb {
  flex: 1 1 35%;
  order: 2;
  text-align: right;
  cursor:pointer;
}
.location-text{
margin-top: 12px;
font-size: 1.05rem;
line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .acces-block {
    flex-direction: column;
  }

  .acces-text,
  .acces-thumb {
    flex: 1 1 100%;
    text-align:m center;
  }

  .acces-thumb {
    margin-top: 1rem;
    width:100%;
    text-align: center;
  }
  
  .acces-thumb img {
  	  width:90%;
  }
}

/* Modale */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 5%;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  max-height: 80vh; /* 👈 Ajout pour limiter la hauteur à 80% de la fenêtre */
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.6);
  object-fit: contain; /* Pour éviter les débordements visuels */
  position: relative;
  top: 40%;
  transform: translateY(-50%);
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
