: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;
}

.banniere-contact h1 {
  color: var(--jaune-soleil);
  font-size: 3.5em;
  margin-bottom: 20px;
}

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

/* HEADER & NAVIGATION */
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;
  display: flex;
  align-items: center;
  gap: 10px;
}

.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);
}

.banniere-contact {
  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;
}

.conteneur-page {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  flex: 1; /* Pousse le footer vers le bas */
}

.boite-contact {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Colonne de Gauche : Infos */
.infos-contact {
  flex: 1;
  background-color: var(--vert-sauge);
  padding: 40px;
  color: white;
  min-width: 300px;
}

.infos-contact h2 {
  color: white;
  margin-bottom: 20px;
}
.infos-contact p {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.info-item i {
  background-color: var(--jaune-soleil);
  color: var(--vert-foret);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

/* Colonne de Droite : Formulaire */
.formulaire-zone {
  flex: 1.5;
  padding: 40px;
  min-width: 300px;
}

.groupe-formulaire {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--vert-foret);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  transition: border-color 0.3s;
}

/* Changement de couleur quand on clique dans la case */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--vert-foret);
}

textarea {
  resize: vertical; /* L'utilisateur peut agrandir la zone de texte */
  min-height: 120px;
}

.bouton-envoyer {
  background-color: var(--vert-foret);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-family: "Fredoka One", cursive;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.bouton-envoyer:hover {
  background-color: var(--brun-terre);
}

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

/* MOBILE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
  nav ul {
    gap: 15px;
    font-size: 0.9em;
    flex-wrap: wrap;
    justify-content: center;
  }
  .boite-contact {
    flex-direction: column;
  }
}
