
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* variable */

body{
    background-color: var(--bg-color);
    color: var(--text-color);
}
:root {
    --container-color: #700018;
    --second-color: #eb5e55;
    --third-color : #fdf0d5;
    --text-color: #172317;
    --bg-color: #fff;
  }
  ::selection{
      color: var(--bg-color);
      background: var(--second-color);
  }
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: var(--container-color);
}

.contenu{
    display: grid;
}

.matiere-filter{
    position: fixed;
    width: 200px;
    height: 100%;
    background: var(--second-color);
    margin-top: 82px;

}
.filter-item{
    display: block;
    padding: 9px;
    border-bottom: 1px solid rgb(0, 0, 0,0.05);
    border-top: 1px solid rgb(225, 225, 225,0.05);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.filter-item:hover{
    background: rgb(3, 19, 24);
    color: var(--bg-color);
}    

.logo{
    font-size: 30px;
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 1000;
    margin-left: 0%;
    cursor: default;
}

.navbar a{
    display: inline-block;
    font-size: 20px;
    color: var(--bg-color);
    text-decoration: none; 
    font-weight: 500;
    margin-left: 60px;

}

.navbar a:hover{
    color: #0ef;
}

.home{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 5% 0;
    /*background: url(img/bac.jpeg) no-repeat 50% 50%;
    background-size: cover;*/
}

.home-content{
    max-width: 700px;
}

.home-content h3{
    font-size: 20px;
    font-weight: 700;
}

.home-content h3:nth-of-type(2){
    margin-bottom: 30px;
}
.home-content h1{
    font-size: 40px;
    font-weight: 700;
}

.home-content p{
    font-size: 16px;
}

.home-img{
    width: 350px;
    height: 350px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage
    3s ease-in-out infinite;
    animation-delay: 1.1s, 3.1s;
}

.home-content h3 span{
    color: var(--second-color);
}

.home-img .glowing-cercle{
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .glowing-cercle::after{
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--bg-color);
    border-radius: 50%;
}

.glowing-cercle span{
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--container-color);
    border-radius: 50%;
}

.glowing-cercle span:nth-child(1){
    filter: blur(10px);
}

.glowing-cercle .image{
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}
.image img{
    position: absolute;
    top: 60px;
    left: 5%;
    width: 300px;
    object-fit: cover;
}
.home-img h3{
    color: var(--second-color);
    padding: 20px 10px;
    font-size: 15px;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--container-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--container-color);
    text-decoration: none;
    margin: 30px 15px 30px 0;
}
.social-media-cours a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 2px solid var(--container-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
    margin: 8px 7px 0px 10px;
}

.social-media a:hover{
    background: var(--second-color);
    color: #1f242d;
    box-shadow: 0 0 20px var(--second-color);
}
.social-media-cours a:hover{
    background: #0ef;
    color: #1f242d;
    box-shadow: 0 0 20px #0ef;
}

.btn{
    display: inline-block;
    padding: 12px 28px;
    background: var(--second-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--second-color);
    font-size: 18px;
    color: var(--bg-color);
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
}

@keyframes zoomIn{
    0%{
        opacity: 0;
        transform: scale(0);
    }

    100%{
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-24px);
    }
    100%{
        transform: translateY(0);
    }
}

.cours{
    margin: 95px 5px 10px 205px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    justify-content: center;
    gap: 1.5rem;
}
.box_matiere{
    background: var(--third-color);
    box-shadow: 0 4px 14px hsl(355deg 25% 15% /10%);
    padding: 15px;
    border-radius: 0.5rem;
    display: inline-block;
    text-align: center;
}
.box-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}
.box-title{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; 
    text-decoration: none; 
    text-transform: uppercase;
    padding-top: 20px;
}
.box-title:hover{
    border-bottom: 2px solid #0ef;
    color: #0ef;
    font-size: 1.1rem;
}

