/* RESET */
body, h1, ul, li, p, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

/* GLOBAL */
body {
  font-family: Arial, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
}

/* HEADER */
header {
  background-color: #111;
  padding: 1rem;
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* NAVIGATION */
nav {
  margin-top: 1rem;
}

#menu-toggle {
  display: none;
  background-color: #222;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

#nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  margin-top: 1rem;
}

nav a {
  color: #ccc;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

nav a:hover {
  background-color: #333;
  color: #fff;
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    margin: 0 auto;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  #nav-links.show {
    display: flex;
  }
}

/* RESULTAT */
#resultat {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #ccc;
}

/* FILTER BUTTONS */
#filter-buttons {
  text-align: center;
  margin-bottom: 2rem;
}

#filter-buttons button {
  background-color: #222;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.3s;
}

#filter-buttons button:hover,
#filter-buttons button.active {
  background-color: #555;
  color: #fff;
  border-color: #888;
}

/* GALLERY */
#gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.item {
  width: 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px #000;
  transition: transform 0.3s;
  position: relative;
}

.item:hover {
  transform: scale(1.03);
}

.item h3 {
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.4);
}

/* Coloration selon la saison */
.item[data-saison="hiver"] {
  border-top: 10px solid #6ec6ff;
}
.item[data-saison="printemps"] {
  border-top: 10px solid #98ff98;
}
.item[data-saison="été"] {
  border-top: 10px solid #ffd700;
}
.item[data-saison="automne"] {
  border-top: 10px solid #ff7f50;
}

.item img.full {
  width: 100%;
  display: block;
}

/* INFO */
.image-info {
  padding: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
  background-color: rgba(0,0,0,0.5);
  text-align: center;
}

/* FULLSCREEN DISPLAY */
.full-image-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.full-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 15px #000;
}

.diapo-prev,
.diapo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.diapo-prev { left: 2rem; }
.diapo-next { right: 2rem; }
