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

html, body {
  height: 100%;
  font-family: quasimoda, sans-serif;
  background: #fff;
  color: #333;
  overflow: hidden;
}

/* --- Header / lien info --- */
#header {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 250;
}

#header a {
  color: #333c35;
  text-decoration: none;
    font-size: 1.7rem;
	font-weight: 300;
  cursor: pointer;
}

#header a:hover {
  opacity: 0.75;
}

/* --- Galerie --- */
#gallery {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 18vh;
  padding-bottom: 12vh;
  box-sizing: border-box;
}

#image-container {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#current-image {
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Flèches --- */
#prev, #next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 40px;
  color: #333;
  cursor: pointer;
  z-index: 50;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#prev { left: 9.3vw; }
#next { right: 9.3vw; }

#prev:hover, #next:hover {
  opacity: 1;
}

body.show-arrows #prev, body.show-arrows #next {
  opacity: 0.5;
  pointer-events: auto;
}

/* --- Panneau info --- */
#info-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
}

#info-panel.open {
  display: block;
}

#info-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
}

#info-content {
  position: relative;
  z-index: 201;
  max-width: 500px;
  margin: 0 auto;
  padding: 100px 30px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.5;
	font-family: quasimoda, sans-serif;
  font-weight: 300;
  font-style: normal;

}

#info-content a {
  color: #410492;
  text-decoration: none;
}

#info-content a:hover {
  text-decoration: underline;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  #image-container, #current-image {
    max-width: 92vw;
    max-height: 65vh;
  }
  #prev, #next {
    font-size: 28px;
    padding: 10px;
    opacity: 1;
    pointer-events: auto;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
  }
  #info-content {
    padding: 80px 20px;
  }

  /* Ajout : empêcher le titre de passer sur deux lignes */
  #header {
    top: 20px;
    left: 20px;
    right: 20px;
  }
  #header a {
    font-size: 1.1rem;
    white-space: nowrap;
  }
}