/* =====================================================================
   NevaOne — Formulaire de contact
   Styles auto-portants, préfixés .nv- pour ne rien casser du thème.
   ===================================================================== */

.nv-contact {
  --nv-ink: #1c1d24;
  --nv-muted: #6f7280;
  --nv-line: #e3e4ea;
  --nv-accent: #71c594;
  --nv-accent-dark: #4ea272;
  --nv-danger: #d9534f;
  --nv-radius: 14px;
}

.nv-contact__wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  border-radius: var(--nv-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 22, 30, .13);
}

@media (max-width: 991px) {
  .nv-contact__wrap { grid-template-columns: 1fr; }
}

/* ---------- Colonne latérale ---------- */

.nv-contact__aside {
  background: linear-gradient(160deg, #23252f 0%, #14151b 100%);
  color: #fff;
  padding: 48px 40px;
  position: relative;
}

.nv-contact__aside::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 197, 148, .28), transparent 68%);
  pointer-events: none;
}

.nv-contact__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nv-accent);
  margin-bottom: 14px;
}

.nv-contact__aside h2,
.nv-contact__aside .nv-contact__title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}

.nv-contact__aside p {
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.nv-contact__list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }

.nv-contact__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.nv-contact__list li:first-child { border-top: 0; }

.nv-contact__list i {
  font-size: 19px;
  color: var(--nv-accent);
  line-height: 1.5;
  flex: 0 0 auto;
}

.nv-contact__list span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.nv-contact__list strong { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.nv-contact__list a { color: #fff; text-decoration: none; }
.nv-contact__list a:hover { color: var(--nv-accent); }

.nv-contact__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.nv-contact__badges span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 6px 12px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
}

/* ---------- Formulaire ---------- */

.nv-contact__form { padding: 48px 44px; }

@media (max-width: 575px) {
  .nv-contact__aside,
  .nv-contact__form { padding: 34px 24px; }
}

.nv-contact__form h2,
.nv-contact__form .nv-contact__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--nv-ink);
  margin: 0 0 6px;
}

.nv-contact__lead {
  color: var(--nv-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.nv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.nv-grid .nv-full { grid-column: 1 / -1; }

@media (max-width: 575px) {
  .nv-grid { grid-template-columns: 1fr; }
}

.nv-field { position: relative; }

.nv-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nv-ink);
  margin-bottom: 7px;
}

.nv-field label .nv-req { color: var(--nv-danger); margin-left: 2px; }

.nv-field input,
.nv-field select,
.nv-field textarea {
  width: 100%;
  border: 1.5px solid var(--nv-line);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--nv-ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nv-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f7280' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.nv-field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.nv-field input:focus,
.nv-field select:focus,
.nv-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--nv-accent);
  box-shadow: 0 0 0 4px rgba(113, 197, 148, .16);
}

.nv-field input::placeholder,
.nv-field textarea::placeholder { color: #a9abb5; }

/* État d'erreur */
.nv-field.is-invalid input,
.nv-field.is-invalid select,
.nv-field.is-invalid textarea {
  border-color: var(--nv-danger);
  background: #fffafa;
}
.nv-error {
  display: none;
  font-size: 12.5px;
  color: var(--nv-danger);
  margin-top: 6px;
}
.nv-field.is-invalid .nv-error { display: block; }

/* Honeypot : invisible pour l'humain, présent pour le robot */
.nv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Captcha */
.nv-captcha .nv-hint {
  display: block;
  font-size: 12px;
  color: var(--nv-muted);
  margin-top: 6px;
}
.nv-captcha input { max-width: 260px; }
.nv-captcha label { font-weight: 600; }

/* Consentement */
.nv-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--nv-muted);
  line-height: 1.6;
}
.nv-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--nv-accent-dark);
  border-radius: 4px;
}
.nv-consent a { color: var(--nv-ink); text-decoration: underline; }
.nv-consent.is-invalid { color: var(--nv-danger); }

/* Bouton */
.nv-submit {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 40px;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(120deg, var(--nv-accent-dark), var(--nv-accent));
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 10px 26px rgba(78, 162, 114, .3);
}
.nv-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(78, 162, 114, .38); }
.nv-submit:disabled { opacity: .62; cursor: not-allowed; transform: none; }

.nv-submit .nv-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: nv-spin .7s linear infinite;
}
.nv-submit.is-loading .nv-spinner { display: inline-block; }
.nv-submit.is-loading .nv-arrow { display: none; }

@keyframes nv-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .nv-submit, .nv-submit:hover { transition: none; transform: none; }
  .nv-submit .nv-spinner { animation-duration: 2s; }
}

.nv-footnote { font-size: 12.5px; color: var(--nv-muted); margin-top: 14px; }

/* Bandeau de résultat */
.nv-alert {
  display: none;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
  border-left: 4px solid transparent;
}
.nv-alert.is-visible { display: block; }
.nv-alert--ok  { background: #eef8f2; color: #1f6a44; border-left-color: var(--nv-accent-dark); }
.nv-alert--err { background: #fdf0ef; color: #9a302c; border-left-color: var(--nv-danger); }
