:root {
  --vert-foret: #4a7c59;
  --vert-sauge: #8fb592;
  --jaune-soleil: #f4d35e;
  --brun-terre: #8c6239;
  --blanc-casse: #f9fbf9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--blanc-casse);
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Fredoka One", cursive;
  color: var(--vert-foret);
}

/* HEADER */
header {
  background-color: var(--blanc-casse);
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: "Fredoka One", cursive;
  font-size: 2em;
  color: var(--vert-foret);
  text-decoration: none;
}

.logo i {
  color: var(--vert-sauge);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav a {
  text-decoration: none;
  color: var(--vert-foret);
  font-weight: 700;
  transition: color 0.3s;
  font-size: 1.1em;
}
nav a:hover {
  color: var(--brun-terre);
}

nav a.actif {
  color: var(--brun-terre);
  border-bottom: 2px solid var(--jaune-soleil);
}

/* PAGE AGENCE */
.banniere-agence {
  background-color: var(--vert-foret);
  color: var(--blanc-casse);
  padding: 80px 20px;
  text-align: center;
  background-image: radial-gradient(var(--vert-sauge) 10%, transparent 10%);
  background-size: 20px 20px;
}

.banniere-agence h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--jaune-soleil);
}

.conteneur {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.histoire-section {
  margin-bottom: 60px;
  text-align: center;
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.histoire-section h2 {
  margin-bottom: 20px;
  font-size: 2.2em;
}
.histoire-section p {
  max-width: 800px;
  margin: 0 auto 15px auto;
  font-size: 1.1em;
}

.equipe-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.grille-equipe {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.carte-membre {
  background-color: white;
  width: 280px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
  border: 2px solid transparent;
}

.carte-membre:hover {
  transform: translateY(-5px);
  border-color: var(--jaune-soleil);
}

.membre-photo {
  height: 250px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /*l'image ne dépasse pas */
}

/* Style pour l'image à l'intérieur du cadre */
.membre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image remplit tout le cadre sans être déformée */
}

.membre-info {
  padding: 20px;
}
.membre-info h3 {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}
.membre-info .poste {
  color: var(--vert-foret);
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}

.ess-section {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.ess-texte {
  flex: 1;
  min-width: 300px;
}
.ess-visuel {
  flex: 1;
  min-width: 300px;
  background-color: var(--jaune-soleil);
  height: 250px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5em;
  color: var(--brun-terre);
}

footer {
  background-color: var(--brun-terre);
  color: var(--blanc-casse);
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ess-section {
    flex-direction: column-reverse;
  }
}
