/*
Theme Name: infri membre theme
Author: BMP@st-camille.ch
Author URI: https://www.bmp-services.ch/
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infri_membre_theme
*/
header a{
    color:white;
}
footer a{
    color:white;
}
.menu-file-menu-container a{
    color:black;
}
.other_language_filename[data-hidden]{
    display: none;
}
#header_top-container{
    max-width: 1170px!important;
    margin-inline: auto!important;
    display: flex;
    flex-direction: row;
    align-items: center;
}
#wrapper-logo span{
    display: flex;
}
.file-directory-container.list-view ad p,.file-container.list-view ad p{
    display:flex!important;
    white-space:nowrap;
    max-width:unset;
    align-items:center;
    margin-left:.4rem;
}
.file-directory-container.list-view,
.file-container.list-view {
    display: flex ;
    flex-direction: column ;
    gap: 0.5rem ;
}
.file-directory-container.list-view ad,
.file-container.list-view ad {
    width: 100% ;
    max-width: 100% ;
    flex-direction: row ;
    align-items: center ;
    justify-content: flex-start ;
}

.file-directory-container.list-view ad:nth-child(even),
.file-container.list-view ad:nth-child(even) {
    background: #f5f5f5;
}
.file-directory-container.list-view ad:nth-child(odd),
.file-container.list-view ad:nth-child(odd) {
    background: rgba(113, 158, 202, 0.02);
}

.toggle-view-button {
    background: grey;
    color: #ffff;
    border: 1px solid #719ECA;
    margin: 0;
    padding: 0.2em 0.7em;
    font-size: 1em;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px 0 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}
.toggle-view-button i {
    font-size: 1.2em;
}
.toggle-view-button:first-child {
    border-left: 1px solid #719ECA;
    border-radius: 6px 0 0 6px;
}
.toggle-view-button:last-child {
    border-right: 1px solid #719ECA;
    border-radius: 0 6px 6px 0;
}
.toggle-view-button.active {
    background: rgba(45, 58, 136, 0.98);
    color: #fff;
    border-top: 2px solid #719ECA;
    border-bottom: 2px solid #719ECA;
    z-index: 1;
}

/* Coller les boutons dans la barre d'outils */
.tools-header {
    gap: 0 !important; /* plus de gap entre les enfants */
}
.tools-header .toggle-view-button {
    margin-left: 0;
    margin-right: -7px;
    vertical-align: middle;
}

.file-separator {
    width: 100%;
    height: 0;
    border-bottom: 2px solid grey;
    margin: 2rem 0 2rem 0;
    /* Optionnel : pour n'afficher la séparation qu'en mode liste */
    display: none;
}
.file-directory-container.list-view ~ .file-separator,
.file-separator + .file-container.list-view {
    display: block;
}

/* Force la 2e partie (fichiers) à commencer par le gris en mode liste */
.file-container.list-view ad:first-child {
    background: #f5f5f5;
}
.file-container.list-view ad:nth-child(even) {
    background: #fff;
}
.file-container.list-view ad:nth-child(odd):not(:first-child) {
    background: #f5f5f5;
}

.delete-dialog[data-open] {
    z-index: 10000;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.delete-dialog-action{
    display: flex;
    justify-content: space-between;
    padding-inline:25px;
}
.delete-dialog .delete-frame{
    border-top:12px solid #7B9AC3;
    background-color: white;
    display: flex;
    flex-direction: column;
    max-width:400px;
    width: 100%;
    min-width: 300px;
    padding: .7rem;
    cursor: auto;

}
.delete-dialog .delete-frame button{
    min-height:30px;
    border:none;
    color: white;
    padding-inline:.7rem;
    cursor: pointer;
}
.delete-dialog .delete-frame button:first-of-type{
    background-color: #7B9AC3;
}
.delete-dialog .delete-frame button:first-of-type:hover{
    background-color: #5c7291;
}
.delete-dialog .delete-frame button:nth-of-type(2){
    background-color: #e12a2a;
}
.delete-dialog .delete-frame button:nth-of-type(2):hover{
    background-color: #aa1f1f;
}
#wrapper-logo .bi-person-fill{
    font-size: 3em;
    transform:translateY(23px);
    margin-left: .7rem;
    color: #7B9AC3;
}
.translation_actions{
    width: 100%;
    justify-content: end;
    gap:1rem;
    display: contents;

}
.translation_actions a {
    min-height:40px!important;
    margin-block: auto;
    display: flex;
    align-items: center;
    margin-right: .7rem;
}
.translation_actions a{
    min-width: 35px;
}
.translation_actions a img{
    width:100%;
}.delete-confirmation-list{
    max-height: calc(100vh - 320px);
    overflow-y: scroll;
 }
