.tree-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.member-card {
    position: relative;
    text-align: center;
}

.member-btn {
    border: none;
    background: none;
    cursor: pointer;
}

.avatar-small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.member-name {
    margin-top: 5px;
    font-weight: bold;
}

.delete-relation {
    position: absolute;
    top: -5px;
    right: -5px;
}

.delete-btn {
    background: #c00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.tree-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.member-card {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
    background: #f5f5f5;
    position: relative;
    text-align: center;
    min-width: 140px;
}

.selected-member {
    background: #b7ff7a; /* vert pomme */
    border: 2px solid #6ac92d;
}

.member-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.member-btn {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-small {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #4a90e2;
    color: white;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-name {
    font-weight: bold;
    font-size: 14px;
}

.delete-relation {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.delete-btn {
    background: #c00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
}
