body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#tableau {
    padding: 0 20px 0 20px;
}

.fixed-form {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.fixed-form form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.fixed-form input[type="text"],
.fixed-form select {
    padding: 5px;
    font-size: 14px;
}

.fixed-form input[type="submit"] {
    padding: 7px 15px;
    font-size: 14px;
    cursor: pointer;
}

.results {
    padding: 20px;
}

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

td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

tr {
    height: 50px;
}

a.titre {
    color: black;
    text-decoration: none;
}

.titre:hover {
    color: rgb(194, 194, 194);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 20px;
    text-decoration: none;
    color: #009DC0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination a.active {
    background-color: #009DC0;
    color: white;
    border-color: #009DC0;
}

.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
    color: #009DC0;
}
.qr-code-wrapper {
    background-color: white;
    display: inline-block;
    }

.titre-liste {
        color: black;
        text-decoration: none;
        font-size: 11px;
    }

/* Formulaire responsive pour écrans de petite taille */
@media screen and (max-width: 600px) {
    .fixed-form form {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        display: inline;
    }

    .fixed-form label, 
    .fixed-form input[type="text"], 
    .fixed-form select, 
    .fixed-form input[type="submit"] {
        margin-bottom: 3px;
    }

    .fixed-form input[type="submit"] {
        margin-top: 10px;
    }
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .fixed-form {
        background-color: #1e1e1e;
        border-bottom: 1px solid #444;
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }
    .titre-liste {
        color: #e0e0e0;
    }
    .fixed-form input[type="text"],
    .fixed-form select {
        background-color: #333;
        color: #fff;
        border: 1px solid #555;
    }

    .fixed-form input[type="submit"] {
        background-color: #444;
        color: #fff;
        border: 1px solid #666;
    }

    table {
        background-color: #1e1e1e;
        border: 1px solid #444;
    }

    td {
        border: 1px solid #555;
        color: #e0e0e0;
    }

    a.titre {
        color: #80d8ff;
    }

    .pagination a {
        background-color: #333;
        color: #80d8ff;
        border: 1px solid #555;
    }

    .pagination a.active {
        background-color: #80d8ff;
        color: #fff;
        border-color: #80d8ff;
    }

    .pagination a:hover:not(.active) {
        background-color: #555;
        color: #80d8ff;
    }
    .qr-code-wrapper {
        background-color: #000000;
      }
      .qr-code {
        filter: invert(88%);
      }
      .qr-logo {
        content: url('../images/logo_dark.png');
      }
}
@media print {
    .non-imprimable {
      display: none;
    }
  }