/* Section contact : texte, LinkedIn, formulaire — porté de docs/handoff/preview/index.html:15, 24, 85-88, 539-561 */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
}

/* Le gap de .contact-texte remplace la marge basse de .eyebrow (base.css) */
.contact .eyebrow {
  margin: 0;
}

.contact-texte {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.contact-intro {
  max-width: 460px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte-corps-sombre);
}

.btn-linkedin,
.on-dark a.btn-linkedin {
  align-self: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
  background: transparent;
}

.contact-panneau {
  flex: 1.2 1 420px;
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--bordure-carte-sombre);
  background: var(--fond-carte-sombre);
}

.contact-merci {
  margin: 0;
  font-family: var(--police-titre);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-echec {
  padding: 12px 16px;
  border-left: 2px solid var(--ambre);
  font-size: 15px;
}

.contact-echec p {
  margin: 0;
}

.contact-ligne {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.champ label {
  font-size: 14px;
  font-weight: 500;
  color: var(--texte-doux-sombre);
}

.champ-facultatif {
  font-weight: 400;
  color: var(--texte-secondaire-sombre);
}

.field {
  /* Hors prototype : neutralise cols="40" du textarea rendu par Django (largeur intrinsèque) */
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--bordure-sombre);
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: var(--encre);
  transition:
    border-color 0.25s,
    outline-color 0.25s;
}

textarea.field {
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

/* Halo de focus en contour, sans ombre (ADR 0002) */
.field:focus {
  border-color: var(--ambre);
  outline: 3px solid rgb(242 169 59 / 18%);
  outline-offset: 0;
}

.field::placeholder {
  color: #7d8694;
}

.champ-erreur {
  margin: 0;
  font-size: 14px;
  color: var(--ambre);
}

/* Champ piège : hors écran, ignoré des personnes */
.contact-piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-envoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-finalite {
  max-width: 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--texte-secondaire-sombre);
}

/* button n'hérite pas de font : font: inherit d'abord (prototype index.html:561) */
.contact-form .btn-primaire {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .field {
    transition: none;
  }
}
