
.devis-container {
  max-width: 950px;
  margin: 4rem auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 80, 130, 0.12);
  padding: 3rem 2.5rem;
  font-family: "Inter", "Segoe UI", "Roboto", sans-serif;
  border: 1px solid rgba(0, 115, 170, 0.15);
}

/* HEADER */
.devis-header {
  text-align: center;
  position: relative;
}

.devis-header .logo {
  width: 85px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.devis-header::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0073aa, #00b7ff);
  border-radius: 2px;
}

/* SECTIONS */
.section {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
 
}

.section h2 {
  font-size: 1.2rem;
  color: #004b7d;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none !important;
}

/* CHAMPS */
.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #0f172a;
}

.field input,
.field textarea {
  width: 100%;
  border: 1.6px solid #d1d9e0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.96rem;
  color: #111827;
  background-color: #f9fafb;
  transition: all 0.2s ease-in-out;
}

.field input:focus,
.field textarea:focus {
  border-color: #0073aa;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
  outline: none;
}

.field
{
  width: 100%;
  border: 1.6px solid #d1d9e0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.96rem;
  color: #111827;
  background-color: #f9fafb;
  transition: all 0.2s ease-in-out;
}


/* Focus fluide */
.field select:focus {
  border-color: #0073aa;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
  outline: none;
}


/* DISPOSITION */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.radio-group label {
  margin-right: 1.2rem;
  font-weight: 500;
  color: #334155;
}

/* BOUTON */
.submit-zone {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-primary {
  background: linear-gradient(90deg, #0073aa 0%, #00b7ff 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #005c85 0%, #009adf 100%);
  box-shadow: 0 6px 18px rgba(0, 115, 170, 0.3);
  transform: translateY(-2px);
}

/* INFO BAS DE PAGE */
.disclaimer {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1rem;
  line-height: 1.4;
}

/* REQUIS */
.required {
  color: #dc2626;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .devis-container {
    padding: 2rem 1.2rem;
    margin: 2rem 1rem;
  }

  .section h2 {
    font-size: 1.05rem;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}
.field-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

.form-message {
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.form-message.loading {
  background: #e0f2fe;
  color: #075985;
}

/* Groupes de cases à cocher */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.checkbox-group label {
  font-weight: 500;
  color: #334155;
}

/* Désactivation pendant envoi */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* === Groupe de champs (Origine / Destination) === */
.group-box {
  background: #fff;
  border: 1.5px solid #d1d9e0;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Espacement interne harmonieux */
.group-box .field:not(:last-child) {
  margin-bottom: 1.3rem;
}

/* En-têtes de section */
.section h2 {
  font-size: 1.1rem;
  color: #004c91;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Disposition en grille */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.field.autocomplete {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

