/* Styles généraux */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Section héroïque avec image de fond */
.hero {
  position: relative;
  height: 60vh;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Couleur par défaut des textes dans la zone héroïque. La couleur des
     éléments à l'intérieur (notamment l'overlay) sera redéfinie si
     nécessaire. */
  color: #fff;
  /* Empilement vertical du titre et du sous-titre lorsque l’overlay est
     supprimé. */
  flex-direction: column;
}

.hero .overlay {
  /* Utilisation d'une teinte bleutée transparente pour le fond de
     l'en‑tête afin d'éviter l'effet de boîte noire tout en
     conservant la lisibilité du texte. */
  /* Fond clair et translucide pour que la photo de fond reste visible sans
     créer un « carré noir ». On applique une couleur de texte plus sombre
     pour renforcer la lisibilité. */
  background: rgba(255, 255, 255, 0.75);
  color: #0b4f6c;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
}

/* Styles pour le titre et le sous-titre en surimpression
   sur l’image de fond. Nous ajoutons un léger ombrage pour assurer la
   lisibilité sans nécessiter de bloc de couleur derrière le texte. */
.hero-title {
  font-size: 3rem;
  margin-bottom: 0.3rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-top: 0.3rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #0077b6;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #005a8d;
}

/* Conteneur principal */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #0077b6;
}

p {
  margin-bottom: 1rem;
}

/* Formulaire de contact */
.form-group {
  margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  display: block;
}

textarea {
  resize: vertical;
}

/* Galerie d'images */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.gallery figcaption {
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
  color: #555;
}

footer {
  background-color: #0077b6;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* Navigation principale */
nav {
  background-color: #0b4f6c;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0.5rem 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #aee1f9;
}

/* Liste de l'annuaire */
.directory {
  list-style: none;
  padding: 0;
}

.directory li {
  background-color: #f0f8ff;
  border: 1px solid #dde;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.directory li a {
  color: #0077b6;
  text-decoration: underline;
}