:root {
    /*attention script js dans head pour ios  dvh not work iphone */
    --height-total: 100dvh;
}

html, body{
    height: var(--height-total);
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Poppins-Regular, serif;
    overflow: hidden;
}


body:before {
    position: absolute;
    content: "";
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: rgba(0, 0, 0, 0.8);*/
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: .3s all ease-in-out;
    -o-transition: .3s all ease-in-out;
    transition: .3s all ease-in-out;
    overflow: hidden;
}

/* Designing for scroll-bar */
::-webkit-scrollbar {
    cursor:pointer;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: #262626;
}
::-webkit-scrollbar:hover {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #262626;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #939393;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e0e0e0;
    color: #FFFFFF;
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-top: 30px;
}
/*::-webkit-scrollbar-thumb {*/
/*    background: #6ce9ff;*/
/*    border-radius: 8px;*/
/*}*/
/*::-webkit-scrollbar-thumb:hover {*/
/*    background: #6ce9ff;*/
/*    color: #FFFFFF;*/
/*    font-size: 24px;*/
/*    letter-spacing: 0.1em;*/
/*    margin-top: 30px;*/
/*}*/


/*block page

 */
.blockPage{
    display : none;
}

.blockPage.active{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.blockPage .rowBlockPage{
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px #474747;
}

/* Fixed header.
* --------------------------------------- */
#header{
    position:fixed;
    height: 50px;
    display:block;
    width: 100%;
    background: #FFFFFF;
    z-index:999;
    text-align:center;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    top: 0;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
}

#header .linkMenu a {
    color: #6e6e6e;
    text-decoration: none;
    font-size: 14px;
    margin-left: 25px;
    font-style: normal;
    font-weight: 400;
}
#header .linkMenu span{
    color: #6e6e6e;
    text-decoration: none;
    font-size: 14px;
    margin-left: 25px;
    font-style: normal;
    font-weight: 400;
}

#header .linkMenu a:hover {
    color: #106377;

}
#rowHeader {
    /*justify-content: space-between;*/
}


.dropDownConnBtnInClose {
    display: none!important;
}

@media screen and (min-width: 0px) and (max-width: 1199px) {

    .responsiveDisplayNone {
        display: none!important;
    }

    #menuHeader {
        width: 120px;
    }

    #btnMenuHeader {
        /*min-width: calc(100% - 50px);*/
    }

    #rowDropdownHeader {
        justify-content: flex-end;
    }

    .responsiveDropDownConn {
        transform: unset!important;
        top: 55px!important;
        position: fixed!important;
        left: calc((100% - 340px) / 2)!important;

    }

    .dropDownConnBtnInClose {
        display: block!important;
        font-size: 20px;
        position: absolute;
        right: 20px;
        top: 8px;
        cursor: pointer;
    }

}

.dropdownConnexion .dropdown-menu,
.dropdownUser .dropdown-menu {
    width: 340px;
    padding: 10px;
}

.dropdownConnexion .dropdown-menu .linkSpanInscr {
    cursor: pointer;
}

.dropdownConnexion .dropdown-menu a:hover,
.dropdownConnexion .dropdown-menu .linkSpanInscr:hover ,
.dropdownUser .dropdown-menu a:hover {
    color: #106377!important;
}

.dropdownConnexion .dropdown-menu li {
    border-bottom: 1px;
    border-bottom-color: black;
    border-bottom-style: solid;
    margin-bottom: 20px;
}

.dropdownConnexion .dropdown-menu .connexionFormSub {
    margin-left: unset !important;
}


#formInfoUser .modal-title,
#modalInfoUser .modal-title,
#resetPassword .modal-title {
    color: #3b3b3b;
    font-size: 14px;
    font-weight: 600;
}

#formInfoUser .modal-footer span,
#modalInfoUser .modal-footer span,
#resetPassword .modal-footer span,
.dropdownConnexion .dropdown-menu a,
.dropdownUser .dropdown-menu a,
.dropdownUser .dropdown-menu span,
.dropdownConnexion .dropdown-menu span {
    color: #3b3b3b;
    font-size: 14px;
}

