
html {
  scroll-padding-top: 120px; /* hauteur du header */
}

body {
  background-image: url("../elements/texture-terre.png");
  background-repeat: repeat;
}

/* Section Screenshots */

.screenshots-section {
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.5);
  }


/* GRILLE D'IMAGES */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* CARTE IMAGE */
.photo-card {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1; /* carré */
  background: #111;
}

/* IMAGE */
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* HOVER (optionnel mais sympa) */
.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px;
  font-family: 'Minecraft', sans-serif;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}




/* popup global (hidden by default) */
.photo-popup {
  display: none;               /* invisible au départ */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* contenu centré */
.photo-popup .photo-popup-content {
  max-width: 95%;
  max-height: 95%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* image dans le popup */
.photo-popup .photo-popup-content img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* bouton fermer */
.photo-popup .close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2.4rem;
  font-family: 'Minecraft', sans-serif;
  background: #2A2359;
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10000;
  display: none;
}

/* petite animation d'apparition */
.photo-popup.show {
  display: flex;
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Bouton tarifs */
.tarifs-container {
  text-align: center;
  margin-top: 40px;
}

.voir-tarifs-btn {
  display: inline-block;
  padding: 25px 50px;
  font-size: 2rem;
  font-family: 'Minecraft', sans-serif;
  background-color: #2A2359;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.3s;
}

.voir-tarifs-btn:hover {
  background-color: #1b173a;
  transform: scale(1.05);
}




/* RESPONSIVE AJUSTEMENTS */
@media (max-width: 1280px) {
    h1 {
        font-size: 7rem;
        margin-top: 200px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 4.5rem;
        margin-top: 100px;
    }

  .screenshots-section {
    padding: 40px 15px;
  }

  .screenshots-grid {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
        font-size: 2rem;
        margin-top: 100px;
    }

  .screenshots-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}