* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #0C2C56;
}

.active-free-video {
    color: white !important;
    background-color: #0C2C56 !important;
    font-size: 17px !important;
}
.free-video-modal-header{
    background-color: #0C2C56;
    color: white;
}
.user-play-free-video-btn {
    border-radius: 50px;
    height: 60px;
    width: 60px;
    background-color: #0C2C56;
}

img {
    width: 100%;
    height: auto;
}

.btn:focus {
    box-shadow: none;
}

.authentification {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* mobile first */

.home-bg-content {
    min-height: 20vh;
    color: white;
    background: url("/images/home/image-centrale.png") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    box-shadow: inset 0 0 0 100vw rgba(45, 71, 101, 0.54);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.btn-bg-inscription {
    background-color: #2D4765;
    color: white;
    border-radius: 2px;
}

.btn-bg-dba-site {
    background-color: #fff;
    color: #2D4765;
    border-radius: 2px;
}

.text-bg-content div {
    width: 60%;
}

.text-bg-content,
.btn-bg-content {
    margin: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.btn-bg-inscription,
.btn-bg-dba-site {
    width: 250px;
    margin: 10px 20px;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-bg-inscription:hover,
.btn-bg-dba-site:hover {
    background-color: #D1A902;
    color: white;
}

.bloc-suject-title {
    font-size: 1rem;
    margin: 1rem;
}

/* home-container   */
.container-trainings {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.margin-card {
    margin: 0.6rem;
}

.content {
    font-size: 16px;
    line-height: 1.4;
    background-color: #d8e0e5;
}

.content a.mynavbar__brand {
    white-space: normal !important;
    text-decoration-line: none;
    text-decoration: none;
}

.content .card {
    background-color: #fff;
    box-shadow: 0px 0px 20px rgba(182, 181, 181, 0.3);
    transition: box-shadow 0.5s;
    border: none;
    min-width: 15.5rem;
    max-width: 20rem;
    border-radius: 0;
}

.content .card:hover {
    box-shadow: 0px 0px 20px rgba(182, 181, 181, 0.2);
}

.content .card__date {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 20px;
    width: 90px;
    padding-top: 2px;
    line-height: 13px;
    font-weight: bold;
    text-align: center;
    /* border-radius: 50%; */
    background-color: #D1A902;
    font-size: 0.8rem;
    color: #fff;
}

.content .card__date .card__date__day {
    font-size: 10px;
    display: block;
}

.content .card__date .card__date__mouth {
    display: block;
    text-transform: uppercase;
}

.content .card__thumb {
    height: 125px;
    overflow: hidden;
    background-color: rgb(250, 249, 249);
}

.content .card__thumb .img {
    display: block;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.5s, transform 0.5s;
    transform: scale(1);
}

.content .mynavbar__brand:hover .card__thumb img {
    opacity: 0.6;
    transform: scale(1.2);
    transition: transform 0.5s;
}

.content .mynavbar__brand:hover .card__thumb {
    height: 50px;
    transition: height 0.5s;
}

.content .mynavbar__brand:hover .card__thumb img {
    opacity: 0.6;
}

.content .card__body {
    position: relative;
    padding: 5px;
    height: 150px;
    /* transition: height 0.5s; */
}

.content .mynavbar__brand:hover .card__body {
    height: 200px;
    transition: height 0.5s;

}

.content .mynavbar__brand:hover .card__body h4 {
    font-size: 1rem;
    transition: font-size 0.5s;
}

.content .card__category {
    position: absolute;
    left: 0;
    top: -25px;
    height: 25px;
    padding: 0 15px;
    color: #fff;
    background-color: #D1A902;
    font-size: 11px;
    line-height: 25px;
    text-transform: uppercase;
}

.content .card__title {
    padding: 0 0 5px 0;
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: #000;
    font-weight: 500;
    display: block;
    /* or inline-block */
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.4em;
}

.content .card__user {
    padding: 0 0 5px 0;
    margin: 0;
    font-size: 0.8rem;
    color: #000;
    font-weight: 300;
}

.content .card__substitle {
    padding: 0 0 5px 0;
    margin: 0;
    font-size: 0.7rem;
    color: #D1A902;
}

.content .card__description {
    color: #666c74;
    font-size: 0.8rem;
    line-height: 20px;
    /* opacity: 0; */
    display: none;
}

.content .mynavbar__brand:hover .card__description {
    /* opacity: 1; */
    display: block;
}

.footer__content .card__footer {
    position: absolute;
    bottom: 10px;
    padding-bottom: 5px;
    margin-bottom: -11px;
    left: 8px;
    right: 8px;
    font-size: 0.8rem;
    color: #A3A9AB;
    width: 100%;
}

.footer__content .card__footer .card__icon__heart {
    height: 30px;
    border-radius: 15px;
    font-size: 16px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    cursor: pointer;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.training-reduced-price {
    color: var(--yellow-dba-color);
    font-weight: bold;
}

.training-price-line-through {
    text-decoration: line-through;
}


/* fin css home page */


/* CSS detail formation */
.detail-container {
    background-color: #c6c8ce;
    /* padding: 0 20px 20px; */
}

.topic_menu {
    background-color: #c6c8ce;
    padding: 20px;
    width: 100%;
}

.topic_menu_top a {
    text-decoration: none;
    color: #2D4765;
}

.detail-img-training {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
}


.box-subscription--detail,
.box-other--training,
.box-notes-avis {
    padding: 1rem;
}

.img-user {
    height: 50px;
    width: 50px;
    border-radius: 50px
}

.detail-img-training img {
    position: relative;
    border: 1px solid #a7a7a7;
    object-fit: cover;
    z-index: 1;
}

.detail-img-training .detail-btn-play {
    position: absolute;
    font-size: 4rem;
    z-index: 2;
}

.detail-img-training .detail-btn-play i {
    color: #fefdfd;
}

.detail-img-training .detail-btn-play:hover i {
    color: #a7a7a7;
    transition: color 0.5s;
}

/* rating start*/

/* Rating Star Widgets Style */
.rating-stars {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
}

.rating-stars>span {
    margin-bottom: 5px;
}

.rating-stars ul {
    list-style-type: none;
    padding: 0;
    --moz-user-select: none;
    --webkit-user-select: none;
}

.rating-stars ul>li.star {
    display: inline-block;
}

.rating-stars .stars {
    padding-left: 0;
}

/* Idle State of the stars */
.rating-stars ul>li.star>i.fa-solid {
    font-size: 1.2em;
    /* Change the size of the stars */
    color: #505050;
    /* Color on idle state */
}

/* Hover state of the stars */
.rating-stars ul>li.star.hover>i.fa-solid {
    color: #c0b490;
}

/* Selected state of the stars */
.rating-stars ul>li.star.selected>i.fa-solid {
    color: #FFAB1A;
}

/** rating end **/
.box-subscription--detail,
.box-other--training {
    background-color: white;
}

.box-subscription--detail,
.box-other--training,
.detail-box-module__tabs,
.box-notes-avis {
    border: 1px solid;
    /* margin: 0 20px; */
}

.box-subscription--btn__auth {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-subscription--btn__sign {
    width: 90%;
}

.box-subscription--btn-start {
    width: 100%;
    background-color: #0C2C56;
    border: none;
}

.box-subscription--btn-start:hover {
    background-color: #D1A902;
}

.box-subscription--btn__wish {
    width: 10%;
    text-align: center;
    margin-left: 5px;
}

.box-subscription--btn__wish button {
    border: 1px solid;
    color: #0C2C56;
    ;
}

.box-subscription--content__detail {
    margin-top: 10px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #fff;
    background-color: #0C2C56;
}

.detail-box-module__tabs {
    border: 1px solid;
    padding-top: 10px;
    min-height: 250px;
}

.in_learning>p {
    margin-left: 0px;
}

.box-notes-avis {
    margin-bottom: 20px
}

.accordian .mycard .mycardheader {
    cursor: pointer;
    color: #004080;
    position: relative;
    background-color: #f5f6f7;
    padding: 5px;
    margin: 5px;
    font-weight: 300;
}

.accordian .mycard .mycardheader h5 {
    font-weight: 400;
}

.btn_voir_plus,
.btn_voir_moins {
    color: #004080;
    font-weight: bold;
    font-size: 14px;
}

.detail-box-module__tabs .nav-fill .nav-item,
.dashboard-box-tabs .nav-fill .nav-item,
.nav-fill>.nav-link {
    border: 1px solid #707070 !important;
}

.btn-dba-color {
    color: #0C2C56 !important;
}

.btn-dba-color.active {
    color: #fff !important;
}

.detail-box-module {
    margin-bottom: 0px !important;
}

.box-other--training {
    display: none;
}

.row_formation_width {
    color: #505050;
    ;
    font-size: 14px;
    font-weight: 300;
    padding-left: 5px;
}

.more-comments {
    display: flex;
    justify-content: center;
}

.btn-more__comment {
    margin: 20px 0px;
    width: 200px;
}

.limited-comment {
    display: flex;
    flex-direction: column;
}

.comment-detail {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
}

.detail-info {
    margin-top: 1rem;
}
.accordion-item:last-of-type .accordion-button.collapsed:after{
    height: 1rem !important;
    width: 1rem !important;
    background-size: 1rem !important;
    color: #000 !important;
}
.accordion-button:not(.collapsed){
    background-color: #fff !important;
}

/**********************************************QUIZ LOADER***********************************************************/
#quiz-loader {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(var(--module-background-color-rgb), .8);
}

#quiz-loader .quiz-loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 150px;
    height: 150px;
    animation: spin 2s linear infinite;
}

#quiz-loader .quiz-loader-label {
    position: absolute;
    width: 150px;
    height: 150px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/**********************************************END QUIZ LOADER***********************************************************/

@media only screen and (min-width: 600px) {
    .text-bg-content div {
        width: 100%;
    }

    .home-bg-content {
        min-height: 45vh;
        font-size: 3.5rem;
        line-height: 1.2;
        font-weight: 600;
    }

    .btn-bg-inscription,
    .btn-bg-dba-site {
        font-size: 1.5rem;
    }

    .bloc-suject-title {
        font-size: 1.8rem;
    }

    .content .card {
        min-width: 13.5rem;
        max-width: 13.5rem;
    }

    .content .card__body {
        height: 140px;
    }

    .content .card__title {
        font-size: 1.1rem;
    }

    .content .card__user {
        font-size: 0.8rem;
    }

    .content .card__substitle {
        font-size: 0.7rem;
    }

    .detail-box-module {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .in_learning>p {
        margin-left: 2rem;
    }

    .footer__content {
        display: block;
    }

}

@media only screen and (min-width: 990px) {
    .container-trainings {
        display: flex;
        justify-content: start;
        align-items: center;
        flex-wrap: wrap;
    }

    .detail-container-box-rigth {
        position: relative;
        float: right;
        width: 436px;
    }

    .detail-img-training img {
        max-height: 210px;
    }

    .detail-info {
        margin-top: -1px;
    }

    .detail-info,
    .detail-box-module__tabs,
    .box-notes-avis {
        margin-right: 480px;
    }

    .box-other--training {
        display: block;
    }
}