#formInfoUser .modal-body label,
#modalInfoUser .modal-body label,
#resetPassword .modal-body label,
.dropdownConnexion .dropdown-menu label {
    color: #6e6e6e;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}


#formInfoUser .modal-body input,
#modalInfoUser .modal-body input,
#resetPassword .modal-body input,
.dropdownConnexion .dropdown-menu input {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

#formInfoUser .modal-body button,
#modalInfoUser .modal-body button,
#resetPassword .modal-body button,
.dropdownConnexion .dropdown-menu button {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

.blockInscr {
    display: none;
}

.blockInscr.show {
    display: block;
}

.marginCorps {
    height: 50px ;
}


/*
div erreure
 */

.divAlert {
    display: none;
}

.divAlert.active {
    display: block;
}

#video{
    /*position: absolute;*/
    /*right: 0;*/
    /*bottom: 0;*/
    /*top:0;*/
    width: 100%;
    height: calc(var(--height-total) - 130px);
    background-color: black;
    background-position: center center;
    background-size: contain;
    object-fit: cover; /*cover video background */
    z-index:3;
    margin-top: 50px;
}

.coverVideo{
    /*position: absolute;*/
    position: absolute;
    right: 0;
    top:50px;
    width: 100%;
    height: calc(var(--height-total) - 130px);
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
    z-index: 4;
}
.coverVideo-t0 {
    background-color: unset;
}
.coverVideo-t5 {
    background-color: rgba(0, 0, 0, 0.5);
}
.coverVideo-t6 {
    background-color: rgba(0, 0, 0, 0.6);
}
.coverVideo-t7 {
    background-color: rgba(0, 0, 0, 0.7);
}
.coverVideo-t8 {
    background-color: rgba(0, 0, 0, 0.8);
}

.coverVideo .rowCoverVideo{
    width: 100%;
    height: 100%;
}

.coverVideo .rowCoverVideo .textCoverVideo{
    color: #FFFFFF;
    text-shadow: 2px 2px 4px #000000;
    letter-spacing: 0.5em;
}

.textCoverVideo-ling1{
    font-size: 70px;
}
.textCoverVideo-ling2{
    font-size: 25px;
}

.coverVideo img {
    width: 50%!important;
}

.coverVideo .titre {
    font-size: 60px;
    color: #FFFFFF;
    margin-top: 14px;
}

@media screen and (min-width: 0px) and (max-width: 1199px) {
    .coverVideo img {
        width: 100%!important;
    }
    #video{

        height: calc(var(--height-total) - 80px);

    }
    .coverVideo {
        height: calc(var(--height-total) - 80px);
    }
}


/**
page cgv
 */

.enteteCgv {
    background-color: #ebebeb;
    padding-bottom: 20px;
}

.enteteCgv,
.corpsCgv {
    padding-top: 30px;
}

.enteteCgv h1,
.corpsCgv h1 {
    font-size: 28px;
    font-weight: 800;
}

.corpsCgv h2 {
    font-size: 20px;
    font-weight: 800;
}

.corpsCgv ul li {
    margin-bottom: 10px;
}

.enteteCgv p,
.corpsCgv ul li,
.corpsCgv p {
    font-size: 16px;
    font-weight: 400;
}

.corpsCgv a,
.linkCgv {
    color: #106377;
    font-weight: 800;
}

.corpsCgv a:hover {
    color: #0a53be;
}

/**
page medias categories
 */

.containerMediaPrincipal {
    margin-top: 50px;
    height: calc(var(--height-total) - 130px);

    background-color: #f5f5f5;
}
.containerMediaSecondaire {
    height: calc(var(--height-total) - 185px);

    overflow-y: auto;
    overflow-x: hidden;
}
.containerCatSecondaire {
    height: calc(var(--height-total) - 130px);
    overflow: auto;
}
.containerMediaSecondairePagination {
    height: calc(var(--height-total) - 235px);
    overflow-y: auto;
    overflow-x: hidden;
}
.containerCatSecondairePagination {
    height: calc(var(--height-total) - 185px);
    overflow: auto;
}
.pagination {
    margin-top: 8px;
}
.rowMediaPricipal {
    min-height: calc(var(--height-total) - 230px);
    padding: unset;
}

.selectMediaForm  {
    font-size: 13px;
    text-align: left
}

@media screen and (min-width: 0px) and (max-width: 1199px) {
    .containerMediaPrincipal {
        margin-top: 50px;
        height: calc(var(--height-total) - 80px);

        background-color: #f5f5f5;
    }
    .containerMediaSecondaire {
        height: calc(var(--height-total) - 135px);

        overflow-y: auto;
        overflow-x: hidden;
    }
    .containerCatSecondaire {
        height: calc(var(--height-total) - 80px);
        overflow: auto;
    }
    .containerMediaSecondairePagination {
        height: calc(var(--height-total) - 185px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    .containerCatSecondairePagination {
        height: calc(var(--height-total) - 130px);
        overflow: auto;
    }

    .selectMediaForm  {
        max-width: 60px;
    }

    .resposiveImgMedias {
        max-width: 100%;
        object-fit: cover;
    }
}

.imgMedia {
    cursor: pointer;
    padding: unset;
    max-height: 250px;

}

.imgMedia {
    position: relative;
}

.imgMedia img {
    opacity: 1;
    display: block;
    width: auto;
    height: 250px;
    transition: .5s ease;
    backface-visibility: hidden;
    box-shadow: 0px 1px 2px 0px rgb(169 168 168 / 28%);
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    /*background-color: rgba(183, 183, 183, 0.45);*/
    background-color: rgba(255, 255, 255, 0.25);
}
.overlay.overlay-visible {
    opacity: 1;
    background-color: unset;
}
.overlay.overlay-visible:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.imgMedia:hover .overlay {
    opacity: 1;
}

.imgMedia .titre {
    background-color: rgba(0, 0, 0, 0.57);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    padding: 0 20px 20px;
    top: 10px;
    left: 5px;
    min-height: 20px;
    height: 20px;
    max-height: 100%;
    width: auto;
    position: absolute;
    max-width: calc(100% - 10px);
    overflow: hidden;
}
.imgMedia .ext {
    background-color: rgba(0, 0, 0, 0.57);
    border-radius: 40px;
    color: white;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 60px;
    width: 60px;
    font-size: 40px;
    text-align: center;
    position: absolute;
}
.imgMedia .ext:hover {
    color: #b7b7b7;
}
.imgMedia .likeDown {
    background-color: rgba(0, 0, 0, 0.57);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    padding: 5px 10px 5px;
    bottom: 10px;
    right: 5px;
    width: auto;
    position: absolute;
}
.imgMedia .likeDown div {
    margin-right: 5px;
    margin-left: 5px;
    font-size: 12px;
}

#showMedia .likeDown div,
#showMedia .likeDown {
    margin-right: 5px;
    margin-left: 5px;
    font-size: 14px;
    margin-top: -5px;
}

#showMedia .titleAutor .titreMedia {
    color: #707070;
    font-weight: 400;
    font-size: 20px;
    width: 100%;
    height: auto;
    line-height: 2rem;
}
#showMedia .titleAutor span {
    font-size: 12px;
    display: block;
}
#showMedia .descrMedia {
    font-size: 12px;
    padding-top: 20%;
    padding-bottom: 20%;
}
#showMedia .specMedia {
    font-size: 12px;
    color: #707070;
    font-weight: 800;
    text-transform: uppercase;
    /*padding-bottom: 20%;*/
}
#showMedia .blocSpecMedia span {
    font-size: 14px;
    color: #707070;
    font-weight: 800;
    text-transform: uppercase;
}
#showMedia .blocSpecMedia .mediaLinkCat {
    font-size: 13px;
    color: #1775ab;
    font-weight: 800;
    /*text-transform: uppercase;*/
    text-decoration: none;
    display: block;
}
#showMedia .specMediafixed {
    position: absolute;
    background-color: #FFFFFF;
}
#showMedia .mediaLinkCatcol {
    height: 250px;
    overflow: auto;
}
#showMedia .firstmediaLinkCat {
    margin-top: 20px;
}
#showMedia .blocSpecMedia .mediaLinkCat:hover {
    color: #0d415d;
}
#showMedia .btnMediaDown {
    position: absolute;
    bottom: 20%;
}

