/* Reset léger */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corps avec fond */
body {
  font-family: "Trebuchet MS", Arial, sans-serif;
  background-image: url("/images/fond.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #222;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Conteneur central */
.container {
  background: rgba(255, 255, 255, 0.92);
  width: 90%;
  max-width: 1100px;
  margin: 2rem;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* En-tête */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header img.blason {
  height: 100px;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.2rem;
  color: #004d1a;
  margin-bottom: 1rem;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: #004d1a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: #004d1a;
  color: #fff;
}

/* Contenu principal */
main {
  text-align: center;
}

main h2 {
  color: #222;
  margin-bottom: 1rem;
}

main p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
}

/* Sections avec fond semi-transparent et ombre */
.content section {
  margin-bottom: 40px;
  padding: 1.5rem;
  position: relative;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  border-top: 2px solid #900; /* trait rouge */
}

.content section:first-of-type {
  border-top: none;
}

/* Diaporama */
.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slide {
  display: none;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.caption {
  text-align: center;
  padding: 8px 0;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.85);
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 10px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0,0,0,0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

/* Images dans le contenu général */
main img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Pied de page */
footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #444;
  border-top: 1px solid #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .slideshow-container {
    max-width: 90%;
  }

  .content section {
    padding: 1rem;
  }
}