.site-main{
    max-width: 100vw;
    padding-inline: .7rem;
    margin-inline: auto;
    box-sizing: border-box;
    text-decoration: none;
}
h1{
    font-style: unset!important;
}

#copyright{
    display: flex;
    justify-content: center;
}

.infri_login_form_container{
    max-width: 1000px;
    margin-inline: auto;
    padding: 0 15px 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.file_item {
    -webkit-touch-callout: none!important;
     user-select: none;
    -webkit-user-select: none;
}
.infri_login_form_container input{
    box-sizing: border-box;
}
.infri_login_form_container input[type=submit]{
    max-width: 300px;
}
.infri_login_form_container .login-submit{
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}
.infri_login_form_container .button-primary{
    padding: 12px 0;
    border: 1px solid #719ECA;
    background: #fff;
    color: #719ECA;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
}
.infri_login_form_container .button-primary a{
    width: 100%;
    display: block;
    text-decoration: none;
}

input#wp-submit {
    background: #719ECA;
    color: #fff;
    text-wrap: auto;
}

.infri_login_form_container .login-remember, .infri_login_form_container .login-remember label {
    display: flex;
    flex-direction: row;
    width: 100%;
}
.infri_login_form_container .login-remember input{
    max-width: 1em!important;
    width: auto!important;
    margin-right: .7em;
}
.tools-header{
    display: flex;
    flex-direction: row;
    padding: .7rem;
    width: auto!important;
    gap: .7rem;
    background-color: #d1edff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    align-items: center;
    flex-wrap: wrap;
}
.tools-header button{
    height: 36px!important;
    min-height: 36px!important;
    max-height: 36px!important;
}
.tools-header .container-bmp{
    margin-inline: auto!important;
    width: fit-content!important;
}
.tools-header button i{
    margin-right: .7rem;
}
#file-editor{
    min-height: calc(100vh - 207px - 341px)!important;
}
#file-editor .flex-box ~ form{
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    background-color:white;
    margin-inline: auto;
    min-width:320px!important;
    width:50%;
    z-index: 10000;
}
#file-editor .flex-box ~ form input[type=submit]{
    padding-inline:.7rem;
}
#file-editor-content-frame{
    width: 100%!important;

}
#file-editor-page{
    width: 100%!important;
    height: 100%!important;
}
.directory-form{
    display: none;
    flex-direction: column;
    gap: .7rem;
    padding: .7rem;
    max-width: 600px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin:.7rem;
    margin-inline: auto;

}
.translation_actions a[data-disabled]{
    filter: grayscale(1) brightness(.5);
    transition: filter 0.1s;
    
}
.translation_actions a[data-disabled]:hover{
    filter: grayscale(0);
    transition: filter 0.1s;
}
@media (max-width: 602px){
    .translation_actions{
        transform:translateX(-.8rem)!important;
    }
    #wrapper-button{
        width: 100%;
        justify-content: space-between;
        padding-inline: 12px!important;
        margin-top: .7rem;
    }
}
.directory-form label, .rename-form label{
    display: block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.directory-form label span,.rename-form label span{
    width: 100%;
    display: flex;

}
.rename-form label span .bi{
    margin-left: auto;
}
.directory-form label span .bi-translate{
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;align-items: center;
}
.directory-form label span .bi-translate:hover{
    background-color: #0160c5;
}
.file-form{
    display: none;
    flex-direction: column;
    gap: .7rem;
    padding: .7rem;
    max-width: 600px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin:.7rem;
    margin-inline: auto;
}
.rights-form{
    display: none;
    flex-direction: column;
    gap: .7rem;
    padding: .7rem;
    max-width: 600px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin:.7rem;
    margin-inline: auto;
}
.directory_content ~ form{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: white;
    width: 80%;
    min-width: 320px;
}
.directory_content ~ form select, .directory_content ~ form input{
    width: 100%;
}
.directory_content ~ form input[type=text]{
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}
#file-for-file-form{
    border:0;
    color: white;
    max-width: unset;
    width: 100%;
}
.directory_content ~ form .components-button{
    max-width: 260px;
    display: flex;
    align-items: center;
    padding-block: 0;
    padding-inline: .7rem;
    min-height: 45px;
}
.rename-form{
    display: none;
    flex-direction: column;
    gap: .7rem;
    padding: .7rem;
    max-width: 600px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin:.7rem;
    margin-inline: auto;
}
.rename-form input, .rename-form select,
.directory-form input,.directory-form select, .file-form input, .file-form select {
    width: 100%;
}
.rename-form input[type=text] {
    width: 100%;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}
