/* ----- Reset & base ----- */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #333;
}

/* Container centré */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Titres */
h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #222;
}

h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-left: 4px solid #007BFF;
    padding-left: 10px;
    color: #007BFF;
}

/* Liste des mods */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #f9fafb;
    margin: 6px 0;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

ul li:hover {
    background: #eef4ff;
}

ul li a {
    text-decoration: none;
    color: #007BFF;
    font-weight: 500;
}

ul li a:hover {
    text-decoration: underline;
}

/* Boutons */
button, .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover, .btn:hover {
    background: #0056b3;
}

/* Formulaire upload */
form {
    margin-top: 20px;
}

form label {
    font-weight: 500;
}

form select, form input[type="file"] {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
}

form button {
    margin-top: 10px;
}

/* Lien retour */
a.back {
    display: inline-block;
    margin-top: 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

a.back:hover {
    text-decoration: underline;
}

.upload-top {
    margin-bottom: 20px;
    display: inline-block;
}



.drop-zone {
    margin-top: 1em;
    padding: 30px;
    border: 3px dashed #666;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: #444;
    transition: background-color 0.2s, border-color 0.2s;
}
.drop-zone.dragover {
    background-color: #f0f8ff;
    border-color: #007bff;
}
.drop-zone input {
    display: none;
}

.message {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1em;
}
.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#file-list {
    margin-top: 15px;
    padding: 0;
    list-style: none;
}
#file-list li {
    font-size: 14px;
    padding: 3px 0;
}

.progress-container {
    margin-top: 15px;
    width: 100%;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}
.progress-bar {
    height: 20px;
    width: 0%;
    background: #007bff;
    text-align: center;
    color: white;
    font-size: 12px;
    transition: width 0.2s;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn.delete {
    background: #d9534f;
}

.btn.delete:hover {
    background: #a94442;
}
.search {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.actions .btn,
.actions button.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    height: 40px;            /* hauteur identique */
    min-width: 130px;        /* largeur identique */
    padding: 0 15px !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    border-radius: 6px;
}

.actions form {
    margin: 0;
    padding: 0;
}

button.btn {
    border: none !important;
}