@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    --main-bg-color: #86BD24;
    --secondary-bg-color: #FAFAFA;
    --main-text-color: #313131;
    --secondary-text-color: #666666;
    --hover-bg-color: #E0E0E0;
    --separator-main-color: #E0E0E0;
}

/* *{
    border: 1px red solid;
} */

body{
    font-family: Inter, sans-serif;
    color : var(--main-text-color);
    font-size: 16px;
    line-height: 22px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background-color:var(--main-bg-color);
    word-break: break-word;
    overflow-wrap: break-word;
}

*:focus{
    outline: 3px solid var(--main-bg-color) !important;
    box-shadow: 0px 0px 30px rgba(134, 189, 36, 0.3) !important;
    /* padding: 10px; */
    /* transition: all 200ms ease-out; */
}

main{
    background-color: var(--secondary-bg-color);
}

h1{
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin: 0 auto 20px auto;
}

h2{
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}
h3{
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

h4{
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    width: 80%;
}

h5{
    color: #313131;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

a{
    color: var(--main-text-color);
    text-decoration: none;
}

a:hover, a:active, a:focus{
    color: var(--main-bg-color) !important;
}

img{
    vertical-align: initial;
}

.header-search input{
    width: 100%;
    border-radius: 200px;
    padding: 10px 20px 10px 50px;
}

.search-proposal_item{
    border-top: 1px rgba(0, 0, 0, 0.2) solid;
    padding: 25px 0;
}

.search-proposal_item:last-of-type{
    border-bottom: 1px rgba(0, 0, 0, 0.2) solid;
}

.search-proposal_item > *{
    margin: 0;
    padding: 5px 0;
}

.search-category{
    color: var(--secondary-text-color);
    font-size: 14px;
    font-weight: 400;
}


.my-account_user::before{
    content: url(./img/account-icon.svg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-account_logout::before{
    content: url(./img/log-out.svg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-account_logout::before:hover{
    content: url(./img/log-out.svg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fa-magnifying-glass{
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color);
}

.results-btn{
    text-align: center;
    font-weight: 600;
    line-height: 24px;
    padding: 10px 50px; 
    border-radius: 200px; 
    background-color: var(--main-bg-color);
    width: 100%;
}

.progress-container{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.progress-circle{
    position: relative;
    width: 50px;
    height: 50px;
    background: conic-gradient(var(--main-bg-color) 3.6deg, #E9E9E9 0deg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(110deg);
}

.progress-circle::before{
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    background-color: var(--secondary-bg-color);
}

.progress-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-value{
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    margin: 0;
}

.progress-base{
    color: var(--secondary-text-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
}

.my-account_name{
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
}

.my-account_id{
    color: #666666;
    font-size: 12px;
    font-weight: 500;
    line-height: 26px;
}

.user-icon{
    position: relative;
    background-color: var(--main-bg-color);
    width: 50px;
    height: 50px;
    border-radius: 50% 0 50% 50%;
}

.user-icon img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dropdown-menu{
    color: var(--main-text-color) !important;
    padding: 10px;
}

.dropdown-item{
    color: var(--main-text-color) !important;
    padding: 10px 40px 15px 20px;
}

#accordionFlushMobileMenu .accordion-button{
    padding: 0;
}

.accordion-item.nav-item{
    border: none;
}

#navbar .accordion-item.nav-item{
    padding-bottom: 0;
}

.navbar .accordion-body{
    padding: 0;
}

.navbar .accordion-body li{
    padding: 10px 20px;
}

.navbar .accordion-body li{
    border-top: 1px solid grey;
}

/* .navbar .accordion-body li:last-of-type{
    padding: 10px 20px 0 20px;
} */

.navbar .accordion-header{
    padding-bottom: 25px
}

.hero{
    width: 100%; 
    height: 100%;
    margin: 0 auto; 
    padding: 0 20px; 
    background-color: #B0DC4B;
}

.hero-container{
    padding: 60px 0;
}

.hero p{
    font-weight: 500;
    font-size: 18px;
}

.category-card{
    display: flex;
    background-color: white;
    /* max-width: 300px; */
    max-height: 116px;
    padding: 33px 30px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15); 
    border-radius: 8px; 
    gap: 30px;
    padding: 20px 30px;
}

.card-effect{
    border: 2px transparent solid;
}

.card-effect:hover, .card-effect:focus, .card-effect:active{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.50);
    border: 2px #878787 solid;
    transition: all 200ms ease-in-out;
    /* transform: scale(1.1); */
    /* z-index: 10; */
}

.afpa-form{
    width: 76px;
    height: 76px;
}

.category-card_title{
    flex-basis: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card_title p:first-of-type{
    color: black; 
    font-weight: 700; 
    line-height: 26px;
    margin-bottom: 0;
}

.category-card_title p:last-of-type{
    color: #666666; 
    font-size: 12px; 
    font-weight: 500; 
    line-height: 20px;
    margin-bottom: 0;
}

.instruction a{
    font-weight: 600;
    text-decoration: underline;
    line-height: 24px;
}

.teasing-card{
    position: relative;
    background-color: white;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15); 
    border-radius: 8px;
}

.tech-tag, .be-tag, .do-tag, .manage-tag{
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    padding: 5px;
    border-radius: 4px;
    /* justify-content: flex-start;
    align-items: center;
    gap: 10px;
    display: flex; */
}

.tech-tag{
    background-color: #D1EEDB;
}

.tech-tag:hover, .tech-tag:active, .tech-tag:focus{
    color: var(--main-text-color) !important;
    background-color: #8CD4A4;
}

.be-tag{
    background-color: #FFF8E5;
}

.be-tag:hover, .be-tag:active, .be-tag:focus{
    color: var(--main-text-color) !important;
    background-color: #FFE7A1;
}

.do-tag{
    background-color: #E6ECF8;
}

.do-tag:hover, .do-tag:active, .do-tag:focus{
    color: var(--main-text-color) !important;
    background-color: #AABEE3;
}

.manage-tag{
    background-color: #FAE6DB;
}

.manage-tag:hover, .manage-tag:active, .manage-tag:focus{
    color: var(--main-text-color) !important;
    background-color: #F5AD85;
}

.pop-tag, .new-tag{
    color: #666666;
    font-size: 12px;
    font-family: Inter;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
}

.more-btn{
    position: absolute;
    top: 30px;
    right: 40px;
}

.time-module{
    color: #666666;
    font-size: 14px;
    font-family: Inter;
    font-weight: 500;
    line-height: 22px;
}

.teasing-card_description{
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    /* Pour couper le texte s'il fait plus de 2 lignes, trouver le moyen de rajouter (...) sinon js avec nombre de caractères */
    --lh: 22px;
    line-height: var(--lh);
    --max-lines: 4;
    max-height: calc(var(--lh) * var(--max-lines));
    overflow: hidden;   
}

.savoir-plus-div{
    width: 100%;
}

.savoir-plus-btn{
    padding: 10px 30px;
    
    border-radius: 200px;
    border: 1px #313131 solid;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #313131;
    font-size: 14px;
    font-weight: 600;
}

.savoir-plus-btn:hover, .savoir-plus-btn:active, .savoir-plus-btn:focus{
    background: var(--main-bg-color);
    border: 1px solid var(--main-bg-color);
    color: var(--main-text-color) !important;
    transition: all 200ms ease-out;
}

.footer-tag a{
    font-size: 14px;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 200px;
    border: 1px #fff solid;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--main-text-color);
    font-size: 14px;
    font-weight: 600;
}

.footer-tag a:hover, .footer-tag a:active, .footer-tag a:focus{
    background-color: var(--hover-bg-color);
    border: 1px var(--hover-bg-color) solid;
    color: var(--main-text-color) !important;
    transition: all 200ms ease-out;
}

.footer-tag svg{
    margin-right: 10px;
    stroke: var(--main-text-color);
}

.footer-tag:active svg{
    fill: var(--main-bg-color);
    stroke: var(--main-bg-color);
}

.voir-plus-btn{
    text-align: center;
    font-weight: 600;
    line-height: 24px;
    padding: 10px 50px; 
    border-radius: 200px; 
    border: 1px #313131 solid;
}

.voir-plus-btn:hover, .voir-plus-btn:active, .voir-plus-btn:focus{
    background: var(--main-bg-color);
    border: 1px solid var(--main-bg-color);
    color: var(--main-text-color) !important;
    transition: all 200ms ease-out;
}

footer{
    background-color: var(--secondary-bg-color);
}

footer .container{
    border-top: 1px solid #E0E0E0;
}

footer li{
    list-style: none;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    line-height: 20px;
}

footer li{
    padding: 15px 0;
    margin: 0 auto;
    width: 100%;
}

footer li{
    border-bottom: 1px solid #E0E0E0;
}

footer li a{
    text-decoration: underline;
}

.copyright{
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    opacity: .5;
}

.search-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url(./img/icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.navbar-toggler-icon{
    background-image: url(./img/menu.svg);
    background-size: contain;
}

.navbar-toggler{
    border: none !important;
}

/* .dropdown-menu_mobile{
    border: none;
} */

.navbar-collapse{
    z-index: 3000;
}

.navbar-modal{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
}

.close-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url(./img/close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* CATALOGUE */

#category .teasing h3{
    border-bottom: 1px solid var(--separator-main-color);
    padding: 30px 0;
}

.pagination .page-item .page-link{
    background-color: transparent;
    border: none !important;
    color: var(--main-text-color);
}

.pagination .page-item .page-link:active, .pagination .page-item .page-link.active{
    font-weight: bold;
    background-color: transparent;
    color: var(--main-bg-color);
}

.filter-dropdown_menu{
    display: none;
}

.filter-dropdown_menu.show{
    display: block;
}

.filter-menu_results{
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 0;
}

.filter-menu_filter{
    font-weight: 600;
}

.filter-menu-dropdown .dropdown-toggle{
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.filter-column .accordion, .filter-column .accordion-item, .filter-column .accordion-button{
    background-color: transparent;
    border: none;
}


/* PRODUIT */

.product-hero_category{
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    line-height: 22px;
}

.product-hero_modules{
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.product-hero_button{
    background-color: var(--main-bg-color);
    border: 1px solid var(--main-bg-color);
    border-radius: 200px;
    color: #313131;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 10px 20px;
}

.product-trailer {
    border-radius: 8px;
    max-width: 542px;
    max-height: 309px;
    position: relative;
    padding: 0;
}

.product-trailer img{
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-trailer_overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.product-trailer_button{
    background-color: transparent;
    border: 1px solid white;
    border-radius: 200px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 10px 20px;
}

.product-teasing{
    background-color: #B0DC4B;
}

.product-content_menu{
    border-bottom: 1px solid #F7F7F7;
}

.product-content_menu .accordion-button{
    background-color: transparent;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    width: fit-content;
}

.product-content_menu .accordion-button::after{
    content: none;
}

.product-content_menu .accordion-button:not(.collapsed){
    color: #677F36;
    border-bottom: 3px solid #677F36;
    box-shadow: none !important;
}

.product-content_presentation, .product-content_objectif{
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.progress{
    border-radius: 0px;
}

.bg-success {
    --bs-bg-opacity: 1;
    background-color: rgba(176, 220, 75, var(--bs-bg-opacity)) !important;
}

.module-card{
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.module-content{
    padding: 20px 30px 30px 30px;
}

.module-content_header{
    color: #666666;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
}

.module-content_subtitle{
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
}

.module-content p{
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    /* Pour couper le texte s'il fait plus de 2 lignes, trouver le moyen de rajouter (...) sinon js avec nombre de caractères */
    --lh: 22px;
    line-height: var(--lh);
    --max-lines: 4;
    max-height: calc(var(--lh) * var(--max-lines));
    overflow: hidden;   
}

.product-content .accordion{
    padding: 0;
}

.product-content .accordion-body{
    padding: 30px 0px;
}

.product-content .accordion-item{
    border: none;
}

.key-word{
    background-color: #EFEFEF;
    color: #313131;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: var(--bs-breadcrumb-item-padding-x);
    color: var(--bs-breadcrumb-divider-color);
    content: var(--bs-breadcrumb-divider, url(./img/chevron-right-small.svg));
}


.dropdown-toggle{
    display: flex;
    justify-content: space-between;
    align-items: start;

}

.dropdown-toggle::after{
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: middle;
    content: url(./img/chevron-down-small.svg);
    border: none;
}

@media only screen and (min-width: 768px) {

    h4{
        width: 100%;
    }

    .hero{
        padding: 0 74px; 
    }

    .category-card{
        max-width: 300px;
    }

    .pop-tag, .new-tag{
        position: absolute;
        top: 30px;
        right: 40px;
    } 

    .teasing-card_description{
        color: #666666;
        font-size: 14px;
        font-weight: 400;
        line-height: 22px;
        /* Pour couper le texte s'il fait plus de 2 lignes, trouver le moyen de rajouter (...) sinon js avec nombre de caractères */
        --lh: 22px;
        line-height: var(--lh);
        --max-lines: 2;
        max-height: calc(var(--lh) * var(--max-lines));
        overflow: hidden;   
    }

    .savoir-plus-div{
        width: auto;
    }
}

@media only screen and (max-width: 991px){

    #navbar, #searchbar{
        left: 100%;
        width: 0;
        transition: all 250ms ease-out;
        height: fit-content;
        min-height: 100vh;
    }

    #navbar.show, #searchbar.show{
        transform: translateX(-100%);
        width: 100%;
    }


    #navbar .nav-item{
        font-size: 18px;
        font-weight: 600;
        line-height: 26px;
        border-top: 1px rgba(0, 0, 0, 0.2) solid;
        padding: 25px 0;
    }

    #navbar .dropdown:has(> ul.show) { 
        background-color: #F7F7F7;
    }

    #navbar .dropdown-menu{
        background-color: #F7F7F7;
        padding: 0;
    }

    .nav-link, .dropdown-item, .account-infos{
        padding: 20px 20px;
    }
    
    #navbar .nav-item.nav-item_logout{
        border-bottom: 1px rgba(0, 0, 0, 0.2) solid;
    }
    
    #navbar .nav-item > *{
        margin: 0;
        /* padding: 5px 0; */
    }

    #navbar .nav-item:has(> .navbar-brand){
        border-top: none;
    }

    a.dropdown-item{
        padding: 20px 20px;
        border-top: 1px solid grey;
    }

    a.dropdown-item:first-of-type{
        border: none;
    }

    .nav-link, .dropdown-item, .account-infos, .navbar-brand, .navbar-toggler{
        padding: 5px 20px;
    }

    #navbar .accordion-header button{
        font-size: 18px;
        font-weight: 600;
        line-height: 26px;
        padding: 5px 20px;
        color: var(--main-text-color);
    }

    .nav-link{
        color: var(--main-text-color);
    }

    .accordion-item:has(> div.show){
        background-color: #F7F7F7;
    }

    .accordion-item li{
        list-style: none;
    }

    .accordion-item .dropdown-item{
        padding-left: 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
    }

    .accordion-header:has(+ div.show){
        transition: all 250ms ease-out;
    }
    /* CATALOGUE */

    .filter-menu_results{
        font-weight: 600;
        margin-bottom: 20px;
    }
    
    .filter-menu .dropdown-toggle{
        background-color: #EFEFEF;
        border-radius: 200px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        width: 100%;
        text-align: center;
    }
}

@media only screen and (min-width: 992px){
    .navbar-modal{
        position: relative;
        background-color: transparent;
    }

    #searchbar{
        display: none !important;
    }

    #navbar .navbar-nav{
        height: fit-content !important;
    }

    #navbar .navbar-nav .nav-item{
        border: none;
    }

    .header-search input{
        width: 400px;
    }

    ul.dropdown-menu{
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    }
}

@media only screen and (min-width: 1200px){
    .header-search input{
        width: 700px;
    }

    .category-card{
        padding: 20px;
    }

    #home .teasing-card{
        max-width: 555px;
    }

    #category .teasing{
        margin: 0 auto;
    }

    .module-card{
        max-width: 555px;
    }

    footer li{
        padding: 0;
        border-bottom: none;
        text-align: center;
    }

    footer li:not(:first-of-type){
        padding-left:10px;
    }
    
    footer li:not(:last-of-type){
        border-right: 1px solid #E0E0E0;
        padding-right: 10px;
    }

    .module-content_btn{
        max-width: 40%;
    }
}

@media only screen and (min-width: 1400px){
    #home .teasing-card{
        max-width: 650px;
    }

    .module-card{
        max-width: 650px;
    }
}