.form_footer {
    display: flex;
    justify-content: space-between;
}
.form_footer button,.form_footer input {
    width: min-content;
}
.wp-style-select {
    background-color: #fff;
    border: 1px solid #7e8993;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    color: #32373c;
    font-size: 14px;
    height: 32px;
    padding: 4px 8px;
    width: auto;
    min-width: 200px;
    max-width: 100%;
    cursor: pointer;
}

.wp-style-select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}



.is-primary:active {
    background-color: #033a7a;

}
.is-primary.btn-exit{
    display: flex;
    align-items: center;
}
.is-primary.btn-exit::before{
    content: "\F306";
    font-family: bootstrap-icons;
    display: block;
    margin-bottom: 3px;
    margin-left: .2rem;
}
.file_bread_crumb {
    padding-inline:.7rem;
    min-height: 45px;
    display: flex;
    flex-direction: row-reverse;
    background-color: #719ECA;
    color: white;
    align-items: center;
    justify-content: left;
}
.mcopy-button{
    background-color: rgba(211, 90, 27, 0.8) !important;
    cursor: pointer;
}
.mcopy-button:hover{
    background-color: rgba(184, 81, 27, 0.8) !important;
}
@media (max-width: 800px){
    .file_bread_crumb span:has(.layout-selector-container){
        justify-content: start!important;
    }
    .file_bread_crumb .layout-selector-container{
        margin: 0!important;
    }
    .search-form{
        margin-left: auto!important;
    }
    .file_bread_crumb span .bread_crumb{
        min-width: 100%!important;
        margin-block: .4rem!important;
    }
}
.file_bread_crumb span:has(.layout-selector-container){
    display:flex;
    flex-direction: row-reverse;
    width: 100%;
    max-width:1170px;
    margin-inline:auto;
    flex-wrap: wrap;
    gap:.4rem;
    padding-block: .4rem;
}
.file_bread_crumb .layout-selector-container{
    margin-left: auto;
    display: flex;
    align-items: center;
}
.file_bread_crumb a {
    margin-right: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    
}

.file_bread_crumb a:first-child {
    color: black;
}

.file_bread_crumb a::after {
    content: ">";
    display: block;
    width: 7px;
    height: 1.2em;
    padding-left: 10px;
}

.file_bread_crumb a:first-of-type::after {
    content: ""!important;
    display: none;
}

.bread_crumb {
    justify-content: left;
    display: flex;
    flex-direction: row-reverse;
    font-size: 15px;
    margin:0!important;
    align-items: center;
    padding:0!important;
    max-width: calc(100% - 500px);
}

.is-secondary {
    border: 0;
    background-color: #6c757d; /* Gris Bootstrap */
    color: #fff;
    padding: 10px 20px;
    /*border-radius: 5px;*/
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
    margin-top: 5px;
}
.is-secondary:hover {
    background-color: #545b62;
}
.file-form input[type=file]{
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}



