@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Shrikhand&display=swap');

:root{
    --dark: #252525;
    --orange: #FF7800;
    --mustard: #ffae00;
    --black: #000;
    --white: #fff;
    --Shrikhand: "Shrikhand";
    --roboto: "Roboto";
}

*{
    margin: 0px;
    box-sizing: border-box;
    font-family: var(--roboto);
    font-size: 15px;
}

a{
    text-decoration: none;
    color: var(--dark);

    &:hover{
        color: var(--mustard);
        transition: all 0.2s ease;
    }
}

.flex{
    display: flex;
}

.Shrikhand{
    font-family: var(--Shrikhand);
}

.logo{
    font-size: 30px;
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
      transform: translate(-50%, -50%);

}

header{
    align-items: center;
    justify-content: right;
    position: relative;
    height: 75px;
}

header .logo:hover{
    color: var(--black);
}

 ul, li {
    list-style: none;
    padding: 0;
}

nav{
    display: none;
    margin-right: 100px;
}

header i{
    margin-right: 20px;
}

footer {
    background-color: var(--dark);
    height: 200px;
    justify-content: center; 
    flex-direction: column;
    
}

footer .logo{
    position: static;
}

footer a{
    color: var(--white);
    font-weight: 300;
}

footer ul{
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

footer div{
    margin-left: 10px;
}

h1{
    font-weight: 700;
    font-size: 24px;
}

#hero form{
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#locationInput{
    max-width: 500px;
    width: 90vw;
    padding: 10px;
    background-color: #ffae00;
    box-shadow: 0px 4px 15px 0px #00000026;
    border-radius: 30px;
    border: none;
    font-family: "Inter";
    font-size: 17px;
    outline: none;
    &::placeholder{
        color: #000;
    }
}

.CTA{
    padding: 10px 20px;
    width: fit-content;
    border-radius: 30px;
    border: none;
    background-image: linear-gradient(var(--orange) ,var(--mustard));
    box-shadow: 0px 4px 4px 0px #00000040;  
    cursor: pointer;

}

#hero{
    background-color: var(--mustard);
    height: 250px;
    align-items: center;
    justify-content: center;
}

#hero>div{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

#indications{
    height: 350px;
    padding: 20px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
    margin: auto
}

h2{
    font-family: var(--roboto);
    font-weight: 700;
    font-size: 24px;
    vertical-align: middle;
  
}

#indications div{
    flex-direction: column;
    align-items: center;
}

#indications article{
    padding: 10px;
    
}

#indications h3{
    padding: 20px;
    box-shadow: 0px 4px 15px 0px #00000026;
    max-width: 960px;
    width: 85vw;
    border-radius: 8px;
}

#indications span{
    align-items: center;
    position: relative;
}

#indications p {
    background-color: var(--orange);
    color: var(--white);
    padding: 8px;
    border-radius: 30px;
    position: absolute;
    z-index: 10;
    left: -10px;
    height: 25px;
    line-height: 10px;
}

#professionnals img{
    width: 90vw;
    max-width: 465px;
    border-radius: 20px 20px 0px 0px;
    height: 165px;
    object-fit: cover;
}

#professionnals{
    background-color: var(--mustard);
    padding: 40px 0px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

#professionnals h3{
    font-size: 18px;
}

#professionnals article div p{
    color: var(--dark);
}

#professionnals>div{
    flex-wrap: wrap;
    max-width: 970px;
    margin: auto;
}

#professionnals>div>div{
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
}

#professionnals article {
    background-color: var(--white);
    border-radius: 20px;
    width: 90vw;
    max-width: 465px;
    position: relative;
}

#professionnals article div{
    border-bottom: 1px solid var(--orange);
    padding-bottom: 10px;
}

#professionnals article div, #professionnals article form{
    margin: 10px ;
}

#professionnals form{
    justify-content: space-between;
    position: relative;
}

#professionnals a:hover {
    color: var(--black);
}

#professionnals h2{
    padding-bottom: 30px;
    padding-left: 15px;
}

#professionnals .CTA{
    margin: 30px 0px;
}

.professionnal::before{
    content: "New !";
    z-index: 1;
    position: absolute;
    left: -10px;
    top: 14px;
    background-color: var(--orange);
    font-family: var(--Shrikhand);
    color: var(--white);
    padding: 6px 13px;
    rotate: -45deg;
}

input[type="checkbox"]{
    opacity: 0  ;
    cursor: pointer;
}

input[type="checkbox"] ~ .imgThumbCheck1,
input[type="checkbox"] ~ .imgThumbCheck2,
input[type="checkbox"] ~ .imgThumbCheck3,
input[type="checkbox"] ~ .imgThumbCheck4{
    display: none;
}

input[type="checkbox"]:checked ~ .imgThumbUncheck1,
input[type="checkbox"]:checked ~ .imgThumbUncheck2,
input[type="checkbox"]:checked ~ .imgThumbUncheck3,
input[type="checkbox"]:checked ~ .imgThumbUncheck4 {
    display: none;
}

input[type="checkbox"]:checked ~ .imgThumbCheck1,input[type="checkbox"]:checked ~ .imgThumbCheck2,input[type="checkbox"]:checked ~ .imgThumbCheck3,input[type="checkbox"]:checked ~ .imgThumbCheck4 {
    display: inline;
}

#professionnals  .imgThumbCheck1,#professionnals  .imgThumbUncheck1,
#professionnals  .imgThumbCheck2,#professionnals  .imgThumbUncheck2,
#professionnals  .imgThumbCheck3,#professionnals  .imgThumbUncheck3,
#professionnals  .imgThumbCheck4,#professionnals  .imgThumbUncheck4{
    height: 20px;
    width: 20px;
    position: absolute;
    right: 0px;
    z-index: 1;
}

@media screen  and (min-width: 1024px){
    header .fa-sharp, header .fa-solid, header .fa-bars{
        display:none;

    }

    header nav {
        display: flex;
    }

    nav ul{
        gap: 40px;
    }
     nav ul li {
        color: var(--dark);

     }

     footer {
        justify-content: center;
        flex-direction: row;
        align-items: center;
     }
     footer ul{
        flex-direction: row;
        gap: 40px;
        align-items: center;
        padding: 0;
     }

     footer div{
        flex-direction: row;
        display: flex;
        gap: 40px;
     }

     footer .logo{
        transform: none;
     }
}


.container-loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--mustard);
    z-index: 9999;
    animation: m2 0s forwards 2.5s;
    
    .loader {
        width: 200px;
        aspect-ratio: 1;
        border-radius: 50%;
        border: 20px solid var(--white);
        border-right-color: var(--orange);
        animation: l2 1s linear  infinite forwards;
    }
}
@keyframes l2 {to{transform: rotate(1turn);}}
@keyframes m2 {to{opacity: 0;visibility: hidden;}}