body {
  margin: 0;
  font-family: sans-serif;

  background-image: url("images/layout/background2.jpg");
  background-repeat: repeat;       /* texture répétée */
  background-size: auto;
  background-color: #f4f4f4;        /* fallback */
}

header {
  background-image: url("images/layout/moulin.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  color: white;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

header * {
  position: relative;
  z-index: 2;
}

header nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.section {
  max-width: 900px;
  margin: 1em auto;
  padding: 0.5em 2em; /* + de respiration */

  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;

  border: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
  border-bottom: 2px solid #444;
  padding-bottom: 0.3em;
}

footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;

  background: rgba(0, 0, 0, 0.55);
  color: #e0e0e0;

  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

footer p {
  margin: 0;
}


.galerie-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.galerie-item {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.galerie-item:hover {
  transform: scale(1.02);
}

.galerie-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.galerie-item .description {
  padding: 0.5em 1em;
}

/* 🌙 Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.lightbox-caption {
  margin: 15px auto;
  text-align: center;
  color: #ccc;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

.liens-externes {
  list-style: none;
  padding-left: 0;
}

.liens-externes li {
  margin: 0.5em 0;
}

.liens-externes a {
  text-decoration: none;
  color: #333;
}

.liens-externes a:hover {
  text-decoration: underline;
}

/* Section événements */
.evenement-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.evenement-item {
  display: flex;
  flex-direction: column;
  border-left: 4px solid #444; /* petit accent visuel */
  padding-left: 1em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.evenement-date {
  font-weight: bold;
  color: #555;
  margin-bottom: 0.3em;
}

.evenement-title {
  font-size: 1.1rem;
  color: #222;
}

.evenement-link {
  display: inline-block;
  margin-top: 0.2em;
  font-size: 0.95rem;
  color: #0077b5; /* couleur lien LinkedIn / accent bleu */
  text-decoration: none;
}

.evenement-link:hover {
  text-decoration: underline;
}