.file-form label {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-form label:hover{
    background-color: #0056b3;
}
label[for="multiple-translated-file"]{
    display: flex;
    justify-content: space-between;
}
label[for="multiple-translated-file"] input{
    max-width: 45px;
}
label[for="includes-fr"]{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
label[for="includes-fr"] input{
    max-width: 45px;
    height: 24.8px;
}
div[data-multiple-translation = "false"]{
    display: none!important;
    flex-direction: column;
    gap: .7rem;
}
div[data-multiple-translation = "false"] ~ .translated-filename{
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.translated-filename span{
    display: flex;
    flex-direction: row;
}
.translated-filename span > *{
    margin-left: auto;
}
.translated-filename .bi-translate{
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.translated-filename .bi-translate:hover{
    background-color: rgba(0,71,142,0.98);
}
div[data-multiple-translation = "true"]{
    display: flex!important;
    flex-direction: column;
    gap: .7rem;
}
div[data-multiple-translation = "true"] ~ .translated-filename{
    display: none;
}
.directory-form input[type=text] {
    width: 100%;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
    width: 100%;
}

.directory-form input[type=text]:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 91, 187, 0.5);
}

input[type=submit]{
    cursor: pointer;
}

.file-image{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min-content;
}

.file-image img{
    width: 90px;
    aspect-ratio: 1;
    object-fit: cover;
}

/* .directory_content{
    display: flex;
    flex-direction: column;
    gap:.4rem;
    padding: 0;
    margin:0;
} */


.content-view i{
    display: block;
    width: 45px!important;
    aspect-ratio: 1;
    font-size: 45px!important;
}
.content-view ad img{
    max-height: 45px!important;
}
.list-view ad{
    max-height: 70px!important;
}
.directory_content ad{
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0!important;
    box-sizing: border-box;
    padding: .4rem;
    user-select: none;
}

.directory_content ad:active{
    background-color: unset!important;
    color: black!important;

}

.directory_content ad:visited{
    background-color: unset!important;
    color: black!important;

}

.directory_content ad:link{
    background-color: unset!important;
    color: black!important;
}

.directory_content ad::before{
    content: ""!important;
}

.directory_content ad img{
    width: 90px;
    height: 126px;
    object-fit: contain;
}
.directory_content ad{
    user-select: none!important;
    -webkit-user-select: none!important; /* Safari / iOS */
    -moz-user-select: none!important;    /* Firefox */
    -ms-user-select: none!important;     /* IE/Edge Legacy */
    user-select: none!important;
}
.directory_content ad p{
    display: block;
    user-select: none!important;
    -webkit-user-select: none; /* Safari / iOS */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge Legacy */
    user-select: none;         /* Standard */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limite le texte à 2 lignes */
    line-height: 1.2rem!important;
    align-items: flex-start!important;
    overflow: hidden; /* Cache le texte qui dépasse */
    max-height: unset!important;
    max-width: 150px;
    text-overflow: ellipsis;
    text-align: center;

}

.file-directory-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    height: auto;
    gap: 1rem;
}
.file-directory-container a{
    height: min-content;
}
.file-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    height: auto;
    gap: 1rem;
}
.file-container .bi-link{
    position: absolute;
    max-width: 30px;
    font-size: 25px;
    max-height: 30px;
    color: #47607a;
    transform: rotate(45deg);
    margin-right: calc(-150px + -13px);
    margin-top: calc(-30px);
}
pre{
    max-width: 100%;
    overflow-x: hidden; /* Pour éviter que le texte déborde sans possibilité de défilement */
    white-space: pre-wrap;
}