#showMedia .ShowMediaBody {
    overflow: hidden;
}

@media screen and (min-width: 0px) and (max-width: 1199px) {
    #showMedia .ShowMediaBody {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .colShowMedia {
        min-width: 320px;
    }
    #showMedia .titreMedia {
        margin-top: 30px;
    }
    #showMedia .btnMediaDown {
        position: unset;
        bottom: unset;
    }

    #showMedia .corpsShowMedia {
        justify-content: center;
    }
}



/**
pied pages
 */


#piedPages {
    position: absolute;
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    height: 80px;
    /*bottom: 0;*/
    top:calc(var(--height-total) - 80px);
    /*background-color: #080808;*/
    background-color: #121212;
    color: #FFFFFF;
}

#piedPages span,
#piedPages a {
    font-size: 12px;
    color: #c5c5c5;
    text-decoration: none;
}

#piedPages .linkPied {
    margin-left: 15px;
}

#piedPages a:hover {
    color: #106377;
}

#headerMenuLang .dropdown-menu{
    /*top: 23px!important;*/
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
    background-color: #080808;
}

#piedPages .copyright a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    color: #878787;
}
#piedPages .copyright a:hover{
    color: #dcdcdc;
}

@media screen and (min-width: 0px) and (max-width: 1199px) {
    #piedPages {
        height: 30px;
        min-height: 30px;
        overflow: hidden;
        top:calc(var(--height-total) - 30px);
    }

    .resposivePeid-1 {
        justify-content: center!important;
        display: flex!important;
    }

    .resposivePeid-2 {
        /*margin-top: 10px;*/
    }

    .resposivePeid-3 {
        /*margin-bottom: 10px;*/
    }

    .resposivePeid-4 {
        width: 100%!important;
    }

    #piedPages .copyright,
    #piedPages .copyright a  {
        font-size: 10px;
    }
}

