/* PAGE DE FOND (visible une fois la modale fermée) */
.service-page-bg {
  background: var(--couleur-fond);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.service-page-bg h1 {
  font-size: 1.6rem;
  color: var(--couleur-texte);
  margin-bottom: 10px;
}

.service-page-bg p {
  color: #666;
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 22px;
}

.icon-circle-lg {
  width: 65px;
  height: 65px;
  background: var(--couleur-bouton);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin: 0 auto 15px;
  box-shadow: 0 3px 8px var(--couleur-ombre-bouton);
}

/* =========================================================
   FENÊTRE MODALE - Formulaire de demande de service
   ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 59, 79, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.actif {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  padding: 40px 35px;
  position: relative;
  animation: modalApparaitService 0.2s ease;
}

@keyframes modalApparaitService {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--couleur-texte);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--couleur-texte);
  margin-bottom: 8px;
}

.modal-header p {
  color: #666;
  font-size: 0.9rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--couleur-texte);
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #dbe3e8;
  border-radius: 10px;
  padding: 0 14px;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--couleur-texte);
}

.input-wrapper i {
  color: var(--couleur-texte);
  font-size: 0.9rem;
  margin-right: 10px;
}

.input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  width: 100%;
  font-size: 0.95rem;
  color: #1e2a33;
}

/* ZONE DE TEXTE */
.textarea-wrapper {
  border: 1px solid #dbe3e8;
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.textarea-wrapper:focus-within {
  border-color: var(--couleur-texte);
}

.textarea-wrapper textarea {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e2a33;
  resize: vertical;
  min-height: 100px;
}

.btn-full {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 13px;
  margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
  }

  .modal-box {
    padding: 28px 22px;
  }
}
/* MESSAGE DE RESULTAT (succès/erreur) - AJAX sans redirection */
.modal-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

.modal-message-succes {
  background: #e3f7ec;
  color: #248f59;
  border: 1px solid #b7e8cc;
}

.modal-message-erreur {
  background: #fdecec;
  color: #c0392b;
  border: 1px solid #f5c2c0;
}