.delete-button{
    background-color: #e12a2a!important;
    color: white!important;
    border: none!important;
    border-color: #e12a2a;
    box-shadow: none!important;
    margin-bottom: 5px;
    margin-top: 5px;
}
.delete-button:hover{
    background-color: #9a2222 !important;
}
.change-rights-button{
    background-color: rgba(211, 90, 27, 0.8) !important;
    color: white!important;
}
.change-rights-button:hover{
    background-color: rgba(136, 56, 17, 0.8) !important;
}
button[data-disabled],button[data-disabled]:hover{
    background-color: grey!important;
    cursor: not-allowed;
}
.copy-button{
    background-color: rgba(45, 133, 225, 0.8);
    color: white;
}
.copy-button:hover{
    background-color: rgba(31, 97, 166, 0.8);

}
.rename-button{
    background-color: #af2cc5 !important;
    color: white!important;
    border: none!important;
    border-color: #af2cc5;
    box-shadow: none!important;
}
.rename-button:hover{
    background-color: #822193 !important;

}
.add-directory-button{
    background-color: rgba(51, 69, 161, 0.98);
    cursor:pointer;
}
.add-directory-button:hover{
    background-color: rgba(45, 58, 136, 0.98);

}
.rename-button[data-disabled]{
    background-color: grey!important;
    cursor: not-allowed;
}
.directory_content ad[data-selected]{
    background-color: rgba(45, 133, 225, 0.8) !important;
    color: white!important;
}
.delete-button[data-disabled]{
    background-color: grey!important;
    cursor: not-allowed;
}
.paste-button[data-disabled]{
    display: none;
}
.paste-button{
    background-color: rgba(45, 133, 225, 0.8);
    color: white;
}
.paste-button:hover{
    background-color: rgba(18, 91, 158, 0.8);
}
.file-editor-frame{
    width: 100%;
    max-width: 100vw;
    min-height: 50vh;
    border: 0;
    margin: 0;
    padding: 0;
    position: fixed;
}
body{
    margin: 0;
    height: auto;
    font-family: 'Montserrat', sans-serif;
}

#loginform{
    max-width: 1200px;
    width: auto;
    min-width: 100px;
    margin: auto;
    margin-top: .7rem!important;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding-inline: .7rem;
    padding-block: .7rem;
    margin-bottom: 100px;
}

#loginform .login-remember{
    display: flex;

}
#loginform .login-remember label{
    display: flex;
    width: 100%;
    gap: .4rem;
}
#loginform .login-remember label input{
    max-width: 1rem;
}
.login-submit{
    width: 100%;
}
#loginform input[type=text],#loginform input[type=password]{
    padding-inline:0;
}
.responsive-menu-container{
    transform: translateX(-130%);
    display: flex;
    flex-direction: row;
    left: 0;
    top: 0;
    position: fixed;
    transition: transform .5s;
    width: 100%;
}
.responsive-menu-container[data-open]{
    transition: transform .5s;
    transform: translateX(0%);
    z-index: 9999;
    transition: transform .5s;
}
.responsive-menu-container .overlay{
    position: unset!important;
    pointer-events: none;
    width: 100%;
    transition: opacity .1s;

}
.responsive-menu-container .overlay[data-open]{
    backdrop-filter: blur(2px);
    transition: opacity .5s;
    pointer-events: auto;
    cursor: pointer;
}
.menu-file-menu-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 250px;
    min-height: 100vh;
    max-width: 500px;
    background: #D9E3EC;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 1.4rem;


}
#menu-file-menu{
    height: 100vh;
    max-height: unset;
    background-color: white;
    z-index: 12000;
    margin: 0;
    background: #D9E3EC;
    display:flex;
    flex-direction: column;
    overflow-y: auto;

}
.close-menu{
    max-width: 32px;
    aspect-ratio: 2;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: end;
}

.close-menu i::before {
    background-color: #D9E3EC;
    border: #D9E3EC;
    cursor: pointer;
}

li.menu-item {
    padding: 0.5rem 1rem 0.5rem 1rem;
    list-style-type: none;
}

ul.sub-menu {
    padding-left: 10px;
}

ul.sub-menu a {
    font-size: large;
}

ul.sub-menu .menu-item-has-children ul.sub-menu {
    border-top: none;
}

.background-image{
    background-color: rgba(255, 255, 255, 0.85);
}
p.espace-membre{
    color:black;
}
@media (max-width: 991px){
    #wrapper-logo span{
        align-items: center!important;
        margin-bottom: .7rem;
    }
    #wrapper-logo img{
        height: 80px!important;
    }
    #wrapper-logo i{
        transform: translateY(1rem)!important;
    }
    #copyright {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: .7rem;
        text-align: center;
    }
    #copyright a{
        text-align: center;
    }
    p.espace-membre {
        margin-top: 62px !important;
        color:black!important;
    }

}
button.is-primary {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    border: none;
    background: #719ECA;
    cursor: pointer;
    padding: 10px 20px;
    margin-bottom: 5px;
    margin-top: 5px;
}

#copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    text-align: center;
    flex-wrap: wrap;
}
.toggle-view-button{
    border:0!important;
    border-radius:0;
    cursor:pointer;
}
.toggle-view-button:hover{
    background-color: rgba(45, 58, 136, 0.98);;
}
#copyright a{
    text-align: center;
}
#waiting_progress{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: rgba(67, 131, 204, 0.4);
    z-index: 9999;
    border-radius: 100%;
    width: 85%;
    aspect-ratio: 1;
}

.progress{
    display: flex;
    align-items: start;
    height: 50%;
    width: 50%;
    animation: rotate 1s linear infinite;
    top: 0;
    position: absolute;
    justify-content: center;
}
.progress:nth-of-type(2n){
    animation-delay: -.33s;


}
.progress:nth-of-type(2n) .progresspoint{
    background-color: #4a5eaa;
}
.progress:nth-of-type(3n){
    animation-delay: -.66s;

}
.progress:nth-of-type(3n) .progresspoint{
    background-color: #313e73;
}
.progresspoint{
    width: 20%;
    aspect-ratio: 1;
    border-radius: 100%;
    background-color: #6d8bff;
}
#hide_progress{
    margin: auto;
    aspect-ratio: 1;
    position: absolute;
    background-color: white;
    border-radius: 100%;
    width: 70%;
}
#progressNodeTopContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    position: fixed;
    left: calc(50% - 50px);
    top: calc(50% - 50px);
    background-color: #d2e9f8;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    z-index: 9999;
}
@keyframes rotate{
    from{
        transform: rotate(0deg);
        transform-origin: 50% 100%;
    }
    70%{
        transform: rotate(300deg);
        transform-origin: 50% 100%;
    }
    to{
        transform: rotate(360deg);
        transform-origin: 50% 100%;

    }
}
iframe {
    pointer-events: auto;
}
body {
    touch-action: manipulation; /* Prevents zooming and allows touch events */
}

