/* =========================================================
   GENICOTIK : Formulaire contact futuriste
   ========================================================= */

.fx-contact-page {
  position: relative;
}

.fx-contact-page .fx-contact-cyber {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 168, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 168, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 10%, transparent 70%);
}

.fx-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
  margin-top: 8px;
}

.fx-contact-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  color: #e8eeff;
}

.fx-contact-intro p {
  margin: 0 0 18px;
  color: #8ba3d1;
  line-height: 1.7;
}

.fx-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.fx-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(42, 168, 255, 0.22);
  background: rgba(42, 168, 255, 0.08);
  color: #a9b8d4;
}

.fx-contact-quick {
  display: grid;
  gap: 12px;
}

.fx-contact-quick a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(42, 168, 255, 0.2);
  background: linear-gradient(145deg, rgba(14, 21, 35, 0.9), rgba(10, 15, 25, 0.85));
  color: #c9d7ff;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.fx-contact-quick a:hover {
  border-color: rgba(77, 195, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(42, 168, 255, 0.12);
  color: #fff;
}

.fx-contact-quick strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.fx-contact-quick span {
  font-size: 12px;
  color: #7b8aad;
}

/* Shell formulaire */
.fx-contact-shell {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(42, 168, 255, 0.28);
  background: linear-gradient(160deg, rgba(14, 21, 38, 0.95), rgba(8, 12, 22, 0.92));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(42, 168, 255, 0.08);
  overflow: hidden;
}

.fx-contact-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fx-contact-accent, #4dc3ff), transparent);
}

.fx-contact-shell--violet {
  --fx-contact-accent: #c084fc;
  border-color: rgba(168, 85, 247, 0.32);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(168, 85, 247, 0.1);
}

.fx-contact-shell--green { --fx-contact-accent: #31d0aa; border-color: rgba(49, 208, 170, 0.28); }
.fx-contact-shell--amber { --fx-contact-accent: #ffb84d; border-color: rgba(255, 184, 77, 0.28); }

.fx-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fx-contact-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9fb4dc;
  text-transform: uppercase;
}

.fx-contact-field label span { color: #ff8a9a; }

.fx-contact-field--full { grid-column: 1 / -1; }

.fx-contact-field input,
.fx-contact-field textarea,
.fx-contact-select-wrap select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(77, 140, 255, 0.22);
  background: rgba(8, 12, 22, 0.85);
  color: #e8eeff;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fx-contact-field input:focus,
.fx-contact-field textarea:focus,
.fx-contact-select-wrap select:focus {
  outline: none;
  border-color: var(--fx-contact-accent, #4dc3ff);
  box-shadow: 0 0 0 3px rgba(42, 168, 255, 0.12);
}

.fx-contact-field textarea { resize: vertical; min-height: 120px; }

.fx-contact-select-wrap { position: relative; }

.fx-contact-select-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

.fx-contact-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fx-contact-accent, #4dc3ff);
  pointer-events: none;
  font-size: 12px;
}

.fx-contact-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #6d82a8;
}

.fx-contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 12px;
  color: #8ba3d1;
  line-height: 1.5;
  cursor: pointer;
}

.fx-contact-consent input { margin-top: 3px; accent-color: var(--fx-contact-accent, #2aa8ff); }
.fx-contact-consent a { color: var(--fx-contact-accent, #4dc3ff); }

.fx-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.fx-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2aa8ff, #1987e6);
  box-shadow: 0 6px 20px rgba(42, 168, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fx-contact-shell--violet .fx-contact-submit {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.fx-contact-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(42, 168, 255, 0.45);
}

.fx-contact-submit:disabled { opacity: 0.65; cursor: wait; }

.fx-contact-alt {
  font-size: 13px;
  font-weight: 600;
  color: #8ba3d1;
  text-decoration: none;
}

.fx-contact-alt:hover { color: #fff; }

.fx-contact-secure {
  margin: 14px 0 0;
  font-size: 11px;
  color: #6d82a8;
  font-family: monospace;
}

.fx-contact-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.fx-contact-feedback.is-error {
  background: rgba(255, 90, 107, 0.12);
  border: 1px solid rgba(255, 90, 107, 0.35);
  color: #ff8a9a;
}

.fx-contact-feedback.is-success {
  background: rgba(49, 208, 170, 0.1);
  border: 1px solid rgba(49, 208, 170, 0.3);
  color: #31d0aa;
}

.fx-contact-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.fx-contact-success.is-visible { display: block; }
.fx-contact-success.is-visible + .fx-contact-form { display: none; }

.fx-contact-success h3 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 22px;
}

.fx-contact-success p { margin: 0; color: #8ba3d1; }

.fx-contact-success-icon .fx-form-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .fx-contact-layout { grid-template-columns: 1fr; }
  .fx-contact-grid { grid-template-columns: 1fr; }
  .fx-contact-shell { padding: 20px; }
}