
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 10px;
    background: #f5f5f5;
    min-height: 100vh;
    /*color: #333;*/
    /* image globale derrière tout */
    background-image: url('../images/fiba-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.header-logo {
    width: 212px;
    height: 128px;
    object-fit: contain; /* évite la déformation si l’image varie un peu */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    max-width: 1200px;   /* même valeur que .container */
    margin: 0 auto 10px; /* centré + petit espace sous le header */
    /*background: #333333;
    background: rgba(0, 0, 0, 0.6); */
    background: transparent;
    
    color: #bd5a4dff;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: #bd5a4dff;
}

.toolbar {
    padding: 15px 20px 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Icon buttons (Back, ZIP) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    background: #ffffff;
}
.btn-icon:hover {
    color: #A58746;
}

.btn-icon i {
    font-size: 14px;
}

/* Back button */
#btn-up {
    background: #;
    color: #333333;
}

#btn-up:hover:not(:disabled) {
    background: #A58746;
}

#btn-up:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ZIP button */
.btn-zip {
    background: #333333;
    color: #ffffff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

/* Hover ZIP – IMPORTANT: même sélecteur .btn-zip:hover */
.btn-zip:hover {
    background: #A58746;
}

/* Breadcrumb */
.breadcrumb-box {
    font-family: monospace;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    flex: 1;
    min-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-box a {
    color: #333333;
    text-decoration: none;
}

.breadcrumb-box a:hover {
    color: #333333;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 2px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

th {
    background: #f8f9fa;
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

td {
    padding: 10px 18px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

tr:hover {
    background: #f8f9ff;
}

/* Folder links */
.folder-link {
    color: #A58746;
    text-decoration: none;
    font-weight: 500;
}

.folder-link:hover {
    color: #A58746;
    text-decoration: underline;
}

/* File name links */
.file-name-link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
}

.file-name-link:hover {
    color: #333333;
    text-decoration: underline;
}

/* Download link button */
.file-link {
    color: #ffffff;
    background: #333333;
    border: 1px solid #333333;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.file-link i {
    font-size: 14px;
}

.file-link:hover {
    background: #A58746;
    border-color: #A58746;
    text-decoration: none;
}

/* Download button */
.btn-delete {
    color: #ffffff;
    background: #333333;
    border: 1px solid #333333;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: #A58746;
}

.btn-delete i {
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}


/* footer links */
.footer-link {
    color: #333333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}
.footer-link:hover {
    color: #A58746;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: white; border-radius: 8px; width: 90%; max-width: 400px; }
.modal-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; }
.modal-body input { width: 80%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
.modal-footer { padding: 15px 20px; text-align: right; border-top: 1px solid #eee; gap: 10px; display: flex; justify-content: flex-end; }
#btn-cancel-folder { background: #6c757d; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
#btn-create-folder { background: #; color: #333333; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.close { font-size: 28px; font-weight: bold; cursor: pointer; }

/* Recherche */
.search-box {
    display: flex;
    gap: 5px;
    flex: 1;
    max-width: 400px;
    background: white;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #ddd;
}
#search-input {
    flex: 1;
    border: none;
    padding: 6px 10px;
    font-size: 14px;
}
#search-input:focus {
    outline: none;
}
#search-btn, #search-clear {
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: #666;
}
.search-result .path {
    color: #888;
    font-size: 12px;
}