/**
generic
 */

.btn-close-perso{
    color: #000000;
    cursor: pointer;
    font-size: 30px;
}


/**
block user
 */

.shadow-admin {
    box-shadow: 0px 7px 10px 0px rgb(169 168 168 / 28%);
}

.rounded-125 {
    border-radius: 1.25rem!important;
}

.titreBlockUser {
    font-size: 1.25rem;
    line-height: 1.375;
    font-weight: 700;
    color: #344767;
}
.soustitreBlockUser {
    font-size: 1rem;
    line-height: 1.375;
    font-weight: 500;
    color: #989898;
}
.soustitreBlockUserBis {
    font-size: 0.90rem;
    line-height: 1.375;
    font-weight: 500;
    color: #989898;
}
.soustitreBlockUserBis.st-color-red {
    color: #cf4141;
}

.blockUser label {
    font-size: 0.75rem;
    line-height: 1.375;
    font-weight: 600;
    color: #344767;
}
.blockUser input {
    font-size: 0.95rem;
    line-height: 1.375;
    font-weight: 600;
    /*color: #344767;*/
}

.likeVueDownContent a {
    color: #111111;
}
.likeVueDownContent a:hover {
    color: #a2a2a2;
}

.alert-admin {
    min-height: 50px;
    width: 100%;
    border-radius: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 7px 10px 0px rgb(169 168 168 / 28%);
    background-color: #ffffff;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.alert-admin-danger {
    color: red;
    border: red solid 1px;
    box-shadow: 0px 7px 10px 0px rgba(105, 0, 0, 0.28);
}
.alert-admin-success {
    color: green;
    border: green solid 2px;
    box-shadow: 0px 7px 10px 0px rgba(0, 107, 0, 0.28);
}

ul.tree {
    list-style: none;
}

