/* Layout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #1e3a8a; /* bleu foncé */
    color: white;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar h1 {
    font-size: 18px;
    margin-bottom: 30px;
}

.sidebar img {
    height: 20px;
    vertical-align: middle;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar ul li a:hover {
    background: #2563eb; /* bleu plus clair */
}

/* Contenu principal */
.main-content {
    margin-left: 280px; /* largeur de la sidebar */
    padding: 2em;
    flex: 1;
    max-width: 1100px;
    margin-top: 30px !important;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: margin-left 0.3s ease;
}

.title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
th {
    background: #f0f0f0;
    cursor: pointer;
}
tr:hover {
    background: #f9f9f9;
}
tr.keeped {
    background: #e8f7e8 !important;
}

/* Boutons */
button, input[type=submit] {
    background: #3498db;
    border: none;
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
button:hover, input[type=submit]:hover {
    background: #2980b9;
}

/* Pop-up modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center; align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
}
.modal-content h2 {
    margin-top: 0;
}
.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

/* --- Burger Menu --- */
.burger {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: white;
    background: #1e3a8a;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1100;
    display: none; /* visible seulement en responsive */
}

/* Responsive : cacher sidebar par défaut */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .burger {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
}

 .pagination li { 
    display:inline-block; 
    margin:0 3px; 
    padding:5px 10px; 
    border:1px solid #ccc; 
    border-radius:4px; 
    cursor:pointer;
    transition: ease-in 0.35s;
}

.pagination .active { 
    background:#2563eb; 
}

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

.pagination .active a{
    text-decoration: none;
    color:white !important; 
}
.pagination li:hover{
    background-color: #007bff;
    color: #fff;
}
