/* =====================================================================
   contact.css — Page contact + habillage du formulaire (contactMe)
   ===================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ---- Bloc coordonnées --------------------------------------------------- */
.contact-info { position: sticky; top: 96px; }
.contact-info h2 { font-size: 1.9rem; margin-bottom: .2rem; }
.contact-role { color: var(--teal); font-weight: 600; margin-bottom: 1.6rem; }

.contact-coord { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-coord li { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; align-items: start; }
.contact-coord__ico {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark); font-size: 1rem;
}
.contact-coord a { color: var(--taupe); font-weight: 600; word-break: break-word; }
.contact-coord a:hover { color: var(--teal); }
.contact-coord address { font-style: normal; color: var(--muted); line-height: 1.55; }

.contact-note { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--teal-25); padding-left: .9rem; }

.contact-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.contact-tags a {
  font-size: .85rem; background: var(--cream); border: 1px solid var(--line);
  color: var(--taupe); padding: .35rem .85rem; border-radius: 999px; transition: .2s var(--ease);
}
.contact-tags a:hover { background: var(--teal-soft); border-color: var(--teal-25); color: var(--teal-dark); }

/* ---- Formulaire --------------------------------------------------------- */
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.6rem, 3vw, 2.6rem);
}
.contactMe .form-row { margin-bottom: 1.1rem; }

.contactMe .field {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.contactMe textarea.field { resize: vertical; min-height: 130px; line-height: 1.6; }
.contactMe select.field { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231282a1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.6rem;
}
.contactMe .field:focus {
  outline: none; border-color: var(--teal-50); background: #fff;
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.contactMe .field.invalid, .contactMe .field.error { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,.12); }

/* Upload */
.contactMe .form-row.file { position: relative; }
.contactMe .form-row.file input[type="file"] { position: absolute; opacity: 0; width: .1px; height: .1px; }
.contactMe .file-label {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  background: var(--white); border: 1px dashed var(--teal-25); color: var(--teal-dark);
  border-radius: var(--radius-sm); padding: .7rem 1.1rem; font-size: .92rem; font-weight: 600; transition: .2s var(--ease);
}
.contactMe .file-label:hover { background: var(--teal-soft); border-color: var(--teal-50); }

/* RGPD */
.contactMe .form-rgpd { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.contactMe .form-rgpd input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--teal); }
.contactMe .form-rgpd label { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* Honeypot — invisible aux humains, piège à bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Messages de retour */
.contactMe .msg { margin: .4rem 0 1rem; font-size: .95rem; }
.contactMe .msg:not(:empty) { padding: .85rem 1.1rem; border-radius: var(--radius-sm); }
.contactMe .msg.error, .contactMe .msg.errors { background: #fdecea; color: #a3322c; border: 1px solid #f5c6c2; }
.contactMe .msg.success { background: var(--teal-soft); color: var(--teal-darker); border: 1px solid var(--teal-25); }

.contactMe button[type="submit"] { width: 100%; margin-top: .4rem; }
.contactMe button[disabled] { opacity: .65; cursor: progress; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}
