/* Mise en page générale, sans dépendance externe. */
:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f3f6fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  display: grid;
  min-height: 100vh;
  padding: 2rem 1rem;
  place-items: center;
}

.contact-card {
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem rgb(31 41 55 / 12%);
}

h1 {
  margin: 0;
  color: #111827;
}

.intro {
  margin: 0.75rem 0 1.75rem;
  color: #4b5563;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #aeb8c7;
  border-radius: 0.4rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 20%);
}

button {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.4rem;
  color: #fff;
  background: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover,
button:focus-visible {
  background: #1e40af;
}

.required-note {
  margin: 0 0 1rem;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Caché visuellement, hors écran et hors parcours du clavier (voir tabindex HTML). */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
}

.form-message--success {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}

.form-message--error {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fef2f2;
}

@media (max-width: 30rem) {
  .page {
    padding: 1rem 0.75rem;
  }

  .contact-card {
    border-radius: 0.5rem;
  }
}
