/* ===== FOND GLOBAL ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #121212, #2b2b2b);
  color: white;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.devis-main {
  padding: 150px 20px 200px;
  max-width: 800px;
  margin: auto;
}

/* ===== TITRE ===== */
.devis-main h1 {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: #00ffc8;
}

/* ===== FORMULAIRE ===== */
.devis-form {
  background: rgba(0, 0, 0, 0.7);
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(44, 130, 73, 0.3);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 600px;
  margin: auto;
}

/* ===== LABELS ===== */
.devis-form label {
  font-weight: bold;
  font-size: 1em;
}

/* ===== CHAMPS ===== */
.devis-form input,
.devis-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1e1e1e;
  color: white;
  font-size: 1rem;
  transition: outline 0.3s ease;
}

.devis-form input:focus,
.devis-form textarea:focus {
  outline: 2px solid #2c8249;
}

/* ===== BOUTON ===== */
.devis-form button {
  margin-top: 10px;
  padding: 14px 28px;
  background-color: #2c8249;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.devis-form button:hover {
  background-color: #226b3c;
  transform: scale(1.02);
}

/* ===== POP-UP DE CONFIRMATION ===== */
.popup-confirmation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.4s ease forwards;
}

.popup-content {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 25px #2c8249;
  animation: scaleIn 0.3s ease;
  position: relative;
}

.popup-content h2 {
  margin-bottom: 10px;
  font-size: 1.8em;
  color: #00ffc8;
}

.popup-content p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.4em;
  color: #00ffc8;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-popup:hover {
  color: white;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes scaleIn {
  from {transform: scale(0.85);}
  to {transform: scale(1);}
}

.fadeOut {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0;}
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .devis-form {
    padding: 20px;
  }

  .devis-main h1 {
    font-size: 1.6em;
  }

  .popup-content h2 {
    font-size: 1.4em;
  }

  .popup-content p {
    font-size: 1em;
  }
}
