@import url("https://fonts.googleapis.com/css2?family=Metamorphous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Koulen&display=swap");
/* charte graphique pour : la couleur texte #831E08 */
body {
  height: 100vh;
  background-image: url("../assets/Images_web/FondFormulaire.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: url("/assets/icon_site/spider-insect.png") 35 35, auto;
  overflow: hidden;
}

body::after {
  content: "";
  display: block;
  height: 50%;
  width: 50%;
  background-color: black;
  border-radius: 50%;
  left: 25%;
  top: 25%;
  position: absolute;
  animation: Lumineux 4.2s linear forwards;
}

@keyframes Lumineux {
  99% {
    transform: scale(100);
    opacity: 0;
  }
  100% {
    opacity: 0;
    height: 1px;
    width: 1px;
    display: none;
  }
}

@keyframes fadeInAnimation {
  from {
    transform: scale(1.6);
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

header {
  display: flex;
  justify-content: center;
  position: relative;
}

#Burger {
  display: none;
}

#Burger:checked ~ label .bar1 {
  transform: rotate(45deg);
  background-color: #831e08;
}
#Burger:checked ~ label .bar3 {
  transform: rotate(-45deg);
  background-color: #831e08;
}
#Burger:checked ~ label .bar2 {
  transform: translateX(-50%);
  opacity: 0;
}

.Menu_Burger label {
  cursor: pointer;
  width: fit-content;
  transition: all 0.3s linear;
}

.Menu_Burger label:hover {
  transform: scale(1.2) rotate(-90deg);
}

.Menu_Burger label .bar1,
.Menu_Burger label .bar3 {
  transform-origin: left;
}

.Menu_Burger {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding: 15px;
  position: absolute;
  left: 0;
  animation: alternate 4s fadeInAnimation;
}

.Menu_Burger div:not(.MenuApparait) {
  height: 3px;
  width: 22.5px;
  background-color: wheat;
  margin: 5px 0;
  transition: all 0.3s linear;
}

.MenuApparait {
  display: flex;
  flex-direction: column;
  /* background-color: violet; */
  width: 200px;
  height: 50vh;
  transform: translateX(-100%);
  transition: all 0.4s linear;
}

.MenuApparait a {
  padding: 20px;
  font-family: "Koulen", sans-serif;
  font-size: 17px;
  text-transform: capitalize;
  text-decoration: none;
  color: wheat;
  transition: all 0.4s ease;
  position: relative;
  width: fit-content;
}

.MenuApparait a:after {
  content: "";
  position: absolute;
  width: 80%;
  transform: scaleX(0);
  height: 2px;
  bottom: 30%;
  left: 10%;
  background-color: #831e08;
  transform-origin: bottom right;
  transition: transform 0.5s ease;
}

.MenuApparait a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
  background-color: wheat;
}

.MenuApparait a:hover {
  transform: scale(0.9);
  color: #831e08;
}

#Burger:checked ~ div.MenuApparait {
  transform: translateX(0);
}

header h1 {
  align-items: end;
  height: fit-content;
  font-size: 35px;
  font-weight: bold;
  color: #831e08;
  font-family: "Koulen";
  transition: all 0.3s linear;
  position: relative;
  animation: 4s linear forwards fadeInAnimation;
}

header h1:hover {
  color: wheat;
  transform: scale(1.03);
}

main {
  display: flex;
  justify-content: flex-end;
  /* background-color: coral; */
}
/* Partie avec le Formulaire */
.Formulaire {
  display: flex;
  align-items: center;
  /* background-color: violet; */
  height: 80vh;
  width: 50%;
  animation: 4s linear forwards fadeInAnimation;
}

.ContactUs {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Le label effet faux placeholder */
.ContactUs .Nom {
  position: absolute;
  left: 5%;
  top: 8%;
  cursor: text;
  padding: 2px 4px;
  font-family: "Koulen";
  color: goldenrod;
  transition: all 0.2s ease;
}
/* Le label effet faux placeholder bis */
.ContactUs .Mail {
  position: absolute;
  left: 5%;
  top: 26%;
  cursor: text;
  padding: 2px 4px;
  font-family: "Koulen";
  color: goldenrod;
  transition: all 0.2s ease;
}

/* FX avec le focus sibling (le placeholder monte et reste quand il y a du texte et que le placeholder n'est pas visible */
#First:focus ~ .Nom,
#First:not(:placeholder-shown)#First:not(:focus) ~ .Nom {
  top: 2px;
  font-size: 10px;
  left: 1%;
  color: wheat;
  background-color: black;
}
#Second:focus ~ .Mail,
#Second:not(:placeholder-shown)#Second:not(:focus) ~ .Mail {
  top: 19%;
  font-size: 10px;
  left: 1%;
  color: wheat;
  background-color: black;
}
.ContactUs .Name,
.ContactUs .Email,
textarea {
  width: 50%;
  outline: none;
  border: none;
  border-bottom: #831e08 1px solid;
  background-color: transparent;
  font-family: "Roboto";
  font-size: inherit;
  padding: 15px 10px;
  margin: 10px 0px;
  color: wheat;
}

.ContactUs .Name:hover,
.ContactUs .Email:hover,
textarea:hover {
  border-bottom: goldenrod 1px solid;
}
.ContactUs .Name:focus,
.ContactUs .Email:focus,
textarea:focus {
  border: wheat 1px solid;
}
.ContactUs input[type="submit"] {
  background-color: transparent;
  color: wheat;
  padding: 5px 10px;
  border-radius: 35px;
  font-size: 1em;
  font-family: "Koulen";
  transition: all 0.4s ease;
}

.ContactUs input[type="submit"]:hover {
  background-color: #831e08;
  transform: scale(1.2);
  box-shadow: 2px 2px 10px rgba(195, 34, 34, 0.64);
  cursor: pointer;
}

.LigneRouge {
  position: absolute;
  top: 25%;
  left: 1.5%;
  transform-origin: bottom;
  animation: fadeInAnimation 4s linear forwards;
}

footer {
  color: #740000;
  position: absolute;
  bottom: 0;
  animation: 4s linear forwards fadeInAnimation;
}

.Icons i {
  font-size: 40px;
  margin: 2px;
  cursor: pointer;
  transition: all 0.4s linear;
}

.Icons i:hover {
  color: wheat;
  transform: scale(1.05);
}
