/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-color: #28a745;
    --secondary-color: #007bff;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-gray: #f8f9fa;
}

/* ===== TABLE STYLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

th, td {
    padding: 14px;
    text-align: left;
    font-size: 16px;
}

th {
    background: linear-gradient(135deg, var(--dark-color), #495057);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--warning-color);
}

td {
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
    background: var(--light-gray);
}

tr:hover {
    background: #e9ecef;
    transition: background 0.3s ease-in-out;
}

/* ===== BUTTONS ===== */
button {
    cursor: pointer;
    padding: 3px 6px;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    display: inline-block;
}

.btn-add { background-color: #a226e4; color: #fff; }
.btn-edit { background: linear-gradient(135deg, var(--warning-color), #e0a800); color: black; }
.btn-edit:hover { background: linear-gradient(135deg, #e0a800, #d39e00); }
.btn-delete { background: linear-gradient(135deg, var(--danger-color), #c82333); color: white; }
.btn-delete:hover { background: linear-gradient(135deg, #c82333, #bd2130); }
.btn-view { background: linear-gradient(135deg, #17a2b8, #117a8b); color: white; }
.btn-view:hover { background: linear-gradient(135deg, #117a8b, #0c6b78); }

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
}

/* ===== SCROLLBAR ===== */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background: #aaa; border-radius: 5px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #888; }

/* ===== FORM INPUTS ===== */
input[type="text"], input[type="file"], textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

textarea { resize: vertical; min-height: 80px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== BLOQUER LES NOMS ===== */
.blurred {
    filter: blur(6px);
    transition: filter 0.3s ease-in-out;
}

/* ===== FILTRES / TOGGLES ===== */
#filterRow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Alignement et espacement des filtres */
#activityFilters, .toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Affichage responsive des filtres */
#checkboxContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Styles des TOGGLES */
.toggle-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Bouton toggle */
.toggle-container label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transition: background 0.3s ease;
    text-align: center;
}

/* Toggle actif */
.toggle-container input:checked + label {
    background: var(--primary-color);
}

/* Cacher les cases à cocher d'origine */
.toggle-container input {
    display: none;
}

/* ===== BOUTONS PERSONNALISÉS ===== */
.job-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.job-actions button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
}

.btn-chat, .btn-apply {
    color: white;
    display: flex;
    align-items: center;
}

.btn-chat { background-color: #17a2b8; }
.btn-chat:hover { background-color: #117a8b; }
.btn-apply { background-color: var(--primary-color); }
.btn-apply:hover { background-color: #218838; }

.btn-chat svg, .btn-apply svg {
    width: 20px;
    height: 20px;
}
#annuaireTable td.blured { /* Colonne NOM floutée par défaut */
    filter: blur(5px);
}
.unblurred {
    filter: none !important;
}
.selected {
    background-color: orange; 
    color: white;
}
.achetee {
    background-color: green; 
    color: white;
}