* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    margin-top: 0;
    color: #333;
}

.info {
    color: #666;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #2f5d7c;
    color: white;
    text-align: left;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tbody tr {
    cursor: pointer;
    transition: background-color 0.15s;
}

    tbody tr:hover {
        background-color: #eaf2f7;
    }

td:first-child,
th:first-child {
    width: 70px;
    text-align: center;
}

.logout {
    margin-top: 25px;
}

    .logout a {
        color: #666;
        text-decoration: none;
    }

        .logout a:hover {
            text-decoration: underline;
        }

/* Smartphone */
@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    th,
    td {
        padding: 12px 8px;
    }

    th {
        font-size: 14px;
    }

    td {
        font-size: 16px;
    }

        td:first-child,
        th:first-child {
            width: 55px;
        }
}

#recherche {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
}

    #recherche:focus {
        outline: none;
        border-color: #2f5d7c;
        box-shadow: 0 0 0 3px rgba(47, 93, 124, 0.15);
    }

/* --------------------------------------------------
   Page de connexion
-------------------------------------------------- */

.login-container {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background-color: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    text-align: center;
}

    .login-box h1 {
        margin-bottom: 10px;
    }

.login-info {
    color: #666;
    margin-bottom: 25px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
}

    .login-box input[type="password"]:focus {
        outline: none;
        border-color: #2f5d7c;
        box-shadow: 0 0 0 3px rgba(47, 93, 124, 0.15);
    }

.login-box button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background-color: #2f5d7c;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

    .login-box button:hover {
        background-color: #244b65;
    }

.login-error {
    margin-top: 18px;
    color: #b00020;
    font-weight: bold;
}

th {
    cursor: pointer;
    user-select: none;
}

    th:hover {
        background-color: #244b65;
    }

.tri-indicateur {
    font-size: 12px;
    margin-left: 4px;
}