/* ============================================================
   PAGE CONTACT — .zd-contact
   Tokens --zd-* du thème Zisima (clair / sombre). Les valeurs
   après la virgule sont des secours si le thème est absent.
   ============================================================ */
.zd-contact {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--zd-bar-h, 64px) + 32px);
  color: var(--zd-text, #18181b);
  font-family: var(--zd-font, system-ui, sans-serif);
}

/* En-tête */
.zd-contact__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px 20px;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-surface, #fff);
  text-align: center;
  box-shadow: var(--zd-shadow, none);
}
.zd-contact__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 6px 18px var(--zd-brand-glow, rgba(194, 24, 91, 0.3));
}
.zd-contact__title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--zd-text, #18181b);
}
.zd-contact__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--zd-text-2, #52525b);
}
.zd-contact__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 6px 12px;
  border-radius: var(--zd-radius-pill, 999px);
  background: var(--zd-surface-2, #ececf0);
  font-size: 13px;
  font-weight: 600;
  color: var(--zd-text, #18181b);
}
.zd-contact__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zd-wa, #128043);
}

/* Formulaire */
.zd-contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding: 20px 16px;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-surface, #fff);
  box-shadow: var(--zd-shadow, none);
}
.zd-contact__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.zd-contact__field > label,
.zd-contact__field > legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--zd-text, #18181b);
}
.zd-contact__field > label span { font-weight: 400; color: var(--zd-text-3, #71717a); }
.zd-contact__field > legend { margin-bottom: 8px; }
.zd-contact__field input[type="text"],
.zd-contact__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--zd-border, #e0e0e6);
  border-radius: var(--zd-radius-btn, 12px);
  background: var(--zd-surface-2, #ececf0);
  color: var(--zd-text, #18181b);
  font: 400 16px/1.45 var(--zd-font, system-ui, sans-serif); /* 16 px : pas de zoom iOS */
  outline: none;
}
.zd-contact__field input[type="text"] { height: 48px; }
.zd-contact__field textarea { min-height: 132px; resize: vertical; }
.zd-contact__field input:focus,
.zd-contact__field textarea:focus {
  border-color: var(--zd-brand, #c2185b);
  box-shadow: 0 0 0 3px var(--zd-brand-soft, #fce4ec);
}
.zd-contact__field ::placeholder { color: var(--zd-text-3, #71717a); }
.zd-contact__count {
  align-self: flex-end;
  font-size: 12px;
  color: var(--zd-text-3, #71717a);
}

/* Sujets en pastilles */
.zd-contact__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zd-contact__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.zd-contact__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--zd-border, #e0e0e6);
  border-radius: var(--zd-radius-pill, 999px);
  background: var(--zd-surface, #fff);
  color: var(--zd-text, #18181b);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.zd-contact__chip input:checked + span {
  border-color: var(--zd-brand, #c2185b);
  background: var(--zd-brand-soft, #fce4ec);
  color: var(--zd-brand-fg, #ad1457);
}
.zd-contact__chip input:focus-visible + span {
  outline: 2px solid var(--zd-brand, #c2185b);
  outline-offset: 2px;
}

/* Retour d'envoi */
.zd-contact__msg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--zd-text-2, #52525b); }
.zd-contact__msg:empty { display: none; }
.zd-contact__msg.is-ok,
.zd-contact__msg.is-error,
.zd-contact__msg.is-info { padding: 10px 12px; border-radius: var(--zd-radius-btn, 12px); }
.zd-contact__msg.is-ok { background: var(--zd-chip-bg, #e3f4ea); color: var(--zd-chip-fg, #0f6b3a); }
.zd-contact__msg.is-error { background: var(--zd-brand-soft, #fce4ec); color: var(--zd-danger, #d93636); }
.zd-contact__msg.is-info { background: var(--zd-surface-2, #ececf0); color: var(--zd-text, #18181b); }

/* Boutons */
.zd-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zd-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--zd-radius-btn, 12px);
  font: 700 16px/1.2 var(--zd-font, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 150ms ease, transform 120ms ease;
}
.zd-contact__btn:active { transform: scale(0.98); }
.zd-contact__btn:disabled { opacity: 0.7; cursor: progress; }
.zd-contact__btn--chat {
  background: var(--zd-brand, #c2185b);
  color: var(--zd-on-brand, #fff);
  box-shadow: 0 6px 16px var(--zd-brand-glow, rgba(194, 24, 91, 0.3));
}
.zd-contact__btn--chat:hover { background: var(--zd-brand-press, #9c1349); }
.zd-contact__btn--wa {
  background: var(--zd-wa, #128043);
  color: #fff; /* blanc sur vert WhatsApp foncé : contraste AA */
}
.zd-contact__btn--wa svg { fill: currentColor; }

/* Autres moyens */
.zd-contact__other {
  margin-top: 12px;
  padding: 8px 0;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-surface, #fff);
  box-shadow: var(--zd-shadow, none);
}
.zd-contact__other h2 {
  margin: 8px 16px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--zd-text, #18181b);
}
.zd-contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 16px;
  color: var(--zd-text, #18181b);
  text-decoration: none;
}
.zd-contact__row + .zd-contact__row { border-top: 1px solid var(--zd-border, #e0e0e6); }
.zd-contact__row > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.zd-contact__row strong { font-size: 15px; }
.zd-contact__row small { font-size: 13px; color: var(--zd-text-2, #52525b); overflow-wrap: anywhere; }
.zd-contact__row > svg { color: var(--zd-icon, #5f5f69); }
.zd-contact__row-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--zd-brand-soft, #fce4ec);
  color: var(--zd-brand-fg, #ad1457);
}

.zd-contact__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--zd-text-2, #52525b);
}
.zd-contact__note svg { flex-shrink: 0; color: var(--zd-icon, #5f5f69); }

/* Page : fond et place sous le header fixe */
.zd-contact-main { min-height: 60vh; background: var(--zd-bg, #f4f4f6); }

@media (min-width: 600px) {
  .zd-contact__actions { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .zd-contact__btn,
  .zd-contact__chip span { transition: none; }
}
