.page-contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding: 0px 50px 0 50px;
  margin-top: 150px;
}

.contact-section {
  grid-column: 6 / 12;
  font-family: "georgiapro", sans-serif;
}

/* Style de base CF7 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  font-family: "georgiapro", sans-serif;
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  margin-bottom: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.wpcf7-form label {
  font-weight: 400;
  margin-bottom: 5px;
  display: block;
  color: #000;
}

.wpcf7-form .wpcf7-submit {
  display: flex;
  align-items: center;
  font-family: "georgiapro", sans-serif;
  background-color: white;
  color: black;
  border: none;
  padding: 8px 44px;
  cursor: pointer;
  font-size: 16px;
  border: #000 1px solid;
}

/* Pour mettre Nom et Prénom côte à côte */
.name-row {
  display: flex;
  gap: 20px;
}

.name-row label {
  flex: 1;
  flex-direction: column;
  font-weight: 400;
}

.name-row input.wpcf7-text {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

.wpcf7-form textarea {
  width: 100%;
  height: 100px;
  font-size: 16px;
  box-sizing: border-box;
  resize: vertical;
}

.wpcf7-response-output {
  margin-top: 10px;
  margin-left: 0px !important;
  padding: 0 !important;
  font-size: 16px;
  border: none !important;
  color: #58709A;
  text-align: center;
  width: 100%;
}

.wpcf7-not-valid {
  border: 2px solid #58709A;
  background-color: #fff5f5;
}

.titre_contact {
  grid-column: 1 / span 4;
}

.titre_contact h2 {
  font-size: 40px;
  color: white;
  background-color: #58709A;
  padding: 3px 17px;
  display: inline-block;
  margin-top: 65px;
  margin-bottom: 18px;
}

.titre_contact p {
  line-height: 140%;
}

.submit-wrapper {
  position: relative;
  display: table; /* se réduit à la taille du contenu */
  margin: 20px auto 0 auto; /* centrage horizontal */
  overflow: hidden;
  border: 1px solid black;
}


.submit-wrapper input.wpcf7-submit {
  position: relative;
  background: transparent;
  color: black;
  border: none;
  padding: 8px 25px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
}

.submit-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #58709A;
  z-index: 0;
  transition: height 0.4s ease;
}

.submit-wrapper:hover::before {
  height: 100%;
}

.submit-wrapper:hover input.wpcf7-submit {
  color: white;
}



/* =======================
   Responsive TABLETTE
   ======================= */
@media (max-width: 1024px) {
  .page-contact {
    grid-template-columns: repeat(12, 1fr);
    padding: 0 30px;
    gap: 24px;
  }

  .titre_contact {
    grid-column: 1 / span 12;
    text-align: center;
  }

  .titre_contact h2 {
    font-size: 32px;
    margin-top: 50px;
    padding: 5px 15px;
  }

  .titre_contact p {
    max-width: 80%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-section {
    grid-column: 2 / span 10;
  }

  .name-row {
    flex-direction: row;
    gap: 36px;
  }
}

/* =======================
   Responsive MOBILE
   ======================= */
@media (max-width: 768px) {
  .page-contact {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    margin-top: 120px;
  }

  .titre_contact {
    text-align: center;
    margin-bottom: 30px;
  }

  .titre_contact h2 {
    font-size: 28px;
    margin-top: 40px;
  }

  .titre_contact p {
    font-size: 14px;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.5;
  }

  .contact-section {
    width: 100%;
    padding: 0;
  }



  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    font-size: 14px;
  }

  .submit-wrapper {
    margin-top: 20px;
  }

  .submit-wrapper input.wpcf7-submit {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* =======================
   Responsive MOBILE PETIT (≤480px)
   ======================= */
@media (max-width: 480px) {
  .titre_contact h2 {
    font-size: 24px;
  }

  .titre_contact p {
    font-size: 14px;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    font-size: 14px;
  }

  .submit-wrapper input.wpcf7-submit {
    padding: 10px 16px;
    font-size: 14px;
  }
}
