@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}
h2{
    font-size: 1.2rem;
}
a{
    text-decoration: none;
}

#top_bar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    background-color:#16275e;
    /* background-color: #39f; */
    padding: 15px 20px
}

#top_bar .location_bar::before{
    content: ' \27A2';
    margin-right: 5px;
}

#top_bar .email_bar::before{
    content: ' \2706';
    margin-right: 5px;

}

/* ****************************  Start Header  */

header {
    position: sticky;
    left: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:#f8f9fa;
    width: 100%;
    box-shadow: 0px 2px 4px grey;
    z-index: 100;
    

}


header .logo{
    cursor: pointer;
    margin-left: 30px;


}


.nav_links{
    display: flex;
    margin-right: 50px;
    list-style: none;
    font-weight: 600;
    color:black;
    flex-wrap: wrap;
    
}

.nav_links li{
    margin: 0 20px;
}


.nav_links li a{
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    padding: 7px 10px;
}

.nav_links li a:hover{
    /* border-bottom: #4189c0 solid 3px; */
    /* background-color: #97999b8c; */
    border-radius: 3px;
    border: 1.8px solid #16275e;
    
    /* background-color: #16275e; */
    padding: 5px 8px;

}

.nav_btn{
    display: none;
    border: none;
    padding: 8px 16px;
    color: #eee;
    background-color: #16275e;
    margin: 10px auto;
    cursor: pointer;

}


/* **************************************  Start Home top Sction body */
.separator{
    height: 3vh;
}

.bar_title{
    background-color: #76B947;
    text-align: center;
    color: white;
    justify-content: center;
    padding: 3px 0;
    height: 25px;
    line-height: 18px;
    font-size: 1.2rem;
}

#home_top, #home_bottom {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    margin-top: 20px;
}

/* **************************  Start Welcome ****************** */

#home_top .welcome{
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
    align-items: center;
    padding: 50px;
    width: 100vw;

}


.bienvenue h2, .welcome h2{
    font-size: large;
    color: #3c90f7;
    font-size: 3rem;
    margin-bottom: 20px;
}

.welcome .welcome_text{
    font-size: 1.5rem;
    text-align: left;
    color: gray;
    width: 100%;
}

.welcome img{
    width: 80%;

}
.welcome_text .ronder_vous {
    display: inline-block;
    line-height: 1.5em;
    padding: 10px;
    margin: 20px 0;
}

.ronder_vous a{
    background:#fb4400;
    font-size: 1.1rem;
    color: white;
    padding: 15px;
    border-radius: 4px;
    transition: 0.3s  background-color;

}

.ronder_vous a:hover{
    background-color: #3073c5;

}



#home_top h1{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 3rem;
    padding: 20px;
    text-transform: capitalize;
    color: #39f;
    width: 100vw;
}

#home_top .first{
    display: inherit;
    position: relative;
    background-image: url("./img/img1.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 50vh;
    background-position: center;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.first h2{
    color: white;
    font-size: 5vh;
    font-weight: bold;
    text-transform: uppercase;
}
#home_top .first::after{
    content: "";
    background-color: #215881;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0.7;
    z-index: -1;
}

/* ******************************  Start Contact Infos  ******************** */ 
#home_top .Contactinfos{
display: grid;
grid-template-columns: 1fr;
gap: 10px;
align-items: center;
margin: 20px auto;
width: 100%;
background-color: #f8f9fa;

}
.Contactinfos span{
    color: #39f;
    font-weight: 400;
}

.Contactinfos div{
    background-color: #f8f9fa;
    padding: 30px 10px;
    cursor: pointer;
}
.Contactinfos div:hover{
    background-color: rgb(224, 224, 224);
    color: #16275e;
}




/* *********************************** Start Nos services */

.nos_services_title, .equipe_title{
    font-weight: bold;
    font-size: 3rem;
    color: #000;
    background-color: #f8f9fa;
    width: 100%;
    padding: 50px 0;
}

.nos_services_title span, .equipe_title span{
    color: #3c90f7;
}

#home_top .nos_service{
    display: grid;
    gap: 50px;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 50px 20px;
    background-color: #f8f9fa;

}

.nos_service .box{
    height: 100%;
}

.nos_service img{
    border-radius: 10px;
    width: 30vw;
    height: auto;
    opacity: 0.9;
    zoom: 0;
    transition: 0.3s opacity ;
}

