/* Evotic Edge — /contact page (Sprint C 2026-05-21) */

.contact-body {
  background: var(--bg, #FFF8F2);
  min-height: 100vh;
  padding-bottom: 32px;
}
.contact-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 12px 0;
  display: flex; flex-direction: column; gap: 14px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 10px rgba(28, 28, 46, .08);
}
.contact-section-title {
  margin: 0 0 14px;
  font-size: 15px; font-weight: 800;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.contact-section-title i { color: #6750A4; }

/* Identity block (read-only) */
.contact-id-block {
  background: rgba(103, 80, 164, .06);
  border: 1px solid rgba(103, 80, 164, .15);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.contact-id-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 4px 0;
}
.contact-id-lbl { color: #777; font-weight: 600; }
.contact-id-val { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

.contact-need-login {
  text-align: center; padding: 22px 12px;
  background: rgba(103, 80, 164, .06);
  border-radius: 12px;
  color: var(--text);
}
.contact-login-link {
  display: inline-block; margin-top: 10px;
  background: #6750A4; color: #fff;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 8px; }
.contact-label {
  font-size: 13px; font-weight: 700;
  color: var(--text); margin-top: 8px;
}

.contact-cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-bottom: 4px;
}
.contact-cat-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--card-bg);
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px; font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
  transition: all .15s ease-out;
}
.contact-cat-btn i {
  font-size: 20px; color: #6750A4;
  transition: transform .15s ease-out;
}
.contact-cat-btn:active { transform: scale(.97); }
.contact-cat-btn.on {
  background: rgba(103, 80, 164, .08);
  border-color: #6750A4;
  box-shadow: 0 2px 8px rgba(103, 80, 164, .18);
}
.contact-cat-btn.on i { transform: scale(1.15); }

.contact-form textarea {
  width: 100%;
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}
.contact-form textarea:focus {
  outline: none;
  border-color: #6750A4;
  box-shadow: 0 0 0 3px rgba(103, 80, 164, .15);
}
.contact-counter {
  font-size: 11px; color: #888; text-align: right;
  font-variant-numeric: tabular-nums;
}
.contact-form .err {
  font-size: 13px; color: #DC3545;
  background: rgba(220, 53, 69, .08);
  padding: 8px 10px; border-radius: 8px;
  margin: 0;
}

.contact-submit-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, #6750A4, #4F378B);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px; font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(103, 80, 164, .28);
}
.contact-submit-btn:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none;
}
.contact-submit-btn:not(:disabled):active { transform: scale(.97); }

/* History */
.contact-history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-history-item {
  background: rgba(103, 80, 164, .04);
  border: 1px solid rgba(103, 80, 164, .12);
  border-radius: 12px;
  padding: 12px;
}
.contact-h-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.contact-h-cat {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: #6750A4;
}
.contact-badge {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.contact-badge-pending { background: rgba(255, 165, 0, .15); color: #b35700; }
.contact-badge-done    { background: rgba(40, 167, 69, .15); color: #1d7d35; }
.contact-badge-closed  { background: rgba(108, 117, 125, .15); color: #555; }
.contact-h-ago {
  margin-left: auto;
  font-size: 11px; color: #888;
}
.contact-h-body {
  font-size: 13px; line-height: 1.45; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}

/* Admin response block */
.contact-resp {
  margin-top: 10px;
  background: rgba(40, 167, 69, .07);
  border-left: 3px solid #28a745;
  border-radius: 8px;
  padding: 10px 12px;
}
.contact-resp-head {
  font-size: 11px; font-weight: 800;
  color: #1d7d35;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.contact-resp-ago { color: #777; font-weight: 600; }
.contact-resp-body {
  font-size: 13px; line-height: 1.45; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}

/* 2026-05-25 — Canaux directs : status page + email officiel */
.contact-direct-card { padding-top: 14px; }
.contact-direct-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.contact-direct-row:last-child { border-bottom: none; }
.contact-direct-row:active { background: var(--bg-soft); }
.contact-direct-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-direct-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-direct-name {
  font-size: 14px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-direct-sub {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
}
.contact-direct-arrow { color: var(--text-faint); font-size: 12px; flex-shrink: 0; }
