/* Importation des polices de charactères */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

body {
    margin: 0;
    height: fit-content;
    overflow: hidden;
}

/* 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 input[type=number], #form_config_portes select, #form_config_portes textarea {
    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 input[type=number], #form_config_portes select {
    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, #form_config_portes .rgpd-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#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;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #858585;
    margin: 1em 0;
    padding: 0;
}

fieldset {  
    margin-inline: 0;
    padding-block: 0;
    padding-inline: 0;
    border: none;
}

fieldset legend {
    font-family: "Oswald", sans-serif;
    font-weight: 200;
    font-size: 40px;
    /* color: #000; */
    float: left;
    /* margin-left: calc(20px + 0.85rem); */
    margin-left: 0.85rem;
    padding: 0;
}

.hidden {
    display: none !important;
}  

/* CSS Responsive */
/* @media only screen and (min-width: 48em) {
    .demi-colonne {
        width: 50%;
    }
} */

@media only screen and (max-width: 650px) {
    #form_config_portes .rang-form {
        flex-direction: column;
    }
    .checkbox-centered {
        gap: 0;
        margin-left: 64px;
    }
}

/* 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);
    }
  }