/* --- CHARTE GRAPHIQUE --- */
: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);
}

/* --- STYLE PAGE DEVIS --- */
.banniere-titre {
  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-titre h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--jaune-soleil);
}

.conteneur {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  flex: 1;
}

.intro-devis {
  text-align: center;
  margin-bottom: 40px;
}

.formulaire-devis {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--vert-foret);
}

.ligne-form {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.col-form {
  flex: 1;
}

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;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--vert-foret);
}

.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;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.bouton-envoyer:hover {
  background-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;
  }
  .ligne-form {
    flex-direction: column;
    gap: 0;
  }
  .col-form {
    margin-bottom: 20px;
  }
}
