body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  font-size: small;
  background-color: #ffffff;
  overflow-y: auto;
}

nav {
  display: flex;
  flex-direction: column;
  width: 200px;
  padding: 1.5em;
  gap: 0.5em;
}

nav a.logo {
  font-size: medium;
  margin-bottom: 1em;
  color: rgb(107, 118, 106);
  text-decoration-line: none;
  display: block;
}

nav .menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

nav .menu-links a {
  color: black;
  text-decoration: none;
}

.container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

main {
  flex-grow: 1;
  padding: 1em;
  overflow: visible;
}

footer {
  flex-shrink: 0;
  text-align: left;
  padding: 1em;
  background-color: transparent;
}

#about-text,
#contact-text {
  position: absolute;
  top: 51px;
  left: 300px;
  width: 450px;
  background-color: #fff;
  padding: 10px;
  text-align: left;
  display: none;
  z-index: 10;
  word-spacing: normal;
}

#about-text p,
#contact-text p {
  margin: 0 0 0em 0 !important;
  padding: 0 !important;
}

#image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  margin-left: 4px;
  margin-right: 1px;
  padding: 2px 0;
  box-sizing: border-box;
}

/* Images galerie : largeur fixe, hauteur adaptative selon aspect-ratio */
#image-gallery img {
  width: calc(20% - 1px);
  aspect-ratio: 9 / 16;  /* adapte ici le ratio désiré */
  object-fit: cover;
  display: block;
  height: auto;         /* hauteur automatique selon aspect-ratio */
}

@media (max-width: 1000px) {
  body {
    background-color: rgb(255, 255, 255) !important;
    font-size: 12px;
  }

  nav a.logo {
    font-size: 14px;
  }

#image-gallery img {
  width: calc(50% - 5px);
  aspect-ratio: auto;
  object-fit: cover;
  height: auto;
  display: block;
}

  #about-text,
  #contact-text {
    position: static;
    width: 80vw;
    max-width: 70vw;
    margin: 0.5em;
    padding: 0 0.5em;
    text-align: left;
  }
}

@media (min-width: 2800px) {
  body {
    font-size: 30px;
  }
  nav a.logo {
    font-size: 30px;
  }
}

@media (min-width: 2000px) {
  #about-text,
  #contact-text {
    width: 1000px;
    padding: 40px 30px;
    line-height: 1.6;
    top: 80px;
    left: 550px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px; /* adapte selon ce que tu trouves lisible */
  }

  nav a.logo {
    font-size: 16px;
  }

  #about-text,
  #contact-text {
    width: 100vw; /* largeur adaptative */
    padding: 5px 5px;
    position: static; /* ou relative, pour que ça s’adapte au flux */
    top: auto;
    left: 10px;
  }
}