/* Layout spécifique contact */
.contact-layout {
  max-width: 900px;
  margin: 40px auto;
  box-sizing: border-box;
}

/* Intro */
.contact-intro p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

/* Formulaire */
.contact-form-wrapper {
  margin: 24px auto;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.95em;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  resize: vertical;
  box-sizing: border-box;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(77,163,255,0.25);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.95em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(77,163,255,0.35);
  background: rgba(255,255,255,0.9);
}

/* Honeypot caché visuellement mais présent dans le DOM */
.hp-row {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* CAPTCHA placeholder */
.captcha-row .captcha-hint {
  font-size: 0.8em;
  color: var(--muted);
}

/* Actions du formulaire */
.form-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between; /* boutons sur la même ligne */
  align-items: center;
  gap: 12px;
  width: 100%;
}

.form-actions button {
  min-height: 44px;
  border-radius: 999px;
}

/* Bouton principal */
.btn-primary {
  padding: 10px 22px;
  border: 1px solid rgba(77,163,255,0.5);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #fff;
  font-weight: 500;
  font-size: 0.95em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(77,163,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  margin-right: auto;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(77,163,255,0.45);
  opacity: 0.95;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* Bouton secondaire (Revenir en arrière) */
.btn-secondary {
  padding: 10px 22px;
  border: 1px solid rgba(120,120,120,0.5);
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  color: var(--text);
  font-weight: 500;
  font-size: 0.95em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  margin-left: auto;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(77,163,255,0.25);
  opacity: 0.95;
}

/* Statut */
.form-status {
  margin-bottom: 12px;
  font-size: 0.85em;
  color: var(--muted);
}

/* Alternative contact */
.contact-alt {
  margin-top: 18px;
  font-size: 0.9em;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {

  /* Conteneur principal fluide */
  .contact-layout {
    max-width: 90%;
    box-sizing: border-box;
  }

  .contact-form-wrapper {
	width: 100%;
	height: 100%;
  }
  /* Intro */
  .contact-intro p {
    font-size: 0.95em;
    line-height: 1.5;
  }

  /* Formulaire fluide */
  #contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .form-row {
    gap: 6px;
  }

  .form-row label {
    font-size: 0.9em;
  }

  .form-row input,
  .form-row textarea {
    width: 100%;
    font-size: 0.95em;
    padding: 10px 12px;
  }

  /* Actions */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    font-size: 0.95em;
  }
}