@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root{
    --color-primary: #3D8EAE;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    box-sizing: border-box;
    font-family: 'Source Sans 3', sans-serif;
}

nav{
    min-height: 10vh;
}

.container{
    max-width: 1430px;
    margin: auto;
}

nav .logo{
    width: 20%;
}

nav img{
    width: 130px;
}

section.carousel{
    height: 400px;
    background-image: linear-gradient(160deg, #011b37b5 52%, #3d8eaeb5 100%),
    url('../_imgs/home.webp');
    background-position: 50% 30%;
    background-repeat: no-repeat;
    background-size: cover;
}

section.carouselSujet{
    height: 300px;
    background-image: linear-gradient(160deg, #011b37b5 52%, #3d8eaeb5 100%),
    url('../_imgs/entreprise.webp');
    background-position: 50% 30%;
    background-repeat: no-repeat;
    background-size: cover;
}

section .content{
    max-width: 1430px;
    margin: auto;
    z-index: 10;
    color: white;
    gap: 20px;
    width: 100%;
}

section.carousel .content h1{
    text-transform: uppercase;
    font-size: 60px;
}

section.carouselSujet .content h1{
    text-transform: uppercase;
    font-size: 40px;
}

section .content .separate{
    width: 150px;
    height: 10px;
    background-color: #3D8EAE;
}

section .content div{
    gap: 20px;
}

.welcome{
    height: 600px;
}

.welcome h2{
    line-height: 80px;
}

.welcome h2 span{
    font-size: 35px;
}

.login .form{
    background-position: 80% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 400px;
    height: 500px;
    padding: 40px;
    text-align: center;
    color: white;
    border-radius: 30px;
    margin: 40px 0;
}

.login .form.particulier{
    background-image: linear-gradient(160deg, #011b37b5 52%, #3d8eaeb5 100%), url(../_imgs/particulier.webp);
}

.login .form.entreprise{
    background-image: linear-gradient(160deg, #011b37b5 52%, #3d8eaeb5 100%), url(../_imgs/entreprise.webp);
}

.login .form form{
    padding: 20px;
    gap: 20px;
}

.login .form input{
    padding: 20px;
}

.login .form input[type = mail], .login .form input[type = text], .login .form input[type = submit]{
    outline: none;
    border-radius: 15px;
    height: 30px;
    line-height: 0;
    border: 1px solid #3D8EAE;
}

.login .form input::placeholder{
    color: #3D8EAE;
}

.login .form input[type = submit]{
    background-color: #3D8EAE;
    border: 1px solid white;
    color: white;
    font-weight: bold;
}

.questionnaire .reponses{
    background-color: #C2D6DF;
    border-radius: 30px;
    padding: 20px;
    margin: 40px auto;
}

.questionnaire .reponse{
    background-color: white;
    border-radius: 15px;
    padding: 20px 20px;
    margin: 20px auto 40px;
}

.questionnaire .reponse:last-child{
    margin-bottom: 0;
}

.questionnaire .reponse textarea{
    overflow: hidden;
    padding: 10px;
    width: 600px;
    height: 200px;
    font-size: 14px;
    display: block;
    border-radius: 10px;
    border: 2px solid #3D8EAE;
    resize: none;
    outline: none;
}

.questionnaire .reponse label{
    margin-right:30px;
}

.questionnaire .reponse input{
    margin-right: 15px;
}

.questionnaire .reponse form div{
    margin-bottom: 20px;
}

.questionnaire .reponse input[type=submit]{
    padding: 10px 20px;
    background-color: #3D8EAE;
    border-radius: 20px;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    transition: 0.2s all;    
}

.questionnaire .reponse input[type=submit]:hover{
    background-color: #185e7a;
}

.questionnaire .question{
    background-color: #3D8EAE;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    margin: 20px 0;
}

.questionnaire .qn{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: white;
    color: #3D8EAE;
    font-weight: bold;
    text-align: center;
    margin-right: 20px;
}

.orientationForm .orientation{
    display: flex;
    flex-direction: row;
}

footer{
    background-color: #011B37;
    padding: 50px;
    color: white;
}

footer .container>div{
    width: calc(100% / 3);
}

footer .logo img{
    width: 250px;
}

footer .container>div:nth-child(2){
    padding: 20px
}

footer .container .address{
    gap: 10px;
}

footer .container .socials{
    gap: 10px;
}

footer .container>div:nth-child(2) i{
    margin-right: 10px;
}

footer .padding{
    padding-left: 22px;
}

footer a{
    text-decoration: none;
    color: white;
}

footer a i{
    font-size: 30px;
}

/*---------------------------------------*/

input[type="checkbox"],
input[type="radio"]{
    appearance: none;
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border-radius: 4px;
    background: #fff;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    border: 1px solid #3a3a3a;
    z-index: 2;
    transition: all .2s ease-in-out 0s;
}

/*input[type="checkbox"]:hover,
input[type="radio"]:hover{
    border: 1px solid var(--color-primary);
}*/

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before{
    content: '✔';
    height: 20px;
    width: 20px;
    position: absolute;
    border: 1px solid transparent;
    font-size: 15px;
    text-align: center;
    border-radius: 4px;
    background: var(--color-primary);
}
input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after{
    background: var(--color-primary);
    display: block;
    border: none;
    content: '';
    position: absolute;
    z-index: 100;
    animation: click-wave-anim .75s;
}

@keyframes click-wave-anim {
    0%{
        height: 20px;
        width: 20px;
        opacity: .35;
    }
    100%{
        height: 50px;
        width: 50px;
        opacity: 0;
    }
}

input[type="radio"].radio{
    border-radius: 50%;
}
input[type="radio"].radio::after{
    border-radius: 50%;
}
input[type="radio"]:checked.radio::before{
    border-radius: 50%;
}

@media only screen and (max-device-width: 768px){

    .container{
        padding: 5px;
    }

    .carouselSujet{
        padding: 10px;
    }

    section.carousel .content h1{
        font-size: 40px;
    }

    .welcome{
        height: 400px;
    }

    .welcome h2{
        line-height: 50px;
    }

    footer .container.flexRow{
        flex-direction: column;
    }

    footer .container>div{
        width: 100%;
    }

    footer .container .address{
        gap: 20px;
    }

    footer .container .socials{
        justify-content: center;
    }

    .orientationForm{
        display: flex;
        flex-direction: column;
    }

    .orientationForm .orientation{
        display: flex;
        flex-direction: row;
    }

    .orientationForm .flexRow{
        flex-direction: column;
    }

    .questionnaire .reponse textarea{
        width: 100%;
    }
}
