/* ----- Contact form styles ----- */
.contact-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.contact-section h1 {
  margin-top: 0;
  font-size: 1.9rem;
  color: #111827;
}

.lead {
  color: #555;
  margin-bottom: 1.25rem;
}

/* Form layout */
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #dfe6ee;
  font-size: 1rem;
  background: #fbfdff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #88b4ff;
  box-shadow: 0 4px 18px rgba(33, 150, 243, 0.12);
}

/* Honeypot — keep hidden */
.honeypot { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.btn-primary, .btn-secondary {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* espace texte <-> avion */
  padding-right: 1rem; /* normal */
}


/* Animation avion */
.btn-primary .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
}

.btn-primary.loading .icon {
  animation: flyaway 0.8s ease forwards;
}

@keyframes flyaway {
  0%   { transform: translateX(0) rotate(0deg); opacity: 1; }
  40%  { transform: translateX(6px) rotate(10deg); }
  70%  { transform: translateX(18px) rotate(-10deg); opacity: 0.8; }
  100% { transform: translateX(40px) rotate(25deg); opacity: 0; }
}

.btn-primary .icon svg {
  width: 100%;
  height: 100%;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #444;
  border: 1px solid #ddd;
}

/* spinner fixé à droite, hors flux (ne prend pas de place quand hidden) */
.btn-primary .spinner {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.9);
  animation: spin 1s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.btn-primary.loading {
  padding-right: 2.5rem;
}

.btn-primary.loading .spinner {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- Modal styles ----- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 14, 20, 0.45);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.modal-panel {
  background: #fff;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  width: min(560px, 92%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
  position: relative;
  text-align: left;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
}

.modal h2 { margin-top: 0; font-size: 1.25rem; }
.modal p { color: #444; margin-bottom: 1rem; }
.modal-actions { text-align: right; }

/* Responsive */
@media (max-width: 640px) {
  .slides img { height: 240px; } /* keeps carousel sane on mobile */
  .contact-section { padding: 1rem; margin: 1rem; }
}