body.no-scroll {
    overflow: hidden;
}
.filter-button{
    background-color: rgba(51, 69, 161, 0.98);
    cursor: pointer;
}
.filter-form{
    display: flex;
    max-width: 600px;
    flex-direction: column;
    right: 0;
    left: unset!important;
    width: fit-content!important;
    padding: .7rem;
    box-sizing: border-box;
    height: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    position: fixed!important;
    min-height: calc(100vh - 210px);
    border-top: 25px solid #3087dd;
    border-top-left-radius: 7px;
    transform: translateX(100%)!important;
    transition: transform .3s ease-in-out;
}
.filter-form[data-open]{
    transform: translateX(0)!important;
    transition: transform .3s;
}
.filter-form hr{
    border: none;
    border-bottom: 2px solid #3087dd;
}
.cancel-filter-button{
    background-color: #e12a2a !important;
    border-radius: 4px;
    width: 100%;
    display: flex;
    justify-content: center;
    max-width: unset!important;
    cursor: pointer;

}
.cancel-filter-button:hover{
    background-color: #a81f1f !important;
}
.cancel-filter-button::after{
    content: '\F5DE';
    color: white;
    font-family: bootstrap-icons;
    margin-left: .7rem;
}
.filter-form select{
    min-height: 40px;
    height: 40px;
    background-color: white;
    border-radius: 7px;
    border: 2px solid #3087dd !important;
}
.filter-form label{
    color: black;
    display: flex;
    align-items: center;
    margin-block: .7rem;
}
.filter-form input[type=radio]{
    margin: 0 .4rem 0 0;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 4px!important;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.filter-form input[type=radio]:checked{
    background-color: rgba(240, 242, 250, 0.98);
}
.filter-form input[type=radio]:checked::after{
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    margin: 0;
    border-radius: 4px;
    animation: minimize 0.4s ease-in-out;
}
@media(max-width: 620px){
    .flex-box form.filter-form{
        width: 100%!important;
        max-width: 100%!important;
        height: 100vh;
        min-height: unset!important;
        top: 0!important;
    }
}

@-webkit-keyframes minimize {
    from{
        transform: scale(1.3);
    }
    20%{
        transform: scale(1);

    }
    40%{
        transform: scale(1.2);

    }
    60%{
        transform: scale(1);

    }
    80%{
        transform: scale(1.1);

    }
    to{
        transform: scale(1);

    }

}
.filter-form span{
    display: flex;
}
.filter-form span button:first-of-type:not(.cancel-button){
    width: calc(100% - 36px);
}
.filter-form span button:nth-of-type(2){
    width: 36px;
    height: 36px;
    font-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.filter-form span button:first-of-type.active{
    background-color: rgba(51, 69, 161, 0.98);

}
.filter-form span button:nth-of-type(2):hover{
    border: 0!important;
}
.filter-form input[type=submit]{
    padding: .2rem;
}
.directory-form .language-button{
  text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;

}
.directory-form .language-button i{
    height: 45px;
    width: 45px;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.language-list{
    max-height: 50px;
    list-style: none;
    overflow-y: hidden;
    padding-left: 0;
    transition: max-height 0.2s;
    
}
.language-list[data-open]{
    max-height: 150px;
    transition: max-height 0.2s;
}
.language-list input{
    max-width: 93%!important;
}
.error-dialog{
    top:0;
    display: block;
    width: auto;
    margin-inline: auto;
    margin-block: .7rem;
    background-color: #D81B0DD5;
    color:white;
    padding: 0;
    z-index: 100000;
    animation: display .5s;
    min-width: 300px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}
.error-dialog p{
    padding: .7rem;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
}
*[d-none]{
    display: none!important;
}
.success-dialog{
    top:0;
    display: block;
    width: min-content;
    min-width: 300px;
    margin-inline: auto;
    margin-block: .7rem;
    background-color: #719ECA;
    color:white;
    text-wrap: nowrap;
    animation: display .5s cubic-bezier(0.42, 0, 0.58, 1);
    position: fixed;
    left: 50%;
    transform:translateX(-50%);
    z-index: 100000;
}
.success-dialog p{
    padding: 1rem;
    margin: 0;
}
#loginform[data-reset-password-form] .container{
    display: flex;
}
#pass-strength-result.short{
    color:red;
}
#pass-strength-result.bad{
     color:orange;
}
#pass-strength-result.good{
    color: #476381;
}
#pass-strength-result.strong{
    color: #719ECA;
}
@-webkit-keyframes throttle {
    from{
        transform: translateX(0);
    }
    20%{
        transform: translateX(12px);
    }
    40%{
        transform: translateX(-12px);
    }
    60%{
        transform: translateX(12px);
    }
    80%{
        transform: translateX(-12px);
    }
    to{
        transform: translateX(0);
    }

}
@-webkit-keyframes display {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }

}
.placeholder-dialog{
    min-height: 125px;
}
.move-button[data-disabled]{
    display: none;
}
.move-button{
    background-color: rgba(211, 90, 27, 0.8) !important;
    color: white!important;
    cursor: pointer;
}
.move-button:hover{
    background-color: rgba(184, 81, 27, 0.8) !important;

}
.move-button:active{
    background-color: rgba(159, 71, 25, 0.8) !important;

}
.filter-sidebar{


}
.filter-sidebar i{
    font-size: 25px;
    margin-top: 3px;
}



