#explorer {
    max-width: 1000px;
    margin: 40px auto;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 24px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

#explorer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#explorer li {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 1rem;
}

#explorer li:hover {
    background: #e2e6ea;
}

#explorer li:before {
    content: '';
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
}

/* Folder */
#explorer li.folder:before {
    content: '\f07b';
    color: #FFCC3E;
}

/* Word */
#explorer li.file-doc::before {
    content: "\f1c2";
    color: #2b579a;
}

/* Excel */
#explorer li.file-xls::before {
    content: "\f1c3";
    color: #217346;
}

/* PowerPoint */
#explorer li.file-ppt::before {
    content: "\f1c4";
    color: #d24726;
}

/* PDF */
#explorer li.file-pdf::before {
    content: "\f1c1";
    color: #b30b00;
}

/* TXT */
#explorer li.file-txt::before {
    content: "\f15c";
    color: #444;
}

/* Images */
#explorer li.file-img::before {
    content: "\f1c5";
    color: #0e7fb0;
}

/* Audio */
#explorer li.file-audio::before {
    content: "\f1c7";
    color: #a020f0;
}

/* Vidéo */
#explorer li.file-video::before {
    content: "\f1c8";
    color: #b30000;
}

/* ZIP */
#explorer li.file-zip::before {
    content: "\f1c6";
    color: #d4a017;
}

#explorer li.file-unknown::before {
    content: "\f15b";
    color: #888;
}

#explorer p {
    text-align: center;
    color: #888;
    margin: 24px 0;
    font-size: 1.1em;
}

.file-action {
    margin-left: 10px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    background: #e2e6ea;
    color: #333;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s;
}

.file-action:hover {
    background: #d1d5da;
}

.file-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    #explorer li {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    #explorer li:before {
        width: 18px;
        height: 18px;
        font-size: 16px;
    }

    .file-action {
        font-size: 0.85em;
        padding: 3px 8px;
    }

    h1 {
        margin-top: 50px;
    }

    .file-action.view, .file-action.rename, .file-action.remove {
        display: none;
    }
}

#icone {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #dadada;
    object-fit: cover;
    position: absolute;
    z-index: 2;
    margin: 20px !important;
    cursor: pointer;
}

#icone-aside {
    left: 10px !important;
}

li.loading {
    position: relative;
    opacity: 0.6;
}

li.loading::before {
    content: "";
    border: 3px solid #1E6C93;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
    color: transparent !important;
    font-size: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fileButton {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #e2e6ea;
    color: #444;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    border: none;
    box-shadow: none;
    transition: background 0.2s;
    cursor: pointer;
}

.fileButton:hover {
    background-color: #d1d5da;
}

.fileButton .icon {
    margin-right: 6px;
    font-size: 1.1em;
    color: #888;
}

#uploadFileButton .icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f574"; /* Icône de chargement de fichier */
}