#home_top .nos_service img:hover{
    opacity: 1;
}

#home_top .plus_btn{
    margin: 50px;    
}

#home_top .plus_btn a{
    background-color: #3c90f7;
    font-size: 1.1rem;
    color: white;
    padding: 15px;
    border-radius: 4px;
    transition: 0.3s  background-color;
}
#home_top .plus_btn a:hover{
    background-color:#2770ac ;
}



/* ############################################ Start Home Bottom  */

/* ************************ Start Bienvenue ***************** */

#home_bottom .bienvenue{
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.bienvenue img{
    width: 40%;
    height: auto;
}

.bienvenue .bivn_text{
    padding: 20px;
    font-size: 1.3rem;
    color: gray;
    text-align: left;
    margin-top: 30px;
}


.bienvenue span{
    font-weight: 500;
    font-size: 25px;
    color: rgb(32, 141, 32);
}


/* ***********************************  start Notre Equipe *************  */

#home_bottom .equipe{
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    width: 100%;
    color: white;
    background-color: #f8f9fa;

}

.equipe .doctor{
    background-color: #3c90f7;
    width: 50%;
    border-radius: 30%;
    padding-bottom: 10px;
    margin-top: 50px;

}

.equipe .doctor img{
    width: 100%;
    border-radius: 30%;
    transition: 0.3s ease width;
}

.equipe .doctor img:hover{
    width: 95%;
}
    




/* ************************     Start Boxes us */
#home_bottom .box{
    width: 95%;
    background-color: #EEE;
    border: red 2px solid;
    margin-top: 10px;
}


/* ############################################ Start FOOTER  ######################*/

footer{
        display: grid;
        justify-items: center;
        align-items: center;
        gap: 20px;
        grid-template-columns: repeat(3, 1fr);
        height: 60vh;
        width: 100vw ;
        background-color: #3c90f7;
        margin-top: 20px;
        color: #ffffff;
        padding: 10px;
        text-align: center;
        
    }

.footer_col a{
    color: #f8f9fa;
    opacity: 0.9;
}

footer .footer_col a:hover{
    opacity: 1;

}

footer img{
    width: 10%;
    height: auto;
}





@media (min-width: 900px) {
    #home_top .Contactinfos, #home_bottom .equipe{
        grid-template-columns: 1fr 1fr 1fr;

    }

    #home_top .nos_service{
        grid-template-columns: repeat(3, 1fr);

    }


    #home_bottom .bienvenue, #home_top .welcome{
        grid-template-columns: 1fr 1fr;

    }

}



@media screen and (max-width: 900px){
    
    header{
        display: flex;
        justify-content: center;
        flex-direction:column ;  
        align-items: center;
        position: relative;
    }
    .logo{
        margin-top: 10px;
    }

    .nav_links{
        background-color: #fff;
    }


    .nav_links li {
        display: flex;
        width: 100%;
        margin: 5px;
    }

    .nav_links li a{
        width: 100%;
        background-color: rgb(218, 218, 218);
        color: black;
        border-radius: 2px;

    }
    .nav_links li a:hover{
        background-color: #eef;
        color: #000;
    }

    #top_bar{
        display: flex;
        justify-content: space-around;
        align-items: center;
        color: white;
        font-size: 1.1em;
        background-color:#16275e;
        /* background-color: #39f; */
        padding: 15px 20px
    }


    .bienvenue .bivn_text{
        text-align: justify;
        margin: 5px;

    }

    .nav_btn{
        display: block;
        border: none;
        padding: 8px 16px;
        color: #eee;
        background-color: #16275e;
        margin: 10px auto;
    
    }

    .nav_links{
        display:none;
        margin: 20px auto;
        padding: 20px;
        list-style: none;
        color:black;
        text-align: center;
        transition: .51s display ease-in-out;
    
        
        }
        .nav_father.show_links .nav_links{
            display: flex;
        }

        footer img{
            width: 30%;
            height: auto;
        }

        .first h2{
            font-size: 3vh;
        }

}







/* ##############################  Scroll Top Button ############### */

#myBtn {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 15px;
    border: none;
    outline: none;
    background-color: #56a021;
    color: white;
    cursor: pointer;
    padding: 15px;
}
  
#myBtn:hover {
    background-color: #555;
  }