/* Popup devis - overlay */
#popupDevis {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
}

/* Popup box */
#popupDevis .modal {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  color: black;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  box-sizing: border-box;
}

/* Bouton fermer */
#popupDevis .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: black;
  font-size: 24px;
  font-weight: bold;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

/* Formulaire */
#popupDevis form {
  display: flex;
  flex-direction: column;
}

/* Labels */
#popupDevis form label {
  margin-top: 12px;
  margin-bottom: 5px;
  font-weight: 600;
  color: black;
}

/* Champs de formulaire */
#popupDevis form input,
#popupDevis form textarea,
#popupDevis form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

/* Bouton envoyer */
#popupDevis form button {
  margin-top: 20px;
  padding: 12px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

#popupDevis form button:hover {
  background-color: #0056b3;
}

/* Responsive pour petits écrans */
@media (max-width: 500px) {
  #popupDevis .modal {
    padding: 20px 15px;
    border-radius: 8px;
  }

  #popupDevis .close-btn {
    font-size: 22px;
    top: 10px;
    right: 15px;
  }

  #popupDevis form button {
    font-size: 15px;
  }
}
