/* ─────────────── Contact page ─────────────── */

.contact-main {
  max-width: 720px;
  margin: 4rem auto 6rem;
  padding: 0 1.5rem;
}

.contact-hero { margin-bottom: 2.5rem; }
.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.contact-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.contact-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.contact-label .req { color: var(--violet); }

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field select,
.contact-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.contact-field input[type="text"]:focus,
.contact-field input[type="email"]:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--surface-hover, var(--surface));
}
.contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2371717a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}
.contact-field option { background: var(--surface); color: var(--text); }

.contact-counter {
  position: absolute;
  right: 0.4rem;
  bottom: -1.4rem;
  font-size: 0.75rem;
  color: var(--muted-soft);
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.contact-cancel {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.contact-cancel:hover { color: var(--text); }

.contact-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.contact-status.is-success { color: #4ade80; }
.contact-status.is-error { color: #f87171; }

.contact-turnstile {
  margin-top: 0.25rem;
  min-height: 0; /* widget Turnstile est invisible en mode managed la plupart du temps */
}
