@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root{
    --main-color:#DD2F6E;
    --color-dark:#1D3221;
    --text-grey:#8390A2;

}
* {
    padding:0;
    margin:0;
    box-sizing:border-box ;
    list-style-type: none;
    text-decoration: none;
    font-family: 'Poppins' sans-serif ;
}

#mintad{
	position:absolute;
	background-image:url('mintad.gif');
}


.sidebar{
    width:345px;
    position: fixed;
    left: 0;
    top: 0;
    height:100%;
    background: var(--main-color);
    z-index: 100;
    transition: width 500ms;
}

.sidebar-brand{
    height: 90px;
    padding: 1rem 0rem 1rem 2rem;
    color:#fff;

}

.sidebar-brand span{
    display:inline-block;
    padding-right:1rem;
    padding-left:2rem;

}

.sidebar-menu{
    margin-top:1rem;
	z-index:100;
}

.sidebar-menu a{
    display:block;
    padding-left: 1rem;
    color:#fff;
    font-size:1.2rem;
	z-index:100;
  /* in order to put texts menu a droite 
  + inverser ordre de titre et logo:  text-align: right;*/ 
}

.sidebar-menu a span:first-child{
    font-size: 1.3rem;
    padding-right: 1rem;
	z-index:100;

}

#nav-toggle:checked + .sidebar{/*lorsque tu clic sur le menu 3tiret==>affiche 70px from left*/
    width: 70px;
}



#nav-toggle:checked + .sidebar .sidebar-brand, /*espace entre icon et barre en mode phone(petit)*/
#nav-toggle:checked + .sidebar li {
    padding-left: 1rem;
    text-align: center;
}

#nav-toggle:checked + .sidebar li a{
    padding-left: 0rem;
}


/*lorsk tu click sur menu, only les icons resteront affichés*/
#nav-toggle:checked + .sidebar .sidebar-brand h2 span:last-child,
#nav-toggle:checked + .sidebar li a span:last-child{
    display: none;
}

#nav-toggle{
    display:none;
}
.sidebar-menu a.active{
    background:#fff ;
    padding-top: 1rem ;
    padding-bottom: 1rem;
    color:var(--main-color);
    border-radius:30px 0px 0px 30px;/*courbure du cadre du bouton*/
	z-index:100;
}

.sidebar-menu li{
    width: 100%;
    margin-bottom:1.7rem;/*interligne*/
    padding-left:2rem;/*marge de page*/ 
	z-index:100;
	
}


#nav-toggle:checked ~ .main-content{/*lorsque tu clic sur le menu 3tiret==>affiche 70px from left*/
    margin-left: 70px;
}


#nav-toggle:checked ~ .main-content header{
    width: calc(100%-70px);
    left: 70px;
}

.main-content{
    transition: margin-left 300ms;
    margin-left: 200px;
    margin-top: 100px;
    padding: 0rem 0.5rem;
    min-height: calc(100vh - 90px);
	background-image:  url('img/background100.jpg');
	background-repeat:no-repeat;
	background-position: center;
	background-size: cover;
	width:100%
}
.titreGlobal {
	opacity: 95%;
    top: 100px;
    height: 65px;
	left:30%;
	position: fixed;
}
.hero-image1 {
	background-image: url("mintad3.gif");
	opacity: 90%;
    top: 70px;
    height: 65px;
	left:-50px;
	width: 83px;
    background-repeat: repeat-x;
    position: absolute;
	animation: clouds 50s linear infinite;
}
@keyframes clouds{
	100%{
		transform: translateX(2000px);
	}
}

header{/*pas de .header==>c pa une class c une balise*/
    /*background: #fff;*/
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    /*box-shadow: 2px 2px 10px rgba(0,0,0,2) ;
    */position: fixed;
    left: 345px;
    width: calc(100% - 345px);
    top: 0;
    z-index: 100;
    transition: left 300ms;
}

header h2{
    color: #222;
}

header label span{
    font-size: 1.7rem;
    padding-right: 1rem ;
}



.search-wrapper{
    border: 1px solid #ccc;
    border-radius: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.search-wrapper input{
    height: 100%;
    padding: .5rem;
    border: none;
    outline: none;

}

.search-wrapper span{
    display: inline-block;
    padding: 0rem 1rem;
    font-size: 1.5rem;
}

.user-wrapper{
    display: flex;
    align-items: center;
}

.user-wrapper img{
    border-radius: 50%;
    margin-right: 1rem;
}


.user-wrapper small {
    display: inline-block;
    color: var(--text-grey);
}
/*
main {
     margin-top: 89px;
    padding: 2rem 1.5rem;
    background: #f1f5f9;
    min-height: calc(100vh - 90px);
   
}*/

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
    margin-top: 1rem;
}

.cards-single{
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
}

.cards-single div:first-child span{
    color: var(--text-grey);
}

.cards-single div:last-child span{
    font-size: 3rem;
    color: var(--main-color);
    /*taille ecriture single card*/
}

.cards-single:last-child{
    /* select the last card*/
    background: var(--main-color);
}

.cards-single:last-child div:first-child span{
    color: #fff;
}

.cards-single:last-child div:last-child span{
    color: #fff;
}

table{
    border-collapse: collapse;
    padding: 5rem;
}

.recent-grid{
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 65% auto;
    grid-gap: 2rem;
}

.card{
    background: #fff;
    border-radius: 5px;
}

.card-header,
.card-body{
    padding: 1rem;
}

