#container_contact {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#form_contact {
	display: flex;
}

.first_form {
	padding: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	border-radius: 5px;
	width: 40vh;
	box-shadow: 0px 5px 5px #7E7B7B;
	margin: 30px;
}

textarea {
	max-width: 100%;
  min-width: 100%;
	width: 100%;
  height: 45px;
  min-height: 45px;
}

.first_form h3 {
    margin-top: 0;
    margin-bottom: 30px;
}

.second_form {
	padding: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	border-radius: 1em;
	width: 60vh;
	box-shadow: 0px 5px 5px #7E7B7B;
	margin: 30px;
}

.form-group {
	position: relative;
	margin-bottom: 45px;
	width: 80%;
}

.champ {
	display: block;
	width: 100%;
	font-size: 14pt;
	padding: 10px;
	border: none;
	border-bottom: 1px solid #f5deb3;
}

.champ:focus {
	outline: none;
}

label {
	position: absolute;
	top: 10px;
	left: 5px;
	color: #999;
	font-size: 14pt;
	font-weight: normal;
	pointer-events: none;
	transition: all 0.2s ease;
}

.champ:focus~label,
.champ:valid~label {
	top: -20px;
	font-size: 10pt;
    color: black;
}

.bar {
	display: block;
	position: relative;
	width: 100%;
}

.bar:before,
.bar:after {
	content: "";
	height: 2px;
	width: 0;
	bottom: 0px;
	position: absolute;
	background: #00bfff;
	transition: all 0.2s ease;
}

.bar:before {
	left: 50%;
}

.bar:after {
	right: 50%;
}

.champ:focus~.bar:before,
.champ:focus~.bar:after {
	width: 50%;
}

#submit {
	border: 1px solid var(--couleur-input);
	width: 110%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	height: 50px;
	font-size: 12pt;
  background-color: #f5deb3;
  color: white;
  font-weight: bold;
}

#submit:hover {
  background-color: transparent;
  color: #00bfff;
  transition: 0.7s;
}

.card-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    perspective: 1000px; /* Pour créer une perspective */
  }
  
  .card_contact {
    width: 300px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d; /* Permet aux enfants d'être rendus en 3D */
    transition: transform 0.8s; /* Ajoute une transition fluide */
  }
  
  .card_contact:hover {
    transform: rotateY(180deg); /* Effectue la rotation au survol */
  }
  
  .recto, .verso {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden; /* Cache le côté opposé lors de la rotation */
    -webkit-backface-visibility: hidden; /* Préfixe pour une meilleure compatibilité */
  }
  
  .recto {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white; /* Ajout d'un fond blanc pour cacher le verso */
    border-radius: 5px;
  }
  
  .verso {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    transform: rotateY(180deg); /* Assure que le verso démarre à l'envers */
  }
  
  /* Déplacez les styles de l'icône vers le côté recto */
  .card_contact i {
    color: #00bfff;
    font-size: 38pt;
  }
  
  /* Déplacez les styles du texte vers le côté verso */
  .text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  /* Ajoutez une marge aux éléments textuels pour les espacer */
  .text h3 {
    margin: 0;
  }
  
  @media screen and (max-width : 960px) {
    #container_contact {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .card_contact {
      margin-bottom: 50px;
    }
  }

  @media screen and (max-width: 540px) {
    .first_form {
      width: 70%;
    }

    .card_contact {
      width: 200px;
    }

    .verso {
      font-size: 8pt;
    }

    label {
      font-size: 8pt;
    }

    .champ {
      font-size: 8pt;
    }
  }