/* =====================================================
MATERIEL PAGE
===================================================== */

.materiel-page {
  min-height: 100vh;

  padding: 40px 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: url("/wp-content/uploads/2026/03/B006048-R1-08-28A-scaled.jpg")
    no-repeat center center fixed;

  background-size: cover;
}

/* galerie */

.gallery {
  width: 45%;
  max-width: 700px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
  margin-bottom: 40px;
}

/* image */

.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.image-wrapper img {
  transition: opacity 0.5s ease;
}

/* texte hover */

.overlay-text {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  color: #ffffff;

  font-size: 1rem;
  text-align: center;

  opacity: 0;

  transition: opacity 0.5s ease;
}

.image-wrapper:hover img {
  opacity: 0;
}

.image-wrapper:hover .overlay-text {
  opacity: 1;
}

/* credits */

.credits-note {
  width: 45%;
  max-width: 700px;

  text-align: center;

  font-size: 0.85rem;

  margin-bottom: 20px;

  color: #ffffff;
}

.credits-note a {
  color: #a7d3ff;
}

.credits-note a:hover {
  text-decoration: underline;
}

/* bouton retour */

.back-arrow {
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.2rem;

  color: #808080;

  transition: 0.3s;

  margin-bottom: 40px;
}

.back-arrow:hover {
  color: #ffffff;
}

/* responsive */

@media (max-width: 768px) {
  .gallery {
    width: 90%;

    grid-template-columns: 1fr;
  }

  .credits-note {
    font-size: 0.75rem;
    width: 90%;
  }

  .back-arrow {
    font-size: 1rem;
  }
}
