/* ----- PAGE CHERCHEUR / QUESTIONNEUR ----- */
.form-container {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.form-container h2 {
  text-align: center;
  color: #27ae60;
  margin-bottom: 20px;
}

form label {
  font-weight: 600;
  margin-top: 10px;
  display: block;
  color: #333;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d3f5da;
  border-radius: 10px;
  font-size: 1em;
  margin-top: 5px;
  margin-bottom: 15px;
  background: #f9fff9;
  transition: border 0.3s ease;
}

input:focus, select:focus {
  border-color: #2ecc71;
  outline: none;
}

#add-assertion {
  display: inline-block;
  background: #eaffea;
  border: 1px solid #c6f3cb;
  border-radius: 10px;
  padding: 8px 14px;
  color: #27ae60;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#add-assertion:hover {
  background: #d5fcd9;
  transform: scale(1.03);
}

.prix {
  background: #f6fff7;
  border-radius: 12px;
  padding: 10px;
  margin: 15px 0;
  font-weight: 600;
  text-align: center;
  color: #2ecc71;
  font-size: 1.1em;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  border: none;
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
}

#confirmation {
  text-align: center;
  color: #27ae60;
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.1em;
}

.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .form-container {
    margin: 20px;
    padding: 20px;
  }

  input, select {
    font-size: 0.95em;
  }

  .submit-btn {
    font-size: 1em;
  }
}
/* ----- HEADER ET MENU PARTAGÉS ----- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fafff8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

#menu-btn {
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #27ae60;
  transition: transform 0.3s ease;
  z-index: 20; /* Toujours au-dessus */
}

#menu-btn:hover {
  transform: scale(1.1);
}

/* ----- MENU LATÉRAL (identique répondant) ----- */
#side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 270px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 5;
}

#side-menu.open {
  transform: translateX(0);
  z-index: 15;
}

#close-menu {
  background: none;
  border: none;
  font-size: 1.5em;
  float: right;
  cursor: pointer;
  color: #27ae60;
}

#side-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 60px;
}

#side-menu li {
  margin: 25px 0;
}

#side-menu a {
  text-decoration: none;
  color: #2ecc71;
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.3s;
}

#side-menu a:hover {
  color: #1e9b57;
}
