/* Importation des polices de charactères */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
    margin: 0;
    /* background-color: #1FA49F; */
}

/* CSS de base */
#form_config_portes label {
    float: left;
    margin-left: 20px;
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    color: #858585;
    font-weight: 200;
    display: inline-block;
    margin-bottom: .5rem;
}

#form_config_portes span {
    color: red;
}

#form_config_portes input[type=text], #form_config_portes input[type=email], #form_config_portes input[type=tel], #form_config_portes select, #form_config_portes textarea, #form_config_portes input[type=date] {
    background-color: #EBEBEB;
    margin: 5px 0 10px 0;
    font-size: 22px;
    padding-left: 5px;
    box-sizing: border-box;
    text-indent: 5px;
    border: 1px solid;
    border-color: #A6A6A6;
    font-family: 'Oswald', sans-serif;
    font-weight: 200;
    width: 100%;
}

#form_config_portes input[type=text], #form_config_portes input[type=email], #form_config_portes input[type=tel], #form_config_portes select, #form_config_portes input[type=date] {
    height: 55px;
}

#form_config_portes .demi-colonne {
    float: left;
    position: relative;
    /* padding: 0.65rem; */
    padding: 0.85rem;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 200;
}

#form_config_portes .rang-form {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.checkbox-centered {
    justify-content: center;
    gap: 64px;
}

.checkbox-centered .demi-colonne {
    width: fit-content!important;
}

#form_config_portes input[type=radio], #form_config_portes input[type=checkbox] {
    display: none;
}

#form_config_portes .radio-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-container > label {
    padding-bottom: 10px;
}

.radio-container {
    padding-bottom: 20px;
}

#form_config_portes .custom-radio, #form_config_portes .custom-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 0;
    font-size: 22px;
}

#form_config_portes .rgpd-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 8px;
    margin-left: 0;
    font-size: 22px;
}

#form_config_portes .radio-btn, #form_config_portes .checkbox-btn {
    background: #ebebeb;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    border-radius: 100%;
    
    box-sizing: border-box;

    flex-shrink: 0;
}

/* ne pas mettre de border radius sur les checkbox */
#form_config_portes .checkbox-btn {
    border-radius: 0;
}

#form_config_portes input[type=radio]:checked + label .radio-btn, #form_config_portes input[type=checkbox]:checked + label .checkbox-btn {
    background: #858585;
    border: 5px solid #EBEBEB;
}

#form_config_portes input[type=submit] {
    border-style: solid;
    text-align: center;
    color: #858585;
    border-color: #858585;
    border-width: 1px;
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    background-color: #ffffff;
    cursor: pointer;
    margin: auto;
}

#form_config_portes input[type=submit]:hover {
    background-color: #858585;
    color: #ffffff;
}

.information {
    color: #858585;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
}

.hidden {
    display: none!important;
}

/* CSS Responsive */
/* @media only screen and (min-width: 48em) {
    .demi-colonne {
        width: 50%;
    }
} */

@media only screen and (max-width: 420px) {
    #form_config_portes .rang-form {
        flex-direction: column;
    }
}

/* LOADER */
.loader-background {
    background-color: rgba(0, 0, 0, 0.25);
    
    position: fixed;
    top: 0;
    left: 0;
    
    height: 100vh;
    width: 100vw;

    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #FFF #FFF transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
  }
  .loader::after,
  .loader::before {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent #777777 #777777;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
  }
  .loader::before {
    width: 32px;
    height: 32px;
    border-color: #FFF #FFF transparent transparent;
    animation: rotation 1.5s linear infinite;
  }
      
  @keyframes rotation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  } 
  @keyframes rotationBack {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(-360deg);
    }
  }


#form_config_portes .title {
    font-family: Lato, sans-serif;
    font-size: 35px;
    font-weight: 300;
    margin: 0 0 20px 0;
    text-align: center;
    color: #fff;
}

#form_config_portes .subtitle {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: #fff;
}