.tree ul {
    margin: 0 0 0 15em;
    padding: 0;
    list-style: none;
    color: #369;
    position: relative;
}
.tree a {
    text-decoration: none;
    color: #369;
}
.tree a:hover {
    color: #858585;
}
.tree:before, .tree ul:before {
    content: "";
    display: block;
    width: 0px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-left: 1px solid;
    background: white;
    z-index: -1;
}
.tree li {
    font-weight: bold;
    line-height: 3em;
    margin: 0;
    padding: 1.5em 0 0 2em;
    position: relative;
    /*z-index: -1;*/
}
.tree li:before {
    border-top: 1px solid;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    margin-top: 1em;
    position: absolute;
    top: 1.5em;
    width: 2em;
}
.tree li:last-child:before {
    background: white;
    bottom: 0;
    height: auto;
    top: 1.5em;
}
.tree > li:before {
    border-top: none !important;
}
.tree li div {
    border-radius: 5px;
    border: 1px solid #afafaf;
    margin: 0;
    max-width: 15em;
    min-width: 15em;
    padding: 0.25em 0.5em;
    background: white;
    box-shadow: 1px 1px 4px #8F949A;
    /*color: #369;*/
    color: #3f3f3f;
    font-weight: bold;
}

ul.tree {
    margin-left: 0px;
}
ul.tree:before {
    border-left: none;
}

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    width: 100%;
}


//*
flipbook - CSS amélioré pour un meilleur effet 3D et une meilleure utilisation de l'espace
 */

/* Base styles for the flipbook container */
.flipbook-container {
    width: 100%;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0 !important; /* Supprimer tout padding en haut */
    margin-top: 0 !important; /* Supprimer toute marge en haut */
}

/* Style for the flipbook itself */
#flipbook {
    transition: margin 0.5s ease;
    margin-left: unset !important;
    /* Amélioration des ombres et effet 3D */
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;*/
}

/* Ensuring pages have proper background */
.page {
    background-color: white !important;
    position: relative;
    overflow: hidden; /* Pour les images de préchargement */
    /* Amélioration des bords de page */
    /*box-shadow: inset -5px 0 15px -5px rgba(0, 0, 0, 0.2);*/
    -webkit-box-shadow:0 0 20px rgba(0,0,0,0.2);
    -moz-box-shadow:0 0 20px rgba(0,0,0,0.2);
    -ms-box-shadow:0 0 20px rgba(0,0,0,0.2);
    -o-box-shadow:0 0 20px rgba(0,0,0,0.2);
    box-shadow:0 0 20px rgba(0,0,0,0.2);
}

/* Making sure the hardcover effect looks good */
.turn-page-wrapper {
    background-color: white !important;
}

/* Amélioration de l'effet 3D pour les pages tournées */
.turn-page {
    /* Ombre sur le bord interne des pages */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.turn-page-wrapper.even {
    /* Ombre sur la droite pour les pages de gauche */
    box-shadow: inset -8px 0 15px -5px rgba(0, 0, 0, 0.4) !important;
}

.turn-page-wrapper.odd {
    /* Ombre sur la gauche pour les pages de droite */
    box-shadow: inset 8px 0 15px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Loading states for pages */
.page:not(.page-loaded) {
    background-color: #f8f8f8;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #666;
    font-size: 14px;
    /*background-color: #f0f0f0;*/
    background-color: #ffffff;
    flex-direction: column;
    position: relative;
}

.loading-indicator img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0.6;
    filter: blur(1px);
    transition: opacity 0.3s;
}

/* Main loading indicator */
.loading-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #333;
    font-size: 16px;
    /*background-color: #f5f5f5;*/
    flex-direction: column;
}

/* Error styles */
.pdf-error, .page-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #d9534f;
    font-size: 16px;
    background-color: #f8d7da;
    flex-direction: column;
}

/* Navigation controls */
.flipbook-nav {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.flipbook-nav button {
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.flipbook-nav button:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* Bouton plein écran */
#fullscreen-toggle, #top-fullscreen-toggle {
    transition: all 0.3s ease;
}

#fullscreen-toggle:hover, #top-fullscreen-toggle:hover {
    color: #007bff;
}

/* Style pour le bouton en haut */
#top-fullscreen-toggle {
    margin-left: 10px;
    font-size: 0.8em;
    background-color: transparent;
    border: 1px solid #007bff;
    vertical-align: middle;
}

