/* Auteur : Rodrigo Sousa
     Date de création : 18.12.2024
     Description : Site du projet 293
     Dernière modification : 14.01.2025 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  text-align: center;
  background-image: url(../IMG/carte_background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.9;
  color: white;
  overflow: auto; 
}

header h1 {
  font-size: 3em;
  margin-top: 20px;
  text-align: center;
}

.image-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.fixed-retour {
  position: absolute;
  top: 20px; 
  left: 20px; 
}

.fixed-retour .fixed-image {
  width: 150px; 
  height: auto; 
}

.fixed-retour .fixed-text {
  font-size: 20px; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.thumbnail-container {
  display: inline-block;
  margin: 10px;
}

.thumbnail {
  width: 20vw;
  max-width: 170px; 
  height: auto; 
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
}

.thumbnail:hover {
  transform: scale(1.1);
  border-color: #0078d7;
}

.lightbox-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  text-align: center;
  padding: 20px;
}

.lightbox-container img {
  max-width: 80%;
  max-height: 70%;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.lightbox-container p {
  color: white;
  font-size: 18px;
  max-width: 90%;
  margin: 0;
  line-height: 1.5;
  max-height: 60%; 
  overflow-y: auto;
  padding-right: 15px; 
}

.lightbox-container .close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.image-wrapper {
  position: relative;
  display: block;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5vw; 
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  body{
    overflow:visible;
  }
  .image-container {
    flex-direction: column; 
    align-items: center;
  }

  .thumbnail-container {
    display: block; 
    width: 80%; 
    margin: 10px 0; 
  }

  .thumbnail {
    width: 50vw; 
    max-width: none;
    margin-bottom: 20px; 
  }

  .fixed-retour .fixed-image {
    width: 100px; 
  }

  .fixed-retour .fixed-text {
    font-size: 16px; 
  }
}
