/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

nav ul {
  list-style: none;
  margin-bottom: 1rem;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #000;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.2rem;
  color: #777;
}

/* Style pour les séparateurs de catégories */
.category-separator {
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  position: relative;
}

.category-separator h2 {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #333;
  display: inline-block;
  padding: 0 1.5rem;
  background-color: #fff;
  position: relative;
  z-index: 2;
}

.category-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 1px;
  background-color: #ddd;
  z-index: 1;
}

/* Ajustement pour le premier séparateur */
.category-separator:first-of-type {
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 2rem;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

.contact {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}

form label {
  display: block;
  margin: 1rem 0 0.5rem;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-top: 1rem;
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #555;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Styles pour la lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: white;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1010;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #ddd;
}

.lightbox-next,
.lightbox-prev {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 1010;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lightbox-next:hover,
.lightbox-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ddd;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev {
  left: 30px;
}

/* Version mobile */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .category-separator::before {
    left: 5%;
    right: 5%;
  }
  
  .category-separator h2 {
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  .lightbox-next,
  .lightbox-prev {
    padding: 10px 8px;
    font-size: 1.5rem;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-content {
    max-width: 90%;
  }
}