/* ===============================
   Base globale
================================ */
* {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    background: #f4f6f8;
    color: #333;
}

h2, h3 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===============================
   Conteneur principal
================================ */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* ===============================
   Tableau fichiers
================================ */
.admin-container {
    display: inline-block;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
}

.admin-table th {
    background: #f1f1f1;
}

.file-name {
    max-width: 220px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================
   Bouton Enregistrer
================================ */
button[type="submit"] {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #28a745;
    color: #fff;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background: #218838;
}

/* ===============================
   Gestion suppression utilisateurs
================================ */
.user-delete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 160px));
    gap: 18px 10px;
    justify-content: start;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.user-delete-grid li {
    display: block;
}

.user-delete-grid button {
    width: 100%;
    background: #dc3545;
    color: #fff;
    padding: 10px 0;
    font-weight: 600;
    border-radius: 6px;
}

.user-delete-grid button:hover {
    background: #c82333;
}

/* ===============================
   Log box
================================ */
.log-box {
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    padding: 0 15px 15px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    text-align: left;
    white-space: pre-wrap;
    font-size: 0.85em;
    margin-bottom: 15px;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 600px) {
    .admin-table, .admin-container {
        width: 100%;
    }

    .user-delete-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .file-size{
        display: none;
    }
}

/* ===============================
   Confort mobile
================================ */
button,
input,
select,
textarea,
.file-button {
    font-size: 16px;      /* évite le zoom auto et les textes minuscules */
    min-height: 44px;     /* taille tactile recommandée */
}

/* Boutons fichiers */
.file-button {
    padding: 10px 16px;
}

/* Inputs admin / login */
input[type="text"],
input[type="password"] {
    padding: 0 12px;
}