.card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.card-header button{
    background: var(--main-color);
    border-radius: 10px;
    color:#fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
}

thead tr{
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

thead td{
    font-weight: 700;

}

td{
    padding: .5rem 1rem; /*interligne*/
    font-size: .9rem;
    color: #222;
   
}
tr td:last-child{
    display: flex;
    align-items: center;
}

td .status{
    display: inline-block;
    height:20px;
    width: 20px;
    border-radius: 50%;/* cercle*/
    margin-right: 1rem;

}

.status.purple{
    background-color: rebeccapurple;
}

.status.orange{
    background-color: orange;
}

.status.pink{
    background-color: pink;
}
.table-responsive{
    width: 100%;
    overflow-x: auto;
}

.customer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .7rem;;
}

.info{
    display:flex;
    align-items: center;

}

.info img{
    border-radius: 50%; /*mettre la photo dans un cercle*/
    margin-right: 1rem;
}

.info h4{
    font-size: .8rem;
    font-weight: 700;
    color: #222;
}

.info small{
    font-weight: 600;
    color: var(--text-grey);
}

.contact span{
    font-size: 1.2rem;
    display: inline-block;
    margin-left: .5rem;
    color: var(--main-color);
}

.contact{
    display:flex;

}

#nav-toggle{
    display: none;
}

@media only screen and (max-width:1200px){
    

    .main-content{/*lorsque tu clic sur le menu 3tiret==>affiche 70px from left*/
    margin-left: 70px;
    }


    .main-content header{
    width: calc(100%-70px);
    left: 70px;
	
    }

    
    .sidebar{/*lorsque tu clic sur le menu 3tiret==>affiche 70px from left*/
        width: 70px;
    }



    .sidebar .sidebar-brand, /*espace entre icon et barre en mode phone(petit)*/
    .sidebar li {
        padding-right: 1rem;
        text-align: center;
    }

     .sidebar li a{
         padding-right: 0rem;
    }


/*lorsk tu click sur menu, only les icons resteront affichés*/
     .sidebar .sidebar-brand h2 span:last-child,
    .sidebar li a span:last-child{
         display: none;
    }

}


@media only screen and (max-width: 960px){

    .dashboard-cards{
        grid-template-columns: repeat(3, 1fr);/*3 c le nombre de columne==>chak ligne fiha 3 cards max*/

    }
    .recent-grid{
        grid-template-columns: 60% 40%;
    }
}


@media only screen and (max-width: 768px){ 
    /*si la résolution de lecran diminue, les propieté des class css changent*/

    .dashboard-cards{
        grid-template-columns: repeat(2, 1fr);/*2 c le nombre de columne==>chak ligne fiha 3 cards max*/

    }
    .recent-grid{
        grid-template-columns: 100%;
    }
    
    .search-wrapper{
        display: none;
    }

    .sidebar{/* hide this element==> hide the sidebar menu */
        left: -100% !important;
    }

	
    header h2{
        display: flex;
        align-items: center;
    }
    header h2 label{ /* couleur de logo menu change*/
        display: inline-block;
        /*background: var(--main-color);*/
        margin-right: 0.5rem;
        padding-right: 0rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        color: #fff;
        align-items: center;
        justify-content: center !important;
    }

    header h2 span{/* centrer le logo 3 tiret menu dans le cercle*/

        text-align: center;
        padding-right: 0rem;
		/*background: var(--main-color);*/
        /*background: red; /*background du logo menu*/

    }
    .main-content{
		margin-top:19%;
        width: 100%;
		padding: 5rem 0.5rem;
        margin-left: 20%;
		background-image:  url('img/background100.jpg');
	background-repeat:no-repeat;
	background-position: center;
    }
	.alignleft {
	float: left;
	}
	.alignright {
		float: right;
		border-radius: 25px;
	}
	
	.titreGlobal {
	opacity: 95%;
    top: 100px;
    height: 65px;
	left:30%;
    position: fixed;
}
	
	.hero-image1 {
	background-image: url("mintad3.gif");
	opacity: 95%;
    top: 70px;
    height: 65px;
	left:-80px;
	width: 83px;
    background-repeat: repeat-x;
    position: absolute;
	animation: cloud 32s linear infinite;
}
@keyframes cloud{
	100%{
		transform: translateX(420px);
	}
}

    header h2{
        font-size: 1.1rem;
    }
    header{
        width: 100% !important;
        left: 0 !important;
    }

    /* si tu click sur menu*/
    #nav-toggle:checked + .sidebar{
        left: 0 !important;
        z-index: 100;
        width: 345px;
    }

        
    #nav-toggle:checked + .sidebar .sidebar-brand, /*espace entre icon et barre en mode phone(petit)*/
    #nav-toggle:checked + .sidebar li {
        padding-left: 2rem;
        text-align: center;
    }

    #nav-toggle:checked + .sidebar li a{
        padding-left: 1rem;
    }


    /*lorsk tu click sur menu, only les icons resteront affichés*/
    #nav-toggle:checked + .sidebar .sidebar-brand h2 span:last-child,
    #nav-toggle:checked + .sidebar li a span:last-child{
        display: inline;
    }

    
#nav-toggle:checked ~ .main-content{/*lorsque tu clic sur le menu 3tiret==>affiche 70px from left*/
    margin-left: 0rem !important;
}


}

@media only screen and (max-width: 560px){

    .dashboard-cards{
        grid-template-columns: 100%;
    }
}