/* =============================================================
   Section Contact
   ============================================================= */

.contact-section {
  --contact-bg: #f2f7f5;
  --contact-dark: #003c3d;
  --contact-green: #025253;
  --contact-accent: #21b593;
  --contact-card-bg: rgba(255, 255, 255, 0.9);
  --contact-card-border: #e7efe9;
  --contact-card-radius: 24px;
  --contact-card-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.05);

  background-color: var(--contact-bg);
  padding: 100px 0;
}

.contact-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ── Header ── */
.contact-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.contact-section__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--contact-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.contact-section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 45px;
  color: var(--contact-dark);
  text-align: center;
  margin: 0;
  line-height: 1.15;
}

/* ── Layout ── */
.contact-section__layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
}

/* ── Card communes ── */
.contact-section__infos,
.contact-section__form {
  background: var(--contact-card-bg);
  border: 1px solid var(--contact-card-border);
  border-radius: var(--contact-card-radius);
  box-shadow: var(--contact-card-shadow);
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Retirer l'ombre native des champs de formulaire */
.contact-section .gform_wrapper input[type="text"],
.contact-section .gform_wrapper input[type="email"],
.contact-section .gform_wrapper input[type="tel"],
.contact-section .gform_wrapper select,
.contact-section .gform_wrapper textarea {
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

/* ── Colonne gauche ── */
.contact-section__infos {
  flex: 0 0 417px;
  width: 417px;
}

.contact-section__infos-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 42px;
  letter-spacing: 0.5px;
  color: var(--contact-dark);
  margin: 0;
}

.contact-section__service-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--contact-dark);
  margin: 0;
  line-height: 1.5;
}

/* Ligne téléphone / email */
.contact-section__contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-section__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: var(--contact-bg);
  border-radius: 5px;
  flex-shrink: 0;
  color: var(--contact-green);
}

.contact-section__contact-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--contact-green);
  letter-spacing: -0.3125px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-section__contact-text:hover {
  color: var(--contact-accent);
}

/* Adresse */
.contact-section__address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-section__address-label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--contact-green);
  margin: 0;
}

.contact-section__address-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--contact-green);
  font-style: normal;
  margin: 0;
  line-height: 1.5;
}

/* Carte engagement */
.contact-section__engagement {
  background-color: var(--contact-bg);
  border-radius: 15px;
  padding: 45px 30px;
  display: flex;
  flex-direction: column;
  gap: 27px;
  text-align: center;
  margin-top: auto;
}

.contact-section__engagement-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--contact-green);
  margin: 0;
}

.contact-section__engagement-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22.5px;
  color: var(--contact-dark);
  margin: 0;
}

/* ── Colonne droite ── */
.contact-section__form {
  flex: 1;
  min-width: 0;
}

/* Mention confidentialité */
.contact-section__privacy {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--contact-green);
  margin: 0;
  line-height: 1.5;
}

.contact-section__privacy-link {
  color: var(--contact-green);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.contact-section__privacy-link:hover {
  color: var(--contact-accent);
}

/* =============================================================
   Gravity Forms — scoped sous .contact-section
   ============================================================= */

.contact-section .gform_wrapper .gfield_label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #025253;
  letter-spacing: -0.3125px;
  margin-bottom: 10px;
}

.contact-section .gform_wrapper .gfield_required {
  color: #21b593;
}

