



/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  padding: 80px 0;
  background: #f9fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
}

/* FORM CARD */
.contact-form-section {
  padding: 80px 0;
  background: #f9fafb;
}

.contact-form-wrapper {
  max-width: 640px;
  margin: auto;
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.contact-form-wrapper h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-form-wrapper p {
  color: var(--gray);
  margin-bottom: 35px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #dc2626;
}

.form-success {
  display: none;
  margin-top: 20px;
  color: #16a34a;
  font-weight: 600;
}


.full-width {
  width: 100%;
  margin-top: 25px;
}

/* INFO */
.contact-info h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 15px 0;
}

.contact-info-list {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.info-item i {
  font-size: 18px;
  color: var(--orange);
  background: rgba(242, 101, 34, 0.12);
  padding: 12px;
  border-radius: 10px;
}

.info-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* MAP */
.contact-map {
  margin-top: 30px;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* Bouton principal – reset propre */
.btn-primary {
  border: none;
  outline: none;
}

/* Supprimer le contour noir au clic */
.btn-primary:focus,
.btn-primary:active {
  outline: none;
  box-shadow: none;
}

.btn-primary.loading {
  cursor: not-allowed;
  opacity: 0.7;
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 35px 25px;
  }
}

@media (max-width: 768px) {
  .contact-map {
    height: 260px;
  }
}

/* ======================
   BOUTON LOADER
====================== */
#submitBtn {
  position: relative;
  overflow: hidden;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#submitBtn.loading .btn-text {
  display: none;
}

#submitBtn.loading .btn-loader {
  display: inline-block;
}

#submitBtn.loading {
  pointer-events: none;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ======================
   TOAST SUCCÈS
====================== */
.form-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #16a34a;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.form-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 600px) {
  .form-toast {
    right: 15px;
    left: 15px;
    bottom: 20px;
  }
}
