/* ==========================================================================
   Conextivity : popup Contact (template Elementor 4114)
   Mise en page en 2 colonnes réglée dans Elementor (conteneurs).
   Ici : habillage du popup, panneau gauche, coordonnées et formulaire
   Gravity Forms n° 2 (thème « gravity-theme ») en version sombre.
   ========================================================================== */

/* Popup ------------------------------------------------------------------ */

#elementor-popup-modal-4114 {
  background-color: rgba(0, 12, 22, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#elementor-popup-modal-4114 .dialog-widget-content {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 40px 80px rgba(0, 10, 20, 0.55);
}

#elementor-popup-modal-4114 .dialog-message {
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Panneau gauche --------------------------------------------------------- */

.e-con.cnx-contact__aside {
  position: relative;
  overflow: hidden;
}

/* Trame de points + courbes de marque, en fond du panneau */
.cnx-contact__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(140, 196, 232, 0.16) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
}

.cnx-contact__aside::after {
  content: "";
  position: absolute;
  right: -220px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  pointer-events: none;
  /* Anneaux concentriques, rappel des courbes de la marque */
  background: repeating-radial-gradient(circle, transparent 0 33px, rgba(140, 196, 232, 0.14) 33px 34px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.cnx-contact__aside > * {
  position: relative;
  z-index: 1;
}

/* Coordonnées */
.cnx-contact-info {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.cnx-contact-info__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 14px;
}

.cnx-contact-info__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #8cc4e8;
  border: 1px solid rgba(140, 196, 232, 0.35);
  border-radius: 50%;
}

.cnx-contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.cnx-contact-info__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8cc4e8;
}

.cnx-contact-info__value,
.cnx-contact-info__value a {
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
}

.cnx-contact-info__value a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--cnx-ease, ease);
}

.cnx-contact-info__value a:hover,
.cnx-contact-info__value a:focus-visible {
  background-size: 100% 1px;
}

/* Formulaire Gravity Forms ------------------------------------------------- */

.cnx-contact__form .gform_wrapper.gravity-theme {
  margin: 0;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 16px;
  grid-column-gap: 14px;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gform_required_legend {
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.cnx-contact__form .gform_wrapper.gravity-theme .gfield_label {
  margin-bottom: 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.cnx-contact__form .gform_wrapper.gravity-theme .gfield_required {
  color: #8cc4e8;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gfield_required .gfield_required_text {
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
}

.cnx-contact__form .gform_wrapper.gravity-theme input[type="text"],
.cnx-contact__form .gform_wrapper.gravity-theme input[type="email"],
.cnx-contact__form .gform_wrapper.gravity-theme input[type="tel"],
.cnx-contact__form .gform_wrapper.gravity-theme select,
.cnx-contact__form .gform_wrapper.gravity-theme textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.cnx-contact__form .gform_wrapper.gravity-theme input[type="text"],
.cnx-contact__form .gform_wrapper.gravity-theme input[type="email"],
.cnx-contact__form .gform_wrapper.gravity-theme input[type="tel"],
.cnx-contact__form .gform_wrapper.gravity-theme select {
  height: 46px;
  line-height: 46px;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gfield textarea,
.cnx-contact__form .gform_wrapper.gravity-theme .gfield textarea.large {
  min-height: 104px;
  height: 104px;
  padding: 14px 18px;
  line-height: 1.5;
  resize: vertical;
}

.cnx-contact__form .gform_wrapper.gravity-theme select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}

.cnx-contact__form .gform_wrapper.gravity-theme select option {
  color: #003057;
}

.cnx-contact__form .gform_wrapper.gravity-theme input::placeholder,
.cnx-contact__form .gform_wrapper.gravity-theme textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cnx-contact__form .gform_wrapper.gravity-theme input:hover,
.cnx-contact__form .gform_wrapper.gravity-theme select:hover,
.cnx-contact__form .gform_wrapper.gravity-theme textarea:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.cnx-contact__form .gform_wrapper.gravity-theme input:focus,
.cnx-contact__form .gform_wrapper.gravity-theme select:focus,
.cnx-contact__form .gform_wrapper.gravity-theme textarea:focus {
  outline: none;
  border-color: #8cc4e8;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(140, 196, 232, 0.15);
}

/* Bouton d'envoi, identique aux boutons du site */
.cnx-contact__form .gform_wrapper.gravity-theme .gform_footer {
  margin: 8px 0 0;
  padding: 0;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
.cnx-contact__form .gform_wrapper.gravity-theme .gform_footer button {
  -webkit-appearance: none;
  appearance: none;
  height: auto;
  margin: 0;
  padding: 15px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #003057;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
.cnx-contact__form .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:focus-visible {
  color: #fff;
  background-color: transparent;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gform_ajax_spinner {
  margin-left: 14px;
  vertical-align: middle;
}

/* Erreurs et confirmation */
.cnx-contact__form .gform_wrapper.gravity-theme .gform_validation_errors {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(255, 120, 100, 0.1);
  border: 1px solid rgba(255, 140, 120, 0.45);
  border-radius: 12px;
  box-shadow: none;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gform_validation_errors > h2,
.cnx-contact__form .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon {
  font-size: 14px;
  font-weight: 500;
  color: #ffb4a6;
}

.cnx-contact__form .gform_wrapper.gravity-theme .gfield_error input,
.cnx-contact__form .gform_wrapper.gravity-theme .gfield_error select,
.cnx-contact__form .gform_wrapper.gravity-theme .gfield_error textarea {
  border-color: rgba(255, 140, 120, 0.7);
}

.cnx-contact__form .gform_wrapper.gravity-theme .gfield_validation_message,
.cnx-contact__form .gform_wrapper.gravity-theme .validation_message {
  margin-top: 6px;
  padding: 0;
  font-size: 12px;
  color: #ffb4a6;
  background: none;
  border: 0;
}

.cnx-contact__form .gform_confirmation_message {
  padding: 28px;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  background: rgba(140, 196, 232, 0.08);
  border: 1px solid rgba(140, 196, 232, 0.35);
  border-radius: 16px;
}

/* Tablette et mobile : panneau de gauche compact pour remonter le formulaire */
@media (max-width: 1024px) {
  .cnx-contact-info {
    gap: 14px;
    padding-top: 20px;
  }

  .cnx-contact-info__item {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .cnx-contact-info__icon {
    width: 34px;
    height: 34px;
  }

  .cnx-contact-info__item:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .cnx-contact__form .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cnx-contact-info__value a,
  .cnx-contact__form .gform_wrapper.gravity-theme input,
  .cnx-contact__form .gform_wrapper.gravity-theme select,
  .cnx-contact__form .gform_wrapper.gravity-theme textarea {
    transition: none;
  }
}