.contact-section .gform_wrapper input[type="text"],
.contact-section .gform_wrapper input[type="email"],
.contact-section .gform_wrapper input[type="tel"] {
  background-color: #f2f7f5;
  border: 1px solid #e2e1e5;
  border-radius: 5px;
  height: 60px;
  padding: 0 10px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.contact-section .gform_wrapper select {
  background-color: #f2f7f5;
  border: 1px solid #e2e1e5;
  border-radius: 5px;
  height: 60px;
  padding: 0 10px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  display: flex;
  align-items: center;
}

.contact-section .gform_wrapper input[type="text"]:focus,
.contact-section .gform_wrapper input[type="email"]:focus,
.contact-section .gform_wrapper input[type="tel"]:focus,
.contact-section .gform_wrapper select:focus {
  outline: none;
  border-color: #21b593;
}

.contact-section .gform_wrapper textarea {
  background-color: #f2f7f5;
  border: 1px solid #e2e1e5;
  border-radius: 5px;
  min-height: 150px;
  padding: 15px 25px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.contact-section .gform_wrapper textarea:focus {
  outline: none;
  border-color: #21b593;
}

/* 2 colonnes desktop */
@media (min-width: 992px) {
  .contact-section .gform_wrapper .gform_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
  }

  .contact-section .gform_wrapper .gfield--width-half {
    width: calc(50% - 15px);
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
  }

  /* Select et textarea toujours pleine largeur */
  .contact-section .gform_wrapper .gfield:has(select),
  .contact-section .gform_wrapper .gfield:has(textarea) {
    width: 100%;
  }
}

/* =============================================================
   Bouton submit GravityForms — custom avec flèche SVG
   Rendu via le filtre gform_submit_button (functions.php)
   ============================================================= */

/* Fallback input (si le filtre PHP est désactivé) */
.contact-section .gform_wrapper .gform_button,
.contact-section .gform_wrapper input[type="submit"],
.contact-section .gform_wrapper button[type="submit"] {
  background-color: #025253 !important;
  color: #fefefe !important;
  border-radius: 8px !important;
  height: 54px !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  letter-spacing: -0.2px !important;
  transition: background-color 0.2s ease !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.contact-section .gform_wrapper .gform_button:hover,
.contact-section .gform_wrapper input[type="submit"]:hover,
.contact-section .gform_wrapper button[type="submit"]:hover {
  background-color: #003c3d !important;
}

/* Bouton custom .dioqa-gf-submit (rendu PHP avec flèche) */
.contact-section .gform_wrapper .dioqa-gf-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 10px 0 24px !important;
  position: relative !important;
}

.contact-section .gform_wrapper .dioqa-gf-submit .dioqa-gf-submit__label {
  line-height: 1;
}

.contact-section .gform_wrapper .dioqa-gf-submit .dioqa-gf-submit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  transition: transform 0.25s ease;
}

.contact-section .gform_wrapper .dioqa-gf-submit .dioqa-gf-submit__icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

/* Hover : légère translation de la flèche */
.contact-section .gform_wrapper .dioqa-gf-submit:hover .dioqa-gf-submit__icon,
.contact-section .gform_wrapper .dioqa-gf-submit:focus-visible .dioqa-gf-submit__icon {
  transform: translateX(4px);
}

/* Erreurs de validation */
.contact-section .gform_wrapper .validation_message {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 4px;
}

/* =============================================================
   Responsive — ≤ 991px
   ============================================================= */

@media (max-width: 991px) {
  .contact-section {
    padding: 64px 0;
  }

  .contact-section__inner {
    gap: 24px;
    padding: 0 20px;
  }

  .contact-section__label {
    font-size: 13px;
  }

  .contact-section__title {
    font-size: 21px;
  }

  .contact-section__layout {
    flex-direction: column;
    gap: 24px;
  }

  .contact-section__infos {
    flex: none;
    width: 100%;
    padding: 24px;
  }

  .contact-section__form {
    padding: 24px;
  }

  .contact-section__infos-title {
    font-size: 23px;
    line-height: 1.3;
  }

  .contact-section__service-text {
    font-size: 15px;
  }

  .contact-section__contact-icon {
    width: 26px;
    height: 26px;
    background: none;
    border-radius: 0;
  }

  .contact-section__contact-icon svg {
    width: 26px;
    height: 26px;
  }

  .contact-section__contact-text {
    font-size: 16px;
  }

  .contact-section__address-label,
  .contact-section__address-text {
    font-size: 15px;
  }

  .contact-section__engagement {
    padding: 20px 24px;
    gap: 16px;
  }

  .contact-section__engagement-title {
    font-size: 16px;
  }

  .contact-section__engagement-text {
    font-size: 14px;
  }

  .contact-section .gform_wrapper .gform_fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .contact-section .gform_wrapper .gfield--width-half {
    width: 100%;
  }
}

/* =============================================================
   Responsive — ≤ 575px
   ============================================================= */

@media (max-width: 575px) {

  .contact-section__infos,
  .contact-section__form {
    padding: 20px 16px;
  }
}