#top-fullscreen-toggle:hover {
    background-color: #007bff;
    color: white;
}

/* Special PDF layout styles - AMÉLIORÉ */
.pdf-view-active {
    height: 95vh !important;
    min-height: 95vh !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: flex !important;
}

/* Ajustements pour le mode plein écran */
.modal-fullscreen .pdf-view-active {
    height: 98vh !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-fullscreen .d-flex.justify-content-center.align-items-center.h-100.w-100 {
    height: 90vh !important;
    min-height: 90vh !important;
}

.modal-fullscreen .flipbook-container {
    height: 85vh ;
    width: 100%;
}

/* Fixed colShowMedia height for PDFs */
.pdf-view-active .colShowMedia {
    height: 95vh;
    min-height: 95vh;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Main container adjustments for PDFs */
.pdf-view-active .d-flex.justify-content-center.align-items-center.h-100.w-100 {
    height: 90vh !important;
    min-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 10px;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Canvas rendering */
.page canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Shadow for the book fold/spine - NOUVEAU */
#flipbook:after {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.05) 50%,
    rgba(0,0,0,0.2) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Add space below flipbook container to ensure file info is visible */
.likeDown {
    margin-top: 20px; /* Augmenté de 15px à 20px */
}

/* Styles pour les numéros de page sur les indicateurs de chargement */
.page-number-indicator {
    position: absolute;
    bottom: 10px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Animation subtile pour les indicateurs de chargement */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.7; }
    100% { opacity: 0.5; }
}

.loading-indicator img {
    animation: pulse 2s infinite ease-in-out;
}

/* Better page turning cursor */
.page.odd {
    cursor: e-resize;
}

.page.even {
    cursor: w-resize;
}

/* Ensure PDF displays at optimal size in the container */
.pdf-view-active #flipbook {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make sure flipbook is centered in its container */
.pdf-view-active .flipbook-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90vh;
    position: relative;
    margin: 0 auto;
    overflow: visible;
}

/* Fix for overflow content in PDF view mode */
.pdf-content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Make info section at bottom stay visible */
.pdf-view-active .d-flex.justify-content-between.w-100 {
    position: relative;
    z-index: 50;
    background-color: white;
    padding: 5px 0;
    margin-top: 10px;
}

/* Wheel scroll sensitivity adjustments */
#flipbook.wheel-scroll-enabled {
    cursor: ns-resize;
}

/* Responsive adjustments for smaller screens */
@media (max-height: 700px) {
    .pdf-view-active .flipbook-container {
        height: 85vh;
    }

    .flipbook-nav {
        bottom: -20px;
    }
}

/* Spinner for loading pages */
.page-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.shadow {
    -webkit-transition: -webkit-box-shadow 0.5s;
    -moz-transition: -moz-box-shadow 0.5s;
    -o-transition: -webkit-box-shadow 0.5s;
    -ms-transition: -ms-box-shadow 0.5s;

    -webkit-box-shadow:0 0 20px #ccc;
    -moz-box-shadow:0 0 20px #ccc;
    -o-box-shadow:0 0 20px #ccc;
    -ms-box-shadow:0 0 20px #ccc;
    box-shadow:0 0 20px #ccc;
}

/* Ombre de la reliure centrale (quand le livre est ouvert) */
.turn-shadow-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 10;
}

/* Ombre à gauche de la reliure */
.turn-shadow-gradient-left {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.10), rgba(0,0,0,0));
}

/* Ombre à droite de la reliure */
.turn-shadow-gradient-right {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.10), rgba(0,0,0,0));
}

/* Styles pour le mode plein écran */
.fullscreen-flipbook {
    height: 100vh !important;
    z-index: 9999 !important;
    /*background-color: rgba(0,0,0,0.95) !important;*/
    background-color: rgb(210, 210, 210) !important;
}

#fullscreen-toggle {
    margin-left: 10px;
    background: none;
    border: 1px solid #ccc;
    color: #333;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

#fullscreen-toggle:hover {
    background-color: #f0f0f0;
}

/* Ajuster la navigation en plein écran */
.fullscreen-flipbook .flipbook-nav {
    bottom: 5px !important;
}
