/* --- PALETTE DE COULEURS --- */
:root {
    --primary-color: #4a90e2; 
    --secondary-color: #6c757d;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --bg-color: #f4f6f9;
    --row-hover-bg: #e3f2fd;
    --border-color: #dee2e6;
    --input-bg: #fdfdfd;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: #333;
    height: 100vh;
}

/* --- LAYOUT PRINCIPAL --- */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden; 
}

/* --- SIDEBAR --- */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    flex-shrink: 0;
}

.sidebar h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 1px;
}

.sidebar nav {
    flex-grow: 1;
}

.sidebar nav a {
    display: block;
    color: var(--sidebar-text);
    padding: 15px 25px;
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
.sidebar nav a.active { background-color: rgba(0,0,0,0.2); border-left-color: var(--primary-color); color: #fff; font-weight: bold; }

/* --- SECTION STOCKAGE --- */
.storage-section {
    padding: 20px;
    background-color: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.storage-header {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-container-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}
.progress-fill[style*="8"], .progress-fill[style*="9"] { background-color: #f1c40f; }

.storage-text {
    color: #aaa;
    font-size: 0.8rem;
    text-align: right;
}

/* --- CONTENT AREA --- */
.content-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: var(--bg-color);
}

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* --- BOUTONS --- */
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn:hover { filter: brightness(90%); }

.btn-secondary { background-color: white; color: var(--secondary-color); border: 1px solid var(--secondary-color); }
.btn-secondary:hover { background-color: var(--secondary-color); color: white; }

/* --- TABLEAU --- */
.file-list { background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background-color: #fff; color: #888; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; padding: 15px; border-bottom: 2px solid var(--bg-color); }
td { padding: 12px 15px; border-bottom: 1px solid var(--bg-color); color: #555; vertical-align: middle;}
.item-row:hover { background-color: var(--row-hover-bg); cursor: pointer; }

/* Classe utilitaire pour l'alignement des icônes */
.icon-center {
    width: 30px;
    text-align: center;
    display: inline-block;
    margin-right: 10px;
}

.btn-icon { background: none; border: none; cursor: pointer; color: #aaa; padding: 5px; font-size: 1.1rem; transition: color 0.2s; }
.btn-icon:hover { color: var(--primary-color); }
.btn-icon.trash:hover { color: #e74c3c; }

/* --- AUTH PAGES --- */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: var(--bg-color); }
.auth-card { background: white; padding: 40px; width: 100%; max-width: 400px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; }
.auth-card h2 { margin-bottom: 25px; color: #2c3e50; font-weight: 600; }
.auth-form input { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid var(--border-color); background-color: var(--input-bg); border-radius: 6px; font-size: 1rem; transition: border-color 0.3s; }
.auth-form input:focus { border-color: var(--primary-color); outline: none; }
.auth-form button { width: 100%; padding: 12px; margin-top: 10px; }
.auth-links { margin-top: 20px; font-size: 0.9rem; color: #888; }
.auth-links a { color: var(--primary-color); text-decoration: none; }

/* --- ALERTS & MODALS --- */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 5px; color: white; }
.alert-success { background-color: #2ecc71; }
.alert-danger { background-color: #e74c3c; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: white; margin: 10% auto; padding: 30px; border-radius: 8px; width: 400px; position: relative; }
.modal-content input[type="text"] { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ddd; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #aaa; }

/* ... Gardez tout le début du fichier ... */

/* MODIFIEZ OU AJOUTEZ CETTE PARTIE */
.breadcrumb {
    padding: 12px 15px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    position: relative; /* Assure que l'élément est positionné */
    z-index: 10; /* Met l'élément au-dessus des autres */
}

.breadcrumb a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer; /* Force le curseur main */
}

/* ... Le reste du fichier ... */

/* Classe utilitaire icônes */
.icon-center {
    width: 30px;
    text-align: center;
    display: inline-block;
    margin-right: 10px;
}