.close-filter{

}
.filter-sidebar[data-open]{
    background-color: rgba(45, 58, 136, 0.98)!important;

}
.filter-sidebar{
    width: 40px!important;
    height: 32px!important;
    margin-block: auto!important;
    border-radius: 7px;
    background-color: grey!important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filter-sidebar:hover{
    background-color: rgba(45, 58, 136, 0.98)!important;
    cursor:pointer;
    transition: background-color .3s;

}
.close-filter{
    width: 25px;
    height: 25px;
    background-color: #8FC7FF !important;
    color: white;
    font-size: 25px;
    display: flex;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    transition: all .3s;
    margin-left:auto;

}
.close-filter:hover{
    color:#6890b6;
    background-color: white!important;
    transition: all .3s;
    cursor: pointer;
}
.filter-sidebar:hover .bi-funnel-fill{
    color: white!important;
}
.filter-sidebar[data-open] .bi-funnel-fill{

}
.filter-form{
    display: block;
}
.filter-form span:last-of-type button{
    text-wrap: nowrap;
    font-size: .7em!important;
    height:36.5px!important;
}
.filter-sidebar .bi-funnel-fill{
    display: inline-block;
    color: white;
}
.container-bmp.directory_content{
    transition:all .3s!important;
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    padding: 0!important;

}
@media (max-width: 640px){


    .directory_content{
        display: flex;
        flex-direction: column;
        gap:.4rem;
        padding: 0;
        margin:0;
        margin-right:auto;
        max-width:100%;
    }
}
.search-form .filters{
    width:100%;
}
.search-form .filters > label{
    width:100%;
    display:block;
}
.search-form{
    min-width: 300px;
    display: flex;
    flex-wrap:wrap;
    max-height: 90%!important;
    margin-left: 1.4rem;

}
.search-form input{
    max-width:235px;
    max-height: 90%!important;
    flex: 2;
}
.search-form input[type=radio]{
    width:min-content;
    min-width: 0;
    margin:0;

}
.search-form input:active{
    background-color: white!important;
}
.search-form .search-submit{
    min-width:min-content!important;
    padding: .4rem;
    margin: 0!important;
    background-color: rgba(45, 58, 136, 0.98)!important;
    max-height: 90%!important;
    flex: 1;
}
.search-form .search-submit:hover{
    padding: .4rem!important;
    margin: 0;

}
html{
    animation: display .5s;
}
@-webkit-keyframes display {
    from{
        opacity: 0;
    }
    to{
        opacity:1;
    }
}
@media (max-width: 800px){
    .file-directory-container.list-view ad p,.file-container.list-view ad p{
        white-space: break-spaces!important;
        text-align: left;
    }
}
.btn-exit{
    padding: 0!important;
    min-width: 120px!important;
    min-height: 30px!important;
}
.btn-exit a{
    width:100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 500px){
    .search-form{
        max-width: 320px!important;
    }

}
@media (max-width: 435px) {
    span form.search-form {
        width: 100%!important;
        margin:0!important;
        max-width: unset!important;
    }
    span form.search-form input{
        max-width: calc(100% - 82px)!important;
    }


}
.menu-class li:has(> ul) > a::after{
    content: "\00a0\F229";
    font-family: "bootstrap-icons";
    display: inline-block;
    margin-block: auto;
    overflow: visible;
    color: rgba(51, 69, 161, 0.98);
    max-height: 16px!important;

}
.menu-class li:has(> ul) > a:has(~ .visible)::after{
    content: "\00a0\F22B";
    font-family: "bootstrap-icons";
    display: inline-flex;
    margin-block: auto;
    overflow: visible;
    color: rgba(51, 69, 161, 0.98);
    margin-top: 2px;

}
.menu-class li:has(> ul) > a:hover {
    text-shadow: 0 4px 8px rgba(51, 69, 161, 0.3); /* soft blue glow */
    transition: text-shadow 0.3s ease; /* correct property for smooth animation */
}
.menu-class li:has(> ul) > a:hover::after {
    color: rgba(51, 69, 161, 1); /* slightly stronger color */
    transform: scale(1.1); /* gentle zoom */
    transition: transform 0.3s ease, color 0.3s ease;
}
  
.menu-class ul{
    display: block;
    overflow: hidden;
    max-height: 0px;
    transition: max-height .7s ease!important; /* Smooth effect */
}
.menu-class ul.visible{
    border-top: 1px solid #719ECA;
    display: block;
    max-height: 200px;
    transition: max-height .7s ease!important; /* Smooth effect */
}















/* ===== Vars + base =====
:root{
  
}



/* ===== Layout (BASE = DESKTOP) ===== */
.flex-box{
  display: flex;
    width: 100%;
  margin: 0 auto;
}


/* Contenu (défilement interne en desktop) */
.directory_content{
    /* margin-right: 3rem;
    width: 70%; */
      
}


/* Sidebar (sticky en desktop) */
.container-sidebar{
    /* position: sticky;
    flex: 1;
    background-color: #b6181f; */
}
@media (max-width: 349px){
    .translation_actions a {
        display: none;
    }
    .translation_actions a[data-disabled]{
        display: flex;
    }
}