/* ============================================================
   Modal formulaire de contact
   Réutilisable sur n'importe quelle page Triskell : se déclenche
   en cliquant sur un mailto:contact@triskell-studio.fr ou sur
   n'importe quel élément avec data-open-contact.
   ============================================================ */

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 12, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: contactFadeIn 0.18s ease;
}
.contact-modal-overlay[data-open="true"] {
  display: flex;
}
@keyframes contactFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.contact-modal {
  background: var(--surface, #FBF8F2);
  color: var(--text, #1A1F1B);
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  padding: 28px 30px 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
  animation: contactSlideIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes contactSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.contact-modal-header h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: #1B7849;
  margin: 0;
}
.contact-modal-close {
  background: transparent;
  border: 1px solid var(--border, #E5DFD0);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-mid, #6B746E);
  line-height: 1;
}
.contact-modal-close:hover {
  border-color: #1B7849;
  color: #1B7849;
}

.contact-modal-lead {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-mid, #6B746E);
  line-height: 1.5;
}

.contact-modal form .field {
  margin-bottom: 14px;
}
.contact-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text, #1A1F1B);
}
.contact-modal label small {
  font-weight: 400;
  color: var(--text-mid, #6B746E);
  margin-left: 6px;
}
.contact-modal input,
.contact-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #E5DFD0);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text, #1A1F1B);
  resize: vertical;
}
.contact-modal input:focus,
.contact-modal textarea:focus {
  outline: none;
  border-color: #1B7849;
  box-shadow: 0 0 0 3px rgba(27, 120, 73, 0.15);
}
.contact-modal-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.contact-modal-submit {
  background: #1B7849;
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.contact-modal-submit:hover  { background: #155b37; }
.contact-modal-submit:disabled { opacity: 0.5; cursor: wait; }

.contact-modal-error {
  background: #FBE9E5;
  border: 1px solid #F1B7AC;
  color: #6B2317;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 12px 0 0;
}
.contact-modal-success {
  text-align: center;
  padding: 32px 8px 8px;
}
.contact-modal-success .check {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1B7849;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.contact-modal-success h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-weight: 500;
}
.contact-modal-success p {
  color: var(--text-mid, #6B746E);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