form {
    margin-block-end: unset;
    background-size: cover;
    background-repeat: round;
}

.champs_obligatoires {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.5;
    color: #FFF;
    margin: 15px 0 10px 0;
}











  /* STYLE AMCC */
  #form_config_portes input[type=text], #form_config_portes input[type=email], #form_config_portes input[type=tel], #form_config_portes input[type=number], #form_config_portes select, #form_config_portes textarea {
    background-color: #fff;
    margin: 5px 0 10px 0;
    font-size: 18px;
    padding: 5px;
    box-sizing: border-box;
    text-indent: 5px;
    border: 1px solid;
    border-color: #7A7F8B4D;
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    width: 100%;
    color: #284548;
}

#form_config_portes input[type=text]:focus-visible,
#form_config_portes input[type=email]:focus-visible,
#form_config_portes input[type=tel]:focus-visible,
#form_config_portes input[type=number]:focus-visible,
#form_config_portes select:focus-visible,
#form_config_portes textarea:focus-visible,
a:focus-visible,
#form_config_portes input[type=submit]:focus-visible {
    outline: none;
    border: 1px solid #189D95;
}

#form_config_portes label {
    float: left;
    margin-left: 0px;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    display: inline-block;
    /* margin-bottom: .5rem; */
    margin-bottom: 20px;
}

fieldset legend {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-size: 22px;
    /* color: #000; */
    float: left;
    /* margin-left: calc(20px + 0.85rem); */
    /* margin-left: 0.85rem; */
    margin: 40px 10px;
    padding: 0;
}

#form_config_portes .radio-btn, #form_config_portes .checkbox-btn {
    background: #ebebeb;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    border-radius: 100%;
    
    box-sizing: border-box;

    /* border: 1px solid #189D95; */
    outline: 1px solid #189D95;

    flex-shrink: 0;

    background-color: transparent;
}

/* ne pas mettre de border radius sur les checkbox */
#form_config_portes .checkbox-btn {
    border-radius: 2px;
}
#form_config_portes input[type=radio] + label .radio-btn, #form_config_portes input[type=checkbox] + label .checkbox-btn {
    background: #c;
    /* border: 4px solid #EBEBEB; */
    outline: 2px solid #fff;
    width: 20px;
    height: 20px;

    /* font-family: "Lato", sans-serif;
    font-size: 16px!important; */
}
#form_config_portes input[type=radio]:checked + label .radio-btn, #form_config_portes input[type=checkbox]:checked + label .checkbox-btn {
    background: #fff;
    border: 4px solid #189D95;
    outline: 2px solid #fff;
}

#form_config_portes .rgpd-checkbox {
    font-size: 16px;
    margin-left: 32px;
}

.checkbox-centered {
    gap: 8px;
}

.information {
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 0 10px;
}

.information a {
    text-decoration-color: #fff;
    color: #fff;
}

#form_config_portes input[type=submit] {
    border-style: solid;
    text-align: center;
    color: #fff;
    border-color: #fff;
    border-width: 1px;
    padding: 12px 24px;
    width: 100%;
    text-decoration: none;
    display: block;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    background-color: transparent;
    font-weight: 700;
    cursor: pointer;
    margin: auto;
    border-radius: 2px;

    margin-top:15px;
}

#form_config_portes input[type=submit]:hover {
    background-color: #fff;
    color: #189D95;
}

#form_config_portes .demi-colonne {
    float: left;
    position: relative;
    /* padding: 0.65rem; */
    padding: 0.85rem 10px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 200;
}

#form_config_portes .custom-radio, #form_config_portes .custom-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 0;
    font-size: 16px;
}

input::placeholder {
    font-weight: 400;
    color:#284548;
}

#submit_form {
    margin-bottom: 20px!important;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23189D95'><path d='M7 10l5 5 5-5z'/></svg>");
  
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 20px;
    padding-right: 40px;
}

.rang-form .checkbox-centered {
    margin-bottom: 10px;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
  border-color: red!important;
}
