body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background: #0077b6;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

nav {
  background: #023e8a;
  padding: 0.5rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 2rem;
  background: white;
  margin: 1rem;
  border-radius: 8px;
}

section h2 {
  color: #0077b6;
}

.galerie {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.galerie img {
  width: 300px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  background: #0077b6;
  color: white;
  padding: 1rem;
  margin-top: 2rem;
}

/* Curseur clicable sur les images */
.galerie img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.galerie img:hover {
  transform: scale(1.03);
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1100;
}

.close:hover {
  color: #bbb;
}

/* Boutons suivant / précédent */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 1100;
}

.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

/* === Navigation === */
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #0096c7;
  color: #fff;
}
