/* === Style général === */
body {
  margin: 0;
  font-family: 'Calibri', sans-serif; /*police d'origine Arial Nova*/
  background-color: rgb(229, 220, 210);
  color: rgb( 86, 88, 94) ;
  line-height: 1.4;
}

/* === Menu de navigation === */
header {
  background-color: rgb(229, 220, 210);
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;    /* Centre horizontalement */
  align-items: center;        /* Centre verticalement les éléments */
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: green;
  font-weight: bold;
  font-size: 1.1em;
}

nav ul li a:hover {
  text-decoration: underline;
  font-weight: bold;            /* optionnel : gras */
  color: #8B4513;               /* optionnel : couleur différente */
}



/* === Bandeau image === */
.hero {
  position: relative;
  text-align: center;
  color:white
}

.hero img {
  width: 100%;
  height: auto;
}

.overlay-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
 /*  background-color: rgba(255,255,255,0.7);*/
  padding: 20px;
  border-radius: 10px;
  font-size: 1.2em;
}

.bloc-flex {
  display: flex;                  /* active flexbox */
  justify-content: space-between; /* espace entre les colonnes */
  gap: 20px;                      /* espace entre les deux blocs */
  margin-top: 20px;
}

.bloc-flex div {
  flex: 1;                    /* chaque bloc prend la même largeur */
}

.btn {
  background-color: rgb(167,129,95); /* vert */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;     /* enlève le soulignement */
}

.btn:hover {
  background-color: #5C3317; /* vert plus foncé au survol */
}

nav ul li a i {
  color: green;   /* bleu Facebook */
  margin-right: 5px;
}

/* === Contenu principal === */
main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  /* ajout de FLEXBOX  pour le menu principal */
  /* display: flex;              /* active flexbox */
  /* justify-content: space-between; /* espace entre les enfants */
  /* align-items: center;        /* aligne verticalement */
}

main img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
}

/* === Footer === */
footer {
  background-color: rgb(229, 220, 210);
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  margin-top: 40px;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .overlay-text {
    font-size: 1em;
    padding: 10px;
  }

  main {
    padding: 10px;
  }
}
