@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');



*{
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root{
    --color-primary: #6c63ff;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black: #000;
    --color-bg: #1f2641;
    --color-bg1: #2e3267;
    --color-bg2: #424890;
    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;
    --transition: all 400ms ease;
}

body{
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
    width: 100%;
}

.container{
    width: var(--container-width-lg);
    margin: 0 auto;
}

section{
    padding: 6rem 0;
}

section h2{
    text-align: center;
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5{
    line-height: 1.2;
}

h1{
    font-size: 2.4rem;
}

h2{
    font-size: 2rem;
}

h3{
    font-size: 1.6rem;
}

h4{
    font-size: 1.3rem;
}

a{
    color: var(--color-white);
}

img{
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn{
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover{
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary{
    background: var(--color-danger);
    color: var(--color-white);
}


/* ================================================== NAVBAR ================================================ */

.icons {
    font-size: 20px;
    color: #ffd966;
}

a {
    color: #000;
}

.navbar {
    font-weight: 600;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    height: 65px;
    width: 100%;
    background-color: white;
    /*display: flex;*/
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
}

.nav-item {
    text-align: center;
    font-size: 8px;
    color: #666;
    border-left: 1px solid #eee;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-item.add {
    background-color: #ffd966;
    width: 90%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    border-right: 1px solid #eee;
    color: #000;
    /*margin-bottom: 50px;*/
}

.nav-item.plus {
    background-color: #ffd966;
    width: 80%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    /*border-right: 1px solid #eee;*/
    color: #000;
    margin-top: -18px;
    padding: 0 15px;
    /*border-left: 1px solid #eee;*/
    margin-left: 10%;
}

.bloc {
    border-right: 1px solid #eee;
}

.navbar_plus {
    position: fixed;
    height: 65px;
    background-color: white;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    border-bottom: 1px solid #eee;
    border-radius: 10px;
    z-index: 1000000;
}

@keyframes animateNavItems {
    0%{
        transform: rotateZ(90deg) rotateX(90deg) scale(1.5);
    }
    100%{
        transform: rotateZ(0) rotateX(0) scale(1);
        opacity: 1;
    }
}

.fin-item {
    text-align: center;
    font-size: 8px;
    color: #666;
    border-left: 1px solid #eee;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: animateNavItems 400ms linear forwards;
    opacity: 0;
}

.fin-item:nth-last-child(3){
    animation-delay: 200ms;
}

.fin-item:nth-last-child(1){
    animation-delay: 200ms;
}


/* ================================================== HEADER ================================================ */

header{
    position: relative;
    top: 5rem;
    overflow: hidden;
    /*height: 70vh;*/
    margin-bottom: 5rem;
}

.header__container{
    display: block;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    /*gap: 5rem;*/
    /*height: 100%;*/
}


@keyframes slide-text {
    0% {
        color: blue;
    }
    50% {
        color: red;
    }
    100% {
        color: blue;
    }
}

.header__left h1 {
    font-size: 2em;
    font-weight: bold;
    color: blue;
    position: relative;
    animation: slide-text 3s ease-in-out infinite;
}

.header__left p{
    margin: 1rem 0 2.4rem;
}

/* ================================================== CATEGORIES =============================================== */
.categories{
    background: var(--color-bg1);
    /* height: 35rem; */
    height: 395rem;
}

.categories h1{
    line-height: 1;
    margin-bottom: 3rem;
}

.categories__container{
    display: grid;
    grid-template-columns: 40% 60%;
}

.categories__left{
    margin-right: 4rem;
}

.categories__left p{
    margin: 1rem 0 3rem;
}

.categories__right{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.category{
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.category:hover{
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.category:nth-child(2) .category__icon{
    background: var(--color-success);
}

.category:nth-child(3) .category__icon{
    background: var(--color-warning);
}

.category:nth-child(4) .category__icon{
    background: var(--color-success);
}

.category:nth-child(5) .category__icon{
    background: var(--color-danger);
}

.category__icon{
    background: var(--color-primary);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.category h5{
    margin: 2rem 0 1rem;
    color: var(--color-danger);
}

.category p{
    font-size: 0.85rem;
    display: flex;
}

.category .note{
    display: flex;
    padding: 0;
    margin: 10px 0 0 0;
}

.note h5{
    margin: 0 0 0 5px;
    color: var(--color-danger);
}

.note .bar{
    height: 15px;
    width: calc(100% - 35px);
    border: 2px solid black;
}

/* ======================================== POPULAR COURSES ================================================ */
.courses{
    margin-top: 10rem;
}

.courses__container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course{
    background-color: var(--color-bg1);
    text-align: center;
    border: 1px solid transparent;
}

.course:hover{
    background: transparent;
    border-color: var(--color-primary);
    transition: var(--transition);

}

.course__info{
    padding: 2rem;
}

.course__info p{
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
}

/* ======================================== FAQs ================================================ */
.faqs{
    background-color: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
}

.faqs__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faq{
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-primary);
    cursor: pointer;
}

.faq h4{
    font-size: 1rem;
    line-height: 2.2;
}

.faq__icon{
    align-self: flex-start;
    font-size: 1.2rem;
}

.faq p{
    margin-top: 0.8rem;
    display: none;
}

.faq.open p{
    display: block;
}

.faq .categories__modules{
    display: none;
}

.faq.open .categories__modules{
    display: block;
}


/* ============================================== Testimonials ============================================ */
.testimonials__container{
    overflow-x: hidden;
    position: relative;
    margin-bottom: 5rem;
}

.testimonial{
    padding-top: 2rem;
}

.avatar{
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 1rem solid var(--color-bg1);
}

.testimonial__info{
    text-align: center;
}

.testimonial__body{
    background: var(--color-primary);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
}

.testimonial__body::before{
    content: "";
    display: block;
    background: linear-gradient(135deg, transparent, var(--color-primary), var(--color-primary), var(--color-primary));
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: calc(50% - 1.5rem);
    top: -1.5rem;
    transform: rotate(45deg);
}

.footer{
    background: var(--color-bg1);
    padding-top: 5rem;
    font-size: 0.9rem;
}

.footer_container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.footer_container > div h4{
    margin-bottom: 1.2rem;
}

.footer_1 p{
    margin: 0 0 2rem;
}

.footer ul li{
    margin-bottom: 0.7rem;
}

.footer ul li a:hover{
    text-decoration: underline;
}

.footer_socials{
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.footer_copyright{
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--color-bg2);

}

.wrapper{
    width: 100%;
    max-width: 500px;
    height: 250px;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.left img, .right img{
    /*display: none;*/
    width: 5px;
    cursor: pointer;
    background: #1f2641;
    margin: 0;
    padding: 0;
    background: red;
}
.cardWrapper{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.cardWrapper .card{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: url('../images/1.png');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.7s ease-in-out;
}
.cardWrapper .card:nth-child(2){
    background: url('../images/2.png');
}
.cardWrapper .card:nth-child(3){
    background: url('../images/3.png');
}
.cardWrapper .card:nth-child(4){
    background: url('../images/4.png');
}
.cardWrapper .card:nth-child(5){
    background: url('../images/5.png');
}
.cardWrapper .card h2{
    display: none;
    font-size: 5em;
    color: #fff;
}

.cardWrapper .card.active{
    opacity: 1;
    pointer-events: all;
}



/* ============================================= MEDIA QUERIES (TABLETS) =================================== */
@media screen and (max-width: 1024px) {
    body{
        width: 100%;
    }

    .container{
        width: var(--container-width-md);
    }

    h1{
        font-size: 2.2rem;
    }

    h2{
        font-size: 1.7rem;
    }

    h3{
        font-size: 1.4rem;
    }

    h4{
        font-size: 1.2rem;
    }

    /* ============================== NAV BAR ====================================*/

    .icons {
        font-size: 15px;
        color: #ffd966;
    }
    
    .navbar {
        font-weight: 600;
        z-index: 1000000;
        border-radius: 10px 10px 0 0;
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        height: 65px;
        width: 100%;
        background-color: white;
        /*display: flex;*/
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0px;
    }

    .nav-item {
        text-align: center;
        font-size: 8px;
        color: #666;
        border-left: 1px solid #eee;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .nav-item.add {
        background-color: #ffd966;
        width: 90%;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        color: white;
        border-right: 1px solid #eee;
        color: #000;
        /*margin-bottom: 50px;*/
    }

    .nav-item.plus {
        background-color: #ffd966;
        width: 80%;
        height: 100%;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        /*border-right: 1px solid #eee;*/
        color: #000;
        margin-top: -18px;
        padding: 0 15px;
        /*border-left: 1px solid #eee;*/
        margin-left: 10%;
    }
    
    .clicked {
        color: white;
        background-color: #ffd966;
        border-radius: 5px;
    }

    .navbar_plus1 {
        position: fixed;
        height: 65px;
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 0px;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        z-index: 1000000;
    }
    
    .navbar_plus2, .navbar_plus3, .navbar_plus4, .navbar_plus5 {
        position: fixed;
        height: 65px;
        /*top: 65px;
        left: 18%;*/
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        z-index: 1000000;
        /*min-width: 100px;*/
    }
    
    .navbar_moins1 {
        position: fixed;
        height: 65px;
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0px;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        z-index: 1000000;
    }
    
    .navbar_moins2, .navbar_moins3, .navbar_moins4, .navbar_moins5 {
        position: fixed;
        height: 65px;
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        border-bottom: 5px solid #ffd966;
        border-radius: 10px;
        z-index: 1000000;
    }

    @keyframes animateNavItemsNew {
        0%{
            transform: rotateZ(90deg) rotateX(90deg) scale(1.5);
        }
        100%{
            transform: rotateZ(0) rotateX(0) scale(1);
            opacity: 1;
        }
    }

    .fin-item {
        text-align: center;
        font-size: 8px;
        color: #666;
        border-left: 1px solid #eee;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        justify-content: center;
        align-items: center;
        height: 100%;
        animation: animateNavItemsNew 400ms linear forwards;
        opacity: 0;
    }

    .fin-item:nth-last-child(3){
        animation-delay: 200ms;
    }

    .fin-item:nth-last-child(1){
        animation-delay: 200ms;
    }

    /* ============================== CATEGORIES ==============================*/
    .categories{
        height: auto;
    }

    .categories__container{
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .categories__left{
        margin-right: 0;
    }
    
    /* ============================== POPULAR COURSES ==============================*/

    .courses{
        margin-top: 0;
    }
    
    .courses__container{
        grid-template-columns: 1fr 1fr;
    }

    .course__info{
        padding: 1rem;
    }

    .course__info p{
        margin: 0.7rem 0 1.5rem;
        font-size: 0.9rem;
    }

    /* ============================== FAQs ==============================*/
    .faqs__container{
        grid-template-columns: 1fr;
    }
    
    .faq{
        padding: 1.5rem;
    }

    /* ============================== FOOTER ==============================*/

    .footer_container{
        grid-template-columns: 1fr 1fr;
    }
}
/* ============================================= MEDIA QUERIES (TABLETS) =================================== */

@media screen and (max-width: 600px) {

    .container{
        width: var(--container-width-sm);
    }

    /* ============================== NAV BAR ====================================*/
    .icons {
        font-size: 15px;
        color: #ffd966;
    }
    
    .navbar {
        font-weight: 600;
        z-index: 1000000;
        border-radius: 10px 10px 0 0;
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        height: 65px;
        width: 100%;
        background-color: white;
        /*display: flex;*/
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0px;
    }

    .nav-item {
        text-align: center;
        font-size: 8px;
        color: #666;
        border-left: 1px solid #eee;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .nav-item.add {
        background-color: #ffd966;
        width: 90%;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        color: white;
        border-right: 1px solid #eee;
        color: #000;
        /*margin-bottom: 50px;*/
    }

    .nav-item.plus {
        background-color: #ffd966;
        width: 80%;
        height: 100%;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        /*border-right: 1px solid #eee;*/
        color: #000;
        margin-top: -18px;
        padding: 0 15px;
        /*border-left: 1px solid #eee;*/
        margin-left: 10%;
    }
    
    .clicked {
        color: white;
        background-color: #ffd966;
        border-radius: 5px;
    }

    .navbar_plus1 {
        position: fixed;
        height: 65px;
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 0px;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        z-index: 1000000;
    }
    
    .navbar_plus2, .navbar_plus3, .navbar_plus4, .navbar_plus5 {
        position: fixed;
        height: 65px;
        /*top: 65px;
        left: 18%;*/
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        z-index: 1000000;
        /*min-width: 100px;*/
    }
    
    .navbar_moins1 {
        position: fixed;
        height: 65px;
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0px;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        z-index: 1000000;
    }
    
    .navbar_moins2, .navbar_moins3, .navbar_moins4, .navbar_moins5 {
        position: fixed;
        height: 65px;
        background-color: white;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        border-bottom: 5px solid #ffd966;
        border-radius: 10px;
        z-index: 1000000;
    }

    @keyframes animateNavItemsNew {
        0%{
            transform: rotateZ(90deg) rotateX(90deg) scale(1.5);
        }
        100%{
            transform: rotateZ(0) rotateX(0) scale(1);
            opacity: 1;
        }
    }

    .fin-item {
        text-align: center;
        font-size: 8px;
        color: #666;
        border-left: 1px solid #eee;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        justify-content: center;
        align-items: center;
        height: 100%;
        animation: animateNavItemsNew 400ms linear forwards;
        opacity: 0;
    }

    .fin-item:nth-last-child(3){
        animation-delay: 200ms;
    }

    .fin-item:nth-last-child(1){
        animation-delay: 200ms;
    }

    /* ============================== HEADER ====================================*/
    header{
        height: fit-content;
    }

    .header__container{
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 0;
    }

    .header__left{
        margin-bottom: 1.3rem;
    }

    /* ============================== CAREGORIES ====================================*/
    .categories__right{
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .category{
        padding: 1rem;
        border-radius: 1rem;
    }

    .category__icon{
        /* margin-top: 4px; */
        display: inline-block;
    }

    .faq .question__answer h4{
        font-size: 0.8rem;
    }
    
    .faq .question__answer p{
        font-size: 0.6rem;
        margin-top: -5px;
    }

    /* ============================== POPULAR COURSES ====================================*/

    .courses__container{
        grid-template-columns: 1fr;
    }

    .course__info{
        padding: 0.5rem;
    }

    .course__info p{
        margin: 0.6rem 0 10px;
        font-size: 0.7rem;
    }
    
    .course__image.active01{
        max-height: 500px;
        height: 300px;
        background: url('../images/01.jpeg');
        /*background: red;*/
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .course__image.active02{
        max-height: 500px;
        height: 300px;
        background: url('../images/02.jpeg');
        /*background: red;*/
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .course__image.active03{
        max-height: 500px;
        height: 300px;
        background: url('../images/05.jpeg');
        /*background: red;*/
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* ============================== TESTIMONIALS ====================================*/
    .testimonial__body{
        grid-template-columns: 1fr;
        font-size: 0.8rem;
    }
    
    .testimonial .img {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* ============================== FOOTER ====================================*/
    .footer_container{
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer_1 p{
        margin: 1rem auto;
    }

    .footer_socials{
        justify-content: center;
    }
}