.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.users-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
}

.users-actions input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 250px;
    font-size: 0.95rem;
}

.users-actions input:focus {
    outline: none;
    border-color: var(--primary);
}

.users-table {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 150px 150px; /* dernière colonne pour Actions */
    gap: 10px;
    padding: 8px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.user-row {
    display: contents;
}

.user-row.header {
    display: contents; /* ⚠ on peut le laisser pour que les titres suivent le grid */
    font-weight: 600;
    text-align: center;
}

.user-row > div {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
}

.user-row.header > div {
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--primary);
    padding: 8px 6px;
}

.user-row:nth-child(odd) > div {
    background-color: var(--bg-main);
}

.user-id, .user-created {
    text-align: center;
    font-weight: 500;
}

.users-pagination {
    margin-top: 12px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--white);
}

.user-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.action-icon {
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.action-icon:hover {
    background-color: var(--bg-hover);
}

/* Tableau d'événements */
.event-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Nom | Date | Statut | Action */
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

/* Ligne (header ou data) */
.event-row {
    display: contents; /* permet de suivre le grid parent */
}

.event-row.header > div {
    font-weight: 600;
    text-align: center;
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--primary);
    padding: 8px;
}

.event-row > div {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.name-event {
    text-align: left;
}

.event-row:nth-child(odd) > div:not(.header) {
    background-color: var(--bg-main);
}

.event-row a {
    color: var(--primary);
    text-decoration: none;
}

.event-row a:hover {
    text-decoration: underline;
}