* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%; /* Assure que le contenu occupe toute la hauteur */
  background-color: #efaab0;
  margin: 0;
  padding: 0;
  cursor: url("img/aero_arrow__pink.cur"), auto;
}

a:hover,
button:hover,
.gallery img:hover {
  cursor: url("img/aero_link__pink.cur"), pointer;
}

.header {
  padding: 1.5rem 0;
  background: transparent;
  color: #fff9f5;
  z-index: 100;
  position: relative;
  text-align: center;
  z-index: 1;
}

.header-link {
  text-decoration: none;
  font-size: 8.5vw;
  font-family: "Nighty DEMO", cursive;
  font-weight: 300;
  color: #be0822;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.header h1 {
  margin-top: 1rem;
}

.gallery {
  position: relative;
  column-count: 5;
  column-gap: 10px;
  padding: 10px;
  z-index: 1;
}

.gallery img {
  width: 100%; /* adapte à la colonne */
  height: auto;
  margin-bottom: 10px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.03);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.open {
  display: flex;
}

.overlay img {
  max-width: 90vw;
  max-height: 90vh;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .gallery {
    column-count: 1;
  }
}

.texture-bg {
  position: fixed; /* fixe, ne défile pas */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("img/back2.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  z-index: 0; /* Derrière tout */
  pointer-events: none;
}
