/* Réinitialisation des styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles généraux */
body {
  font-family: 'Times New Roman', serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* Barre de navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #111;
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  font-size: 1.8em;
}

/* Menu */
.menu {
  font-family: Arial, sans-serif;
  list-style: none;
  display: flex;
}

.menu li {
  margin-left: 20px;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2em;
  transition: color 0.3s;
}

.menu a:hover {
  color: #aaa;
}

/* Icône du menu hamburger */
.menu-icon {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: #fff;
}

/* Case à cocher pour le menu mobile */
#menu-toggle {
  display: none;
}

.text-overlay-description {
  background-color: #aaa;
  padding: 20px;
  border-radius: 10px;
  width: 55%;
  margin-bottom: 20px; /* Espace de 20px sous l'élément pour éviter le chevauchement */
  text-align: justify; /* Justifie le texte pour un alignement uniforme des deux côtés */
}

/* Styles pour les écrans de petite taille */
@media (max-width: 768px) {
  header {
      position: relative;
  }

  .galerie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* S'assure que le conteneur occupe toute la largeur */
    padding: 0;
    margin: 0;
  }


  .menu {
      display: none;
      flex-direction: column;
      width: 100%;
      position: absolute;
      top: 60px;
      left: 0;
      background-color: #111;
  }

  .menu li {
      margin: 0;
      text-align: center;
      padding: 10px 0;
  }

  .menu-icon {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      padding: 15px;
      cursor: pointer;
  }

  /* Afficher le menu lorsque la case est cochée */
  #menu-toggle:checked + .menu-icon + nav .menu {
      display: flex;
  }

  #menu-toggle:checked + .menu {
      display: block;
      /* Autres styles */
  }

  .text-overlay-description {
    width: 100%; /* Assure que l'élément occupe toute la largeur de l'écran */
    padding: 15px; /* Ajuste le padding pour économiser de l'espace */
    border-radius: 10px; /* Supprime les bordures arrondies pour un meilleur ajustement */
    margin-bottom: 20px; /* Espace de 20px sous l'élément pour éviter le chevauchement */
    text-align: justify; /* Justifie le texte pour un alignement uniforme des deux côtés */

  }

}
/* Sections */
section {
  padding: 0px 0px;
  border-bottom: 1px solid #333;
}

.accueil-background {
  background-image: url('galaxie-horloge.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 80vh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 0px;
  box-sizing: border-box;
  /*overflow: hidden;*/
}

.accueil-background h1,
.accueil-background p {
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.text-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}




.galerie-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.oeuvre {
  flex: 1 1 300px;
  max-width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.oeuvre img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid #000;
}

.oeuvre:hover {
  transform: scale(1.05);
}


section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

/* Pied de page */
footer {
  background-color: #111;
  padding: 20px;
  text-align: center;
}
