@import url("a-general.css");

p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  text-align: justify;
}

h1 {
  text-align: center;
}

/* --------------------------------
   Conteneur global du carrousel
----------------------------------*/
.conteneur-carrousel {
  max-width: 900px;
  margin: 80px auto 60px;
  position: relative;
}

/* --------------------------------
   Zone des images
----------------------------------*/
.conteneur-images {
  width: 100%;
  height: 350px;              /* hauteur fixe pour toutes les cartes */
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.conteneur-images img {
  position: absolute;
  max-width: 100%;
  height: 100%;
  object-fit: cover;           /* toutes les images remplissent le cadre */
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.conteneur-images img.actif {
  opacity: 1;
}

/* --------------------------------
   Commandes (flèches)
----------------------------------*/
.commandes {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;        /* le conteneur ne capte pas les clics */
}

.commandes button {
  pointer-events: auto;        /* mais les boutons oui */
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.commandes img {
  width: 18px;
  height: 18px;
}

/* --------------------------------
   Cercles d'indication
----------------------------------*/
.cercles {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;            /* permet de scroller si trop de cercles */
  padding-bottom: 4px;
}

.cercles::-webkit-scrollbar {
  height: 4px;
}

.cercles::-webkit-scrollbar-thumb {
  background: #ee6314;
  border-radius: 999px;
}

.cercle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin: 2px;
  cursor: pointer;
  outline: none;
  border: 1px solid #ee6314;
  background: transparent;
}

.cercle.actif-cercle {
  background: #ee6314;
}

/* --------------------------------
   Overlay d'information sur la carte
----------------------------------*/
.map-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;               /* caché par défaut */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.map-overlay.actif {
  display: flex;
}

.map-overlay-content {
  position: relative;
  background: #111827;
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  color: #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.map-overlay-image {
  flex: 1 1 50%;
  min-width: 280px;
}

.map-overlay-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
}

.map-overlay-texte {
  flex: 1 1 50%;
  padding: 16px 20px;
  min-width: 280px;
}

.map-overlay-texte h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: #ee6314;
}

.map-overlay-texte p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.map-overlay-type {
  font-weight: 600;
  color: #93c5fd;
}

.map-overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.8rem;
  cursor: pointer;
}

/* --------------------------------
   Responsive
----------------------------------*/
@media screen and (max-width: 767px) {
  .conteneur-carrousel {
    max-width: 100%;
    margin-top: 40px;
  }

  .conteneur-images {
    height: 260px;
  }

  .map-overlay-content {
    flex-direction: column;
  }
}