.active-filter{
    background: var(--second-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
}



/* responsive */

@media screen and (max-width: 1164px){
    .home-content {
        max-width: 450px;
    } 
    .filter-item{
        padding: 6px;
    }  
}

@media screen and (max-width: 964px){
    .navbar a{
        font-size: 14px;  
        font-weight: 500;
    }
}
@media screen and (max-width: 876px){
    .home-img{
        width: 250px;
        height: 250px;
    }
    .home-img .glowing-cercle::after{
        width: 220px;
        height: 220px;
    }
    .glowing-cercle .image{
        width: 220px;
        height: 220px;
    }
    .image img{
        top: 40px;
        left: 2%;
        width: 200px;
    }
    .home-img h3{
        font-size: 12px;
    }
    .home{
        padding: 50px 1% 0;
    }
    
    .btn{
        font-size: 12px;
        font-weight: 300;
    }
    .navbar a{
        font-size: 14px;
    }
    .home-content h3{
        font-size: 13px;
    }
    
    .home-content h1{
        font-size: 30px;
    }
    
    .home-content p{
        font-size: 12px;
    }
    
}

@media screen and (max-width: 780px){
    .navbar a{
        font-size: 13px;  
        font-weight: 500;
    }   
}
@media screen and (max-width: 749px){
    .navbar a{
        font-size: 11px; 
        font-weight: 500; 
    }   
}

@media screen and (max-width: 696px){
    .navbar a{
        font-size: 11px;  
        font-weight: 500;
        margin-left: 28px;
    }
  
    .home-img{
        width: 150px;
        height: 150px;
    }
    .home-img .glowing-cercle::after{
        width: 120px;
        height: 120px;
    }
    .glowing-cercle .image{
        width: 120px;
        height: 120px;
    }
    .image img{
        top: 20px;
        left: 6%;
        width: 100px;
    }
    .home-img h3{
        font-size: 7px;
    }
    .home{
        padding: 50px 1% 0;
    }
    
    .btn{
        font-size: 10px;
        font-weight: 300;
    }
    
    .home-content h3{
        font-size: 11px;
    }
    
    .home-content h1{
        font-size: 20px;
    }
    
    .home-content p{
        font-size: 10px;
    }
 

}


@media screen and (max-width: 568px){
    .header {
        padding: 20px 2%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    .home-content {
        max-width: 340px;
    }

    .matiere-filter {
        width: 150px;
    }
    .filter-item {
        padding: 9px;
    }
    span.filter-item {
        font-size: 0.7rem;
    }
    .cours {
        margin: 95px 1px 10px 155px;
        gap: 1.5rem;
    }
    .navbar a{
        font-size: 11px;
        font-weight: 500;
        margin-left: 10px;
    
    }
}



/* PROMOTIONS HEA */


section{
    width: 100%;
    min-height: 300px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
section h1{
    font-size: 50px;
    font-weight: normal;
    text-align: center;
}

.sec{
    margin: 10px 10%;
}

.sec::after, .exp::after, reco::after{
    content: '';
    display: table;
    clear: both;
}

.orange{
    border-top: 5px solid #e47d26;
    background-color: rgba(228 , 77, 128, 0.15);
    margin-bottom: 0px;
}

.rose{
    border-top: 5px solid #e47d96;
    background-color: rgba(228 , 77, 128, 0.15);
    margin-bottom: 0px;
}

.vert{
    border-top: 5px solid #5f6;
    background-color: rgba(70, 248, 80, 0.15);
    margin-top: 88px;
}

.bleu{
    border-top: 5px solid #29c;
    background-color: rgba(30, 152, 212, 0.15);
}

.jaune{
    border-top: 5px solid #f3e241;
    background-color: rgba(240, 255, 69, 0.15);
}

.rouge{
    border-top: 5px solid #e44;
    background-color: rgba(228, 77, 38, 0.15);
}

.rightexp{
    margin-left: 5%;
    margin-right: 5%;
}
.leftexp img{
    width: 100%;
    height: 100%;
}

.alumni{
    margin-top: 100px;
    text-align: center;
}
.box_matiere_alumni{
    margin: 1%;
    background: burlywood;
    box-shadow: 0 4px 14px hsl(355deg 25% 15% /10%);
    padding: 15px;
    border-radius: 0.5rem;
    display: inline-block;
    text-align: center;
}
.box-img_alumni{
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}