.footerPage {
  height: 100vh;
  width: 100vw;
}

/* -------- Formulaire -------- */

.formulaire {
  height: 70%;
  display: flex;
  position: relative; /* pour que le rond se positionne par rapport à ce container */
}

.formulaire::after {
  content: "";
  position: absolute;
  right: -100px; /* décale le cercle vers la droite du container */
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(0, 183, 255, 0.4) 0%,
    rgba(0, 183, 255, 0.2) 30%,
    rgba(0, 183, 255, 0.05) 60%,
    transparent 100%
  );
  pointer-events: none; /* pour éviter que ça gêne les clics */
  z-index: 0; /* assure que ça reste derrière le contenu */
}

.formulaire__gauche {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(
    circle at center,
    rgba(0, 183, 255, 0.4) 0%,
    rgba(0, 183, 255, 0.2) 30%,
    rgba(0, 183, 255, 0.05) 60%,
    transparent 100%
  );
}

.formulaire__gauche h3 {
  margin-top: 10%;
  margin-bottom: 5%;
  margin-left: 2rem;
  color: var(--text-color1);
  font-size: 2.5rem;
}

.formulaire__h3 {
  color: var(--colorv1);
}

.choixContact {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  width: 100%; /* prend la largeur du parent */
}

.choixContact li {
  display: flex;
  align-items: center;
  width: 100%; /* chaque <li> prend toute la largeur */
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  margin-left: 2rem;
  margin-top: 1rem;
}

.choixContact li:hover {
  background-color: var(--colorv11);
  color: var(--text-colorv2);
  border: 1px solid var(--colorv1);
}

.choixContact img {
  height: 1rem;
  width: 1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.choixContact p {
  margin: 0;
  flex: 1;
  text-align: left;
}

.formulaire__droite {
  width: 60%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  color: var(--text-color2);
}

.formulaire__champs {
  height: 70%;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centre tous les éléments horizontalement */
  text-align: center;
  margin: auto;
  background-color: var(--colorv11);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 1rem;
}

.formulaire__champs h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.formulaire__champs p {
  margin-bottom: 1rem;
  width: 90%;
  margin: auto;
  margin-bottom: 1rem;
}

.enteteFormulaire {
  width: 100%;
  text-align: center;
}

.formulaire__bouton {
  border-radius: 10rem;
  font-weight: bold;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--colorv1), var(--colorv12));
  color: var(--text-color2);
  border: 2px solid var(--text-color2);
  cursor: pointer;
  transition: background-color 0.8s ease-in-out, transform 0.3s ease-in-out;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  text-align: center;
  width: auto;
  max-width: 100%;
}

.formulaire__bouton:hover {
  transform: scale(1.05);
  background-position: right;
  background: linear-gradient(90deg, var(--colorv12), var(--colorv1));
  border: 1px solid var(--colorv2);
}

.listeChamp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-radius: 0.3rem;
  color: var(--text-color2);
}

.listeChamp input,
.formulaire__bouton {
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--colorv1);
  color: var(--text-color2);
  border: none;
}

.boutonFormulaire {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.listeChamp input:nth-child(1),
.listeChamp input:nth-child(2) {
  grid-column: span 1;
}

.listeChamp input:nth-child(3) {
  grid-column: span 2;
}

.listeChamp input:nth-child(4),
.listeChamp input:nth-child(5) {
  grid-column: span 1;
}

.listeChamp input:nth-child(6) {
  grid-column: span 2;
}

.listeChamp input:nth-child(7) {
  grid-column: span 2;
}

.listeChamp textarea {
  grid-column: span 2;
  width: 100%;
  padding: 0.5rem;
  height: 3.5rem;
  background-color: var(--colorv1);
  border-radius: 0.5rem;
  border: none;
  color: var(--text-color2);
}

/* -------- Footer Bas -------- */

.contact {
  height: 30%;
  background: linear-gradient(
    45deg,
    var(--colorv4) 0%,
    var(--colorv4) 20%,
    var(--colorv5) 60%,
    var(--colorv6) 100%
  );
  display: flex;
}

.contact__logo {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.contact__logo img {
  margin-bottom: 1.5rem;
}

.contact__info {
  width: 70%;
  display: flex;
  justify-content: space-between;
}

.contact__info1,
.contact__info2,
.contact__info3 {
  width: 27.5%;
}

.contact__info1 h4,
.contact__info2 h4,
.contact__info3 h4 {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.contact__info-li {
  font-size: 0.8rem;
  color: gray;
  margin-bottom: 0.45rem;
  font-weight: normal;
  font-style: normal;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: var(--text-color2);
}

/* Responsive : Tablettes et petits écrans (< 1200px) */
@media screen and (max-width: 1199px) {
  .footerPage {
    height: auto;
  }

  .formulaire {
    flex-direction: column;
    height: auto;
  }

  .formulaire__gauche,
  .formulaire__droite {
    width: 100%;
    padding: 1rem;
  }

  .formulaire__gauche h3 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-left: 0;
    text-align: center;
  }

  .choixContact {
    align-items: center;
  }

  .choixContact li {
    margin-left: 0;
    width: 90%;
  }

  .formulaire__champs {
    width: 90%;
  }

  .listeChamp {
    grid-template-columns: 1fr;
  }

  .listeChamp input,
  .listeChamp textarea,
  .formulaire__bouton {
    grid-column: span 1 !important;
  }

  .contact {
    flex-direction: column;
    height: auto;
    padding: 2rem 1rem;
    align-items: center;
  }

  .contact__logo,
  .contact__info {
    width: 100%;
    text-align: center;
  }

  .contact__info {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  .contact__info1,
  .contact__info2,
  .contact__info3 {
    width: 100%;
  }
}

/* Responsive : Mobiles (< 768px) */
@media screen and (max-width: 767px) {
  .formulaire__gauche h3 {
    font-size: 1.6rem;
  }

  .choixContact li {
    font-size: 1rem;
  }

  .formulaire__champs h4 {
    font-size: 1.3rem;
  }

  .formulaire__champs p {
    font-size: 0.9rem;
  }

  .formulaire__bouton {
    width: 50%;
    max-width: 100%;
  }

  .contact__info-li {
    font-size: 0.85rem;
  }
}

/* Responsive : Très petits écrans (< 480px) */
@media screen and (max-width: 479px) {
  .formulaire__champs {
    width: 95%;
  }

  .listeChamp {
    gap: 0.5rem;
  }

  .formulaire__bouton {
    width: 80%;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 1.5rem;
  }

  .formulaire__gauche h3 {
    font-size: 1.3rem;
  }

  .contact__info2 h4,
  .contact__info3 h4 {
    font-size: 1.2rem;
  }

  .contact__info-li {
    font-size: 0.8rem;
  }
}
