body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
}

h1 {
    color: #333;
}

#controls {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style des boutons d'action */
#controls button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 20px;
    transition: background-color 0.2s;
}

#controls button:hover:not(:disabled) {
    background-color: #1e7e34;
}

#controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Styles des filtres */
.filter-section {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 5px 0;
    max-height: 150px;
    overflow-y: auto;
}

.filter-group label {
    white-space: nowrap;
    cursor: pointer;
}

/* Styles du tableau */
#table-container {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 1000px;
}

/* Styles des EN-TÊTES */
th {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    position: relative;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th:hover {
    background-color: #0056b3;
}

/* Styles des cellules de données */
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles des compteurs et icônes de tri */
th span.counter {
    background-color: #f8f9fa;
    color: #007bff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 0.8em;
    font-weight: bold;
}

.sort-icon {
    margin-left: 5px;
    font-size: 0.7em;
}

.idea-text {
    white-space: normal;
    max-height: 3.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Style spécifique pour le carré de couleur */
.color-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border: 1px solid #333;
    vertical-align: middle;
    border-radius: 2px;
}

.loading-message {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}

#status-message {
    margin-top: 10px;
    font-weight: bold;
}

.titres {
    color: white;
    background-color: #0094ff;
    font-size: large;
    font-weight: bold;
}