/* Cachons la case à cocher */

[type="radio"]:not(:checked),
[type="radio"]:checked,
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
  /* Cache la checkbox sans
       la désactiver pour les
       lecteurs d'écran */
  position: absolute;
  left: 0;
  opacity: 0.01;
}

/* on prépare le label */
[type="radio"]:not(:checked) + label,
[type="radio"]:checked + label,
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
  position: relative; /* permet de positionner les pseudo-éléments */
  padding-left: 1.5em; /* fait un peu d'espace pour notre case à venir 
    font-size: 1em; /* Label un peu plus gros */
  line-height: 1;
  cursor: pointer; /* affiche un curseur adapté */
}

/* Aspect de la case */
[type="radio"]:not(:checked) + label:before,
[type="radio"]:checked + label:before,
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1em;
  height: 1em;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 rgba(203, 34, 237, 0.2);
  transition: all 0.275s;
}

[type="radio"]:not(:checked) + label.have-blue-bg:before,
[type="radio"]:checked + label.have-blue-bg:before,
[type="checkbox"]:not(:checked) + label.have-blue-bg:before,
[type="checkbox"]:checked + label.have-blue-bg:before {
  border: 1px solid #fff;
}

/* Aspect de la coche */

/* Aspect non cochée */
[type="radio"]:not(:checked) + label:before,
[type="checkbox"]:not(:checked) + label:before {
  background: #fff;
  /*opacity: 0;
    transform: scale(0) rotate(45deg);*/
}

/* Aspect cochée */
[type="radio"]:checked + label:before,
[type="checkbox"]:checked + label:before {
  background: #213047;
  border: none;

  /*	opacity: 1;
    transform: scale(1) rotate(0);*/
}

/* input text debut */

.group *,
.group :before,
.group :after {
  box-sizing: border-box !important;
}

.group {
  position: relative !important;
  margin: 45px 0;
}

.group textarea {
  resize: none !important;
}

.group input,
.group textarea {
  background: none;
  color: #fff;
  font-size: 18px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #c6c6c6;
}
.group input:focus,
.group textarea:focus {
  outline: none !important;
}
.group input:focus ~ label,
.group input:valid ~ label,
.group textarea:focus ~ label,
.group textarea:valid ~ label {
  top: -14px !important;
  font-size: 12px !important;
  color: #fff;
}

/*.group.input-societe input:valid ~ label {
    top: -14px !important;
    font-size: 12px !important;
  }*/

input:focus ~ .bar:before,
textarea:focus ~ .bar:before {
  width: 100% !important;
}

input[type="password"] {
  letter-spacing: 0.3em !important;
}

.group label {
  color: #fff;
  font-size: 16px;
  font-style: italic;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  transition: 300ms ease all;
}

.bar {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.bar:before {
  content: "" !important;
  height: 2px !important;
  width: 0 !important;
  bottom: 0px !important;
  position: absolute !important;
  background: #fff !important;
  transition: 300ms ease all !important;
  left: 0% !important;
}

.group.blue input,
.group.blue textarea {
  color: #213047;
  border-color: #213047;
}

.group.blue .bar,
.group.blue .bar:before {
  background-color: #213047 !important;
}

.group.blue label {
  color: #213047;
}

.group.blue input:focus ~ label,
.group.blue input:valid ~ label,
.group.blue textarea:focus ~ label,
.group.blue textarea:valid ~ label {
  color: #213047;
}

/* input text fin */

.select::after {
  content: "\003E";
  position: absolute;
  top: 0;
  right: 5px;
  padding: 0 1em;
  background: #213047;
  color: #fff;
  cursor: pointer;
  pointer-events: none;
  -webkit-transition: 0.25s all ease;
  -o-transition: 0.25s all ease;
  transition: 0.25s all ease;
  -webkit-transform: translate(-43%, 0) rotate(90deg) scaleY(1.75);
  transform: translate(-43%, 0) rotate(90deg) scaleY(1.75);
}

/* formulaire de contact */
.group input:focus ~ label#lprecision_public {
  color: #213047;
}

@-webkit-keyframes autofill {
  to {
    color: #fff;
    background: transparent;
  }
}

input:-webkit-autofill {
  -webkit-animation-name: autofill;
  -webkit-animation-fill-mode: both;
}

.label {
  display: block;
  font-family: "Cormorant Garamond";
  font-style: italic;
  margin-bottom: 0;
}

.input {
  font-family: "Cormorant Garamond" !important;
}

.label__file::before {
  font-family: FontAwesome;
  font-style: normal;
  cursor: pointer;
  content: "\f019";
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #fff;
  display: inline-block;
  line-height: 38px;
  color: var(--bleu);
  text-align: center;
}
.label__file {
  display: inline-block;
  font-family: "Cormorant Garamond" !important;
}
.label__file span {
  margin-left: 20px;
  color: #fff;
}

.field__pieces-jointes {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -10000px;
}
