@font-face {
	font-family: Share;
	src: url('font/Share-Regular.otf');
}
@font-face {
	font-family: Share-Italic;
	src: url('font/Share-Italic.otf');
}
@font-face {
	font-family: Share-Bold;
	src: url('font/Share-Bold.otf');
}
@font-face {
	font-family: Share-BoldItalic;
	src: url('font/Share-BoldItalic.otf');
}

header {
  font-family: Share-Bold;
  color: white;
  background-color: #A628E2;
  width: 100%;
  height: 40px;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  box-sizing: border-box;
  z-index: 1000; /* ← reste au dessus de tout */
}

.header-left img {
  height: 20px;
  margin-right: 10px;
}

.header-title {
  font-size: 24px;
}

.header-title img {
  height: 15px;
  margin-right: 10px;
}

#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 999;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 90px;
  padding-top: 40px;
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none; /* bloque les clics quand masqué */
}

#fullscreen-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.menu-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.menu-text {
  width: 66.66%; /* 2/3 */
  color: #A628E2;
  font-family: Share;
  font-size: 1.5rem;
  padding: 2rem;
  padding-right: 7rem;
  text-align: left;
  max-height: 100%;
  overflow-y: scroll; /* permet le scroll */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

/* Supprime la barre de scroll sur Webkit (Chrome, Safari) */
.menu-text::-webkit-scrollbar {
  display: none;
}


.menu-text h1 {
  font-family: Share-BoldItalic;
}

.menu-image {
  width: 33.33%; /* 1/3 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-image img {
  max-width: 100%;
  max-height: 90%;
  object-fit: contain;
}


body {
  margin: 0;
  padding: 0;
  font-family: Share-Italic;
  color: #A628E2;
  text-align: center;
  font-size: 100%;
  background-color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
}

#commentaire {
	margin-bottom: 1%;
}

/* Cacher toutes les images sauf celle survolée */
body.gallery-hovered .image-container:not(.active) {
  opacity: 0;
  pointer-events: none;
}

/* Optionnel : effet plus doux sur l’image active */
.image-container.active {
  z-index: 2;
  transition: transform 0.3s ease;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5%;
  gap: 0px;
  box-sizing: border-box;
}

.image-container {
  position: relative;
  width: calc(25% - 20px); /* 4 images par ligne avec espace */
  aspect-ratio: 1/1;
  background-color: transparent;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-container.hovered {
  border-radius: 8px;
  cursor: pointer;
}


/* Responsive pour mobile */
@media (max-width: 768px) {
  .image-container {
    width: 100%;
    max-width: 400px;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }

  #fullscreen-menu {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px 20px 20px; /* marge haut pour éviter le header */
    overflow-y: scroll;
  }

  .menu-content {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }

  .menu-text {
    width: 100%;
    padding: 1rem;
    padding-right: 1rem;
    font-size: 1.1rem;
    max-height: none;
    overflow-y: visible;
    text-align: left;
  }

  .menu-image {
    width: 100%;
    margin-top: 1.5rem;
  }

  .menu-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
  }
}

body.menu-open header {
  background-color: #FFFF00;
}
