body {
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('/assets/img/background.jpg');
    background-size: cover;       /* adapte l'image à l'écran */
    background-position: center;  /* centre l'image */
    background-repeat: no-repeat; /* évite la répétition */
    background-attachment: fixed; /* fond fixe au défilement */
    margin: 0;
    padding: 40px;
}

.container {
    max-width: 1400px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

h1{
    color: #OOOOOO;
    text-align: center;
	text-shadow: 2px 2px 0 #FFFFFF;
}

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

th{
    background:#1e73be;
    color:#fff;
}

th,td{
    padding:12px;
    border:1px solid #ddd;
	vertical-align: middle;
}

tr:nth-child(even){
    background:#f8f8f8;
}

form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

input,
button{
    padding:10px;
}

button{
    background:#1e73be;
    color:white;
    border:none;
    cursor:pointer;
}

button:hover{
    background:#005a9c;
}

.message{
    padding:12px;
    background:#d9f7d9;
    border:1px solid #88cc88;
    margin-bottom:20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
}

.filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.filters input,
.filters select {
    padding: 8px;
    min-width: 180px;
}

.filters input[type="text"] {
    min-width: 300px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;

    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.12);

    transform: translateX(-100%);
    transition: transform .3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.toggle-sidebar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1100;

    background: #1e73be;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;

    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.toggle-sidebar:hover {
    background: #005a9c;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filters input,
.filters select {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

.reset-btn {
    margin-top: 10px;
    padding: 10px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.reset-btn:hover {
    background: #c9302c;
}

.download-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #1e73be;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #005a9c;
    color: white;
}

.edit-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #1e73be;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: #005a9c;
    color: white;
}

.delete-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #d9534f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #c9302c;
    color: white;
}

td.actions {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

td.actions a {
    display: inline-block;
    margin: 0 4px;
}

.categories-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: block;
}