@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.title {
    font-size: 80px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bolder;
    margin-top: -100px;
}

.divForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ededed;
}

.titleForm {
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
}

.formLogin {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
}

.blocInput {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-bottom: 15px;
    gap: 10px;
}

.blocInput input {
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    border: 1px solid #9a9a9a;
}

.blocInput label {
    font-size: 16px;
    color: #1f1f1f;
    margin-left: 10px;
}

.btnLogin {
    background-color: #ededed;
    color: #1f1f1f;
    padding: 10px 20px;
    border: 1px solid #9a9a9a;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btnLogin:hover {
    background-color: #333;
    color: #fff;
    border: 1px solid #9a9a9a;
}

.noAccount {
    margin-top: 20px;
    font-size: 14px;
    color: #1f1f1f;
}

.aLogin {
    color: #4e4e4e;
    text-decoration: none;
    font-weight: bold;
}

.aLogin:hover {
    color: #333;
}

#tache {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 9999;
}

#bureau {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background-color: var(--colorBureau);
    background-image: var(--bgImage);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    grid-template-rows: repeat(10, 1fr);
    padding: 10px;
}


.icone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #0f0f0f;
    max-height: calc(100vh / 10);
    max-width: calc(100vw / 18);
}

.maximized {
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    top: 0 !important;
    left: 0 !important;
    transform: translate(0, 0) !important;
}

.minimized {
    width: auto !important;
    height: auto !important;
    min-width: 40%;
    min-height: 40%;
    top: 50%;
    left: 50%;
}

.iconeImg {
    width: 50px;
    height: 50px;
    margin: auto;
}


.rename-input,
.iconeTitre {
    background-color: transparent;
    text-align: center;
    font-size: 12px;
    border: none;
    outline: none;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    max-width: 100%;
    text-overflow: ellipsis;
}

.iconeTache {
    height: 32px;
    width: 32px;
}

.iconeTacheImg {
    height: 100%;
    width: 100%;
}

.context-menu {
    position: absolute;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.context-menu button {
    display: block;
    padding: 5px 10px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.context-menu button:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}


.imgParam {
    background-color: #a5a5a5;
    -webkit-mask-image: url('../svg/settings.svg');
    mask-image: url('../svg/settings.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

.imgInfos {
    background-color: #2b2b2b;
    -webkit-mask-image: url('../svg/informations.svg');
    mask-image: url('../svg/informations.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

.imgInfosTache {
    background-color: #cdcdcd;
    -webkit-mask-image: url('../svg/informations.svg');
    mask-image: url('../svg/informations.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}



.tab {
    min-width: 300px;
    min-height: 200px;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.tab.maximized {
    resize: none;
}

.tab.minimized,
.tab:not(.maximized) {
    width: 600px !important;
    height: 500px !important;
    display: block;
}

.tab:active .visualiseur-pdf,
.tab:active iframe {
    pointer-events: none;
}


.divPdf {
    overflow-y: auto;
    padding: 0;
    height: calc(100% - 40px);
    box-sizing: border-box;
}

.contentTab {
    overflow-y: auto;
    padding: 20px;
    height: calc(100% - 40px);
    box-sizing: border-box;
}

.visualiseur-pdf {
    width: 100%;
    height: 100%;
    display: block;
}

.tabInfos:not(.maximized),
.tabInfos.minimized {
    max-width: 70% !important;
}

.headerTab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.headerTab h3 {
    margin: 0;
    font-size: 16px;
    margin-left: 10px;
    font-weight: 500;
}

.controlsHeader {
    height: 30px;
    display: flex;
    align-items: center;

}

.controlBtn {
    border: none;
    padding: 5px;
    font-size: 14px;
    cursor: pointer;
    background-color: transparent;
    width: 40px;
    height: 100%;
}

.controlBtn:hover {
    background-color: #e0e0e0;
    border-radius: 3px;
}

.indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: var(--colorPastilles);
    border-radius: 50%;
}

.addSiteForm,
.paramForm,
.addFileForm,
.divInfos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.divInfos h2,
.divInfos p {
    margin: 0;
}

.divInfos a,
.divInfos button {
    color: #4e4e4e;
    font-weight: bold;
    text-decoration: none;
    border: none;
    background-color: transparent;
    font-size: 16px;
    padding: 0;
}

.divInfos a:hover,
.divInfos button:hover {
    color: black;
}

.addFileForm {
    gap: 20px;
}

.text-controls {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ccc;
}

.textForm,
.divPdf {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
}

.contentTab {
    flex-grow: 1;
    display: flex;
}

#textContent {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    border: none;
    box-sizing: border-box;
    outline: none;
}

.text-controls button {
    background-color: white;
    color: #1f1f1f;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.text-controls button:hover,
.text-controls button.active {
    background-color: #ededed;
}

.addSiteForm label,
.paramForm label {
    font-size: 14px;
    color: #1f1f1f;
    font-weight: 500;
}

.addSiteForm input,
.paramForm input[type="password"],
.addFileForm input[type="file"] {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    width: 300px;
    border: 1px solid #9a9a9a;
}

.addSiteForm button,
.paramForm button,
.addFileForm button {
    background-color: #ededed;
    color: #1f1f1f;
    padding: 10px 20px;
    border: 1px solid #9a9a9a;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 300px;

}

.addSiteForm button:hover,
.paramForm button:hover,
.addFileForm button:hover {
    background-color: #333;
    color: #fff;
    border: 1px solid #9a9a9a;
}

#mdpFields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bienvenue,
.paramForm h4 {
    margin: 0;
}

.input-file-cache {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.bouton-file-custom {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: black;
    border-radius: 5px;
    border: 1px solid #333;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    transition: background-color 0.2s, transform 0.1s;
    user-select: none;
}

.bouton-file-custom:hover {
    background-color: #ededed;
}

.bouton-file-custom:active {
    transform: scale(0.98);
}

.detail,
#nomDuFichier {
    font-size: 12px;
}

.addFileTitle {
    margin-bottom: 0;
}

.file-upload-container {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.visualiseur-pdf {
    flex-grow: 1;
    width: 100%;
    border: none;
}

#mobileBlocker {
    display: none;
}

@media screen and (max-width: 1366px) {

    .title {
        font-size: 60px;
    }

    .formLogin {
        width: 45%;
    }

    .iconeImg {
        width: 38px;
        height: 38px;
    }

    .rename-input,
    .iconeTitre {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .minimized {
        width: auto !important;
        height: auto !important;
        min-width: 40%;
        min-height: 40%;
    }

    .iconeTache {
        height: 28px;
        width: 28px;
    }
}

@media (max-width: 1023px) {
    #mobileBlocker {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #0f172a;
        color: #ffffff;
        z-index: 999999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        box-sizing: border-box;
    }

    #mobileBlocker h1 {
        font-size: 24px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    #mobileBlocker p {
        font-size: 16px;
        color: #94a3b8;
        max-width: 300px;
        line-height: 1.5;
    }

    #bureau,
    #tache {
        display: none !important;
    }
}