/* Autres */
@media screen {

    h1,
    h2 {
        color: #213c6b;
        text-wrap: balance;
        font-size: 1.8rem;
        font-variant: small-caps;
        text-align: center;
    }


    #btns {
        gap: 4%;
        max-width: 900px;
    }

    #listeFilieres button {
        width: 48%;
        height: 150px;
        margin-bottom: 2rem;
        box-sizing: border-box !important;
        border: unset;
        border-radius: 10px;
        font-size: 60px;
        font-weight: 700;
        color: #fff;
        max-width: 400px;
        max-height: 115px;
        background: #67ccd1;
        box-shadow: 0 2px 3px #052a75;
    }

    #listeDocuments button {
        width: 100%;
        display: flex;
        align-items: center;
        padding: .5rem 0 .5rem .8rem;
        border-radius: 5px;
        border: unset;
        color: #fff;
        gap: 10px;
        height: 60px;
        position: relative;
        margin-bottom: 20px;
    }

    #listeDocuments button:last-child {
        margin-bottom: 70px;
    }

    #listeDocuments button::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }


    #listeDocuments button span {
        font-weight: 300;
        font-size: 1.25rem;
    }

    #backToIndex,
    #revenirAuxFilieres {
        background: #052a75;
        border: unset;
    }

    #mainTitle {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        text-align: center;
        background: #fd8f01;
        color: #fff;
        font-style: normal;
        padding: .5rem;
        font-weight: 100;
        font-size: 20px;
        box-shadow: 0px 2px 3px #052a75;
    }
}


/* PDF */
@media screen {

    /* #pdfViewerDiv {
        margin: 0;
        padding: 0;
        overflow-x: hidden; 
        width: 100%; 
        box-sizing: border-box; 
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1056;
    } */

    #btnCloseEmbedPDF {
        background: #000;
        z-index: 1057;
        position: fixed;
        bottom: 50px;
        right: 50px;
        height: 40px;
        width: 40px;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #dc3546;
        border-radius: 30px;
        border: unset;
        transition: all .2s ease-in-out;
    }

    #btnCloseEmbedPDF:hover {
        transform: translateY(-3px);
    }

    #btnCloseEmbedPDF::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    #btnCloseEmbedPDF svg {
        width: 23px;
        color: #fff;
    }
}


#listeMatieres .card {
    border-bottom: 5px solid #6c757d;
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
    height: 245px;
}

#listeMatieres .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

#listeMatieres .card:hover {
    border-bottom: 5px solid #00209F;
}


#listeMatieres .card .icone{
    height: 185px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    background: #0066AA;
}

#listeMatieres .card .icone i {
    font-size: 6rem;
    color: #fff;
}


/* Loader */
@media screen {

    #loader {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffffed;
        justify-content: center;
        align-items: center;
        z-index: 1058;
    }

    .pencil {
        display: block;
        /* width: 10em;
        height: 10em; */
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.75);
    }

    .pencil__body1,
    .pencil__body2,
    .pencil__body3,
    .pencil__eraser,
    .pencil__eraser-skew,
    .pencil__point,
    .pencil__rotate,
    .pencil__stroke {
        animation-duration: 3s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    .pencil__body1,
    .pencil__body2,
    .pencil__body3 {
        transform: rotate(-90deg);
    }

    .pencil__body1 {
        animation-name: pencilBody1;
    }

    .pencil__body2 {
        animation-name: pencilBody2;
    }

    .pencil__body3 {
        animation-name: pencilBody3;
    }

    .pencil__eraser {
        animation-name: pencilEraser;
        transform: rotate(-90deg) translate(49px, 0);
    }

    .pencil__eraser-skew {
        animation-name: pencilEraserSkew;
        animation-timing-function: ease-in-out;
    }

    .pencil__point {
        animation-name: pencilPoint;
        transform: rotate(-90deg) translate(49px, -30px);
    }

    .pencil__rotate {
        animation-name: pencilRotate;
    }

    .pencil__stroke {
        animation-name: pencilStroke;
        transform: translate(100px, 100px) rotate(-113deg);
    }

    /* Animations */
    @keyframes pencilBody1 {

        from,
        to {
            stroke-dashoffset: 351.86;
            transform: rotate(-90deg);
        }

        50% {
            stroke-dashoffset: 150.8;
            /* 3/8 of diameter */
            transform: rotate(-225deg);
        }
    }

    @keyframes pencilBody2 {

        from,
        to {
            stroke-dashoffset: 406.84;
            transform: rotate(-90deg);
        }

        50% {
            stroke-dashoffset: 174.36;
            transform: rotate(-225deg);
        }
    }

    @keyframes pencilBody3 {

        from,
        to {
            stroke-dashoffset: 296.88;
            transform: rotate(-90deg);
        }

        50% {
            stroke-dashoffset: 127.23;
            transform: rotate(-225deg);
        }
    }

    @keyframes pencilEraser {

        from,
        to {
            transform: rotate(-45deg) translate(49px, 0);
        }

        50% {
            transform: rotate(0deg) translate(49px, 0);
        }
    }

    @keyframes pencilEraserSkew {

        from,
        32.5%,
        67.5%,
        to {
            transform: skewX(0);
        }

        35%,
        65% {
            transform: skewX(-4deg);
        }

        37.5%,
        62.5% {
            transform: skewX(8deg);
        }

        40%,
        45%,
        50%,
        55%,
        60% {
            transform: skewX(-15deg);
        }

        42.5%,
        47.5%,
        52.5%,
        57.5% {
            transform: skewX(15deg);
        }
    }

    @keyframes pencilPoint {

        from,
        to {
            transform: rotate(-90deg) translate(49px, -30px);
        }

        50% {
            transform: rotate(-225deg) translate(49px, -30px);
        }
    }

    @keyframes pencilRotate {
        from {
            transform: translate(100px, 100px) rotate(0);
        }

        to {
            transform: translate(100px, 100px) rotate(720deg);
        }
    }

    @keyframes pencilStroke {
        from {
            stroke-dashoffset: 439.82;
            transform: translate(100px, 100px) rotate(-113deg);
        }

        50% {
            stroke-dashoffset: 164.93;
            transform: translate(100px, 100px) rotate(-113deg);
        }

        75%,
        to {
            stroke-dashoffset: 439.82;
            transform: translate(100px, 100px) rotate(112deg);
        }
    }
}

#backToCourses {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    margin-right: 15px;
    background: #ae1c34;
    border: unset;
    position: relative;
}

#backToCourses::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

#backToCourses svg {
    width: 25px;
    color: #fff;
}
